FreeBSD kernel usb device Code
if_urtwvar.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  urtw_data
 
struct  urtw_rx_radiotap_header
 
struct  urtw_tx_radiotap_header
 
struct  urtw_stats
 
struct  urtw_vap
 
struct  urtw_softc
 

Macros

#define URTW_MAX_CHANNELS   15
 
#define URTW_RX_DATA_LIST_COUNT   4
 
#define URTW_TX_DATA_LIST_COUNT   16
 
#define URTW_RX_MAXSIZE   0x9c4
 
#define URTW_TX_MAXSIZE   0x9c4
 
#define URTW_TX_MAXRETRY   11
 
#define URTW_RX_RADIOTAP_PRESENT
 
#define URTW_TX_RADIOTAP_PRESENT
 
#define URTW_VAP(vap)   ((struct urtw_vap *)(vap))
 
#define URTW_INIT_ONCE   (1 << 1)
 
#define URTW_RTL8187B   (1 << 2)
 
#define URTW_RTL8187B_REV_B   (1 << 3)
 
#define URTW_RTL8187B_REV_D   (1 << 4)
 
#define URTW_RTL8187B_REV_E   (1 << 5)
 
#define URTW_DETACHED   (1 << 6)
 
#define URTW_RUNNING   (1 << 7)
 
#define URTW_EEPROM_93C46   0
 
#define URTW_EEPROM_93C56   1
 
#define URTW_LED_GPIO   1
 
#define URTW_PRIORITY_LOW   0
 
#define URTW_PRIORITY_NORMAL   1
 
#define URTW_DATA_TIMEOUT   10000 /* 10 sec */
 
#define URTW_8187B_TXPIPE_BE   0x6 /* best effort */
 
#define URTW_8187B_TXPIPE_BK   0x7 /* background */
 
#define URTW_8187B_TXPIPE_VI   0x5 /* video */
 
#define URTW_8187B_TXPIPE_VO   0x4 /* voice */
 
#define URTW_8187B_TXPIPE_MAX   4
 
#define URTW_PREAMBLE_MODE_SHORT   1
 
#define URTW_PREAMBLE_MODE_LONG   2
 
#define URTW_LOCK(sc)   mtx_lock(&(sc)->sc_mtx)
 
#define URTW_UNLOCK(sc)   mtx_unlock(&(sc)->sc_mtx)
 
#define URTW_ASSERT_LOCKED(sc)   mtx_assert(&(sc)->sc_mtx, MA_OWNED)
 

Enumerations

enum  {
  URTW_8187B_BULK_RX , URTW_8187B_BULK_TX_STATUS , URTW_8187B_BULK_TX_BE , URTW_8187B_BULK_TX_BK ,
  URTW_8187B_BULK_TX_VI , URTW_8187B_BULK_TX_VO , URTW_8187B_BULK_TX_EP12 , URTW_8187B_N_XFERS = 7
}
 
enum  { URTW_8187L_BULK_RX , URTW_8187L_BULK_TX_LOW , URTW_8187L_BULK_TX_NORMAL , URTW_8187L_N_XFERS = 3 }
 

Functions

typedef STAILQ_HEAD (, urtw_data) urtw_datahead
 
struct urtw_rx_radiotap_header __aligned (8)
 

Variables

struct ieee80211_radiotap_header wr_ihdr
 
uint64_t wr_tsf
 
uint8_t wr_flags
 
uint8_t wr_pad
 
uint16_t wr_chan_freq
 
uint16_t wr_chan_flags
 
int8_t wr_dbm_antsignal
 
struct urtw_tx_radiotap_header __packed
 

Macro Definition Documentation

◆ URTW_8187B_TXPIPE_BE

#define URTW_8187B_TXPIPE_BE   0x6 /* best effort */

Definition at line 148 of file if_urtwvar.h.

◆ URTW_8187B_TXPIPE_BK

#define URTW_8187B_TXPIPE_BK   0x7 /* background */

Definition at line 149 of file if_urtwvar.h.

◆ URTW_8187B_TXPIPE_MAX

#define URTW_8187B_TXPIPE_MAX   4

Definition at line 152 of file if_urtwvar.h.

◆ URTW_8187B_TXPIPE_VI

#define URTW_8187B_TXPIPE_VI   0x5 /* video */

Definition at line 150 of file if_urtwvar.h.

◆ URTW_8187B_TXPIPE_VO

#define URTW_8187B_TXPIPE_VO   0x4 /* voice */

Definition at line 151 of file if_urtwvar.h.

◆ URTW_ASSERT_LOCKED

#define URTW_ASSERT_LOCKED (   sc)    mtx_assert(&(sc)->sc_mtx, MA_OWNED)

Definition at line 186 of file if_urtwvar.h.

◆ URTW_DATA_TIMEOUT

#define URTW_DATA_TIMEOUT   10000 /* 10 sec */

Definition at line 147 of file if_urtwvar.h.

◆ URTW_DETACHED

#define URTW_DETACHED   (1 << 6)

Definition at line 110 of file if_urtwvar.h.

◆ URTW_EEPROM_93C46

#define URTW_EEPROM_93C46   0

Definition at line 115 of file if_urtwvar.h.

◆ URTW_EEPROM_93C56

#define URTW_EEPROM_93C56   1

Definition at line 116 of file if_urtwvar.h.

