mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 23:32:14 +00:00
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:
parent
33b43df40a
commit
3d762a0f0a
2 changed files with 30 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue