mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-22 11:17:19 +00:00
8c1093fc50
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) |
||
---|---|---|
.. | ||
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 | ||
rgephyreg.h | ||
rlphy.c | ||
rlswitch.c | ||
smcphy.c | ||
tdkphy.c | ||
tdkphyreg.h | ||
tlphy.c | ||
tlphyreg.h | ||
truephy.c | ||
truephyreg.h | ||
ukphy_subr.c | ||
ukphy.c | ||
xmphy.c | ||
xmphyreg.h |