RTL8139, how to calculate IRQ id from IRQ-PIN & IRQ LINE
Posted: Sun Jun 12, 2016 4:21 am
Hi.
I don't know how to get the IRQ number allocated to rtl8139 during bios POST.
I read it's PCI configuration room, and got irq pin = 32, irq line = 1.
But how to caulcate the real IRQ number ?
I regarded irq-line as IRQ number(namely, 1) and wrote my driver, however, i can not receive any interrupt after booting. (i test on real machine. my net cable is well connected to internet. I set all bits in Interrupt Mask Register, and other necessary operation with Command Register , etc. I also transmit a package in the test code)
And, when i pressed keyboard, an interrupt occur (i know it from message on screen). That's not surprising, keyboard occupies IRQ 1 too.
i don't want to check my driver code in the first, because i doubt my nic doesn't use IRQ 1 at all.
BTW: this RTL8139 chip is not onboard, it's a second network card i bought on market and plug in the PCI slot. The motherboard has a onboard intel network card already.
who can help me?
I don't know how to get the IRQ number allocated to rtl8139 during bios POST.
I read it's PCI configuration room, and got irq pin = 32, irq line = 1.
But how to caulcate the real IRQ number ?
I regarded irq-line as IRQ number(namely, 1) and wrote my driver, however, i can not receive any interrupt after booting. (i test on real machine. my net cable is well connected to internet. I set all bits in Interrupt Mask Register, and other necessary operation with Command Register , etc. I also transmit a package in the test code)
And, when i pressed keyboard, an interrupt occur (i know it from message on screen). That's not surprising, keyboard occupies IRQ 1 too.
i don't want to check my driver code in the first, because i doubt my nic doesn't use IRQ 1 at all.
BTW: this RTL8139 chip is not onboard, it's a second network card i bought on market and plug in the PCI slot. The motherboard has a onboard intel network card already.
who can help me?