Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/ena/ena.h
Show First 20 Lines • Show All 170 Lines • ▼ Show 20 Lines | enum ena_flags_t { | ||||
ENA_FLAG_RSS_ACTIVE, | ENA_FLAG_RSS_ACTIVE, | ||||
ENA_FLAGS_NUMBER = ENA_FLAG_RSS_ACTIVE | ENA_FLAGS_NUMBER = ENA_FLAG_RSS_ACTIVE | ||||
}; | }; | ||||
BITSET_DEFINE(_ena_state, ENA_FLAGS_NUMBER); | BITSET_DEFINE(_ena_state, ENA_FLAGS_NUMBER); | ||||
typedef struct _ena_state ena_state_t; | typedef struct _ena_state ena_state_t; | ||||
#define ENA_FLAG_ZERO(adapter) \ | #define ENA_FLAG_ZERO(adapter) \ | ||||
BIT_ZERO(ENA_FLAGS_NUMBER, &(adapter)->flags) | __BIT_ZERO(ENA_FLAGS_NUMBER, &(adapter)->flags) | ||||
#define ENA_FLAG_ISSET(bit, adapter) \ | #define ENA_FLAG_ISSET(bit, adapter) \ | ||||
BIT_ISSET(ENA_FLAGS_NUMBER, (bit), &(adapter)->flags) | __BIT_ISSET(ENA_FLAGS_NUMBER, (bit), &(adapter)->flags) | ||||
#define ENA_FLAG_SET_ATOMIC(bit, adapter) \ | #define ENA_FLAG_SET_ATOMIC(bit, adapter) \ | ||||
BIT_SET_ATOMIC(ENA_FLAGS_NUMBER, (bit), &(adapter)->flags) | __BIT_SET_ATOMIC(ENA_FLAGS_NUMBER, (bit), &(adapter)->flags) | ||||
#define ENA_FLAG_CLEAR_ATOMIC(bit, adapter) \ | #define ENA_FLAG_CLEAR_ATOMIC(bit, adapter) \ | ||||
BIT_CLR_ATOMIC(ENA_FLAGS_NUMBER, (bit), &(adapter)->flags) | __BIT_CLR_ATOMIC(ENA_FLAGS_NUMBER, (bit), &(adapter)->flags) | ||||
markj: Is this file included by userspace? | |||||
Done Inline ActionsI had added this patch due to compiler errors, but apparently it is not required (anymore). se: I had added this patch due to compiler errors, but apparently it is not required (anymore). | |||||
struct msix_entry { | struct msix_entry { | ||||
int entry; | int entry; | ||||
int vector; | int vector; | ||||
}; | }; | ||||
typedef struct _ena_vendor_info_t { | typedef struct _ena_vendor_info_t { | ||||
uint16_t vendor_id; | uint16_t vendor_id; | ||||
▲ Show 20 Lines • Show All 343 Lines • Show Last 20 Lines |
Is this file included by userspace?