1 /* SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) */
2 /* Copyright 2015 Freescale Semiconductor Inc.
3  * Copyright 2018-2019 NXP
4  */
5 #ifndef DPAA2_ETH_DEBUGFS_H
6 #define DPAA2_ETH_DEBUGFS_H
7 
8 #include <linux/dcache.h>
9 
10 struct dpaa2_eth_priv;
11 
12 struct dpaa2_debugfs {
13 	struct dentry *dir;
14 	struct dentry *fq_stats;
15 	struct dentry *ch_stats;
16 	struct dentry *cpu_stats;
17 };
18 
19 #ifdef CONFIG_DEBUG_FS
20 void dpaa2_eth_dbg_init(void);
21 void dpaa2_eth_dbg_exit(void);
22 void dpaa2_dbg_add(struct dpaa2_eth_priv *priv);
23 void dpaa2_dbg_remove(struct dpaa2_eth_priv *priv);
24 #else
25 static inline void dpaa2_eth_dbg_init(void) {}
26 static inline void dpaa2_eth_dbg_exit(void) {}
27 static inline void dpaa2_dbg_add(struct dpaa2_eth_priv *priv) {}
28 static inline void dpaa2_dbg_remove(struct dpaa2_eth_priv *priv) {}
29 #endif /* CONFIG_DEBUG_FS */
30 
31 #endif /* DPAA2_ETH_DEBUGFS_H */
32