Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/ixgbe/ixgbe_phy.c
Show First 20 Lines • Show All 1,485 Lines • ▼ Show 20 Lines | if (hw->phy.type != ixgbe_phy_nl) { | ||||
break; | break; | ||||
case IXGBE_SFF_VENDOR_OUI_AVAGO: | case IXGBE_SFF_VENDOR_OUI_AVAGO: | ||||
hw->phy.type = ixgbe_phy_sfp_avago; | hw->phy.type = ixgbe_phy_sfp_avago; | ||||
break; | break; | ||||
case IXGBE_SFF_VENDOR_OUI_INTEL: | case IXGBE_SFF_VENDOR_OUI_INTEL: | ||||
hw->phy.type = ixgbe_phy_sfp_intel; | hw->phy.type = ixgbe_phy_sfp_intel; | ||||
break; | break; | ||||
default: | default: | ||||
if (cable_tech & IXGBE_SFF_DA_PASSIVE_CABLE) | |||||
hw->phy.type = | |||||
ixgbe_phy_sfp_passive_unknown; | |||||
else if (cable_tech & IXGBE_SFF_DA_ACTIVE_CABLE) | |||||
hw->phy.type = | |||||
ixgbe_phy_sfp_active_unknown; | |||||
else | |||||
hw->phy.type = ixgbe_phy_sfp_unknown; | hw->phy.type = ixgbe_phy_sfp_unknown; | ||||
break; | break; | ||||
} | } | ||||
} | } | ||||
/* Allow any DA cable vendor */ | /* Allow any DA cable vendor */ | ||||
if (cable_tech & (IXGBE_SFF_DA_PASSIVE_CABLE | | if (cable_tech & (IXGBE_SFF_DA_PASSIVE_CABLE | | ||||
IXGBE_SFF_DA_ACTIVE_CABLE)) { | IXGBE_SFF_DA_ACTIVE_CABLE)) { | ||||
if (cable_tech & IXGBE_SFF_DA_PASSIVE_CABLE) | |||||
hw->phy.type = ixgbe_phy_sfp_passive_unknown; | |||||
else if (cable_tech & IXGBE_SFF_DA_ACTIVE_CABLE) | |||||
hw->phy.type = ixgbe_phy_sfp_active_unknown; | |||||
status = IXGBE_SUCCESS; | status = IXGBE_SUCCESS; | ||||
goto out; | goto out; | ||||
} | } | ||||
/* Verify supported 1G SFP modules */ | /* Verify supported 1G SFP modules */ | ||||
if (comp_codes_10g == 0 && | if (comp_codes_10g == 0 && | ||||
!(hw->phy.sfp_type == ixgbe_sfp_type_1g_cu_core1 || | !(hw->phy.sfp_type == ixgbe_sfp_type_1g_cu_core1 || | ||||
hw->phy.sfp_type == ixgbe_sfp_type_1g_cu_core0 || | hw->phy.sfp_type == ixgbe_sfp_type_1g_cu_core0 || | ||||
▲ Show 20 Lines • Show All 1,180 Lines • Show Last 20 Lines |