diff options
author | Joerg Roedel <joerg.roedel@amd.com> | 2011-11-21 19:50:23 +0400 |
---|---|---|
committer | Joerg Roedel <joerg.roedel@amd.com> | 2011-12-12 18:19:04 +0400 |
commit | b16137b11b4b4d4bb27b61bba7e05f5fda5968f4 (patch) | |
tree | 617f9ae09eaa6b9a4e1f31c1ad73110110a72056 /drivers/iommu/amd_iommu_proto.h | |
parent | 22e266c79b5bd5441243863c89ea237e6e845295 (diff) | |
download | linux-b16137b11b4b4d4bb27b61bba7e05f5fda5968f4.tar.xz |
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_proto.h')
-rw-r--r-- | drivers/iommu/amd_iommu_proto.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/iommu/amd_iommu_proto.h b/drivers/iommu/amd_iommu_proto.h index a92dc6117e2f..a951a7090e35 100644 --- a/drivers/iommu/amd_iommu_proto.h +++ b/drivers/iommu/amd_iommu_proto.h @@ -43,6 +43,10 @@ extern int amd_iommu_domain_enable_v2(struct iommu_domain *dom, int pasids); extern int amd_iommu_flush_page(struct iommu_domain *dom, int pasid, u64 address); extern int amd_iommu_flush_tlb(struct iommu_domain *dom, int pasid); +extern int amd_iommu_domain_set_gcr3(struct iommu_domain *dom, int pasid, + unsigned long cr3); +extern int amd_iommu_domain_clear_gcr3(struct iommu_domain *dom, int pasid); + #ifndef CONFIG_AMD_IOMMU_STATS |