diff options
author | Joerg Roedel <joerg.roedel@amd.com> | 2011-11-28 09:11:02 -0500 |
---|---|---|
committer | Joerg Roedel <joerg.roedel@amd.com> | 2011-12-12 08:54:52 -0500 |
commit | 400a28a05f2cc1a311acb4ff6ac64d8402d21678 (patch) | |
tree | 4dca7cd2b8610ca0bb5ea7a7df4a0af995aa733b /drivers/iommu/amd_iommu_proto.h | |
parent | cbc33a9085995e21f52a66380d108d64916b6787 (diff) |
iommu/amd: Add iommuv2 flag to struct amd_iommu
In mixed IOMMU setups this flag inidicates whether an IOMMU
supports the v2 features or not. This patch also adds a
global flag together with a function to query that flag from
other code. The flag shows if at least one IOMMUv2 is in the
system.
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 | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/iommu/amd_iommu_proto.h b/drivers/iommu/amd_iommu_proto.h index 7ffaa64410b0..3a46c300dffb 100644 --- a/drivers/iommu/amd_iommu_proto.h +++ b/drivers/iommu/amd_iommu_proto.h | |||
@@ -31,6 +31,9 @@ extern int amd_iommu_init_devices(void); | |||
31 | extern void amd_iommu_uninit_devices(void); | 31 | extern void amd_iommu_uninit_devices(void); |
32 | extern void amd_iommu_init_notifier(void); | 32 | extern void amd_iommu_init_notifier(void); |
33 | extern void amd_iommu_init_api(void); | 33 | extern void amd_iommu_init_api(void); |
34 | |||
35 | extern bool amd_iommu_v2_supported(void); | ||
36 | |||
34 | #ifndef CONFIG_AMD_IOMMU_STATS | 37 | #ifndef CONFIG_AMD_IOMMU_STATS |
35 | 38 | ||
36 | static inline void amd_iommu_stats_init(void) { } | 39 | static inline void amd_iommu_stats_init(void) { } |