diff options
author | Joerg Roedel <joerg.roedel@amd.com> | 2011-04-05 15:31:08 +0200 |
---|---|---|
committer | Joerg Roedel <joerg.roedel@amd.com> | 2011-04-11 09:04:04 +0200 |
commit | fd7b5535e10ce820f030842da3f289f80ec0d4f3 (patch) | |
tree | 3772c4406efa13dde0b8cd50f62ff896b6159c90 /arch/x86/include/asm/amd_iommu_types.h | |
parent | 60f723b4117507c05c8b0b5c8b98ecc12a76878e (diff) | |
download | kernel_samsung_smdk4412-fd7b5535e10ce820f030842da3f289f80ec0d4f3.zip kernel_samsung_smdk4412-fd7b5535e10ce820f030842da3f289f80ec0d4f3.tar.gz kernel_samsung_smdk4412-fd7b5535e10ce820f030842da3f289f80ec0d4f3.tar.bz2 |
x86/amd-iommu: Add ATS enable/disable code
This patch adds the necessary code to the AMD IOMMU driver
for enabling and disabling the ATS capability on a device
and to setup the IOMMU data structures correctly.
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Diffstat (limited to 'arch/x86/include/asm/amd_iommu_types.h')
-rw-r--r-- | arch/x86/include/asm/amd_iommu_types.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/include/asm/amd_iommu_types.h b/arch/x86/include/asm/amd_iommu_types.h index cb811c9..7434377 100644 --- a/arch/x86/include/asm/amd_iommu_types.h +++ b/arch/x86/include/asm/amd_iommu_types.h @@ -216,6 +216,8 @@ #define IOMMU_PTE_IR (1ULL << 61) #define IOMMU_PTE_IW (1ULL << 62) +#define DTE_FLAG_IOTLB 0x01 + #define IOMMU_PAGE_MASK (((1ULL << 52) - 1) & ~0xfffULL) #define IOMMU_PTE_PRESENT(pte) ((pte) & IOMMU_PTE_P) #define IOMMU_PTE_PAGE(pte) (phys_to_virt((pte) & IOMMU_PAGE_MASK)) |