eeprom: at24: fix reading from 24MAC402/24MAC602
[linux/fpc-iii.git] / drivers / net / phy / sfp.h
blob31b0acf337e27f985e4d3d44800bdb4652bb31f7
1 #ifndef SFP_H
2 #define SFP_H
4 #include <linux/ethtool.h>
5 #include <linux/sfp.h>
7 struct sfp;
9 struct sfp_socket_ops {
10 void (*start)(struct sfp *sfp);
11 void (*stop)(struct sfp *sfp);
12 int (*module_info)(struct sfp *sfp, struct ethtool_modinfo *modinfo);
13 int (*module_eeprom)(struct sfp *sfp, struct ethtool_eeprom *ee,
14 u8 *data);
17 int sfp_add_phy(struct sfp_bus *bus, struct phy_device *phydev);
18 void sfp_remove_phy(struct sfp_bus *bus);
19 void sfp_link_up(struct sfp_bus *bus);
20 void sfp_link_down(struct sfp_bus *bus);
21 int sfp_module_insert(struct sfp_bus *bus, const struct sfp_eeprom_id *id);
22 void sfp_module_remove(struct sfp_bus *bus);
23 int sfp_link_configure(struct sfp_bus *bus, const struct sfp_eeprom_id *id);
24 struct sfp_bus *sfp_register_socket(struct device *dev, struct sfp *sfp,
25 const struct sfp_socket_ops *ops);
26 void sfp_unregister_socket(struct sfp_bus *bus);
28 #endif