rmnet_vnd.h 1.2 KB

12345678910111213141516171819202122232425262728293031
  1. /* Copyright (c) 2013-2018, 2020-2021 The Linux Foundation. All rights reserved.
  2. *
  3. * This program is free software; you can redistribute it and/or modify
  4. * it under the terms of the GNU General Public License version 2 and
  5. * only version 2 as published by the Free Software Foundation.
  6. *
  7. * This program is distributed in the hope that it will be useful,
  8. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. * GNU General Public License for more details.
  11. *
  12. * RMNET Data Virtual Network Device APIs
  13. *
  14. */
  15. #ifndef _RMNET_VND_H_
  16. #define _RMNET_VND_H_
  17. int rmnet_vnd_do_flow_control(struct net_device *dev, int enable);
  18. int rmnet_vnd_newlink(u8 id, struct net_device *rmnet_dev,
  19. struct rmnet_port *port,
  20. struct net_device *real_dev,
  21. struct rmnet_endpoint *ep);
  22. int rmnet_vnd_dellink(u8 id, struct rmnet_port *port,
  23. struct rmnet_endpoint *ep);
  24. void rmnet_vnd_rx_fixup(struct net_device *dev, u32 skb_len);
  25. void rmnet_vnd_tx_fixup(struct net_device *dev, u32 skb_len);
  26. u8 rmnet_vnd_get_mux(struct net_device *rmnet_dev);
  27. void rmnet_vnd_setup(struct net_device *dev);
  28. void rmnet_vnd_reset_mac_addr(struct net_device *dev);
  29. #endif /* _RMNET_VND_H_ */