📄 oemrpci.asm
字号:
; directly to an IRQ, then set this field to 0Fxh (where x is 0-F for ;
; IRQ 0 - IRQ 15). This is useful if a motherboard has a PCI IDE chip that ;
; has its Int A pin hardwired to IRQ 14. ;
; ;
; - Int A Pin, Bitmap of IRQs Routable to Pin: This field should be set to ;
; indicate which IRQs the chipset is capable of routing to the slot's (or ;
; device's) Int A pin. If the value for Chipset Reg (see above) was set to ;
; 0, then set all bits in this field to 0 also. If the value for Chipset ;
; Reg was set to 0Fxh to indicate a hardwired connection to a certain IRQ, ;
; then only one bit corresponding to that IRQ should be set in this field. ;
; ;
; - Int B,C,D Pin, Chipset Reg: These fields work exactly like the Chipset Reg ;
; field for Int A Pin (see above). ;
; ;
; - Int B,C,D Pin, Bitmap of IRQs Routable to Pin: These fields work exactly ;
; like the corresponding field for Int A Pin (see above). ;
; ;
; - Physical Slot Number: This field should be set to the slot number of a ;
; PCI slot as it appears to the end user. Numbers like 1, 2, 3, 4 should be ;
; used. On board PCI devices such as PCI IDE chips should have this field ;
; set to 0 to indicate that the device is not a removable card that is ;
; plugged into a slot. Configuration software can use this value to ;
; translate a PCI device number (0 - 1F) to a value that is meaningful to ;
; an end user. ;
; ;
; - Reserved Byte: Always set to 0. ;
; ;
;------------------------------------------------------------------------------;
public rth_pci_device_limit
public rth_pci_device_count
public rth_pci_dedicated_irqs
public rth_pci_irq_routing_table
rth_pci_irq_routing_table_signature db '$IRT' ;So BCP can find table
rth_pci_device_limit db 7 ;Total number of table entries below
rth_pci_device_count db 7 ;Number of table entries actually used
rth_pci_dedicated_irqs dw 0000000000000000b ;Bitmap of IRQs dedicated to PCI
rth_pci_irq_routing_table label byte
;-------------+-------------------+---------------------------+---------------------------+---------------------------+---------------------------+--------------------+
; USB | Device Location | Int A Pin | Int B Pin | Int C Pin | Int D Pin | |
; +-------------------+---------------------------+---------------------------+---------------------------+---------------------------+--------------------+
; | PCI Bus Dev Num | Chipset Bitmap of IRQs | Chipset Bitmap of IRQs | Chipset Bitmap of IRQs | Chipset Bitmap of IRQs | Physical Reserved |
; Device 1 | Number (Shl 3) | Reg Routable to Pin | Reg Routable Pin | Reg Routable Pin | Reg Routable Pin | Slot Num Byte |
;-------------+-------------------+---------------------------+---------------------------+---------------------------+---------------------------+--------------------+
pci_irq_entry < 00h, 008h, 062h, 1101111010111000b, 000h, 0000000000000000b, 000h, 0000000000000000b, 000h, 0000000000000000b, 0, 0 >
;-------------+-------------------+---------------------------+---------------------------+---------------------------+---------------------------+--------------------+
; AGP Bridge | Device Location | Int A Pin | Int B Pin | Int C Pin | Int D Pin | |
; +-------------------+---------------------------+---------------------------+---------------------------+---------------------------+--------------------+
; | PCI Bus Dev Num | Chipset Bitmap of IRQs | Chipset Bitmap of IRQs | Chipset Bitmap of IRQs | Chipset Bitmap of IRQs | Physical Reserved |
; Device 2 | Number (Shl 3) | Reg Routable to Pin | Reg Routable Pin | Reg Routable Pin | Reg Routable Pin | Slot Num Byte |
;-------------+-------------------+---------------------------+---------------------------+---------------------------+---------------------------+--------------------+
pci_irq_entry < 00h, 010h, 041h, 1101111010111000b, 042h, 1101111010111000b, 043h, 1101111010111000b, 044h, 1101111010111000b, 0, 0 >
;-------------+-------------------+---------------------------+---------------------------+---------------------------+---------------------------+--------------------+
; Slot 1 | Device Location | Int A Pin | Int B Pin | Int C Pin | Int D Pin | |
; +-------------------+---------------------------+---------------------------+---------------------------+---------------------------+--------------------+
; AD#20 | PCI Bus Dev Num | Chipset Bitmap of IRQs | Chipset Bitmap of IRQs | Chipset Bitmap of IRQs | Chipset Bitmap of IRQs | Physical Reserved |
; Device 9 | Number (Shl 3) | Reg Routable to Pin | Reg Routable Pin | Reg Routable Pin | Reg Routable Pin | Slot Num Byte |
;-------------+-------------------+---------------------------+---------------------------+---------------------------+---------------------------+--------------------+
pci_irq_entry < 00h, 048h, 041h, 1101111010111000b, 042h, 1101111010111000b, 043h, 1101111010111000b, 044h, 1101111010111000b, 1, 0 >
;-------------+-------------------+---------------------------+---------------------------+---------------------------+---------------------------+--------------------+
; Slot 2 | Device Location | Int A Pin | Int B Pin | Int C Pin | Int D Pin | |
; +-------------------+---------------------------+---------------------------+---------------------------+---------------------------+--------------------+
; AD#21 | PCI Bus Dev Num | Chipset Bitmap of IRQs | Chipset Bitmap of IRQs | Chipset Bitmap of IRQs | Chipset Bitmap of IRQs | Physical Reserved |
; Device 10 | Number (Shl 3) | Reg Routable to Pin | Reg Routable Pin | Reg Routable Pin | Reg Routable Pin | Slot Num Byte |
;-------------+-------------------+---------------------------+---------------------------+---------------------------+---------------------------+--------------------+
pci_irq_entry < 00h, 050h, 044h, 1101111010111000b, 041h, 1101111010111000b, 042h, 1101111010111000b, 043h, 1101111010111000b, 2, 0 >
;-------------+-------------------+---------------------------+---------------------------+---------------------------+---------------------------+--------------------+
; Slot 3 | Device Location | Int A Pin | Int B Pin | Int C Pin | Int D Pin | |
; +-------------------+---------------------------+---------------------------+---------------------------+---------------------------+--------------------+
; AD#22 | PCI Bus Dev Num | Chipset Bitmap of IRQs | Chipset Bitmap of IRQs | Chipset Bitmap of IRQs | Chipset Bitmap of IRQs | Physical Reserved |
; Device 11 | Number (Shl 3) | Reg Routable to Pin | Reg Routable Pin | Reg Routable Pin | Reg Routable Pin | Slot Num Byte |
;-------------+-------------------+---------------------------+---------------------------+---------------------------+---------------------------+--------------------+
pci_irq_entry < 00h, 058h, 043h, 1101111010111000b, 044h, 1101111010111000b, 041h, 1101111010111000b, 042h, 1101111010111000b, 3, 0 >
;-------------+-------------------+---------------------------+---------------------------+---------------------------+---------------------------+--------------------+
; Slot 4 | Device Location | Int A Pin | Int B Pin | Int C Pin | Int D Pin | |
; +-------------------+---------------------------+---------------------------+---------------------------+---------------------------+--------------------+
; AD#23 | PCI Bus Dev Num | Chipset Bitmap of IRQs | Chipset Bitmap of IRQs | Chipset Bitmap of IRQs | Chipset Bitmap of IRQs | Physical Reserved |
; Device 12 | Number (Shl 3) | Reg Routable to Pin | Reg Routable Pin | Reg Routable Pin | Reg Routable Pin | Slot Num Byte |
;-------------+-------------------+---------------------------+---------------------------+---------------------------+---------------------------+--------------------+
pci_irq_entry < 00h, 060h, 042h, 1101111010111000b, 043h, 1101111010111000b, 044h, 1101111010111000b, 041h, 1101111010111000b, 4, 0 >
;-------------+-------------------+---------------------------+---------------------------+---------------------------+---------------------------+--------------------+
; Audio | Device Location | Int A Pin | Int B Pin | Int C Pin | Int D Pin | |
; +-------------------+---------------------------+---------------------------+---------------------------+---------------------------+--------------------+
; AD#24 | PCI Bus Dev Num | Chipset Bitmap of IRQs | Chipset Bitmap of IRQs | Chipset Bitmap of IRQs | Chipset Bitmap of IRQs | Physical Reserved |
; Device 13 | Number (Shl 3) | Reg Routable to Pin | Reg Routable Pin | Reg Routable Pin | Reg Routable Pin | Slot Num Byte |
;-------------+-------------------+---------------------------+---------------------------+---------------------------+---------------------------+--------------------+
pci_irq_entry < 00h, 068h, 044h, 1101111010111000b, 000h, 0000000000000000b, 000h, 0000000000000000b, 000h, 0000000000000000b, 0, 0 >
align 16
public ms_irq_route_table_sign
ms_irq_route_table_sign label byte
db "$PIR"
ms_irq_route_table_ver dw 0100h
ms_irq_route_table_size dw 32+(6*16)
ms_irq_route_table_bus db 00h
ms_irq_route_table_dev db S5595_PCI2ISA_DEV_FUNC_NUM
ms_irq_route_table_irq dw 0h
ms_irq_route_table_id dd 00081039h ; SiS5595
ms_irq_route_table_mini dd 0h
ms_irq_route_table_resd db 11 dup(0)
ms_irq_route_table_cksm db 0
;-------------+-------------------+---------------------------+---------------------------+---------------------------+---------------------------+--------------------+
; USB | Device Location | Int A Pin | Int B Pin | Int C Pin | Int D Pin | |
; +-------------------+---------------------------+---------------------------+---------------------------+---------------------------+--------------------+
; | PCI Bus Dev Num | Chipset Bitmap of IRQs | Chipset Bitmap of IRQs | Chipset Bitmap of IRQs | Chipset Bitmap of IRQs | Physical Reserved |
; Device 1 | Number (Shl 3) | Reg Routable to Pin | Reg Routable Pin | Reg Routable Pin | Reg Routable Pin | Slot Num Byte |
;-------------+-------------------+---------------------------+---------------------------+---------------------------+---------------------------+--------------------+
pci_irq_entry < 00h, 008h, 062h, 1101111010111000b, 000h, 0000000000000000b, 000h, 0000000000000000b, 000h, 0000000000000000b, 0, 0 >
;-------------+-------------------+---------------------------+---------------------------+---------------------------+---------------------------+--------------------+
; AGP Bridge | Device Location | Int A Pin | Int B Pin | Int C Pin | Int D Pin | |
; +-------------------+---------------------------+---------------------------+---------------------------+---------------------------+--------------------+
; | PCI Bus Dev Num | Chipset Bitmap of IRQs | Chipset Bitmap of IRQs | Chipset Bitmap of IRQs | Chipset Bitmap of IRQs | Physical Reserved |
; Device 2 | Number (Shl 3) | Reg Routable to Pin | Reg Routable Pin | Reg Routable Pin | Reg Routable Pin | Slot Num Byte |
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -