summaryrefslogtreecommitdiffstats
path: root/drivers/iommu/amd_iommu_types.h
diff options
context:
space:
mode:
authorJoerg Roedel2011-11-23 12:36:25 +0100
committerJoerg Roedel2011-12-12 15:19:05 +0100
commitf3572db823decfd747e6afd4c4ddfd67e8af8b6d (patch)
treee806c8acc077ff9a3827f6dc4ab516fb76c65395 /drivers/iommu/amd_iommu_types.h
parentiommu/amd: Implement function to send PPR completions (diff)
downloadkernel-qcow2-linux-f3572db823decfd747e6afd4c4ddfd67e8af8b6d.tar.gz
kernel-qcow2-linux-f3572db823decfd747e6afd4c4ddfd67e8af8b6d.tar.xz
kernel-qcow2-linux-f3572db823decfd747e6afd4c4ddfd67e8af8b6d.zip
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_types.h')
-rw-r--r--drivers/iommu/amd_iommu_types.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/iommu/amd_iommu_types.h b/drivers/iommu/amd_iommu_types.h
index 8e1a6460f683..c39988fbcbbb 100644
--- a/drivers/iommu/amd_iommu_types.h
+++ b/drivers/iommu/amd_iommu_types.h
@@ -360,6 +360,8 @@ struct amd_iommu_fault {
#define PPR_FAULT_RSVD (1 << 7)
#define PPR_FAULT_GN (1 << 8)
+struct iommu_domain;
+
/*
* This structure contains generic data for IOMMU protection domains
* independent of their use.
@@ -379,6 +381,8 @@ struct protection_domain {
unsigned dev_cnt; /* devices assigned to this domain */
unsigned dev_iommu[MAX_IOMMUS]; /* per-IOMMU reference count */
void *priv; /* private data */
+ struct iommu_domain *iommu_domain; /* Pointer to generic
+ domain structure */
};