Blame view
drivers/net/phy/sfp.h
1.03 KB
ce0aa27ff sfp: add sfp-bus ... |
1 2 3 4 5 6 7 8 9 |
#ifndef SFP_H #define SFP_H #include <linux/ethtool.h> #include <linux/sfp.h> struct sfp; struct sfp_socket_ops { |
b5bfc21af net: sfp: do not ... |
10 11 |
void (*attach)(struct sfp *sfp); void (*detach)(struct sfp *sfp); |
ce0aa27ff sfp: add sfp-bus ... |
12 13 14 15 16 17 18 19 20 21 22 23 24 |
void (*start)(struct sfp *sfp); void (*stop)(struct sfp *sfp); int (*module_info)(struct sfp *sfp, struct ethtool_modinfo *modinfo); int (*module_eeprom)(struct sfp *sfp, struct ethtool_eeprom *ee, u8 *data); }; int sfp_add_phy(struct sfp_bus *bus, struct phy_device *phydev); void sfp_remove_phy(struct sfp_bus *bus); void sfp_link_up(struct sfp_bus *bus); void sfp_link_down(struct sfp_bus *bus); int sfp_module_insert(struct sfp_bus *bus, const struct sfp_eeprom_id *id); void sfp_module_remove(struct sfp_bus *bus); |
74c551ca5 net: sfp: add mod... |
25 26 |
int sfp_module_start(struct sfp_bus *bus); void sfp_module_stop(struct sfp_bus *bus); |
ce0aa27ff sfp: add sfp-bus ... |
27 28 29 30 31 32 |
int sfp_link_configure(struct sfp_bus *bus, const struct sfp_eeprom_id *id); struct sfp_bus *sfp_register_socket(struct device *dev, struct sfp *sfp, const struct sfp_socket_ops *ops); void sfp_unregister_socket(struct sfp_bus *bus); #endif |