diff options
author | hselasky <hselasky@FreeBSD.org> | 2014-05-18 09:13:29 +0000 |
---|---|---|
committer | hselasky <hselasky@FreeBSD.org> | 2014-05-18 09:13:29 +0000 |
commit | bdd212c55811870f58b5175176b7ad4701d23880 (patch) | |
tree | b573eb1929865dc5f5eaf46c8edea29095bf4d01 /sys/dev/usb/controller/dwc_otg_atmelarm.c | |
parent | 367f2b714276685a569d4eceea902581425b81b0 (diff) | |
download | FreeBSD-src-bdd212c55811870f58b5175176b7ad4701d23880.zip FreeBSD-src-bdd212c55811870f58b5175176b7ad4701d23880.tar.gz |
- Add softc pointer argument to FIFO functions as an optimisation.
- Implement support for interrupt filters in the DWC OTG driver, to
reduce the amount of CPU task switching when only feeding the FIFOs.
- Add common spinlock to the USB bus structure.
MFC after: 2 weeks
Diffstat (limited to 'sys/dev/usb/controller/dwc_otg_atmelarm.c')
-rw-r--r-- | sys/dev/usb/controller/dwc_otg_atmelarm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/usb/controller/dwc_otg_atmelarm.c b/sys/dev/usb/controller/dwc_otg_atmelarm.c index 9dc072d..33c5bec 100644 --- a/sys/dev/usb/controller/dwc_otg_atmelarm.c +++ b/sys/dev/usb/controller/dwc_otg_atmelarm.c @@ -116,7 +116,7 @@ dwc_otg_attach(device_t dev) device_set_ivars(sc->sc_otg.sc_bus.bdev, &sc->sc_otg.sc_bus); err = bus_setup_intr(dev, sc->sc_otg.sc_irq_res, INTR_TYPE_BIO | INTR_MPSAFE, - NULL, (driver_intr_t *)dwc_otg_interrupt, sc, &sc->sc_otg.sc_intr_hdl); + &dwc_otg_filter_interrupt, &dwc_otg_interrupt, sc, &sc->sc_otg.sc_intr_hdl); if (err) { sc->sc_otg.sc_intr_hdl = NULL; goto error; |