FreeBSD kernel IXGBE device code
ixgbe_x550.h File Reference
#include "ixgbe_type.h"
Include dependency graph for ixgbe_x550.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

s32 ixgbe_dmac_config_X550 (struct ixgbe_hw *hw)
 
s32 ixgbe_dmac_config_tcs_X550 (struct ixgbe_hw *hw)
 
s32 ixgbe_dmac_update_tcs_X550 (struct ixgbe_hw *hw)
 
s32 ixgbe_get_bus_info_X550em (struct ixgbe_hw *hw)
 
s32 ixgbe_init_eeprom_params_X550 (struct ixgbe_hw *hw)
 
s32 ixgbe_update_eeprom_checksum_X550 (struct ixgbe_hw *hw)
 
s32 ixgbe_calc_eeprom_checksum_X550 (struct ixgbe_hw *hw)
 
s32 ixgbe_calc_checksum_X550 (struct ixgbe_hw *hw, u16 *buffer, u32 buffer_size)
 
s32 ixgbe_validate_eeprom_checksum_X550 (struct ixgbe_hw *hw, u16 *checksum_val)
 
s32 ixgbe_update_flash_X550 (struct ixgbe_hw *hw)
 
s32 ixgbe_write_ee_hostif_buffer_X550 (struct ixgbe_hw *hw, u16 offset, u16 words, u16 *data)
 
s32 ixgbe_write_ee_hostif_X550 (struct ixgbe_hw *hw, u16 offset, u16 data)
 
s32 ixgbe_read_ee_hostif_buffer_X550 (struct ixgbe_hw *hw, u16 offset, u16 words, u16 *data)
 
s32 ixgbe_read_ee_hostif_X550 (struct ixgbe_hw *hw, u16 offset, u16 *data)
 
s32 ixgbe_write_ee_hostif_data_X550 (struct ixgbe_hw *hw, u16 offset, u16 data)
 
void ixgbe_set_source_address_pruning_X550 (struct ixgbe_hw *hw, bool enable, unsigned int pool)
 
void ixgbe_set_ethertype_anti_spoofing_X550 (struct ixgbe_hw *hw, bool enable, int vf)
 
s32 ixgbe_write_iosf_sb_reg_x550 (struct ixgbe_hw *hw, u32 reg_addr, u32 device_type, u32 data)
 
s32 ixgbe_read_iosf_sb_reg_x550 (struct ixgbe_hw *hw, u32 reg_addr, u32 device_type, u32 *data)
 
s32 ixgbe_set_fw_drv_ver_x550 (struct ixgbe_hw *hw, u8 maj, u8 min, u8 build, u8 ver, u16 len, const char *str)
 
s32 ixgbe_get_phy_token (struct ixgbe_hw *)
 
s32 ixgbe_put_phy_token (struct ixgbe_hw *)
 
s32 ixgbe_write_iosf_sb_reg_x550a (struct ixgbe_hw *hw, u32 reg_addr, u32 device_type, u32 data)
 
s32 ixgbe_read_iosf_sb_reg_x550a (struct ixgbe_hw *hw, u32 reg_addr, u32 device_type, u32 *data)
 
void ixgbe_disable_mdd_X550 (struct ixgbe_hw *hw)
 
void ixgbe_enable_mdd_X550 (struct ixgbe_hw *hw)
 
void ixgbe_mdd_event_X550 (struct ixgbe_hw *hw, u32 *vf_bitmap)
 
void ixgbe_restore_mdd_vf_X550 (struct ixgbe_hw *hw, u32 vf)
 
enum ixgbe_media_type ixgbe_get_media_type_X550em (struct ixgbe_hw *hw)
 
s32 ixgbe_setup_sfp_modules_X550em (struct ixgbe_hw *hw)
 
s32 ixgbe_get_link_capabilities_X550em (struct ixgbe_hw *hw, ixgbe_link_speed *speed, bool *autoneg)
 
void ixgbe_init_mac_link_ops_X550em (struct ixgbe_hw *hw)
 
s32 ixgbe_reset_hw_X550em (struct ixgbe_hw *hw)
 
s32 ixgbe_init_phy_ops_X550em (struct ixgbe_hw *hw)
 
s32 ixgbe_setup_kr_x550em (struct ixgbe_hw *hw)
 
s32 ixgbe_init_ext_t_x550em (struct ixgbe_hw *hw)
 
s32 ixgbe_setup_internal_phy_t_x550em (struct ixgbe_hw *hw)
 
s32 ixgbe_setup_phy_loopback_x550em (struct ixgbe_hw *hw)
 
u64 ixgbe_get_supported_physical_layer_X550em (struct ixgbe_hw *hw)
 
void ixgbe_disable_rx_x550 (struct ixgbe_hw *hw)
 
s32 ixgbe_get_lcd_t_x550em (struct ixgbe_hw *hw, ixgbe_link_speed *lcd_speed)
 
s32 ixgbe_enter_lplu_t_x550em (struct ixgbe_hw *hw)
 
s32 ixgbe_acquire_swfw_sync_X550em (struct ixgbe_hw *hw, u32 mask)
 
void ixgbe_release_swfw_sync_X550em (struct ixgbe_hw *hw, u32 mask)
 
s32 ixgbe_setup_fc_X550em (struct ixgbe_hw *hw)
 
s32 ixgbe_setup_mac_link_sfp_x550em (struct ixgbe_hw *hw, ixgbe_link_speed speed, bool autoneg_wait_to_complete)
 
s32 ixgbe_setup_mac_link_sfp_x550a (struct ixgbe_hw *hw, ixgbe_link_speed speed, bool autoneg_wait_to_complete)
 
s32 ixgbe_read_phy_reg_x550a (struct ixgbe_hw *hw, u32 reg_addr, u32 device_type, u16 *phy_data)
 
s32 ixgbe_write_phy_reg_x550a (struct ixgbe_hw *hw, u32 reg_addr, u32 device_type, u16 phy_data)
 
s32 ixgbe_setup_fc_fiber_x550em_a (struct ixgbe_hw *hw)
 
s32 ixgbe_setup_fc_backplane_x550em_a (struct ixgbe_hw *hw)
 
s32 ixgbe_setup_fc_sgmii_x550em_a (struct ixgbe_hw *hw)
 
void ixgbe_fc_autoneg_fiber_x550em_a (struct ixgbe_hw *hw)
 
void ixgbe_fc_autoneg_backplane_x550em_a (struct ixgbe_hw *hw)
 
void ixgbe_fc_autoneg_sgmii_x550em_a (struct ixgbe_hw *hw)
 
s32 ixgbe_handle_lasi_ext_t_x550em (struct ixgbe_hw *hw)
 
s32 ixgbe_setup_mac_link_t_X550em (struct ixgbe_hw *hw, ixgbe_link_speed speed, bool autoneg_wait_to_complete)
 
s32 ixgbe_check_link_t_X550em (struct ixgbe_hw *hw, ixgbe_link_speed *speed, bool *link_up, bool link_up_wait_to_complete)
 
s32 ixgbe_reset_phy_t_X550em (struct ixgbe_hw *hw)
 
s32 ixgbe_identify_sfp_module_X550em (struct ixgbe_hw *hw)
 
s32 ixgbe_led_on_t_X550em (struct ixgbe_hw *hw, u32 led_idx)
 
s32 ixgbe_led_off_t_X550em (struct ixgbe_hw *hw, u32 led_idx)
 
