* ixgbe_init_phy_ops_generic - Inits PHY function ptrs * @hw: pointer to the hardware structure * * Initialize the function pointers. **/
| 215 | * Initialize the function pointers. |
| 216 | **/ |
| 217 | s32 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 |
no outgoing calls
no test coverage detected