#include "sja1105.h"
enum sja1105_counter_index { … };
struct sja1105_port_counter { … };
static const struct sja1105_port_counter sja1105_port_counters[] = …;
static int sja1105_port_counter_read(struct sja1105_private *priv, int port,
enum sja1105_counter_index idx, u64 *ctr)
{ … }
void sja1105_get_ethtool_stats(struct dsa_switch *ds, int port, u64 *data)
{ … }
void sja1105_get_strings(struct dsa_switch *ds, int port,
u32 stringset, u8 *data)
{ … }
int sja1105_get_sset_count(struct dsa_switch *ds, int port, int sset)
{ … }