| 1 |
|
| 2 |
|
| 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_CRYPTO_DEV_FSL_CAAM_CRYPTO_API_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
|