u_phonet.h 664 B

123456789101112131415161718192021222324252627
  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. int phonet_bind_config(struct usb_configuration *c, struct net_device *dev);
  20. void gphonet_cleanup(struct net_device *dev);
  21. #endif /* __U_PHONET_H */