Page 1 of 1

rtl8139 driver

Posted: Fri Jul 04, 2014 4:20 am
by Mohsen
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

Posted: Fri Jul 04, 2014 4:57 am
by Candy
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

Posted: Fri Jul 04, 2014 6:13 am
by Mohsen
I am so sorry sorry, by mistake I was reading the IMR register when receiving the interrupt, sorry again.