u_phonet.h 844 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. * u_phonet.h - interface to Phonet
  3. *
  4. * Copyright (C) 2007-2008 by Nokia Corporation
  5. *
  6. * This software is distributed under the terms of the GNU General
  7. * Public License ("GPL") as published by the Free Software Foundation,
  8. * either version 2 of that License or (at your option) any later version.
  9. */
  10. #ifndef __U_PHONET_H
  11. #define __U_PHONET_H
  12. #include <linux/usb/composite.h>
  13. #include <linux/usb/cdc.h>
  14. struct f_phonet_opts {
  15. struct usb_function_instance func_inst;
  16. bool bound;
  17. struct net_device *net;
  18. };
  19. struct net_device *gphonet_setup_default(void);
  20. void gphonet_set_gadget(struct net_device *net, struct usb_gadget *g);
  21. int gphonet_register_netdev(struct net_device *net);
  22. int phonet_bind_config(struct usb_configuration *c, struct net_device *dev);
  23. void gphonet_cleanup(struct net_device *dev);
  24. #endif /* __U_PHONET_H */