From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BuspG-0001sQ-8P for qemu-devel@nongnu.org; Wed, 11 Aug 2004 09:07:30 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BuspD-0001ry-DE for qemu-devel@nongnu.org; Wed, 11 Aug 2004 09:07:29 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BuspD-0001rv-Ad for qemu-devel@nongnu.org; Wed, 11 Aug 2004 09:07:27 -0400 Received: from [62.253.162.43] (helo=mta03-svc.ntlworld.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Busky-00015f-Qo for qemu-devel@nongnu.org; Wed, 11 Aug 2004 09:03:04 -0400 Received: from [10.10.10.100] ([81.107.87.144]) by mta03-svc.ntlworld.com (InterMail vM.4.01.03.37 201-229-121-137-20020806) with ESMTP id <20040811130140.QRUV309.mta03-svc.ntlworld.com@[10.10.10.100]> for ; Wed, 11 Aug 2004 14:01:40 +0100 Subject: Re: [Qemu-devel] amd pcnet works with ecos/x86 From: Antony T Curtis In-Reply-To: <20040811142049.32307a53.jani@iv.ro> References: <20040811142049.32307a53.jani@iv.ro> Content-Type: text/plain Message-Id: <1092229212.83749.23.camel@pcgem.rdg.cyberkinetica.com> Mime-Version: 1.0 Date: Wed, 11 Aug 2004 14:03:03 +0100 Content-Transfer-Encoding: 7bit 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, 2004-08-11 at 12:20, Jani Monoses wrote: > Hello Anthony > > I used your patch since ecos support PCNet and not NE2000 and it works > fine(i.e resists ping floods) > One thing which I needed to modify in ecos was the checking of ANR register > PHYSSTAT_LINK before send.It would not send anything thinking the link is > downso I simply commented the check out. Ok - I have looked at the ecos code and it is accessing registers which do not exist on the AMD PCNet-II chip which I have emulated. It is using the MII registers which only exist on the AMD PCNet-Pro chip I wonder if ecos would behave properly on a real PCNet-II controller which does not have a MII... > I see linux does not use those regs either but another method for checking > link status, but will have to look at the spec to see what exactly. The only way to check link status on PCNet/PCNet-II chips is via the BCR registers - by programming and polling the LED status. -- Antony T Curtis, BSc. UNIX, Linux, *BSD, Networking antony.t.curtis@ntlworld.com C++, J2EE, Perl, MySQL, Apache IT Consultancy.