Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

at v4.19-rc2 28 lines 900 B view raw
1#ifndef SFP_H 2#define SFP_H 3 4#include <linux/ethtool.h> 5#include <linux/sfp.h> 6 7struct sfp; 8 9struct 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); 15}; 16 17int sfp_add_phy(struct sfp_bus *bus, struct phy_device *phydev); 18void sfp_remove_phy(struct sfp_bus *bus); 19void sfp_link_up(struct sfp_bus *bus); 20void sfp_link_down(struct sfp_bus *bus); 21int sfp_module_insert(struct sfp_bus *bus, const struct sfp_eeprom_id *id); 22void sfp_module_remove(struct sfp_bus *bus); 23int sfp_link_configure(struct sfp_bus *bus, const struct sfp_eeprom_id *id); 24struct sfp_bus *sfp_register_socket(struct device *dev, struct sfp *sfp, 25 const struct sfp_socket_ops *ops); 26void sfp_unregister_socket(struct sfp_bus *bus); 27 28#endif