summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorJolan Luff <jolan@cvs.openbsd.org>2004-06-24 00:00:21 +0000
committerJolan Luff <jolan@cvs.openbsd.org>2004-06-24 00:00:21 +0000
commit42d2671ccee983bc79c99c98837fc58abd068775 (patch)
tree36e32fbff5387c47f9013ee3958820c04eeaebcf /sys
parent6a943d2698c0a4eb4c2d744ec01b5d503adfacea (diff)
endian fix from chris pascoe
tested by nordin@ and david gwynne
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/usb/ehci.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/usb/ehci.c b/sys/dev/usb/ehci.c
index d67d0ee0855..52835b58506 100644
--- a/sys/dev/usb/ehci.c
+++ b/sys/dev/usb/ehci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ehci.c,v 1.6 2004/06/20 00:17:49 deraadt Exp $ */
+/* $OpenBSD: ehci.c,v 1.7 2004/06/24 00:00:20 jolan Exp $ */
/* $NetBSD: ehci.c,v 1.54 2004/01/17 13:15:05 jdolecek Exp $ */
/*
@@ -2185,7 +2185,7 @@ ehci_alloc_sqtd_chain(struct ehci_pipe *epipe, ehci_softc_t *sc,
next = ehci_alloc_sqtd(sc);
if (next == NULL)
goto nomem;
- nextphys = next->physaddr;
+ nextphys = htole32(next->physaddr);
} else {
next = NULL;
nextphys = EHCI_NULL;
@@ -2205,7 +2205,7 @@ ehci_alloc_sqtd_chain(struct ehci_pipe *epipe, ehci_softc_t *sc,
#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;