RTL 8139 receive

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
lama
Member
Member
Posts: 83
Joined: Thu Apr 16, 2009 8:41 am

RTL 8139 receive

Post by lama »

Hello, so another netcard for which I'm trying write driver ..
So again, trasmit works great, what does not work is receive. When transmitting I properly get interrupt as well as when I'm receiving, but Rx buffer appears to be empty.
According to Realtek datasheet, receiving should be pretty straightforward. Everything should be much more simpler than by other netcards I have seen, because everything I have to (apparently) do, is pass Rx buffer (just physical memory) to RBSTART register and toggle receiver enable flag in command register.
Incoming data from line is stored in netcard's FIFO and then, when early Rx threshold is met (configured in RCR) is data transfered to address specified in that RBSTART register.
But no data arrives.
Any clues what could be wrong, or what I have eventually missed here?
Thanks.

EDIT: Rx threshold level is off, still no data.
lama
Member
Member
Posts: 83
Joined: Thu Apr 16, 2009 8:41 am

Re: RTL 8139 receive

Post by lama »

It is working now. For those who are interested, there was nothing wrong with the actual driver ; I just passed wrong segment number, so address that end up in RBSTART was ofcourse invalid :D
This thread can be locked now.
Post Reply