Module Name: src Committed By: martin Date: Tue Nov 4 09:23:20 UTC 2014
Modified Files: src/sys/dev/mii [netbsd-6]: atphy.c brgphy.c mii.h mii_physubr.c rgephy.c Log Message: Pull up following revision(s) (requested by msaitoh in ticket #1146): sys/dev/mii/mii_physubr.c: revision 1.79 sys/dev/mii/rgephy.c: revision 1.33 sys/dev/mii/brgphy.c: revision 1.66 sys/dev/mii/atphy.c: revision 1.15 sys/dev/mii/mii.h: revision 1.17 The bit location of link ability is different between 1000Base-X and others (See annex 28B.2 and 28D). The old mii.h defined ANAR_X_PAUSE_* macros. Those macros were named for 1000Base-X, but the bit definitions were not for 1000Base-X but for others (e.g. 1000BaseT). So there was bug in auto negotiation for 1000Base-X, but there was no bug for other media. Define new macro named ANAR_PAUSE_* and ANLPAR_PAUSE_* for other than 1000Base-X and fix the bit definitions of ANAR_X_PAUSE_* and ANLPPAR_X_*. Change some PHY drivers to use true macro. Same as other *BSDs. To generate a diff of this commit: cvs rdiff -u -r1.11 -r1.11.8.1 src/sys/dev/mii/atphy.c cvs rdiff -u -r1.59.8.4 -r1.59.8.5 src/sys/dev/mii/brgphy.c cvs rdiff -u -r1.14 -r1.14.18.1 src/sys/dev/mii/mii.h cvs rdiff -u -r1.73 -r1.73.2.1 src/sys/dev/mii/mii_physubr.c cvs rdiff -u -r1.29 -r1.29.14.1 src/sys/dev/mii/rgephy.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.