Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/usb/net/if_cue.c
Show First 20 Lines • Show All 124 Lines • ▼ Show 20 Lines | |||||
static int cue_mem(struct cue_softc *, uint8_t, uint16_t, void *, int); | static int cue_mem(struct cue_softc *, uint8_t, uint16_t, void *, int); | ||||
static int cue_getmac(struct cue_softc *, void *); | static int cue_getmac(struct cue_softc *, void *); | ||||
static uint32_t cue_mchash(const uint8_t *); | static uint32_t cue_mchash(const uint8_t *); | ||||
static void cue_reset(struct cue_softc *); | static void cue_reset(struct cue_softc *); | ||||
#ifdef USB_DEBUG | #ifdef USB_DEBUG | ||||
static int cue_debug = 0; | static int cue_debug = 0; | ||||
static SYSCTL_NODE(_hw_usb, OID_AUTO, cue, CTLFLAG_RW, 0, "USB cue"); | static SYSCTL_NODE(_hw_usb, OID_AUTO, cue, CTLFLAG_RW | CTLFLAG_MPSAFE, 0, | ||||
"USB cue"); | |||||
SYSCTL_INT(_hw_usb_cue, OID_AUTO, debug, CTLFLAG_RWTUN, &cue_debug, 0, | SYSCTL_INT(_hw_usb_cue, OID_AUTO, debug, CTLFLAG_RWTUN, &cue_debug, 0, | ||||
"Debug level"); | "Debug level"); | ||||
#endif | #endif | ||||
static const struct usb_config cue_config[CUE_N_TRANSFER] = { | static const struct usb_config cue_config[CUE_N_TRANSFER] = { | ||||
[CUE_BULK_DT_WR] = { | [CUE_BULK_DT_WR] = { | ||||
.type = UE_BULK, | .type = UE_BULK, | ||||
▲ Show 20 Lines • Show All 519 Lines • Show Last 20 Lines |