freebsd-nq/sys/dev/mii
Pyun YongHyeon fed3ed710d Prefer RL_GMEDIASTAT register to RGEPHY_MII_SSR register to
extract a link status of PHY when parent driver is re(4).
RGEPHY_MII_SSR register does not seem to report correct PHY status
on some integrated PHYs used with re(4).
Unfortunately, RealTek PHYs have no additional information to
differentiate integrated PHYs from external ones so relying on PHY
model number is not enough to know that.  However, it seems
RGEPHY_MII_SSR register exists for external RealTek PHYs so
checking parent driver would be good indication to know which PHY
was used. In other words, for non-re(4) controllers, the PHY is
external one and its revision number is greater than or equal to 2.
This change fixes intermittent link UP/DOWN messages reported on
RTL8169 controller.

Also, mii_attach(9) is tried after setting interface name since
rgephy(4) have to know parent driver name.

PR:	kern/165509
2012-02-28 05:23:29 +00:00
..
acphy.c
acphyreg.h
amphy.c
amphyreg.h
atphy.c
atphyreg.h
axphy.c
bmtphy.c
bmtphyreg.h
brgphy.c
brgphyreg.h
ciphy.c
ciphyreg.h
e1000phy.c
e1000phyreg.h
gentbi.c
icsphy.c
icsphyreg.h
ip1000phy.c
ip1000phyreg.h
jmphy.c
jmphyreg.h
lxtphy.c
lxtphyreg.h
mii_bitbang.c
mii_bitbang.h
mii_physubr.c
mii.c
mii.h
miibus_if.m
miidevs
miivar.h
mlphy.c
nsgphy.c
nsgphyreg.h
nsphy.c
nsphyreg.h
nsphyter.c
nsphyterreg.h
pnaphy.c
qsphy.c
qsphyreg.h
rdcphy.c
rdcphyreg.h
rgephy.c Prefer RL_GMEDIASTAT register to RGEPHY_MII_SSR register to 2012-02-28 05:23:29 +00:00
rgephyreg.h
rlphy.c
rlswitch.c
smcphy.c Add Seeq Technology 80220 PHY support to smcphy(4). This PHY is 2012-02-23 01:20:21 +00:00
tdkphy.c
tdkphyreg.h
tlphy.c
tlphyreg.h
truephy.c
truephyreg.h
ukphy_subr.c
ukphy.c
xmphy.c
xmphyreg.h