Lines Matching defs:dsa_switch_driver

205 struct dsa_switch_driver {  struct
206 struct list_head list;
208 enum dsa_tag_protocol tag_protocol;
209 int priv_size;
214 char *(*probe)(struct device *host_dev, int sw_addr);
215 int (*setup)(struct dsa_switch *ds);
216 int (*set_addr)(struct dsa_switch *ds, u8 *addr);
217 u32 (*get_phy_flags)(struct dsa_switch *ds, int port);
222 int (*phy_read)(struct dsa_switch *ds, int port, int regnum);
223 int (*phy_write)(struct dsa_switch *ds, int port,
229 void (*poll_link)(struct dsa_switch *ds);
234 void (*adjust_link)(struct dsa_switch *ds, int port,
236 void (*fixed_link_update)(struct dsa_switch *ds, int port,
242 void (*get_strings)(struct dsa_switch *ds, int port, uint8_t *data);
243 void (*get_ethtool_stats)(struct dsa_switch *ds,
245 int (*get_sset_count)(struct dsa_switch *ds);
250 void (*get_wol)(struct dsa_switch *ds, int port,
252 int (*set_wol)(struct dsa_switch *ds, int port,
258 int (*suspend)(struct dsa_switch *ds);
259 int (*resume)(struct dsa_switch *ds);
264 int (*port_enable)(struct dsa_switch *ds, int port,
266 void (*port_disable)(struct dsa_switch *ds, int port,
272 int (*set_eee)(struct dsa_switch *ds, int port,
275 int (*get_eee)(struct dsa_switch *ds, int port,
280 int (*get_temp)(struct dsa_switch *ds, int *temp);
281 int (*get_temp_limit)(struct dsa_switch *ds, int *temp);
282 int (*set_temp_limit)(struct dsa_switch *ds, int temp);
283 int (*get_temp_alarm)(struct dsa_switch *ds, bool *alarm);
287 int (*get_eeprom_len)(struct dsa_switch *ds);
288 int (*get_eeprom)(struct dsa_switch *ds,
290 int (*set_eeprom)(struct dsa_switch *ds,
296 int (*get_regs_len)(struct dsa_switch *ds, int port);
297 void (*get_regs)(struct dsa_switch *ds, int port,
303 int (*port_join_bridge)(struct dsa_switch *ds, int port,
305 int (*port_leave_bridge)(struct dsa_switch *ds, int port,
307 int (*port_stp_update)(struct dsa_switch *ds, int port,
313 int (*port_vlan_prepare)(struct dsa_switch *ds, int port,
316 int (*port_vlan_add)(struct dsa_switch *ds, int port,
341 void register_switch_driver(struct dsa_switch_driver *type); argument