◆ URTW_INIT_ONCE

#define URTW_INIT_ONCE   (1 << 1)

Definition at line 105 of file if_urtwvar.h.

◆ URTW_LED_GPIO

#define URTW_LED_GPIO   1

Definition at line 136 of file if_urtwvar.h.

◆ URTW_LOCK

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

Definition at line 184 of file if_urtwvar.h.

◆ URTW_MAX_CHANNELS

#define URTW_MAX_CHANNELS   15

Definition at line 38 of file if_urtwvar.h.

◆ URTW_PREAMBLE_MODE_LONG

#define URTW_PREAMBLE_MODE_LONG   2

Definition at line 164 of file if_urtwvar.h.

◆ URTW_PREAMBLE_MODE_SHORT

#define URTW_PREAMBLE_MODE_SHORT   1

Definition at line 163 of file if_urtwvar.h.

◆ URTW_PRIORITY_LOW

#define URTW_PRIORITY_LOW   0

Definition at line 145 of file if_urtwvar.h.

◆ URTW_PRIORITY_NORMAL

#define URTW_PRIORITY_NORMAL   1

Definition at line 146 of file if_urtwvar.h.

◆ URTW_RTL8187B

#define URTW_RTL8187B   (1 << 2)

Definition at line 106 of file if_urtwvar.h.

◆ URTW_RTL8187B_REV_B

#define URTW_RTL8187B_REV_B   (1 << 3)

Definition at line 107 of file if_urtwvar.h.

◆ URTW_RTL8187B_REV_D

#define URTW_RTL8187B_REV_D   (1 << 4)

Definition at line 108 of file if_urtwvar.h.

◆ URTW_RTL8187B_REV_E

#define URTW_RTL8187B_REV_E   (1 << 5)

Definition at line 109 of file if_urtwvar.h.

◆ URTW_RUNNING

#define URTW_RUNNING   (1 << 7)

Definition at line 111 of file if_urtwvar.h.

◆ URTW_RX_DATA_LIST_COUNT

#define URTW_RX_DATA_LIST_COUNT   4

Definition at line 50 of file if_urtwvar.h.

◆ URTW_RX_MAXSIZE

#define URTW_RX_MAXSIZE   0x9c4

Definition at line 52 of file if_urtwvar.h.

◆ URTW_RX_RADIOTAP_PRESENT

#define URTW_RX_RADIOTAP_PRESENT
Value:
((1 << IEEE80211_RADIOTAP_TSFT) | \
(1 << IEEE80211_RADIOTAP_FLAGS) | \
(1 << IEEE80211_RADIOTAP_CHANNEL) | \
(1 << IEEE80211_RADIOTAP_DBM_ANTSIGNAL))

Definition at line 66 of file if_urtwvar.h.

◆ URTW_TX_DATA_LIST_COUNT

#define URTW_TX_DATA_LIST_COUNT   16

Definition at line 51 of file if_urtwvar.h.

◆ URTW_TX_MAXRETRY

#define URTW_TX_MAXRETRY   11

Definition at line 54 of file if_urtwvar.h.

◆ URTW_TX_MAXSIZE

#define URTW_TX_MAXSIZE   0x9c4

Definition at line 53 of file if_urtwvar.h.

◆ URTW_TX_RADIOTAP_PRESENT

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

Definition at line 80 of file if_urtwvar.h.

◆ URTW_UNLOCK

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

Definition at line 185 of file if_urtwvar.h.

◆ URTW_VAP

#define URTW_VAP (   vap)    ((struct urtw_vap *)(vap))

Definition at line 93 of file if_urtwvar.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
URTW_8187B_BULK_RX 
URTW_8187B_BULK_TX_STATUS 
URTW_8187B_BULK_TX_BE 
URTW_8187B_BULK_TX_BK 
URTW_8187B_BULK_TX_VI 
URTW_8187B_BULK_TX_VO 
URTW_8187B_BULK_TX_EP12 
URTW_8187B_N_XFERS 

Definition at line 19 of file if_urtwvar.h.

◆ anonymous enum

anonymous enum
Enumerator
URTW_8187L_BULK_RX 
URTW_8187L_BULK_TX_LOW 
URTW_8187L_BULK_TX_NORMAL 
URTW_8187L_N_XFERS 

Definition at line 30 of file if_urtwvar.h.

Function Documentation

◆ __aligned()

struct urtw_rx_radiotap_header __aligned ( )

◆ STAILQ_HEAD()

typedef STAILQ_HEAD ( urtw_data  )

Variable Documentation

◆ __packed

◆ wr_chan_flags

uint16_t wr_chan_flags

Definition at line 5 of file if_urtwvar.h.

◆ wr_chan_freq

uint16_t wr_chan_freq

Definition at line 4 of file if_urtwvar.h.

◆ wr_dbm_antsignal

int8_t wr_dbm_antsignal

Definition at line 6 of file if_urtwvar.h.

◆ wr_flags

uint8_t wr_flags

Definition at line 2 of file if_urtwvar.h.

◆ wr_ihdr

struct ieee80211_radiotap_header wr_ihdr

Definition at line 0 of file if_urtwvar.h.

◆ wr_pad

uint8_t wr_pad

Definition at line 3 of file if_urtwvar.h.

◆ wr_tsf

uint64_t wr_tsf

Definition at line 1 of file if_urtwvar.h.