diff options
author | Baoquan He <bhe@redhat.com> | 2017-08-09 11:33:33 +0300 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2017-08-15 19:14:38 +0300 |
commit | 4c232a708be1047fe26b7c75ceaa5d73deb6a798 (patch) | |
tree | 9f17a1d07337472b4113f4e050d1e2bd79c85950 /drivers/iommu/amd_iommu_proto.h | |
parent | ef954844c7ace62f773f4f23e28d2d915adc419f (diff) | |
download | linux-4c232a708be1047fe26b7c75ceaa5d73deb6a798.tar.xz |
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.h | 1 |
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 */ |