summaryrefslogtreecommitdiff
path: root/sys/dev/usb/uhci.c
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2001-06-12 19:12:00 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2001-06-12 19:12:00 +0000
commit63c10588b0feccdbeac9a9dd93201b641a8551b6 (patch)
tree5d66680ccb8825b5ccfa79be79916d0fc7e5e7ac /sys/dev/usb/uhci.c
parent2f544822d4185aa75fe1a8c8543107769047779a (diff)
interrupts cannot happen before
*hci cannot receive interrupts before it has been initialized. this was changed to accomodate the pcibios strategy change back in pre-2.9 times since *hci_init enables interrupts at it's end and thus unmapped pci interrupt hangs the machine in the endless loop trying to deliver it (and no hci handler to ack it). this new way we disable interrupts by hands before we map 'em on pci and thus ensure that they will not crash an uninitialized *hci which, in turn, will run right after the interrupt map/establish and by the time it enables *hci interrupts all gonna be just fine. please allow us to end this stretched remark for cvs is getting a power outage in less than 20 minutes.
Diffstat (limited to 'sys/dev/usb/uhci.c')
-rw-r--r--sys/dev/usb/uhci.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/usb/uhci.c b/sys/dev/usb/uhci.c
index 843b1a537b2..337fbf4aa9b 100644
--- a/sys/dev/usb/uhci.c
+++ b/sys/dev/usb/uhci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uhci.c,v 1.20 2001/05/03 02:20:33 aaron Exp $ */
+/* $OpenBSD: uhci.c,v 1.21 2001/06/12 19:11:58 mickey Exp $ */
/* $NetBSD: uhci.c,v 1.135 2001/04/01 14:59:52 augustss Exp $ */
/* $FreeBSD: src/sys/dev/usb/uhci.c,v 1.33 1999/11/17 22:33:41 n_hibma Exp $ */
@@ -162,7 +162,6 @@ struct uhci_pipe {
Static void uhci_busreset(uhci_softc_t *);
Static void uhci_shutdown(void *v);
Static void uhci_power(int, void *);
-Static usbd_status uhci_run(uhci_softc_t *, int run);
Static uhci_soft_td_t *uhci_alloc_std(uhci_softc_t *);
Static void uhci_free_std(uhci_softc_t *, uhci_soft_td_t *);
Static uhci_soft_qh_t *uhci_alloc_sqh(uhci_softc_t *);