4 #include <linux/ethtool.h>
12 void (*modes)(const struct sfp_eeprom_id *id, unsigned long *modes);
15 struct sfp_socket_ops {
16 void (*attach)(struct sfp *sfp);
17 void (*detach)(struct sfp *sfp);
18 void (*start)(struct sfp *sfp);
19 void (*stop)(struct sfp *sfp);
20 int (*module_info)(struct sfp *sfp, struct ethtool_modinfo *modinfo);
21 int (*module_eeprom)(struct sfp *sfp, struct ethtool_eeprom *ee,
23 int (*module_eeprom_by_page)(struct sfp *sfp,
24 const struct ethtool_module_eeprom *page,
25 struct netlink_ext_ack *extack);
28 int sfp_add_phy(struct sfp_bus *bus, struct phy_device *phydev);
29 void sfp_remove_phy(struct sfp_bus *bus);
30 void sfp_link_up(struct sfp_bus *bus);
31 void sfp_link_down(struct sfp_bus *bus);
32 int sfp_module_insert(struct sfp_bus *bus, const struct sfp_eeprom_id *id,
33 const struct sfp_quirk *quirk);
34 void sfp_module_remove(struct sfp_bus *bus);
35 int sfp_module_start(struct sfp_bus *bus);
36 void sfp_module_stop(struct sfp_bus *bus);
37 int sfp_link_configure(struct sfp_bus *bus, const struct sfp_eeprom_id *id);
38 struct sfp_bus *sfp_register_socket(struct device *dev, struct sfp *sfp,
39 const struct sfp_socket_ops *ops);
40 void sfp_unregister_socket(struct sfp_bus *bus);