ufs-debugfs.h 727 B

123456789101112131415161718192021222324
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /* Copyright (C) 2020 Intel Corporation
  3. */
  4. #ifndef __UFS_DEBUGFS_H__
  5. #define __UFS_DEBUGFS_H__
  6. struct ufs_hba;
  7. #ifdef CONFIG_DEBUG_FS
  8. void __init ufs_debugfs_init(void);
  9. void ufs_debugfs_exit(void);
  10. void ufs_debugfs_hba_init(struct ufs_hba *hba);
  11. void ufs_debugfs_hba_exit(struct ufs_hba *hba);
  12. void ufs_debugfs_exception_event(struct ufs_hba *hba, u16 status);
  13. #else
  14. static inline void ufs_debugfs_init(void) {}
  15. static inline void ufs_debugfs_exit(void) {}
  16. static inline void ufs_debugfs_hba_init(struct ufs_hba *hba) {}
  17. static inline void ufs_debugfs_hba_exit(struct ufs_hba *hba) {}
  18. static inline void ufs_debugfs_exception_event(struct ufs_hba *hba, u16 status) {}
  19. #endif
  20. #endif