diff options
author | Joerg Roedel <joerg.roedel@amd.com> | 2011-11-28 15:11:02 +0100 |
---|---|---|
committer | Joerg Roedel <joerg.roedel@amd.com> | 2011-12-12 14:54:52 +0100 |
commit | 400a28a05f2cc1a311acb4ff6ac64d8402d21678 (patch) | |
tree | 4dca7cd2b8610ca0bb5ea7a7df4a0af995aa733b /drivers/iommu/amd_iommu_proto.h | |
parent | iommu/amd: Enable GT mode when supported by IOMMU (diff) | |
download | linux-400a28a05f2cc1a311acb4ff6ac64d8402d21678.tar.xz linux-400a28a05f2cc1a311acb4ff6ac64d8402d21678.zip |
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); extern void amd_iommu_uninit_devices(void); extern void amd_iommu_init_notifier(void); extern void amd_iommu_init_api(void); + +extern bool amd_iommu_v2_supported(void); + #ifndef CONFIG_AMD_IOMMU_STATS static inline void amd_iommu_stats_init(void) { } |