dpaa2-eth-debugfs.h 774 B

12345678910111213141516171819202122232425262728
  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. #include <linux/dcache.h>
  8. struct dpaa2_eth_priv;
  9. struct dpaa2_debugfs {
  10. struct dentry *dir;
  11. };
  12. #ifdef CONFIG_DEBUG_FS
  13. void dpaa2_eth_dbg_init(void);
  14. void dpaa2_eth_dbg_exit(void);
  15. void dpaa2_dbg_add(struct dpaa2_eth_priv *priv);
  16. void dpaa2_dbg_remove(struct dpaa2_eth_priv *priv);
  17. #else
  18. static inline void dpaa2_eth_dbg_init(void) {}
  19. static inline void dpaa2_eth_dbg_exit(void) {}
  20. static inline void dpaa2_dbg_add(struct dpaa2_eth_priv *priv) {}
  21. static inline void dpaa2_dbg_remove(struct dpaa2_eth_priv *priv) {}
  22. #endif /* CONFIG_DEBUG_FS */
  23. #endif /* DPAA2_ETH_DEBUGFS_H */