Date: Mon, 18 Mar 2002 04:37:38 -0800 From: "Joel M. Baldwin" <qumqats@outel.org> To: freebsd-current@FreeBSD.ORG Subject: dev/usb/uhci.c is messed up again Message-ID: <98076166.1016426258@[192.168.1.20]> In-Reply-To: <20020318111846.GA10893@elvis.mu.org> References: <20020318111846.GA10893@elvis.mu.org>
next in thread | previous in thread | raw e-mail | index | archive | help
/usr/src/sys/dev/usb/uhci.c is messed up again for those of us that have the kernel compiled with UHCI_DEBUG. The following patch appears to get it to at least compile. problem summary: 1.) uhci_dump_ii is defined twice, starting at lines 805 and 920. 2.) a missing ; at the end of line 2764. 805,841d804 < void < uhci_dump_ii(uhci_intr_info_t *ii) < { < usbd_pipe_handle pipe; < usb_endpoint_descriptor_t *ed; < usbd_device_handle dev; < < #ifdef DIAGNOSTIC < #define DONE ii->isdone < #else < #define DONE 0 < #endif < if (ii == NULL) { < printf("ii NULL\n"); < return; < } < if (ii->xfer == NULL) { < printf("ii %p: done=%d xfer=NULL\n", < ii, DONE); < return; < } < pipe = ii->xfer->pipe; < if (pipe == NULL) { < printf("ii %p: done=%d xfer=%p pipe=NULL\n", < ii, DONE, ii->xfer); < return; < } < ed = pipe->endpoint->edesc; < dev = pipe->device; < printf("ii %p: done=%d xfer=%p dev=%p vid=0x%04x pid=0x%04x addr=%d pipe=%p ep=0x%02x attr=0x%02x\n", < ii, DONE, ii->xfer, dev, < UGETW(dev->ddesc.idVendor), < UGETW(dev->ddesc.idProduct), < dev->address, pipe, < ed->bEndpointAddress, ed->bmAttributes); < #undef DONE < } 2764c2727 < splx(s) --- > splx(s); To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?98076166.1016426258>