[realtek] Flow control question

Donald Becker becker@scyld.com
Tue Oct 1 15:12:06 2002

On Sat, 28 Sep 2002, Kelvin Proctor wrote:

> > With this approach you will have to add it to an init script.
> Should I hook this into the init scripts before the interface is brought up
> or not?  Otherwise I was just planning to throw it in rc.local.

Either place is fine.

> > It's changing the advertised capabilities that the transceiver sends.
> > The rtl8139 allows direct access to the transceiver management as
> > normal registers, that's why I was able to read the settings.
> I've just download the 8139B data sheet.  I assume the above should be
> setting the "Auto-negotiation Advertisement Register" at 0066h-0067h.  (I've
> now found out what the `magic` numbers are :)

Use 'mii-diag' to see the settings.  I was just interpreting them from
the NIC register dump.

> I'm a little confused with a few of the offsets I'm seeing in the register
> dump etc...
> >From the mii-diag output it is stating that the link partner advertised
> 4441.  From the above register dump this appears to be at offset
> 0x06A-0x06B.  This is different from the datasheet that indicates this
> should be at 0x068-0x069.

These are 16 bit values, while the diagnostic reports register in 32 bit
units.  Think little endian...

Donald Becker				becker@scyld.com
Scyld Computing Corporation		http://www.scyld.com
410 Severn Ave. Suite 210		Second Generation Beowulf Clusters
Annapolis MD 21403			410-990-9993