Author: wmb Date: 2009-04-02 20:02:31 +0200 (Thu, 02 Apr 2009) New Revision: 1132
Added: dev/usb2/device/generic/ dev/usb2/device/generic/generic.bth dev/usb2/device/generic/generic.fth Modified: cpu/x86/pc/olpc/loaddropins.fth cpu/x86/pc/olpc/olpc.bth dev/usb2/hcd/fcode.fth Log: OLPC - added stub driver support for USB "generic" devices.
Modified: cpu/x86/pc/olpc/loaddropins.fth =================================================================== --- cpu/x86/pc/olpc/loaddropins.fth 2009-04-01 14:38:06 UTC (rev 1131) +++ cpu/x86/pc/olpc/loaddropins.fth 2009-04-02 18:02:31 UTC (rev 1132) @@ -7,6 +7,7 @@ " ${BP}/dev/usb2/hcd/ohci/build/ohci.fc" " class0c0310" $add-deflated-dropin " ${BP}/dev/usb2/hcd/ehci/build/ehci.fc" " class0c0320" $add-deflated-dropin " ${BP}/dev/usb2/device/hub/build/hub.fc" " usb,class9" $add-dropin + " ${BP}/dev/usb2/device/generic/build/generic.fc" " usbdevice" $add-deflated-dropin " ${BP}/dev/usb2/device/net/build/usbnet.fc" " usbnet" $add-deflated-dropin " ${BP}/dev/usb2/device/keyboard/build/usbkbd.fc" " usb,class3,1" $add-dropin " ${BP}/dev/usb2/device/serial/build/usbserial.fc" " usbserial" $add-deflated-dropin
Modified: cpu/x86/pc/olpc/olpc.bth =================================================================== --- cpu/x86/pc/olpc/olpc.bth 2009-04-01 14:38:06 UTC (rev 1131) +++ cpu/x86/pc/olpc/olpc.bth 2009-04-02 18:02:31 UTC (rev 1132) @@ -14,6 +14,7 @@ in: ${BP}/dev/usb2/hcd/ohci/build/ohci.fc in: ${BP}/dev/usb2/hcd/ehci/build/ehci.fc in: ${BP}/dev/usb2/device/hub/build/hub.fc +in: ${BP}/dev/usb2/device/generic/build/generic.fc in: ${BP}/dev/usb2/device/net/build/usbnet.fc in: ${BP}/dev/usb2/device/serial/build/usbserial.fc in: ${BP}/dev/usb2/device/storage/build/usbstorage.fc
Added: dev/usb2/device/generic/generic.bth =================================================================== --- dev/usb2/device/generic/generic.bth (rev 0) +++ dev/usb2/device/generic/generic.bth 2009-04-02 18:02:31 UTC (rev 1132) @@ -0,0 +1,17 @@ +purpose: Load file for generic USB device + +command: &tokenize &this +build-now + +silent on + +begin-tokenizing generic.fc + +FCode-version2 + +fload ${BP}/dev/usb2/hcd/hcd-call.fth \ HCD interface forwarded to children +fload ${BP}/dev/usb2/device/generic/generic.fth \ Hub driver + +end0 + +end-tokenizing
Added: dev/usb2/device/generic/generic.fth =================================================================== --- dev/usb2/device/generic/generic.fth (rev 0) +++ dev/usb2/device/generic/generic.fth 2009-04-02 18:02:31 UTC (rev 1132) @@ -0,0 +1,5 @@ +purpose: Generic USB device stub driver, useful for client programs + +external +: open ( -- flag ) true ; +: close ( -- ) ;
Modified: dev/usb2/hcd/fcode.fth =================================================================== --- dev/usb2/hcd/fcode.fth 2009-04-01 14:38:06 UTC (rev 1131) +++ dev/usb2/hcd/fcode.fth 2009-04-02 18:02:31 UTC (rev 1132) @@ -95,6 +95,7 @@ 0 2 do i class$ $load if unloop exit then -1 +loop + " usbdevice" $load drop ;
\ LICENSE_BEGIN
openfirmware@openfirmware.info