Changeset View
Changeset View
Standalone View
Standalone View
sys/net/iflib.h
Show First 20 Lines • Show All 222 Lines • ▼ Show 20 Lines | typedef struct if_softc_ctx { | ||||
iflib_intr_mode_t isc_intr; | iflib_intr_mode_t isc_intr; | ||||
uint16_t isc_max_frame_size; /* set at init time by driver */ | uint16_t isc_max_frame_size; /* set at init time by driver */ | ||||
uint16_t isc_min_frame_size; /* set at init time by driver, only used if | uint16_t isc_min_frame_size; /* set at init time by driver, only used if | ||||
IFLIB_NEED_ETHER_PAD is set. */ | IFLIB_NEED_ETHER_PAD is set. */ | ||||
uint32_t isc_pause_frames; /* set by driver for iflib_timer to detect */ | uint32_t isc_pause_frames; /* set by driver for iflib_timer to detect */ | ||||
pci_vendor_info_t isc_vendor_info; /* set by iflib prior to attach_pre */ | pci_vendor_info_t isc_vendor_info; /* set by iflib prior to attach_pre */ | ||||
int isc_disable_msix; | int isc_disable_msix; | ||||
if_txrx_t isc_txrx; | if_txrx_t isc_txrx; | ||||
struct ifmedia *isc_media; | |||||
} *if_softc_ctx_t; | } *if_softc_ctx_t; | ||||
/* | /* | ||||
* Initialization values for device | * Initialization values for device | ||||
*/ | */ | ||||
struct if_shared_ctx { | struct if_shared_ctx { | ||||
unsigned isc_magic; | unsigned isc_magic; | ||||
driver_t *isc_driver; | driver_t *isc_driver; | ||||
bus_size_t isc_q_align; | bus_size_t isc_q_align; | ||||
bus_size_t isc_tx_maxsize; | bus_size_t isc_tx_maxsize; | ||||
▲ Show 20 Lines • Show All 115 Lines • ▼ Show 20 Lines | |||||
/* | /* | ||||
* autogenerate a MAC address | * autogenerate a MAC address | ||||
*/ | */ | ||||
#define IFLIB_GEN_MAC 0x08000 | #define IFLIB_GEN_MAC 0x08000 | ||||
/* | /* | ||||
* Interface needs admin task to ignore interface up/down status | * Interface needs admin task to ignore interface up/down status | ||||
*/ | */ | ||||
#define IFLIB_ADMIN_ALWAYS_RUN 0x10000 | #define IFLIB_ADMIN_ALWAYS_RUN 0x10000 | ||||
/* | |||||
* Driver will pass the media | |||||
*/ | |||||
#define IFLIB_DRIVER_MEDIA 0x20000 | |||||
/* | /* | ||||
* 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); | ||||
▲ Show 20 Lines • Show All 86 Lines • Show Last 20 Lines |