From 5506bb0f06cd5a21c18986dddc98110d3cc4b3d9 Mon Sep 17 00:00:00 2001 From: augustss Date: Wed, 21 Nov 2001 02:39:31 +0000 Subject: [PATCH] Some more debug stuff. --- sys/dev/usb/ohci.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/sys/dev/usb/ohci.c b/sys/dev/usb/ohci.c index 70304ec9917a..b0ee7a3e788f 100644 --- a/sys/dev/usb/ohci.c +++ b/sys/dev/usb/ohci.c @@ -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 -__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 #include @@ -1660,11 +1660,15 @@ ohci_device_request(usbd_xfer_handle xfer) } 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 @@ ohci_device_request(usbd_xfer_handle xfer) 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;