diff options
author | Ben Hutchings <bhutchings@solarflare.com> | 2009-04-29 04:21:53 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-04-29 20:32:37 -0400 |
commit | 0c09c1a49cc7b819b33566a49d9901f7cfdd6889 (patch) | |
tree | e10fc988a21ca0b3e1550ae905b96cc444f90a76 /include/linux/mdio.h | |
parent | 3f926da82f128c68c479247b1771729b9487502a (diff) |
ethtool/mdio: Report MDIO mode support and link partner advertising
Add mdio_support and lp_advertising fields to ethtool_cmd. Set these
in mdio45_ethtool_gset{,_npage}().
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/mdio.h')
-rw-r--r-- | include/linux/mdio.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/linux/mdio.h b/include/linux/mdio.h index 5645c0f863dc..1bff2f2d0e19 100644 --- a/include/linux/mdio.h +++ b/include/linux/mdio.h | |||
@@ -234,6 +234,9 @@ static inline __u16 mdio_phy_id_devad(int phy_id) | |||
234 | return phy_id & MDIO_PHY_ID_DEVAD; | 234 | return phy_id & MDIO_PHY_ID_DEVAD; |
235 | } | 235 | } |
236 | 236 | ||
237 | #define MDIO_SUPPORTS_C22 1 | ||
238 | #define MDIO_SUPPORTS_C45 2 | ||
239 | |||
237 | #ifdef __KERNEL__ | 240 | #ifdef __KERNEL__ |
238 | 241 | ||
239 | /** | 242 | /** |
@@ -264,8 +267,6 @@ struct mdio_if_info { | |||
264 | 267 | ||
265 | #define MDIO_PRTAD_NONE (-1) | 268 | #define MDIO_PRTAD_NONE (-1) |
266 | #define MDIO_DEVAD_NONE (-1) | 269 | #define MDIO_DEVAD_NONE (-1) |
267 | #define MDIO_SUPPORTS_C22 1 | ||
268 | #define MDIO_SUPPORTS_C45 2 | ||
269 | #define MDIO_EMULATE_C22 4 | 270 | #define MDIO_EMULATE_C22 4 |
270 | 271 | ||
271 | struct ethtool_cmd; | 272 | struct ethtool_cmd; |