FreeBSD kernel WPI device code
if_wpivar.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  wpi_rx_radiotap_header
 
struct  wpi_tx_radiotap_header
 
struct  wpi_dma_info
 
struct  wpi_tx_data
 
struct  wpi_tx_ring
 
struct  wpi_rx_data
 
struct  wpi_rx_ring
 
struct  wpi_node
 
struct  wpi_power_sample
 
struct  wpi_power_group
 
struct  wpi_buf
 
struct  wpi_vap
 
struct  wpi_fw_part
 
struct  wpi_fw_info
 
struct  wpi_softc
 

Macros

#define WPI_RX_RADIOTAP_PRESENT
 
#define WPI_TX_RADIOTAP_PRESENT
 
#define WPI_NODE(ni)   ((struct wpi_node *)(ni))
 
#define WPI_SAMPLES_COUNT   5
 
#define WPI_VAP_KEY(kid)   (1 << kid)
 
#define WPI_VAP(vap)   ((struct wpi_vap *)(vap))
 
#define WPI_VAP_LOCK_INIT(_wvp)
 
#define WPI_VAP_LOCK(_wvp)   mtx_lock(&(_wvp)->wv_mtx)
 
#define WPI_VAP_UNLOCK(_wvp)   mtx_unlock(&(_wvp)->wv_mtx)
 
#define WPI_VAP_LOCK_ASSERT(_wvp)   mtx_assert(&(_wvp)->wv_mtx, MA_OWNED)
 
#define WPI_VAP_LOCK_DESTROY(_wvp)   mtx_destroy(&(_wvp)->wv_mtx)
 
#define WPI_LOCK_INIT(_sc)
 
#define WPI_LOCK(_sc)   mtx_lock(&(_sc)->sc_mtx)
 
#define WPI_UNLOCK(_sc)   mtx_unlock(&(_sc)->sc_mtx)
 
#define WPI_LOCK_ASSERT(_sc)   mtx_assert(&(_sc)->sc_mtx, MA_OWNED)
 
#define WPI_LOCK_DESTROY(_sc)   mtx_destroy(&(_sc)->sc_mtx)
 
#define WPI_RXON_LOCK_INIT(_sc)    mtx_init(&(_sc)->rxon_mtx, "lock for wpi_rxon structure", NULL, MTX_DEF)
 
#define WPI_RXON_LOCK(_sc)   mtx_lock(&(_sc)->rxon_mtx)
 
#define WPI_RXON_UNLOCK(_sc)   mtx_unlock(&(_sc)->rxon_mtx)
 
#define WPI_RXON_LOCK_ASSERT(_sc)   mtx_assert(&(_sc)->rxon_mtx, MA_OWNED)
 
#define WPI_RXON_LOCK_DESTROY(_sc)   mtx_destroy(&(_sc)->rxon_mtx)
 
#define WPI_TX_LOCK_INIT(_sc)    mtx_init(&(_sc)->tx_mtx, "tx path lock", NULL, MTX_DEF)
 
#define WPI_TX_LOCK(_sc)   mtx_lock(&(_sc)->tx_mtx)
 
#define WPI_TX_UNLOCK(_sc)   mtx_unlock(&(_sc)->tx_mtx)
 
#define WPI_TX_LOCK_DESTROY(_sc)   mtx_destroy(&(_sc)->tx_mtx)
 
#define WPI_NT_LOCK_INIT(_sc)    mtx_init(&(_sc)->nt_mtx, "node table lock", NULL, MTX_DEF)
 
#define WPI_NT_LOCK(_sc)   mtx_lock(&(_sc)->nt_mtx)
 
#define WPI_NT_UNLOCK(_sc)   mtx_unlock(&(_sc)->nt_mtx)
 
#define WPI_NT_LOCK_DESTROY(_sc)   mtx_destroy(&(_sc)->nt_mtx)
 
#define WPI_TXQ_LOCK_INIT(_sc)    mtx_init(&(_sc)->txq_mtx, "txq/cmdq lock", NULL, MTX_DEF)
 
#define WPI_TXQ_LOCK(_sc)   mtx_lock(&(_sc)->txq_mtx)
 
#define WPI_TXQ_UNLOCK(_sc)   mtx_unlock(&(_sc)->txq_mtx)
 
#define WPI_TXQ_LOCK_DESTROY(_sc)   mtx_destroy(&(_sc)->txq_mtx)
 
#define WPI_TXQ_STATE_LOCK_INIT(_sc)    mtx_init(&(_sc)->txq_state_mtx, "txq state lock", NULL, MTX_DEF)
 
#define WPI_TXQ_STATE_LOCK(_sc)   mtx_lock(&(_sc)->txq_state_mtx)
 
#define WPI_TXQ_STATE_UNLOCK(_sc)   mtx_unlock(&(_sc)->txq_state_mtx)
 
#define WPI_TXQ_STATE_LOCK_DESTROY(_sc)   mtx_destroy(&(_sc)->txq_state_mtx)
 

Functions

struct wpi_rx_radiotap_header __aligned (8)
 

Variables

struct ieee80211_radiotap_header wr_ihdr
 
uint64_t wr_tsft
 
uint8_t wr_flags
 
uint8_t wr_rate
 
uint16_t wr_chan_freq
 
uint16_t wr_chan_flags
 
int8_t wr_dbm_antsignal
 
int8_t wr_dbm_antnoise
 
uint8_t wr_antenna
 
struct wpi_tx_radiotap_header __packed
 

Macro Definition Documentation

◆ WPI_LOCK

#define WPI_LOCK (   _sc)    mtx_lock(&(_sc)->sc_mtx)

Definition at line 260 of file if_wpivar.h.

◆ WPI_LOCK_ASSERT

#define WPI_LOCK_ASSERT (   _sc)    mtx_assert(&(_sc)->sc_mtx, MA_OWNED)

Definition at line 262 of file if_wpivar.h.

◆ WPI_LOCK_DESTROY

#define WPI_LOCK_DESTROY (   _sc)    mtx_destroy(&(_sc)->sc_mtx)

Definition at line 263 of file if_wpivar.h.

◆ WPI_LOCK_INIT

#define WPI_LOCK_INIT (   _sc)
Value:
mtx_init(&(_sc)->sc_mtx, device_get_nameunit((_sc)->sc_dev), \
MTX_NETWORK_LOCK, MTX_DEF)

Definition at line 257 of file if_wpivar.h.

◆ WPI_NODE

#define WPI_NODE (   ni)    ((struct wpi_node *)(ni))

Definition at line 101 of file if_wpivar.h.

◆ WPI_NT_LOCK

#define WPI_NT_LOCK (   _sc)    mtx_lock(&(_sc)->nt_mtx)

Definition at line 280 of file if_wpivar.h.

◆ WPI_NT_LOCK_DESTROY

#define WPI_NT_LOCK_DESTROY (   _sc)    mtx_destroy(&(_sc)->nt_mtx)

Definition at line 282 of file if_wpivar.h.

◆ WPI_NT_LOCK_INIT

#define WPI_NT_LOCK_INIT (   _sc)     mtx_init(&(_sc)->nt_mtx, "node table lock", NULL, MTX_DEF)

Definition at line 278 of file if_wpivar.h.

◆ WPI_NT_UNLOCK

#define WPI_NT_UNLOCK (   _sc)    mtx_unlock(&(_sc)->nt_mtx)

Definition at line 281 of file if_wpivar.h.

◆ WPI_RX_RADIOTAP_PRESENT

#define WPI_RX_RADIOTAP_PRESENT
Value:
((1 << IEEE80211_RADIOTAP_TSFT) | \
(1 << IEEE80211_RADIOTAP_FLAGS) | \
(1 << IEEE80211_RADIOTAP_RATE) | \
(1 << IEEE80211_RADIOTAP_CHANNEL) | \
(1 << IEEE80211_RADIOTAP_DBM_ANTSIGNAL) | \
(1 << IEEE80211_RADIOTAP_DBM_ANTNOISE) | \
(1 << IEEE80211_RADIOTAP_ANTENNA))

