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
..
2012-08-12 21:34:09 +03:00
2012-08-20 13:13:47 -07:00
2012-08-13 10:15:22 +05:30
2012-07-30 09:32:39 -07:00
2012-08-20 13:14:22 -07:00
2012-08-16 20:24:38 +01:00
2012-08-13 14:34:02 +08:00
2012-08-20 13:14:22 -07:00
2012-08-12 21:31:44 +03:00
2012-08-20 13:05:27 -07:00
2012-08-10 15:27:02 -04:00
2012-08-20 13:14:22 -07:00
2012-08-20 13:14:22 -07:00
2012-07-31 08:16:24 -06:00
2012-07-31 08:16:22 -06:00
2012-07-31 08:16:22 -06:00