FreeBSD kernel IXGBE device code
|
#include "ixgbe_type.h"
Go to the source code of this file.
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().
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().
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().
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().
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().
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().
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().
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_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_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_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_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_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().
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().
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().
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_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_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_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().
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_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_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().
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().
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.
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().
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_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().
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_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().