Definition at line 31 of file if_wpivar.h.

◆ WPI_RXON_LOCK

#define WPI_RXON_LOCK (   _sc)    mtx_lock(&(_sc)->rxon_mtx)

Definition at line 267 of file if_wpivar.h.

◆ WPI_RXON_LOCK_ASSERT

#define WPI_RXON_LOCK_ASSERT (   _sc)    mtx_assert(&(_sc)->rxon_mtx, MA_OWNED)

Definition at line 269 of file if_wpivar.h.

◆ WPI_RXON_LOCK_DESTROY

#define WPI_RXON_LOCK_DESTROY (   _sc)    mtx_destroy(&(_sc)->rxon_mtx)

Definition at line 270 of file if_wpivar.h.

◆ WPI_RXON_LOCK_INIT

#define WPI_RXON_LOCK_INIT (   _sc)     mtx_init(&(_sc)->rxon_mtx, "lock for wpi_rxon structure", NULL, MTX_DEF)

Definition at line 265 of file if_wpivar.h.

◆ WPI_RXON_UNLOCK

#define WPI_RXON_UNLOCK (   _sc)    mtx_unlock(&(_sc)->rxon_mtx)

Definition at line 268 of file if_wpivar.h.

◆ WPI_SAMPLES_COUNT

#define WPI_SAMPLES_COUNT   5

Definition at line 109 of file if_wpivar.h.

◆ WPI_TX_LOCK

#define WPI_TX_LOCK (   _sc)    mtx_lock(&(_sc)->tx_mtx)

Definition at line 274 of file if_wpivar.h.

◆ WPI_TX_LOCK_DESTROY

#define WPI_TX_LOCK_DESTROY (   _sc)    mtx_destroy(&(_sc)->tx_mtx)

Definition at line 276 of file if_wpivar.h.

◆ WPI_TX_LOCK_INIT

#define WPI_TX_LOCK_INIT (   _sc)     mtx_init(&(_sc)->tx_mtx, "tx path lock", NULL, MTX_DEF)

Definition at line 272 of file if_wpivar.h.

◆ WPI_TX_RADIOTAP_PRESENT

#define WPI_TX_RADIOTAP_PRESENT
Value:
((1 << IEEE80211_RADIOTAP_FLAGS) | \
(1 << IEEE80211_RADIOTAP_RATE) | \
(1 << IEEE80211_RADIOTAP_CHANNEL))

Definition at line 48 of file if_wpivar.h.

◆ WPI_TX_UNLOCK

#define WPI_TX_UNLOCK (   _sc)    mtx_unlock(&(_sc)->tx_mtx)

Definition at line 275 of file if_wpivar.h.

◆ WPI_TXQ_LOCK

#define WPI_TXQ_LOCK (   _sc)    mtx_lock(&(_sc)->txq_mtx)

Definition at line 286 of file if_wpivar.h.

◆ WPI_TXQ_LOCK_DESTROY

#define WPI_TXQ_LOCK_DESTROY (   _sc)    mtx_destroy(&(_sc)->txq_mtx)

Definition at line 288 of file if_wpivar.h.

◆ WPI_TXQ_LOCK_INIT

#define WPI_TXQ_LOCK_INIT (   _sc)     mtx_init(&(_sc)->txq_mtx, "txq/cmdq lock", NULL, MTX_DEF)

Definition at line 284 of file if_wpivar.h.

◆ WPI_TXQ_STATE_LOCK

#define WPI_TXQ_STATE_LOCK (   _sc)    mtx_lock(&(_sc)->txq_state_mtx)

Definition at line 292 of file if_wpivar.h.

◆ WPI_TXQ_STATE_LOCK_DESTROY

