* ixgbe_init_ops_X540 - Inits func ptrs and MAC type * @hw: pointer to hardware structure * * Initialize the function pointers and assign the MAC type for X540. * Does not touch the hardware. **/
| 27 | * Does not touch the hardware. |
| 28 | **/ |
| 29 | s32 ixgbe_init_ops_X540(struct ixgbe_hw *hw) |
| 30 | { |
| 31 | struct ixgbe_mac_info *mac = &hw->mac; |
| 32 | struct ixgbe_phy_info *phy = &hw->phy; |
| 33 | struct ixgbe_eeprom_info *eeprom = &hw->eeprom; |
| 34 | s32 ret_val; |
| 35 | |
| 36 | DEBUGFUNC("ixgbe_init_ops_X540"); |
| 37 | |
| 38 | ret_val = ixgbe_init_phy_ops_generic(hw); |
| 39 | ret_val = ixgbe_init_ops_generic(hw); |
| 40 | |
| 41 | |
| 42 | /* EEPROM */ |
| 43 | eeprom->ops.init_params = ixgbe_init_eeprom_params_X540; |
| 44 | eeprom->ops.read = ixgbe_read_eerd_X540; |
| 45 | eeprom->ops.read_buffer = ixgbe_read_eerd_buffer_X540; |
| 46 | eeprom->ops.write = ixgbe_write_eewr_X540; |
| 47 | eeprom->ops.write_buffer = ixgbe_write_eewr_buffer_X540; |
| 48 | eeprom->ops.update_checksum = ixgbe_update_eeprom_checksum_X540; |
| 49 | eeprom->ops.validate_checksum = ixgbe_validate_eeprom_checksum_X540; |
| 50 | eeprom->ops.calc_checksum = ixgbe_calc_eeprom_checksum_X540; |
| 51 | |
| 52 | /* PHY */ |
| 53 | phy->ops.init = ixgbe_init_phy_ops_generic; |
| 54 | phy->ops.reset = NULL; |
| 55 | phy->ops.set_phy_power = ixgbe_set_copper_phy_power; |
| 56 | |
| 57 | /* MAC */ |
| 58 | mac->ops.reset_hw = ixgbe_reset_hw_X540; |
| 59 | mac->ops.enable_relaxed_ordering = ixgbe_enable_relaxed_ordering_gen2; |
| 60 | mac->ops.get_media_type = ixgbe_get_media_type_X540; |
| 61 | mac->ops.get_supported_physical_layer = |
| 62 | ixgbe_get_supported_physical_layer_X540; |
| 63 | mac->ops.read_analog_reg8 = NULL; |
| 64 | mac->ops.write_analog_reg8 = NULL; |
| 65 | mac->ops.start_hw = ixgbe_start_hw_X540; |
| 66 | mac->ops.get_san_mac_addr = ixgbe_get_san_mac_addr_generic; |
| 67 | mac->ops.set_san_mac_addr = ixgbe_set_san_mac_addr_generic; |
| 68 | mac->ops.get_device_caps = ixgbe_get_device_caps_generic; |
| 69 | mac->ops.get_wwn_prefix = ixgbe_get_wwn_prefix_generic; |
| 70 | mac->ops.get_fcoe_boot_status = ixgbe_get_fcoe_boot_status_generic; |
| 71 | mac->ops.acquire_swfw_sync = ixgbe_acquire_swfw_sync_X540; |
| 72 | mac->ops.release_swfw_sync = ixgbe_release_swfw_sync_X540; |
| 73 | mac->ops.init_swfw_sync = ixgbe_init_swfw_sync_X540; |
| 74 | mac->ops.disable_sec_rx_path = ixgbe_disable_sec_rx_path_generic; |
| 75 | mac->ops.enable_sec_rx_path = ixgbe_enable_sec_rx_path_generic; |
| 76 | |
| 77 | /* RAR, Multicast, VLAN */ |
| 78 | mac->ops.set_vmdq = ixgbe_set_vmdq_generic; |
| 79 | mac->ops.set_vmdq_san_mac = ixgbe_set_vmdq_san_mac_generic; |
| 80 | mac->ops.clear_vmdq = ixgbe_clear_vmdq_generic; |
| 81 | mac->ops.insert_mac_addr = ixgbe_insert_mac_addr_generic; |
| 82 | mac->rar_highwater = 1; |
| 83 | mac->ops.set_vfta = ixgbe_set_vfta_generic; |
| 84 | mac->ops.set_vlvf = ixgbe_set_vlvf_generic; |
| 85 | mac->ops.clear_vfta = ixgbe_clear_vfta_generic; |
| 86 | mac->ops.init_uta_tables = ixgbe_init_uta_tables_generic; |
no test coverage detected