2023年10月4日 星期三

sfp linux kernel code

 xgbe_phy_sfp_read_eeprom()->

/* Check for an added or changed SFP */

if (memcmp(&phy_data->sfp_eeprom, &sfp_eeprom, sizeof(sfp_eeprom)))  ->

xgbe_phy_sfp_parse_eeprom()->


if (phy_data->sfp_cable != XGBE_SFP_CABLE_FIBER &&

    xgbe_phy_sfp_bit_rate(sfp_eeprom, XGBE_SFP_SPEED_10000))

phy_data->sfp_base = XGBE_SFP_BASE_10000_CR;  ->

xgbe_phy_sfp_phy_settings() ->

case XGBE_SFP_BASE_10000_CR:

XGBE_SET_SUP(lks, 10000baseCR_Full);  ->



vim xgbe/xgbe-phy-v2.c

xgbe_phy_sfp_phy_settings

XGBE_SET_SUP 可以設定速度


沒有留言:

張貼留言