VirtualBox

source: vbox/trunk/src/VBox/Devices/PC/BIOS-new/pirq.inc@ 41513

Last change on this file since 41513 was 41496, checked in by vboxsync, 13 years ago

BIOS-new: More dias code.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 14.2 KB
Line 
1;;
2;; Copyright (C) 2006-2011 Oracle Corporation
3;;
4;; This file is part of VirtualBox Open Source Edition (OSE), as
5;; available from http://www.virtualbox.org. This file is free software;
6;; you can redistribute it and/or modify it under the terms of the GNU
7;; General Public License (GPL) as published by the Free Software
8;; Foundation, in version 2 as it comes in the "COPYING" file of the
9;; VirtualBox OSE distribution. VirtualBox OSE is distributed in the
10;; hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
11;; --------------------------------------------------------------------
12;;
13;; This code is based on:
14;;
15;; ROM BIOS for use with Bochs/Plex86/QEMU emulation environment
16;;
17;; Copyright (C) 2002 MandrakeSoft S.A.
18;;
19;; MandrakeSoft S.A.
20;; 43, rue d'Aboukir
21;; 75002 Paris - France
22;; http://www.linux-mandrake.com/
23;; http://www.mandrakesoft.com/
24;;
25;; This library is free software; you can redistribute it and/or
26;; modify it under the terms of the GNU Lesser General Public
27;; License as published by the Free Software Foundation; either
28;; version 2 of the License, or (at your option) any later version.
29;;
30;; This library is distributed in the hope that it will be useful,
31;; but WITHOUT ANY WARRANTY; without even the implied warranty of
32;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
33;; Lesser General Public License for more details.
34;;
35;; You should have received a copy of the GNU Lesser General Public
36;; License along with this library; if not, write to the Free Software
37;; Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
38;;
39;;
40
41if BX_PCIBIOS
42public pci_routing_table_structure ; For disassembly
43
44align 16
45pci_routing_table_structure:
46 db '$PIR' ;; "$PIR" signature
47 db 0, 1 ;; version
48ifdef VBOX
49 dw 32 + (30 * 16) ;; table size
50else ; !VBOX
51 dw 32 + (6 * 16) ;; table size
52endif ; !VBOX
53 db 0 ;; PCI interrupt router bus
54 db 8 ;; PCI interrupt router DevFunc
55 dw 0000h ;; PCI exclusive IRQs
56 dw 8086h ;; compatible PCI interrupt router vendor ID
57 dw 7000h ;; compatible PCI interrupt router device ID
58 dw 0,0 ;; Miniport data
59 db 0,0,0,0,0,0,0,0,0,0,0 ;; reserved
60ifdef VBOX
61 db 0 ;; checksum (set by biossums)
62else ; !VBOX
63 db 7 ;; checksum
64endif ; !VBOX
65pci_routing_table_structure_start:
66 ;; first slot entry PCI-to-ISA (embedded)
67 db 0 ;; pci bus number
68 db 008h ;; pci device number (bit 7-3)
69 db 60h ;; link value INTA#: pointer into PCI2ISA config space
70 dw 0DEF8h ;; IRQ bitmap INTA#
71 db 61h ;; link value INTB#
72 dw 0DEF8h ;; IRQ bitmap INTB#
73 db 62h ;; link value INTC#
74 dw 0DEF8h ;; IRQ bitmap INTC#
75 db 63h ;; link value INTD#
76 dw 0DEF8h ;; IRQ bitmap INTD#
77 db 0 ;; physical slot (0 = embedded)
78 db 0 ;; reserved
79 ;; second slot entry: 1st PCI slot
80 db 0 ;; pci bus number
81 db 010h ;; pci device number (bit 7-3)
82 db 61h ;; link value INTA#
83 dw 0DEF8h ;; IRQ bitmap INTA#
84 db 62h ;; link value INTB#
85 dw 0DEF8h ;; IRQ bitmap INTB#
86 db 63h ;; link value INTC#
87 dw 0DEF8h ;; IRQ bitmap INTC#
88 db 60h ;; link value INTD#
89 dw 0DEF8h ;; IRQ bitmap INTD#
90 db 1 ;; physical slot (0 = embedded)
91 db 0 ;; reserved
92 ;; third slot entry: 2nd PCI slot
93 db 0 ;; pci bus number
94 db 018h ;; pci device number (bit 7-3)
95 db 62h ;; link value INTA#
96 dw 0DEF8h ;; IRQ bitmap INTA#
97 db 63h ;; link value INTB#
98 dw 0DEF8h ;; IRQ bitmap INTB#
99 db 60h ;; link value INTC#
100 dw 0DEF8h ;; IRQ bitmap INTC#
101 db 61h ;; link value INTD#
102 dw 0DEF8h ;; IRQ bitmap INTD#
103 db 2 ;; physical slot (0 = embedded)
104 db 0 ;; reserved
105 ;; 4th slot entry: 3rd PCI slot
106 db 0 ;; pci bus number
107 db 020h ;; pci device number (bit 7-3)
108 db 63h ;; link value INTA#
109 dw 0DEF8h ;; IRQ bitmap INTA#
110 db 60h ;; link value INTB#
111 dw 0DEF8h ;; IRQ bitmap INTB#
112 db 61h ;; link value INTC#
113 dw 0DEF8h ;; IRQ bitmap INTC#
114 db 62h ;; link value INTD#
115 dw 0DEF8h ;; IRQ bitmap INTD#
116 db 3 ;; physical slot (0 = embedded)
117 db 0 ;; reserved
118 ;; 5th slot entry: 4rd PCI slot
119 db 0 ;; pci bus number
120 db 028h ;; pci device number (bit 7-3)
121 db 60h ;; link value INTA#
122 dw 0DEF8h ;; IRQ bitmap INTA#
123 db 61h ;; link value INTB#
124 dw 0DEF8h ;; IRQ bitmap INTB#
125 db 62h ;; link value INTC#
126 dw 0DEF8h ;; IRQ bitmap INTC#
127 db 63h ;; link value INTD#
128 dw 0DEF8h ;; IRQ bitmap INTD#
129 db 4 ;; physical slot (0 = embedded)
130 db 0 ;; reserved
131 ;; 6th slot entry: 5rd PCI slot
132 db 0 ;; pci bus number
133 db 030h ;; pci device number (bit 7-3)
134 db 61h ;; link value INTA#
135 dw 0DEF8h ;; IRQ bitmap INTA#
136 db 62h ;; link value INTB#
137 dw 0DEF8h ;; IRQ bitmap INTB#
138 db 63h ;; link value INTC#
139 dw 0DEF8h ;; IRQ bitmap INTC#
140 db 60h ;; link value INTD#
141 dw 0DEF8h ;; IRQ bitmap INTD#
142 db 5 ;; physical slot (0 = embedded)
143 db 0 ;; reserved
144ifdef VBOX
145 ;; 7th slot entry: 6th PCI slot
146 db 0 ;; pci bus number
147 db 038h ;; pci device number (bit 7-3)
148 db 62h ;; link value INTA#
149 dw 0DEF8h ;; IRQ bitmap INTA#
150 db 63h ;; link value INTB#
151 dw 0DEF8h ;; IRQ bitmap INTB#
152 db 60h ;; link value INTC#
153 dw 0DEF8h ;; IRQ bitmap INTC#
154 db 61h ;; link value INTD#
155 dw 0DEF8h ;; IRQ bitmap INTD#
156 db 6 ;; physical slot (0 = embedded)
157 db 0 ;; reserved
158 ;; 8th slot entry: 7th PCI slot
159 db 0 ;; pci bus number
160 db 040h ;; pci device number (bit 7-3)
161 db 63h ;; link value INTA#
162 dw 0DEF8h ;; IRQ bitmap INTA#
163 db 60h ;; link value INTB#
164 dw 0DEF8h ;; IRQ bitmap INTB#
165 db 61h ;; link value INTC#
166 dw 0DEF8h ;; IRQ bitmap INTC#
167 db 62h ;; link value INTD#
168 dw 0DEF8h ;; IRQ bitmap INTD#
169 db 7 ;; physical slot (0 = embedded)
170 db 0 ;; reserved
171 ;; 9th slot entry: 8th PCI slot
172 db 0 ;; pci bus number
173 db 048h ;; pci device number (bit 7-3)
174 db 60h ;; link value INTA#
175 dw 0DEF8h ;; IRQ bitmap INTA#
176 db 61h ;; link value INTB#
177 dw 0DEF8h ;; IRQ bitmap INTB#
178 db 62h ;; link value INTC#
179 dw 0DEF8h ;; IRQ bitmap INTC#
180 db 63h ;; link value INTD#
181 dw 0DEF8h ;; IRQ bitmap INTD#
182 db 8 ;; physical slot (0 = embedded)
183 db 0 ;; reserved
184 ;; 10th slot entry: 9th PCI slot
185 db 0 ;; pci bus number
186 db 050h ;; pci device number (bit 7-3)
187 db 61h ;; link value INTA#
188 dw 0DEF8h ;; IRQ bitmap INTA#
189 db 62h ;; link value INTB#
190 dw 0DEF8h ;; IRQ bitmap INTB#
191 db 63h ;; link value INTC#
192 dw 0DEF8h ;; IRQ bitmap INTC#
193 db 60h ;; link value INTD#
194 dw 0DEF8h ;; IRQ bitmap INTD#
195 db 9 ;; physical slot (0 = embedded)
196 db 0 ;; reserved
197 ;; 11th slot entry: 10th PCI slot
198 db 0 ;; pci bus number
199 db 058h ;; pci device number (bit 7-3)
200 db 62h ;; link value INTA#
201 dw 0DEF8h ;; IRQ bitmap INTA#
202 db 63h ;; link value INTB#
203 dw 0DEF8h ;; IRQ bitmap INTB#
204 db 60h ;; link value INTC#
205 dw 0DEF8h ;; IRQ bitmap INTC#
206 db 61h ;; link value INTD#
207 dw 0DEF8h ;; IRQ bitmap INTD#
208 db 10 ;; physical slot (0 = embedded)
209 db 0 ;; reserved
210 ;; 12th slot entry: 11th PCI slot
211 db 0 ;; pci bus number
212 db 60h ;; pci device number (bit 7-3)
213 db 63h ;; link value INTA#
214 dw 0DEF8h ;; IRQ bitmap INTA#
215 db 60h ;; link value INTB#
216 dw 0DEF8h ;; IRQ bitmap INTB#
217 db 61h ;; link value INTC#
218 dw 0DEF8h ;; IRQ bitmap INTC#
219 db 62h ;; link value INTD#
220 dw 0DEF8h ;; IRQ bitmap INTD#
221 db 11 ;; physical slot (0 = embedded)
222 db 0 ;; reserved
223 ;; 13th slot entry: 12th PCI slot
224 db 0 ;; pci bus number
225 db 068h ;; pci device number (bit 7-3)
226 db 60h ;; link value INTA#
227 dw 0DEF8h ;; IRQ bitmap INTA#
228 db 61h ;; link value INTB#
229 dw 0DEF8h ;; IRQ bitmap INTB#
230 db 62h ;; link value INTC#
231 dw 0DEF8h ;; IRQ bitmap INTC#
232 db 63h ;; link value INTD#
233 dw 0DEF8h ;; IRQ bitmap INTD#
234 db 12 ;; physical slot (0 = embedded)
235 db 0 ;; reserved
236 ;; 14th slot entry: 13th PCI slot
237 db 0 ;; pci bus number
238 db 070h ;; pci device number (bit 7-3)
239 db 61h ;; link value INTA#
240 dw 0DEF8h ;; IRQ bitmap INTA#
241 db 62h ;; link value INTB#
242 dw 0DEF8h ;; IRQ bitmap INTB#
243 db 63h ;; link value INTC#
244 dw 0DEF8h ;; IRQ bitmap INTC#
245 db 60h ;; link value INTD#
246 dw 0DEF8h ;; IRQ bitmap INTD#
247 db 13 ;; physical slot (0 = embedded)
248 db 0 ;; reserved
249 ;; 15th slot entry: 14th PCI slot
250 db 0 ;; pci bus number
251 db 078h ;; pci device number (bit 7-3)
252 db 62h ;; link value INTA#
253 dw 0DEF8h ;; IRQ bitmap INTA#
254 db 63h ;; link value INTB#
255 dw 0DEF8h ;; IRQ bitmap INTB#
256 db 60h ;; link value INTC#
257 dw 0DEF8h ;; IRQ bitmap INTC#
258 db 61h ;; link value INTD#
259 dw 0DEF8h ;; IRQ bitmap INTD#
260 db 14 ;; physical slot (0 = embedded)
261 db 0 ;; reserved
262 ;; 16th slot entry: 15th PCI slot
263 db 0 ;; pci bus number
264 db 080h ;; pci device number (bit 7-3)
265 db 63h ;; link value INTA#
266 dw 0DEF8h ;; IRQ bitmap INTA#
267 db 60h ;; link value INTB#
268 dw 0DEF8h ;; IRQ bitmap INTB#
269 db 61h ;; link value INTC#
270 dw 0DEF8h ;; IRQ bitmap INTC#
271 db 62h ;; link value INTD#
272 dw 0DEF8h ;; IRQ bitmap INTD#
273 db 15 ;; physical slot (0 = embedded)
274 db 0 ;; reserved
275 ;; 17th slot entry: 16th PCI slot
276 db 0 ;; pci bus number
277 db 088h ;; pci device number (bit 7-3)
278 db 60h ;; link value INTA#
279 dw 0DEF8h ;; IRQ bitmap INTA#
280 db 61h ;; link value INTB#
281 dw 0DEF8h ;; IRQ bitmap INTB#
282 db 62h ;; link value INTC#
283 dw 0DEF8h ;; IRQ bitmap INTC#
284 db 63h ;; link value INTD#
285 dw 0DEF8h ;; IRQ bitmap INTD#
286 db 16 ;; physical slot (0 = embedded)
287 db 0 ;; reserved
288 ;; 18th slot entry: 17th PCI slot
289 db 0 ;; pci bus number
290 db 090h ;; pci device number (bit 7-3)
291 db 61h ;; link value INTA#
292 dw 0DEF8h ;; IRQ bitmap INTA#
293 db 62h ;; link value INTB#
294 dw 0DEF8h ;; IRQ bitmap INTB#
295 db 63h ;; link value INTC#
296 dw 0DEF8h ;; IRQ bitmap INTC#
297 db 60h ;; link value INTD#
298 dw 0DEF8h ;; IRQ bitmap INTD#
299 db 17 ;; physical slot (0 = embedded)
300 db 0 ;; reserved
301 ;; 19th slot entry: 18th PCI slot
302 db 0 ;; pci bus number
303 db 098h ;; pci device number (bit 7-3)
304 db 62h ;; link value INTA#
305 dw 0DEF8h ;; IRQ bitmap INTA#
306 db 63h ;; link value INTB#
307 dw 0DEF8h ;; IRQ bitmap INTB#
308 db 60h ;; link value INTC#
309 dw 0DEF8h ;; IRQ bitmap INTC#
310 db 61h ;; link value INTD#
311 dw 0DEF8h ;; IRQ bitmap INTD#
312 db 18 ;; physical slot (0 = embedded)
313 db 0 ;; reserved
314 ;; 20th slot entry: 19th PCI slot
315 db 0 ;; pci bus number
316 db 0A0h ;; pci device number (bit 7-3)
317 db 63h ;; link value INTA#
318 dw 0DEF8h ;; IRQ bitmap INTA#
319 db 60h ;; link value INTB#
320 dw 0DEF8h ;; IRQ bitmap INTB#
321 db 61h ;; link value INTC#
322 dw 0DEF8h ;; IRQ bitmap INTC#
323 db 62h ;; link value INTD#
324 dw 0DEF8h ;; IRQ bitmap INTD#
325 db 19 ;; physical slot (0 = embedded)
326 db 0 ;; reserved
327 ;; 21st slot entry: 20th PCI slot
328 db 0 ;; pci bus number
329 db 0A8h ;; pci device number (bit 7-3)
330 db 60h ;; link value INTA#
331 dw 0DEF8h ;; IRQ bitmap INTA#
332 db 61h ;; link value INTB#
333 dw 0DEF8h ;; IRQ bitmap INTB#
334 db 62h ;; link value INTC#
335 dw 0DEF8h ;; IRQ bitmap INTC#
336 db 63h ;; link value INTD#
337 dw 0DEF8h ;; IRQ bitmap INTD#
338 db 20 ;; physical slot (0 = embedded)
339 db 0 ;; reserved
340 ;; 22nd slot entry: 21st PCI slot
341 db 0 ;; pci bus number
342 db 0B0h ;; pci device number (bit 7-3)
343 db 61h ;; link value INTA#
344 dw 0DEF8h ;; IRQ bitmap INTA#
345 db 62h ;; link value INTB#
346 dw 0DEF8h ;; IRQ bitmap INTB#
347 db 63h ;; link value INTC#
348 dw 0DEF8h ;; IRQ bitmap INTC#
349 db 60h ;; link value INTD#
350 dw 0DEF8h ;; IRQ bitmap INTD#
351 db 21 ;; physical slot (0 = embedded)
352 db 0 ;; reserved
353 ;; 23rd slot entry: 22nd PCI slot
354 db 0 ;; pci bus number
355 db 0B8h ;; pci device number (bit 7-3)
356 db 62h ;; link value INTA#
357 dw 0DEF8h ;; IRQ bitmap INTA#
358 db 63h ;; link value INTB#
359 dw 0DEF8h ;; IRQ bitmap INTB#
360 db 60h ;; link value INTC#
361 dw 0DEF8h ;; IRQ bitmap INTC#
362 db 61h ;; link value INTD#
363 dw 0DEF8h ;; IRQ bitmap INTD#
364 db 22 ;; physical slot (0 = embedded)
365 db 0 ;; reserved
366 ;; 24th slot entry: 23rd PCI slot
367 db 0 ;; pci bus number
368 db 0C0h ;; pci device number (bit 7-3)
369 db 63h ;; link value INTA#
370 dw 0DEF8h ;; IRQ bitmap INTA#
371 db 60h ;; link value INTB#
372 dw 0DEF8h ;; IRQ bitmap INTB#
373 db 61h ;; link value INTC#
374 dw 0DEF8h ;; IRQ bitmap INTC#
375 db 62h ;; link value INTD#
376 dw 0DEF8h ;; IRQ bitmap INTD#
377 db 23 ;; physical slot (0 = embedded)
378 db 0 ;; reserved
379 ;; 25th slot entry: 24th PCI slot
380 db 0 ;; pci bus number
381 db 0C8h ;; pci device number (bit 7-3)
382 db 60h ;; link value INTA#
383 dw 0DEF8h ;; IRQ bitmap INTA#
384 db 61h ;; link value INTB#
385 dw 0DEF8h ;; IRQ bitmap INTB#
386 db 62h ;; link value INTC#
387 dw 0DEF8h ;; IRQ bitmap INTC#
388 db 63h ;; link value INTD#
389 dw 0DEF8h ;; IRQ bitmap INTD#
390 db 24 ;; physical slot (0 = embedded)
391 db 0 ;; reserved
392 ;; 26th slot entry: 25th PCI slot
393 db 0 ;; pci bus number
394 db 0D0h ;; pci device number (bit 7-3)
395 db 61h ;; link value INTA#
396 dw 0DEF8h ;; IRQ bitmap INTA#
397 db 62h ;; link value INTB#
398 dw 0DEF8h ;; IRQ bitmap INTB#
399 db 63h ;; link value INTC#
400 dw 0DEF8h ;; IRQ bitmap INTC#
401 db 60h ;; link value INTD#
402 dw 0DEF8h ;; IRQ bitmap INTD#
403 db 25 ;; physical slot (0 = embedded)
404 db 0 ;; reserved
405 ;; 27th slot entry: 26th PCI slot
406 db 0 ;; pci bus number
407 db 0D8h ;; pci device number (bit 7-3)
408 db 62h ;; link value INTA#
409 dw 0DEF8h ;; IRQ bitmap INTA#
410 db 63h ;; link value INTB#
411 dw 0DEF8h ;; IRQ bitmap INTB#
412 db 60h ;; link value INTC#
413 dw 0DEF8h ;; IRQ bitmap INTC#
414 db 61h ;; link value INTD#
415 dw 0DEF8h ;; IRQ bitmap INTD#
416 db 26 ;; physical slot (0 = embedded)
417 db 0 ;; reserved
418 ;; 28th slot entry: 27th PCI slot
419 db 0 ;; pci bus number
420 db 0E0h ;; pci device number (bit 7-3)
421 db 63h ;; link value INTA#
422 dw 0DEF8h ;; IRQ bitmap INTA#
423 db 60h ;; link value INTB#
424 dw 0DEF8h ;; IRQ bitmap INTB#
425 db 61h ;; link value INTC#
426 dw 0DEF8h ;; IRQ bitmap INTC#
427 db 62h ;; link value INTD#
428 dw 0DEF8h ;; IRQ bitmap INTD#
429 db 27 ;; physical slot (0 = embedded)
430 db 0 ;; reserved
431 ;; 29th slot entry: 28th PCI slot
432 db 0 ;; pci bus number
433 db 0E8h ;; pci device number (bit 7-3)
434 db 60h ;; link value INTA#
435 dw 0DEF8h ;; IRQ bitmap INTA#
436 db 61h ;; link value INTB#
437 dw 0DEF8h ;; IRQ bitmap INTB#
438 db 62h ;; link value INTC#
439 dw 0DEF8h ;; IRQ bitmap INTC#
440 db 63h ;; link value INTD#
441 dw 0DEF8h ;; IRQ bitmap INTD#
442 db 28 ;; physical slot (0 = embedded)
443 db 0 ;; reserved
444 ;; 30th slot entry: 29th PCI slot
445 db 0 ;; pci bus number
446 db 0F0h ;; pci device number (bit 7-3)
447 db 61h ;; link value INTA#
448 dw 0DEF8h ;; IRQ bitmap INTA#
449 db 62h ;; link value INTB#
450 dw 0DEF8h ;; IRQ bitmap INTB#
451 db 63h ;; link value INTC#
452 dw 0DEF8h ;; IRQ bitmap INTC#
453 db 60h ;; link value INTD#
454 dw 0DEF8h ;; IRQ bitmap INTD#
455 db 29 ;; physical slot (0 = embedded)
456 db 0 ;; reserved
457endif ; VBOX
458pci_routing_table_structure_end:
459
460endif ; BX_PCIBIOS
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette