2020-08-07 02:09:49 +08:00
|
|
|
/* SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) */
|
2023-04-05 17:07:51 +08:00
|
|
|
/* Copyright 2019, 2023 NXP */
|
2020-08-07 02:09:49 +08:00
|
|
|
|
|
|
|
#ifndef CAAM_DEBUGFS_H
|
|
|
|
#define CAAM_DEBUGFS_H
|
|
|
|
|
|
|
|
struct dentry;
|
|
|
|
struct caam_drv_private;
|
2023-04-05 17:07:51 +08:00
|
|
|
struct caam_perfmon;
|
2020-08-07 02:09:49 +08:00
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_FS
|
2023-04-05 17:07:51 +08:00
|
|
|
void caam_debugfs_init(struct caam_drv_private *ctrlpriv,
|
|
|
|
struct caam_perfmon __force *perfmon, struct dentry *root);
|
2020-08-07 02:09:49 +08:00
|
|
|
#else
|
|
|
|
static inline void caam_debugfs_init(struct caam_drv_private *ctrlpriv,
|
2023-04-05 17:07:51 +08:00
|
|
|
struct caam_perfmon __force *perfmon,
|
2020-08-07 02:09:49 +08:00
|
|
|
struct dentry *root)
|
|
|
|
{}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined(CONFIG_DEBUG_FS) && defined(CONFIG_CAAM_QI)
|
|
|
|
void caam_debugfs_qi_congested(void);
|
|
|
|
void caam_debugfs_qi_init(struct caam_drv_private *ctrlpriv);
|
|
|
|
#else
|
|
|
|
static inline void caam_debugfs_qi_congested(void) {}
|
|
|
|
static inline void caam_debugfs_qi_init(struct caam_drv_private *ctrlpriv) {}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* CAAM_DEBUGFS_H */
|