aboutsummaryrefslogtreecommitdiff
path: root/drivers/iommu/amd_iommu_proto.h
diff options
context:
space:
mode:
authorJoerg Roedel <joerg.roedel@amd.com>2011-11-21 16:50:23 +0100
committerJoerg Roedel <joerg.roedel@amd.com>2011-12-12 15:19:04 +0100
commitb16137b11b4b4d4bb27b61bba7e05f5fda5968f4 (patch)
tree617f9ae09eaa6b9a4e1f31c1ad73110110a72056 /drivers/iommu/amd_iommu_proto.h
parent22e266c79b5bd5441243863c89ea237e6e845295 (diff)
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.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/iommu/amd_iommu_proto.h b/drivers/iommu/amd_iommu_proto.h
index a92dc6117e2..a951a7090e3 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