sparx5_vcap_debugfs.h 729 B

123456789101112131415161718192021222324252627282930313233
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /* Microchip Sparx5 Switch driver VCAP implementation
  3. *
  4. * Copyright (c) 2022 Microchip Technology Inc. and its subsidiaries.
  5. */
  6. #ifndef __SPARX5_VCAP_DEBUGFS_H__
  7. #define __SPARX5_VCAP_DEBUGFS_H__
  8. #include <linux/netdevice.h>
  9. #include <vcap_api.h>
  10. #include <vcap_api_client.h>
  11. #if defined(CONFIG_DEBUG_FS)
  12. /* Provide port information via a callback interface */
  13. int sparx5_port_info(struct net_device *ndev,
  14. struct vcap_admin *admin,
  15. struct vcap_output_print *out);
  16. #else
  17. static inline int sparx5_port_info(struct net_device *ndev,
  18. struct vcap_admin *admin,
  19. struct vcap_output_print *out)
  20. {
  21. return 0;
  22. }
  23. #endif
  24. #endif /* __SPARX5_VCAP_DEBUGFS_H__ */