summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb2/controller/uhci2_pci.c
diff options
context:
space:
mode:
authorthompsa <thompsa@FreeBSD.org>2009-01-13 19:03:01 +0000
committerthompsa <thompsa@FreeBSD.org>2009-01-13 19:03:01 +0000
commit1263247651c133a3702a35f9c27c6e1b72dca6cf (patch)
tree8540e3650d8f334e6c158c377bb935ad6b0e3dcc /sys/dev/usb2/controller/uhci2_pci.c
parent7906c47b626b305182f260caf65a2b24771dc011 (diff)
downloadFreeBSD-src-1263247651c133a3702a35f9c27c6e1b72dca6cf.zip
FreeBSD-src-1263247651c133a3702a35f9c27c6e1b72dca6cf.tar.gz
MFp4: //depot/projects/usb@155834
Factor out roothub process into the USB bus structure for all USB controller drivers. Essentially I am trying to save some processes on the root HUB and get away from the config thread pradigm. There will be a follow up commit where the root HUB control and interrupt callback will be moved over to run from the roothub process. Total win: 3 processes become 1 for every USB controller. Submitted by: Hans Petter Selasky
Diffstat (limited to 'sys/dev/usb2/controller/uhci2_pci.c')
-rw-r--r--sys/dev/usb2/controller/uhci2_pci.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/sys/dev/usb2/controller/uhci2_pci.c b/sys/dev/usb2/controller/uhci2_pci.c
index a8e9264..97a28a8 100644
--- a/sys/dev/usb2/controller/uhci2_pci.c
+++ b/sys/dev/usb2/controller/uhci2_pci.c
@@ -55,7 +55,6 @@ __FBSDID("$FreeBSD$");
#include <dev/usb2/core/usb2_core.h>
#include <dev/usb2/core/usb2_busdma.h>
#include <dev/usb2/core/usb2_process.h>
-#include <dev/usb2/core/usb2_config_td.h>
#include <dev/usb2/core/usb2_sw_transfer.h>
#include <dev/usb2/core/usb2_util.h>
#include <dev/usb2/core/usb2_debug.h>
@@ -325,12 +324,6 @@ uhci_pci_attach(device_t self)
break;
}
- err = usb2_config_td_setup(&sc->sc_config_td, sc, &sc->sc_bus.bus_mtx,
- NULL, 0, 4);
- if (err) {
- device_printf(self, "could not setup config thread!\n");
- goto error;
- }
#if (__FreeBSD_version >= 700031)
err = bus_setup_intr(self, sc->sc_irq_res, INTR_TYPE_BIO | INTR_MPSAFE,
NULL, (void *)(void *)uhci_interrupt, sc, &sc->sc_intr_hdl);
@@ -379,8 +372,6 @@ uhci_pci_detach(device_t self)
uhci_softc_t *sc = device_get_softc(self);
device_t bdev;
- usb2_config_td_drain(&sc->sc_config_td);
-
if (sc->sc_bus.bdev) {
bdev = sc->sc_bus.bdev;
device_detach(bdev);
@@ -422,8 +413,6 @@ uhci_pci_detach(device_t self)
sc->sc_io_res);
sc->sc_io_res = NULL;
}
- usb2_config_td_unsetup(&sc->sc_config_td);
-
usb2_bus_mem_free_all(&sc->sc_bus, &uhci_iterate_hw_softc);
return (0);
OpenPOWER on IntegriCloud