[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

PCI Interrupts



Hello:

I am writing some code for a PCI WAN adapter card using Visual C 2.0 and
Phar Lap TNT Extender.  This PCI card using one interrupt line.  After
Windows/95 boots up, I can check the configuration registers on the card
and see that InterruptPin=01h and InterruptLine=0Ah.  So that means the
plug-and-play has assigned INT#A for this adapter and route to IRQ-10.

Now, this adapter is using the PCI9060 chip from PLX.  I have check
that the proper registers in the PLX are setup to generate interrupt.
When this card operates, I can see the interrupt being generated on the
bus signals.

Here are the questions:

1.  I think I have put in the interrupt handler correctly at the right
    place, but it was never called.  What else could be wrong?

2.  There is a PCI BIOS call SET_PCI_HW_IRQ.  My code shouldn't need to set
    this up though.  The Plug-and-Play BIOS should have done this already.
    Is this correct?

3.  I want to use the GET_ROUTING_OPTIONS PCI BIOS call to check the
    IRQ routing settings.  The call was returned with no errors but the
    routeBuffer data structure was not changed at all.  Does anyone has
    some sample code to show how this call can be done under Phar Lap?

4.  Can I probe on the motherboard somewhere to see if IRQ-10 is happening
    or not?

Thank you very much.
+-----------------------------------------+----------------------------+
| Henry Lau                               | Phone: 619-674-5000 x222   |
| Director of Software Development        | Fax:   619-674-5005        |
| METACOMP, Inc.                          | Email: henrylau@cts.com    |
| 10989 Via Frontera, San Diego, CA 92127 | http://www.metacompinc.com |
+-----------------------------------------+----------------------------+
3„s