2006-06-10 01:37:53 +00:00
|
|
|
|
|
|
|
|
" /" find-device
|
|
|
|
|
2 encode-int " #address-cells" property
|
|
|
|
|
1 encode-int " #size-cells" property
|
|
|
|
|
|
2006-06-10 02:04:54 +00:00
|
|
|
\ : encode-unit encode-unit-sbus ;
|
|
|
|
|
\ : decode-unit decode-unit-sbus ;
|
2006-06-10 01:37:53 +00:00
|
|
|
|
|
|
|
|
new-device
|
|
|
|
|
" memory" device-name
|
|
|
|
|
external
|
|
|
|
|
: open true ;
|
|
|
|
|
: close ;
|
|
|
|
|
\ claim ( phys size align -- base )
|
|
|
|
|
\ release ( phys size -- )
|
|
|
|
|
finish-device
|
|
|
|
|
|
|
|
|
|
new-device
|
|
|
|
|
" virtual-memory" device-name
|
|
|
|
|
external
|
|
|
|
|
: open true ;
|
|
|
|
|
: close ;
|
|
|
|
|
\ claim ( phys size align -- base )
|
|
|
|
|
\ release ( phys size -- )
|
|
|
|
|
finish-device
|
|
|
|
|
|
|
|
|
|
" /options" find-device
|
|
|
|
|
" disk" encode-string " boot-from" property
|
|
|
|
|
|