Skip to contentSkip to conversation

amd pcnet works with ecos/x86

Qemu-devel Jani Monoses 2 participants 2 messages Aug 11, 2004

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
Quoted 7 lines · Jani Monoses

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

Quoted 2 lines

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.

Signature · 3 lines
Antony T Curtis, BSc.                   UNIX, Linux, *BSD, Networking
[email protected]            C++, J2EE, Perl, MySQL, Apache
                                        IT Consultancy.