linux/drivers/net/phy
Allan, Bruce W b32607dd47 mdio: translation of MMD EEE registers to/from ethtool settings
The helper functions which translate IEEE MDIO Manageable Device (MMD)
Energy-Efficient Ethernet (EEE) registers 3.20, 7.60 and 7.61 to and from
the comparable ethtool supported/advertised settings will be needed by
drivers other than those in PHYLIB (e.g. e1000e in a follow-on patch).

In the same fashion as similar translation functions in linux/mii.h, move
these functions from the PHYLIB core to the linux/mdio.h header file so the
code will not have to be duplicated in each driver needing MMD-to-ethtool
(and vice-versa) translations.  The function and some variable names have
been renamed to be more descriptive.

Not tested on the only hardware that currently calls the related functions,
stmmac, because I don't have access to any.  Has been compile tested and
the translations have been tested on a locally modified version of e1000e.

Signed-off-by: Bruce Allan <bruce.w.allan@intel.com>
Cc: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2012-08-22 22:58:27 -07:00
..
Kconfig netdev/phy: Add driver for Broadcom BCM87XX 10G Ethernet PHYs 2012-06-27 21:23:25 -07:00
Makefile netdev/phy: Add driver for Broadcom BCM87XX 10G Ethernet PHYs 2012-06-27 21:23:25 -07:00
amd.c phylib: Support registering a bunch of drivers 2012-07-09 00:10:56 -07:00
bcm63xx.c phylib: Support registering a bunch of drivers 2012-07-09 00:10:56 -07:00
bcm87xx.c bcm87xx: fix reg-init comment typo 2012-07-09 00:11:46 -07:00
broadcom.c phylib: Support registering a bunch of drivers 2012-07-09 00:10:56 -07:00
cicada.c phylib: Support registering a bunch of drivers 2012-07-09 00:10:56 -07:00
davicom.c phylib: Support registering a bunch of drivers 2012-07-09 00:10:56 -07:00
dp83640.c phy: Use pr_<level> 2012-06-11 16:58:24 -07:00
dp83640_reg.h ptp: Added a clock driver for the National Semiconductor PHYTER. 2011-05-23 13:10:23 -07:00
et1011c.c
fixed.c phy: Use pr_<level> 2012-06-11 16:58:24 -07:00
icplus.c phylib: Support registering a bunch of drivers 2012-07-09 00:10:56 -07:00
lxt.c phylib: Support registering a bunch of drivers 2012-07-09 00:10:56 -07:00
marvell.c phylib: Support registering a bunch of drivers 2012-07-09 00:10:56 -07:00
mdio-bitbang.c mdio-gpio: Add reset functionality to mdio-gpio driver(v2). 2011-11-15 16:56:17 -05:00
mdio-gpio.c irq_domain/x86: Convert x86 (embedded) to use common irq_domain 2012-02-23 14:37:47 -07:00
mdio-mux-gpio.c drivers/net/phy/mdio-mux-gpio.c: drop devm_kfree of devm_kzalloc'd data 2012-08-06 13:24:27 -07:00
mdio-mux.c netdev/phy: skip disabled mdio-mux nodes 2012-08-20 02:16:00 -07:00
mdio-octeon.c netdev: mdio-octeon.c: Convert to use device tree. 2012-07-23 13:54:53 +01:00
mdio_bus.c netdev/phy/of: Add more methods for binding PHY devices to drivers. 2012-06-27 21:23:25 -07:00
micrel.c phylib: Support registering a bunch of drivers 2012-07-09 00:10:56 -07:00
national.c phy: Use pr_<level> 2012-06-11 16:58:24 -07:00
phy.c mdio: translation of MMD EEE registers to/from ethtool settings 2012-08-22 22:58:27 -07:00
phy_device.c phylib: Support registering a bunch of drivers 2012-07-09 00:10:56 -07:00
qsemi.c
realtek.c phylib: Support registering a bunch of drivers 2012-07-09 00:10:56 -07:00
smsc.c Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial 2012-07-24 13:34:56 -07:00
spi_ks8995.c phy: Use pr_<level> 2012-06-11 16:58:24 -07:00
ste10Xp.c phylib: Support registering a bunch of drivers 2012-07-09 00:10:56 -07:00
vitesse.c phylib: Support registering a bunch of drivers 2012-07-09 00:10:56 -07:00