162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0+ */ 262306a36Sopenharmony_ci/* 362306a36Sopenharmony_ci * u_phonet.h - interface to Phonet 462306a36Sopenharmony_ci * 562306a36Sopenharmony_ci * Copyright (C) 2007-2008 by Nokia Corporation 662306a36Sopenharmony_ci */ 762306a36Sopenharmony_ci 862306a36Sopenharmony_ci#ifndef __U_PHONET_H 962306a36Sopenharmony_ci#define __U_PHONET_H 1062306a36Sopenharmony_ci 1162306a36Sopenharmony_ci#include <linux/usb/composite.h> 1262306a36Sopenharmony_ci#include <linux/usb/cdc.h> 1362306a36Sopenharmony_ci 1462306a36Sopenharmony_cistruct f_phonet_opts { 1562306a36Sopenharmony_ci struct usb_function_instance func_inst; 1662306a36Sopenharmony_ci bool bound; 1762306a36Sopenharmony_ci struct net_device *net; 1862306a36Sopenharmony_ci}; 1962306a36Sopenharmony_ci 2062306a36Sopenharmony_cistruct net_device *gphonet_setup_default(void); 2162306a36Sopenharmony_civoid gphonet_set_gadget(struct net_device *net, struct usb_gadget *g); 2262306a36Sopenharmony_ciint gphonet_register_netdev(struct net_device *net); 2362306a36Sopenharmony_civoid gphonet_cleanup(struct net_device *dev); 2462306a36Sopenharmony_ci 2562306a36Sopenharmony_ci#endif /* __U_PHONET_H */ 26