PCI interrupts

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
Jabus
Member
Member
Posts: 39
Joined: Sun Jan 07, 2007 7:54 am

PCI interrupts

Post by Jabus »

Hi,

Just a quick question: If a PCI device generates an interrupt is the interrupt number it generates is the one stored in the Interrupt line field? I am currently in real mode and have initialised the RTL8139 in my system and have set up both the ISR and IMR registers. However I am not recieving any interrupts. I just wanted to make sure that it wasn't me setting up the IVT for an interrupt that will never occur.
jal
Member
Member
Posts: 1385
Joined: Wed Oct 31, 2007 9:09 am

Re: PCI interrupts

Post by jal »

Jabus wrote:Just a quick question: If a PCI device generates an interrupt is the interrupt number it generates is the one stored in the Interrupt line field? I am currently in real mode and have initialised the RTL8139 in my system and have set up both the ISR and IMR registers. However I am not recieving any interrupts. I just wanted to make sure that it wasn't me setting up the IVT for an interrupt that will never occur.
Apart from setting the right IRQ on the device, the device may need enabling of interrupt mode (supporting polling-only mode otherwise) before it fires interrupts. Also, even if that is enabled, do you know for sure it is in the right condition for generating an interrupt? And do you get other interrupts (e.g. timer), since if not, the interrupt flag may be off.


JAL
Post Reply