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