Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) */
0002 /* Copyright 2019 NXP */
0003 
0004 #ifndef CAAM_DEBUGFS_H
0005 #define CAAM_DEBUGFS_H
0006 
0007 struct dentry;
0008 struct caam_drv_private;
0009 
0010 #ifdef CONFIG_DEBUG_FS
0011 void caam_debugfs_init(struct caam_drv_private *ctrlpriv, struct dentry *root);
0012 #else
0013 static inline void caam_debugfs_init(struct caam_drv_private *ctrlpriv,
0014                      struct dentry *root)
0015 {}
0016 #endif
0017 
0018 #if defined(CONFIG_DEBUG_FS) && defined(CONFIG_CAAM_QI)
0019 void caam_debugfs_qi_congested(void);
0020 void caam_debugfs_qi_init(struct caam_drv_private *ctrlpriv);
0021 #else
0022 static inline void caam_debugfs_qi_congested(void) {}
0023 static inline void caam_debugfs_qi_init(struct caam_drv_private *ctrlpriv) {}
0024 #endif
0025 
0026 #endif /* CAAM_DEBUGFS_H */