FreeBSD kernel usb device Code
if_runvar.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  run_rx_radiotap_header
 
struct  run_tx_radiotap_header
 
struct  run_tx_data
 
struct  run_node
 
struct  run_cmdq
 
struct  run_vap
 
struct  run_endpoint_queue
 
struct  run_softc
 

Macros

#define RUN_MAX_RXSZ    MIN(4096, MJUMPAGESIZE)
 
#define RUN_MAX_TXSZ
 
#define RUN_TX_TIMEOUT   5000 /* ms */
 
#define RUN_TX_RING_COUNT   32
 
#define RUN_RX_RING_COUNT   1
 
#define RT2870_WCID_MAX   64
 
#define RUN_AID2WCID(aid)   ((aid) & 0xff)
 
#define RUN_VAP_MAX   8
 
#define RUN_RX_RADIOTAP_PRESENT
 
#define IEEE80211_RADIOTAP_HWQUEUE   15
 
#define RUN_TX_RADIOTAP_PRESENT
 
#define RUN_NODE(ni)   ((struct run_node *)(ni))
 
#define RUN_VAP(vap)   ((struct run_vap *)(vap))
 
#define RUN_EP_QUEUES   RUN_BULK_RX
 
#define RUN_FLAG_FWLOAD_NEEDED   0x01
 
#define RUN_RUNNING   0x02
 
#define RUN_TXCNT   0
 
#define RUN_SUCCESS   1
 
#define RUN_RETRY   2
 
#define RUN_RATECTL_OFF   0
 
#define RUN_CMDQ_MAX   16
 
#define RUN_CMDQ_MASQ   (RUN_CMDQ_MAX - 1)
 
#define RUN_CMDQ_ABORT   0
 
#define RUN_CMDQ_GO   1
 
#define sc_rxtap   sc_rxtapu.th
 
#define sc_txtap   sc_txtapu.th
 
#define RUN_LOCK(sc)   mtx_lock(&(sc)->sc_mtx)
 
#define RUN_UNLOCK(sc)   mtx_unlock(&(sc)->sc_mtx)
 
#define RUN_LOCK_ASSERT(sc, t)   mtx_assert(&(sc)->sc_mtx, t)
 

Enumerations

enum  {
  RUN_BULK_TX_BE , RUN_BULK_TX_BK , RUN_BULK_TX_VI , RUN_BULK_TX_VO ,
  RUN_BULK_TX_HCCA , RUN_BULK_TX_PRIO , RUN_BULK_RX , RUN_N_XFER
}
 

Functions

struct run_rx_radiotap_header __aligned (8)
 
 STAILQ_HEAD (run_tx_data_head, run_tx_data)
 

Variables

struct ieee80211_radiotap_header wr_ihdr
 
uint64_t wr_tsf
 
uint8_t wr_flags
 
uint8_t wr_rate
 
uint16_t wr_chan_freq
 
uint16_t wr_chan_flags
 
int8_t wr_dbm_antsignal
 
uint8_t wr_antenna
 
uint8_t wr_antsignal
 
struct run_tx_radiotap_header __packed
 

Macro Definition Documentation

◆ IEEE80211_RADIOTAP_HWQUEUE

#define IEEE80211_RADIOTAP_HWQUEUE   15

Definition at line 77 of file if_runvar.h.

◆ RT2870_WCID_MAX

#define RT2870_WCID_MAX   64

Definition at line 42 of file if_runvar.h.

◆ RUN_AID2WCID

#define RUN_AID2WCID (   aid)    ((aid) & 0xff)

Definition at line 43 of file if_runvar.h.

◆ RUN_CMDQ_ABORT

#define RUN_CMDQ_ABORT   0

Definition at line 231 of file if_runvar.h.

◆ RUN_CMDQ_GO

#define RUN_CMDQ_GO   1

Definition at line 232 of file if_runvar.h.

◆ RUN_CMDQ_MASQ

#define RUN_CMDQ_MASQ   (RUN_CMDQ_MAX - 1)

Definition at line 224 of file if_runvar.h.

◆ RUN_CMDQ_MAX

#define RUN_CMDQ_MAX   16

Definition at line 223 of file if_runvar.h.

◆ RUN_EP_QUEUES

#define RUN_EP_QUEUES   RUN_BULK_RX

Definition at line 149 of file if_runvar.h.

◆ RUN_FLAG_FWLOAD_NEEDED

#define RUN_FLAG_FWLOAD_NEEDED   0x01

Definition at line 168 of file if_runvar.h.

◆ RUN_LOCK

#define RUN_LOCK (   sc)    mtx_lock(&(sc)->sc_mtx)

Definition at line 264 of file if_runvar.h.

◆ RUN_LOCK_ASSERT

