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