Lines 2183-2188
Link Here
|
2183 |
physical_layer |= IXGBE_PHYSICAL_LAYER_1000BASE_T; |
2183 |
physical_layer |= IXGBE_PHYSICAL_LAYER_1000BASE_T; |
2184 |
if (ext_ability & IXGBE_MDIO_PHY_100BASETX_ABILITY) |
2184 |
if (ext_ability & IXGBE_MDIO_PHY_100BASETX_ABILITY) |
2185 |
physical_layer |= IXGBE_PHYSICAL_LAYER_100BASE_TX; |
2185 |
physical_layer |= IXGBE_PHYSICAL_LAYER_100BASE_TX; |
|
|
2186 |
printf("phy.type set physical layer %u\n", physical_layer); |
2186 |
goto out; |
2187 |
goto out; |
2187 |
default: |
2188 |
default: |
2188 |
break; |
2189 |
break; |
Lines 2194-2199
Link Here
|
2194 |
if (pma_pmd_1g == IXGBE_AUTOC_1G_KX_BX) { |
2195 |
if (pma_pmd_1g == IXGBE_AUTOC_1G_KX_BX) { |
2195 |
physical_layer = IXGBE_PHYSICAL_LAYER_1000BASE_KX | |
2196 |
physical_layer = IXGBE_PHYSICAL_LAYER_1000BASE_KX | |
2196 |
IXGBE_PHYSICAL_LAYER_1000BASE_BX; |
2197 |
IXGBE_PHYSICAL_LAYER_1000BASE_BX; |
|
|
2198 |
printf("autoc_1g set physical layer %u\n", physical_layer); |
2197 |
goto out; |
2199 |
goto out; |
2198 |
} else |
2200 |
} else |
2199 |
/* SFI mode so read SFP module */ |
2201 |
/* SFI mode so read SFP module */ |
Lines 2206-2216
Link Here
|
2206 |
physical_layer = IXGBE_PHYSICAL_LAYER_10GBASE_KX4; |
2208 |
physical_layer = IXGBE_PHYSICAL_LAYER_10GBASE_KX4; |
2207 |
else if (pma_pmd_10g_parallel == IXGBE_AUTOC_10G_XAUI) |
2209 |
else if (pma_pmd_10g_parallel == IXGBE_AUTOC_10G_XAUI) |
2208 |
physical_layer = IXGBE_PHYSICAL_LAYER_10GBASE_XAUI; |
2210 |
physical_layer = IXGBE_PHYSICAL_LAYER_10GBASE_XAUI; |
|
|
2211 |
printf("autoc_10g set physical layer %u\n", physical_layer); |
2209 |
goto out; |
2212 |
goto out; |
2210 |
break; |
2213 |
break; |
2211 |
case IXGBE_AUTOC_LMS_10G_SERIAL: |
2214 |
case IXGBE_AUTOC_LMS_10G_SERIAL: |
2212 |
if (pma_pmd_10g_serial == IXGBE_AUTOC2_10G_KR) { |
2215 |
if (pma_pmd_10g_serial == IXGBE_AUTOC2_10G_KR) { |
2213 |
physical_layer = IXGBE_PHYSICAL_LAYER_10GBASE_KR; |
2216 |
physical_layer = IXGBE_PHYSICAL_LAYER_10GBASE_KR; |
|
|
2217 |
printf("autoc_10g_serial set physical layer %u\n", physical_layer); |
2214 |
goto out; |
2218 |
goto out; |
2215 |
} else if (pma_pmd_10g_serial == IXGBE_AUTOC2_10G_SFI) |
2219 |
} else if (pma_pmd_10g_serial == IXGBE_AUTOC2_10G_SFI) |
2216 |
goto sfp_check; |
2220 |
goto sfp_check; |
Lines 2223-2231
Link Here
|
2223 |
physical_layer |= IXGBE_PHYSICAL_LAYER_10GBASE_KX4; |
2227 |
physical_layer |= IXGBE_PHYSICAL_LAYER_10GBASE_KX4; |
2224 |
if (autoc & IXGBE_AUTOC_KR_SUPP) |
2228 |
if (autoc & IXGBE_AUTOC_KR_SUPP) |
2225 |
physical_layer |= IXGBE_PHYSICAL_LAYER_10GBASE_KR; |
2229 |
physical_layer |= IXGBE_PHYSICAL_LAYER_10GBASE_KR; |
|
|
2230 |
printf("autoc_LMS set physical layer %u\n", physical_layer); |
2226 |
goto out; |
2231 |
goto out; |
2227 |
break; |
2232 |
break; |
2228 |
default: |
2233 |
default: |
|
|
2234 |
printf("Unable to set physical layer %u\n", physical_layer); |
2229 |
goto out; |
2235 |
goto out; |
2230 |
break; |
2236 |
break; |
2231 |
} |
2237 |
} |
Lines 2235-2240
Link Here
|
2235 |
* test KR mode - we need to id KR mode correctly before SFP module. |
2241 |
* test KR mode - we need to id KR mode correctly before SFP module. |
2236 |
* Call identify_sfp because the pluggable module may have changed */ |
2242 |
* Call identify_sfp because the pluggable module may have changed */ |
2237 |
physical_layer = ixgbe_get_supported_phy_sfp_layer_generic(hw); |
2243 |
physical_layer = ixgbe_get_supported_phy_sfp_layer_generic(hw); |
|
|
2244 |
printf("phy_sfp_layer set physical layer %u\n", physical_layer); |
2238 |
out: |
2245 |
out: |
2239 |
return physical_layer; |
2246 |
return physical_layer; |
2240 |
} |
2247 |
} |