1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
|
/* HP C3700 workstation */
/* AUTO-GENERATED HEADER FILE FOR SEABIOS FIRMWARE */
/* generated with Linux kernel */
/* search for PARISC_QEMU_MACHINE_HEADER in Linux */
#if 0
1. Astro BC Runway Port [10] at 0xfffffffffed00000 { type:12, hv:0x582, sv:0xb, rev:0x0 }
2. Elroy PCI Bridge [10:0] at 0xfffffffffed30000 { type:13, hv:0x782, sv:0xa, rev:0x0 }
3. Elroy PCI Bridge [10:1] at 0xfffffffffed32000 { type:13, hv:0x782, sv:0xa, rev:0x0 }
4. Elroy PCI Bridge [10:4] at 0xfffffffffed38000 { type:13, hv:0x782, sv:0xa, rev:0x0 }
5. Elroy PCI Bridge [10:6] at 0xfffffffffed3c000 { type:13, hv:0x782, sv:0xa, rev:0x0 }
6. Allegro W2 [32] at 0xfffffffffffa0000 { type:0, hv:0x5dc, sv:0x4, rev:0x0 }
7. Memory [49] at 0xfffffffffed10200 { type:1, hv:0x9c, sv:0x9, rev:0x0 }
#endif
#define PARISC_MODEL "9000/785/C3700"
#define PARISC_PDC_MODEL 0x5dc0, 0x481, 0x0, 0x2, 2004003700, 0x100000f0, 0x8, 0xb2, 0xb2, 1
#define PARISC_PDC_VERSION 0x0301
#define PARISC_PDC_CPUID 0x26b
#define PARISC_PDC_CAPABILITIES 0x0007
#define PARISC_PDC_ENTRY_ORG 0xfffffff0f0000018
#define PARISC_PDC_CACHE_INFO \
0xc0000, 0x91802000, 0x20000, 0x0040, 0x0c00 \
, 0x0001, 0x180000, 0xb1802000, 0x0000, 0x0040 \
, 0x6000, 0x0001, 0x00f0, 0xd2300, 0x0000 \
, 0x0000, 0x0001, 0x0000, 0x0000, 0x0001 \
, 0x0001, 0x00f0, 0xd2000, 0x0000, 0x0000 \
, 0x0001, 0x0000, 0x0000, 0x0001, 0x0001
#define HPA_fed00000_DESCRIPTION "Astro BC Runway Port"
static struct pdc_system_map_mod_info mod_info_hpa_fed00000 = {
.mod_addr = ASTRO_HPA,
.mod_pgs = 0x8,
.add_addrs = 0x0,
};
static struct pdc_module_path mod_path_hpa_fed00000 = {
.path = { .flags = 0x0, .bc = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff }, .mod = ASTRO_BUS_MODULE },
.layers = { 0x0, 0x0, 0x0, 0x0, 0x0, 0x0 }
};
static struct pdc_iodc iodc_data_hpa_fed00000 = {
.hversion_model = 0x0058,
.hversion = 0x0020,
.spa = 0x0000,
.type = 0x000c,
.sversion_rev = 0x0000,
.sversion_model = 0x0005,
.sversion_opt = 0x0088,
.rev = 0x0000,
.dep = 0x0000,
.features = 0x0000,
.checksum = 0x0000,
.length = 0x0000,
/* pad: 0x0000, 0x0000 */
};
#define HPA_fed00000_num_addr 0
#define HPA_fed00000_add_addr 0
#define HPA_fed30000_DESCRIPTION "Elroy PCI Bridge"
static struct pdc_system_map_mod_info mod_info_hpa_fed30000 = {
.mod_addr = ELROY0_HPA,
.mod_pgs = 0x2,
.add_addrs = 0x0,
};
static struct pdc_module_path mod_path_hpa_fed30000 = {
.path = { .flags = 0x0, .bc = { 0xff, 0xff, 0xff, 0xff, 0xff, ASTRO_BUS_MODULE }, .mod = 0x0 },
.layers = { 0x0, 0x0, 0x0, 0x0, 0x0, 0x0 }
};
static struct pdc_iodc iodc_data_hpa_fed30000 = {
.hversion_model = 0x0078,
.hversion = 0x0020,
.spa = 0x0000,
.type = 0x000d,
.sversion_rev = 0x0000,
.sversion_model = 0x0005,
.sversion_opt = 0x0000,
.rev = 0x0000,
.dep = 0x0000,
.features = 0x0000,
.checksum = 0x0000,
.length = 0x0000,
/* pad: 0x0000, 0x0000 */
};
#define HPA_fed30000_num_addr 0
#define HPA_fed30000_add_addr 0
#define HPA_fed32000_DESCRIPTION "Elroy PCI Bridge"
static struct pdc_system_map_mod_info mod_info_hpa_fed32000 = {
.mod_addr = ELROY2_HPA,
.mod_pgs = 0x2,
.add_addrs = 0x0,
};
static struct pdc_module_path mod_path_hpa_fed32000 = {
.path = { .flags = 0x0, .bc = { 0xff, 0xff, 0xff, 0xff, 0xff, ASTRO_BUS_MODULE }, .mod = 0x1 },
.layers = { 0x0, 0x0, 0x0, 0x0, 0x0, 0x0 }
};
static struct pdc_iodc iodc_data_hpa_fed32000 = {
.hversion_model = 0x0078,
.hversion = 0x0020,
.spa = 0x0000,
.type = 0x000d,
.sversion_rev = 0x0000,
.sversion_model = 0x0005,
.sversion_opt = 0x0000,
.rev = 0x0000,
.dep = 0x0000,
.features = 0x0000,
.checksum = 0x0000,
.length = 0x0000,
/* pad: 0x0000, 0x0000 */
};
#define HPA_fed32000_num_addr 0
#define HPA_fed32000_add_addr 0
#define HPA_fed38000_DESCRIPTION "Elroy PCI Bridge"
static struct pdc_system_map_mod_info mod_info_hpa_fed38000 = {
.mod_addr = ELROY8_HPA,
.mod_pgs = 0x2,
.add_addrs = 0x0,
};
static struct pdc_module_path mod_path_hpa_fed38000 = {
.path = { .flags = 0x0, .bc = { 0xff, 0xff, 0xff, 0xff, 0xff, ASTRO_BUS_MODULE }, .mod = 0x4 },
.layers = { 0x0, 0x0, 0x0, 0x0, 0x0, 0x0 }
};
static struct pdc_iodc iodc_data_hpa_fed38000 = {
.hversion_model = 0x0078,
.hversion = 0x0020,
.spa = 0x0000,
.type = 0x000d,
.sversion_rev = 0x0000,
.sversion_model = 0x0005,
.sversion_opt = 0x0000,
.rev = 0x0000,
.dep = 0x0000,
.features = 0x0000,
.checksum = 0x0000,
.length = 0x0000,
/* pad: 0x0000, 0x0000 */
};
#define HPA_fed38000_num_addr 0
#define HPA_fed38000_add_addr 0
#define HPA_fed3c000_DESCRIPTION "Elroy PCI Bridge"
static struct pdc_system_map_mod_info mod_info_hpa_fed3c000 = {
.mod_addr = ELROYc_HPA,
.mod_pgs = 0x2,
.add_addrs = 0x0,
};
static struct pdc_module_path mod_path_hpa_fed3c000 = {
.path = { .flags = 0x0, .bc = { 0xff, 0xff, 0xff, 0xff, 0xff, ASTRO_BUS_MODULE }, .mod = 0x6 },
.layers = { 0x0, 0x0, 0x0, 0x0, 0x0, 0x0 }
};
static struct pdc_iodc iodc_data_hpa_fed3c000 = {
.hversion_model = 0x0078,
.hversion = 0x0020,
.spa = 0x0000,
.type = 0x000d,
.sversion_rev = 0x0000,
.sversion_model = 0x0005,
.sversion_opt = 0x0000,
.rev = 0x0000,
.dep = 0x0000,
.features = 0x0000,
.checksum = 0x0000,
.length = 0x0000,
/* pad: 0x0000, 0x0000 */
};
#define HPA_fed3c000_num_addr 0
#define HPA_fed3c000_add_addr 0
#define HPA_fffa0000_DESCRIPTION "Allegro W2"
static struct pdc_system_map_mod_info mod_info_hpa_fffa0000 = {
.mod_addr = CPU_HPA /* 0xfffa0000 */,
.mod_pgs = 0x1,
.add_addrs = 0x0,
};
static struct pdc_module_path mod_path_hpa_fffa0000 = {
.path = { .flags = 0x0, .bc = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff }, .mod = 0x10 },
.layers = { 0x0, 0x0, 0x0, 0x0, 0x0, 0x0 }
};
static struct pdc_iodc iodc_data_hpa_fffa0000 = {
#if 1 // original C3700:
.hversion_model = 0x005d,
.hversion = 0x00c0, // C3700: c0, B160: 20
#else
/* this is from B160L */
.hversion_model = 0x0050,
.hversion = 0x0020,
#endif
.spa = 0x0000,
.type = 0x0040,
.sversion_rev = 0x0000,
.sversion_model = 0x0002,
.sversion_opt = 0x0040,
.rev = 0x0000,
.dep = 0x0000,
.features = 0x0000,
.checksum = 0x0000,
.length = 0x0000,
/* pad: 0x0000, 0x0000 */
};
#define HPA_fffa0000_num_addr 0
#define HPA_fffa0000_add_addr 0
#define HPA_fed10200_DESCRIPTION "Memory"
static struct pdc_system_map_mod_info mod_info_hpa_fed10200 = {
.mod_addr = ASTRO_MEMORY_HPA,
.mod_pgs = 0x8,
.add_addrs = 0x0,
};
static struct pdc_module_path mod_path_hpa_fed10200 = {
.path = { .flags = 0x0, .bc = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff }, .mod = 0x31 },
.layers = { 0x0, 0x0, 0x0, 0x0, 0x0, 0x0 }
};
static struct pdc_iodc iodc_data_hpa_fed10200 = {
.hversion_model = 0x0009,
.hversion = 0x00c0,
.spa = 0x001f,
.type = 0x0041,
.sversion_rev = 0x0000,
.sversion_model = 0x0004,
.sversion_opt = 0x0080,
.rev = 0x0000,
.dep = 0x0000,
.features = 0x0000,
.checksum = 0x0000,
.length = 0x0000,
/* pad: 0x0000, 0x0000 */
};
#define HPA_fed10200_num_addr 0
#define HPA_fed10200_add_addr 0
#define PARISC_DEVICE_LIST \
{ .hpa = ASTRO_HPA,\
.iodc = &iodc_data_hpa_fed00000,\
.mod_info = &mod_info_hpa_fed00000,\
.mod_path = &mod_path_hpa_fed00000,\
.num_addr = HPA_fed00000_num_addr,\
.add_addr = { HPA_fed00000_add_addr } },\
{ .hpa = ELROY0_HPA,\
.iodc = &iodc_data_hpa_fed30000,\
.mod_info = &mod_info_hpa_fed30000,\
.mod_path = &mod_path_hpa_fed30000,\
.num_addr = HPA_fed30000_num_addr,\
.add_addr = { HPA_fed30000_add_addr } },\
{ .hpa = ELROY2_HPA,\
.iodc = &iodc_data_hpa_fed32000,\
.mod_info = &mod_info_hpa_fed32000,\
.mod_path = &mod_path_hpa_fed32000,\
.num_addr = HPA_fed32000_num_addr,\
.add_addr = { HPA_fed32000_add_addr } },\
{ .hpa = ELROY8_HPA,\
.iodc = &iodc_data_hpa_fed38000,\
.mod_info = &mod_info_hpa_fed38000,\
.mod_path = &mod_path_hpa_fed38000,\
.num_addr = HPA_fed38000_num_addr,\
.add_addr = { HPA_fed38000_add_addr } },\
{ .hpa = ELROYc_HPA,\
.iodc = &iodc_data_hpa_fed3c000,\
.mod_info = &mod_info_hpa_fed3c000,\
.mod_path = &mod_path_hpa_fed3c000,\
.num_addr = HPA_fed3c000_num_addr,\
.add_addr = { HPA_fed3c000_add_addr } },\
{ .hpa = ASTRO_MEMORY_HPA,\
.iodc = &iodc_data_hpa_fed10200,\
.mod_info = &mod_info_hpa_fed10200,\
.mod_path = &mod_path_hpa_fed10200,\
.num_addr = HPA_fed10200_num_addr,\
.add_addr = { HPA_fed10200_add_addr } },\
{ .hpa = LASI_GFX_HPA, /* HACKED IN: Coral GSC graphics */ \
.iodc = &iodc_data_hpa_f8000000,\
.mod_info = &mod_info_hpa_f8000000,\
.mod_path = &mod_path_hpa_f8000000,\
.num_addr = HPA_f8000000_num_addr,\
.add_addr = { HPA_f8000000_add_addr } },\
{ .hpa = CPU_HPA /* XXX: 0xfffa0000 */ ,\
.iodc = &iodc_data_hpa_fffa0000,\
.mod_info = &mod_info_hpa_fffa0000,\
.mod_path = &mod_path_hpa_fffa0000,\
.num_addr = HPA_fffa0000_num_addr,\
.add_addr = { HPA_fffa0000_add_addr } },\
{ 0, }
|