summaryrefslogtreecommitdiff
path: root/kvm_msidef.h
diff options
context:
space:
mode:
authorRobert Mustacchi <rm@joyent.com>2011-08-09 18:33:27 +0000
committerRobert Mustacchi <rm@joyent.com>2011-08-09 19:13:41 +0000
commit2a9ff8dc8d9c433fc5c37c3f29d89853e1ed744d (patch)
tree86005a60dfe4a0496c337f093357b436eb44f5fc /kvm_msidef.h
parent1fcd3312a197a56661bbaecc7027fa3823ee2e6f (diff)
downloadillumos-kvm-2a9ff8dc8d9c433fc5c37c3f29d89853e1ed744d.tar.gz
HVM-585 Make sure copyright notices are up to date on all files in kvm repo
Diffstat (limited to 'kvm_msidef.h')
-rw-r--r--kvm_msidef.h26
1 files changed, 25 insertions, 1 deletions
diff --git a/kvm_msidef.h b/kvm_msidef.h
index a7dbdc6..c3a545c 100644
--- a/kvm_msidef.h
+++ b/kvm_msidef.h
@@ -1,3 +1,27 @@
+/*
+ * GPL HEADER START
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ *
+ * GPL HEADER END
+ *
+ * Derived from ./arch/x86/include/asm/msidef.h
+ *
+ * Copyright 2011 various Linux Kernel contributors.
+ * Copyright 2011 Joyent, Inc. All Rights Reserved.
+ */
+
#ifndef __KVM_MDIDEF_H
#define __KVM_MSIDEF_H
@@ -11,7 +35,7 @@
#define MSI_DATA_VECTOR_SHIFT 0
#define MSI_DATA_VECTOR_MASK 0x000000ff
-#define MSI_DATA_VECTOR(v) (((v) << MSI_DATA_VECTOR_SHIFT) & \
+#define MSI_DATA_VECTOR(v) (((v) << MSI_DATA_VECTOR_SHIFT) & \
MSI_DATA_VECTOR_MASK)
#define MSI_DATA_DELIVERY_MODE_SHIFT 8