Changeset View
Changeset View
Standalone View
Standalone View
sys/net/iflib.h
Show First 20 Lines • Show All 282 Lines • ▼ Show 20 Lines | typedef struct iflib_dma_info { | ||||
bus_dma_tag_t idi_tag; | bus_dma_tag_t idi_tag; | ||||
bus_dmamap_t idi_map; | bus_dmamap_t idi_map; | ||||
uint32_t idi_size; | uint32_t idi_size; | ||||
} *iflib_dma_info_t; | } *iflib_dma_info_t; | ||||
#define IFLIB_MAGIC 0xCAFEF00D | #define IFLIB_MAGIC 0xCAFEF00D | ||||
typedef enum { | typedef enum { | ||||
/* Interrupt or softirq handles only receive */ | |||||
IFLIB_INTR_RX, | IFLIB_INTR_RX, | ||||
/* Interrupt or softirq handles only transmit */ | |||||
IFLIB_INTR_TX, | IFLIB_INTR_TX, | ||||
/* | |||||
* Interrupt will check for both pending receive | |||||
* and available tx credits and dispatch a task | |||||
* for one or both depending on the disposition | |||||
* of the respective queues. | |||||
*/ | |||||
IFLIB_INTR_RXTX, | IFLIB_INTR_RXTX, | ||||
/* | |||||
* Other interrupt - typically link status and | |||||
* or error conditions. | |||||
*/ | |||||
IFLIB_INTR_ADMIN, | IFLIB_INTR_ADMIN, | ||||
/* Softirq (task) for iov handling */ | |||||
IFLIB_INTR_IOV, | IFLIB_INTR_IOV, | ||||
} iflib_intr_type_t; | } iflib_intr_type_t; | ||||
/* | /* | ||||
* Interface has a separate completion queue for RX | * Interface has a separate completion queue for RX | ||||
*/ | */ | ||||
#define IFLIB_HAS_RXCQ 0x01 | #define IFLIB_HAS_RXCQ 0x01 | ||||
/* | /* | ||||
▲ Show 20 Lines • Show All 179 Lines • Show Last 20 Lines |