162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
262306a36Sopenharmony_ci/* Copyright (C) 2020 Intel Corporation
362306a36Sopenharmony_ci */
462306a36Sopenharmony_ci
562306a36Sopenharmony_ci#ifndef __UFS_DEBUGFS_H__
662306a36Sopenharmony_ci#define __UFS_DEBUGFS_H__
762306a36Sopenharmony_ci
862306a36Sopenharmony_cistruct ufs_hba;
962306a36Sopenharmony_ci
1062306a36Sopenharmony_ci#ifdef CONFIG_DEBUG_FS
1162306a36Sopenharmony_civoid __init ufs_debugfs_init(void);
1262306a36Sopenharmony_civoid ufs_debugfs_exit(void);
1362306a36Sopenharmony_civoid ufs_debugfs_hba_init(struct ufs_hba *hba);
1462306a36Sopenharmony_civoid ufs_debugfs_hba_exit(struct ufs_hba *hba);
1562306a36Sopenharmony_civoid ufs_debugfs_exception_event(struct ufs_hba *hba, u16 status);
1662306a36Sopenharmony_ci#else
1762306a36Sopenharmony_cistatic inline void ufs_debugfs_init(void) {}
1862306a36Sopenharmony_cistatic inline void ufs_debugfs_exit(void) {}
1962306a36Sopenharmony_cistatic inline void ufs_debugfs_hba_init(struct ufs_hba *hba) {}
2062306a36Sopenharmony_cistatic inline void ufs_debugfs_hba_exit(struct ufs_hba *hba) {}
2162306a36Sopenharmony_cistatic inline void ufs_debugfs_exception_event(struct ufs_hba *hba, u16 status) {}
2262306a36Sopenharmony_ci#endif
2362306a36Sopenharmony_ci
2462306a36Sopenharmony_ci#endif
25