Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/usb/usb_generic.c
Show First 20 Lines • Show All 126 Lines • ▼ Show 20 Lines | struct usb_fifo_methods usb_ugen_methods = { | ||||
.f_stop_read = &ugen_stop_io, | .f_stop_read = &ugen_stop_io, | ||||
.f_start_write = &ugen_start_write, | .f_start_write = &ugen_start_write, | ||||
.f_stop_write = &ugen_stop_io, | .f_stop_write = &ugen_stop_io, | ||||
}; | }; | ||||
#ifdef USB_DEBUG | #ifdef USB_DEBUG | ||||
static int ugen_debug = 0; | static int ugen_debug = 0; | ||||
static SYSCTL_NODE(_hw_usb, OID_AUTO, ugen, CTLFLAG_RW, 0, "USB generic"); | static SYSCTL_NODE(_hw_usb, OID_AUTO, ugen, CTLFLAG_RW | CTLFLAG_MPSAFE, 0, | ||||
"USB generic"); | |||||
SYSCTL_INT(_hw_usb_ugen, OID_AUTO, debug, CTLFLAG_RWTUN, &ugen_debug, | SYSCTL_INT(_hw_usb_ugen, OID_AUTO, debug, CTLFLAG_RWTUN, &ugen_debug, | ||||
0, "Debug level"); | 0, "Debug level"); | ||||
#endif | #endif | ||||
/* prototypes */ | /* prototypes */ | ||||
static int | static int | ||||
▲ Show 20 Lines • Show All 2,242 Lines • Show Last 20 Lines |