Adrian Hunter | b6cacaf | 2021-01-07 09:25:38 +0200 | [diff] [blame] | 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 | struct ufs_hba; |
| 9 | |
| 10 | #ifdef CONFIG_DEBUG_FS |
| 11 | void __init ufs_debugfs_init(void); |
Asutosh Das | b294ff3 | 2021-04-23 17:20:16 -0700 | [diff] [blame] | 12 | void ufs_debugfs_exit(void); |
Adrian Hunter | b6cacaf | 2021-01-07 09:25:38 +0200 | [diff] [blame] | 13 | void ufs_debugfs_hba_init(struct ufs_hba *hba); |
| 14 | void ufs_debugfs_hba_exit(struct ufs_hba *hba); |
Adrian Hunter | 7deedfd | 2021-02-09 08:24:37 +0200 | [diff] [blame] | 15 | void ufs_debugfs_exception_event(struct ufs_hba *hba, u16 status); |
Adrian Hunter | b6cacaf | 2021-01-07 09:25:38 +0200 | [diff] [blame] | 16 | #else |
| 17 | static inline void ufs_debugfs_init(void) {} |
| 18 | static inline void ufs_debugfs_exit(void) {} |
| 19 | static inline void ufs_debugfs_hba_init(struct ufs_hba *hba) {} |
| 20 | static inline void ufs_debugfs_hba_exit(struct ufs_hba *hba) {} |
Adrian Hunter | 7deedfd | 2021-02-09 08:24:37 +0200 | [diff] [blame] | 21 | static inline void ufs_debugfs_exception_event(struct ufs_hba *hba, u16 status) {} |
Adrian Hunter | b6cacaf | 2021-01-07 09:25:38 +0200 | [diff] [blame] | 22 | #endif |
| 23 | |
| 24 | #endif |