bool ixgbe_fw_recovery_mode_X550 (struct ixgbe_hw *hw)
 

Function Documentation

◆ ixgbe_acquire_swfw_sync_X550em()

s32 ixgbe_acquire_swfw_sync_X550em ( struct ixgbe_hw hw,
u32  mask 
)

ixgbe_acquire_swfw_sync_X550em - Acquire SWFW semaphore @hw: pointer to hardware structure @mask: Mask to specify which semaphore to acquire

Acquires the SWFW semaphore and sets the I2C MUX

Definition at line 4267 of file ixgbe_x550.c.

References DEBUGFUNC, ixgbe_acquire_swfw_sync_X540(), IXGBE_GSSR_I2C_MASK, ixgbe_set_mux(), and IXGBE_SUCCESS.

Referenced by ixgbe_init_ops_X550EM_x().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ixgbe_calc_checksum_X550()

s32 ixgbe_calc_checksum_X550 ( struct ixgbe_hw hw,
u16 buffer,
u32  buffer_size 
)

ixgbe_calc_checksum_X550 - Calculates and returns the checksum @hw: pointer to hardware structure @buffer: pointer to buffer containing calculated checksum @buffer_size: size of buffer

Returns a negative error code on error, or the 16-bit checksum

Definition at line 3430 of file ixgbe_x550.c.

References DEBUGFUNC, DEBUGOUT, ixgbe_hw::eeprom, ixgbe_eeprom_operations::init_params, ixgbe_checksum_ptr_x550(), IXGBE_EEPROM_CHECKSUM, IXGBE_EEPROM_LAST_WORD, IXGBE_EEPROM_SUM, IXGBE_ERR_PARAM, IXGBE_FW_PTR, IXGBE_IXGBE_PCIE_GENERAL_SIZE, IXGBE_OPTION_ROM_PTR, IXGBE_PCIE_ANALOG_PTR_X550, IXGBE_PCIE_CONFIG0_PTR, IXGBE_PCIE_CONFIG1_PTR, IXGBE_PCIE_CONFIG_SIZE, IXGBE_PCIE_GENERAL_PTR, IXGBE_PHY_PTR, ixgbe_read_ee_hostif_buffer_X550(), ixgbe_eeprom_info::ops, and ixgbe_eeprom_info::word_size.

Referenced by ixgbe_calc_eeprom_checksum_X550().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ixgbe_calc_eeprom_checksum_X550()

s32 ixgbe_calc_eeprom_checksum_X550 ( struct ixgbe_hw hw)

ixgbe_calc_eeprom_checksum_X550 - Calculates and returns the checksum @hw: pointer to hardware structure

Returns a negative error code on error, or the 16-bit checksum

Definition at line 3511 of file ixgbe_x550.c.

References ixgbe_calc_checksum_X550().

Referenced by ixgbe_init_ops_X550(), ixgbe_init_ops_X550EM(), and ixgbe_update_eeprom_checksum_X550().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ixgbe_check_link_t_X550em()

s32 ixgbe_check_link_t_X550em ( struct ixgbe_hw hw,
ixgbe_link_speed speed,
bool link_up,
bool  link_up_wait_to_complete 
)

ixgbe_check_link_t_X550em - Determine link and speed status @hw: pointer to hardware structure @speed: pointer to link speed @link_up: true when link is up @link_up_wait_to_complete: bool used to wait for link up or not

Check that both the MAC and X557 external PHY have link.

Definition at line 4520 of file ixgbe_x550.c.

References ixgbe_mac_operations::get_media_type, ixgbe_check_mac_link_generic(), IXGBE_ERR_CONFIG, IXGBE_MDIO_AUTO_NEG_DEV_TYPE, IXGBE_MDIO_AUTO_NEG_LINK_STATUS, IXGBE_MDIO_AUTO_NEG_STATUS, ixgbe_media_type_copper, IXGBE_SUCCESS, ixgbe_hw::mac, ixgbe_mac_info::ops, ixgbe_phy_info::ops, ixgbe_hw::phy, and ixgbe_phy_operations::read_reg.

Referenced by ixgbe_init_mac_link_ops_X550em().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ixgbe_disable_mdd_X550()

void ixgbe_disable_mdd_X550 ( struct ixgbe_hw hw)

ixgbe_disable_mdd_X550 @hw: pointer to hardware structure

Disable malicious driver detection

Definition at line 1363 of file ixgbe_x550.c.

References DEBUGFUNC, IXGBE_DMATXCTL, IXGBE_DMATXCTL_MBINTEN, IXGBE_DMATXCTL_MDP_EN, IXGBE_RDRXCTL, IXGBE_RDRXCTL_MBINTEN, IXGBE_RDRXCTL_MDP_EN, IXGBE_READ_REG, and IXGBE_WRITE_REG.

Referenced by ixgbe_init_ops_X550().

Here is the caller graph for this function:

◆ ixgbe_disable_rx_x550()

void ixgbe_disable_rx_x550 ( struct ixgbe_hw hw)

◆ ixgbe_dmac_config_tcs_X550()

s32 ixgbe_dmac_config_tcs_X550 ( struct ixgbe_hw hw)

ixgbe_dmac_config_tcs_X550 @hw: pointer to hardware structure

Configure DMA coalescing threshold per TC. The dmac enable bit must be cleared before configuring.

Definition at line 937 of file ixgbe_x550.c.

References DEBUGFUNC, ixgbe_mac_info::dmac_config, IXGBE_DCB_MAX_TRAFFIC_CLASS, IXGBE_DMACRXT_100M, IXGBE_DMACRXT_10G, IXGBE_DMACRXT_1G, IXGBE_DMCTH, IXGBE_LINK_SPEED_100_FULL, IXGBE_LINK_SPEED_10_FULL, IXGBE_LINK_SPEED_1GB_FULL, IXGBE_MAXFRS, IXGBE_MHADD_MFS_SHIFT, IXGBE_READ_REG, IXGBE_RXPBSIZE, IXGBE_RXPBSIZE_MASK, IXGBE_RXPBSIZE_SHIFT, IXGBE_SUCCESS, IXGBE_WRITE_REG, ixgbe_dmac_config::link_speed, and ixgbe_hw::mac.

Referenced by ixgbe_dmac_config_X550(), ixgbe_dmac_update_tcs_X550(), and ixgbe_init_ops_X550().

Here is the caller graph for this function:

◆ ixgbe_dmac_config_X550()

s32 ixgbe_dmac_config_X550 ( struct ixgbe_hw hw)

ixgbe_dmac_config_X550 @hw: pointer to hardware structure

Configure DMA coalescing. If enabling dmac, dmac is activated. When disabling dmac, dmac enable dmac bit is cleared.

Definition at line 889 of file ixgbe_x550.c.

References DEBUGFUNC, ixgbe_mac_info::dmac_config, ixgbe_dmac_config::fcoe_en, ixgbe_dmac_config::fcoe_tc, ixgbe_dmac_config_tcs_X550(), IXGBE_DMACR, IXGBE_DMACR_DMAC_EN, IXGBE_DMACR_EN_MNG_IND, IXGBE_DMACR_HIGH_PRI_TC_MASK, IXGBE_DMACR_HIGH_PRI_TC_SHIFT, IXGBE_READ_REG, IXGBE_SUCCESS, IXGBE_WRITE_REG, ixgbe_hw::mac, and ixgbe_dmac_config::watchdog_timer.

