MFNetBSD:
revision 1.105 date: 2001/11/07 02:55:04; author: augustss; state: Exp; lines: +17 -3 Improve some debug messages.
This commit is contained in:
parent
649e8d680c
commit
f1310c18b4
@ -1024,6 +1024,8 @@ ohci_intr1(ohci_softc_t *sc)
|
||||
u_int32_t intrs, eintrs;
|
||||
ohci_physaddr_t done;
|
||||
|
||||
DPRINTFN(14,("ohci_intr1: enter\n"));
|
||||
|
||||
/* In case the interrupt occurs before initialization has completed. */
|
||||
if (sc == NULL || sc->sc_hcca == NULL) {
|
||||
#ifdef DIAGNOSTIC
|
||||
@ -1207,6 +1209,8 @@ ohci_softintr(void *v)
|
||||
usbd_xfer_handle xfer;
|
||||
int len, cc, s;
|
||||
|
||||
DPRINTFN(10,("ohci_softintr: enter\n:"));
|
||||
|
||||
sc->sc_bus.intr_context++;
|
||||
|
||||
s = splhardusb();
|
||||
@ -1216,7 +1220,7 @@ ohci_softintr(void *v)
|
||||
sc->sc_sidone = NULL;
|
||||
splx(s);
|
||||
|
||||
DPRINTFN(10,("ohci_process_done: sdone=%p sidone=%p\n", sdone, sidone));
|
||||
DPRINTFN(10,("ohci_softintr: sdone=%p sidone=%p\n", sdone, sidone));
|
||||
|
||||
#ifdef OHCI_DEBUG
|
||||
if (ohcidebug > 10) {
|
||||
@ -1305,7 +1309,7 @@ ohci_softintr(void *v)
|
||||
|
||||
#ifdef OHCI_DEBUG
|
||||
if (ohcidebug > 10) {
|
||||
DPRINTF(("ohci_process_done: ITD done:\n"));
|
||||
DPRINTF(("ohci_softintr: ITD done:\n"));
|
||||
ohci_dump_itds(sidone);
|
||||
}
|
||||
#endif
|
||||
@ -1350,6 +1354,7 @@ ohci_softintr(void *v)
|
||||
|
||||
|
||||
sc->sc_bus.intr_context--;
|
||||
DPRINTFN(10,("ohci_softintr: done:\n"));
|
||||
}
|
||||
|
||||
void
|
||||
@ -1507,6 +1512,15 @@ void
|
||||
ohci_poll(struct usbd_bus *bus)
|
||||
{
|
||||
ohci_softc_t *sc = (ohci_softc_t *)bus;
|
||||
#ifdef OHCI_DEBUG
|
||||
static int last;
|
||||
int new;
|
||||
new = OREAD4(sc, OHCI_INTERRUPT_STATUS);
|
||||
if (new != last) {
|
||||
DPRINTFN(10,("ohci_poll: intrs=0x%04x\n", new));
|
||||
last = new;
|
||||
}
|
||||
#endif
|
||||
|
||||
if (OREAD4(sc, OHCI_INTERRUPT_STATUS) & sc->sc_eintrs)
|
||||
ohci_intr1(sc);
|
||||
|
Loading…
x
Reference in New Issue
Block a user