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 * This software is distributed under the terms of the GNU General 8 * Public License ("GPL") as published by the Free Software Foundation, 9 * either version 2 of that License or (at your option) any later version. 10 */ 11 12 #ifndef __U_PHONET_H 13 #define __U_PHONET_H 14 15 #include <linux/usb/composite.h> 16 #include <linux/usb/cdc.h> 17 18 struct f_phonet_opts { 19 struct usb_function_instance func_inst; 20 bool bound; 21 struct net_device *net; 22 }; 23 24 struct net_device *gphonet_setup_default(void); 25 void gphonet_set_gadget(struct net_device *net, struct usb_gadget *g); 26 int gphonet_register_netdev(struct net_device *net); 27 int phonet_bind_config(struct usb_configuration *c, struct net_device *dev); 28 void gphonet_cleanup(struct net_device *dev); 29 30 #endif /* __U_PHONET_H */ 31