summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/ohcivar.h
diff options
context:
space:
mode:
authorjoe <joe@FreeBSD.org>2002-09-30 17:50:18 +0000
committerjoe <joe@FreeBSD.org>2002-09-30 17:50:18 +0000
commit9b80ac7383aeb8ff680907bc091d45fc935d4eec (patch)
treef99522c62b99212707db1a2b0a975eb3d62df114 /sys/dev/usb/ohcivar.h
parent3264749d81dcb91903b58d22830f020d8bfe348b (diff)
downloadFreeBSD-src-9b80ac7383aeb8ff680907bc091d45fc935d4eec.zip
FreeBSD-src-9b80ac7383aeb8ff680907bc091d45fc935d4eec.tar.gz
In rev 1.51 of usb_port.h I switched over to using the USB_USE_SOFTINTR
code path to fix a bug in the non USB_USE_SOFTINTR path that caused the usb bus to hang and generally misbehave when devices were unplugged. In the process though it also reduced the throughput of usb devices because of a less than optimal implementation under FreeBSD. This commit fixes the non USB_USE_SOFTINTR code in uhci and ohci so that it works again, and switches back to using this code path. The uhci code has been tested, but the ohci code hasn't. It's essentially the same anyway and so I don't envisage any difficulties. Code for uhci submitted by: Maksim Yevmenkin <myevmenk@exodus.net>
Diffstat (limited to 'sys/dev/usb/ohcivar.h')
-rw-r--r--sys/dev/usb/ohcivar.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/usb/ohcivar.h b/sys/dev/usb/ohcivar.h
index e72b94f..6b50122 100644
--- a/sys/dev/usb/ohcivar.h
+++ b/sys/dev/usb/ohcivar.h
@@ -111,7 +111,10 @@ typedef struct ohci_softc {
int sc_noport;
u_int8_t sc_addr; /* device address */
u_int8_t sc_conf; /* device configuration */
+
+#ifdef USB_USE_SOFTINTR
char sc_softwake;
+#endif /* USB_USE_SOFTINTR */
ohci_soft_ed_t *sc_freeeds;
ohci_soft_td_t *sc_freetds;
OpenPOWER on IntegriCloud