diff options
author | Vakul Garg <vakul.garg@nxp.com> | 2019-07-23 11:14:24 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2019-08-02 06:44:01 +0200 |
commit | 1c0ab408bb6e16285fcddc9b4ce74507081d053f (patch) | |
tree | 9895825ec896101e658daa1ef3bcdc42145b7c36 /drivers/crypto/caam/dpseci-debugfs.h | |
parent | crypto: qat - Silence smp_processor_id() warning (diff) | |
download | linux-1c0ab408bb6e16285fcddc9b4ce74507081d053f.tar.xz linux-1c0ab408bb6e16285fcddc9b4ce74507081d053f.zip |
crypto: caam/qi2 - Add printing dpseci fq stats using debugfs
Add support of printing the dpseci frame queue statistics using debugfs.
Signed-off-by: Vakul Garg <vakul.garg@nxp.com>
Reviewed-by: Horia Geantă <horia.geanta@nxp.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/caam/dpseci-debugfs.h')
-rw-r--r-- | drivers/crypto/caam/dpseci-debugfs.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/drivers/crypto/caam/dpseci-debugfs.h b/drivers/crypto/caam/dpseci-debugfs.h new file mode 100644 index 000000000000..bc22af7bec37 --- /dev/null +++ b/drivers/crypto/caam/dpseci-debugfs.h @@ -0,0 +1,18 @@ +/* SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) */ +/* Copyright 2019 NXP */ + +#ifndef DPSECI_DEBUGFS_H +#define DPSECI_DEBUGFS_H + +#include <linux/dcache.h> +#include "caamalg_qi2.h" + +#ifdef CONFIG_DEBUG_FS +void dpaa2_dpseci_debugfs_init(struct dpaa2_caam_priv *priv); +void dpaa2_dpseci_debugfs_exit(struct dpaa2_caam_priv *priv); +#else +static inline void dpaa2_dpseci_debugfs_init(struct dpaa2_caam_priv *priv) {} +static inline void dpaa2_dpseci_debugfs_exit(struct dpaa2_caam_priv *priv) {} +#endif /* CONFIG_DEBUG_FS */ + +#endif /* DPSECI_DEBUGFS_H */ |