Rémi Denis-Courmont | 9732d52 | 2008-12-17 15:49:09 -0800 | [diff] [blame] | 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 | |
| 11 | #ifndef __U_PHONET_H |
| 12 | #define __U_PHONET_H |
| 13 | |
| 14 | #include <linux/usb/composite.h> |
| 15 | #include <linux/usb/cdc.h> |
| 16 | |
Andrzej Pietrasiewicz | fcbdf12 | 2013-05-23 10:51:11 +0200 | [diff] [blame] | 17 | struct f_phonet_opts { |
| 18 | struct usb_function_instance func_inst; |
| 19 | bool bound; |
| 20 | struct net_device *net; |
| 21 | }; |
| 22 | |
| 23 | struct net_device *gphonet_setup_default(void); |
| 24 | void gphonet_set_gadget(struct net_device *net, struct usb_gadget *g); |
| 25 | int gphonet_register_netdev(struct net_device *net); |
Andrzej Pietrasiewicz | 0189e63 | 2013-05-23 10:51:10 +0200 | [diff] [blame] | 26 | int phonet_bind_config(struct usb_configuration *c, struct net_device *dev); |
| 27 | void gphonet_cleanup(struct net_device *dev); |
Rémi Denis-Courmont | 9732d52 | 2008-12-17 15:49:09 -0800 | [diff] [blame] | 28 | |
| 29 | #endif /* __U_PHONET_H */ |