Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/e1000/if_em.c
Show First 20 Lines • Show All 2,471 Lines • ▼ Show 20 Lines | |||||
**********************************************************************/ | **********************************************************************/ | ||||
static void | static void | ||||
em_reset(if_ctx_t ctx) | em_reset(if_ctx_t ctx) | ||||
{ | { | ||||
device_t dev = iflib_get_dev(ctx); | device_t dev = iflib_get_dev(ctx); | ||||
struct e1000_softc *sc = iflib_get_softc(ctx); | struct e1000_softc *sc = iflib_get_softc(ctx); | ||||
struct ifnet *ifp = iflib_get_ifp(ctx); | struct ifnet *ifp = iflib_get_ifp(ctx); | ||||
struct e1000_hw *hw = &sc->hw; | struct e1000_hw *hw = &sc->hw; | ||||
u16 rx_buffer_size; | u32 rx_buffer_size; | ||||
u32 pba; | u32 pba; | ||||
INIT_DEBUGOUT("em_reset: begin"); | INIT_DEBUGOUT("em_reset: begin"); | ||||
/* Let the firmware know the OS is in control */ | /* Let the firmware know the OS is in control */ | ||||
em_get_hw_control(sc); | em_get_hw_control(sc); | ||||
/* Set up smart power down as default off on newer adapters. */ | /* Set up smart power down as default off on newer adapters. */ | ||||
if (!em_smart_pwr_down && (hw->mac.type == e1000_82571 || | if (!em_smart_pwr_down && (hw->mac.type == e1000_82571 || | ||||
▲ Show 20 Lines • Show All 2,403 Lines • Show Last 20 Lines |