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/ethtool.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/ethtool.h')
-rw-r--r-- | include/linux/ethtool.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/ethtool.h b/include/linux/ethtool.h index 5ccb6bd660c7..14e6bc860112 100644 --- a/include/linux/ethtool.h +++ b/include/linux/ethtool.h | |||
@@ -26,11 +26,13 @@ struct ethtool_cmd { | |||
26 | __u8 phy_address; | 26 | __u8 phy_address; |
27 | __u8 transceiver; /* Which transceiver to use */ | 27 | __u8 transceiver; /* Which transceiver to use */ |
28 | __u8 autoneg; /* Enable or disable autonegotiation */ | 28 | __u8 autoneg; /* Enable or disable autonegotiation */ |
29 | __u8 mdio_support; | ||
29 | __u32 maxtxpkt; /* Tx pkts before generating tx int */ | 30 | __u32 maxtxpkt; /* Tx pkts before generating tx int */ |
30 | __u32 maxrxpkt; /* Rx pkts before generating rx int */ | 31 | __u32 maxrxpkt; /* Rx pkts before generating rx int */ |
31 | __u16 speed_hi; | 32 | __u16 speed_hi; |
32 | __u16 reserved2; | 33 | __u16 reserved2; |
33 | __u32 reserved[3]; | 34 | __u32 lp_advertising; /* Features the link partner advertises */ |
35 | __u32 reserved[2]; | ||
34 | }; | 36 | }; |
35 | 37 | ||
36 | static inline void ethtool_cmd_speed_set(struct ethtool_cmd *ep, | 38 | static inline void ethtool_cmd_speed_set(struct ethtool_cmd *ep, |