qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] amd pcnet works with ecos/x86
@ 2004-08-11 11:20 Jani Monoses
  2004-08-11 13:03 ` Antony T Curtis
  0 siblings, 1 reply; 2+ messages in thread
From: Jani Monoses @ 2004-08-11 11:20 UTC (permalink / raw)
  To: qemu-devel

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.
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.

Jani

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Qemu-devel] amd pcnet works with ecos/x86
  2004-08-11 11:20 [Qemu-devel] amd pcnet works with ecos/x86 Jani Monoses
@ 2004-08-11 13:03 ` Antony T Curtis
  0 siblings, 0 replies; 2+ messages in thread
From: Antony T Curtis @ 2004-08-11 13:03 UTC (permalink / raw)
  To: qemu-devel

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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-08-11 13:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-11 11:20 [Qemu-devel] amd pcnet works with ecos/x86 Jani Monoses
2004-08-11 13:03 ` Antony T Curtis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).