PCI interrupt programming
Posted on 1998-06-28
I want to get infomation for PCI interrupt programming.
I tested INT 1Ah AX=B10E and scanned PCI IRQ routing table.
But It happen fault and
scan only signature with table size 0.
I found IRQ table is supported by windows osr2 only.
so I must use INT 1A AX=B10E
with DPMI real-mode int
or PCI BIOS32 directory service with int386 1ah AX=B18E.
but first makes general protection fault.
I can't find my mistake for this.
Second requires selector for PCI BIOS32 data.
so I tried to use PCI BIOS32.
I refered Interrupt list of ralf brown.
I got BSD entry point. and tried get PCI BIOS32 entry point.
but makes general protection fault.
so I used watcom debugger.
I found get PCI BIOS32 service return with 'retf'
and general protection fault indicate this 'retf'.
So I tried to call with 'callf'
but it makes invalid-opcode fault.
I use watcom C compiler and PMODE/W dos extender
with DPMI service(get dos memory,simulate realmode int).
Can you help me about getting PCI IRQ route table
and set IRQ?