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>
This commit is contained in:

committed by
David S. Miller

parent
33b43df40a
commit
3d762a0f0a
@@ -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);
|
||||
|
Reference in New Issue
Block a user