Loading...
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
8#ifndef __U_PHONET_H
9#define __U_PHONET_H
10
11#include <linux/usb/composite.h>
12#include <linux/usb/cdc.h>
13
14struct f_phonet_opts {
15 struct usb_function_instance func_inst;
16 bool bound;
17 struct net_device *net;
18};
19
20struct net_device *gphonet_setup_default(void);
21void gphonet_set_gadget(struct net_device *net, struct usb_gadget *g);
22int gphonet_register_netdev(struct net_device *net);
23void gphonet_cleanup(struct net_device *dev);
24
25#endif /* __U_PHONET_H */
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
8#ifndef __U_PHONET_H
9#define __U_PHONET_H
10
11#include <linux/usb/composite.h>
12#include <linux/usb/cdc.h>
13
14struct f_phonet_opts {
15 struct usb_function_instance func_inst;
16 bool bound;
17 struct net_device *net;
18};
19
20struct net_device *gphonet_setup_default(void);
21void gphonet_set_gadget(struct net_device *net, struct usb_gadget *g);
22int gphonet_register_netdev(struct net_device *net);
23int phonet_bind_config(struct usb_configuration *c, struct net_device *dev);
24void gphonet_cleanup(struct net_device *dev);
25
26#endif /* __U_PHONET_H */