rmnet_ctl_client.h 661 B

123456789101112131415161718192021222324252627282930
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /* Copyright (c) 2019-2020, The Linux Foundation. All rights reserved.
  3. *
  4. * RMNET_CTL client handlers
  5. *
  6. */
  7. #ifndef _RMNET_CTL_CLIENT_H_
  8. #define _RMNET_CTL_CLIENT_H_
  9. #include <linux/skbuff.h>
  10. struct rmnet_ctl_stats {
  11. u64 rx_pkts;
  12. u64 rx_err;
  13. u64 tx_pkts;
  14. u64 tx_err;
  15. u64 tx_complete;
  16. };
  17. struct rmnet_ctl_dev {
  18. int (*xmit)(struct rmnet_ctl_dev *dev, struct sk_buff *skb);
  19. struct rmnet_ctl_stats stats;
  20. };
  21. void rmnet_ctl_endpoint_post(const void *data, size_t len);
  22. void rmnet_ctl_endpoint_setdev(const struct rmnet_ctl_dev *dev);
  23. void rmnet_ctl_set_dbgfs(bool enable);
  24. #endif /* _RMNET_CTL_CLIENT_H_ */