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: Frode Lillerud
Subject: RE: [Qemu-devel] RTL8139 hardware revision in Qemu?
Date: Thu, 20 Mar 2008 11:02:24 +0100

Thank you for you reply.

I'm talking about the released version of Qemu. When I set "-net
nic,model=rtl8139", does that mean that it is emulating the RTL8139C+
hardware revision?

Is the timer not working?

Frode

-----Original Message-----
From: address@hidden
[mailto:address@hidden On Behalf Of
Carlos A. M. dos Santos
Sent: 20. mars 2008 02:17
To: address@hidden
Subject: Re: [Qemu-devel] RTL8139 hardware revision in Qemu?

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&PF
id=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]