diff options
| author | Julian Elischer <julian@FreeBSD.org> | 2002-02-27 09:16:00 +0000 |
|---|---|---|
| committer | Julian Elischer <julian@FreeBSD.org> | 2002-02-27 09:16:00 +0000 |
| commit | 13b33111fe92866cba317946d51d73325d318d65 (patch) | |
| tree | 55c4a16c2cbab0c4e6582de3df6f87ca6ae41b8e /sys | |
| parent | 561dac21752c8abc31c34204f990b2fd0a9f4f7f (diff) | |
Notes
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/dev/usb/ohci.c | 9 | ||||
| -rw-r--r-- | sys/dev/usb/uhci.c | 4 |
2 files changed, 10 insertions, 3 deletions
diff --git a/sys/dev/usb/ohci.c b/sys/dev/usb/ohci.c index 9ad8ee9d81e2..369f246ff290 100644 --- a/sys/dev/usb/ohci.c +++ b/sys/dev/usb/ohci.c @@ -1050,9 +1050,12 @@ ohci_intr1(ohci_softc_t *sc) ohci_physaddr_t ldone; ohci_soft_td_t *std; - for (ldone = sc->sc_done; ldone != 0; - ldone = le32toh(std->td.td_nexttd)) - std = ohci_hash_find_td(sc, ldone); + ldone = sc->sc_done; /* always non 0 */ + do { + std = ohci_hash_find_td(sc, ldone); + ldone = le32toh(std->td.td_nexttd); + } while (ldone != 0); + std->td.td_nexttd = le32toh(done); } sc->sc_hcca->hcca_done_head = 0; diff --git a/sys/dev/usb/uhci.c b/sys/dev/usb/uhci.c index 5d20a23c1cf3..de4e64fb1c31 100644 --- a/sys/dev/usb/uhci.c +++ b/sys/dev/usb/uhci.c @@ -161,7 +161,9 @@ struct uhci_pipe { Static LIST_HEAD(, uhci_intr_info) uhci_ii_free; Static void uhci_busreset(uhci_softc_t *); +#if 0 Static void uhci_reset(uhci_softc_t *); +#endif Static usbd_status uhci_run(uhci_softc_t *, int run); Static uhci_soft_td_t *uhci_alloc_std(uhci_softc_t *); Static void uhci_free_std(uhci_softc_t *, uhci_soft_td_t *); @@ -1475,6 +1477,7 @@ uhci_poll(struct usbd_bus *bus) uhci_intr(sc); } +#if 0 void uhci_reset(uhci_softc_t *sc) { @@ -1489,6 +1492,7 @@ uhci_reset(uhci_softc_t *sc) printf("%s: controller did not reset\n", USBDEVNAME(sc->sc_bus.bdev)); } +#endif usbd_status uhci_run(uhci_softc_t *sc, int run) |
