Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/ixgbe/if_ix.c
Show First 20 Lines • Show All 386 Lines • ▼ Show 20 Lines | static struct if_shared_ctx ixgbe_sctx_init = { | ||||
.isc_nrxd_min = {MIN_RXD}, | .isc_nrxd_min = {MIN_RXD}, | ||||
.isc_ntxd_min = {MIN_TXD}, | .isc_ntxd_min = {MIN_TXD}, | ||||
.isc_nrxd_max = {MAX_RXD}, | .isc_nrxd_max = {MAX_RXD}, | ||||
.isc_ntxd_max = {MAX_TXD}, | .isc_ntxd_max = {MAX_TXD}, | ||||
.isc_nrxd_default = {DEFAULT_RXD}, | .isc_nrxd_default = {DEFAULT_RXD}, | ||||
.isc_ntxd_default = {DEFAULT_TXD}, | .isc_ntxd_default = {DEFAULT_TXD}, | ||||
}; | }; | ||||
if_shared_ctx_t ixgbe_sctx = &ixgbe_sctx_init; | |||||
/************************************************************************ | /************************************************************************ | ||||
* ixgbe_if_tx_queues_alloc | * ixgbe_if_tx_queues_alloc | ||||
************************************************************************/ | ************************************************************************/ | ||||
static int | static int | ||||
ixgbe_if_tx_queues_alloc(if_ctx_t ctx, caddr_t *vaddrs, uint64_t *paddrs, | ixgbe_if_tx_queues_alloc(if_ctx_t ctx, caddr_t *vaddrs, uint64_t *paddrs, | ||||
int ntxqs, int ntxqsets) | int ntxqs, int ntxqsets) | ||||
{ | { | ||||
struct adapter *adapter = iflib_get_softc(ctx); | struct adapter *adapter = iflib_get_softc(ctx); | ||||
▲ Show 20 Lines • Show All 445 Lines • ▼ Show 20 Lines | |||||
} /* ixgbe_initialize_transmit_units */ | } /* ixgbe_initialize_transmit_units */ | ||||
/************************************************************************ | /************************************************************************ | ||||
* ixgbe_register | * ixgbe_register | ||||
************************************************************************/ | ************************************************************************/ | ||||
static void * | static void * | ||||
ixgbe_register(device_t dev) | ixgbe_register(device_t dev) | ||||
{ | { | ||||
return (ixgbe_sctx); | return (&ixgbe_sctx_init); | ||||
} /* ixgbe_register */ | } /* ixgbe_register */ | ||||
/************************************************************************ | /************************************************************************ | ||||
* ixgbe_if_attach_pre - Device initialization routine, part 1 | * ixgbe_if_attach_pre - Device initialization routine, part 1 | ||||
* | * | ||||
* Called when the driver is being loaded. | * Called when the driver is being loaded. | ||||
* Identifies the type of hardware, initializes the hardware, | * Identifies the type of hardware, initializes the hardware, | ||||
* and initializes iflib structures. | * and initializes iflib structures. | ||||
▲ Show 20 Lines • Show All 3,739 Lines • Show Last 20 Lines |