Referenced by ixgbe_init_ops_X550().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ixgbe_dmac_update_tcs_X550()

s32 ixgbe_dmac_update_tcs_X550 ( struct ixgbe_hw hw)

ixgbe_dmac_update_tcs_X550 @hw: pointer to hardware structure

Disables dmac, updates per TC settings, and then enables dmac.

Definition at line 992 of file ixgbe_x550.c.

References DEBUGFUNC, ixgbe_dmac_config_tcs_X550(), IXGBE_DMACR, IXGBE_DMACR_DMAC_EN, IXGBE_READ_REG, IXGBE_SUCCESS, and IXGBE_WRITE_REG.

Referenced by ixgbe_init_ops_X550().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ixgbe_enable_mdd_X550()

void ixgbe_enable_mdd_X550 ( struct ixgbe_hw hw)

ixgbe_enable_mdd_X550 @hw: pointer to hardware structure

Enable malicious driver detection

Definition at line 1386 of file ixgbe_x550.c.

References DEBUGFUNC, IXGBE_DMATXCTL, IXGBE_DMATXCTL_MBINTEN, IXGBE_DMATXCTL_MDP_EN, IXGBE_RDRXCTL, IXGBE_RDRXCTL_MBINTEN, IXGBE_RDRXCTL_MDP_EN, IXGBE_READ_REG, and IXGBE_WRITE_REG.

Referenced by ixgbe_init_ops_X550().

Here is the caller graph for this function:

◆ ixgbe_enter_lplu_t_x550em()

◆ ixgbe_fc_autoneg_backplane_x550em_a()

◆ ixgbe_fc_autoneg_fiber_x550em_a()

void ixgbe_fc_autoneg_fiber_x550em_a ( struct ixgbe_hw hw)

ixgbe_fc_autoneg_fiber_x550em_a - passthrough FC settings @hw: pointer to hardware structure

Definition at line 4091 of file ixgbe_x550.c.

References ixgbe_fc_info::current_mode, ixgbe_hw::fc, ixgbe_fc_info::fc_was_autonegged, and ixgbe_fc_info::requested_mode.

Referenced by ixgbe_init_ops_X550EM_a().

Here is the caller graph for this function:

◆ ixgbe_fc_autoneg_sgmii_x550em_a()

void ixgbe_fc_autoneg_sgmii_x550em_a ( struct ixgbe_hw hw)

◆ ixgbe_fw_recovery_mode_X550()

bool ixgbe_fw_recovery_mode_X550 ( struct ixgbe_hw hw)

ixgbe_fw_recovery_mode_X550 - Check FW NVM recovery mode @hw: pointer t hardware structure

Returns true if in FW NVM recovery mode.

Definition at line 4691 of file ixgbe_x550.c.

References IXGBE_FWSM_BY_MAC, IXGBE_FWSM_FW_NVM_RECOVERY_MODE, and IXGBE_READ_REG.

Referenced by ixgbe_init_ops_X550().

Here is the caller graph for this function:

◆ ixgbe_get_bus_info_X550em()

s32 ixgbe_get_bus_info_X550em ( struct ixgbe_hw hw)

ixgbe_get_bus_info_x550em - Set PCI bus info @hw: pointer to hardware structure

Sets bus link width and speed to unknown because X550em is not a PCI device.

Definition at line 3714 of file ixgbe_x550.c.

References ixgbe_hw::bus, DEBUGFUNC, ixgbe_bus_speed_unknown, ixgbe_bus_width_unknown, IXGBE_SUCCESS, ixgbe_hw::mac, ixgbe_mac_info::ops, ixgbe_mac_operations::set_lan_id, ixgbe_bus_info::speed, and ixgbe_bus_info::width.

Referenced by ixgbe_init_ops_X550EM().

Here is the caller graph for this function:

◆ ixgbe_get_lcd_t_x550em()

s32 ixgbe_get_lcd_t_x550em ( struct ixgbe_hw hw,
ixgbe_link_speed lcd_speed 
)

ixgbe_get_lcd_x550em - Determine lowest common denominator @hw: pointer to hardware structure @lcd_speed: pointer to lowest common link speed

Determine lowest common link speed with link partner.

Definition at line 3887 of file ixgbe_x550.c.

References ixgbe_hw::bus, ixgbe_eeprom_info::ctrl_word_3, ixgbe_hw::eeprom, IXGBE_AUTO_NEG_LP_1000BASE_CAP, IXGBE_AUTO_NEG_LP_STATUS, IXGBE_LINK_SPEED_10GB_FULL, IXGBE_LINK_SPEED_1GB_FULL, IXGBE_LINK_SPEED_UNKNOWN, IXGBE_MDIO_AUTO_NEG_DEV_TYPE, IXGBE_SUCCESS, ixgbe_bus_info::lan_id, NVM_INIT_CTRL_3_D10GMP_PORT0, NVM_INIT_CTRL_3_D10GMP_PORT1, ixgbe_phy_info::ops, ixgbe_hw::phy, and ixgbe_phy_operations::read_reg.

Referenced by ixgbe_enter_lplu_t_x550em().

Here is the caller graph for this function:

◆ ixgbe_get_link_capabilities_X550em()

◆ ixgbe_get_media_type_X550em()

◆ ixgbe_get_phy_token()

◆ ixgbe_get_supported_physical_layer_X550em()

u64 ixgbe_get_supported_physical_layer_X550em ( struct ixgbe_hw hw)

◆ ixgbe_handle_lasi_ext_t_x550em()

s32 ixgbe_handle_lasi_ext_t_x550em ( struct ixgbe_hw hw)

ixgbe_handle_lasi_ext_t_x550em - Handle external Base T PHY interrupt @hw: pointer to hardware structure

Handle external Base T PHY interrupt. If high temperature failure alarm then return error, else if link status change then setup internal/external PHY link

Return IXGBE_ERR_OVERTEMP if interrupt is high temperature failure alarm, else return PHY access status.

Definition at line 4439 of file ixgbe_x550.c.

References ixgbe_get_lasi_ext_t_x550em(), ixgbe_setup_internal_phy(), and IXGBE_SUCCESS.

Referenced by ixgbe_init_phy_ops_X550em().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ixgbe_identify_sfp_module_X550em()

s32 ixgbe_identify_sfp_module_X550em ( struct ixgbe_hw hw)

ixgbe_identify_sfp_module_X550em - Identifies SFP modules @hw: pointer to hardware structure

Searches for and identifies the SFP module and assigns appropriate PHY type.

Definition at line 1591 of file ixgbe_x550.c.

References DEBUGFUNC, ixgbe_identify_module_generic(), IXGBE_SUCCESS, and ixgbe_supported_sfp_modules_X550em().

Referenced by ixgbe_identify_phy_x550em(), and ixgbe_init_phy_ops_X550em().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ixgbe_init_eeprom_params_X550()

s32 ixgbe_init_eeprom_params_X550 ( struct ixgbe_hw hw)

ixgbe_init_eeprom_params_X550 - Initialize EEPROM params @hw: pointer to hardware structure

Initializes the EEPROM parameters ixgbe_eeprom_info within the ixgbe_hw struct in order to set up EEPROM access.

Definition at line 1020 of file ixgbe_x550.c.

