diff options
| author | Josef Karthauser <joe@FreeBSD.org> | 2003-07-14 19:51:53 +0000 |
|---|---|---|
| committer | Josef Karthauser <joe@FreeBSD.org> | 2003-07-14 19:51:53 +0000 |
| commit | a237c6ec2e13724a255a5ae8671e66e7371b4b9a (patch) | |
| tree | 794b200c69c8dec8c9a7919c57ccaf727f16c98f /sys/dev/usb/ohci.c | |
| parent | e35285ad59bd3228deffaaf9beaa950eac6aaa36 (diff) | |
Notes
Diffstat (limited to 'sys/dev/usb/ohci.c')
| -rw-r--r-- | sys/dev/usb/ohci.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/dev/usb/ohci.c b/sys/dev/usb/ohci.c index 26e9222c27582..3e7f9c931ae0e 100644 --- a/sys/dev/usb/ohci.c +++ b/sys/dev/usb/ohci.c @@ -10,6 +10,7 @@ * $NetBSD: ohci.c,v 1.132 2002/12/07 06:52:11 toshii Exp $ * $NetBSD: ohci.c,v 1.133 2002/12/07 07:14:28 toshii Exp $ * $NetBSD: ohci.c,v 1.134 2002/12/07 07:33:20 toshii Exp $ + * $NetBSD: ohci.c,v 1.135 2002/12/10 14:07:37 toshii Exp $ * $NetBSD: ohci.c,v 1.138 2003/02/08 03:32:50 ichiro Exp $ * $NetBSD: ohci.c,v 1.140 2003/05/13 04:42:00 gson Exp $ */ @@ -1483,15 +1484,15 @@ ohci_softintr(void *v) for (i = 0, sitd = xfer->hcpriv;; sitd = next) { next = sitd->nextitd; - if (OHCI_ITD_GET_CC(sitd->itd.itd_flags) - != OHCI_CC_NO_ERROR) + if (OHCI_ITD_GET_CC(le32toh(sitd-> + itd.itd_flags)) != OHCI_CC_NO_ERROR) xfer->status = USBD_IOERROR; /* For input, update frlengths with actual */ /* XXX anything necessary for output? */ if (uedir == UE_DIR_IN && xfer->status == USBD_NORMAL_COMPLETION) { - iframes = OHCI_ITD_GET_FC(sitd-> - itd.itd_flags); + iframes = OHCI_ITD_GET_FC(le32toh( + sitd->itd.itd_flags)); for (j = 0; j < iframes; i++, j++) { len = le16toh(sitd-> itd.itd_offset[j]); |
