Skip to contentSkip to conversation

RTL8139 hardware revision in Qemu?

Qemu-devel Frode Lillerud 2 participants 2 messages Mar 19, 2008 – Mar 20, 2008

lore
Share & tools
lore
#0 lore raw

Hi, I'm working on the Cosmos project, and I am writing a driver for the RTL8139 networkcard in Qemu.

Which hardware revision is the card you are emulating? Is it RTL8139C+?

Are there any good resources/wiki/websites you can recommend for programming for that chip?

Frode

#1 lore raw
Quoted 5 lines · Frode Lillerud

Hi, I'm working on the Cosmos project, and I am writing a driver for the RTL8139 networkcard in Qemu.

Which hardware revision is the card you are emulating? Is it RTL8139C+?

It can emulate a RTL8139C+ but you may want to edit hw/rtl8139.c and uncomment the line containing

     #define RTL8139_ONBOARD_TIMER 1
Quoted 2 lines

Are there any good resources/wiki/websites you can recommend for programming for that chip?

Look at

http://www.realtek.com.tw/products/productsView.aspx?Langid=1&PNid=14&PFid=6&Level=5&Conn=4

There are also drivers for several open source operating systems. Good starting points are FreeBSD's if_rl and if_re drivers:

http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/pci/if_rl.c

http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/dev/re/if_re.c

The later one requires that you uncomment the RTL8139_ONBOARD_TIMER mentioned above.

Signature · 1 line
Carlos A. M. dos Santos