Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/usb/wlan/if_uathvar.h
Show First 20 Lines • Show All 224 Lines • ▼ Show 20 Lines | #define UATH_MAX_INTRX_SIZE 3616 | ||||
uint8_t sc_serial[16]; | uint8_t sc_serial[16]; | ||||
/* unsorted */ | /* unsorted */ | ||||
uint32_t sc_flags; | uint32_t sc_flags; | ||||
#define UATH_FLAG_INVALID (1 << 1) | #define UATH_FLAG_INVALID (1 << 1) | ||||
#define UATH_FLAG_INITDONE (1 << 2) | #define UATH_FLAG_INITDONE (1 << 2) | ||||
struct uath_rx_radiotap_header sc_rxtap; | struct uath_rx_radiotap_header sc_rxtap; | ||||
int sc_rxtap_len; | |||||
struct uath_tx_radiotap_header sc_txtap; | struct uath_tx_radiotap_header sc_txtap; | ||||
int sc_txtap_len; | |||||
}; | }; | ||||
#define UATH_LOCK(sc) mtx_lock(&(sc)->sc_mtx) | #define UATH_LOCK(sc) mtx_lock(&(sc)->sc_mtx) | ||||
#define UATH_UNLOCK(sc) mtx_unlock(&(sc)->sc_mtx) | #define UATH_UNLOCK(sc) mtx_unlock(&(sc)->sc_mtx) | ||||
#define UATH_ASSERT_LOCKED(sc) mtx_assert(&(sc)->sc_mtx, MA_OWNED) | #define UATH_ASSERT_LOCKED(sc) mtx_assert(&(sc)->sc_mtx, MA_OWNED) | ||||
#define UATH_RESET_INTRX(sc) do { \ | #define UATH_RESET_INTRX(sc) do { \ | ||||
(sc)->sc_intrx_head = NULL; \ | (sc)->sc_intrx_head = NULL; \ | ||||
(sc)->sc_intrx_tail = NULL; \ | (sc)->sc_intrx_tail = NULL; \ | ||||
(sc)->sc_intrx_nextnum = 0; \ | (sc)->sc_intrx_nextnum = 0; \ | ||||
(sc)->sc_intrx_len = 0; \ | (sc)->sc_intrx_len = 0; \ | ||||
} while (0) | } while (0) |