Changeset View
Changeset View
Standalone View
Standalone View
sys/net/iflib.h
Show First 20 Lines • Show All 240 Lines • ▼ Show 20 Lines | struct if_shared_ctx { | ||||
bus_size_t isc_rx_maxsize; | bus_size_t isc_rx_maxsize; | ||||
bus_size_t isc_rx_maxsegsize; | bus_size_t isc_rx_maxsegsize; | ||||
int isc_rx_nsegments; | int isc_rx_nsegments; | ||||
int isc_admin_intrcnt; /* # of admin/link interrupts */ | int isc_admin_intrcnt; /* # of admin/link interrupts */ | ||||
/* fields necessary for probe */ | /* fields necessary for probe */ | ||||
pci_vendor_info_t *isc_vendor_info; | pci_vendor_info_t *isc_vendor_info; | ||||
char *isc_driver_version; | char *isc_driver_version; | ||||
/* optional function to transform the read values to match the table*/ | /* optional function to transform the read values to match the table*/ | ||||
void (*isc_parse_devinfo) (uint16_t *device_id, uint16_t *subvendor_id, | void (*isc_parse_devinfo) (uint16_t *device_id, uint16_t *subvendor_id, | ||||
uint16_t *subdevice_id, uint16_t *rev_id); | uint16_t *subdevice_id, uint16_t *rev_id); | ||||
int isc_nrxd_min[8]; | int isc_nrxd_min[8]; | ||||
int isc_nrxd_default[8]; | int isc_nrxd_default[8]; | ||||
int isc_nrxd_max[8]; | int isc_nrxd_max[8]; | ||||
int isc_ntxd_min[8]; | int isc_ntxd_min[8]; | ||||
int isc_ntxd_default[8]; | int isc_ntxd_default[8]; | ||||
int isc_ntxd_max[8]; | int isc_ntxd_max[8]; | ||||
▲ Show 20 Lines • Show All 112 Lines • ▼ Show 20 Lines | |||||
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); | ||||
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); | |||||
uint8_t iflib_in_detach(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 |