References DEBUGFUNC, DEBUGOUT2, ixgbe_hw::eeprom, IXGBE_EEC, IXGBE_EEC_SIZE, IXGBE_EEC_SIZE_SHIFT, ixgbe_eeprom_uninitialized, IXGBE_EEPROM_WORD_SIZE_SHIFT, ixgbe_flash, IXGBE_READ_REG, IXGBE_SUCCESS, ixgbe_eeprom_info::semaphore_delay, ixgbe_eeprom_info::type, and ixgbe_eeprom_info::word_size.

Referenced by ixgbe_init_ops_X550().

Here is the caller graph for this function:

◆ ixgbe_init_ext_t_x550em()

s32 ixgbe_init_ext_t_x550em ( struct ixgbe_hw hw)

ixgbe_init_ext_t_x550em - Start (unstall) the external Base T PHY. @hw: pointer to hardware structure

Definition at line 2568 of file ixgbe_x550.c.

References IXGBE_MDIO_GLOBAL_RES_PR_10, IXGBE_MDIO_PMA_PMD_DEV_TYPE, IXGBE_MDIO_TX_VENDOR_ALARMS_3, IXGBE_MDIO_TX_VENDOR_ALARMS_3_RST_MASK, IXGBE_MDIO_VENDOR_SPECIFIC_1_DEV_TYPE, IXGBE_SUCCESS, ixgbe_phy_info::ops, ixgbe_hw::phy, ixgbe_phy_operations::read_reg, and ixgbe_phy_operations::write_reg.

Referenced by ixgbe_reset_hw_X550em().

Here is the caller graph for this function:

◆ ixgbe_init_mac_link_ops_X550em()

◆ ixgbe_init_phy_ops_X550em()

s32 ixgbe_init_phy_ops_X550em ( struct ixgbe_hw hw)

ixgbe_init_phy_ops_X550em - PHY/SFP specific init @hw: pointer to hardware structure

Initialize any function pointers that were not able to be set during init_shared_code because the PHY/SFP type was not known. Perform the SFP init if necessary.

Definition at line 2282 of file ixgbe_x550.c.

References ixgbe_hw::bus, ixgbe_phy_operations::check_overtemp, DEBUGFUNC, ixgbe_hw::device_id, ixgbe_phy_operations::enter_lplu, ixgbe_mac_operations::get_media_type, ixgbe_phy_operations::handle_lasi, ixgbe_phy_operations::identify, ixgbe_phy_operations::identify_sfp, ixgbe_check_overtemp_fw(), IXGBE_DEV_ID_X550EM_A_10G_T, IXGBE_DEV_ID_X550EM_A_1G_T, IXGBE_DEV_ID_X550EM_A_1G_T_L, IXGBE_DEV_ID_X550EM_A_SFP, IXGBE_DEV_ID_X550EM_X_1G_T, IXGBE_DEV_ID_X550EM_X_SFP, ixgbe_enter_lplu_t_x550em(), IXGBE_ERR_PHY_ADDR_INVALID, IXGBE_ERR_SFP_NOT_SUPPORTED, IXGBE_FUSES0_GROUP, IXGBE_FUSES0_REV_MASK, IXGBE_GSSR_PHY0_SM, IXGBE_GSSR_PHY1_SM, IXGBE_GSSR_SHARED_I2C_SM, ixgbe_handle_lasi_ext_t_x550em(), ixgbe_identify_sfp_module_X550em(), ixgbe_init_mac_link_ops_X550em(), ixgbe_mac_X550EM_x, ixgbe_media_type_fiber, ixgbe_phy_ext_1g_t, ixgbe_phy_fw, ixgbe_phy_sgmii, ixgbe_phy_x550em_ext_t, ixgbe_phy_x550em_kr, ixgbe_phy_x550em_kx4, ixgbe_phy_x550em_xfi, ixgbe_read_mng_if_sel_x550em(), ixgbe_read_phy_reg_x550a(), ixgbe_read_phy_reg_x550em(), IXGBE_READ_REG, ixgbe_reset_phy_fw(), ixgbe_reset_phy_t_X550em(), ixgbe_setup_fw_link(), ixgbe_setup_internal_phy_t_x550em(), ixgbe_setup_kr_x550em(), ixgbe_setup_mux_ctl(), ixgbe_sfp_type_unknown, ixgbe_write_phy_reg_x550a(), ixgbe_write_phy_reg_x550em(), ixgbe_bus_info::lan_id, ixgbe_hw::mac, ixgbe_mac_info::ops, ixgbe_phy_info::ops, ixgbe_hw::phy, ixgbe_phy_info::phy_semaphore_mask, ixgbe_phy_operations::read_reg, ixgbe_phy_operations::read_reg_mdi, ixgbe_phy_operations::reset, ixgbe_mac_operations::set_lan_id, ixgbe_phy_operations::setup_internal_link, ixgbe_phy_operations::setup_link, ixgbe_phy_info::sfp_type, ixgbe_mac_info::type, ixgbe_phy_info::type, ixgbe_phy_operations::write_reg, and ixgbe_phy_operations::write_reg_mdi.

Referenced by ixgbe_init_ops_X550EM().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ixgbe_led_off_t_X550em()

s32 ixgbe_led_off_t_X550em ( struct ixgbe_hw hw,
u32  led_idx 
)

ixgbe_led_off_t_X550em - Turns off the software controllable LEDs. @hw: pointer to hardware structure @led_idx: led number to turn off

Definition at line 4604 of file ixgbe_x550.c.

References DEBUGFUNC, IXGBE_ERR_PARAM, ixgbe_led_off_generic(), IXGBE_MDIO_VENDOR_SPECIFIC_1_DEV_TYPE, ixgbe_read_phy_reg(), ixgbe_write_phy_reg(), IXGBE_X557_LED_PROVISIONING, and IXGBE_X557_MAX_LED_INDEX.

Referenced by ixgbe_init_ops_X550().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ixgbe_led_on_t_X550em()

s32 ixgbe_led_on_t_X550em ( struct ixgbe_hw hw,
u32  led_idx 
)

ixgbe_led_on_t_X550em - Turns on the software controllable LEDs. @hw: pointer to hardware structure @led_idx: led number to turn on

Definition at line 4579 of file ixgbe_x550.c.

References DEBUGFUNC, IXGBE_ERR_PARAM, ixgbe_led_on_generic(), IXGBE_MDIO_VENDOR_SPECIFIC_1_DEV_TYPE, ixgbe_read_phy_reg(), ixgbe_write_phy_reg(), IXGBE_X557_LED_MANUAL_SET_MASK, IXGBE_X557_LED_PROVISIONING, and IXGBE_X557_MAX_LED_INDEX.

Referenced by ixgbe_init_ops_X550().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ixgbe_mdd_event_X550()

void ixgbe_mdd_event_X550 ( struct ixgbe_hw hw,
u32 vf_bitmap 
)

ixgbe_mdd_event_X550 @hw: pointer to hardware structure @vf_bitmap: vf bitmap of malicious vfs

Handle malicious driver detection event.

Definition at line 1450 of file ixgbe_x550.c.

References DEBUGFUNC, IXGBE_MRQC, IXGBE_MRQC_MRQE_MASK, IXGBE_MRQC_VMDQRSS32EN, IXGBE_MRQC_VMDQRT4TCEN, IXGBE_MRQC_VMDQRT8TCEN, IXGBE_READ_REG, IXGBE_WQBR_RX, and IXGBE_WQBR_TX.

Referenced by ixgbe_init_ops_X550().

Here is the caller graph for this function:

◆ ixgbe_put_phy_token()

