MCPcopy Create free account
hub / github.com/F-Stack/f-stack / ixgbe_init_phy_ops_generic

Function ixgbe_init_phy_ops_generic

dpdk/drivers/net/ixgbe/base/ixgbe_phy.c:217–247  ·  view source on GitHub ↗

* ixgbe_init_phy_ops_generic - Inits PHY function ptrs * @hw: pointer to the hardware structure * * Initialize the function pointers. **/

Source from the content-addressed store, hash-verified

215 * Initialize the function pointers.
216 **/
217s32 ixgbe_init_phy_ops_generic(struct ixgbe_hw *hw)
218{
219 struct ixgbe_phy_info *phy = &hw->phy;
220
221 DEBUGFUNC("ixgbe_init_phy_ops_generic");
222
223 /* PHY */
224 phy->ops.identify = ixgbe_identify_phy_generic;
225 phy->ops.reset = ixgbe_reset_phy_generic;
226 phy->ops.read_reg = ixgbe_read_phy_reg_generic;
227 phy->ops.write_reg = ixgbe_write_phy_reg_generic;
228 phy->ops.read_reg_mdi = ixgbe_read_phy_reg_mdi;
229 phy->ops.write_reg_mdi = ixgbe_write_phy_reg_mdi;
230 phy->ops.setup_link = ixgbe_setup_phy_link_generic;
231 phy->ops.setup_link_speed = ixgbe_setup_phy_link_speed_generic;
232 phy->ops.check_link = NULL;
233 phy->ops.get_firmware_version = ixgbe_get_phy_firmware_version_generic;
234 phy->ops.read_i2c_byte = ixgbe_read_i2c_byte_generic;
235 phy->ops.write_i2c_byte = ixgbe_write_i2c_byte_generic;
236 phy->ops.read_i2c_sff8472 = ixgbe_read_i2c_sff8472_generic;
237 phy->ops.read_i2c_eeprom = ixgbe_read_i2c_eeprom_generic;
238 phy->ops.write_i2c_eeprom = ixgbe_write_i2c_eeprom_generic;
239 phy->ops.i2c_bus_clear = ixgbe_i2c_bus_clear;
240 phy->ops.identify_sfp = ixgbe_identify_module_generic;
241 phy->sfp_type = ixgbe_sfp_type_unknown;
242 phy->ops.read_i2c_byte_unlocked = ixgbe_read_i2c_byte_generic_unlocked;
243 phy->ops.write_i2c_byte_unlocked =
244 ixgbe_write_i2c_byte_generic_unlocked;
245 phy->ops.check_overtemp = ixgbe_tn_check_overtemp;
246 return IXGBE_SUCCESS;
247}
248
249/**
250 * ixgbe_probe_phy - Probe a single address for a PHY

Callers 3

ixgbe_init_ops_X540Function · 0.85
ixgbe_init_ops_82598Function · 0.85
ixgbe_init_ops_82599Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected