This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: PCI Ethernet card
- From: "Michael Anburaj" <embeddedeng at hotmail dot com>
- To: Eric dot Doenges at DynaPel dot de
- Cc: gary at mlbassoc dot com, ecos-discuss at sources dot redhat dot com
- Date: Wed, 13 Aug 2003 22:43:00 +0000
- Subject: Re: [ECOS] PCI Ethernet card
- Bcc:
Hi Eric,
a. Check the value of the basic mode status register (0x64), the
auto-negotiation registers (0x66, 0x68, 0x6A), and the disconnect (0x6c)
and false carrier sense (0x6e) counters.
BMCR = 0x1000 - enable auto-negotiation
BMSR = 0x7809 (default)
ANAR = 0x01e1 (default)
ANLPAR = 0x0000
ANER = 0x0000
DIS = 0x0000
FCSC = 0x0000
b. Force the 8139 to use a particular speed and duplex mode by setting
bits #13 and #8 in the basic mode control register (0x62) explicitely.
Don't forget to disable autonegotiation by clearing bit #12. (I'm
assuming that the EEPROM on your card selects autonegotiation by
default).
Yes you are right. To keep things simple, I will start out by doing this.
But, is it not ok to set this bit (auto-negotiation)?
I am still reading the documentation & trying to understand it better.
Questions:
1. Is the auto-negotiation (sending & receiving negotiation packets) under
software (device driver) control?
a. If yes, does the rltk8139 driver Ver 2 support this feature? Or
does it assume fixed link parameters?
b.If no, then is there a problem with the Hub (the link partner on the
other side of this link)? < Presumably, the both sides understand
?auto-negotiation?, should negotiate the link parameters & settle down for
actual transfers (with the sable connection - Link Status bit of BMSR set),
am I right? >
Thanks,
-Mike.
_________________________________________________________________
STOP MORE SPAM with the new MSN 8 and get 2 months FREE*
http://join.msn.com/?page=features/junkmail
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss