1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /* Copyright (C) 2020 Intel Corporation 3 */ 4 5 #ifndef __UFS_DEBUGFS_H__ 6 #define __UFS_DEBUGFS_H__ 7 8 #include <linux/init.h> 9 #include <linux/types.h> 10 11 struct ufs_hba; 12 13 #ifdef CONFIG_DEBUG_FS 14 void __init ufs_debugfs_init(void); 15 void ufs_debugfs_exit(void); 16 void ufs_debugfs_hba_init(struct ufs_hba *hba); 17 void ufs_debugfs_hba_exit(struct ufs_hba *hba); 18 void ufs_debugfs_exception_event(struct ufs_hba *hba, u16 status); 19 #else 20 static inline void ufs_debugfs_init(void) {} 21 static inline void ufs_debugfs_exit(void) {} 22 static inline void ufs_debugfs_hba_init(struct ufs_hba *hba) {} 23 static inline void ufs_debugfs_hba_exit(struct ufs_hba *hba) {} 24 static inline void ufs_debugfs_exception_event(struct ufs_hba *hba, u16 status) {} 25 #endif 26 27 #endif 28