Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/bnxt/if_bnxt.c
Show First 20 Lines • Show All 321 Lines • ▼ Show 20 Lines | .isc_ntxd_default = {PAGE_SIZE / sizeof(struct cmpl_base) * 2, | ||||
PAGE_SIZE / sizeof(struct tx_bd_short)}, | PAGE_SIZE / sizeof(struct tx_bd_short)}, | ||||
.isc_ntxd_max = {BNXT_MAX_TXD, BNXT_MAX_TXD, BNXT_MAX_TXD}, | .isc_ntxd_max = {BNXT_MAX_TXD, BNXT_MAX_TXD, BNXT_MAX_TXD}, | ||||
.isc_admin_intrcnt = 1, | .isc_admin_intrcnt = 1, | ||||
.isc_vendor_info = bnxt_vendor_info_array, | .isc_vendor_info = bnxt_vendor_info_array, | ||||
.isc_driver_version = bnxt_driver_version, | .isc_driver_version = bnxt_driver_version, | ||||
}; | }; | ||||
if_shared_ctx_t bnxt_sctx = &bnxt_sctx_init; | |||||
/* | /* | ||||
* Device Methods | * Device Methods | ||||
*/ | */ | ||||
static void * | static void * | ||||
bnxt_register(device_t dev) | bnxt_register(device_t dev) | ||||
{ | { | ||||
return bnxt_sctx; | return (&bnxt_sctx_init); | ||||
} | } | ||||
/* | /* | ||||
* Device Dependent Configuration Functions | * Device Dependent Configuration Functions | ||||
*/ | */ | ||||
/* Soft queue setup and teardown */ | /* Soft queue setup and teardown */ | ||||
static int | static int | ||||
▲ Show 20 Lines • Show All 2,160 Lines • Show Last 20 Lines |