Changeset 3533
- Timestamp:
- Feb 4, 2013 8:50:34 AM (4 months ago)
- Files:
-
- 3 edited
-
cpu/arm/olpc/spcmd.fth (modified) (4 diffs)
-
dev/pckbd.fth (modified) (1 diff)
-
dev/usb2/device/keyboard/kbd.fth (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
cpu/arm/olpc/spcmd.fth
r3497 r3533 50 50 #queues /n* buffer: tails : tail ( -- adr ) tails queue# na+ ; 51 51 52 #queues /q * buffer: qs : q ( adr --) qs queue# /q * + ;52 #queues /q * buffer: qs : q ( -- adr ) qs queue# /q * + ; 53 53 54 54 /q 1- value q-end … … 57 57 #queues 0 do 58 58 i to queue# 59 0 head ! 0 tail ! /q 1- to q-end59 0 head ! 0 tail ! q drop /q 1- to q-end 60 60 loop 61 61 ; … … 64 64 ; 65 65 66 false value locked? \ Interrupt lockout for get- scan66 false value locked? \ Interrupt lockout for get-data? 67 67 68 68 : lock ( -- ) true to locked? ; … … 126 126 : open ( -- flag ) 127 127 open-count 0= if 128 init-queues 128 129 my-address my-space h# 1000 " map-in" $call-parent is reg-base 129 130 data? 0= if send-rdy then -
dev/pckbd.fth
r2604 r3533 56 56 1- value q-end 57 57 58 : init-q ( -- ) 0 head ! 0 tail ! /q 1- to q-end ;58 : init-q ( -- ) 0 head ! 0 tail ! q drop /q 1- to q-end ; 59 59 : inc-q-ptr ( pointer-addr -- ) 60 60 dup @ q-end >= if 0 swap ! else /c swap +! then -
dev/usb2/device/keyboard/kbd.fth
r2590 r3533 68 68 /qe buffer: null-entry \ Buffer to hold a null entry 69 69 70 : init-q ( -- ) 0 head ! 0 tail ! #qe 1- to q-end ; 70 : init-q ( -- ) 71 0 head ! 0 tail ! q drop #qe 1- to q-end 72 last-entry drop new-entry drop cur-entry drop null-entry drop 73 ; 71 74 : inc-q-ptr ( pointer-addr -- ) 72 75 dup @ q-end >= if 0 swap ! else 1 swap +! then … … 371 374 : open ( -- flag ) 372 375 kbd-refcount @ if 1 +refcnt true exit then 376 init-q 373 377 init-kbd-buf 374 378 setup-hardware? if
Note: See TracChangeset
for help on using the changeset viewer.