#define WPI_TXQ_STATE_LOCK_DESTROY (   _sc)    mtx_destroy(&(_sc)->txq_state_mtx)

Definition at line 294 of file if_wpivar.h.

◆ WPI_TXQ_STATE_LOCK_INIT

#define WPI_TXQ_STATE_LOCK_INIT (   _sc)     mtx_init(&(_sc)->txq_state_mtx, "txq state lock", NULL, MTX_DEF)

Definition at line 290 of file if_wpivar.h.

◆ WPI_TXQ_STATE_UNLOCK

#define WPI_TXQ_STATE_UNLOCK (   _sc)    mtx_unlock(&(_sc)->txq_state_mtx)

Definition at line 293 of file if_wpivar.h.

◆ WPI_TXQ_UNLOCK

#define WPI_TXQ_UNLOCK (   _sc)    mtx_unlock(&(_sc)->txq_mtx)

Definition at line 287 of file if_wpivar.h.

◆ WPI_UNLOCK

#define WPI_UNLOCK (   _sc)    mtx_unlock(&(_sc)->sc_mtx)

Definition at line 261 of file if_wpivar.h.

◆ WPI_VAP

#define WPI_VAP (   vap)    ((struct wpi_vap *)(vap))

Definition at line 141 of file if_wpivar.h.

◆ WPI_VAP_KEY

#define WPI_VAP_KEY (   kid)    (1 << kid)

Definition at line 132 of file if_wpivar.h.

◆ WPI_VAP_LOCK

#define WPI_VAP_LOCK (   _wvp)    mtx_lock(&(_wvp)->wv_mtx)

Definition at line 146 of file if_wpivar.h.

◆ WPI_VAP_LOCK_ASSERT

#define WPI_VAP_LOCK_ASSERT (   _wvp)    mtx_assert(&(_wvp)->wv_mtx, MA_OWNED)

Definition at line 148 of file if_wpivar.h.

◆ WPI_VAP_LOCK_DESTROY

#define WPI_VAP_LOCK_DESTROY (   _wvp)    mtx_destroy(&(_wvp)->wv_mtx)

Definition at line 149 of file if_wpivar.h.

◆ WPI_VAP_LOCK_INIT

#define WPI_VAP_LOCK_INIT (   _wvp)
Value:
mtx_init(&(_wvp)->wv_mtx, "lock for wv_bcbuf/wv_boff structures", \
NULL, MTX_DEF)

Definition at line 143 of file if_wpivar.h.

◆ WPI_VAP_UNLOCK

#define WPI_VAP_UNLOCK (   _wvp)    mtx_unlock(&(_wvp)->wv_mtx)

Definition at line 147 of file if_wpivar.h.

Function Documentation

◆ __aligned()

struct wpi_rx_radiotap_header __aligned ( )

Variable Documentation

◆ __packed

struct wpi_tx_radiotap_header __packed

◆ wr_antenna

uint8_t wr_antenna

Definition at line 8 of file if_wpivar.h.

◆ wr_chan_flags

uint16_t wr_chan_flags

Definition at line 5 of file if_wpivar.h.

◆ wr_chan_freq

uint16_t wr_chan_freq

Definition at line 4 of file if_wpivar.h.

◆ wr_dbm_antnoise

int8_t wr_dbm_antnoise

Definition at line 7 of file if_wpivar.h.

◆ wr_dbm_antsignal

int8_t wr_dbm_antsignal

Definition at line 6 of file if_wpivar.h.

◆ wr_flags

uint8_t wr_flags

Definition at line 2 of file if_wpivar.h.

◆ wr_ihdr

struct ieee80211_radiotap_header wr_ihdr

Definition at line 0 of file if_wpivar.h.

◆ wr_rate

uint8_t wr_rate

Definition at line 3 of file if_wpivar.h.

◆ wr_tsft

uint64_t wr_tsft

Definition at line 1 of file if_wpivar.h.