blob: d5dc4f6317eb1bd0ed9297e44e398239b470b382 [file] [log] [blame]
/*
* Copyright (c) 2017 Intel Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/
/*
* USB definitions
*/
#define CDC_ECM_INT_EP_ADDR 0x83
#define CDC_ECM_IN_EP_ADDR 0x82
#define CDC_ECM_OUT_EP_ADDR 0x01
#define CDC_EEM_OUT_EP_ADDR 0x01
#define CDC_EEM_IN_EP_ADDR 0x82
#define RNDIS_INT_EP_ADDR 0x83
#define RNDIS_IN_EP_ADDR 0x82
#define RNDIS_OUT_EP_ADDR 0x01
struct netusb_function {
int (*connect_media)(bool status);
int (*send_pkt)(struct net_pkt *pkt);
};
struct net_if *netusb_net_iface(void);
void netusb_recv(struct net_pkt *pkt);
void netusb_enable(const struct netusb_function *func);
void netusb_disable(void);
bool netusb_enabled(void);