aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/dsa/mv88e6xxx.h
diff options
context:
space:
mode:
authorAndrew Lunn <andrew@lunn.ch>2015-04-01 22:06:38 -0400
committerDavid S. Miller <davem@davemloft.net>2015-04-01 22:55:41 -0400
commite413e7e1f7493910274c552d7f70ae396c93199a (patch)
treecc658c267c3efd5c11fc15873c2255863c7e1e81 /drivers/net/dsa/mv88e6xxx.h
parent2f40c6981ac0adcaa2b3fc64e6ae81f80809aec8 (diff)
net: dsa: Consolidate getting the statistics
Reading the statistics from the hardware is the same for all chips. What differs is the number of available statistics. Have just one copy of the code in the shared mv88e6xxx. Signed-off-by: Andrew Lunn <andrew@lunn.ch> Tested-by: Guenter Roeck <linux@roeck-us.net> Reviewed-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/dsa/mv88e6xxx.h')
-rw-r--r--drivers/net/dsa/mv88e6xxx.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/drivers/net/dsa/mv88e6xxx.h b/drivers/net/dsa/mv88e6xxx.h
index 44b0ec79cc6b..fbbedc07754f 100644
--- a/drivers/net/dsa/mv88e6xxx.h
+++ b/drivers/net/dsa/mv88e6xxx.h
@@ -150,12 +150,11 @@ int mv88e6xxx_phy_read_ppu(struct dsa_switch *ds, int addr, int regnum);
150int mv88e6xxx_phy_write_ppu(struct dsa_switch *ds, int addr, 150int mv88e6xxx_phy_write_ppu(struct dsa_switch *ds, int addr,
151 int regnum, u16 val); 151 int regnum, u16 val);
152void mv88e6xxx_poll_link(struct dsa_switch *ds); 152void mv88e6xxx_poll_link(struct dsa_switch *ds);
153void mv88e6xxx_get_strings(struct dsa_switch *ds, 153void mv88e6xxx_get_strings(struct dsa_switch *ds, int port, uint8_t *data);
154 int nr_stats, struct mv88e6xxx_hw_stat *stats, 154void mv88e6xxx_get_ethtool_stats(struct dsa_switch *ds, int port,
155 int port, uint8_t *data); 155 uint64_t *data);
156void mv88e6xxx_get_ethtool_stats(struct dsa_switch *ds, 156int mv88e6xxx_get_sset_count(struct dsa_switch *ds);
157 int nr_stats, struct mv88e6xxx_hw_stat *stats, 157int mv88e6xxx_get_sset_count_basic(struct dsa_switch *ds);
158 int port, uint64_t *data);
159int mv88e6xxx_get_regs_len(struct dsa_switch *ds, int port); 158int mv88e6xxx_get_regs_len(struct dsa_switch *ds, int port);
160void mv88e6xxx_get_regs(struct dsa_switch *ds, int port, 159void mv88e6xxx_get_regs(struct dsa_switch *ds, int port,
161 struct ethtool_regs *regs, void *_p); 160 struct ethtool_regs *regs, void *_p);