diff options
author | Joerg Roedel <joerg.roedel@amd.com> | 2011-11-21 16:50:23 +0100 |
---|---|---|
committer | Joerg Roedel <joerg.roedel@amd.com> | 2011-12-12 15:19:04 +0100 |
commit | b16137b11b4b4d4bb27b61bba7e05f5fda5968f4 (patch) | |
tree | 617f9ae09eaa6b9a4e1f31c1ad73110110a72056 /drivers/iommu/amd_iommu_types.h | |
parent | 22e266c79b5bd5441243863c89ea237e6e845295 (diff) | |
download | op-kernel-dev-b16137b11b4b4d4bb27b61bba7e05f5fda5968f4.zip op-kernel-dev-b16137b11b4b4d4bb27b61bba7e05f5fda5968f4.tar.gz |
iommu/amd: Implement functions to manage GCR3 table
This patch adds functions necessary to set and clear the
GCR3 values associated with a particular PASID in an IOMMUv2
domain.
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Diffstat (limited to 'drivers/iommu/amd_iommu_types.h')
-rw-r--r-- | drivers/iommu/amd_iommu_types.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/iommu/amd_iommu_types.h b/drivers/iommu/amd_iommu_types.h index ff1dfe9..060724e 100644 --- a/drivers/iommu/amd_iommu_types.h +++ b/drivers/iommu/amd_iommu_types.h @@ -279,6 +279,7 @@ #define DTE_GCR3_SHIFT_B 16 #define DTE_GCR3_SHIFT_C 43 +#define GCR3_VALID 0x01ULL #define IOMMU_PAGE_MASK (((1ULL << 52) - 1) & ~0xfffULL) #define IOMMU_PTE_PRESENT(pte) ((pte) & IOMMU_PTE_P) |