Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jc9OZ-0006ae-Dq for qemu-devel@nongnu.org; Wed, 19 Mar 2008 21:16:39 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jc9OY-0006aS-SW for qemu-devel@nongnu.org; Wed, 19 Mar 2008 21:16:39 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jc9OY-0006aL-OA for qemu-devel@nongnu.org; Wed, 19 Mar 2008 21:16:38 -0400 Received: from ug-out-1314.google.com ([66.249.92.171]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Jc9OY-0002s2-Dg for qemu-devel@nongnu.org; Wed, 19 Mar 2008 21:16:38 -0400 Received: by ug-out-1314.google.com with SMTP id m2so1332708uge.4 for ; Wed, 19 Mar 2008 18:16:35 -0700 (PDT) Message-ID: Date: Wed, 19 Mar 2008 22:16:35 -0300 From: "Carlos A. M. dos Santos" Subject: Re: [Qemu-devel] RTL8139 hardware revision in Qemu? In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org On Wed, Mar 19, 2008 at 3:10 PM, Frode Lillerud 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