diff options
author | Guenter Roeck <linux@roeck-us.net> | 2014-10-29 10:45:04 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-10-30 14:54:11 -0400 |
commit | 3d762a0f0ab9cb4a6b5993db3ce56c92f9f90ab2 (patch) | |
tree | cf917d9d31b285c559c8cdead7b33fa78e70e265 /include/net | |
parent | 33b43df40a3827365ff80fae79f7c59c107508d3 (diff) | |
download | op-kernel-dev-3d762a0f0ab9cb4a6b5993db3ce56c92f9f90ab2.zip op-kernel-dev-3d762a0f0ab9cb4a6b5993db3ce56c92f9f90ab2.tar.gz |
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')
-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 37856a2..ed3c34b 100644 --- a/include/net/dsa.h +++ b/include/net/dsa.h @@ -268,6 +268,13 @@ struct dsa_switch_driver { struct ethtool_eeprom *eeprom, u8 *data); int (*set_eeprom)(struct dsa_switch *ds, struct ethtool_eeprom *eeprom, u8 *data); + + /* + * Register access. + */ + int (*get_regs_len)(struct dsa_switch *ds, int port); + void (*get_regs)(struct dsa_switch *ds, int port, + struct ethtool_regs *regs, void *p); }; void register_switch_driver(struct dsa_switch_driver *type); |