summaryrefslogtreecommitdiffstats
path: root/drivers/iommu/amd_iommu_proto.h
diff options
context:
space:
mode:
authorBaoquan He2017-08-09 10:33:33 +0200
committerJoerg Roedel2017-08-15 18:14:38 +0200
commit4c232a708be1047fe26b7c75ceaa5d73deb6a798 (patch)
tree9f17a1d07337472b4113f4e050d1e2bd79c85950 /drivers/iommu/amd_iommu_proto.h
parentLinux 4.13-rc5 (diff)
downloadkernel-qcow2-linux-4c232a708be1047fe26b7c75ceaa5d73deb6a798.tar.gz
kernel-qcow2-linux-4c232a708be1047fe26b7c75ceaa5d73deb6a798.tar.xz
kernel-qcow2-linux-4c232a708be1047fe26b7c75ceaa5d73deb6a798.zip
iommu/amd: Detect pre enabled translation
Add functions to check whether translation is already enabled in IOMMU. Signed-off-by: Baoquan He <bhe@redhat.com> Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/iommu/amd_iommu_proto.h')
-rw-r--r--drivers/iommu/amd_iommu_proto.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/iommu/amd_iommu_proto.h b/drivers/iommu/amd_iommu_proto.h
index 466260f8a1df..a9666d2005bb 100644
--- a/drivers/iommu/amd_iommu_proto.h
+++ b/drivers/iommu/amd_iommu_proto.h
@@ -87,4 +87,5 @@ static inline bool iommu_feature(struct amd_iommu *iommu, u64 f)
return !!(iommu->features & f);
}
+extern bool translation_pre_enabled(struct amd_iommu *iommu);
#endif /* _ASM_X86_AMD_IOMMU_PROTO_H */