version 1.15, 2007/10/19 12:00:01 |
version 1.16, 2007/11/06 21:51:07 |
Line 98 __KERNEL_RCSID(0, "$NetBSD$"); |
|
Line 98 __KERNEL_RCSID(0, "$NetBSD$"); |
|
#include <sys/queue.h> |
#include <sys/queue.h> |
#include <sys/gcq.h> |
#include <sys/gcq.h> |
#include <sys/lock.h> |
#include <sys/lock.h> |
|
#include <sys/intr.h> |
#include <sys/bus.h> |
|
#include <sys/cpu.h> |
#include <sys/cpu.h> |
|
#include <sys/bus.h> |
|
|
#include <dev/usb/usb.h> |
#include <dev/usb/usb.h> |
#include <dev/usb/usbdi.h> |
#include <dev/usb/usbdi.h> |
Line 1218 slhci_detach(struct slhci_softc *sc, int |
|
Line 1218 slhci_detach(struct slhci_softc *sc, int |
|
while (t->flags & (F_RESET|F_CALLBACK)) |
while (t->flags & (F_RESET|F_CALLBACK)) |
tsleep(&sc, PPAUSE, "slhci_detach", hz); |
tsleep(&sc, PPAUSE, "slhci_detach", hz); |
|
|
softintr_disestablish(sc->sc_cb_softintr); |
softint_disestablish(sc->sc_cb_softintr); |
|
|
ret = 0; |
ret = 0; |
|
|
Line 2496 slhci_do_callback_schedule(struct slhci_ |
|
Line 2496 slhci_do_callback_schedule(struct slhci_ |
|
|
|
if (!(t->flags & F_CALLBACK)) { |
if (!(t->flags & F_CALLBACK)) { |
t->flags |= F_CALLBACK; |
t->flags |= F_CALLBACK; |
softintr_schedule(sc->sc_cb_softintr); |
softint_schedule(sc->sc_cb_softintr); |
} |
} |
} |
} |
|
|
Line 2663 slhci_do_attach(struct slhci_softc *sc, |
|
Line 2663 slhci_do_attach(struct slhci_softc *sc, |
|
/* It is not safe to call the soft interrupt directly as |
/* It is not safe to call the soft interrupt directly as |
* usb_schedsoftintr does in the use_polling case (due to locking). |
* usb_schedsoftintr does in the use_polling case (due to locking). |
*/ |
*/ |
sc->sc_cb_softintr = softintr_establish(IPL_SOFTUSB, |
sc->sc_cb_softintr = softint_establish(SOFTINT_NET, |
slhci_callback_entry, sc); |
slhci_callback_entry, sc); |
|
|
#ifdef SLHCI_DEBUG |
#ifdef SLHCI_DEBUG |