◆ ixgbe_read_ee_hostif_buffer_X550()

s32 ixgbe_read_ee_hostif_buffer_X550 ( struct ixgbe_hw hw,
u16  offset,
u16  words,
u16 data 
)

◆ ixgbe_read_ee_hostif_X550()

s32 ixgbe_read_ee_hostif_X550 ( struct ixgbe_hw hw,
u16  offset,
u16 data 
)

◆ ixgbe_read_iosf_sb_reg_x550()

s32 ixgbe_read_iosf_sb_reg_x550 ( struct ixgbe_hw hw,
u32  reg_addr,
u32  device_type,
u32 data 
)

ixgbe_read_iosf_sb_reg_x550 - Reads specified register of the IOSF device @hw: pointer to hardware structure @reg_addr: 32 bit PHY register to write @device_type: 3 bit device type @data: Pointer to read data from the register

Definition at line 1184 of file ixgbe_x550.c.

References ERROR_REPORT2, ixgbe_acquire_swfw_semaphore(), IXGBE_ERR_PHY, IXGBE_ERROR_POLLING, IXGBE_GSSR_PHY0_SM, IXGBE_GSSR_PHY1_SM, ixgbe_iosf_wait(), IXGBE_READ_REG, ixgbe_release_swfw_semaphore(), IXGBE_SB_IOSF_CTRL_ADDR_SHIFT, IXGBE_SB_IOSF_CTRL_CMPL_ERR_MASK, IXGBE_SB_IOSF_CTRL_CMPL_ERR_SHIFT, IXGBE_SB_IOSF_CTRL_RESP_STAT_MASK, IXGBE_SB_IOSF_CTRL_TARGET_SELECT_SHIFT, IXGBE_SB_IOSF_INDIRECT_CTRL, IXGBE_SB_IOSF_INDIRECT_DATA, IXGBE_SUCCESS, and IXGBE_WRITE_REG.

Referenced by ixgbe_init_ops_X550EM_a(), and ixgbe_init_ops_X550EM_x().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ixgbe_read_iosf_sb_reg_x550a()

s32 ixgbe_read_iosf_sb_reg_x550a ( struct ixgbe_hw hw,
u32  reg_addr,
u32  device_type,
u32 data 
)

ixgbe_read_iosf_sb_reg_x550a - Reads specified register of the IOSF device @hw: pointer to hardware structure @reg_addr: 32 bit PHY register to write @device_type: 3 bit device type @data: Pointer to read data from the register

Definition at line 1329 of file ixgbe_x550.c.

References ixgbe_hw::bus, FW_DEFAULT_CHECKSUM, FW_INT_PHY_REQ_CMD, FW_INT_PHY_REQ_LEN, FW_INT_PHY_REQ_READ, IXGBE_BE32_TO_CPU, IXGBE_CPU_TO_BE16, IXGBE_HI_COMMAND_TIMEOUT, ixgbe_host_interface_command(), ixgbe_bus_info::lan_id, and UNREFERENCED_1PARAMETER.

Referenced by ixgbe_init_ops_X550EM_a().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ixgbe_read_phy_reg_x550a()

s32 ixgbe_read_phy_reg_x550a ( struct ixgbe_hw hw,
u32  reg_addr,
u32  device_type,
u16 phy_data 
)

ixgbe_read_phy_reg_x550a - Reads specified PHY register @hw: pointer to hardware structure @reg_addr: 32 bit address of PHY register to read @device_type: 5 bit device type @phy_data: Pointer to read data from PHY register

Reads a value from a specified PHY register using the SWFW lock and PHY Token. The PHY Token is needed since the MDIO is shared between to MAC instances.

Definition at line 4381 of file ixgbe_x550.c.

References ixgbe_mac_operations::acquire_swfw_sync, DEBUGFUNC, IXGBE_ERR_SWFW_SYNC, IXGBE_GSSR_TOKEN_SM, ixgbe_hw::mac, ixgbe_mac_info::ops, ixgbe_phy_info::ops, ixgbe_hw::phy, ixgbe_phy_info::phy_semaphore_mask, ixgbe_phy_operations::read_reg_mdi, and ixgbe_mac_operations::release_swfw_sync.

Referenced by ixgbe_init_phy_ops_X550em().

Here is the caller graph for this function:

◆ ixgbe_release_swfw_sync_X550em()

void ixgbe_release_swfw_sync_X550em ( struct ixgbe_hw hw,
u32  mask 
)

ixgbe_release_swfw_sync_X550em - Release SWFW semaphore @hw: pointer to hardware structure @mask: Mask to specify which semaphore to release

Releases the SWFW semaphore and sets the I2C MUX

Definition at line 4290 of file ixgbe_x550.c.

References DEBUGFUNC, IXGBE_GSSR_I2C_MASK, ixgbe_release_swfw_sync_X540(), and ixgbe_set_mux().

Referenced by ixgbe_init_ops_X550EM_x().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ixgbe_reset_hw_X550em()

s32 ixgbe_reset_hw_X550em ( struct ixgbe_hw hw)

ixgbe_reset_hw_X550em - Perform hardware reset @hw: pointer to hardware structure

Resets the hardware by resetting the transmit and receive units, masks and clears all interrupts, perform a PHY reset, and perform a link (MAC) reset.

Definition at line 2435 of file ixgbe_x550.c.

References ixgbe_mac_operations::acquire_swfw_sync, ixgbe_mac_operations::check_link, DEBUGFUNC, DEBUGOUT, DEBUGOUT1, ixgbe_hw::device_id, ERROR_REPORT2, ixgbe_mac_info::flags, ixgbe_hw::force_full_reset, ixgbe_mac_operations::get_mac_addr, ixgbe_phy_operations::init, ixgbe_mac_operations::init_rx_addrs, ixgbe_clear_tx_pending(), IXGBE_CTRL, IXGBE_CTRL_LNK_RST, IXGBE_CTRL_RST, IXGBE_CTRL_RST_MASK, IXGBE_DEV_ID_X550EM_X_SFP, IXGBE_ERR_OVERTEMP, IXGBE_ERR_PHY_ADDR_INVALID, IXGBE_ERR_RESET_FAILED, IXGBE_ERR_SFP_NOT_SUPPORTED, IXGBE_ERR_SWFW_SYNC, IXGBE_ERROR_CAUTION, IXGBE_FLAGS_DOUBLE_RESET_REQUIRED, ixgbe_init_ext_t_x550em(), ixgbe_phy_x550em_ext_t, IXGBE_READ_REG, ixgbe_set_mdio_speed(), ixgbe_setup_mux_ctl(), IXGBE_SUCCESS, IXGBE_WRITE_FLUSH, IXGBE_WRITE_REG, ixgbe_hw::mac, msec_delay, ixgbe_mac_info::num_rar_entries, ixgbe_mac_info::ops, ixgbe_phy_info::ops, ixgbe_mac_info::perm_addr, ixgbe_hw::phy, ixgbe_phy_info::phy_semaphore_mask, ixgbe_mac_operations::release_swfw_sync, ixgbe_phy_operations::reset, ixgbe_phy_info::reset_disable, ixgbe_mac_operations::setup_sfp, ixgbe_phy_info::sfp_setup_needed, ixgbe_mac_operations::stop_adapter, ixgbe_phy_info::type, and usec_delay.

Referenced by ixgbe_init_ops_X550EM().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ixgbe_reset_phy_t_X550em()

