Changeset View
Changeset View
Standalone View
Standalone View
sys/net/iflib.h
Show First 20 Lines • Show All 187 Lines • ▼ Show 20 Lines | typedef struct if_txrx { | ||||
void (*ift_rxd_flush) (void *, uint16_t qsidx, uint8_t flidx, qidx_t pidx); | void (*ift_rxd_flush) (void *, uint16_t qsidx, uint8_t flidx, qidx_t pidx); | ||||
int (*ift_legacy_intr) (void *); | int (*ift_legacy_intr) (void *); | ||||
} *if_txrx_t; | } *if_txrx_t; | ||||
typedef struct if_softc_ctx { | typedef struct if_softc_ctx { | ||||
int isc_vectors; | int isc_vectors; | ||||
int isc_nrxqsets; | int isc_nrxqsets; | ||||
int isc_ntxqsets; | int isc_ntxqsets; | ||||
uint16_t __spare0__; | uint8_t isc_tx_irq; | ||||
uint8_t __spare0__; | |||||
uint32_t __spare1__; | uint32_t __spare1__; | ||||
int isc_msix_bar; /* can be model specific - initialize in attach_pre */ | int isc_msix_bar; /* can be model specific - initialize in attach_pre */ | ||||
int isc_tx_nsegments; /* can be model specific - initialize in attach_pre */ | int isc_tx_nsegments; /* can be model specific - initialize in attach_pre */ | ||||
int isc_ntxd[8]; | int isc_ntxd[8]; | ||||
int isc_nrxd[8]; | int isc_nrxd[8]; | ||||
uint32_t isc_txqsizes[8]; | uint32_t isc_txqsizes[8]; | ||||
uint32_t isc_rxqsizes[8]; | uint32_t isc_rxqsizes[8]; | ||||
▲ Show 20 Lines • Show All 210 Lines • ▼ Show 20 Lines | |||||
enum iflib_restart_event { | enum iflib_restart_event { | ||||
IFLIB_RESTART_VLAN_CONFIG, | IFLIB_RESTART_VLAN_CONFIG, | ||||
}; | }; | ||||
/* | /* | ||||
* field accessors | * field accessors | ||||
*/ | */ | ||||
void *iflib_get_softc(if_ctx_t ctx); | void *iflib_get_softc(if_ctx_t ctx); | ||||
device_t iflib_get_dev(if_ctx_t ctx); | device_t iflib_get_dev(if_ctx_t ctx); | ||||
if_t iflib_get_ifp(if_ctx_t ctx); | if_t iflib_get_ifp(if_ctx_t ctx); | ||||
struct ifmedia *iflib_get_media(if_ctx_t ctx); | struct ifmedia *iflib_get_media(if_ctx_t ctx); | ||||
if_softc_ctx_t iflib_get_softc_ctx(if_ctx_t ctx); | if_softc_ctx_t iflib_get_softc_ctx(if_ctx_t ctx); | ||||
if_shared_ctx_t iflib_get_sctx(if_ctx_t ctx); | if_shared_ctx_t iflib_get_sctx(if_ctx_t ctx); | ||||
uint32_t iflib_get_rx_mbuf_sz(if_ctx_t ctx); | |||||
void iflib_set_mac(if_ctx_t ctx, uint8_t mac[ETHER_ADDR_LEN]); | void iflib_set_mac(if_ctx_t ctx, uint8_t mac[ETHER_ADDR_LEN]); | ||||
void iflib_request_reset(if_ctx_t ctx); | void iflib_request_reset(if_ctx_t ctx); | ||||
uint8_t iflib_in_detach(if_ctx_t ctx); | uint8_t iflib_in_detach(if_ctx_t ctx); | ||||
void iflib_enable_tx_irq(if_ctx_t ctx); | |||||
uint32_t iflib_get_rx_mbuf_sz(if_ctx_t ctx); | |||||
/* | /* | ||||
* If the driver can plug cleanly in to newbus use these | * If the driver can plug cleanly in to newbus use these | ||||
*/ | */ | ||||
int iflib_device_probe(device_t); | int iflib_device_probe(device_t); | ||||
int iflib_device_attach(device_t); | int iflib_device_attach(device_t); | ||||
int iflib_device_detach(device_t); | int iflib_device_detach(device_t); | ||||
int iflib_device_suspend(device_t); | int iflib_device_suspend(device_t); | ||||
▲ Show 20 Lines • Show All 64 Lines • Show Last 20 Lines |