diff options
author | Gary R Hook <gary.hook@amd.com> | 2018-06-12 23:41:30 +0200 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2018-07-06 14:06:30 +0200 |
commit | 7d0f5fd3e4d687424cc2ab68b55472e328e2ee0a (patch) | |
tree | 4005d7036fae71fcef2dc6c93f7e653d8f75a546 /drivers/iommu/amd_iommu_proto.h | |
parent | iommu: Enable debugfs exposure of IOMMU driver internals (diff) | |
download | linux-7d0f5fd3e4d687424cc2ab68b55472e328e2ee0a.tar.xz linux-7d0f5fd3e4d687424cc2ab68b55472e328e2ee0a.zip |
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.h | 6 |
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); |