Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/ixgbe/ixgbe_phy.c
Show First 20 Lines • Show All 1,430 Lines • ▼ Show 20 Lines | if (identifier != IXGBE_SFF_IDENTIFIER_SFP) { | ||||
if (hw->phy.sfp_type != stored_sfp_type) | if (hw->phy.sfp_type != stored_sfp_type) | ||||
hw->phy.sfp_setup_needed = true; | hw->phy.sfp_setup_needed = true; | ||||
/* Determine if the SFP+ PHY is dual speed or not. */ | /* Determine if the SFP+ PHY is dual speed or not. */ | ||||
hw->phy.multispeed_fiber = false; | hw->phy.multispeed_fiber = false; | ||||
if (((comp_codes_1g & IXGBE_SFF_1GBASESX_CAPABLE) && | if (((comp_codes_1g & IXGBE_SFF_1GBASESX_CAPABLE) && | ||||
(comp_codes_10g & IXGBE_SFF_10GBASESR_CAPABLE)) || | (comp_codes_10g & IXGBE_SFF_10GBASESR_CAPABLE)) || | ||||
((comp_codes_1g & IXGBE_SFF_1GBASELX_CAPABLE) && | ((comp_codes_1g & IXGBE_SFF_1GBASELX_CAPABLE) && | ||||
(comp_codes_10g & IXGBE_SFF_10GBASELR_CAPABLE))) | (comp_codes_10g & IXGBE_SFF_10GBASELR_CAPABLE)) || | ||||
(cable_tech & IXGBE_SFF_DA_PASSIVE_CABLE)) | |||||
hw->phy.multispeed_fiber = true; | hw->phy.multispeed_fiber = true; | ||||
/* Determine PHY vendor */ | /* Determine PHY vendor */ | ||||
if (hw->phy.type != ixgbe_phy_nl) { | if (hw->phy.type != ixgbe_phy_nl) { | ||||
hw->phy.id = identifier; | hw->phy.id = identifier; | ||||
status = hw->phy.ops.read_i2c_eeprom(hw, | status = hw->phy.ops.read_i2c_eeprom(hw, | ||||
IXGBE_SFF_VENDOR_OUI_BYTE0, | IXGBE_SFF_VENDOR_OUI_BYTE0, | ||||
&oui_bytes[0]); | &oui_bytes[0]); | ||||
▲ Show 20 Lines • Show All 1,254 Lines • Show Last 20 Lines |