Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/e1000/if_em.c
Show First 20 Lines • Show All 711 Lines • ▼ Show 20 Lines | em_if_attach_pre(if_ctx_t ctx) | ||||
dev = iflib_get_dev(ctx); | dev = iflib_get_dev(ctx); | ||||
adapter = iflib_get_softc(ctx); | adapter = iflib_get_softc(ctx); | ||||
if (resource_disabled("em", device_get_unit(dev))) { | if (resource_disabled("em", device_get_unit(dev))) { | ||||
device_printf(dev, "Disabled by device hint\n"); | device_printf(dev, "Disabled by device hint\n"); | ||||
return (ENXIO); | return (ENXIO); | ||||
} | } | ||||
adapter->ctx = ctx; | adapter->ctx = adapter->osdep.ctx = ctx; | ||||
adapter->dev = adapter->osdep.dev = dev; | adapter->dev = adapter->osdep.dev = dev; | ||||
scctx = adapter->shared = iflib_get_softc_ctx(ctx); | scctx = adapter->shared = iflib_get_softc_ctx(ctx); | ||||
adapter->media = iflib_get_media(ctx); | adapter->media = iflib_get_media(ctx); | ||||
hw = &adapter->hw; | hw = &adapter->hw; | ||||
adapter->tx_process_limit = scctx->isc_ntxd[0]; | adapter->tx_process_limit = scctx->isc_ntxd[0]; | ||||
/* SYSCTL stuff */ | /* SYSCTL stuff */ | ||||
▲ Show 20 Lines • Show All 3,801 Lines • Show Last 20 Lines |