summaryrefslogtreecommitdiffstats
path: root/include/asm-x86/amd_iommu_types.h
diff options
context:
space:
mode:
authorJoerg Roedel2008-09-11 10:38:32 +0200
committerIngo Molnar2008-09-19 12:59:22 +0200
commit38ddf41b198e21d3ecbe5752e875857b7ce7589e (patch)
tree5c20869c5f66a92087627853e742c2af5176b7c6 /include/asm-x86/amd_iommu_types.h
parentAMD IOMMU: don't assign preallocated protection domains to devices (diff)
downloadkernel-qcow2-linux-38ddf41b198e21d3ecbe5752e875857b7ce7589e.tar.gz
kernel-qcow2-linux-38ddf41b198e21d3ecbe5752e875857b7ce7589e.tar.xz
kernel-qcow2-linux-38ddf41b198e21d3ecbe5752e875857b7ce7589e.zip
AMD IOMMU: some set_device_domain cleanups
Remove some magic numbers and split the pte_root using standard functions. Signed-off-by: Joerg Roedel <joerg.roedel@amd.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/asm-x86/amd_iommu_types.h')
-rw-r--r--include/asm-x86/amd_iommu_types.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/asm-x86/amd_iommu_types.h b/include/asm-x86/amd_iommu_types.h
index 9aa22ead22f3..f953309a636e 100644
--- a/include/asm-x86/amd_iommu_types.h
+++ b/include/asm-x86/amd_iommu_types.h
@@ -130,6 +130,8 @@
#define DEV_ENTRY_NMI_PASS 0xba
#define DEV_ENTRY_LINT0_PASS 0xbe
#define DEV_ENTRY_LINT1_PASS 0xbf
+#define DEV_ENTRY_MODE_MASK 0x07
+#define DEV_ENTRY_MODE_SHIFT 0x09
/* constants to configure the command buffer */
#define CMD_BUFFER_SIZE 8192
@@ -159,6 +161,7 @@
#define IOMMU_MAP_SIZE_L3 (1ULL << 39)
#define IOMMU_PTE_P (1ULL << 0)
+#define IOMMU_PTE_TV (1ULL << 1)
#define IOMMU_PTE_U (1ULL << 59)
#define IOMMU_PTE_FC (1ULL << 60)
#define IOMMU_PTE_IR (1ULL << 61)