diff options
author | Guenter Roeck <linux@roeck-us.net> | 2014-10-29 13:45:04 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-10-30 14:54:11 -0400 |
commit | 3d762a0f0ab9cb4a6b5993db3ce56c92f9f90ab2 (patch) | |
tree | cf917d9d31b285c559c8cdead7b33fa78e70e265 /include/net/dsa.h | |
parent | 33b43df40a3827365ff80fae79f7c59c107508d3 (diff) |
net: dsa: Add support for reading switch registers with ethtool
Add support for reading switch registers with 'ethtool -d'.
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/dsa.h')
-rw-r--r-- | include/net/dsa.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/net/dsa.h b/include/net/dsa.h index 37856a28c8d3..ed3c34bbb67a 100644 --- a/include/net/dsa.h +++ b/include/net/dsa.h | |||
@@ -268,6 +268,13 @@ struct dsa_switch_driver { | |||
268 | struct ethtool_eeprom *eeprom, u8 *data); | 268 | struct ethtool_eeprom *eeprom, u8 *data); |
269 | int (*set_eeprom)(struct dsa_switch *ds, | 269 | int (*set_eeprom)(struct dsa_switch *ds, |
270 | struct ethtool_eeprom *eeprom, u8 *data); | 270 | struct ethtool_eeprom *eeprom, u8 *data); |
271 | |||
272 | /* | ||
273 | * Register access. | ||
274 | */ | ||
275 | int (*get_regs_len)(struct dsa_switch *ds, int port); | ||
276 | void (*get_regs)(struct dsa_switch *ds, int port, | ||
277 | struct ethtool_regs *regs, void *p); | ||
271 | }; | 278 | }; |
272 | 279 | ||
273 | void register_switch_driver(struct dsa_switch_driver *type); | 280 | void register_switch_driver(struct dsa_switch_driver *type); |