Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) */
0002 /* Copyright 2015 Freescale Semiconductor Inc.
0003  * Copyright 2018-2019 NXP
0004  */
0005 #ifndef DPAA2_ETH_DEBUGFS_H
0006 #define DPAA2_ETH_DEBUGFS_H
0007 
0008 #include <linux/dcache.h>
0009 
0010 struct dpaa2_eth_priv;
0011 
0012 struct dpaa2_debugfs {
0013     struct dentry *dir;
0014 };
0015 
0016 #ifdef CONFIG_DEBUG_FS
0017 void dpaa2_eth_dbg_init(void);
0018 void dpaa2_eth_dbg_exit(void);
0019 void dpaa2_dbg_add(struct dpaa2_eth_priv *priv);
0020 void dpaa2_dbg_remove(struct dpaa2_eth_priv *priv);
0021 #else
0022 static inline void dpaa2_eth_dbg_init(void) {}
0023 static inline void dpaa2_eth_dbg_exit(void) {}
0024 static inline void dpaa2_dbg_add(struct dpaa2_eth_priv *priv) {}
0025 static inline void dpaa2_dbg_remove(struct dpaa2_eth_priv *priv) {}
0026 #endif /* CONFIG_DEBUG_FS */
0027 
0028 #endif /* DPAA2_ETH_DEBUGFS_H */