freebsd-dev/sys/dev/mii
Marius Strobl 8c1093fc50 - Import the common MII bitbang'ing code from NetBSD and convert drivers to
take advantage of it instead of duplicating it. This reduces the size of
  the i386 GENERIC kernel by about 4k. The only potential in-tree user left
  unconverted is xe(4), which generally should be changed to use miibus(4)
  instead of implementing PHY handling on its own, as otherwise it makes not
  much sense to add a dependency on miibus(4)/mii_bitbang(4) to xe(4) just
  for the MII bitbang'ing code. The common MII bitbang'ing code also is
  useful in the embedded space for using GPIO pins to implement MII access.
- Based on lessons learnt with dc(4) (see r185750), add bus barriers to the
  MII bitbang read and write functions of the other drivers converted in
  order to ensure the intended ordering. Given that register access via an
  index register as well as register bank/window switching is subject to the
  same problem, also add bus barriers to the respective functions of smc(4),
  tl(4) and xl(4).
- Sprinkle some const.

Thanks to the following testers:
Andrew Bliznak (nge(4)), nwhitehorn@ (bm(4)), yongari@ (sis(4) and ste(4))
Thanks to Hans-Joerg Sirtl for supplying hardware to test stge(4).

Reviewed by:	yongari (subset of drivers)
Obtained from:	NetBSD (partially)
2011-11-01 16:13:59 +00:00
..
acphy.c - Remove attempts to implement setting of BMCR_LOOP/MIIF_NOLOOP 2011-05-03 19:51:29 +00:00
acphyreg.h
amphy.c - Remove attempts to implement setting of BMCR_LOOP/MIIF_NOLOOP 2011-05-03 19:51:29 +00:00
amphyreg.h
atphy.c Explicitly clear 1000baseT control register for F1 PHY used in 2011-05-12 17:11:31 +00:00
atphyreg.h
axphy.c - Remove attempts to implement setting of BMCR_LOOP/MIIF_NOLOOP 2011-05-03 19:51:29 +00:00
bmtphy.c - Remove attempts to implement setting of BMCR_LOOP/MIIF_NOLOOP 2011-05-03 19:51:29 +00:00
bmtphyreg.h
brgphy.c Recognize BCM5720C PHY. 2011-10-28 00:40:19 +00:00
brgphyreg.h Correct spelling in comments. 2011-04-22 09:22:27 +00:00
ciphy.c - Remove attempts to implement setting of BMCR_LOOP/MIIF_NOLOOP 2011-05-03 19:51:29 +00:00
ciphyreg.h Correct spelling in comments. 2011-04-22 09:22:27 +00:00
e1000phy.c Add detection for the Marvel 88E1149R and treat it just like the 2011-06-30 05:20:02 +00:00
e1000phyreg.h Correct spelling in comments. 2011-04-22 09:22:27 +00:00
gentbi.c - Remove attempts to implement setting of BMCR_LOOP/MIIF_NOLOOP 2011-05-03 19:51:29 +00:00
icsphy.c - Remove attempts to implement setting of BMCR_LOOP/MIIF_NOLOOP 2011-05-03 19:51:29 +00:00
icsphyreg.h
ip1000phy.c Fix whitespace. 2011-05-10 18:41:46 +00:00
ip1000phyreg.h
jmphy.c - Remove attempts to implement setting of BMCR_LOOP/MIIF_NOLOOP 2011-05-03 19:51:29 +00:00
jmphyreg.h Add support for JMicron JMC251/JMC261 Gigabit/Fast ethernet 2010-12-18 23:52:50 +00:00
lxtphy.c - Remove attempts to implement setting of BMCR_LOOP/MIIF_NOLOOP 2011-05-03 19:51:29 +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 - There's no need for nibbletab to be static, it's const however. 2011-05-14 20:31:04 +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 Recognize BCM5720C PHY. 2011-10-28 00:40:19 +00:00
miivar.h - Remove attempts to implement setting of BMCR_LOOP/MIIF_NOLOOP 2011-05-03 19:51:29 +00:00
mlphy.c - Remove attempts to implement setting of BMCR_LOOP/MIIF_NOLOOP 2011-05-03 19:51:29 +00:00
nsgphy.c - Remove attempts to implement setting of BMCR_LOOP/MIIF_NOLOOP 2011-05-03 19:51:29 +00:00
nsgphyreg.h
nsphy.c - Remove attempts to implement setting of BMCR_LOOP/MIIF_NOLOOP 2011-05-03 19:51:29 +00:00
nsphyreg.h
nsphyter.c - Remove attempts to implement setting of BMCR_LOOP/MIIF_NOLOOP 2011-05-03 19:51:29 +00:00
nsphyterreg.h
pnaphy.c - Remove attempts to implement setting of BMCR_LOOP/MIIF_NOLOOP 2011-05-03 19:51:29 +00:00
qsphy.c - Remove attempts to implement setting of BMCR_LOOP/MIIF_NOLOOP 2011-05-03 19:51:29 +00:00
qsphyreg.h
rdcphy.c - Remove attempts to implement setting of BMCR_LOOP/MIIF_NOLOOP 2011-05-03 19:51:29 +00:00
rdcphyreg.h Add RDC Semiconductor R6040 10/100 PHY driver. 2010-12-30 23:50:25 +00:00
rgephy.c - Remove attempts to implement setting of BMCR_LOOP/MIIF_NOLOOP 2011-05-03 19:51:29 +00:00
rgephyreg.h Correct spelling in comments. 2011-04-22 09:22:27 +00:00
rlphy.c - Remove attempts to implement setting of BMCR_LOOP/MIIF_NOLOOP 2011-05-03 19:51:29 +00:00
rlswitch.c - Remove attempts to implement setting of BMCR_LOOP/MIIF_NOLOOP 2011-05-03 19:51:29 +00:00
smcphy.c - Remove attempts to implement setting of BMCR_LOOP/MIIF_NOLOOP 2011-05-03 19:51:29 +00:00
tdkphy.c - Remove attempts to implement setting of BMCR_LOOP/MIIF_NOLOOP 2011-05-03 19:51:29 +00:00
tdkphyreg.h
tlphy.c - Remove attempts to implement setting of BMCR_LOOP/MIIF_NOLOOP 2011-05-03 19:51:29 +00:00
tlphyreg.h
truephy.c - Remove attempts to implement setting of BMCR_LOOP/MIIF_NOLOOP 2011-05-03 19:51:29 +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 - Remove attempts to implement setting of BMCR_LOOP/MIIF_NOLOOP 2011-05-03 19:51:29 +00:00
xmphy.c - Remove attempts to implement setting of BMCR_LOOP/MIIF_NOLOOP 2011-05-03 19:51:29 +00:00
xmphyreg.h Correct spelling in comments. 2011-04-22 09:22:27 +00:00