Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/usb/wlan/if_urtwnreg.h
Show First 20 Lines • Show All 1,166 Lines • ▼ Show 20 Lines | enum { | ||||
URTWN_BULK_TX_VI, /* = WME_AC_VI */ | URTWN_BULK_TX_VI, /* = WME_AC_VI */ | ||||
URTWN_BULK_TX_VO, /* = WME_AC_VI */ | URTWN_BULK_TX_VO, /* = WME_AC_VI */ | ||||
URTWN_N_TRANSFER = 5, | URTWN_N_TRANSFER = 5, | ||||
}; | }; | ||||
#define URTWN_EP_QUEUES URTWN_BULK_RX | #define URTWN_EP_QUEUES URTWN_BULK_RX | ||||
struct urtwn_softc { | struct urtwn_softc { | ||||
struct ifnet *sc_ifp; | struct ieee80211com sc_ic; | ||||
struct mbufq sc_snd; | |||||
device_t sc_dev; | device_t sc_dev; | ||||
struct usb_device *sc_udev; | struct usb_device *sc_udev; | ||||
int ac2idx[WME_NUM_AC]; | int ac2idx[WME_NUM_AC]; | ||||
u_int sc_flags; | u_int sc_flags; | ||||
#define URTWN_FLAG_CCK_HIPWR 0x01 | #define URTWN_FLAG_CCK_HIPWR 0x01 | ||||
#define URTWN_DETACHED 0x02 | #define URTWN_DETACHED 0x02 | ||||
#define URTWN_RUNNING 0x04 | |||||
u_int chip; | u_int chip; | ||||
#define URTWN_CHIP_92C 0x01 | #define URTWN_CHIP_92C 0x01 | ||||
#define URTWN_CHIP_92C_1T2R 0x02 | #define URTWN_CHIP_92C_1T2R 0x02 | ||||
#define URTWN_CHIP_UMC 0x04 | #define URTWN_CHIP_UMC 0x04 | ||||
#define URTWN_CHIP_UMC_A_CUT 0x08 | #define URTWN_CHIP_UMC_A_CUT 0x08 | ||||
#define URTWN_CHIP_88E 0x10 | #define URTWN_CHIP_88E 0x10 | ||||
Show All 28 Lines | #define URTWN_CHIP_88E 0x10 | ||||
void *fw_virtaddr; | void *fw_virtaddr; | ||||
struct r92c_rom rom; | struct r92c_rom rom; | ||||
uint8_t r88e_rom[512]; | uint8_t r88e_rom[512]; | ||||
uint8_t cck_tx_pwr[6]; | uint8_t cck_tx_pwr[6]; | ||||
uint8_t ht40_tx_pwr[5]; | uint8_t ht40_tx_pwr[5]; | ||||
int8_t bw20_tx_pwr_diff; | int8_t bw20_tx_pwr_diff; | ||||
int8_t ofdm_tx_pwr_diff; | int8_t ofdm_tx_pwr_diff; | ||||
uint8_t sc_bssid[IEEE80211_ADDR_LEN]; | |||||
struct callout sc_watchdog_ch; | struct callout sc_watchdog_ch; | ||||
struct mtx sc_mtx; | struct mtx sc_mtx; | ||||
/* need to be power of 2, otherwise URTWN_CMDQ_GET fails */ | /* need to be power of 2, otherwise URTWN_CMDQ_GET fails */ | ||||
#define URTWN_CMDQ_MAX 16 | #define URTWN_CMDQ_MAX 16 | ||||
#define URTWN_CMDQ_MASQ (URTWN_CMDQ_MAX - 1) | #define URTWN_CMDQ_MASQ (URTWN_CMDQ_MAX - 1) | ||||
struct urtwn_cmdq cmdq[URTWN_CMDQ_MAX]; | struct urtwn_cmdq cmdq[URTWN_CMDQ_MAX]; | ||||
▲ Show 20 Lines • Show All 952 Lines • Show Last 20 Lines |