Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/usb/controller/xhci.c
Show First 20 Lines • Show All 83 Lines • ▼ Show 20 Lines | |||||
#include <dev/usb/controller/xhci.h> | #include <dev/usb/controller/xhci.h> | ||||
#include <dev/usb/controller/xhcireg.h> | #include <dev/usb/controller/xhcireg.h> | ||||
#define XHCI_BUS2SC(bus) \ | #define XHCI_BUS2SC(bus) \ | ||||
((struct xhci_softc *)(((uint8_t *)(bus)) - \ | ((struct xhci_softc *)(((uint8_t *)(bus)) - \ | ||||
((uint8_t *)&(((struct xhci_softc *)0)->sc_bus)))) | ((uint8_t *)&(((struct xhci_softc *)0)->sc_bus)))) | ||||
static SYSCTL_NODE(_hw_usb, OID_AUTO, xhci, CTLFLAG_RW, 0, "USB XHCI"); | static SYSCTL_NODE(_hw_usb, OID_AUTO, xhci, CTLFLAG_RW | CTLFLAG_MPSAFE, 0, | ||||
"USB XHCI"); | |||||
static int xhcistreams; | static int xhcistreams; | ||||
SYSCTL_INT(_hw_usb_xhci, OID_AUTO, streams, CTLFLAG_RWTUN, | SYSCTL_INT(_hw_usb_xhci, OID_AUTO, streams, CTLFLAG_RWTUN, | ||||
&xhcistreams, 0, "Set to enable streams mode support"); | &xhcistreams, 0, "Set to enable streams mode support"); | ||||
static int xhcictlquirk = 1; | static int xhcictlquirk = 1; | ||||
SYSCTL_INT(_hw_usb_xhci, OID_AUTO, ctlquirk, CTLFLAG_RWTUN, | SYSCTL_INT(_hw_usb_xhci, OID_AUTO, ctlquirk, CTLFLAG_RWTUN, | ||||
&xhcictlquirk, 0, "Set to enable control endpoint quirk"); | &xhcictlquirk, 0, "Set to enable control endpoint quirk"); | ||||
▲ Show 20 Lines • Show All 4,291 Lines • Show Last 20 Lines |