debugfs.h (724B)
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 7struct dentry; 8struct caam_drv_private; 9 10#ifdef CONFIG_DEBUG_FS 11void caam_debugfs_init(struct caam_drv_private *ctrlpriv, struct dentry *root); 12#else 13static 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) 19void caam_debugfs_qi_congested(void); 20void caam_debugfs_qi_init(struct caam_drv_private *ctrlpriv); 21#else 22static inline void caam_debugfs_qi_congested(void) {} 23static inline void caam_debugfs_qi_init(struct caam_drv_private *ctrlpriv) {} 24#endif 25 26#endif /* CAAM_DEBUGFS_H */