aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/usb/ohci.c
diff options
context:
space:
mode:
authorJohn-Mark Gurney <jmg@FreeBSD.org>2003-07-15 22:14:22 +0000
committerJohn-Mark Gurney <jmg@FreeBSD.org>2003-07-15 22:14:22 +0000
commite65f8c784da3c397d24361dafd42a14954bf650c (patch)
tree54dbdee07b313078c48af981b83d672b3bd00c61 /sys/dev/usb/ohci.c
parent9d11646de7094383d45b3d9a538a0f6b99c32f05 (diff)
Notes
Diffstat (limited to 'sys/dev/usb/ohci.c')
-rw-r--r--sys/dev/usb/ohci.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/usb/ohci.c b/sys/dev/usb/ohci.c
index f73d3dada837c..f48d9182715dd 100644
--- a/sys/dev/usb/ohci.c
+++ b/sys/dev/usb/ohci.c
@@ -515,7 +515,7 @@ ohci_alloc_std_chain(struct ohci_pipe *opipe, ohci_softc_t *sc,
dataphys = DMAADDR(dma, 0);
dataphysend = OHCI_PAGE(DMAADDR(dma, len - 1));
- tdflags = htole32(
+ tdflags = (
(rd ? OHCI_TD_IN : OHCI_TD_OUT) |
(flags & USBD_SHORT_XFER_OK ? OHCI_TD_R : 0) |
OHCI_TD_NOCC | OHCI_TD_TOGGLE_CARRY);
@@ -724,6 +724,8 @@ ohci_init(ohci_softc_t *sc)
sc->sc_bus.usbrev = USBREV_1_0;
for (i = 0; i < OHCI_HASH_SIZE; i++)
+ LIST_INIT(&sc->sc_hash_tds[i]);
+ for (i = 0; i < OHCI_HASH_SIZE; i++)
LIST_INIT(&sc->sc_hash_itds[i]);
SIMPLEQ_INIT(&sc->sc_free_xfers);
@@ -1162,7 +1164,7 @@ ohci_intr1(ohci_softc_t *sc)
return (0);
}
- intrs = 0;
+ intrs = 0;
done = le32toh(sc->sc_hcca->hcca_done_head);
/* The LSb of done is used to inform the HC Driver that an interrupt