s32 ixgbe_reset_phy_t_X550em ( struct ixgbe_hw hw)

ixgbe_reset_phy_t_X550em - Performs X557 PHY reset and enables LASI @hw: pointer to hardware structure

Definition at line 4561 of file ixgbe_x550.c.

References ixgbe_enable_lasi_ext_t_x550em(), ixgbe_reset_phy_generic(), and IXGBE_SUCCESS.

Referenced by ixgbe_init_phy_ops_X550em().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ixgbe_restore_mdd_vf_X550()

void ixgbe_restore_mdd_vf_X550 ( struct ixgbe_hw hw,
u32  vf 
)

ixgbe_restore_mdd_vf_X550 @hw: pointer to hardware structure @vf: vf index

Restore VF that was disabled during malicious driver detection event

Definition at line 1410 of file ixgbe_x550.c.

References DEBUGFUNC, IXGBE_MRQC, IXGBE_MRQC_MRQE_MASK, IXGBE_MRQC_VMDQRSS32EN, IXGBE_MRQC_VMDQRT4TCEN, IXGBE_MRQC_VMDQRT8TCEN, IXGBE_READ_REG, IXGBE_WQBR_RX, IXGBE_WQBR_TX, and IXGBE_WRITE_REG.

Referenced by ixgbe_init_ops_X550().

Here is the caller graph for this function:

◆ ixgbe_set_ethertype_anti_spoofing_X550()

void ixgbe_set_ethertype_anti_spoofing_X550 ( struct ixgbe_hw hw,
bool  enable,
int  vf 
)

ixgbe_set_ethertype_anti_spoofing_X550 - Configure Ethertype anti-spoofing @hw: pointer to hardware structure @enable: enable or disable switch for Ethertype anti-spoofing @vf: Virtual Function pool - VF Pool to set for Ethertype anti-spoofing

Definition at line 1079 of file ixgbe_x550.c.

References DEBUGFUNC, IXGBE_PFVFSPOOF, IXGBE_READ_REG, IXGBE_SPOOF_ETHERTYPEAS_SHIFT, and IXGBE_WRITE_REG.

Referenced by ixgbe_init_ops_X550().

Here is the caller graph for this function:

◆ ixgbe_set_fw_drv_ver_x550()

s32 ixgbe_set_fw_drv_ver_x550 ( struct ixgbe_hw hw,
u8  maj,
u8  min,
u8  build,
u8  sub,
u16  len,
const char *  driver_ver 
)

ixgbe_set_fw_drv_ver_x550 - Sends driver version to firmware @hw: pointer to the HW structure @maj: driver version major number @min: driver version minor number @build: driver version build number @sub: driver version sub build number @len: length of driver_ver string @driver_ver: driver string

Sends driver version number to firmware through the manageability block. On success return IXGBE_SUCCESS else returns IXGBE_ERR_SWFW_SYNC when encountering an error acquiring semaphore or IXGBE_ERR_HOST_INTERFACE_COMMAND when command fails.

Definition at line 4639 of file ixgbe_x550.c.

References ixgbe_hic_hdr::buf_len, ixgbe_hw::bus, ixgbe_hic_hdr::checksum, ixgbe_hic_hdr::cmd, ixgbe_hic_hdr::cmd_or_resp, ixgbe_hic_hdr::cmd_resv, DEBUGFUNC, ixgbe_hic_drv_info2::driver_string, ixgbe_bus_info::func, FW_CEM_CMD_DRIVER_INFO, FW_CEM_CMD_DRIVER_INFO_LEN, FW_CEM_CMD_RESERVED, FW_CEM_HDR_LEN, FW_CEM_MAX_RETRIES, FW_CEM_RESP_STATUS_SUCCESS, ixgbe_hic_drv_info2::hdr, ixgbe_calculate_checksum(), IXGBE_ERR_HOST_INTERFACE_COMMAND, IXGBE_ERR_INVALID_ARGUMENT, IXGBE_HI_COMMAND_TIMEOUT, ixgbe_host_interface_command(), IXGBE_SUCCESS, ixgbe_hic_drv_info2::port_num, ixgbe_hic_drv_info2::ver_build, ixgbe_hic_drv_info2::ver_maj, ixgbe_hic_drv_info2::ver_min, and ixgbe_hic_drv_info2::ver_sub.

Referenced by ixgbe_init_ops_X550().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ixgbe_set_source_address_pruning_X550()

void ixgbe_set_source_address_pruning_X550 ( struct ixgbe_hw hw,
bool  enable,
unsigned int  pool 
)

ixgbe_set_source_address_pruning_X550 - Enable/Disbale source address pruning @hw: pointer to hardware structure @enable: enable or disable source address pruning @pool: Rx pool to set source address pruning for

Definition at line 1051 of file ixgbe_x550.c.

References IXGBE_PFFLPH, IXGBE_PFFLPL, IXGBE_READ_REG, and IXGBE_WRITE_REG.

Referenced by ixgbe_init_ops_X550().

Here is the caller graph for this function:

◆ ixgbe_setup_fc_backplane_x550em_a()

◆ ixgbe_setup_fc_fiber_x550em_a()

s32 ixgbe_setup_fc_fiber_x550em_a ( struct ixgbe_hw hw)

◆ ixgbe_setup_fc_sgmii_x550em_a()

s32 ixgbe_setup_fc_sgmii_x550em_a ( struct ixgbe_hw hw)

◆ ixgbe_setup_fc_X550em()

◆ ixgbe_setup_internal_phy_t_x550em()

s32 ixgbe_setup_internal_phy_t_x550em ( struct ixgbe_hw hw)

ixgbe_setup_internal_phy_t_x550em - Configure KR PHY to X557 link @hw: point to hardware structure

Configures the link between the integrated KR PHY and the external X557 PHY The driver will call this function when it gets a link status change interrupt from the X557 PHY. This function configures the link speed between the PHYs to match the link speed of the BASE-T link.

A return of a non-zero value indicates an error, and the base driver should not report link up.

Definition at line 2995 of file ixgbe_x550.c.

References ixgbe_mac_operations::get_media_type, IXGBE_ERR_CONFIG, IXGBE_ERR_INVALID_LINK_SETTINGS, ixgbe_ext_phy_t_x550em_get_link(), IXGBE_LINK_SPEED_10GB_FULL, IXGBE_LINK_SPEED_1GB_FULL, ixgbe_mac_X550EM_x, IXGBE_MDIO_AUTO_NEG_DEV_TYPE, IXGBE_MDIO_AUTO_NEG_VENDOR_STAT, IXGBE_MDIO_AUTO_NEG_VENDOR_STATUS_10GB_FULL, IXGBE_MDIO_AUTO_NEG_VENDOR_STATUS_1GB_FULL, IXGBE_MDIO_AUTO_NEG_VENDOR_STATUS_MASK, ixgbe_media_type_copper, IXGBE_NW_MNG_IF_SEL_INT_PHY_MODE, ixgbe_setup_ixfi_x550em(), ixgbe_setup_kr_speed_x550em(), IXGBE_SUCCESS, ixgbe_hw::mac, ixgbe_phy_info::nw_mng_if_sel, ixgbe_mac_info::ops, ixgbe_phy_info::ops, ixgbe_hw::phy, ixgbe_phy_operations::read_reg, and ixgbe_mac_info::type.

Referenced by ixgbe_init_phy_ops_X550em().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ixgbe_setup_kr_x550em()

