rtl8139 driver
rtl8139 driver
I am writing an rtl8139 driver, I configured the IMR register to get interrupts for packet reception ok and packet transmission ok but when I get an interrupt and read the ISR register I always get the same as IMR and I cannot tell if it is packet reception interrupt or packet transmission why is this? I am using qemu 1.5.0 to emulate the network card and I followed the page on wiki.osdev.org about rtl8139c Could somebody help me please?
Re: rtl8139 driver
Can you paste a dump of your code? By staggering coincidence, I'm also working on my rtl8139 driver right now except I'm not at the point of receiving interrupts yet.
Re: rtl8139 driver
I am so sorry sorry, by mistake I was reading the IMR register when receiving the interrupt, sorry again.