31#define DIV_ROUND_UP(n,d) (((n) + (d) - 1) / (d))
32#define BITS_PER_BYTE 8
33#define BITS_TO_LONGS(nr) DIV_ROUND_UP(nr, BITS_PER_BYTE * sizeof(long))
34#define BIT(nr) (1UL << (nr))
37 typeof(x) _min1 = (x); \
38 typeof(y) _min2 = (y); \
39 (void) (&_min1 == &_min2); \
40 _min1 < _min2 ? _min1 : _min2; })
42 typeof(x) _max1 = (x); \
43 typeof(y) _max2 = (y); \
44 (void) (&_max1 == &_max2); \
45 _max1 > _max2 ? _max1 : _max2; })
48 if (sizeof(x) == sizeof(long)) { \
50 ret = (__x < 0) ? -__x : __x; \
53 ret = (__x < 0) ? -__x : __x; \
58#define ___constant_swab16(x) ((uint16_t)( \
59 (((uint16_t)(x) & (uint16_t)0x00ffU) << 8) | \
60 (((uint16_t)(x) & (uint16_t)0xff00U) >> 8)))
61#define ___constant_swab32(x) ((uint32_t)( \
62 (((uint32_t)(x) & (uint32_t)0x000000ffUL) << 24) | \
63 (((uint32_t)(x) & (uint32_t)0x0000ff00UL) << 8) | \
64 (((uint32_t)(x) & (uint32_t)0x00ff0000UL) >> 8) | \
65 (((uint32_t)(x) & (uint32_t)0xff000000UL) >> 24)))
66#define __swab16(x) ___constant_swab16(x)
67#define __swab32(x) ___constant_swab32(x)
68#define swab16 __swab16
69#define swab32 __swab32
79 return p[0] | p[1] << 8;
83 return p[0] | p[1] << 8 | p[2] << 16 | p[3] << 24;
103#define ATH_KEYMAX 128
pseudo_bit_t value[0x00020]
int32_t ath_hw_get_listen_time(struct ath_common *common)
static int32_t sign_extend32(uint32_t value, int index)
static u16 get_unaligned_le16(const void *p)
static u32 __get_unaligned_le32(const u8 *p)
static u32 get_unaligned_le32(const void *p)
int ath_hw_keyreset(struct ath_common *common, u16 entry)
static u16 __get_unaligned_le16(const u8 *p)
void ath_hw_cycle_counters_update(struct ath_common *common)
ath_hw_cycle_counters_update - common function to update cycle counters
void ath_hw_setbssidmask(struct ath_common *common)
ath_hw_set_bssid_mask - filter out bssids we listen
@ ATH_CRYPT_CAP_MIC_COMBINED
@ ATH_CRYPT_CAP_CIPHER_AESCCM
uint32_t addr
Buffer address.
static unsigned int count
Number of entries.
#define FILE_LICENCE(_licence)
Declare a particular licence as applying to a file.
#define FILE_SECBOOT(_status)
Declare a file's UEFI Secure Boot permission status.
struct ib_cm_common common
The iPXE 802.11 MAC layer.
struct option_descriptor set[0]
unsigned int resetcal_timer
unsigned int checkani_timer
unsigned int shortcal_timer
unsigned int longcal_timer
struct ath_cycle_counters cc_ani
struct ath_regulatory regulatory
struct ath_cycle_counters cc_survey
enum ath_crypt_caps crypt_caps
enum ath_device_state state
const struct ath_ops * ops
const struct ath_bus_ops * bus_ops
struct net80211_device * dev
struct ath_ops - Register read/write operations
void(* multi_read)(void *, u32 *addr, u32 *val, u16 count)
unsigned int(* read)(void *, u32 reg_offset)
void(* write_flush)(void *)
void(* write)(void *, u32 val, u32 reg_offset)
u32(* rmw)(void *, u32 reg_offset, u32 set, u32 clr)
void(* enable_write_buffer)(void *)
struct reg_dmn_pair_mapping * regpair
Structure encapsulating the complete state of an 802.11 device.