[openfirmware] r1368 - dev/usb2/hcd/uhci
svn at openfirmware.info
svn at openfirmware.info
Fri Sep 18 03:15:46 CEST 2009
Author: wmb
Date: 2009-09-18 03:15:46 +0200 (Fri, 18 Sep 2009)
New Revision: 1368
Modified:
dev/usb2/hcd/uhci/qhtd.fth
Log:
USB UHCI driver - handle NULL_DATA case for td size field.
Modified: dev/usb2/hcd/uhci/qhtd.fth
===================================================================
--- dev/usb2/hcd/uhci/qhtd.fth 2009-09-18 01:14:00 UTC (rev 1367)
+++ dev/usb2/hcd/uhci/qhtd.fth 2009-09-18 01:15:46 UTC (rev 1368)
@@ -332,7 +332,8 @@
: get-actual ( td #td -- actual )
0 -rot 0 ?do ( actual td )
dup >hctd-stat le-l@ dup TD_STAT_ACTIVE and 0= if
- TD_ACTUAL_MASK and 1+
+ TD_ACTUAL_MASK and ( actual td size-code )
+ dup TD_NULL_DATA_SIZE = if drop 0 else 1+ then ( actual td this-size )
rot + swap ( actual' td )
else drop then
>td-next l@ ( actual td' )
More information about the openfirmware
mailing list