freebsd-nq/sys/dev/mii
Marius Strobl 8e5d93dbb4 Convert the PHY drivers to honor the mii_flags passed down and convert
the NIC drivers as well as the PHY drivers to take advantage of the
mii_attach() introduced in r213878 to get rid of certain hacks. For
the most part these were:
- Artificially limiting miibus_{read,write}reg methods to certain PHY
  addresses; we now let mii_attach() only probe the PHY at the desired
  address(es) instead.
- PHY drivers setting MIIF_* flags based on the NIC driver they hang
  off from, partly even based on grabbing and using the softc of the
  parent; we now pass these flags down from the NIC to the PHY drivers
  via mii_attach(). This got us rid of all such hacks except those of
  brgphy() in combination with bce(4) and bge(4), which is way beyond
  what can be expressed with simple flags.

While at it, I took the opportunity to change the NIC drivers to pass
up the error returned by mii_attach() (previously by mii_phy_probe())
and unify the error message used in this case where and as appropriate
as mii_attach() actually can fail for a number of reasons, not just
because of no PHY(s) being present at the expected address(es).

Reviewed by:	jhb, yongari
2010-10-15 14:52:11 +00:00
..
acphy.c Convert the PHY drivers to honor the mii_flags passed down and convert 2010-10-15 14:52:11 +00:00
acphyreg.h
amphy.c Convert the PHY drivers to honor the mii_flags passed down and convert 2010-10-15 14:52:11 +00:00
amphyreg.h
atphy.c Convert the PHY drivers to honor the mii_flags passed down and convert 2010-10-15 14:52:11 +00:00
atphyreg.h
axphy.c Convert the PHY drivers to honor the mii_flags passed down and convert 2010-10-15 14:52:11 +00:00
bmtphy.c Convert the PHY drivers to honor the mii_flags passed down and convert 2010-10-15 14:52:11 +00:00
bmtphyreg.h The NetBSD Foundation has granted permission to remove clause 3 and 4 from 2010-03-03 17:55:51 +00:00
brgphy.c Convert the PHY drivers to honor the mii_flags passed down and convert 2010-10-15 14:52:11 +00:00
brgphyreg.h Correct definition of T2 mode bit of MRBE Message Page 5 Next Page 2010-09-08 21:08:54 +00:00
ciphy.c Convert the PHY drivers to honor the mii_flags passed down and convert 2010-10-15 14:52:11 +00:00
ciphyreg.h
e1000phy.c Convert the PHY drivers to honor the mii_flags passed down and convert 2010-10-15 14:52:11 +00:00
e1000phyreg.h Add hack to pass controller specific information to phy driver. 2009-09-28 21:03:28 +00:00
exphy.c Convert the PHY drivers to honor the mii_flags passed down and convert 2010-10-15 14:52:11 +00:00
gentbi.c Convert the PHY drivers to honor the mii_flags passed down and convert 2010-10-15 14:52:11 +00:00
icsphy.c Convert the PHY drivers to honor the mii_flags passed down and convert 2010-10-15 14:52:11 +00:00
icsphyreg.h The NetBSD Foundation has granted permission to remove clause 3 and 4 from 2010-03-03 17:55:51 +00:00
inphy.c Convert the PHY drivers to honor the mii_flags passed down and convert 2010-10-15 14:52:11 +00:00
inphyreg.h
ip1000phy.c Convert the PHY drivers to honor the mii_flags passed down and convert 2010-10-15 14:52:11 +00:00
ip1000phyreg.h For IP1001 PHYs, read auto-negotiation advertisement register to 2009-03-09 08:17:46 +00:00
jmphy.c Convert the PHY drivers to honor the mii_flags passed down and convert 2010-10-15 14:52:11 +00:00
jmphyreg.h
lxtphy.c Convert the PHY drivers to honor the mii_flags passed down and convert 2010-10-15 14:52:11 +00:00
lxtphyreg.h The NetBSD Foundation has granted permission to remove clause 3 and 4 from 2010-03-03 17:55:51 +00:00
mii_physubr.c Use the mii_data provided via mii_attach_args and mii_pdata respectively 2010-09-27 20:31:03 +00:00
mii.c Add a NetBSD-compatible mii_attach(), which is intended to eventually 2010-10-14 22:01:40 +00:00
mii.h Add a NetBSD-compatible mii_attach(), which is intended to eventually 2010-10-14 22:01:40 +00:00
miibus_if.m
miidevs Add F1 PHY found on Atheros AR8151 v2.0 PCIe gigabit ethernet 2010-08-09 17:22:14 +00:00
miivar.h Add a NetBSD-compatible mii_attach(), which is intended to eventually 2010-10-14 22:01:40 +00:00
mlphy.c Convert the PHY drivers to honor the mii_flags passed down and convert 2010-10-15 14:52:11 +00:00
nsgphy.c Convert the PHY drivers to honor the mii_flags passed down and convert 2010-10-15 14:52:11 +00:00
nsgphyreg.h
nsphy.c Convert the PHY drivers to honor the mii_flags passed down and convert 2010-10-15 14:52:11 +00:00
nsphyreg.h The NetBSD Foundation has granted permission to remove clause 3 and 4 from 2010-03-03 17:55:51 +00:00
nsphyter.c Convert the PHY drivers to honor the mii_flags passed down and convert 2010-10-15 14:52:11 +00:00
nsphyterreg.h The NetBSD Foundation has granted permission to remove clause 3 and 4 from 2010-03-03 17:55:51 +00:00
pnaphy.c Convert the PHY drivers to honor the mii_flags passed down and convert 2010-10-15 14:52:11 +00:00
qsphy.c Convert the PHY drivers to honor the mii_flags passed down and convert 2010-10-15 14:52:11 +00:00
qsphyreg.h The NetBSD Foundation has granted permission to remove clause 3 and 4 from 2010-03-03 17:55:51 +00:00
rgephy.c Convert the PHY drivers to honor the mii_flags passed down and convert 2010-10-15 14:52:11 +00:00
rgephyreg.h
rlphy.c Convert the PHY drivers to honor the mii_flags passed down and convert 2010-10-15 14:52:11 +00:00
rlswitch.c Convert the PHY drivers to honor the mii_flags passed down and convert 2010-10-15 14:52:11 +00:00
ruephy.c Convert the PHY drivers to honor the mii_flags passed down and convert 2010-10-15 14:52:11 +00:00
ruephyreg.h
smcphy.c Convert the PHY drivers to honor the mii_flags passed down and convert 2010-10-15 14:52:11 +00:00
tdkphy.c Convert the PHY drivers to honor the mii_flags passed down and convert 2010-10-15 14:52:11 +00:00
tdkphyreg.h
tlphy.c Convert the PHY drivers to honor the mii_flags passed down and convert 2010-10-15 14:52:11 +00:00
tlphyreg.h - Remove clause 3 and 4 from TNF licenses. 2010-09-26 22:11:41 +00:00
truephy.c Convert the PHY drivers to honor the mii_flags passed down and convert 2010-10-15 14:52:11 +00:00
truephyreg.h
ukphy_subr.c Consistently always explicitly set IFM_HDX for half-duplex. 2010-10-03 17:00:57 +00:00
ukphy.c Convert the PHY drivers to honor the mii_flags passed down and convert 2010-10-15 14:52:11 +00:00
xmphy.c Convert the PHY drivers to honor the mii_flags passed down and convert 2010-10-15 14:52:11 +00:00
xmphyreg.h