diff options
| author | Ingo Molnar <mingo@elte.hu> | 2008-08-11 02:59:21 -0400 |
|---|---|---|
| committer | Ingo Molnar <mingo@elte.hu> | 2008-08-11 02:59:21 -0400 |
| commit | cf206bffbb7542df54043fad9898113172af99d8 (patch) | |
| tree | c7e7ca9a93443b888f98a0c07e74751a1aa3c947 /include/linux/ethtool.h | |
| parent | c1955a3d4762e7a9bf84035eb3c4886a900f0d15 (diff) | |
| parent | 796aadeb1b2db9b5d463946766c5bbfd7717158c (diff) | |
Merge branch 'linus' into sched/clock
Diffstat (limited to 'include/linux/ethtool.h')
| -rw-r--r-- | include/linux/ethtool.h | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/include/linux/ethtool.h b/include/linux/ethtool.h index 8bb5e87df365..b4b038b89ee6 100644 --- a/include/linux/ethtool.h +++ b/include/linux/ethtool.h | |||
| @@ -27,9 +27,24 @@ struct ethtool_cmd { | |||
| 27 | __u8 autoneg; /* Enable or disable autonegotiation */ | 27 | __u8 autoneg; /* Enable or disable autonegotiation */ |
| 28 | __u32 maxtxpkt; /* Tx pkts before generating tx int */ | 28 | __u32 maxtxpkt; /* Tx pkts before generating tx int */ |
| 29 | __u32 maxrxpkt; /* Rx pkts before generating rx int */ | 29 | __u32 maxrxpkt; /* Rx pkts before generating rx int */ |
| 30 | __u32 reserved[4]; | 30 | __u16 speed_hi; |
| 31 | __u16 reserved2; | ||
| 32 | __u32 reserved[3]; | ||
| 31 | }; | 33 | }; |
| 32 | 34 | ||
| 35 | static inline void ethtool_cmd_speed_set(struct ethtool_cmd *ep, | ||
| 36 | __u32 speed) | ||
| 37 | { | ||
| 38 | |||
| 39 | ep->speed = (__u16)speed; | ||
| 40 | ep->speed_hi = (__u16)(speed >> 16); | ||
| 41 | } | ||
| 42 | |||
| 43 | static inline __u32 ethtool_cmd_speed(struct ethtool_cmd *ep) | ||
| 44 | { | ||
| 45 | return (ep->speed_hi << 16) | ep->speed; | ||
| 46 | } | ||
| 47 | |||
| 33 | #define ETHTOOL_BUSINFO_LEN 32 | 48 | #define ETHTOOL_BUSINFO_LEN 32 |
| 34 | /* these strings are set to whatever the driver author decides... */ | 49 | /* these strings are set to whatever the driver author decides... */ |
| 35 | struct ethtool_drvinfo { | 50 | struct ethtool_drvinfo { |
