mirror of
https://gitlab.com/qemu-project/openbios.git
synced 2024-02-13 08:34:06 +08:00
git-svn-id: svn://coreboot.org/openbios/openbios-devel@361 f158a5a8-5612-0410-a976-696ce0be7e32
50 lines
963 B
Forth
50 lines
963 B
Forth
|
|
" /" find-device
|
|
2 encode-int " #address-cells" property
|
|
2 encode-int " #size-cells" property
|
|
" sun4u" encode-string " compatible" property
|
|
|
|
\ : encode-unit encode-unit-sbus ;
|
|
\ : decode-unit decode-unit-sbus ;
|
|
|
|
new-device
|
|
" memory" device-name
|
|
external
|
|
: open true ;
|
|
: close ;
|
|
\ claim ( phys size align -- base )
|
|
: claim 2drop ;
|
|
\ release ( phys size -- )
|
|
finish-device
|
|
|
|
new-device
|
|
" virtual-memory" device-name
|
|
external
|
|
: open true ;
|
|
: close ;
|
|
\ claim ( phys size align -- base )
|
|
: claim 2drop ;
|
|
\ release ( phys size -- )
|
|
finish-device
|
|
|
|
" /options" find-device
|
|
" disk" encode-string " boot-from" property
|
|
|
|
" /openprom" find-device
|
|
" OBP 3.10.24 1999/01/01 01:01" encode-string " version" property
|
|
|
|
dev /pci
|
|
|
|
\ simple isa bus node
|
|
new-device
|
|
" isa" device-name
|
|
" isa" device-type
|
|
2 encode-int " #address-cells" property
|
|
1 encode-int " #size-cells" property
|
|
|
|
external
|
|
: open true ;
|
|
: close ;
|
|
|
|
finish-device
|