cvs commit: src/sys/dev/bge if_bge.c src/sys/dev/mii brgphy.c
Paul Saab
ps at FreeBSD.org
Sat May 3 12:06:51 PDT 2003
ps 2003/05/03 12:06:50 PDT
FreeBSD src repository
Modified files:
sys/dev/bge if_bge.c
sys/dev/mii brgphy.c
Log:
- Move bge_phy_hack into the phy code and implement the various DSP
patch workarounds for each phy revision.
Obtained from: NetBSD & Broadcom Linux driver
- Disable AUTOPOLL when accessing the PHY as it may cause PCI errors.
Obtained from: NetBSD
- Check the UPDATED bit in the status block so the driver knows
that the status block as indeed changed since the last access.
Broadcom documentation states drivers should unset the UPDATED/CHANGED
bits after reading them.
- When changing media types, first loop the phy then set the media.
Broadcom documentation and Linux drivers do this and I observed
much better handling of link after this change.
- Broadcom documentation states that for 1000BaseT operation,
autonegotiation must be enabled. Fix hard coding of media so that
the driver only advertises 1000BaseT as the supported media type
and enable autonegotition.
- Only set Master/Slave on the 5701.
Obtained from Broadcom Linux driver.
Revision Changes Path
1.37 +37 -50 src/sys/dev/bge/if_bge.c
1.20 +161 -20 src/sys/dev/mii/brgphy.c
More information about the cvs-src
mailing list