summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/usbdi.c
diff options
context:
space:
mode:
authorjoe <joe@FreeBSD.org>2002-04-01 21:34:01 +0000
committerjoe <joe@FreeBSD.org>2002-04-01 21:34:01 +0000
commit0ddcf62ed59f8c10287786d52a41bd0772e9abdb (patch)
treeff1f5fd46d7a589f06bfe013341f1605847c95e5 /sys/dev/usb/usbdi.c
parentdc2e474f79c1287592679cd5e0c4c2307feccd60 (diff)
downloadFreeBSD-src-0ddcf62ed59f8c10287786d52a41bd0772e9abdb.zip
FreeBSD-src-0ddcf62ed59f8c10287786d52a41bd0772e9abdb.tar.gz
MFNetBSD: ohci.c (1.99), uhci.c (1.133), usb.c (1.49), usb_port.h
(1.39), usbdi.c (1.79), usbdi.h (1.47), usbdivar.h (1.62) date: 2001/01/21 02:39:52; author: augustss; Add code to use soft interrupt to handle USB interrupt processing. Don't enable the code since it doesn't work with the kludgy Ethernet drivers.
Diffstat (limited to 'sys/dev/usb/usbdi.c')
-rw-r--r--sys/dev/usb/usbdi.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/usb/usbdi.c b/sys/dev/usb/usbdi.c
index 3fad241..4bf3a13 100644
--- a/sys/dev/usb/usbdi.c
+++ b/sys/dev/usb/usbdi.c
@@ -1,4 +1,4 @@
-/* $NetBSD: usb/usbdi.c,v 1.78 2001/01/19 04:01:10 augustss Exp $ */
+/* $NetBSD: usbdi.c,v 1.79 2001/01/21 02:39:53 augustss Exp $ */
/* $FreeBSD$ */
/*
@@ -299,12 +299,16 @@ usbd_transfer(usbd_xfer_handle xfer)
int i;
usbd_bus_handle bus = pipe->device->bus;
int to = xfer->timeout * 1000;
+ DPRINTFN(2,("usbd_transfer: polling\n"));
for (i = 0; i < to; i += 10) {
delay(10);
bus->methods->do_poll(bus);
if (xfer->done)
break;
}
+ DPRINTFN(2,("usbd_transfer: polling done =\n",
+ xfer->done));
+ /* XXX Is this right, what about the HC timeout? */
if (!xfer->done) {
pipe->methods->abort(xfer);
xfer->status = USBD_TIMEOUT;
OpenPOWER on IntegriCloud