diff options
| author | Tejun Heo <tj@kernel.org> | 2012-04-01 15:30:01 -0400 |
|---|---|---|
| committer | Tejun Heo <tj@kernel.org> | 2012-04-01 15:55:00 -0400 |
| commit | 959d851caa48829eb85cb85aa949fd6b4c5d5bc6 (patch) | |
| tree | 3ba9c94ec346275fb44c4f0d1cd2537cdff8d811 /include/linux/ethtool.h | |
| parent | a5567932fc926739e29e98487128080f40c61710 (diff) | |
| parent | 48ddbe194623ae089cc0576e60363f2d2e85662a (diff) | |
Merge branch 'for-3.5' of ../cgroup into block/for-3.5/core-merged
cgroup/for-3.5 contains the following changes which blk-cgroup needs
to proceed with the on-going cleanup.
* Dynamic addition and removal of cftypes to make config/stat file
handling modular for policies.
* cgroup removal update to not wait for css references to drain to fix
blkcg removal hang caused by cfq caching cfqgs.
Pull in cgroup/for-3.5 into block/for-3.5/core. This causes the
following conflicts in block/blk-cgroup.c.
* 761b3ef50e "cgroup: remove cgroup_subsys argument from callbacks"
conflicts with blkiocg_pre_destroy() addition and blkiocg_attach()
removal. Resolved by removing @subsys from all subsys methods.
* 676f7c8f84 "cgroup: relocate cftype and cgroup_subsys definitions in
controllers" conflicts with ->pre_destroy() and ->attach() updates
and removal of modular config. Resolved by dropping forward
declarations of the methods and applying updates to the relocated
blkio_subsys.
* 4baf6e3325 "cgroup: convert all non-memcg controllers to the new
cftype interface" builds upon the previous item. Resolved by adding
->base_cftypes to the relocated blkio_subsys.
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'include/linux/ethtool.h')
| -rw-r--r-- | include/linux/ethtool.h | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/include/linux/ethtool.h b/include/linux/ethtool.h index da5b2de99ae..e1d9e0ede30 100644 --- a/include/linux/ethtool.h +++ b/include/linux/ethtool.h | |||
| @@ -30,10 +30,15 @@ struct ethtool_cmd { | |||
| 30 | * access it */ | 30 | * access it */ |
| 31 | __u8 duplex; /* Duplex, half or full */ | 31 | __u8 duplex; /* Duplex, half or full */ |
| 32 | __u8 port; /* Which connector port */ | 32 | __u8 port; /* Which connector port */ |
| 33 | __u8 phy_address; | 33 | __u8 phy_address; /* MDIO PHY address (PRTAD for clause 45). |
| 34 | * May be read-only or read-write | ||
| 35 | * depending on the driver. | ||
| 36 | */ | ||
| 34 | __u8 transceiver; /* Which transceiver to use */ | 37 | __u8 transceiver; /* Which transceiver to use */ |
| 35 | __u8 autoneg; /* Enable or disable autonegotiation */ | 38 | __u8 autoneg; /* Enable or disable autonegotiation */ |
| 36 | __u8 mdio_support; | 39 | __u8 mdio_support; /* MDIO protocols supported. Read-only. |
| 40 | * Not set by all drivers. | ||
| 41 | */ | ||
| 37 | __u32 maxtxpkt; /* Tx pkts before generating tx int */ | 42 | __u32 maxtxpkt; /* Tx pkts before generating tx int */ |
| 38 | __u32 maxrxpkt; /* Rx pkts before generating rx int */ | 43 | __u32 maxrxpkt; /* Rx pkts before generating rx int */ |
| 39 | __u16 speed_hi; /* The forced speed (upper | 44 | __u16 speed_hi; /* The forced speed (upper |
| @@ -59,6 +64,20 @@ static inline __u32 ethtool_cmd_speed(const struct ethtool_cmd *ep) | |||
| 59 | return (ep->speed_hi << 16) | ep->speed; | 64 | return (ep->speed_hi << 16) | ep->speed; |
| 60 | } | 65 | } |
| 61 | 66 | ||
| 67 | /* Device supports clause 22 register access to PHY or peripherals | ||
| 68 | * using the interface defined in <linux/mii.h>. This should not be | ||
| 69 | * set if there are known to be no such peripherals present or if | ||
| 70 | * the driver only emulates clause 22 registers for compatibility. | ||
| 71 | */ | ||
| 72 | #define ETH_MDIO_SUPPORTS_C22 1 | ||
| 73 | |||
| 74 | /* Device supports clause 45 register access to PHY or peripherals | ||
| 75 | * using the interface defined in <linux/mii.h> and <linux/mdio.h>. | ||
| 76 | * This should not be set if there are known to be no such peripherals | ||
| 77 | * present. | ||
| 78 | */ | ||
| 79 | #define ETH_MDIO_SUPPORTS_C45 2 | ||
| 80 | |||
| 62 | #define ETHTOOL_FWVERS_LEN 32 | 81 | #define ETHTOOL_FWVERS_LEN 32 |
| 63 | #define ETHTOOL_BUSINFO_LEN 32 | 82 | #define ETHTOOL_BUSINFO_LEN 32 |
| 64 | /* these strings are set to whatever the driver author decides... */ | 83 | /* these strings are set to whatever the driver author decides... */ |
