Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/ixgbe/ixgbe_82598.c
Show First 20 Lines • Show All 544 Lines • ▼ Show 20 Lines | |||||
out: | out: | ||||
return ret_val; | return ret_val; | ||||
} | } | ||||
/** | /** | ||||
* ixgbe_start_mac_link_82598 - Configures MAC link settings | * ixgbe_start_mac_link_82598 - Configures MAC link settings | ||||
* @hw: pointer to hardware structure | * @hw: pointer to hardware structure | ||||
* @autoneg_wait_to_complete: TRUE when waiting for completion is needed | |||||
* | * | ||||
* Configures link settings based on values in the ixgbe_hw struct. | * Configures link settings based on values in the ixgbe_hw struct. | ||||
* Restarts the link. Performs autonegotiation if needed. | * Restarts the link. Performs autonegotiation if needed. | ||||
**/ | **/ | ||||
static s32 ixgbe_start_mac_link_82598(struct ixgbe_hw *hw, | static s32 ixgbe_start_mac_link_82598(struct ixgbe_hw *hw, | ||||
bool autoneg_wait_to_complete) | bool autoneg_wait_to_complete) | ||||
{ | { | ||||
u32 autoc_reg; | u32 autoc_reg; | ||||
▲ Show 20 Lines • Show All 641 Lines • ▼ Show 20 Lines | s32 ixgbe_read_i2c_eeprom_82598(struct ixgbe_hw *hw, u8 byte_offset, | ||||
return ixgbe_read_i2c_phy_82598(hw, IXGBE_I2C_EEPROM_DEV_ADDR, | return ixgbe_read_i2c_phy_82598(hw, IXGBE_I2C_EEPROM_DEV_ADDR, | ||||
byte_offset, eeprom_data); | byte_offset, eeprom_data); | ||||
} | } | ||||
/** | /** | ||||
* ixgbe_read_i2c_sff8472_82598 - Reads 8 bit word over I2C interface. | * ixgbe_read_i2c_sff8472_82598 - Reads 8 bit word over I2C interface. | ||||
* @hw: pointer to hardware structure | * @hw: pointer to hardware structure | ||||
* @byte_offset: byte offset at address 0xA2 | * @byte_offset: byte offset at address 0xA2 | ||||
* @eeprom_data: value read | * @sff8472_data: value read | ||||
* | * | ||||
* Performs 8 byte read operation to SFP module's SFF-8472 data over I2C | * Performs 8 byte read operation to SFP module's SFF-8472 data over I2C | ||||
**/ | **/ | ||||
static s32 ixgbe_read_i2c_sff8472_82598(struct ixgbe_hw *hw, u8 byte_offset, | static s32 ixgbe_read_i2c_sff8472_82598(struct ixgbe_hw *hw, u8 byte_offset, | ||||
u8 *sff8472_data) | u8 *sff8472_data) | ||||
{ | { | ||||
return ixgbe_read_i2c_phy_82598(hw, IXGBE_I2C_EEPROM_DEV_ADDR2, | return ixgbe_read_i2c_phy_82598(hw, IXGBE_I2C_EEPROM_DEV_ADDR2, | ||||
byte_offset, sff8472_data); | byte_offset, sff8472_data); | ||||
▲ Show 20 Lines • Show All 223 Lines • Show Last 20 Lines |