freebsd-dev/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 Use DEVMETHOD_END. 2011-11-23 20:27:26 +00:00
acphyreg.h
amphy.c Use DEVMETHOD_END. 2011-11-23 20:27:26 +00:00
amphyreg.h
atphy.c Use DEVMETHOD_END. 2011-11-23 20:27:26 +00:00
atphyreg.h
axphy.c Use DEVMETHOD_END. 2011-11-23 20:27:26 +00:00
bmtphy.c Use DEVMETHOD_END. 2011-11-23 20:27:26 +00:00
bmtphyreg.h
brgphy.c - Probe BCM57780. 2012-02-19 12:09:17 +00:00
brgphyreg.h Correct spelling in comments. 2011-04-22 09:22:27 +00:00
ciphy.c Use DEVMETHOD_END. 2011-11-23 20:27:26 +00:00
ciphyreg.h Correct spelling in comments. 2011-04-22 09:22:27 +00:00
e1000phy.c Use DEVMETHOD_END. 2011-11-23 20:27:26 +00:00
e1000phyreg.h Correct spelling in comments. 2011-04-22 09:22:27 +00:00
gentbi.c Use DEVMETHOD_END. 2011-11-23 20:27:26 +00:00
icsphy.c Use DEVMETHOD_END. 2011-11-23 20:27:26 +00:00
icsphyreg.h
ip1000phy.c Use DEVMETHOD_END. 2011-11-23 20:27:26 +00:00
ip1000phyreg.h
jmphy.c Use DEVMETHOD_END. 2011-11-23 20:27:26 +00:00
jmphyreg.h Add support for JMicron JMC251/JMC261 Gigabit/Fast ethernet 2010-12-18 23:52:50 +00:00
lxtphy.c Use DEVMETHOD_END. 2011-11-23 20:27:26 +00:00
lxtphyreg.h
mii_bitbang.c - Import the common MII bitbang'ing code from NetBSD and convert drivers to 2011-11-01 16:13:59 +00:00
mii_bitbang.h - Import the common MII bitbang'ing code from NetBSD and convert drivers to 2011-11-01 16:13:59 +00:00
mii_physubr.c r221812 reveals that at least some Broadcom PHYs default to being not only 2011-08-19 19:12:58 +00:00
mii.c - In mii_attach(9) just set the driver for a newly added miibus(4) instance 2011-12-05 21:38:45 +00:00
mii.h - Remove attempts to implement setting of BMCR_LOOP/MIIF_NOLOOP 2011-05-03 19:51:29 +00:00
miibus_if.m
miidevs Probe the National DP83849, which is a dual-port version of the PHYTER. 2012-02-19 12:25:58 +00:00
miivar.h There's no need export the device interface methods of miibus(4). 2011-11-18 22:58:13 +00:00
mlphy.c Use DEVMETHOD_END. 2011-11-23 20:27:26 +00:00
nsgphy.c Use DEVMETHOD_END. 2011-11-23 20:27:26 +00:00
nsgphyreg.h
nsphy.c Use DEVMETHOD_END. 2011-11-23 20:27:26 +00:00
nsphyreg.h
nsphyter.c Probe the National DP83849, which is a dual-port version of the PHYTER. 2012-02-19 12:25:58 +00:00
nsphyterreg.h
pnaphy.c Use DEVMETHOD_END. 2011-11-23 20:27:26 +00:00
qsphy.c Use DEVMETHOD_END. 2011-11-23 20:27:26 +00:00
qsphyreg.h
rdcphy.c s,KOBJMETHOD_END,DEVMETHOD_END,g in order to fully hide the explicit mention 2011-11-22 21:55:40 +00:00
rdcphyreg.h Add RDC Semiconductor R6040 10/100 PHY driver. 2010-12-30 23:50:25 +00:00
rgephy.c Prefer RL_GMEDIASTAT register to RGEPHY_MII_SSR register to 2012-02-28 05:23:29 +00:00
rgephyreg.h Correct spelling in comments. 2011-04-22 09:22:27 +00:00
rlphy.c Use DEVMETHOD_END. 2011-11-23 20:27:26 +00:00
rlswitch.c Use DEVMETHOD_END. 2011-11-23 20:27:26 +00:00
smcphy.c Add Seeq Technology 80220 PHY support to smcphy(4). This PHY is 2012-02-23 01:20:21 +00:00
tdkphy.c Use DEVMETHOD_END. 2011-11-23 20:27:26 +00:00
tdkphyreg.h
tlphy.c Use DEVMETHOD_END. 2011-11-23 20:27:26 +00:00
tlphyreg.h
truephy.c Use DEVMETHOD_END. 2011-11-23 20:27:26 +00:00
truephyreg.h
ukphy_subr.c o Flesh out the generic IEEE 802.3 annex 31B full duplex flow control 2010-11-14 13:26:10 +00:00
ukphy.c Use DEVMETHOD_END. 2011-11-23 20:27:26 +00:00
xmphy.c Use DEVMETHOD_END. 2011-11-23 20:27:26 +00:00
xmphyreg.h Correct spelling in comments. 2011-04-22 09:22:27 +00:00