diff options
author | Joerg Roedel <jroedel@suse.de> | 2017-02-01 07:23:08 -0500 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2017-02-10 07:44:57 -0500 |
commit | b0119e870837dcd15a207b4701542ebac5d19b45 (patch) | |
tree | 07c547fed49f739a7d9b4a64c8163d9908db48e2 /include/linux/intel-iommu.h | |
parent | c09e22d5370739e16463c113525df51b5980b1d5 (diff) |
iommu: Introduce new 'struct iommu_device'
This struct represents one hardware iommu in the iommu core
code. For now it only has the iommu-ops associated with it,
but that will be extended soon.
The register/unregister interface is also added, as well as
making use of it in the Intel and AMD IOMMU drivers.
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'include/linux/intel-iommu.h')
-rw-r--r-- | include/linux/intel-iommu.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/intel-iommu.h b/include/linux/intel-iommu.h index d49e26c6cdc7..99a65a397861 100644 --- a/include/linux/intel-iommu.h +++ b/include/linux/intel-iommu.h | |||
@@ -29,6 +29,7 @@ | |||
29 | #include <linux/dma_remapping.h> | 29 | #include <linux/dma_remapping.h> |
30 | #include <linux/mmu_notifier.h> | 30 | #include <linux/mmu_notifier.h> |
31 | #include <linux/list.h> | 31 | #include <linux/list.h> |
32 | #include <linux/iommu.h> | ||
32 | #include <asm/cacheflush.h> | 33 | #include <asm/cacheflush.h> |
33 | #include <asm/iommu.h> | 34 | #include <asm/iommu.h> |
34 | 35 | ||
@@ -440,6 +441,7 @@ struct intel_iommu { | |||
440 | struct irq_domain *ir_msi_domain; | 441 | struct irq_domain *ir_msi_domain; |
441 | #endif | 442 | #endif |
442 | struct device *iommu_dev; /* IOMMU-sysfs device */ | 443 | struct device *iommu_dev; /* IOMMU-sysfs device */ |
444 | struct iommu_device iommu; /* IOMMU core code handle */ | ||
443 | int node; | 445 | int node; |
444 | u32 flags; /* Software defined flags */ | 446 | u32 flags; /* Software defined flags */ |
445 | }; | 447 | }; |