summaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/amd_iommu_types.h
diff options
context:
space:
mode:
authorJoerg Roedel2008-12-02 17:56:36 +0100
committerJoerg Roedel2009-01-03 14:11:54 +0100
commit863c74ebd0152b21bc4b11c1447b5d1429287d37 (patch)
treea679b7a5754e365635b000fe4b529e181d773e02 /arch/x86/include/asm/amd_iommu_types.h
parentAMD IOMMU: add checks for dma_ops domain to dma_ops functions (diff)
downloadkernel-qcow2-linux-863c74ebd0152b21bc4b11c1447b5d1429287d37.tar.gz
kernel-qcow2-linux-863c74ebd0152b21bc4b11c1447b5d1429287d37.tar.xz
kernel-qcow2-linux-863c74ebd0152b21bc4b11c1447b5d1429287d37.zip
AMD IOMMU: add device reference counting for protection domains
Impact: know how many devices are assigned to a domain Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Diffstat (limited to 'arch/x86/include/asm/amd_iommu_types.h')
-rw-r--r--arch/x86/include/asm/amd_iommu_types.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/include/asm/amd_iommu_types.h b/arch/x86/include/asm/amd_iommu_types.h
index 4862a5be899c..1c769f4e6cdf 100644
--- a/arch/x86/include/asm/amd_iommu_types.h
+++ b/arch/x86/include/asm/amd_iommu_types.h
@@ -203,6 +203,7 @@ struct protection_domain {
int mode; /* paging mode (0-6 levels) */
u64 *pt_root; /* page table root pointer */
unsigned long flags; /* flags to find out type of domain */
+ unsigned dev_cnt; /* devices assigned to this domain */
void *priv; /* private data */
};