Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/e1000/e1000_82543.c
Show First 20 Lines • Show All 1,304 Lines • ▼ Show 20 Lines | if (speed != SPEED_1000) { | ||||
E1000_WRITE_REG(hw, E1000_RCTL, rctl); | E1000_WRITE_REG(hw, E1000_RCTL, rctl); | ||||
} | } | ||||
} else { | } else { | ||||
/* | /* | ||||
* If TBI compatibility is was previously off, | * If TBI compatibility is was previously off, | ||||
* turn it on. For compatibility with a TBI link | * turn it on. For compatibility with a TBI link | ||||
* partner, we will store bad packets. Some | * partner, we will store bad packets. Some | ||||
* frames have an additional byte on the end and | * frames have an additional byte on the end and | ||||
* will look like CRC errors to to the hardware. | * will look like CRC errors to the hardware. | ||||
*/ | */ | ||||
if (!e1000_tbi_sbp_enabled_82543(hw)) { | if (!e1000_tbi_sbp_enabled_82543(hw)) { | ||||
e1000_set_tbi_sbp_82543(hw, TRUE); | e1000_set_tbi_sbp_82543(hw, TRUE); | ||||
rctl = E1000_READ_REG(hw, E1000_RCTL); | rctl = E1000_READ_REG(hw, E1000_RCTL); | ||||
rctl |= E1000_RCTL_SBP; | rctl |= E1000_RCTL_SBP; | ||||
E1000_WRITE_REG(hw, E1000_RCTL, rctl); | E1000_WRITE_REG(hw, E1000_RCTL, rctl); | ||||
} | } | ||||
} | } | ||||
▲ Show 20 Lines • Show All 276 Lines • Show Last 20 Lines |