xref: /openbmc/linux/drivers/crypto/caam/debugfs.h (revision f5ad1c74)
1 /* SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) */
2 /* Copyright 2019 NXP */
3 
4 #ifndef CAAM_DEBUGFS_H
5 #define CAAM_DEBUGFS_H
6 
7 struct dentry;
8 struct caam_drv_private;
9 
10 #ifdef CONFIG_DEBUG_FS
11 void caam_debugfs_init(struct caam_drv_private *ctrlpriv, struct dentry *root);
12 #else
13 static inline void caam_debugfs_init(struct caam_drv_private *ctrlpriv,
14 				     struct dentry *root)
15 {}
16 #endif
17 
18 #if defined(CONFIG_DEBUG_FS) && defined(CONFIG_CAAM_QI)
19 void caam_debugfs_qi_congested(void);
20 void caam_debugfs_qi_init(struct caam_drv_private *ctrlpriv);
21 #else
22 static inline void caam_debugfs_qi_congested(void) {}
23 static inline void caam_debugfs_qi_init(struct caam_drv_private *ctrlpriv) {}
24 #endif
25 
26 #endif /* CAAM_DEBUGFS_H */
27