diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2001-06-12 19:12:00 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2001-06-12 19:12:00 +0000 |
commit | 63c10588b0feccdbeac9a9dd93201b641a8551b6 (patch) | |
tree | 5d66680ccb8825b5ccfa79be79916d0fc7e5e7ac /sys/dev/usb | |
parent | 2f544822d4185aa75fe1a8c8543107769047779a (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')
-rw-r--r-- | sys/dev/usb/uhci.c | 3 | ||||
-rw-r--r-- | sys/dev/usb/uhcivar.h | 3 |
2 files changed, 3 insertions, 3 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 *); diff --git a/sys/dev/usb/uhcivar.h b/sys/dev/usb/uhcivar.h index a6094b725c0..ef076c26dba 100644 --- a/sys/dev/usb/uhcivar.h +++ b/sys/dev/usb/uhcivar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: uhcivar.h,v 1.10 2000/11/08 18:10:38 aaron Exp $ */ +/* $OpenBSD: uhcivar.h,v 1.11 2001/06/12 19:11:59 mickey Exp $ */ /* $NetBSD: uhcivar.h,v 1.32 2000/08/13 16:18:09 augustss Exp $ */ /* $FreeBSD: src/sys/dev/usb/uhcivar.h,v 1.14 1999/11/17 22:33:42 n_hibma Exp $ */ @@ -182,6 +182,7 @@ typedef struct uhci_softc { } uhci_softc_t; usbd_status uhci_init(uhci_softc_t *); +usbd_status uhci_run(uhci_softc_t *, int run); int uhci_intr(void *); #if defined(__NetBSD__) || defined(__OpenBSD__) int uhci_detach(uhci_softc_t *, int); |