s32 ixgbe_setup_kr_x550em ( struct ixgbe_hw hw)

ixgbe_setup_kr_x550em - Configure the KR PHY. @hw: pointer to hardware structure

Definition at line 2611 of file ixgbe_x550.c.

References ixgbe_phy_info::autoneg_advertised, ixgbe_check_reset_blocked(), IXGBE_LINK_SPEED_2_5GB_FULL, ixgbe_setup_kr_speed_x550em(), IXGBE_SUCCESS, and ixgbe_hw::phy.

Referenced by ixgbe_init_phy_ops_X550em().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ixgbe_setup_mac_link_sfp_x550a()

◆ ixgbe_setup_mac_link_sfp_x550em()

s32 ixgbe_setup_mac_link_sfp_x550em ( struct ixgbe_hw hw,
ixgbe_link_speed  speed,
bool  autoneg_wait_to_complete 
)

ixgbe_setup_mac_link_sfp_x550em - Setup internal/external the PHY for SFP @hw: pointer to hardware structure @speed: new link speed @autoneg_wait_to_complete: unused

Configure the external PHY and the integrated KR PHY for SFP support.

Definition at line 2631 of file ixgbe_x550.c.

References ixgbe_link_info::addr, ixgbe_hw::bus, IXGBE_CS4227_EDC_MODE_CX1, IXGBE_CS4227_EDC_MODE_SR, IXGBE_CS4227_LINE_SPARE24_LSB, IXGBE_ERR_SFP_NOT_PRESENT, ixgbe_setup_kr_speed_x550em(), IXGBE_SUCCESS, ixgbe_supported_sfp_modules_X550em(), ixgbe_bus_info::lan_id, ixgbe_hw::link, ixgbe_link_info::ops, UNREFERENCED_1PARAMETER, and ixgbe_link_operations::write_link.

Referenced by ixgbe_init_mac_link_ops_X550em().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ixgbe_setup_mac_link_t_X550em()

s32 ixgbe_setup_mac_link_t_X550em ( struct ixgbe_hw hw,
ixgbe_link_speed  speed,
bool  autoneg_wait_to_complete 
)

ixgbe_setup_mac_link_t_X550em - Sets the auto advertised link speed @hw: pointer to hardware structure @speed: new link speed @autoneg_wait_to_complete: true when waiting for completion is needed

Setup internal/external PHY link speed based on link speed, then set external PHY auto advertised link speed.

Returns error status for any failure

Definition at line 4466 of file ixgbe_x550.c.

References DEBUGFUNC, ixgbe_check_link(), IXGBE_LINK_SPEED_10GB_FULL, IXGBE_LINK_SPEED_1GB_FULL, ixgbe_mac_X550EM_x, IXGBE_NW_MNG_IF_SEL_INT_PHY_MODE, ixgbe_setup_ixfi_x550em(), IXGBE_SUCCESS, ixgbe_hw::mac, msec_delay, ixgbe_phy_info::nw_mng_if_sel, ixgbe_phy_info::ops, ixgbe_hw::phy, ixgbe_phy_operations::setup_link_speed, and ixgbe_mac_info::type.

Referenced by ixgbe_init_mac_link_ops_X550em().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ixgbe_setup_phy_loopback_x550em()

◆ ixgbe_setup_sfp_modules_X550em()

s32 ixgbe_setup_sfp_modules_X550em ( struct ixgbe_hw hw)

ixgbe_setup_sfp_modules_X550em - Setup MAC link ops @hw: pointer to hardware structure

Definition at line 1613 of file ixgbe_x550.c.

References DEBUGFUNC, ixgbe_init_mac_link_ops_X550em(), IXGBE_SUCCESS, ixgbe_supported_sfp_modules_X550em(), ixgbe_phy_info::ops, ixgbe_hw::phy, and ixgbe_phy_operations::reset.

Referenced by ixgbe_init_ops_X550EM().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ixgbe_update_eeprom_checksum_X550()

s32 ixgbe_update_eeprom_checksum_X550 ( struct ixgbe_hw hw)

ixgbe_update_eeprom_checksum_X550 - Updates the EEPROM checksum and flash @hw: pointer to hardware structure

After writing EEPROM to shadow RAM using EEWR register, software calculates checksum and updates the EEPROM and instructs the hardware to update the flash.

Definition at line 3577 of file ixgbe_x550.c.

References DEBUGFUNC, DEBUGOUT, ixgbe_calc_eeprom_checksum_X550(), IXGBE_EEPROM_CHECKSUM, ixgbe_read_ee_hostif_X550(), ixgbe_update_flash_X550(), and ixgbe_write_ee_hostif_X550().

Referenced by ixgbe_init_ops_X550(), and ixgbe_init_ops_X550EM().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ixgbe_update_flash_X550()

s32 ixgbe_update_flash_X550 ( struct ixgbe_hw hw)

ixgbe_update_flash_X550 - Instruct HW to copy EEPROM to Flash device @hw: pointer to hardware structure

Issue a shadow RAM dump to FW to copy EEPROM from shadow RAM to the flash.

Definition at line 3616 of file ixgbe_x550.c.

References ixgbe_hic_hdr2_req::buf_lenh, ixgbe_hic_hdr2_req::buf_lenl, ixgbe_hic_hdr2_req::checksum, ixgbe_hic_hdr2_req::cmd, DEBUGFUNC, FW_DEFAULT_CHECKSUM, FW_SHADOW_RAM_DUMP_CMD, FW_SHADOW_RAM_DUMP_LEN, IXGBE_HI_COMMAND_TIMEOUT, ixgbe_host_interface_command(), IXGBE_SUCCESS, and ixgbe_hic_hdr2::req.

Referenced by ixgbe_update_eeprom_checksum_X550().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ixgbe_validate_eeprom_checksum_X550()

s32 ixgbe_validate_eeprom_checksum_X550 ( struct ixgbe_hw hw,
u16 checksum_val 
)

ixgbe_validate_eeprom_checksum_X550 - Validate EEPROM checksum @hw: pointer to hardware structure @checksum_val: calculated checksum

Performs checksum calculation and validates the EEPROM checksum. If the caller does not need checksum_val, the value can be NULL.

Definition at line 3524 of file ixgbe_x550.c.

References ixgbe_eeprom_operations::calc_checksum, DEBUGFUNC, DEBUGOUT, ixgbe_hw::eeprom, ERROR_REPORT1, IXGBE_EEPROM_CHECKSUM, IXGBE_ERR_EEPROM_CHECKSUM, IXGBE_ERROR_INVALID_STATE, ixgbe_read_ee_hostif_X550(), ixgbe_eeprom_info::ops, and ixgbe_eeprom_operations::read.

Referenced by ixgbe_init_ops_X550(), and ixgbe_init_ops_X550EM().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ixgbe_write_ee_hostif_buffer_X550()

s32 ixgbe_write_ee_hostif_buffer_X550 ( struct ixgbe_hw hw,
u16  offset,
u16  words,
u16 data 
)

ixgbe_write_ee_hostif_buffer_X550 - Write EEPROM word(s) using hostif @hw: pointer to hardware structure @offset: offset of word in the EEPROM to write @words: number of words @data: word(s) write to the EEPROM

Write a 16 bit word(s) to the EEPROM using the hostif.

Definition at line 3319 of file ixgbe_x550.c.

