rtl8139 driver

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
Mohsen
Posts: 8
Joined: Tue Feb 18, 2014 11:25 am

rtl8139 driver

Post 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?
User avatar
Candy
Member
Member
Posts: 3882
Joined: Tue Oct 17, 2006 11:33 pm
Location: Eindhoven

Re: rtl8139 driver

Post 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.
Mohsen
Posts: 8
Joined: Tue Feb 18, 2014 11:25 am

Re: rtl8139 driver

Post by Mohsen »

I am so sorry sorry, by mistake I was reading the IMR register when receiving the interrupt, sorry again.
Post Reply