Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/ena/ena.h
Show First 20 Lines • Show All 52 Lines • ▼ Show 20 Lines | |||||
#endif | #endif | ||||
#define DEVICE_NAME "Elastic Network Adapter (ENA)" | #define DEVICE_NAME "Elastic Network Adapter (ENA)" | ||||
#define DEVICE_DESC "ENA adapter" | #define DEVICE_DESC "ENA adapter" | ||||
/* Calculate DMA mask - width for ena cannot exceed 48, so it is safe */ | /* Calculate DMA mask - width for ena cannot exceed 48, so it is safe */ | ||||
#define ENA_DMA_BIT_MASK(x) ((1ULL << (x)) - 1ULL) | #define ENA_DMA_BIT_MASK(x) ((1ULL << (x)) - 1ULL) | ||||
/* 1 for AENQ + ADMIN */ | /* 1 for AENQ + ADMIN */ | ||||
#define ENA_MAX_MSIX_VEC(io_queues) (1 + (io_queues)) | #define ENA_ADMIN_MSIX_VEC 1 | ||||
#define ENA_MAX_MSIX_VEC(io_queues) (ENA_ADMIN_MSIX_VEC + (io_queues)) | |||||
#define ENA_REG_BAR 0 | #define ENA_REG_BAR 0 | ||||
#define ENA_MEM_BAR 2 | #define ENA_MEM_BAR 2 | ||||
#define ENA_BUS_DMA_SEGS 32 | #define ENA_BUS_DMA_SEGS 32 | ||||
#define ENA_DEFAULT_RING_SIZE 1024 | #define ENA_DEFAULT_RING_SIZE 1024 | ||||
#define ENA_DEFAULT_SMALL_PACKET_LEN 128 | #define ENA_DEFAULT_SMALL_PACKET_LEN 128 | ||||
▲ Show 20 Lines • Show All 358 Lines • Show Last 20 Lines |