2021-01-07 15:25:38 +08:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 */
|
|
|
|
/* Copyright (C) 2020 Intel Corporation
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __UFS_DEBUGFS_H__
|
|
|
|
#define __UFS_DEBUGFS_H__
|
|
|
|
|
|
|
|
struct ufs_hba;
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_FS
|
|
|
|
void __init ufs_debugfs_init(void);
|
2021-04-24 08:20:16 +08:00
|
|
|
void ufs_debugfs_exit(void);
|
2021-01-07 15:25:38 +08:00
|
|
|
void ufs_debugfs_hba_init(struct ufs_hba *hba);
|
|
|
|
void ufs_debugfs_hba_exit(struct ufs_hba *hba);
|
2021-02-09 14:24:37 +08:00
|
|
|
void ufs_debugfs_exception_event(struct ufs_hba *hba, u16 status);
|
2021-01-07 15:25:38 +08:00
|
|
|
#else
|
|
|
|
static inline void ufs_debugfs_init(void) {}
|
|
|
|
static inline void ufs_debugfs_exit(void) {}
|
|
|
|
static inline void ufs_debugfs_hba_init(struct ufs_hba *hba) {}
|
|
|
|
static inline void ufs_debugfs_hba_exit(struct ufs_hba *hba) {}
|
2021-02-09 14:24:37 +08:00
|
|
|
static inline void ufs_debugfs_exception_event(struct ufs_hba *hba, u16 status) {}
|
2021-01-07 15:25:38 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|