1 \ QEMU specific initialization code
3 \ This program is free software; you can redistribute it and/or
4 \ modify it under the terms of the GNU General Public License
5 \ as published by the Free Software Foundation
10 \ -------------------------------------------------------------
12 \ -------------------------------------------------------------
15 \ Apple calls the root node device-tree
16 " device-tree" device-name
17 [IFDEF] CONFIG_PPC64 2 [ELSE] 1 [THEN] encode-int " #address-cells" property
18 1 encode-int " #size-cells" property
19 h# 05f5e100 encode-int " clock-frequency" property
23 1 encode-int " #address-cells" property
24 0 encode-int " #size-cells" property
27 : encode-unit ( unit -- str len )
31 : decode-unit ( str len -- unit )
47 h# ff800000 encode-int 0 encode-int encode+ " reg" property
48 1 encode-int " #address-cells" property
49 h# ff800000 encode-int h# 800000 encode-int encode+
50 h# ff800000 encode-int encode+ " ranges" property
53 \ -------------------------------------------------------------
55 \ -------------------------------------------------------------
57 " /packages" find-device
59 " packages" device-name
61 \ allow packages to be opened with open-dev
65 \ /packages/terminal-emulator
67 " terminal-emulator" device-name
71 \ : write ( addr len -- actual )
76 \ -------------------------------------------------------------
78 \ -------------------------------------------------------------