u_phonet.h 590 B

12345678910111213141516171819202122232425
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * u_phonet.h - interface to Phonet
  4. *
  5. * Copyright (C) 2007-2008 by Nokia Corporation
  6. */
  7. #ifndef __U_PHONET_H
  8. #define __U_PHONET_H
  9. #include <linux/usb/composite.h>
  10. #include <linux/usb/cdc.h>
  11. struct f_phonet_opts {
  12. struct usb_function_instance func_inst;
  13. bool bound;
  14. struct net_device *net;
  15. };
  16. struct net_device *gphonet_setup_default(void);
  17. void gphonet_set_gadget(struct net_device *net, struct usb_gadget *g);
  18. int gphonet_register_netdev(struct net_device *net);
  19. void gphonet_cleanup(struct net_device *dev);
  20. #endif /* __U_PHONET_H */