References ixgbe_mac_operations::acquire_swfw_sync, ixgbe_hic_write_shadow_ram::data, DEBUGFUNC, DEBUGOUT, IXGBE_GSSR_EEP_SM, IXGBE_SUCCESS, ixgbe_write_ee_hostif_data_X550(), ixgbe_hw::mac, ixgbe_mac_info::ops, and ixgbe_mac_operations::release_swfw_sync.

Referenced by ixgbe_init_ops_X550(), and ixgbe_init_ops_X550EM().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ixgbe_write_ee_hostif_data_X550()

s32 ixgbe_write_ee_hostif_data_X550 ( struct ixgbe_hw hw,
u16  offset,
u16  data 
)

ixgbe_write_ee_hostif_X550 - Write EEPROM word using hostif @hw: pointer to hardware structure @offset: offset of word in the EEPROM to write @data: word write to the EEPROM

Write a 16 bit word to the EEPROM using the hostif.

Definition at line 3247 of file ixgbe_x550.c.

References ixgbe_hic_write_shadow_ram::address, ixgbe_hic_hdr2_req::buf_lenh, ixgbe_hic_hdr2_rsp::buf_lenh_status, ixgbe_hic_hdr2_req::buf_lenl, ixgbe_hic_hdr2_req::checksum, ixgbe_hic_hdr2_req::cmd, ixgbe_hic_write_shadow_ram::data, DEBUGFUNC, DEBUGOUT2, FW_CEM_RESP_STATUS_SUCCESS, FW_DEFAULT_CHECKSUM, FW_WRITE_SHADOW_RAM_CMD, FW_WRITE_SHADOW_RAM_LEN, ixgbe_hic_write_shadow_ram::hdr, IXGBE_CPU_TO_BE16, IXGBE_CPU_TO_BE32, IXGBE_ERR_HOST_INTERFACE_COMMAND, IXGBE_HI_COMMAND_TIMEOUT, ixgbe_host_interface_command(), IXGBE_SUCCESS, ixgbe_hic_write_shadow_ram::length, ixgbe_hic_hdr2::req, and ixgbe_hic_hdr2::rsp.

Referenced by ixgbe_write_ee_hostif_buffer_X550(), and ixgbe_write_ee_hostif_X550().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ixgbe_write_ee_hostif_X550()

s32 ixgbe_write_ee_hostif_X550 ( struct ixgbe_hw hw,
u16  offset,
u16  data 
)

ixgbe_write_ee_hostif_X550 - Write EEPROM word using hostif @hw: pointer to hardware structure @offset: offset of word in the EEPROM to write @data: word write to the EEPROM

Write a 16 bit word to the EEPROM using the hostif.

Definition at line 3291 of file ixgbe_x550.c.

References ixgbe_mac_operations::acquire_swfw_sync, ixgbe_hic_write_shadow_ram::data, DEBUGFUNC, DEBUGOUT, IXGBE_ERR_SWFW_SYNC, IXGBE_GSSR_EEP_SM, IXGBE_SUCCESS, ixgbe_write_ee_hostif_data_X550(), ixgbe_hw::mac, ixgbe_mac_info::ops, and ixgbe_mac_operations::release_swfw_sync.

Referenced by ixgbe_init_ops_X550(), ixgbe_init_ops_X550EM(), and ixgbe_update_eeprom_checksum_X550().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ixgbe_write_iosf_sb_reg_x550()

s32 ixgbe_write_iosf_sb_reg_x550 ( struct ixgbe_hw hw,
u32  reg_addr,
u32  device_type,
u32  data 
)

ixgbe_write_iosf_sb_reg_x550 - Writes a value to specified register of the IOSF device @hw: pointer to hardware structure @reg_addr: 32 bit PHY register to write @device_type: 3 bit device type @data: Data to write to the register

Definition at line 1138 of file ixgbe_x550.c.

References ERROR_REPORT2, ixgbe_acquire_swfw_semaphore(), IXGBE_ERR_PHY, IXGBE_ERROR_POLLING, IXGBE_GSSR_PHY0_SM, IXGBE_GSSR_PHY1_SM, ixgbe_iosf_wait(), ixgbe_release_swfw_semaphore(), IXGBE_SB_IOSF_CTRL_ADDR_SHIFT, IXGBE_SB_IOSF_CTRL_CMPL_ERR_MASK, IXGBE_SB_IOSF_CTRL_CMPL_ERR_SHIFT, IXGBE_SB_IOSF_CTRL_RESP_STAT_MASK, IXGBE_SB_IOSF_CTRL_TARGET_SELECT_SHIFT, IXGBE_SB_IOSF_INDIRECT_CTRL, IXGBE_SB_IOSF_INDIRECT_DATA, IXGBE_SUCCESS, and IXGBE_WRITE_REG.

Referenced by ixgbe_init_ops_X550EM_a(), and ixgbe_init_ops_X550EM_x().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ixgbe_write_iosf_sb_reg_x550a()

s32 ixgbe_write_iosf_sb_reg_x550a ( struct ixgbe_hw hw,
u32  reg_addr,
u32  device_type,
u32  data 
)

ixgbe_write_iosf_sb_reg_x550a - Writes a value to specified register of the IOSF device @hw: pointer to hardware structure @reg_addr: 32 bit PHY register to write @device_type: 3 bit device type @data: Data to write to the register

Definition at line 1299 of file ixgbe_x550.c.

References ixgbe_hic_internal_phy_req::address, ixgbe_hic_hdr::buf_len, ixgbe_hw::bus, ixgbe_hic_hdr::checksum, ixgbe_hic_hdr::cmd, ixgbe_hic_internal_phy_req::command_type, FW_DEFAULT_CHECKSUM, FW_INT_PHY_REQ_CMD, FW_INT_PHY_REQ_LEN, FW_INT_PHY_REQ_WRITE, ixgbe_hic_internal_phy_req::hdr, IXGBE_CPU_TO_BE16, IXGBE_CPU_TO_BE32, IXGBE_HI_COMMAND_TIMEOUT, ixgbe_host_interface_command(), ixgbe_bus_info::lan_id, ixgbe_hic_internal_phy_req::port_number, UNREFERENCED_1PARAMETER, and ixgbe_hic_internal_phy_req::write_data.

Referenced by ixgbe_init_ops_X550EM_a().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ixgbe_write_phy_reg_x550a()

s32 ixgbe_write_phy_reg_x550a ( struct ixgbe_hw hw,
u32  reg_addr,
u32  device_type,
u16  phy_data 
)

ixgbe_write_phy_reg_x550a - Writes specified PHY register @hw: pointer to hardware structure @reg_addr: 32 bit PHY register to write @device_type: 5 bit device type @phy_data: Data to write to the PHY register

Writes a value to specified PHY register using the SWFW lock and PHY Token. The PHY Token is needed since the MDIO is shared between to MAC instances.

Definition at line 4409 of file ixgbe_x550.c.

References ixgbe_mac_operations::acquire_swfw_sync, DEBUGFUNC, IXGBE_ERR_SWFW_SYNC, IXGBE_GSSR_TOKEN_SM, IXGBE_SUCCESS, ixgbe_hw::mac, ixgbe_mac_info::ops, ixgbe_phy_info::ops, ixgbe_hw::phy, ixgbe_phy_info::phy_semaphore_mask, ixgbe_mac_operations::release_swfw_sync, and ixgbe_phy_operations::write_reg_mdi.

Referenced by ixgbe_init_phy_ops_X550em().

Here is the caller graph for this function: