Rev 1794 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
324 | palkovsky | 1 | OBJECT cpu0 TYPE mips-4kc { |
2 | freq-mhz: 10 |
||
3 | queue: cpu0 |
||
4 | physical-memory: phys-mem0 |
||
5 | } |
||
6 | |||
7 | OBJECT phys-mem0 TYPE memory-space { |
||
8 | map: ((0x18000020, pic0, 0, 0x20, 1), |
||
9 | (0x18000021, pic0, 0, 0x21, 1), |
||
10 | (0x180000a0, pic0, 0, 0xa0, 1), |
||
11 | (0x180000a1, pic0, 0, 0xa1, 1), |
||
12 | (0x180004d0, pic0, 0, 0x4d0, 1), |
||
13 | (0x180004d1, pic0, 0, 0x4d1, 1), |
||
14 | (0x18000070, rtc0, 0, 0, 1), |
||
15 | (0x18000071, rtc0, 0, 1, 1), |
||
16 | (0x180003f8, tty0, 0, 0, 1), |
||
17 | (0x180003f9, tty0, 0, 1, 1), |
||
18 | (0x180003fa, tty0, 0, 2, 1), |
||
19 | (0x180003fb, tty0, 0, 3, 1), |
||
20 | (0x180003fc, tty0, 0, 4, 1), |
||
21 | (0x180003fd, tty0, 0, 5, 1), |
||
22 | (0x180003fe, tty0, 0, 6, 1), |
||
23 | (0x180003ff, tty0, 0, 7, 1), |
||
794 | palkovsky | 24 | (0x1c000000, hfs0, 0, 0, 16), |
941 | palkovsky | 25 | (0x01000000, initmem0, 0, 0, 0x100000)) |
324 | palkovsky | 26 | } |
27 | |||
28 | OBJECT cbus-space TYPE memory-space { |
||
29 | map: ((0x1f000000, malta0, 0, 0, 0xc00000), |
||
30 | (0x1fc00000, rom0, 0, 0, 0x400000)) |
||
31 | } |
||
32 | |||
33 | OBJECT memory0 TYPE ram { |
||
34 | image: memory0-image |
||
35 | } |
||
36 | OBJECT memory0-image TYPE image { |
||
37 | queue: cpu0 |
||
38 | size: 0x08000000 |
||
39 | } |
||
794 | palkovsky | 40 | |
41 | OBJECT initmem0 TYPE ram { |
||
42 | image: initmem0-image |
||
43 | } |
||
44 | OBJECT initmem0-image TYPE image { |
||
45 | queue: cpu0 |
||
941 | palkovsky | 46 | size: 0x100000 |
794 | palkovsky | 47 | files: (("../../../uspace/init/init", "ro", 0,0)) |
48 | } |
||
49 | |||
324 | palkovsky | 50 | OBJECT rom0 TYPE rom { |
51 | image: rom0-image |
||
52 | } |
||
53 | OBJECT rom0-image TYPE image { |
||
54 | queue: cpu0 |
||
55 | size: 0x00400000 |
||
56 | } |
||
57 | |||
58 | OBJECT tty0 TYPE NS16550 { |
||
59 | irq-dev: pic0 |
||
60 | irq-level: 4 |
||
61 | queue: cpu0 |
||
62 | console: con0 |
||
63 | recorder: rec0 |
||
64 | } |
||
65 | |||
66 | OBJECT pic0 TYPE i8259x2 { |
||
67 | queue: cpu0 |
||
68 | irq-dev: gt64120-0 |
||
69 | # It seems like Linux expects the master 8259 to have VBA 0. |
||
70 | # Maybe that would be set up by YAMON? |
||
71 | vba: (0, 1) |
||
72 | } |
||
73 | |||
74 | OBJECT con0 TYPE xterm-console { |
||
75 | title: "mips32-test-machine" |
||
76 | bg-color: "black" |
||
77 | fg-color: "green" |
||
78 | queue: cpu0 |
||
79 | device: tty0 |
||
80 | output-timeout: 120 |
||
81 | } |
||
82 | |||
83 | OBJECT rtc0 TYPE DS12887 { |
||
84 | irq-dev: pic0 |
||
85 | irq-level: 8 |
||
86 | queue: cpu0 |
||
87 | } |
||
88 | |||
89 | OBJECT malta0 TYPE malta { |
||
90 | console: display0 |
||
91 | } |
||
92 | |||
93 | OBJECT display0 TYPE xterm-console { |
||
94 | title: "MALTA Display" |
||
95 | bg-color: "black" |
||
96 | fg-color: "red" |
||
97 | width: 8 |
||
98 | height: 1 |
||
99 | scrollbar: 0 |
||
100 | x11-font: "-*-*-*-r-*-*-*-240-*-*-m-*-*-*" |
||
101 | win32-font: "Lucida Console:Bold:48" |
||
102 | queue: cpu0 |
||
103 | output-timeout: 120 |
||
104 | } |
||
105 | |||
106 | # PCI buses |
||
107 | OBJECT pci-bus0 TYPE pci-bus { |
||
108 | queue: cpu0 |
||
109 | bridge: gt64120-0-pci-0-0 |
||
110 | interrupt: gt64120-0-pci-0-0 |
||
111 | conf-space: pci-bus0-conf-space |
||
112 | memory-space: pci-bus0-memory-space |
||
113 | io-space: pci-bus0-io-space |
||
114 | |||
115 | pci-devices: ((0, 0, gt64120-0-pci-0-0), |
||
116 | (0, 1, gt64120-0-pci-0-1)) |
||
117 | } |
||
118 | |||
119 | OBJECT pci-bus0-conf-space TYPE memory-space { |
||
120 | queue: cpu0 |
||
121 | } |
||
122 | |||
123 | OBJECT pci-bus1-conf-space TYPE memory-space { |
||
124 | queue: cpu0 |
||
125 | } |
||
126 | |||
127 | OBJECT pci-bus0-memory-space TYPE memory-space { |
||
128 | queue: cpu0 |
||
129 | } |
||
130 | |||
131 | OBJECT pci-bus1 TYPE pci-bus { |
||
132 | queue: cpu0 |
||
133 | bridge: gt64120-0-pci-1-0 |
||
134 | interrupt: gt64120-0-pci-1-0 |
||
135 | conf-space: pci-bus1-conf-space |
||
136 | memory-space: pci-bus1-memory-space |
||
137 | io-space: pci-bus1-io-space |
||
138 | |||
139 | pci-devices: ((0, 0, gt64120-0-pci-1-0), |
||
140 | (0, 1, gt64120-0-pci-1-1)) |
||
141 | } |
||
142 | |||
143 | OBJECT pci-bus1-memory-space TYPE memory-space { |
||
144 | queue: cpu0 |
||
145 | } |
||
146 | |||
147 | OBJECT pci-bus0-io-space TYPE memory-space { |
||
148 | queue: cpu0 |
||
149 | } |
||
150 | |||
151 | OBJECT pci-bus1-io-space TYPE memory-space { |
||
152 | queue: cpu0 |
||
153 | } |
||
154 | |||
155 | # GT64120 chipset |
||
156 | OBJECT gt64120-0 TYPE GT64120 { |
||
157 | queue: cpu0 |
||
158 | cpu-mem: phys-mem0 |
||
159 | |||
160 | pci-0-0: gt64120-0-pci-0-0 |
||
161 | pci-0-1: gt64120-0-pci-0-1 |
||
162 | pci-1-0: gt64120-0-pci-1-0 |
||
163 | pci-1-1: gt64120-0-pci-1-1 |
||
164 | |||
165 | scs0: memory0 |
||
166 | cs3: cbus-space |
||
167 | bootcs: cbus-space |
||
168 | pci-0-conf: pci-bus0-conf-space |
||
169 | pci-0-io: pci-bus0-io-space |
||
170 | pci-0-memory: pci-bus0-memory-space |
||
171 | pci-1-conf: pci-bus1-conf-space |
||
172 | pci-1-io: pci-bus1-io-space |
||
173 | pci-1-memory: pci-bus1-memory-space |
||
174 | |||
175 | irq-dev: cpu0 |
||
176 | irq-level: 2 |
||
177 | |||
178 | # Little endian |
||
179 | cpu_interface_configuration: 0x00041000 |
||
180 | |||
181 | # Map 128MB RAM. |
||
182 | scs10-high-decode-address: 0x40 |
||
183 | scs0-low-decode-address: 0x0 |
||
184 | scs0-high-decode-address: 0x7f |
||
185 | |||
186 | # Map the internal registers at 0x1be00000. |
||
187 | internal-space-decode: 0xdf |
||
188 | |||
189 | # Disable host-PCI mappings |
||
190 | pci-0-io-high-decode-address: 0 |
||
191 | pci-0-io-low-decode-address: 1 |
||
192 | pci-0-io-remap: 1 |
||
193 | pci-0-memory-0-high-decode-address: 0 |
||
194 | pci-0-memory-0-low-decode-address: 1 |
||
195 | pci-0-memory-0-remap: 1 |
||
196 | pci-0-memory-1-high-decode-address: 0 |
||
197 | pci-0-memory-1-low-decode-address: 1 |
||
198 | pci-0-memory-1-remap: 1 |
||
199 | pci-1-io-high-decode-address: 0 |
||
200 | pci-1-io-low-decode-address: 1 |
||
201 | pci-1-io-remap: 1 |
||
202 | pci-1-memory-0-high-decode-address: 0 |
||
203 | pci-1-memory-0-low-decode-address: 1 |
||
204 | pci-1-memory-0-remap: 1 |
||
205 | pci-1-memory-1-high-decode-address: 0 |
||
206 | pci-1-memory-1-low-decode-address: 1 |
||
207 | pci-1-memory-1-remap: 1 |
||
208 | |||
209 | # Disable PCI-host mappings |
||
210 | pci-0-base-address-registers-enable: 0x1ff |
||
211 | pci-1-base-address-registers-enable: 0x1ff |
||
212 | } |
||
213 | |||
214 | OBJECT gt64120-0-pci-0-0 TYPE GT64120-pci { |
||
215 | queue: cpu0 |
||
216 | |||
217 | gt64120: gt64120-0 |
||
218 | bridge-num: 0 |
||
219 | function-num: 0 |
||
220 | |||
221 | pci-bus: pci-bus0 |
||
222 | } |
||
223 | |||
224 | OBJECT gt64120-0-pci-0-1 TYPE GT64120-pci { |
||
225 | queue: cpu0 |
||
226 | |||
227 | gt64120: gt64120-0 |
||
228 | bridge-num: 0 |
||
229 | function-num: 1 |
||
230 | |||
231 | pci-bus: pci-bus0 |
||
232 | } |
||
233 | |||
234 | OBJECT gt64120-0-pci-1-0 TYPE GT64120-pci { |
||
235 | queue: cpu0 |
||
236 | |||
237 | gt64120: gt64120-0 |
||
238 | bridge-num: 1 |
||
239 | function-num: 0 |
||
240 | |||
241 | pci-bus: pci-bus1 |
||
242 | } |
||
243 | |||
244 | OBJECT gt64120-0-pci-1-1 TYPE GT64120-pci { |
||
245 | queue: cpu0 |
||
246 | |||
247 | gt64120: gt64120-0 |
||
248 | bridge-num: 1 |
||
249 | function-num: 1 |
||
250 | |||
251 | pci-bus: pci-bus1 |
||
252 | } |
||
253 | |||
254 | # Various |
||
255 | OBJECT rec0 TYPE recorder { |
||
256 | } |
||
257 | |||
258 | OBJECT hfs0 TYPE hostfs { |
||
259 | } |
||
260 | |||
261 | OBJECT sim TYPE sim { |
||
262 | handle-outside-memory: 1 |
||
263 | } |