debugfs.h 845 B

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