Lines Matching defs:dsa_switch_driver

195 struct dsa_switch_driver {  struct
196 struct list_head list;
198 enum dsa_tag_protocol tag_protocol;
199 int priv_size;
204 char *(*probe)(struct device *host_dev, int sw_addr);
205 int (*setup)(struct dsa_switch *ds);
206 int (*set_addr)(struct dsa_switch *ds, u8 *addr);
207 u32 (*get_phy_flags)(struct dsa_switch *ds, int port);
212 int (*phy_read)(struct dsa_switch *ds, int port, int regnum);
213 int (*phy_write)(struct dsa_switch *ds, int port,
219 void (*poll_link)(struct dsa_switch *ds);
224 void (*adjust_link)(struct dsa_switch *ds, int port,
226 void (*fixed_link_update)(struct dsa_switch *ds, int port,
232 void (*get_strings)(struct dsa_switch *ds, int port, uint8_t *data);
233 void (*get_ethtool_stats)(struct dsa_switch *ds,
235 int (*get_sset_count)(struct dsa_switch *ds);
240 void (*get_wol)(struct dsa_switch *ds, int port,
242 int (*set_wol)(struct dsa_switch *ds, int port,
248 int (*suspend)(struct dsa_switch *ds);
249 int (*resume)(struct dsa_switch *ds);
254 int (*port_enable)(struct dsa_switch *ds, int port,
256 void (*port_disable)(struct dsa_switch *ds, int port,
262 int (*set_eee)(struct dsa_switch *ds, int port,
265 int (*get_eee)(struct dsa_switch *ds, int port,
270 int (*get_temp)(struct dsa_switch *ds, int *temp);
271 int (*get_temp_limit)(struct dsa_switch *ds, int *temp);
272 int (*set_temp_limit)(struct dsa_switch *ds, int temp);
273 int (*get_temp_alarm)(struct dsa_switch *ds, bool *alarm);
277 int (*get_eeprom_len)(struct dsa_switch *ds);
278 int (*get_eeprom)(struct dsa_switch *ds,
280 int (*set_eeprom)(struct dsa_switch *ds,
307 void register_switch_driver(struct dsa_switch_driver *type); argument