aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2014-09-28 17:14:15 -0400
committerDavid S. Miller <davem@davemloft.net>2014-09-28 17:14:15 -0400
commitfe2c5fb1ef24e97b7cf96e24200bbe503286cb95 (patch)
tree8e447cdbf775bb00d40e69b09cf89e77f333e07a /include
parenttcp: use tcp_flags in tcp_data_queue() (diff)
parentnet: dsa: bcm_sf2: add support for controlling EEE (diff)
downloadlinux-dev-fe2c5fb1ef24e97b7cf96e24200bbe503286cb95.tar.xz
linux-dev-fe2c5fb1ef24e97b7cf96e24200bbe503286cb95.zip
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.h17
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 {
*/
int (*suspend)(struct dsa_switch *ds);
int (*resume)(struct dsa_switch *ds);
+
+ /*
+ * Port enable/disable
+ */
+ int (*port_enable)(struct dsa_switch *ds, int port,
+ struct phy_device *phy);
+ void (*port_disable)(struct dsa_switch *ds, int port,
+ struct phy_device *phy);
+
+ /*
+ * EEE setttings
+ */
+ int (*set_eee)(struct dsa_switch *ds, int port,
+ struct phy_device *phydev,
+ struct ethtool_eee *e);
+ int (*get_eee)(struct dsa_switch *ds, int port,
+ struct ethtool_eee *e);
};
void register_switch_driver(struct dsa_switch_driver *type);