Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/usb Some more debug stuff.



details:   https://anonhg.NetBSD.org/src/rev/52f966e1e059
branches:  trunk
changeset: 517891:52f966e1e059
user:      augustss <augustss%NetBSD.org@localhost>
date:      Wed Nov 21 02:39:31 2001 +0000

description:
Some more debug stuff.

diffstat:

 sys/dev/usb/ohci.c |  14 ++++++++++----
 1 files changed, 10 insertions(+), 4 deletions(-)

diffs (45 lines):

diff -r 45d629caa5f3 -r 52f966e1e059 sys/dev/usb/ohci.c
--- a/sys/dev/usb/ohci.c        Wed Nov 21 02:38:35 2001 +0000
+++ b/sys/dev/usb/ohci.c        Wed Nov 21 02:39:31 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ohci.c,v 1.112 2001/11/21 02:38:35 augustss Exp $      */
+/*     $NetBSD: ohci.c,v 1.113 2001/11/21 02:39:31 augustss Exp $      */
 /*     $FreeBSD: src/sys/dev/usb/ohci.c,v 1.22 1999/11/17 22:33:40 n_hibma Exp $       */
 
 /*
@@ -46,7 +46,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ohci.c,v 1.112 2001/11/21 02:38:35 augustss Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ohci.c,v 1.113 2001/11/21 02:39:31 augustss Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -1660,11 +1660,15 @@
        }
        splx(s);
 
-#if 0
-       if (ohcidebug > 10) {
+#if 1
+       if (ohcidebug > 20) {
                delay(10000);
                DPRINTF(("ohci_device_request: status=%x\n",
                         OREAD4(sc, OHCI_COMMAND_STATUS)));
+               ohci_dumpregs(sc);
+               printf("ctrl head:\n");
+               ohci_dump_ed(sc->sc_ctrl_head);
+               printf("sed:\n");
                ohci_dump_ed(sed);
                ohci_dump_tds(setup);
        }
@@ -1686,6 +1690,8 @@
 void
 ohci_add_ed(ohci_soft_ed_t *sed, ohci_soft_ed_t *head)
 {
+       DPRINTFN(8,("ohci_add_ed: sed=%p head=%p\n", sed, head));
+
        SPLUSBCHECK;
        sed->next = head->next;
        sed->ed.ed_nexted = head->ed.ed_nexted;



Home | Main Index | Thread Index | Old Index