Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/e1000/e1000_phy.c
Show First 20 Lines • Show All 1,821 Lines • ▼ Show 20 Lines | if (phy->type != e1000_phy_i210) { | ||||
if (ret_val) | if (ret_val) | ||||
return ret_val; | return ret_val; | ||||
phy_data &= ~M88E1000_PSCR_AUTO_X_MODE; | phy_data &= ~M88E1000_PSCR_AUTO_X_MODE; | ||||
ret_val = phy->ops.write_reg(hw, M88E1000_PHY_SPEC_CTRL, | ret_val = phy->ops.write_reg(hw, M88E1000_PHY_SPEC_CTRL, | ||||
phy_data); | phy_data); | ||||
if (ret_val) | if (ret_val) | ||||
return ret_val; | return ret_val; | ||||
} | |||||
DEBUGOUT1("M88E1000 PSCR: %X\n", phy_data); | DEBUGOUT1("M88E1000 PSCR: %X\n", phy_data); | ||||
} | |||||
ret_val = phy->ops.read_reg(hw, PHY_CONTROL, &phy_data); | ret_val = phy->ops.read_reg(hw, PHY_CONTROL, &phy_data); | ||||
if (ret_val) | if (ret_val) | ||||
return ret_val; | return ret_val; | ||||
e1000_phy_force_speed_duplex_setup(hw, &phy_data); | e1000_phy_force_speed_duplex_setup(hw, &phy_data); | ||||
ret_val = phy->ops.write_reg(hw, PHY_CONTROL, phy_data); | ret_val = phy->ops.write_reg(hw, PHY_CONTROL, phy_data); | ||||
▲ Show 20 Lines • Show All 2,413 Lines • Show Last 20 Lines |