diff options
| author | David S. Miller <davem@davemloft.net> | 2014-09-28 17:14:15 -0400 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2014-09-28 17:14:15 -0400 |
| commit | fe2c5fb1ef24e97b7cf96e24200bbe503286cb95 (patch) | |
| tree | 8e447cdbf775bb00d40e69b09cf89e77f333e07a /include | |
| parent | 155c6e1ad4a778cad7f9fe6695afc91b3f5fe1ac (diff) | |
| parent | 450b05c15f9c776996f9627c7b4f1d38b6e6f4a0 (diff) | |
Merge branch 'dsa_eee'
Florian Fainelli says:
====================
net: dsa: EEE and other PM features
This patch set allows DSA switch drivers to enable/disable/query EEE on a
per-port level, as well as control precisely which switch ports are
enable/disabled.
====================
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
| -rw-r--r-- | include/net/dsa.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/net/dsa.h b/include/net/dsa.h index d8054fb4a4df..58ad8c6492db 100644 --- a/include/net/dsa.h +++ b/include/net/dsa.h | |||
| @@ -224,6 +224,23 @@ struct dsa_switch_driver { | |||
| 224 | */ | 224 | */ |
| 225 | int (*suspend)(struct dsa_switch *ds); | 225 | int (*suspend)(struct dsa_switch *ds); |
| 226 | int (*resume)(struct dsa_switch *ds); | 226 | int (*resume)(struct dsa_switch *ds); |
| 227 | |||
| 228 | /* | ||
| 229 | * Port enable/disable | ||
| 230 | */ | ||
| 231 | int (*port_enable)(struct dsa_switch *ds, int port, | ||
| 232 | struct phy_device *phy); | ||
| 233 | void (*port_disable)(struct dsa_switch *ds, int port, | ||
| 234 | struct phy_device *phy); | ||
| 235 | |||
| 236 | /* | ||
| 237 | * EEE setttings | ||
| 238 | */ | ||
| 239 | int (*set_eee)(struct dsa_switch *ds, int port, | ||
| 240 | struct phy_device *phydev, | ||
| 241 | struct ethtool_eee *e); | ||
| 242 | int (*get_eee)(struct dsa_switch *ds, int port, | ||
| 243 | struct ethtool_eee *e); | ||
| 227 | }; | 244 | }; |
| 228 | 245 | ||
| 229 | void register_switch_driver(struct dsa_switch_driver *type); | 246 | void register_switch_driver(struct dsa_switch_driver *type); |
