qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] RTL8139 hardware revision in Qemu?


From: Carlos A. M. dos Santos
Subject: Re: [Qemu-devel] RTL8139 hardware revision in Qemu?
Date: Wed, 19 Mar 2008 22:16:35 -0300

On Wed, Mar 19, 2008 at 3:10 PM, Frode Lillerud <address@hidden> wrote:
>
> 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

> 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.

-- 
Carlos A. M. dos Santos




reply via email to

[Prev in Thread] Current Thread [Next in Thread]