|
From: | Fabrice Bellard |
Subject: | Re: [Qemu-devel] [PATCH] lance.c emulation corrections |
Date: | Sat, 12 Aug 2006 13:57:36 +0200 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20040913 |
Blue Swirl wrote:
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.htmlYes, a quick look shows 79c970a has one rx/tx buffer management mode whichis 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?
Make a single file. It will always be possible to split it if it becomes too big.
Fabrice.
[Prev in Thread] | Current Thread | [Next in Thread] |