opnsense-src/sys/dev/mii
Pyun YongHyeon 7aa69e3107 Disable EEE(Energy Efficient Ethernet) for RTL8211F PHY.
It seems the EEE made RX MAC enter LPI(Low Power Idle) mode such
that dwc(4) was not able to receive packets.  Ideally dwc(4) should
be able to use EEE to save power during periods of low link
utilization(i.e. gating off clock).  Due to lack of dwc(4)
datasheet it's not easy to take required steps for EEE on LPI
enter/exit events.  Disabling EEE in PHY seems to be easy
workaround until dwc(4) supports EEE.

Updating EEE advertisement register on RTL8211F seems to have no
effect until reprogramming MII_ANAR, MII_100T2CR and MII_BMCR
with auto-negotiation. It's not clear whether it's related with
mii_phy_reset()'s BMCR_ISO handling for RTL8211F though.
It seems rgephy_reset() needs careful investigation for newer
RealTek PHYs.

Ganbold submitted working version based on NetBSD change and
tested lots of changes I made. Thanks a lot!

Submitted by:	ganbold (initial version)
In collaboration with:	ganbold
2015-12-03 05:27:39 +00:00
..
acphy.c Instead of storing mii_media_table array index in ifm_data, determine 2015-04-21 09:39:48 +00:00
acphyreg.h
amphy.c The MII layer shouldn't care about administrative status of an 2013-10-26 18:40:17 +00:00
amphyreg.h
atphy.c Add definition for the Atheros 8021 gigabit PHY. 2013-11-06 16:28:26 +00:00
atphyreg.h
axphy.c The MII layer shouldn't care about administrative status of an 2013-10-26 18:40:17 +00:00
bmtphy.c The MII layer shouldn't care about administrative status of an 2013-10-26 18:40:17 +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 Add more BCM gigabit PHYs 2015-09-04 17:48:19 +00:00
brgphyreg.h Correct spelling in comments. 2011-04-22 09:22:27 +00:00
ciphy.c In miibus(4) drivers provide functions that allow to get NIC 2015-01-12 22:27:38 +00:00
ciphyreg.h Correct spelling in comments. 2011-04-22 09:22:27 +00:00
e1000phy.c - Remove unused variable. 2015-01-13 06:22:55 +00:00
e1000phyreg.h Correct spelling in comments. 2011-04-22 09:22:27 +00:00
gentbi.c The MII layer shouldn't care about administrative status of an 2013-10-26 18:40:17 +00:00
icsphy.c The MII layer shouldn't care about administrative status of an 2013-10-26 18:40:17 +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
ip1000phy.c In miibus(4) drivers provide functions that allow to get NIC 2015-01-12 22:27:38 +00:00
ip1000phyreg.h
jmphy.c Remove unused variables. 2015-01-13 06:56:04 +00:00
jmphyreg.h Add support for JMicron JMC251/JMC261 Gigabit/Fast ethernet 2010-12-18 23:52:50 +00:00
lxtphy.c Instead of storing mii_media_table array index in ifm_data, determine 2015-04-21 09:39:48 +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
micphy.c o Put () for p to avoid unexpected macro expansion 2014-12-10 11:35:10 +00:00
mii.c Typo: ivalid -> invalid. 2015-01-21 09:01:48 +00:00
mii.h Fix yet another comment typo in NetBSD rev. 1.16, missed when merging 2015-06-18 14:13:16 +00:00
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 Instead of storing mii_media_table array index in ifm_data, determine 2015-04-21 09:39:48 +00:00
miibus_if.m
miidevs Add more BCM gigabit PHYs 2015-09-04 17:48:19 +00:00
miivar.h Instead of storing mii_media_table array index in ifm_data, determine 2015-04-21 09:39:48 +00:00
mlphy.c The comment on BMCR data in if_media entry is wrong. The ifm_data stores 2015-04-21 08:54:14 +00:00
nsgphy.c The MII layer shouldn't care about administrative status of an 2013-10-26 18:40:17 +00:00
nsgphyreg.h
nsphy.c In miibus(4) drivers provide functions that allow to get NIC 2015-01-12 22:27:38 +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 The MII layer shouldn't care about administrative status of an 2013-10-26 18:40:17 +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 The MII layer shouldn't care about administrative status of an 2013-10-26 18:40:17 +00:00
qsphy.c The MII layer shouldn't care about administrative status of an 2013-10-26 18:40:17 +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
rdcphy.c The MII layer shouldn't care about administrative status of an 2013-10-26 18:40:17 +00:00
rdcphyreg.h Add RDC Semiconductor R6040 10/100 PHY driver. 2010-12-30 23:50:25 +00:00
rgephy.c Disable EEE(Energy Efficient Ethernet) for RTL8211F PHY. 2015-12-03 05:27:39 +00:00
rgephyreg.h Disable EEE(Energy Efficient Ethernet) for RTL8211F PHY. 2015-12-03 05:27:39 +00:00
rlphy.c In miibus(4) drivers provide functions that allow to get NIC 2015-01-12 22:27:38 +00:00
rlswitch.c Move rl(4) to dev/rl. 2014-09-19 10:32:20 +00:00
smcphy.c The MII layer shouldn't care about administrative status of an 2013-10-26 18:40:17 +00:00
smscphy.c The MII layer shouldn't care about administrative status of an 2013-10-26 18:40:17 +00:00
tdkphy.c The MII layer shouldn't care about administrative status of an 2013-10-26 18:40:17 +00:00
tdkphyreg.h
tlphy.c In miibus(4) drivers provide functions that allow to get NIC 2015-01-12 22:27:38 +00:00
tlphyreg.h - Remove clause 3 and 4 from TNF licenses. 2010-09-26 22:11:41 +00:00
truephy.c Use nitems(). 2015-01-09 12:26:08 +00:00
truephyreg.h
ukphy.c The MII layer shouldn't care about administrative status of an 2013-10-26 18:40:17 +00:00
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
xmphy.c Since xmphy doesn't call mii_phy_setmedia(), there is no reason to set ifm_data. 2015-04-21 06:59:40 +00:00
xmphyreg.h Correct spelling in comments. 2011-04-22 09:22:27 +00:00