diff options
author | Joerg Roedel <joerg.roedel@amd.com> | 2011-11-17 08:18:46 -0500 |
---|---|---|
committer | Joerg Roedel <joerg.roedel@amd.com> | 2011-12-12 08:55:13 -0500 |
commit | 132bd68f180dd5de9176e20532910503f6393f14 (patch) | |
tree | 1fc1a0f0417427a47c6d352a3969ca1e1bf9f5fc /drivers/iommu/amd_iommu_proto.h | |
parent | 72e1dcc4192288ad5e37888aa1dbb23b3ef4aa9a (diff) |
iommu/amd: Add amd_iommu_domain_direct_map function
This function can be used to switch a domain into
paging-mode 0. In this mode all devices can access physical
system memory directly without any remapping.
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 cfe2dfc64523..2c4554e963c7 100644 --- a/drivers/iommu/amd_iommu_proto.h +++ b/drivers/iommu/amd_iommu_proto.h | |||
@@ -33,9 +33,12 @@ extern void amd_iommu_init_notifier(void); | |||
33 | extern void amd_iommu_init_api(void); | 33 | extern void amd_iommu_init_api(void); |
34 | 34 | ||
35 | /* IOMMUv2 specific functions */ | 35 | /* IOMMUv2 specific functions */ |
36 | struct iommu_domain; | ||
37 | |||
36 | extern bool amd_iommu_v2_supported(void); | 38 | extern bool amd_iommu_v2_supported(void); |
37 | extern int amd_iommu_register_ppr_notifier(struct notifier_block *nb); | 39 | extern int amd_iommu_register_ppr_notifier(struct notifier_block *nb); |
38 | extern int amd_iommu_unregister_ppr_notifier(struct notifier_block *nb); | 40 | extern int amd_iommu_unregister_ppr_notifier(struct notifier_block *nb); |
41 | extern void amd_iommu_domain_direct_map(struct iommu_domain *dom); | ||
39 | 42 | ||
40 | #ifndef CONFIG_AMD_IOMMU_STATS | 43 | #ifndef CONFIG_AMD_IOMMU_STATS |
41 | 44 | ||