Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/usb/controller/atmegadci.c
Show First 20 Lines • Show All 82 Lines • ▼ Show 20 Lines | ((struct atmegadci_softc *)(((uint8_t *)(bus)) - \ | ||||
((uint8_t *)&(((struct atmegadci_softc *)0)->sc_bus)))) | ((uint8_t *)&(((struct atmegadci_softc *)0)->sc_bus)))) | ||||
#define ATMEGA_PC2SC(pc) \ | #define ATMEGA_PC2SC(pc) \ | ||||
ATMEGA_BUS2SC(USB_DMATAG_TO_XROOT((pc)->tag_parent)->bus) | ATMEGA_BUS2SC(USB_DMATAG_TO_XROOT((pc)->tag_parent)->bus) | ||||
#ifdef USB_DEBUG | #ifdef USB_DEBUG | ||||
static int atmegadci_debug = 0; | static int atmegadci_debug = 0; | ||||
static SYSCTL_NODE(_hw_usb, OID_AUTO, atmegadci, CTLFLAG_RW, 0, | static SYSCTL_NODE(_hw_usb, OID_AUTO, atmegadci, CTLFLAG_RW | CTLFLAG_MPSAFE, 0, | ||||
"USB ATMEGA DCI"); | "USB ATMEGA DCI"); | ||||
SYSCTL_INT(_hw_usb_atmegadci, OID_AUTO, debug, CTLFLAG_RWTUN, | SYSCTL_INT(_hw_usb_atmegadci, OID_AUTO, debug, CTLFLAG_RWTUN, | ||||
&atmegadci_debug, 0, "ATMEGA DCI debug level"); | &atmegadci_debug, 0, "ATMEGA DCI debug level"); | ||||
#endif | #endif | ||||
#define ATMEGA_INTR_ENDPT 1 | #define ATMEGA_INTR_ENDPT 1 | ||||
/* prototypes */ | /* prototypes */ | ||||
▲ Show 20 Lines • Show All 2,060 Lines • Show Last 20 Lines |