summaryrefslogtreecommitdiff
path: root/drivers/iommu/amd_iommu_proto.h
diff options
context:
space:
mode:
authorGary R Hook <gary.hook@amd.com>2018-06-12 16:41:30 -0500
committerJoerg Roedel <jroedel@suse.de>2018-07-06 14:06:30 +0200
commit7d0f5fd3e4d687424cc2ab68b55472e328e2ee0a (patch)
tree4005d7036fae71fcef2dc6c93f7e653d8f75a546 /drivers/iommu/amd_iommu_proto.h
parentbad614b24293ae463e74d2465685f0e4e229baca (diff)
downloadlinux-7d0f5fd3e4d687424cc2ab68b55472e328e2ee0a.tar.gz
iommu/amd: Add basic debugfs infrastructure for AMD IOMMU
Implement a skeleton framework for debugfs support in the AMD IOMMU. Add an AMD-specific Kconfig boolean that depends upon general enablement of DebugFS in the IOMMU. Signed-off-by: Gary R Hook <gary.hook@amd.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.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/iommu/amd_iommu_proto.h b/drivers/iommu/amd_iommu_proto.h
index 640c286a0ab9..a8cd0296fb16 100644
--- a/drivers/iommu/amd_iommu_proto.h
+++ b/drivers/iommu/amd_iommu_proto.h
@@ -33,6 +33,12 @@ extern void amd_iommu_uninit_devices(void);
extern void amd_iommu_init_notifier(void);
extern int amd_iommu_init_api(void);
+#ifdef CONFIG_AMD_IOMMU_DEBUGFS
+void amd_iommu_debugfs_setup(struct amd_iommu *iommu);
+#else
+static inline void amd_iommu_debugfs_setup(struct amd_iommu *iommu) {}
+#endif
+
/* Needed for interrupt remapping */
extern int amd_iommu_prepare(void);
extern int amd_iommu_enable(void);