diff options
| author | David S. Miller <davem@davemloft.net> | 2014-09-22 14:41:28 -0400 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2014-09-22 14:41:28 -0400 |
| commit | 61a3bd1492b7b1872768798384ba6451f83c87a5 (patch) | |
| tree | d1103c98dd7273538de10bea5c0e259816e8c409 /include | |
| parent | 34f6b8745d421683ca0a268540869eb30721e970 (diff) | |
| parent | 96e65d7f3f88d6e117ff80f3003d13c65e85cb03 (diff) | |
Merge branch 'dsa-suspend'
Florian Fainelli says:
====================
dsa: Broadcom SF2 suspend/resume and WoL
This patch add supports for suspend/resume and configuring Wake-on-LAN
for Broadcom Starfighter 2 switches.
====================
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
| -rw-r--r-- | include/net/dsa.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/net/dsa.h b/include/net/dsa.h index e020b8a12b7d..d8054fb4a4df 100644 --- a/include/net/dsa.h +++ b/include/net/dsa.h @@ -210,6 +210,20 @@ struct dsa_switch_driver { void (*get_ethtool_stats)(struct dsa_switch *ds, int port, uint64_t *data); int (*get_sset_count)(struct dsa_switch *ds); + + /* + * ethtool Wake-on-LAN + */ + void (*get_wol)(struct dsa_switch *ds, int port, + struct ethtool_wolinfo *w); + int (*set_wol)(struct dsa_switch *ds, int port, + struct ethtool_wolinfo *w); + + /* + * Suspend and resume + */ + int (*suspend)(struct dsa_switch *ds); + int (*resume)(struct dsa_switch *ds); }; void register_switch_driver(struct dsa_switch_driver *type); |