#define RUN_LOCK_ASSERT (   sc,
 
)    mtx_assert(&(sc)->sc_mtx, t)

Definition at line 266 of file if_runvar.h.

◆ RUN_MAX_RXSZ

#define RUN_MAX_RXSZ    MIN(4096, MJUMPAGESIZE)

Definition at line 27 of file if_runvar.h.

◆ RUN_MAX_TXSZ

#define RUN_MAX_TXSZ
Value:
(sizeof (struct rt2870_txd) + \
sizeof (struct rt2860_txwi) + \
8192 + 11)

Definition at line 31 of file if_runvar.h.

◆ RUN_NODE

#define RUN_NODE (   ni)    ((struct run_node *)(ni))

Definition at line 105 of file if_runvar.h.

◆ RUN_RATECTL_OFF

#define RUN_RATECTL_OFF   0

Definition at line 220 of file if_runvar.h.

◆ RUN_RETRY

#define RUN_RETRY   2

Definition at line 174 of file if_runvar.h.

◆ RUN_RUNNING

#define RUN_RUNNING   0x02

Definition at line 169 of file if_runvar.h.

◆ RUN_RX_RADIOTAP_PRESENT

#define RUN_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_ANTENNA | \
1 << IEEE80211_RADIOTAP_DB_ANTSIGNAL)

Definition at line 59 of file if_runvar.h.

◆ RUN_RX_RING_COUNT

#define RUN_RX_RING_COUNT   1

Definition at line 40 of file if_runvar.h.

◆ RUN_SUCCESS

#define RUN_SUCCESS   1

Definition at line 173 of file if_runvar.h.

◆ RUN_TX_RADIOTAP_PRESENT

#define RUN_TX_RADIOTAP_PRESENT
Value:
(1 << IEEE80211_RADIOTAP_FLAGS | \
1 << IEEE80211_RADIOTAP_RATE | \
1 << IEEE80211_RADIOTAP_CHANNEL | \
#define IEEE80211_RADIOTAP_HWQUEUE
Definition: if_runvar.h:77

Definition at line 79 of file if_runvar.h.

◆ RUN_TX_RING_COUNT

#define RUN_TX_RING_COUNT   32

Definition at line 39 of file if_runvar.h.

◆ RUN_TX_TIMEOUT

#define RUN_TX_TIMEOUT   5000 /* ms */

Definition at line 36 of file if_runvar.h.

◆ RUN_TXCNT

#define RUN_TXCNT   0

Definition at line 172 of file if_runvar.h.

◆ RUN_UNLOCK

#define RUN_UNLOCK (   sc)    mtx_unlock(&(sc)->sc_mtx)

Definition at line 265 of file if_runvar.h.

◆ RUN_VAP

#define RUN_VAP (   vap)    ((struct run_vap *)(vap))

Definition at line 130 of file if_runvar.h.

◆ RUN_VAP_MAX

#define RUN_VAP_MAX   8

Definition at line 45 of file if_runvar.h.

◆ sc_rxtap

#define sc_rxtap   sc_rxtapu.th

Definition at line 255 of file if_runvar.h.

◆ sc_txtap

#define sc_txtap   sc_txtapu.th

Definition at line 261 of file if_runvar.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
RUN_BULK_TX_BE 
RUN_BULK_TX_BK 
RUN_BULK_TX_VI 
RUN_BULK_TX_VO 
RUN_BULK_TX_HCCA 
RUN_BULK_TX_PRIO 
RUN_BULK_RX 
RUN_N_XFER 

Definition at line 138 of file if_runvar.h.

Function Documentation

◆ __aligned()

struct run_rx_radiotap_header __aligned ( )

◆ STAILQ_HEAD()

STAILQ_HEAD ( run_tx_data_head  ,
run_tx_data   
)

Variable Documentation

◆ __packed

◆ wr_antenna

uint8_t wr_antenna

Definition at line 7 of file if_runvar.h.

◆ wr_antsignal

uint8_t wr_antsignal

Definition at line 8 of file if_runvar.h.

◆ wr_chan_flags

uint16_t wr_chan_flags

Definition at line 5 of file if_runvar.h.

◆ wr_chan_freq

uint16_t wr_chan_freq

Definition at line 4 of file if_runvar.h.

◆ wr_dbm_antsignal

int8_t wr_dbm_antsignal

Definition at line 6 of file if_runvar.h.

◆ wr_flags

uint8_t wr_flags

Definition at line 2 of file if_runvar.h.

◆ wr_ihdr

struct ieee80211_radiotap_header wr_ihdr

Definition at line 0 of file if_runvar.h.

◆ wr_rate

uint8_t wr_rate

Definition at line 3 of file if_runvar.h.

◆ wr_tsf

uint64_t wr_tsf

Definition at line 1 of file if_runvar.h.