Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GBoJb-00079I-Lm for qemu-devel@nongnu.org; Sat, 12 Aug 2006 03:53:51 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GBoJY-00076F-Vs for qemu-devel@nongnu.org; Sat, 12 Aug 2006 03:53:50 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GBoJY-00075s-Qa for qemu-devel@nongnu.org; Sat, 12 Aug 2006 03:53:48 -0400 Received: from [65.54.246.158] (helo=bay0-omc2-s22.bay0.hotmail.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GBoOs-0002Hd-4u for qemu-devel@nongnu.org; Sat, 12 Aug 2006 03:59:18 -0400 Message-ID: In-Reply-To: From: "Blue Swirl" Subject: Re: [Qemu-devel] [PATCH] lance.c emulation corrections Date: Sat, 12 Aug 2006 09:53:44 +0200 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: igor.v.kovalenko@gmail.com Cc: qemu-devel@nongnu.org >>It could be worthwhile to check if lance (Am7990) and pcnet (Am79C970A) >>drivers could be merged. This was discussed briefly some years ago: >>http://lists.gnu.org/archive/html/qemu-devel/2004-10/msg00364.html >> > >Yes, a quick look shows 79c970a has one rx/tx buffer management mode which >is software-compatible with 7990 chip (SWMODE=0) There may be more >backward-compatibility bits to be unified. Anyone? :) Looks like only 32-bit modes are implemented in pcnet.c and endianness issues should be checked. The files could be reorganised to for example pcnet-common.c, pcnet-pci.c, and pcnet-lance.c or just throw everything together with small performance penalty and unwanted code for both lance and pcnet. Opinions? _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/