Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/usb/controller/uhci.c
Show First 20 Lines • Show All 84 Lines • ▼ Show 20 Lines | |||||
#define UHCI_BUS2SC(bus) \ | #define UHCI_BUS2SC(bus) \ | ||||
((uhci_softc_t *)(((uint8_t *)(bus)) - \ | ((uhci_softc_t *)(((uint8_t *)(bus)) - \ | ||||
((uint8_t *)&(((uhci_softc_t *)0)->sc_bus)))) | ((uint8_t *)&(((uhci_softc_t *)0)->sc_bus)))) | ||||
#ifdef USB_DEBUG | #ifdef USB_DEBUG | ||||
static int uhcidebug = 0; | static int uhcidebug = 0; | ||||
static int uhcinoloop = 0; | static int uhcinoloop = 0; | ||||
static SYSCTL_NODE(_hw_usb, OID_AUTO, uhci, CTLFLAG_RW, 0, "USB uhci"); | static SYSCTL_NODE(_hw_usb, OID_AUTO, uhci, CTLFLAG_RW | CTLFLAG_MPSAFE, 0, | ||||
"USB uhci"); | |||||
SYSCTL_INT(_hw_usb_uhci, OID_AUTO, debug, CTLFLAG_RWTUN, | SYSCTL_INT(_hw_usb_uhci, OID_AUTO, debug, CTLFLAG_RWTUN, | ||||
&uhcidebug, 0, "uhci debug level"); | &uhcidebug, 0, "uhci debug level"); | ||||
SYSCTL_INT(_hw_usb_uhci, OID_AUTO, loop, CTLFLAG_RWTUN, | SYSCTL_INT(_hw_usb_uhci, OID_AUTO, loop, CTLFLAG_RWTUN, | ||||
&uhcinoloop, 0, "uhci noloop"); | &uhcinoloop, 0, "uhci noloop"); | ||||
static void uhci_dumpregs(uhci_softc_t *sc); | static void uhci_dumpregs(uhci_softc_t *sc); | ||||
static void uhci_dump_tds(uhci_td_t *td); | static void uhci_dump_tds(uhci_td_t *td); | ||||
▲ Show 20 Lines • Show All 3,133 Lines • Show Last 20 Lines |