Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/usb/net/if_urndis.c
Show First 20 Lines • Show All 90 Lines • ▼ Show 20 Lines | static uint32_t urndis_ctrl_handle_query(struct urndis_softc *sc, | ||||
uint16_t *bufsz); | uint16_t *bufsz); | ||||
static uint32_t urndis_ctrl_handle_reset(struct urndis_softc *sc, | static uint32_t urndis_ctrl_handle_reset(struct urndis_softc *sc, | ||||
const struct rndis_comp_hdr *hdr); | const struct rndis_comp_hdr *hdr); | ||||
static uint32_t urndis_ctrl_init(struct urndis_softc *sc); | static uint32_t urndis_ctrl_init(struct urndis_softc *sc); | ||||
static uint32_t urndis_ctrl_halt(struct urndis_softc *sc); | static uint32_t urndis_ctrl_halt(struct urndis_softc *sc); | ||||
#ifdef USB_DEBUG | #ifdef USB_DEBUG | ||||
static int urndis_debug = 0; | static int urndis_debug = 0; | ||||
static SYSCTL_NODE(_hw_usb, OID_AUTO, urndis, CTLFLAG_RW, 0, "USB RNDIS-Ethernet"); | static SYSCTL_NODE(_hw_usb, OID_AUTO, urndis, CTLFLAG_RW | CTLFLAG_MPSAFE, 0, | ||||
"USB RNDIS-Ethernet"); | |||||
SYSCTL_INT(_hw_usb_urndis, OID_AUTO, debug, CTLFLAG_RWTUN, &urndis_debug, 0, | SYSCTL_INT(_hw_usb_urndis, OID_AUTO, debug, CTLFLAG_RWTUN, &urndis_debug, 0, | ||||
"Debug level"); | "Debug level"); | ||||
#endif | #endif | ||||
static const struct usb_config urndis_config[URNDIS_N_TRANSFER] = { | static const struct usb_config urndis_config[URNDIS_N_TRANSFER] = { | ||||
[URNDIS_BULK_RX] = { | [URNDIS_BULK_RX] = { | ||||
.type = UE_BULK, | .type = UE_BULK, | ||||
.endpoint = UE_ADDR_ANY, | .endpoint = UE_ADDR_ANY, | ||||
▲ Show 20 Lines • Show All 951 Lines • Show Last 20 Lines |