Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 107995
b: refs/heads/master
c: b11f8d8
h: refs/heads/master
i:
  107993: afac234
  107991: 0d306d7
v: v3
  • Loading branch information
Brandon Philips authored and Jeff Garzik committed Aug 7, 2008
1 parent 284e6c5 commit e21c1e2
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4f63135eb23015a17eaf4f7478deedf63e98ff5c
refs/heads/master: b11f8d8cc3bb2fa6fa55286babc1a5ebb2e932c4
17 changes: 16 additions & 1 deletion trunk/include/linux/ethtool.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,24 @@ struct ethtool_cmd {
__u8 autoneg; /* Enable or disable autonegotiation */
__u32 maxtxpkt; /* Tx pkts before generating tx int */
__u32 maxrxpkt; /* Rx pkts before generating rx int */
__u32 reserved[4];
__u16 speed_hi;
__u16 reserved2;
__u32 reserved[3];
};

static inline void ethtool_cmd_speed_set(struct ethtool_cmd *ep,
__u32 speed)
{

ep->speed = (__u16)speed;
ep->speed_hi = (__u16)(speed >> 16);
}

static inline __u32 ethtool_cmd_speed(struct ethtool_cmd *ep)
{
return (ep->speed_hi << 16) | ep->speed;
}

#define ETHTOOL_BUSINFO_LEN 32
/* these strings are set to whatever the driver author decides... */
struct ethtool_drvinfo {
Expand Down

0 comments on commit e21c1e2

Please sign in to comment.