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