diff options
author | le <le@FreeBSD.org> | 2004-07-01 21:17:50 +0000 |
---|---|---|
committer | le <le@FreeBSD.org> | 2004-07-01 21:17:50 +0000 |
commit | 1a49f27fe68d2d67494632b88ff2b2bbd722f6f7 (patch) | |
tree | e83745d14d4cd3a7e2b942394a0c2fcdd69ae2ab /sys | |
parent | 4925f692a66a8085e74a9541f8feee4599fd2f5a (diff) | |
download | FreeBSD-src-1a49f27fe68d2d67494632b88ff2b2bbd722f6f7.zip FreeBSD-src-1a49f27fe68d2d67494632b88ff2b2bbd722f6f7.tar.gz |
MFNetBSD.
rev 1.66, author: mycroft
Fix an endianness problem (EHCI_NULL was being double-swapped).
Obtained from: NetBSD
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/usb/ehci.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/usb/ehci.c b/sys/dev/usb/ehci.c index 11dc97a..46c34a9 100644 --- a/sys/dev/usb/ehci.c +++ b/sys/dev/usb/ehci.c @@ -5,6 +5,7 @@ * $NetBSD: ehci.c,v 1.54 2004/01/17 13:15:05 jdolecek Exp $ * up to * $NetBSD: ehci.c,v 1.64 2004/06/23 06:45:56 mycroft Exp $ + * $NetBSD: ehci.c,v 1.66 2004/06/30 03:11:56 mycroft Exp $ */ /* @@ -2225,7 +2226,7 @@ printf("status=%08x toggle=%d\n", epipe->sqh->qh.qh_qtd.qtd_status, next = ehci_alloc_sqtd(sc); if (next == NULL) goto nomem; - nextphys = next->physaddr; + nextphys = htole32(next->physaddr); } else { next = NULL; nextphys = EHCI_NULL; @@ -2245,7 +2246,7 @@ printf("status=%08x toggle=%d\n", epipe->sqh->qh.qh_qtd.qtd_status, #endif } cur->nextqtd = next; - cur->qtd.qtd_next = cur->qtd.qtd_altnext = htole32(nextphys); + cur->qtd.qtd_next = cur->qtd.qtd_altnext = nextphys; cur->qtd.qtd_status = qtdstatus | htole32(EHCI_QTD_SET_BYTES(curlen)); cur->xfer = xfer; |