WIP FPC-III support
[linux/fpc-iii.git] / drivers / net / ethernet / freescale / dpaa2 / dpaa2-eth-debugfs.h
blob15598b28f03b9debf6ce8a4d6bf32c93804f4de2
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
8 #include <linux/dcache.h>
10 struct dpaa2_eth_priv;
12 struct dpaa2_debugfs {
13 struct dentry *dir;
16 #ifdef CONFIG_DEBUG_FS
17 void dpaa2_eth_dbg_init(void);
18 void dpaa2_eth_dbg_exit(void);
19 void dpaa2_dbg_add(struct dpaa2_eth_priv *priv);
20 void dpaa2_dbg_remove(struct dpaa2_eth_priv *priv);
21 #else
22 static inline void dpaa2_eth_dbg_init(void) {}
23 static inline void dpaa2_eth_dbg_exit(void) {}
24 static inline void dpaa2_dbg_add(struct dpaa2_eth_priv *priv) {}
25 static inline void dpaa2_dbg_remove(struct dpaa2_eth_priv *priv) {}
26 #endif /* CONFIG_DEBUG_FS */
28 #endif /* DPAA2_ETH_DEBUGFS_H */