Changeset 2164
- Timestamp:
- Feb 3, 2011 7:57:03 AM (2 years ago)
- Location:
- dev/usb2/hcd/ohci
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
dev/usb2/hcd/ohci/ohci.fth
r2013 r2164 59 59 : hc-cntl-set ( bit-mask -- ) hc-cntl@ swap or hc-cntl! ; 60 60 61 : reset-port ( port -- ) 62 >r 63 h# 1.0002 r@ hc-rh-psta! \ enable port 64 h# 10 r@ hc-rh-psta! \ reset port 65 r@ d# 10 0 do 66 d# 10 ms 67 dup hc-rh-psta@ 10.0000 and ?leave 68 loop drop 69 r@ hc-rh-psta@ 10.0000 and 0= if abort then 70 h# 1f.0000 r> hc-rh-psta! \ clear status change bits 71 d# 256 ms 72 ; 73 61 74 : reset-usb ( -- ) 62 75 ohci-reg dup 0= if map-regs then … … 66 79 0= if unmap-regs then 67 80 ; 81 68 82 : init-ohci-regs ( -- ) 69 83 hcca-phys hc-hcca! \ physical address of hcca -
dev/usb2/hcd/ohci/probe.fth
r2154 r2164 4 4 hex 5 5 headers 6 7 : reset-port ( port -- )8 >r9 h# 1.0002 r@ hc-rh-psta! \ enable port10 10 r@ hc-rh-psta! \ reset port11 r@ d# 10 0 do12 d# 10 ms13 dup hc-rh-psta@ 10.0000 and ?leave14 loop drop15 r@ hc-rh-psta@ 10.0000 and 0= if abort then16 h# 1f.0000 r> hc-rh-psta! \ clear status change bits17 100 ms18 ;19 6 20 7 : probe-root-hub-port ( port -- )
Note: See TracChangeset
for help on using the changeset viewer.
