FreeBSD kernel IXGBE device code
|
#include "ixgbe_x550.h"
#include "ixgbe_x540.h"
#include "ixgbe_type.h"
#include "ixgbe_api.h"
#include "ixgbe_common.h"
#include "ixgbe_phy.h"
Go to the source code of this file.
Variables | |
struct { | |
u16 fw_speed | |
ixgbe_link_speed phy_speed | |
} | ixgbe_fw_map [] |
ixgbe_acquire_swfw_sync_X550a - Acquire SWFW semaphore @hw: pointer to hardware structure @mask: Mask to specify which semaphore to acquire
Acquires the SWFW semaphore and get the shared phy token as needed
Definition at line 4307 of file ixgbe_x550.c.
References DEBUGFUNC, DEBUGOUT1, FW_PHY_TOKEN_RETRIES, ixgbe_phy_info::id, ixgbe_acquire_swfw_sync_X540(), IXGBE_ERR_TOKEN_RETRY, ixgbe_get_phy_token(), IXGBE_GSSR_TOKEN_SM, ixgbe_release_swfw_sync_X540(), IXGBE_SUCCESS, and ixgbe_hw::phy.
Referenced by ixgbe_init_ops_X550EM_a().
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().
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().
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().
|
static |
ixgbe_check_cs4227 - Check CS4227 and reset as needed @hw: pointer to hardware structure
Definition at line 250 of file ixgbe_x550.c.
References ixgbe_mac_operations::acquire_swfw_sync, ixgbe_hw::eeprom, ERROR_REPORT2, IXGBE_CS4227_CHECK_DELAY, IXGBE_CS4227_RESET_COMPLETE, IXGBE_CS4227_RESET_PENDING, IXGBE_CS4227_RETRIES, IXGBE_CS4227_SCRATCH, IXGBE_ERROR_CAUTION, IXGBE_ERROR_INVALID_STATE, ixgbe_read_cs4227(), ixgbe_reset_cs4227(), IXGBE_SUCCESS, ixgbe_write_cs4227(), ixgbe_hw::mac, msec_delay, ixgbe_mac_info::ops, ixgbe_hw::phy, ixgbe_phy_info::phy_semaphore_mask, ixgbe_mac_operations::release_swfw_sync, and ixgbe_eeprom_info::semaphore_delay.
Referenced by ixgbe_identify_phy_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().
ixgbe_check_overtemp_fw - Check firmware-controlled PHYs for overtemp @hw: pointer to hardware structure
Definition at line 2231 of file ixgbe_x550.c.
References FW_PHY_ACT_DATA_COUNT, FW_PHY_ACT_GET_LINK_INFO, FW_PHY_ACT_GET_LINK_INFO_TEMP, IXGBE_ERR_OVERTEMP, ixgbe_fw_phy_activity(), ixgbe_shutdown_fw_phy(), and IXGBE_SUCCESS.
Referenced by ixgbe_init_phy_ops_X550em().
|
static |
ixgbe_checksum_ptr_x550 - Checksum one pointer region @hw: pointer to hardware structure @ptr: pointer offset in eeprom @size: size of section pointed by ptr, if 0 first word will be used as size @csum: address of checksum to update @buffer: pointer to buffer containing calculated checksum @buffer_size: size of buffer
Returns error status for any failure
Definition at line 3361 of file ixgbe_x550.c.
References DEBUGOUT, ixgbe_hw::eeprom, IXGBE_ERR_PARAM, ixgbe_read_ee_hostif_buffer_X550(), IXGBE_SUCCESS, ixgbe_hic_write_shadow_ram::length, and ixgbe_eeprom_info::word_size.
Referenced by ixgbe_calc_checksum_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().
void ixgbe_disable_rx_x550 | ( | struct ixgbe_hw * | hw | ) |
ixgbe_disable_rx_x550 - Disable RX unit @hw: pointer to hardware structure
Enables the Rx DMA unit for x550
Definition at line 3733 of file ixgbe_x550.c.
References ixgbe_hic_hdr::buf_len, ixgbe_hw::bus, ixgbe_hic_hdr::checksum, ixgbe_hic_hdr::cmd, DEBUGFUNC, FW_DEFAULT_CHECKSUM, FW_DISABLE_RXEN_CMD, FW_DISABLE_RXEN_LEN, ixgbe_hic_disable_rxen::hdr, IXGBE_HI_COMMAND_TIMEOUT, ixgbe_host_interface_command(), IXGBE_PFDTXGSWC, IXGBE_PFDTXGSWC_VT_LBEN, IXGBE_READ_REG, IXGBE_RXCTRL, IXGBE_RXCTRL_RXEN, IXGBE_WRITE_REG, ixgbe_bus_info::lan_id, ixgbe_hw::mac, ixgbe_hic_disable_rxen::port_number, and ixgbe_mac_info::set_lben.
Referenced by ixgbe_init_ops_X550().
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().
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().
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().
ixgbe_enable_lasi_ext_t_x550em - Enable external Base T PHY interrupts @hw: pointer to hardware structure
Enable link status change and temperature failure alarm for the external Base T PHY
Returns PHY access status
Definition at line 2055 of file ixgbe_x550.c.
References ixgbe_get_lasi_ext_t_x550em(), ixgbe_mac_X550EM_a, IXGBE_MDIO_AUTO_NEG_DEV_TYPE, IXGBE_MDIO_GLOBAL_ALARM_1_INT, IXGBE_MDIO_GLOBAL_AN_VEN_ALM_INT_EN, IXGBE_MDIO_GLOBAL_INT_CHIP_STD_MASK, IXGBE_MDIO_GLOBAL_INT_CHIP_VEN_MASK, IXGBE_MDIO_GLOBAL_INT_DEV_FAULT_EN, IXGBE_MDIO_GLOBAL_INT_HI_TEMP_EN, IXGBE_MDIO_GLOBAL_INT_MASK, IXGBE_MDIO_GLOBAL_VEN_ALM_INT_EN, IXGBE_MDIO_PMA_TX_VEN_LASI_INT_EN, IXGBE_MDIO_PMA_TX_VEN_LASI_INT_MASK, IXGBE_MDIO_VENDOR_SPECIFIC_1_DEV_TYPE, IXGBE_SUCCESS, ixgbe_hw::mac, ixgbe_phy_info::ops, ixgbe_hw::phy, ixgbe_phy_operations::read_reg, ixgbe_mac_info::type, and ixgbe_phy_operations::write_reg.
Referenced by ixgbe_reset_phy_t_X550em().
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().
ixgbe_enter_lplu_x550em - Transition to low power states @hw: pointer to hardware structure
Configures Low Power Link Up on transition to low power states (from D0 to non-D0). Link is required to enter LPLU so avoid resetting the X557 PHY immediately prior to entering LPLU.
Definition at line 3780 of file ixgbe_x550.c.
References ixgbe_phy_info::autoneg_advertised, ixgbe_eeprom_info::ctrl_word_3, ixgbe_hw::eeprom, ixgbe_check_reset_blocked(), ixgbe_ext_phy_t_x550em_get_link(), IXGBE_FUSES0_GROUP, IXGBE_FUSES0_REV_MASK, ixgbe_get_lcd_t_x550em(), IXGBE_LINK_SPEED_10GB_FULL, IXGBE_LINK_SPEED_1GB_FULL, IXGBE_LINK_SPEED_UNKNOWN, ixgbe_mac_X550EM_x, IXGBE_MDIO_AUTO_NEG_DEV_TYPE, IXGBE_MDIO_AUTO_NEG_VEN_STAT_SPEED_MASK, IXGBE_MDIO_AUTO_NEG_VENDOR_STAT, IXGBE_MDIO_AUTO_NEG_VENDOR_STATUS_10GB, IXGBE_MDIO_AUTO_NEG_VENDOR_STATUS_1GB, IXGBE_MDIO_AUTO_NEG_VENDOR_TX_ALARM, IXGBE_MII_10GBASE_T_AUTONEG_CTRL_REG, IXGBE_MII_AUTONEG_VENDOR_PROVISION_1_REG, ixgbe_mng_present(), ixgbe_read_eeprom(), IXGBE_READ_REG, ixgbe_set_copper_phy_power(), IXGBE_SUCCESS, ixgbe_hw::mac, NVM_INIT_CTRL_3, NVM_INIT_CTRL_3_LPLU, ixgbe_mac_info::ops, ixgbe_phy_info::ops, ixgbe_hw::phy, ixgbe_phy_operations::read_reg, ixgbe_mac_operations::setup_link, ixgbe_mac_info::type, and ixgbe_hw::wol_enabled.
Referenced by ixgbe_init_phy_ops_X550em().
ixgbe_ext_phy_t_x550em_get_link - Get ext phy link status @hw: address of hardware structure @link_up: address of boolean to indicate link status
Returns error code if unable to get link status.
Definition at line 2958 of file ixgbe_x550.c.
References IXGBE_MDIO_AUTO_NEG_DEV_TYPE, IXGBE_MDIO_AUTO_NEG_LINK_STATUS, IXGBE_MDIO_AUTO_NEG_STATUS, IXGBE_SUCCESS, ixgbe_phy_info::ops, ixgbe_hw::phy, and ixgbe_phy_operations::read_reg.
Referenced by ixgbe_enter_lplu_t_x550em(), and ixgbe_setup_internal_phy_t_x550em().
void ixgbe_fc_autoneg_backplane_x550em_a | ( | struct ixgbe_hw * | hw | ) |
ixgbe_fc_autoneg_backplane_x550em_a - Enable flow control IEEE clause 37 @hw: pointer to hardware structure
Enable flow control according to IEEE clause 37.
Definition at line 4014 of file ixgbe_x550.c.
References ixgbe_hw::bus, ixgbe_mac_operations::check_link, ixgbe_fc_info::current_mode, DEBUGOUT, ixgbe_fc_info::disable_fc_autoneg, ERROR_REPORT1, ixgbe_hw::fc, ixgbe_fc_info::fc_was_autonegged, IXGBE_ERR_FC_NOT_NEGOTIATED, IXGBE_ERROR_SOFTWARE, IXGBE_ERROR_UNSUPPORTED, IXGBE_KRM_AN_CNTL_1, IXGBE_KRM_AN_CNTL_1_ASM_PAUSE, IXGBE_KRM_AN_CNTL_1_SYM_PAUSE, IXGBE_KRM_LINK_S1, IXGBE_KRM_LINK_S1_MAC_AN_COMPLETE, IXGBE_KRM_LP_BASE_PAGE_HIGH, IXGBE_KRM_LP_BASE_PAGE_HIGH_ASM_PAUSE, IXGBE_KRM_LP_BASE_PAGE_HIGH_SYM_PAUSE, ixgbe_negotiate_fc(), IXGBE_SB_IOSF_TARGET_KR_PHY, IXGBE_SUCCESS, ixgbe_bus_info::lan_id, ixgbe_hw::mac, ixgbe_mac_info::ops, ixgbe_mac_operations::read_iosf_sb_reg, and ixgbe_fc_info::requested_mode.
Referenced by ixgbe_init_ops_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().
ixgbe_fc_autoneg_fw _ Set up flow control for FW-controlled PHYs @hw: pointer to hardware structure
Called at init time to set up flow control.
Definition at line 759 of file ixgbe_x550.c.
References ixgbe_hw::fc, ixgbe_fc_default, ixgbe_fc_full, ixgbe_setup_fw_link(), and ixgbe_fc_info::requested_mode.
Referenced by ixgbe_init_ops_X550EM_a().
void ixgbe_fc_autoneg_sgmii_x550em_a | ( | struct ixgbe_hw * | hw | ) |
ixgbe_fc_autoneg_sgmii_x550em_a - Enable flow control IEEE clause 37 @hw: pointer to hardware structure
Enable flow control according to IEEE clause 37.
Definition at line 4103 of file ixgbe_x550.c.
References ixgbe_mac_operations::check_link, ixgbe_fc_info::current_mode, DEBUGOUT, ixgbe_fc_info::disable_fc_autoneg, ERROR_REPORT1, ixgbe_hw::fc, ixgbe_fc_info::fc_was_autonegged, FW_PHY_ACT_DATA_COUNT, FW_PHY_ACT_GET_LINK_INFO, FW_PHY_ACT_GET_LINK_INFO_AN_COMPLETE, FW_PHY_ACT_GET_LINK_INFO_FC_RX, FW_PHY_ACT_GET_LINK_INFO_FC_TX, FW_PHY_ACT_GET_LINK_INFO_LP_FC_RX, FW_PHY_ACT_GET_LINK_INFO_LP_FC_TX, IXGBE_ERR_FC_NOT_NEGOTIATED, IXGBE_ERROR_SOFTWARE, IXGBE_ERROR_UNSUPPORTED, ixgbe_fw_phy_activity(), ixgbe_negotiate_fc(), IXGBE_SUCCESS, ixgbe_hw::mac, ixgbe_mac_info::ops, and ixgbe_fc_info::requested_mode.
Referenced by ixgbe_init_ops_X550EM_a().
s32 ixgbe_fw_phy_activity | ( | struct ixgbe_hw * | hw, |
u16 | activity, | ||
u32(*) | data[FW_PHY_ACT_DATA_COUNT] | ||
) |
ixgbe_fw_phy_activity - Perform an activity on a PHY @hw: pointer to hardware structure @activity: activity to perform @data: Pointer to 4 32-bit words of data
Definition at line 401 of file ixgbe_x550.c.
References ixgbe_hw::bus, ixgbe_hic_phy_activity_resp::data, FW_CEM_RESP_STATUS_SUCCESS, FW_DEFAULT_CHECKSUM, FW_PHY_ACT_DATA_COUNT, FW_PHY_ACT_REQ_CMD, FW_PHY_ACT_REQ_LEN, FW_PHY_ACT_RETRIES, IXGBE_BE32_TO_CPU, IXGBE_CPU_TO_BE32, IXGBE_CPU_TO_LE16, IXGBE_ERR_HOST_INTERFACE_COMMAND, IXGBE_HI_COMMAND_TIMEOUT, ixgbe_host_interface_command(), IXGBE_SUCCESS, ixgbe_bus_info::lan_id, and usec_delay.
Referenced by ixgbe_check_overtemp_fw(), ixgbe_fc_autoneg_sgmii_x550em_a(), ixgbe_get_phy_id_fw(), ixgbe_reset_phy_fw(), ixgbe_setup_fw_link(), and ixgbe_shutdown_fw_phy().
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().
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().
ixgbe_get_lasi_ext_t_x550em - Determime external Base T PHY interrupt cause @hw: pointer to hardware structure @lsc: pointer to boolean flag which indicates whether external Base T PHY interrupt is lsc
Determime if external Base T PHY interrupt cause is high temperature failure alarm or link status change.
Return IXGBE_ERR_OVERTEMP if interrupt is high temperature failure alarm, else return PHY access status.
Definition at line 1968 of file ixgbe_x550.c.
References IXGBE_ERR_OVERTEMP, IXGBE_MDIO_AUTO_NEG_DEV_TYPE, IXGBE_MDIO_AUTO_NEG_VEN_LSC, IXGBE_MDIO_AUTO_NEG_VENDOR_TX_ALARM2, IXGBE_MDIO_GLOBAL_ALARM_1, IXGBE_MDIO_GLOBAL_ALARM_1_INT, IXGBE_MDIO_GLOBAL_ALM_1_DEV_FAULT, IXGBE_MDIO_GLOBAL_ALM_1_HI_TMP_FAIL, IXGBE_MDIO_GLOBAL_AN_VEN_ALM_INT_EN, IXGBE_MDIO_GLOBAL_CHIP_STD_INT_FLAG, IXGBE_MDIO_GLOBAL_FAULT_MSG, IXGBE_MDIO_GLOBAL_FAULT_MSG_HI_TMP, IXGBE_MDIO_GLOBAL_INT_CHIP_VEN_FLAG, IXGBE_MDIO_GLOBAL_STD_ALM2_INT, IXGBE_MDIO_GLOBAL_VEN_ALM_INT_EN, IXGBE_MDIO_VENDOR_SPECIFIC_1_DEV_TYPE, ixgbe_set_copper_phy_power(), IXGBE_SUCCESS, ixgbe_phy_info::ops, ixgbe_hw::phy, and ixgbe_phy_operations::read_reg.
Referenced by ixgbe_enable_lasi_ext_t_x550em(), and ixgbe_handle_lasi_ext_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().
s32 ixgbe_get_link_capabilities_X550em | ( | struct ixgbe_hw * | hw, |
ixgbe_link_speed * | speed, | ||
bool * | autoneg | ||
) |
ixgbe_get_link_capabilities_x550em - Determines link capabilities @hw: pointer to hardware structure @speed: pointer to link speed @autoneg: true when autoneg or autotry is enabled
Definition at line 1885 of file ixgbe_x550.c.
References DEBUGFUNC, ixgbe_hw::device_id, IXGBE_DEV_ID_X550EM_A_KR_L, IXGBE_LINK_SPEED_10GB_FULL, IXGBE_LINK_SPEED_1GB_FULL, IXGBE_LINK_SPEED_2_5GB_FULL, ixgbe_mac_X550EM_a, ixgbe_media_type_fiber, IXGBE_NW_MNG_IF_SEL_PHY_SPEED_2_5G, ixgbe_phy_ext_1g_t, ixgbe_phy_fw, ixgbe_phy_sgmii, ixgbe_phy_x550em_kr, ixgbe_phy_x550em_xfi, ixgbe_sfp_type_1g_lx_core0, ixgbe_sfp_type_1g_lx_core1, ixgbe_sfp_type_1g_sx_core0, ixgbe_sfp_type_1g_sx_core1, IXGBE_SUCCESS, ixgbe_hw::mac, ixgbe_phy_info::media_type, ixgbe_phy_info::multispeed_fiber, ixgbe_phy_info::nw_mng_if_sel, ixgbe_hw::phy, ixgbe_phy_info::sfp_type, ixgbe_phy_info::speeds_supported, ixgbe_mac_info::type, and ixgbe_phy_info::type.
Referenced by ixgbe_init_ops_X550EM().
enum ixgbe_media_type ixgbe_get_media_type_X550em | ( | struct ixgbe_hw * | hw | ) |
ixgbe_get_media_type_X550em - Get media type @hw: pointer to hardware structure
Returns the media type (fiber, copper, backplane)
Definition at line 1506 of file ixgbe_x550.c.
References DEBUGFUNC, ixgbe_hw::device_id, 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_KR, IXGBE_DEV_ID_X550EM_A_KR_L, IXGBE_DEV_ID_X550EM_A_QSFP, IXGBE_DEV_ID_X550EM_A_QSFP_N, IXGBE_DEV_ID_X550EM_A_SFP, IXGBE_DEV_ID_X550EM_A_SFP_N, IXGBE_DEV_ID_X550EM_A_SGMII, IXGBE_DEV_ID_X550EM_A_SGMII_L, IXGBE_DEV_ID_X550EM_X_10G_T, IXGBE_DEV_ID_X550EM_X_1G_T, IXGBE_DEV_ID_X550EM_X_KR, IXGBE_DEV_ID_X550EM_X_KX4, IXGBE_DEV_ID_X550EM_X_SFP, IXGBE_DEV_ID_X550EM_X_XFI, ixgbe_media_type_backplane, ixgbe_media_type_copper, ixgbe_media_type_fiber, ixgbe_media_type_unknown, ixgbe_phy_sgmii, ixgbe_hw::phy, and ixgbe_phy_info::type.
Referenced by ixgbe_init_ops_X550EM().
ixgbe_get_phy_id_fw - Get the phy ID via firmware command @hw: pointer to hardware structure
Returns error code
Definition at line 459 of file ixgbe_x550.c.
References ixgbe_phy_info::autoneg_advertised, FW_PHY_ACT_DATA_COUNT, FW_PHY_ACT_GET_PHY_INFO, FW_PHY_INFO_ID_HI_MASK, FW_PHY_INFO_ID_LO_MASK, FW_PHY_INFO_SPEED_MASK, fw_speed, ixgbe_phy_info::id, IXGBE_ERR_PHY_ADDR_INVALID, ixgbe_fw_map, ixgbe_fw_phy_activity(), IXGBE_PHY_REVISION_MASK, IXGBE_SUCCESS, ixgbe_hw::phy, ixgbe_phy_info::revision, and ixgbe_phy_info::speeds_supported.
Referenced by ixgbe_identify_phy_fw().
ixgbe_get_phy_token - Get the token for shared phy access @hw: Pointer to hardware structure
Definition at line 1228 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, ixgbe_hic_phy_token_req::command_type, DEBUGOUT, DEBUGOUT1, FW_DEFAULT_CHECKSUM, FW_PHY_TOKEN_OK, FW_PHY_TOKEN_REQ, FW_PHY_TOKEN_REQ_CMD, FW_PHY_TOKEN_REQ_LEN, FW_PHY_TOKEN_RETRY, ixgbe_hic_phy_token_req::hdr, IXGBE_ERR_FW_RESP_INVALID, IXGBE_ERR_TOKEN_RETRY, IXGBE_HI_COMMAND_TIMEOUT, ixgbe_host_interface_command(), IXGBE_SUCCESS, ixgbe_bus_info::lan_id, ixgbe_hic_phy_token_req::pad, ixgbe_hic_phy_token_req::port_number, and ixgbe_hic_hdr::ret_status.
Referenced by ixgbe_acquire_swfw_sync_X550a().
ixgbe_get_supported_physical_layer_X550em - Returns physical layer type @hw: pointer to hardware structure
Determines physical layer capabilities of the current configuration.
Definition at line 3641 of file ixgbe_x550.c.
References DEBUGFUNC, ixgbe_hw::device_id, ixgbe_mac_operations::get_media_type, ixgbe_phy_operations::identify, IXGBE_DEV_ID_X550EM_A_KR_L, ixgbe_get_supported_phy_sfp_layer_generic(), IXGBE_LINK_SPEED_100_FULL, IXGBE_LINK_SPEED_10_FULL, IXGBE_LINK_SPEED_1GB_FULL, ixgbe_mac_X550EM_a, IXGBE_MDIO_PHY_1000BASET_ABILITY, IXGBE_MDIO_PHY_10GBASET_ABILITY, IXGBE_MDIO_PHY_EXT_ABILITY, IXGBE_MDIO_PMA_PMD_DEV_TYPE, ixgbe_media_type_fiber, IXGBE_NW_MNG_IF_SEL_PHY_SPEED_2_5G, 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_PHYSICAL_LAYER_1000BASE_KX, IXGBE_PHYSICAL_LAYER_1000BASE_T, IXGBE_PHYSICAL_LAYER_100BASE_TX, IXGBE_PHYSICAL_LAYER_10BASE_T, IXGBE_PHYSICAL_LAYER_10GBASE_KR, IXGBE_PHYSICAL_LAYER_10GBASE_KX4, IXGBE_PHYSICAL_LAYER_10GBASE_T, IXGBE_PHYSICAL_LAYER_2500BASE_KX, IXGBE_PHYSICAL_LAYER_UNKNOWN, 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, ixgbe_phy_info::speeds_supported, ixgbe_mac_info::type, and ixgbe_phy_info::type.
Referenced by ixgbe_init_ops_X550EM().
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().
ixgbe_identify_phy_fw - Get PHY type based on firmware command @hw: pointer to hardware structure
Returns error code
Definition at line 495 of file ixgbe_x550.c.
References ixgbe_hw::bus, ixgbe_get_phy_id_fw(), IXGBE_GSSR_PHY0_SM, IXGBE_GSSR_PHY1_SM, ixgbe_phy_fw, ixgbe_bus_info::lan_id, ixgbe_phy_info::ops, ixgbe_hw::phy, ixgbe_phy_info::phy_semaphore_mask, ixgbe_phy_operations::read_reg, ixgbe_phy_info::type, and ixgbe_phy_operations::write_reg.
Referenced by ixgbe_init_ops_X550EM().
ixgbe_identify_phy_x550em - Get PHY type based on device id @hw: pointer to hardware structure
Returns error code
Definition at line 346 of file ixgbe_x550.c.
References ixgbe_hw::bus, ixgbe_hw::device_id, ixgbe_check_cs4227(), 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_KR, IXGBE_DEV_ID_X550EM_A_KR_L, IXGBE_DEV_ID_X550EM_A_SFP, IXGBE_DEV_ID_X550EM_A_SFP_N, IXGBE_DEV_ID_X550EM_X_10G_T, IXGBE_DEV_ID_X550EM_X_1G_T, IXGBE_DEV_ID_X550EM_X_KR, IXGBE_DEV_ID_X550EM_X_KX4, IXGBE_DEV_ID_X550EM_X_SFP, IXGBE_DEV_ID_X550EM_X_XFI, IXGBE_GSSR_PHY0_SM, IXGBE_GSSR_PHY1_SM, ixgbe_identify_phy_generic(), ixgbe_identify_sfp_module_X550em(), ixgbe_phy_ext_1g_t, ixgbe_phy_fw, ixgbe_phy_x550em_kr, ixgbe_phy_x550em_kx4, ixgbe_phy_x550em_xfi, ixgbe_read_mng_if_sel_x550em(), ixgbe_setup_mux_ctl(), IXGBE_SUCCESS, ixgbe_bus_info::lan_id, ixgbe_hw::mac, ixgbe_mac_info::ops, ixgbe_hw::phy, ixgbe_phy_info::phy_semaphore_mask, ixgbe_mac_operations::set_lan_id, and ixgbe_phy_info::type.
Referenced by ixgbe_init_ops_X550EM().
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().
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().
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().
void ixgbe_init_mac_link_ops_X550em | ( | struct ixgbe_hw * | hw | ) |
ixgbe_init_mac_link_ops_X550em - init mac link function pointers @hw: pointer to hardware structure
Definition at line 1825 of file ixgbe_x550.c.
References ixgbe_mac_operations::check_link, DEBUGFUNC, ixgbe_hw::device_id, ixgbe_mac_operations::disable_tx_laser, ixgbe_mac_operations::enable_tx_laser, ixgbe_mac_operations::flap_tx_laser, ixgbe_mac_operations::get_media_type, ixgbe_check_link_t_X550em(), ixgbe_check_mac_link_generic(), 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_A_SFP_N, IXGBE_DEV_ID_X550EM_A_SGMII, IXGBE_DEV_ID_X550EM_A_SGMII_L, IXGBE_DEV_ID_X550EM_X_1G_T, ixgbe_mac_X550EM_a, ixgbe_media_type_backplane, ixgbe_media_type_copper, ixgbe_media_type_fiber, ixgbe_set_soft_rate_select_speed(), ixgbe_setup_mac_link_multispeed_fiber(), ixgbe_setup_mac_link_sfp_x550a(), ixgbe_setup_mac_link_sfp_x550em(), ixgbe_setup_mac_link_t_X550em(), ixgbe_setup_sgmii(), ixgbe_setup_sgmii_fw(), ixgbe_hw::mac, ixgbe_mac_info::ops, ixgbe_mac_operations::set_rate_select_speed, ixgbe_mac_operations::setup_link, ixgbe_mac_operations::setup_mac_link, and ixgbe_mac_info::type.
Referenced by ixgbe_init_phy_ops_X550em(), and ixgbe_setup_sfp_modules_X550em().
ixgbe_init_ops_X550 - Inits func ptrs and MAC type @hw: pointer to hardware structure
Initialize the function pointers and assign the MAC type for X550. Does not touch the hardware.
Definition at line 54 of file ixgbe_x550.c.
References ixgbe_eeprom_operations::calc_checksum, DEBUGFUNC, ixgbe_hw::device_id, ixgbe_mac_operations::disable_mdd, ixgbe_mac_operations::disable_rx, ixgbe_mac_operations::dmac_config, ixgbe_mac_operations::dmac_config_tcs, ixgbe_mac_operations::dmac_update_tcs, ixgbe_hw::eeprom, ixgbe_mac_operations::enable_mdd, ixgbe_mac_operations::fw_recovery_mode, ixgbe_mac_operations::get_rtrup2tc, ixgbe_eeprom_operations::init_params, ixgbe_calc_eeprom_checksum_X550(), ixgbe_dcb_get_rtrup2tc_generic(), IXGBE_DEV_ID_X550EM_A_10G_T, IXGBE_DEV_ID_X550EM_X_10G_T, IXGBE_DEV_ID_X550EM_X_1G_T, ixgbe_disable_mdd_X550(), ixgbe_disable_rx_x550(), ixgbe_dmac_config_tcs_X550(), ixgbe_dmac_config_X550(), ixgbe_dmac_update_tcs_X550(), ixgbe_enable_mdd_X550(), ixgbe_fw_recovery_mode_X550(), ixgbe_init_eeprom_params_X550(), ixgbe_init_ops_X540(), ixgbe_led_off_t_X550em(), ixgbe_led_on_t_X550em(), ixgbe_mdd_event_X550(), ixgbe_read_ee_hostif_buffer_X550(), ixgbe_read_ee_hostif_X550(), ixgbe_restore_mdd_vf_X550(), ixgbe_set_ethertype_anti_spoofing_X550(), ixgbe_set_fw_drv_ver_x550(), ixgbe_set_source_address_pruning_X550(), ixgbe_update_eeprom_checksum_X550(), ixgbe_validate_eeprom_checksum_X550(), ixgbe_write_ee_hostif_buffer_X550(), ixgbe_write_ee_hostif_X550(), ixgbe_mac_operations::led_off, ixgbe_mac_operations::led_on, ixgbe_hw::mac, ixgbe_mac_operations::mdd_event, ixgbe_eeprom_info::ops, ixgbe_mac_info::ops, ixgbe_eeprom_operations::read, ixgbe_eeprom_operations::read_buffer, ixgbe_mac_operations::restore_mdd_vf, ixgbe_mac_operations::set_ethertype_anti_spoofing, ixgbe_mac_operations::set_fw_drv_ver, ixgbe_mac_operations::set_source_address_pruning, ixgbe_mac_operations::setup_eee, ixgbe_eeprom_operations::update_checksum, ixgbe_eeprom_operations::validate_checksum, ixgbe_eeprom_operations::write, and ixgbe_eeprom_operations::write_buffer.
Referenced by ixgbe_init_ops_X550EM(), and ixgbe_init_shared_code().
ixgbe_init_ops_X550EM - Inits func ptrs and MAC type @hw: pointer to hardware structure
Initialize the function pointers and for MAC type X550EM. Does not touch the hardware.
Definition at line 605 of file ixgbe_x550.c.
References ixgbe_hw::bus, ixgbe_mac_operations::bypass_rd_eep, ixgbe_mac_operations::bypass_rw, ixgbe_mac_operations::bypass_set, ixgbe_mac_operations::bypass_valid_rd, ixgbe_eeprom_operations::calc_checksum, DEBUGFUNC, ixgbe_hw::device_id, ixgbe_mac_operations::disable_sec_rx_path, ixgbe_hw::eeprom, ixgbe_mac_operations::enable_sec_rx_path, ixgbe_mac_operations::get_bus_info, ixgbe_mac_operations::get_fcoe_boot_status, ixgbe_phy_operations::get_firmware_version, ixgbe_mac_operations::get_link_capabilities, ixgbe_mac_operations::get_media_type, ixgbe_mac_operations::get_san_mac_addr, ixgbe_mac_operations::get_supported_physical_layer, ixgbe_mac_operations::get_thermal_sensor_data, ixgbe_mac_operations::get_wwn_prefix, ixgbe_phy_operations::identify, ixgbe_phy_operations::init, ixgbe_eeprom_operations::init_params, ixgbe_mac_operations::init_thermal_sensor_thresh, ixgbe_bus_type_internal, ixgbe_calc_eeprom_checksum_X550(), IXGBE_DEV_ID_X550EM_A_1G_T, IXGBE_DEV_ID_X550EM_A_1G_T_L, IXGBE_DEV_ID_X550EM_X_1G_T, ixgbe_get_bus_info_X550em(), ixgbe_get_link_capabilities_X550em(), ixgbe_get_media_type_X550em(), ixgbe_get_supported_physical_layer_X550em(), ixgbe_identify_phy_fw(), ixgbe_identify_phy_x550em(), ixgbe_init_eeprom_params_X540(), ixgbe_init_ops_X550(), ixgbe_init_phy_ops_X550em(), ixgbe_media_type_copper, ixgbe_read_ee_hostif_buffer_X550(), ixgbe_read_ee_hostif_X550(), ixgbe_reset_hw_X550em(), ixgbe_setup_fc_generic(), ixgbe_setup_fc_X550em(), ixgbe_setup_sfp_modules_X550em(), ixgbe_update_eeprom_checksum_X550(), ixgbe_validate_eeprom_checksum_X550(), ixgbe_write_ee_hostif_buffer_X550(), ixgbe_write_ee_hostif_X550(), ixgbe_hw::mac, ixgbe_eeprom_info::ops, ixgbe_mac_info::ops, ixgbe_phy_info::ops, ixgbe_hw::phy, ixgbe_mac_operations::prot_autoc_read, ixgbe_mac_operations::prot_autoc_write, ixgbe_eeprom_operations::read, ixgbe_eeprom_operations::read_buffer, ixgbe_mac_operations::reset_hw, ixgbe_phy_operations::set_phy_power, ixgbe_mac_operations::set_san_mac_addr, ixgbe_mac_operations::setup_fc, ixgbe_mac_operations::setup_sfp, ixgbe_mac_info::thermal_sensor_enabled, ixgbe_bus_info::type, ixgbe_eeprom_operations::update_checksum, ixgbe_eeprom_operations::validate_checksum, ixgbe_eeprom_operations::write, and ixgbe_eeprom_operations::write_buffer.
Referenced by ixgbe_init_ops_X550EM_a(), and ixgbe_init_ops_X550EM_x().
ixgbe_init_ops_X550EM_a - Inits func ptrs and MAC type @hw: pointer to hardware structure
Initialize the function pointers and for MAC type X550EM_a. Does not touch the hardware.
Definition at line 793 of file ixgbe_x550.c.
References ixgbe_mac_operations::acquire_swfw_sync, DEBUGFUNC, ixgbe_hw::device_id, ixgbe_phy_info::eee_speeds_advertised, ixgbe_phy_info::eee_speeds_supported, ixgbe_mac_operations::fc_autoneg, ixgbe_mac_operations::get_media_type, ixgbe_acquire_swfw_sync_X550a(), IXGBE_DEV_ID_X550EM_A_1G_T, IXGBE_DEV_ID_X550EM_A_1G_T_L, IXGBE_DEV_ID_X550EM_A_SGMII, IXGBE_DEV_ID_X550EM_A_SGMII_L, ixgbe_fc_autoneg_backplane_x550em_a(), ixgbe_fc_autoneg_fiber_x550em_a(), ixgbe_fc_autoneg_fw(), ixgbe_fc_autoneg_sgmii_x550em_a(), ixgbe_init_ops_X550EM(), IXGBE_LINK_SPEED_100_FULL, IXGBE_LINK_SPEED_1GB_FULL, ixgbe_media_type_backplane, ixgbe_media_type_fiber, ixgbe_read_iosf_sb_reg_x550(), ixgbe_read_iosf_sb_reg_x550a(), ixgbe_release_swfw_sync_X550a(), ixgbe_setup_eee_fw(), ixgbe_setup_fc_backplane_x550em_a(), ixgbe_write_iosf_sb_reg_x550(), ixgbe_write_iosf_sb_reg_x550a(), ixgbe_hw::mac, ixgbe_mac_info::ops, ixgbe_hw::phy, ixgbe_mac_operations::read_iosf_sb_reg, ixgbe_mac_operations::release_swfw_sync, ixgbe_mac_operations::setup_eee, ixgbe_mac_operations::setup_fc, and ixgbe_mac_operations::write_iosf_sb_reg.
Referenced by ixgbe_init_shared_code().
ixgbe_init_ops_X550EM_x - Inits func ptrs and MAC type @hw: pointer to hardware structure
Initialize the function pointers and for MAC type X550EM_x. Does not touch the hardware.
Definition at line 851 of file ixgbe_x550.c.
References ixgbe_mac_operations::acquire_swfw_sync, ixgbe_link_info::addr, DEBUGFUNC, ixgbe_hw::device_id, ixgbe_mac_operations::init_led_link_act, ixgbe_acquire_swfw_sync_X550em(), IXGBE_CS4227, IXGBE_DEV_ID_X550EM_X_1G_T, ixgbe_init_ops_X550EM(), ixgbe_read_i2c_combined_generic(), ixgbe_read_i2c_combined_generic_unlocked(), ixgbe_read_iosf_sb_reg_x550(), ixgbe_release_swfw_sync_X550em(), ixgbe_write_i2c_combined_generic(), ixgbe_write_i2c_combined_generic_unlocked(), ixgbe_write_iosf_sb_reg_x550(), ixgbe_hw::link, ixgbe_hw::mac, ixgbe_link_info::ops, ixgbe_mac_info::ops, ixgbe_mac_operations::read_iosf_sb_reg, ixgbe_link_operations::read_link, ixgbe_link_operations::read_link_unlocked, ixgbe_mac_operations::release_swfw_sync, ixgbe_mac_operations::setup_eee, ixgbe_mac_operations::setup_fc, ixgbe_mac_operations::write_iosf_sb_reg, ixgbe_link_operations::write_link, and ixgbe_link_operations::write_link_unlocked.
Referenced by ixgbe_init_shared_code().
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().
ixgbe_iosf_wait - Wait for IOSF command completion @hw: pointer to hardware structure @ctrl: pointer to location to receive final IOSF control value
Returns failing status on timeout
Note: ctrl can be NULL if the IOSF control register value is not needed
Definition at line 1106 of file ixgbe_x550.c.
References ERROR_REPORT1, IXGBE_ERR_PHY, IXGBE_ERROR_POLLING, IXGBE_MDIO_COMMAND_TIMEOUT, IXGBE_READ_REG, IXGBE_SB_IOSF_CTRL_BUSY, IXGBE_SB_IOSF_INDIRECT_CTRL, IXGBE_SUCCESS, and usec_delay.
Referenced by ixgbe_read_iosf_sb_reg_x550(), and ixgbe_write_iosf_sb_reg_x550().
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().
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().
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().
ixgbe_put_phy_token - Put the token for shared phy access @hw: Pointer to hardware structure
Definition at line 1266 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, ixgbe_hic_phy_token_req::command_type, DEBUGOUT, FW_DEFAULT_CHECKSUM, FW_PHY_TOKEN_OK, FW_PHY_TOKEN_REL, FW_PHY_TOKEN_REQ_CMD, FW_PHY_TOKEN_REQ_LEN, ixgbe_hic_phy_token_req::hdr, IXGBE_ERR_FW_RESP_INVALID, IXGBE_HI_COMMAND_TIMEOUT, ixgbe_host_interface_command(), IXGBE_SUCCESS, ixgbe_bus_info::lan_id, ixgbe_hic_phy_token_req::pad, ixgbe_hic_phy_token_req::port_number, and ixgbe_hic_hdr::ret_status.
Referenced by ixgbe_release_swfw_sync_X550a().
ixgbe_read_cs4227 - Read CS4227 register @hw: pointer to hardware structure @reg: register number to write @value: pointer to receive value read
Returns status code
Definition at line 114 of file ixgbe_x550.c.
References ixgbe_link_info::addr, ixgbe_hw::link, ixgbe_link_info::ops, and ixgbe_link_operations::read_link_unlocked.
Referenced by ixgbe_check_cs4227(), and ixgbe_reset_cs4227().
ixgbe_read_ee_hostif_buffer_X550- Read EEPROM word(s) using hostif @hw: pointer to hardware structure @offset: offset of word in the EEPROM to read @words: number of words @data: word(s) read from the EEPROM
Reads a 16 bit word(s) from the EEPROM using the hostif.
Definition at line 3172 of file ixgbe_x550.c.
References ixgbe_mac_operations::acquire_swfw_sync, ixgbe_hic_read_shadow_ram::address, ixgbe_hic_hdr2_req::buf_lenh, ixgbe_hic_hdr2_req::buf_lenl, ixgbe_hic_hdr2_req::checksum, ixgbe_hic_hdr2_req::cmd, ixgbe_hic_read_shadow_ram::data, DEBUGFUNC, DEBUGOUT, FW_DEFAULT_CHECKSUM, FW_MAX_READ_BUFFER_SIZE, FW_NVM_DATA_OFFSET, FW_READ_SHADOW_RAM_CMD, FW_READ_SHADOW_RAM_LEN, ixgbe_hic_read_shadow_ram::hdr, IXGBE_CPU_TO_BE16, IXGBE_CPU_TO_BE32, IXGBE_FLEX_MNG, IXGBE_GSSR_EEP_SM, IXGBE_GSSR_SW_MNG_SM, IXGBE_HI_COMMAND_TIMEOUT, ixgbe_hic_unlocked(), IXGBE_READ_REG, ixgbe_hic_read_shadow_ram::length, ixgbe_hw::mac, ixgbe_mac_info::ops, ixgbe_hic_read_shadow_ram::pad2, ixgbe_hic_read_shadow_ram::pad3, ixgbe_mac_operations::release_swfw_sync, and ixgbe_hic_hdr2::req.
Referenced by ixgbe_calc_checksum_X550(), ixgbe_checksum_ptr_x550(), ixgbe_init_ops_X550(), and ixgbe_init_ops_X550EM().
ixgbe_read_ee_hostif_X550 - Read EEPROM word using a host interface command assuming that the semaphore is already obtained. @hw: pointer to hardware structure @offset: offset of word in the EEPROM to read @data: word read from the EEPROM
Reads a 16 bit word from the EEPROM using the hostif.
Definition at line 3128 of file ixgbe_x550.c.
References ixgbe_mac_operations::acquire_swfw_sync, ixgbe_hic_read_shadow_ram::address, ixgbe_hic_hdr2_req::buf_lenh, ixgbe_hic_hdr2_req::buf_lenl, ixgbe_hic_hdr2_req::checksum, ixgbe_hic_hdr2_req::cmd, ixgbe_hic_read_shadow_ram::data, DEBUGFUNC, FW_DEFAULT_CHECKSUM, FW_NVM_DATA_OFFSET, FW_READ_SHADOW_RAM_CMD, FW_READ_SHADOW_RAM_LEN, ixgbe_hic_read_shadow_ram::hdr, IXGBE_CPU_TO_BE16, IXGBE_CPU_TO_BE32, IXGBE_FLEX_MNG, IXGBE_GSSR_EEP_SM, IXGBE_GSSR_SW_MNG_SM, IXGBE_HI_COMMAND_TIMEOUT, ixgbe_hic_unlocked(), IXGBE_READ_REG_ARRAY, ixgbe_hic_read_shadow_ram::length, ixgbe_hw::mac, ixgbe_mac_info::ops, ixgbe_hic_read_shadow_ram::pad2, ixgbe_hic_read_shadow_ram::pad3, ixgbe_mac_operations::release_swfw_sync, and ixgbe_hic_hdr2::req.
Referenced by ixgbe_init_ops_X550(), ixgbe_init_ops_X550EM(), ixgbe_update_eeprom_checksum_X550(), and ixgbe_validate_eeprom_checksum_X550().
|
static |
ixgbe_read_i2c_combined_generic - Perform I2C read combined operation @hw: pointer to the hardware structure @addr: I2C bus address to read from @reg: I2C device register to read from @val: pointer to location to receive read value
Returns an error code on error.
Definition at line 545 of file ixgbe_x550.c.
References ixgbe_read_i2c_combined_generic_int().
Referenced by ixgbe_init_ops_X550EM_x().
|
static |
ixgbe_read_i2c_combined_generic_unlocked - Do I2C read combined operation @hw: pointer to the hardware structure @addr: I2C bus address to read from @reg: I2C device register to read from @val: pointer to location to receive read value
Returns an error code on error.
Definition at line 561 of file ixgbe_x550.c.
References ixgbe_read_i2c_combined_generic_int().
Referenced by ixgbe_init_ops_X550EM_x().
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().
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().
ixgbe_read_mng_if_sel_x550em - Read NW_MNG_IF_SEL register @hw: pointer to hardware structure
Read NW_MNG_IF_SEL register and save field values, and check for valid field values.
Definition at line 2254 of file ixgbe_x550.c.
References ixgbe_phy_info::addr, ixgbe_mac_X550EM_a, IXGBE_NW_MNG_IF_SEL, IXGBE_NW_MNG_IF_SEL_MDIO_ACT, IXGBE_NW_MNG_IF_SEL_MDIO_PHY_ADD, IXGBE_NW_MNG_IF_SEL_MDIO_PHY_ADD_SHIFT, IXGBE_READ_REG, IXGBE_SUCCESS, ixgbe_hw::mac, ixgbe_phy_info::nw_mng_if_sel, ixgbe_hw::phy, and ixgbe_mac_info::type.
Referenced by ixgbe_identify_phy_x550em(), and ixgbe_init_phy_ops_X550em().
ixgbe_read_pe - Read register from port expander @hw: pointer to hardware structure @reg: register number to read @value: pointer to receive read value
Returns status code
Definition at line 140 of file ixgbe_x550.c.
References ERROR_REPORT2, IXGBE_ERROR_CAUTION, IXGBE_PE, ixgbe_read_i2c_byte_unlocked(), and IXGBE_SUCCESS.
Referenced by ixgbe_reset_cs4227().
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().
|
static |
Definition at line 522 of file ixgbe_x550.c.
References IXGBE_NOT_IMPLEMENTED, and UNREFERENCED_4PARAMETER.
Referenced by ixgbe_init_phy_ops_X550em().
ixgbe_release_swfw_sync_X550a - Release SWFW semaphore @hw: pointer to hardware structure @mask: Mask to specify which semaphore to release
Releases the SWFW semaphore and puts the shared phy token as needed
Definition at line 4357 of file ixgbe_x550.c.
References DEBUGFUNC, IXGBE_GSSR_TOKEN_SM, ixgbe_put_phy_token(), and ixgbe_release_swfw_sync_X540().
Referenced by ixgbe_init_ops_X550EM_a().
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().
ixgbe_reset_cs4227 - Reset CS4227 using port expander @hw: pointer to hardware structure
This function assumes that the caller has acquired the proper semaphore. Returns error code
Definition at line 177 of file ixgbe_x550.c.
References ERROR_REPORT1, IXGBE_CS4227_CHECK_DELAY, IXGBE_CS4227_EEPROM_LOAD_OK, IXGBE_CS4227_EEPROM_STATUS, IXGBE_CS4227_EFUSE_STATUS, IXGBE_CS4227_RESET_DELAY, IXGBE_CS4227_RESET_HOLD, IXGBE_CS4227_RETRIES, IXGBE_ERR_PHY, IXGBE_ERROR_INVALID_STATE, IXGBE_PE_BIT1, IXGBE_PE_CONFIG, IXGBE_PE_OUTPUT, ixgbe_read_cs4227(), ixgbe_read_pe(), IXGBE_SUCCESS, ixgbe_write_pe(), msec_delay, and usec_delay.
Referenced by ixgbe_check_cs4227().
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().
ixgbe_reset_phy_fw - Reset firmware-controlled PHYs @hw: pointer to hardware structure
Definition at line 2207 of file ixgbe_x550.c.
References FW_PHY_ACT_DATA_COUNT, FW_PHY_ACT_INIT_PHY, FW_PHY_ACT_PHY_SW_RESET, ixgbe_check_reset_blocked(), ixgbe_fw_phy_activity(), ixgbe_setup_fw_link(), IXGBE_SUCCESS, ixgbe_hw::phy, and ixgbe_phy_info::reset_disable.
Referenced by ixgbe_init_phy_ops_X550em().
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().
ixgbe_restart_an_internal_phy_x550em - restart autonegotiation for the internal PHY @hw: pointer to hardware structure
Definition at line 1637 of file ixgbe_x550.c.
References ixgbe_hw::bus, DEBUGOUT, IXGBE_KRM_LINK_CTRL_1, IXGBE_KRM_LINK_CTRL_1_TETH_AN_RESTART, IXGBE_KRM_PMD_FLX_MASK_ST20, IXGBE_KRM_PMD_FLX_MASK_ST20_FW_AN_RESTART, ixgbe_mac_X550EM_a, IXGBE_SB_IOSF_TARGET_KR_PHY, ixgbe_bus_info::lan_id, ixgbe_hw::mac, ixgbe_mac_info::ops, ixgbe_mac_operations::read_iosf_sb_reg, ixgbe_mac_info::type, and ixgbe_mac_operations::write_iosf_sb_reg.
Referenced by ixgbe_setup_fc_backplane_x550em_a(), ixgbe_setup_ixfi_x550em(), ixgbe_setup_kr_speed_x550em(), ixgbe_setup_sfi_x550a(), ixgbe_setup_sgmii(), and ixgbe_setup_sgmii_fw().
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().
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().
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().
|
static |
ixgbe_set_mdio_speed - Set MDIO clock speed @hw: pointer to hardware structure
Definition at line 2399 of file ixgbe_x550.c.
References ixgbe_hw::device_id, 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_QSFP, IXGBE_DEV_ID_X550EM_A_SFP, IXGBE_DEV_ID_X550EM_A_SGMII, IXGBE_DEV_ID_X550EM_A_SGMII_L, IXGBE_DEV_ID_X550EM_X_10G_T, IXGBE_HLREG0, IXGBE_HLREG0_MDCSPD, IXGBE_READ_REG, and IXGBE_WRITE_REG.
Referenced by ixgbe_reset_hw_X550em().
ixgbe_set_mux - Set mux for port 1 access with CS4227 @hw: pointer to hardware structure @state: set mux if 1, clear if 0
Definition at line 4245 of file ixgbe_x550.c.
References ixgbe_hw::bus, IXGBE_ESDP, IXGBE_ESDP_SDP1, IXGBE_READ_REG, IXGBE_WRITE_FLUSH, IXGBE_WRITE_REG, and ixgbe_bus_info::lan_id.
Referenced by ixgbe_acquire_swfw_sync_X550em(), and ixgbe_release_swfw_sync_X550em().
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().
ixgbe_setup_eee_fw - Enable/disable EEE support @hw: pointer to the HW structure @enable_eee: boolean flag to enable EEE
Enable/disable EEE based on enable_eee flag. This function controls EEE for firmware-based PHY implementations.
Definition at line 775 of file ixgbe_x550.c.
References ixgbe_phy_info::eee_speeds_advertised, ixgbe_phy_info::eee_speeds_supported, IXGBE_SUCCESS, ixgbe_phy_info::ops, ixgbe_hw::phy, and ixgbe_phy_operations::setup_link.
Referenced by ixgbe_init_ops_X550EM_a().
ixgbe_setup_fc_backplane_x550em_a - Set up flow control @hw: pointer to hardware structure
Called at init time to set up flow control.
Definition at line 4158 of file ixgbe_x550.c.
References ixgbe_hw::bus, DEBUGFUNC, DEBUGOUT, ERROR_REPORT1, ixgbe_hw::fc, IXGBE_ERR_CONFIG, IXGBE_ERR_INVALID_LINK_SETTINGS, IXGBE_ERROR_ARGUMENT, IXGBE_ERROR_UNSUPPORTED, ixgbe_fc_default, ixgbe_fc_full, ixgbe_fc_none, ixgbe_fc_rx_pause, ixgbe_fc_tx_pause, IXGBE_KRM_AN_CNTL_1, IXGBE_KRM_AN_CNTL_1_ASM_PAUSE, IXGBE_KRM_AN_CNTL_1_SYM_PAUSE, ixgbe_restart_an_internal_phy_x550em(), IXGBE_SB_IOSF_TARGET_KR_PHY, IXGBE_SUCCESS, ixgbe_bus_info::lan_id, ixgbe_hw::mac, ixgbe_mac_info::ops, ixgbe_mac_operations::read_iosf_sb_reg, ixgbe_fc_info::requested_mode, ixgbe_fc_info::strict_ieee, and ixgbe_mac_operations::write_iosf_sb_reg.
Referenced by ixgbe_init_ops_X550EM_a().
ixgbe_setup_fc_X550em - Set up flow control @hw: pointer to hardware structure
Called at init time to set up flow control.
Definition at line 3924 of file ixgbe_x550.c.
References ixgbe_hw::bus, DEBUGFUNC, ixgbe_hw::device_id, ixgbe_fc_info::disable_fc_autoneg, ERROR_REPORT1, ixgbe_hw::fc, IXGBE_DEV_ID_X550EM_A_KR, IXGBE_DEV_ID_X550EM_A_KR_L, IXGBE_DEV_ID_X550EM_X_KR, IXGBE_DEV_ID_X550EM_X_XFI, IXGBE_ERR_CONFIG, IXGBE_ERR_INVALID_LINK_SETTINGS, IXGBE_ERROR_ARGUMENT, IXGBE_ERROR_UNSUPPORTED, ixgbe_fc_default, ixgbe_fc_full, ixgbe_fc_none, ixgbe_fc_rx_pause, ixgbe_fc_tx_pause, IXGBE_KRM_AN_CNTL_1, IXGBE_KRM_AN_CNTL_1_ASM_PAUSE, IXGBE_KRM_AN_CNTL_1_SYM_PAUSE, IXGBE_SB_IOSF_TARGET_KR_PHY, IXGBE_SUCCESS, ixgbe_bus_info::lan_id, ixgbe_hw::mac, ixgbe_mac_info::ops, ixgbe_mac_operations::read_iosf_sb_reg, ixgbe_fc_info::requested_mode, ixgbe_fc_info::strict_ieee, and ixgbe_mac_operations::write_iosf_sb_reg.
Referenced by ixgbe_init_ops_X550EM().
ixgbe_setup_fw_link - Setup firmware-controlled PHYs @hw: pointer to hardware structure
Definition at line 704 of file ixgbe_x550.c.
References ixgbe_phy_info::autoneg_advertised, ixgbe_phy_info::eee_speeds_advertised, ERROR_REPORT1, ixgbe_hw::fc, FW_PHY_ACT_DATA_COUNT, FW_PHY_ACT_SETUP_LINK, FW_PHY_ACT_SETUP_LINK_AN, FW_PHY_ACT_SETUP_LINK_EEE, FW_PHY_ACT_SETUP_LINK_HP, FW_PHY_ACT_SETUP_LINK_PAUSE_RX, FW_PHY_ACT_SETUP_LINK_PAUSE_RXTX, FW_PHY_ACT_SETUP_LINK_PAUSE_SHIFT, FW_PHY_ACT_SETUP_LINK_PAUSE_TX, FW_PHY_ACT_SETUP_LINK_RSP_DOWN, fw_speed, ixgbe_check_reset_blocked(), IXGBE_ERR_INVALID_LINK_SETTINGS, IXGBE_ERR_OVERTEMP, IXGBE_ERROR_UNSUPPORTED, ixgbe_fc_full, ixgbe_fc_rx_pause, ixgbe_fc_tx_pause, ixgbe_fw_map, ixgbe_fw_phy_activity(), IXGBE_SUCCESS, ixgbe_hw::phy, ixgbe_fc_info::requested_mode, ixgbe_phy_info::reset_disable, and ixgbe_fc_info::strict_ieee.
Referenced by ixgbe_fc_autoneg_fw(), ixgbe_init_phy_ops_X550em(), and ixgbe_reset_phy_fw().
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().
|
static |
ixgbe_setup_ixfi_x550em - Configure the KR PHY for iXFI mode. @hw: pointer to hardware structure @speed: the link speed to force
Configures the integrated KR PHY to use iXFI mode. Used to connect an internal and external PHY at a specific speed, without autonegotiation.
Definition at line 2899 of file ixgbe_x550.c.
References ixgbe_hw::bus, IXGBE_ERR_LINK_SETUP, IXGBE_KRM_LINK_CTRL_1, IXGBE_KRM_LINK_CTRL_1_TETH_FORCE_SPEED_10G, IXGBE_KRM_LINK_CTRL_1_TETH_FORCE_SPEED_1G, IXGBE_LINK_SPEED_10GB_FULL, IXGBE_LINK_SPEED_1GB_FULL, ixgbe_mac_X550EM_x, ixgbe_restart_an_internal_phy_x550em(), IXGBE_SB_IOSF_TARGET_KR_PHY, ixgbe_setup_ixfi_x550em_x(), IXGBE_SUCCESS, ixgbe_bus_info::lan_id, ixgbe_hw::mac, ixgbe_mac_info::ops, ixgbe_mac_operations::read_iosf_sb_reg, ixgbe_mac_info::type, and ixgbe_mac_operations::write_iosf_sb_reg.
Referenced by ixgbe_setup_internal_phy_t_x550em(), and ixgbe_setup_mac_link_t_X550em().
ixgbe_setup_ixfi_x550em_x - MAC specific iXFI configuration @hw: pointer to hardware structure
iXfI configuration needed for ixgbe_mac_X550EM_x devices.
Definition at line 2828 of file ixgbe_x550.c.
References ixgbe_hw::bus, IXGBE_KRM_DSP_TXFFE_STATE_4, IXGBE_KRM_DSP_TXFFE_STATE_5, IXGBE_KRM_RX_TRN_LINKUP_CTRL, IXGBE_KRM_RX_TRN_LINKUP_CTRL_CONV_WO_PROTOCOL, IXGBE_KRM_TX_COEFF_CTRL_1, IXGBE_KRM_TX_COEFF_CTRL_1_CMINUS1_OVRRD_EN, IXGBE_KRM_TX_COEFF_CTRL_1_CPLUS1_OVRRD_EN, IXGBE_KRM_TX_COEFF_CTRL_1_CZERO_EN, IXGBE_KRM_TX_COEFF_CTRL_1_OVRRD_EN, IXGBE_SB_IOSF_TARGET_KR_PHY, IXGBE_SUCCESS, ixgbe_bus_info::lan_id, ixgbe_hw::mac, ixgbe_mac_info::ops, ixgbe_mac_operations::read_iosf_sb_reg, and ixgbe_mac_operations::write_iosf_sb_reg.
Referenced by ixgbe_setup_ixfi_x550em().
|
static |
ixgbe_setup_kr_speed_x550em - Configure the KR PHY for link speed. @hw: pointer to hardware structure @speed: link speed
Configures the integrated KR PHY.
Definition at line 2152 of file ixgbe_x550.c.
References ixgbe_hw::bus, IXGBE_KRM_LINK_CTRL_1, IXGBE_KRM_LINK_CTRL_1_TETH_AN_CAP_KR, IXGBE_KRM_LINK_CTRL_1_TETH_AN_CAP_KX, IXGBE_KRM_LINK_CTRL_1_TETH_AN_ENABLE, IXGBE_KRM_PMD_FLX_MASK_ST20, IXGBE_KRM_PMD_FLX_MASK_ST20_AN_EN, IXGBE_KRM_PMD_FLX_MASK_ST20_SPEED_AN, IXGBE_LINK_SPEED_10GB_FULL, IXGBE_LINK_SPEED_1GB_FULL, ixgbe_mac_X550EM_a, ixgbe_restart_an_internal_phy_x550em(), IXGBE_SB_IOSF_TARGET_KR_PHY, ixgbe_bus_info::lan_id, ixgbe_hw::mac, ixgbe_mac_info::ops, ixgbe_mac_operations::read_iosf_sb_reg, ixgbe_mac_info::type, and ixgbe_mac_operations::write_iosf_sb_reg.
Referenced by ixgbe_setup_internal_phy_t_x550em(), ixgbe_setup_kr_x550em(), ixgbe_setup_mac_link_sfp_x550a(), and ixgbe_setup_mac_link_sfp_x550em().
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().
s32 ixgbe_setup_mac_link_sfp_x550a | ( | struct ixgbe_hw * | hw, |
ixgbe_link_speed | speed, | ||
bool | autoneg_wait_to_complete | ||
) |
ixgbe_setup_mac_link_sfp_x550a - Setup internal PHY for SFP @hw: pointer to hardware structure @speed: new link speed @autoneg_wait_to_complete: unused
Configure the integrated PHY for SFP support.
Definition at line 2725 of file ixgbe_x550.c.
References ixgbe_phy_info::addr, ixgbe_hw::bus, DEBUGOUT, ixgbe_hw::device_id, ixgbe_bus_info::instance_id, IXGBE_CS4223_SKU_ID, IXGBE_CS4227_EDC_MODE_CX1, IXGBE_CS4227_EDC_MODE_SR, IXGBE_CS4227_EFUSE_PDF_SKU, IXGBE_CS4227_LINE_SPARE24_LSB, IXGBE_DEV_ID_X550EM_A_SFP_N, IXGBE_ERR_PHY_ADDR_INVALID, IXGBE_ERR_SFP_NOT_PRESENT, IXGBE_KRM_PMD_FLX_MASK_ST20, IXGBE_KRM_PMD_FLX_MASK_ST20_SFI_10G_DA, IXGBE_KRM_PMD_FLX_MASK_ST20_SFI_10G_SR, IXGBE_MDIO_ZERO_DEV_TYPE, IXGBE_SB_IOSF_TARGET_KR_PHY, ixgbe_setup_kr_speed_x550em(), ixgbe_setup_sfi_x550a(), IXGBE_SUCCESS, ixgbe_supported_sfp_modules_X550em(), ixgbe_bus_info::lan_id, ixgbe_hw::mac, ixgbe_mac_info::ops, ixgbe_phy_info::ops, ixgbe_hw::phy, ixgbe_mac_operations::read_iosf_sb_reg, ixgbe_phy_operations::read_reg, UNREFERENCED_1PARAMETER, ixgbe_mac_operations::write_iosf_sb_reg, and ixgbe_phy_operations::write_reg.
Referenced by ixgbe_init_mac_link_ops_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().
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().
|
static |
ixgbe_setup_mux_ctl - Setup ESDP register for I2C mux control @hw: pointer to hardware structure
Definition at line 327 of file ixgbe_x550.c.
References ixgbe_hw::bus, IXGBE_ESDP, IXGBE_ESDP_SDP0_DIR, IXGBE_ESDP_SDP0_NATIVE, IXGBE_ESDP_SDP1, IXGBE_ESDP_SDP1_DIR, IXGBE_ESDP_SDP1_NATIVE, IXGBE_READ_REG, IXGBE_WRITE_FLUSH, IXGBE_WRITE_REG, and ixgbe_bus_info::lan_id.
Referenced by ixgbe_identify_phy_x550em(), ixgbe_init_phy_ops_X550em(), and ixgbe_reset_hw_X550em().
ixgbe_setup_phy_loopback_x550em - Configure the KR PHY for loopback. @hw: pointer to hardware structure
Configures the integrated KR PHY to use internal loopback mode.
Definition at line 3058 of file ixgbe_x550.c.
References ixgbe_hw::bus, IXGBE_KRM_LINK_CTRL_1, IXGBE_KRM_LINK_CTRL_1_TETH_FORCE_SPEED_10G, IXGBE_KRM_PMD_DFX_BURNIN, IXGBE_KRM_PMD_DFX_BURNIN_TX_RX_KR_LB_MASK, IXGBE_KRM_PORT_CAR_GEN_CTRL, IXGBE_KRM_PORT_CAR_GEN_CTRL_NELB_32B, IXGBE_KRM_PORT_CAR_GEN_CTRL_NELB_KRPCS, IXGBE_KRM_RX_TRN_LINKUP_CTRL, IXGBE_KRM_RX_TRN_LINKUP_CTRL_PROTOCOL_BYPASS, IXGBE_SB_IOSF_TARGET_KR_PHY, IXGBE_SUCCESS, ixgbe_bus_info::lan_id, ixgbe_hw::mac, ixgbe_mac_info::ops, ixgbe_mac_operations::read_iosf_sb_reg, and ixgbe_mac_operations::write_iosf_sb_reg.
|
static |
ixgbe_setup_sfi_x550a - Configure the internal PHY for native SFI mode @hw: pointer to hardware structure @speed: the link speed to force
Configures the integrated PHY for native SFI mode. Used to connect the internal PHY directly to an SFP cage, without autonegotiation.
Definition at line 2676 of file ixgbe_x550.c.
References ixgbe_hw::bus, IXGBE_ERR_LINK_SETUP, IXGBE_KRM_PMD_FLX_MASK_ST20, IXGBE_KRM_PMD_FLX_MASK_ST20_SPEED_10G, IXGBE_KRM_PMD_FLX_MASK_ST20_SPEED_1G, IXGBE_LINK_SPEED_10GB_FULL, IXGBE_LINK_SPEED_1GB_FULL, ixgbe_restart_an_internal_phy_x550em(), IXGBE_SB_IOSF_TARGET_KR_PHY, IXGBE_SUCCESS, ixgbe_bus_info::lan_id, ixgbe_hw::mac, ixgbe_mac_info::ops, ixgbe_mac_operations::read_iosf_sb_reg, and ixgbe_mac_operations::write_iosf_sb_reg.
Referenced by ixgbe_setup_mac_link_sfp_x550a().
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().
|
static |
ixgbe_setup_sgmii - Set up link for sgmii @hw: pointer to hardware structure @speed: new link speed @autoneg_wait: true when waiting for completion is needed
Definition at line 1685 of file ixgbe_x550.c.
References ixgbe_hw::bus, IXGBE_KRM_LINK_CTRL_1, IXGBE_KRM_LINK_CTRL_1_TETH_AN_CLAUSE_37_EN, IXGBE_KRM_LINK_CTRL_1_TETH_AN_SGMII_EN, IXGBE_KRM_LINK_CTRL_1_TETH_FORCE_SPEED_1G, IXGBE_KRM_PMD_FLX_MASK_ST20, IXGBE_KRM_PMD_FLX_MASK_ST20_AN37_EN, IXGBE_KRM_PMD_FLX_MASK_ST20_SGMII_EN, IXGBE_KRM_PMD_FLX_MASK_ST20_SPEED_1G, IXGBE_KRM_SGMII_CTRL, IXGBE_KRM_SGMII_CTRL_MAC_TAR_FORCE_100_D, IXGBE_KRM_SGMII_CTRL_MAC_TAR_FORCE_10_D, ixgbe_restart_an_internal_phy_x550em(), IXGBE_SB_IOSF_TARGET_KR_PHY, ixgbe_bus_info::lan_id, ixgbe_hw::mac, ixgbe_mac_info::ops, ixgbe_phy_info::ops, ixgbe_hw::phy, ixgbe_mac_operations::read_iosf_sb_reg, ixgbe_phy_operations::setup_link_speed, and ixgbe_mac_operations::write_iosf_sb_reg.
Referenced by ixgbe_init_mac_link_ops_X550em().
|
static |
ixgbe_setup_sgmii_fw - Set up link for internal PHY SGMII auto-negotiation @hw: pointer to hardware structure @speed: new link speed @autoneg_wait: true when waiting for completion is needed
Definition at line 1754 of file ixgbe_x550.c.
References ixgbe_hw::bus, IXGBE_KRM_LINK_CTRL_1, IXGBE_KRM_LINK_CTRL_1_TETH_AN_CLAUSE_37_EN, IXGBE_KRM_LINK_CTRL_1_TETH_AN_SGMII_EN, IXGBE_KRM_PMD_FLX_MASK_ST20, IXGBE_KRM_PMD_FLX_MASK_ST20_AN37_EN, IXGBE_KRM_PMD_FLX_MASK_ST20_SGMII_EN, IXGBE_KRM_PMD_FLX_MASK_ST20_SPEED_AN, IXGBE_KRM_SGMII_CTRL, ixgbe_restart_an_internal_phy_x550em(), IXGBE_SB_IOSF_TARGET_KR_PHY, ixgbe_bus_info::lan_id, ixgbe_hw::mac, ixgbe_mac_info::ops, ixgbe_phy_info::ops, ixgbe_hw::phy, ixgbe_mac_operations::read_iosf_sb_reg, ixgbe_phy_operations::setup_link_speed, and ixgbe_mac_operations::write_iosf_sb_reg.
Referenced by ixgbe_init_mac_link_ops_X550em().
ixgbe_shutdown_fw_phy - Shutdown a firmware-controlled PHY @hw: pointer to hardware structure
Returns error code
Definition at line 514 of file ixgbe_x550.c.
References FW_PHY_ACT_DATA_COUNT, FW_PHY_ACT_FORCE_LINK_DOWN, FW_PHY_ACT_FORCE_LINK_DOWN_OFF, and ixgbe_fw_phy_activity().
Referenced by ixgbe_check_overtemp_fw().
ixgbe_supported_sfp_modules_X550em - Check if SFP module type is supported @hw: pointer to hardware structure @linear: true if SFP module is linear
Definition at line 1554 of file ixgbe_x550.c.
References DEBUGFUNC, IXGBE_ERR_SFP_NOT_PRESENT, IXGBE_ERR_SFP_NOT_SUPPORTED, ixgbe_sfp_type_1g_cu_core0, ixgbe_sfp_type_1g_cu_core1, ixgbe_sfp_type_1g_lx_core0, ixgbe_sfp_type_1g_lx_core1, ixgbe_sfp_type_1g_sx_core0, ixgbe_sfp_type_1g_sx_core1, ixgbe_sfp_type_da_act_lmt_core0, ixgbe_sfp_type_da_act_lmt_core1, ixgbe_sfp_type_da_cu_core0, ixgbe_sfp_type_da_cu_core1, ixgbe_sfp_type_not_present, ixgbe_sfp_type_srlr_core0, ixgbe_sfp_type_srlr_core1, ixgbe_sfp_type_unknown, IXGBE_SUCCESS, ixgbe_hw::phy, and ixgbe_phy_info::sfp_type.
Referenced by ixgbe_identify_sfp_module_X550em(), ixgbe_setup_mac_link_sfp_x550a(), ixgbe_setup_mac_link_sfp_x550em(), and ixgbe_setup_sfp_modules_X550em().
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().
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().
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().
ixgbe_write_cs4227 - Write CS4227 register @hw: pointer to hardware structure @reg: register number to write @value: value to write to register
Returns status code
Definition at line 127 of file ixgbe_x550.c.
References ixgbe_link_info::addr, ixgbe_hw::link, ixgbe_link_info::ops, and ixgbe_link_operations::write_link_unlocked.
Referenced by ixgbe_check_cs4227().
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().
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().
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().
|
static |
ixgbe_write_i2c_combined_generic - Perform I2C write combined operation @hw: pointer to the hardware structure @addr: I2C bus address to write to @reg: I2C device register to write to @val: value to write
Returns an error code on error.
Definition at line 576 of file ixgbe_x550.c.
References ixgbe_write_i2c_combined_generic_int().
Referenced by ixgbe_init_ops_X550EM_x().
|
static |
ixgbe_write_i2c_combined_generic_unlocked - Do I2C write combined operation @hw: pointer to the hardware structure @addr: I2C bus address to write to @reg: I2C device register to write to @val: value to write
Returns an error code on error.
Definition at line 592 of file ixgbe_x550.c.
References ixgbe_write_i2c_combined_generic_int().
Referenced by ixgbe_init_ops_X550EM_x().
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().
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().
ixgbe_write_pe - Write register to port expander @hw: pointer to hardware structure @reg: register number to write @value: value to write
Returns status code
Definition at line 159 of file ixgbe_x550.c.
References ERROR_REPORT2, IXGBE_ERROR_CAUTION, IXGBE_PE, IXGBE_SUCCESS, and ixgbe_write_i2c_byte_unlocked().
Referenced by ixgbe_reset_cs4227().
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().
|
static |
Definition at line 529 of file ixgbe_x550.c.
References IXGBE_NOT_IMPLEMENTED, and UNREFERENCED_4PARAMETER.
Referenced by ixgbe_init_phy_ops_X550em().
u16 fw_speed |
Definition at line 442 of file ixgbe_x550.c.
Referenced by ixgbe_get_phy_id_fw(), and ixgbe_setup_fw_link().
const struct { ... } ixgbe_fw_map[] |
Referenced by ixgbe_get_phy_id_fw(), and ixgbe_setup_fw_link().
ixgbe_link_speed phy_speed |
Definition at line 443 of file ixgbe_x550.c.
Referenced by ixgbe_check_phy_link_tnx().