diff options
author | Joerg Roedel <joerg.roedel@amd.com> | 2011-11-23 12:36:25 +0100 |
---|---|---|
committer | Joerg Roedel <joerg.roedel@amd.com> | 2011-12-12 15:19:05 +0100 |
commit | f3572db823decfd747e6afd4c4ddfd67e8af8b6d (patch) | |
tree | e806c8acc077ff9a3827f6dc4ab516fb76c65395 /drivers/iommu/amd_iommu_proto.h | |
parent | c99afa25b67339b5fa7ef3767398878be9f60e1f (diff) | |
download | op-kernel-dev-f3572db823decfd747e6afd4c4ddfd67e8af8b6d.zip op-kernel-dev-f3572db823decfd747e6afd4c4ddfd67e8af8b6d.tar.gz |
iommu/amd: Add function to get IOMMUv2 domain for pdev
The AMD IOMMUv2 driver needs to get the IOMMUv2 domain
associated with a particular device. This patch adds a
function to get this information.
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 | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/iommu/amd_iommu_proto.h b/drivers/iommu/amd_iommu_proto.h index bb5ecfe..1a7f41c 100644 --- a/drivers/iommu/amd_iommu_proto.h +++ b/drivers/iommu/amd_iommu_proto.h @@ -46,6 +46,7 @@ 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); +extern struct iommu_domain *amd_iommu_get_v2_domain(struct pci_dev *pdev); #define PPR_SUCCESS 0x0 #define PPR_INVALID 0x1 |