summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/ohci.c
diff options
context:
space:
mode:
authorjoe <joe@FreeBSD.org>2002-04-07 10:12:40 +0000
committerjoe <joe@FreeBSD.org>2002-04-07 10:12:40 +0000
commitadeacffe3b998e6d95777401322eb48378279ecc (patch)
treef3cc2cd3d40535d872a9f41862ebb32d0f800e63 /sys/dev/usb/ohci.c
parent6a645c6e2601ba6e07c40248e79953c62682ebdf (diff)
downloadFreeBSD-src-adeacffe3b998e6d95777401322eb48378279ecc.zip
FreeBSD-src-adeacffe3b998e6d95777401322eb48378279ecc.tar.gz
MFNetBSD:
revision 1.105 date: 2001/11/07 02:55:04; author: augustss; state: Exp; lines: +17 -3 Improve some debug messages.
Diffstat (limited to 'sys/dev/usb/ohci.c')
-rw-r--r--sys/dev/usb/ohci.c18
1 files changed, 16 insertions, 2 deletions
diff --git a/sys/dev/usb/ohci.c b/sys/dev/usb/ohci.c
index bb3e2ae..c151d6b 100644
--- a/sys/dev/usb/ohci.c
+++ b/sys/dev/usb/ohci.c
@@ -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);
OpenPOWER on IntegriCloud