1 /* 2 * Copyright (c) 2017 Intel Corporation 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 /* 8 * USB definitions 9 */ 10 11 #define CDC_ECM_INT_EP_ADDR 0x83 12 #define CDC_ECM_IN_EP_ADDR 0x82 13 #define CDC_ECM_OUT_EP_ADDR 0x01 14 15 #define CDC_EEM_OUT_EP_ADDR 0x01 16 #define CDC_EEM_IN_EP_ADDR 0x82 17 18 #define RNDIS_INT_EP_ADDR 0x83 19 #define RNDIS_IN_EP_ADDR 0x82 20 #define RNDIS_OUT_EP_ADDR 0x01 21 22 struct netusb_function { 23 int (*connect_media)(bool status); 24 int (*send_pkt)(struct net_pkt *pkt); 25 }; 26 27 struct net_if *netusb_net_iface(void); 28 void netusb_recv(struct net_pkt *pkt); 29 30 void netusb_enable(const struct netusb_function *func); 31 void netusb_disable(void); 32 bool netusb_enabled(void); 33