1 | /* SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) */ |
2 | /* Copyright 2019, 2023 NXP */ |
3 | |
4 | #ifndef CAAM_DEBUGFS_H |
5 | #define CAAM_DEBUGFS_H |
6 | |
7 | struct dentry; |
8 | struct caam_drv_private; |
9 | struct caam_perfmon; |
10 | |
11 | #ifdef CONFIG_DEBUG_FS |
12 | void caam_debugfs_init(struct caam_drv_private *ctrlpriv, |
13 | struct caam_perfmon __force *perfmon, struct dentry *root); |
14 | #else |
15 | static inline void caam_debugfs_init(struct caam_drv_private *ctrlpriv, |
16 | struct caam_perfmon __force *perfmon, |
17 | struct dentry *root) |
18 | {} |
19 | #endif |
20 | |
21 | #if defined(CONFIG_DEBUG_FS) && defined(CONFIG_CAAM_QI) |
22 | void caam_debugfs_qi_congested(void); |
23 | void caam_debugfs_qi_init(struct caam_drv_private *ctrlpriv); |
24 | #else |
25 | static inline void caam_debugfs_qi_congested(void) {} |
26 | static inline void caam_debugfs_qi_init(struct caam_drv_private *ctrlpriv) {} |
27 | #endif |
28 | |
29 | #endif /* CAAM_DEBUGFS_H */ |
30 | |