FreeBSD kernel usb device Code
if_rsureg.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  r92s_fw_priv
 
struct  r92s_fw_hdr
 
struct  r92s_fw_cmd_hdr
 
struct  r92s_fw_cmd_sitesurvey
 
struct  r92s_fw_cmd_auth
 
struct  r92s_fw_cmd_set_key
 
struct  r92s_fw_cmd_set_key_mac
 
struct  ndis_802_11_ssid
 
struct  ndis_802_11_configuration_fh
 
struct  ndis_802_11_configuration
 
struct  ndis_wlan_bssid_ex
 
struct  ndis_802_11_fixed_ies
 
struct  r92s_set_pwr_mode
 
struct  r92s_set_channel
 
struct  r92s_event_join_bss
 
struct  r92s_rx_stat
 
struct  r92s_rx_phystat
 
struct  r92s_rx_cck
 
struct  r92s_tx_desc
 
struct  r92s_add_ba_event
 
struct  r92s_add_ba_req
 
struct  rsu_rx_radiotap_header
 
struct  rsu_tx_radiotap_header
 
struct  rsu_data
 
struct  rsu_vap
 
struct  rsu_softc
 

Macros

#define R92S_REQ_REGS   0x05
 
#define R92S_SYSCFG   0x0000
 
#define R92S_SYS_ISO_CTRL   (R92S_SYSCFG + 0x000)
 
#define R92S_SYS_FUNC_EN   (R92S_SYSCFG + 0x002)
 
#define R92S_PMC_FSM   (R92S_SYSCFG + 0x004)
 
#define R92S_SYS_CLKR   (R92S_SYSCFG + 0x008)
 
#define R92S_EE_9346CR   (R92S_SYSCFG + 0x00a)
 
#define R92S_AFE_MISC   (R92S_SYSCFG + 0x010)
 
#define R92S_SPS0_CTRL   (R92S_SYSCFG + 0x011)
 
#define R92S_SPS1_CTRL   (R92S_SYSCFG + 0x018)
 
#define R92S_RF_CTRL   (R92S_SYSCFG + 0x01f)
 
#define R92S_LDOA15_CTRL   (R92S_SYSCFG + 0x020)
 
#define R92S_LDOV12D_CTRL   (R92S_SYSCFG + 0x021)
 
#define R92S_AFE_XTAL_CTRL   (R92S_SYSCFG + 0x026)
 
#define R92S_AFE_PLL_CTRL   (R92S_SYSCFG + 0x028)
 
#define R92S_EFUSE_CTRL   (R92S_SYSCFG + 0x030)
 
#define R92S_EFUSE_TEST   (R92S_SYSCFG + 0x034)
 
#define R92S_EFUSE_CLK_CTRL   (R92S_SYSCFG + 0x2f8)
 
#define R92S_CMDCTRL   0x0040
 
#define R92S_CR   (R92S_CMDCTRL + 0x000)
 
#define R92S_TXPAUSE   (R92S_CMDCTRL + 0x002)
 
#define R92S_TCR   (R92S_CMDCTRL + 0x004)
 
#define R92S_RCR   (R92S_CMDCTRL + 0x008)
 
#define R92S_MACIDSETTING   0x0050
 
#define R92S_MACID   (R92S_MACIDSETTING + 0x000)
 
#define R92S_MAR   (R92S_MACIDSETTING + 0x010)
 
#define R92S_TIMECTRL   0x0080
 
#define R92S_TSFTR   (R92S_TIMECTRL + 0x000)
 
#define R92S_FIFOCTRL   0x00a0
 
#define R92S_RXFLTMAP_MGT   (R92S_FIFOCTRL + 0x076)
 
#define R92S_RXFLTMAP_CTL   (R92S_FIFOCTRL + 0x078)
 
#define R92S_RXFLTMAP_DATA   (R92S_FIFOCTRL + 0x07a)
 
#define R92S_RXFLTMAP_MESH   (R92S_FIFOCTRL + 0x07c)
 
#define R92S_SECURITY   0x0240
 
#define R92S_CAMCMD   (R92S_SECURITY + 0x000)
 
#define R92S_CAMWRITE   (R92S_SECURITY + 0x004)
 
#define R92S_CAMREAD   (R92S_SECURITY + 0x008)
 
#define R92S_GP   0x02e0
 
#define R92S_GPIO_CTRL   (R92S_GP + 0x00c)
 
#define R92S_GPIO_IO_SEL   (R92S_GP + 0x00e)
 
#define R92S_MAC_PINMUX_CTRL   (R92S_GP + 0x011)
 
#define R92S_LEDCFG   (R92S_GP + 0x012)
 
#define R92S_IOCMD_CTRL   0x0370
 
#define R92S_IOCMD_DATA   0x0374
 
#define R92S_USB_HRPWM   0xfe58
 
#define R92S_FEN_CPUEN   0x0400
 
#define R92S_PMC_FSM_CUT_M   0x000f8000
 
#define R92S_PMC_FSM_CUT_S   15
 
#define R92S_SYS_CLKSEL   0x0001
 
#define R92S_SYS_PS_CLKSEL   0x0002
 
#define R92S_SYS_CPU_CLKSEL   0x0004
 
#define R92S_MAC_CLK_EN   0x0800
 
#define R92S_SYS_CLK_EN   0x1000
 
#define R92S_SWHW_SEL   0x4000
 
#define R92S_FWHW_SEL   0x8000
 
#define R92S_9356SEL   0x10
 
#define R92S_EEPROM_EN   0x20
 
#define R92S_AFE_MISC_BGEN   0x01
 
#define R92S_AFE_MISC_MBEN   0x02
 
#define R92S_AFE_MISC_I32_EN   0x08
 
#define R92S_SPS1_LDEN   0x01
 
#define R92S_SPS1_SWEN   0x02
 
#define R92S_LDA15_EN   0x01
 
#define R92S_LDV12_EN   0x01
 
#define R92S_EFUSE_CTRL_DATA_M   0x000000ff
 
#define R92S_EFUSE_CTRL_DATA_S   0
 
#define R92S_EFUSE_CTRL_ADDR_M   0x0003ff00
 
#define R92S_EFUSE_CTRL_ADDR_S   8
 
#define R92S_EFUSE_CTRL_VALID   0x80000000
 
#define R92S_CR_TXDMA_EN   0x10
 
#define R92S_TXPAUSE_VO   0x01
 
#define R92S_TXPAUSE_VI   0x02
 
#define R92S_TXPAUSE_BE   0x04
 
#define R92S_TXPAUSE_BK   0x08
 
#define R92S_TXPAUSE_MGT   0x10
 
#define R92S_TXPAUSE_HIGH   0x20
 
#define R92S_TXPAUSE_HCCA   0x40
 
#define R92S_TXPAUSE_AC
 
#define R92S_TXPAUSE_ALL
 
#define R92S_TCR_IMEM_CODE_DONE   0x01
 
#define R92S_TCR_IMEM_CHK_RPT   0x02
 
#define R92S_TCR_EMEM_CODE_DONE   0x04
 
#define R92S_TCR_EMEM_CHK_RPT   0x08
 
#define R92S_TCR_DMEM_CODE_DONE   0x10
 
#define R92S_TCR_IMEM_RDY   0x20
 
#define R92S_TCR_FWRDY   0x80
 
#define R92S_RCR_AAP   0x00000001
 
#define R92S_RCR_APM   0x00000002
 
#define R92S_RCR_AM   0x00000004
 
#define R92S_RCR_AB   0x00000008
 
#define R92S_RCR_ACRC32   0x00000020
 
#define R92S_RCR_AICV   0x00001000
 
#define R92S_RCR_APP_ICV   0x00010000
 
#define R92S_RCR_APP_MIC   0x00020000
 
#define R92S_RCR_ADF   0x00040000
 
#define R92S_RCR_ACF   0x00080000
 
#define R92S_RCR_AMF   0x00100000
 
#define R92S_RCR_ADD3   0x00200000
 
#define R92S_RCR_APWRMGT   0x00400000
 
#define R92S_RCR_CBSSID   0x00800000
 
#define R92S_RCR_APP_PHYSTS   0x02000000
 
#define R92S_RCR_TCP_OFFLD_EN   0x04000000
 
#define R92S_RCR_ENMBID   0x08000000
 
#define R92S_RXFLTMAP_MGT_DEF   0x3f3f
 
#define R92S_RXFLTMAP_FW(subtype)    (1 << ((subtype) >> IEEE80211_FC0_SUBTYPE_SHIFT))
 
#define R92S_GPIO_WPS   0x10
 
#define R92S_GPIOSEL_GPIO_M   0x03
 
#define R92S_GPIOSEL_GPIO_S   0
 
#define R92S_GPIOSEL_GPIO_JTAG   0
 
#define R92S_GPIOSEL_GPIO_PHYDBG   1
 
#define R92S_GPIOSEL_GPIO_BT   2
 
#define R92S_GPIOSEL_GPIO_WLANDBG   3
 
#define R92S_GPIOMUX_EN   0x08
 
#define R92S_CAMCMD_ADDR_M   0x000000ff
 
#define R92S_CAMCMD_ADDR_S   0
 
#define R92S_CAMCMD_READ   0x00000000
 
#define R92S_CAMCMD_WRITE   0x00010000
 
#define R92S_CAMCMD_POLLING   0x80000000
 
#define R92S_CAM_ENTRY_LIMIT   32
 
#define R92S_CAM_ENTRY_BYTES   howmany(R92S_CAM_ENTRY_LIMIT, NBBY)
 
#define R92S_CAM_CTL0(entry)   ((entry) * 8 + 0)
 
#define R92S_CAM_CTL1(entry)   ((entry) * 8 + 1)
 
#define R92S_CAM_KEY(entry, i)   ((entry) * 8 + 2 + (i))
 
#define R92S_CAM_KEYID_M   0x00000003
 
#define R92S_CAM_KEYID_S   0
 
#define R92S_CAM_ALGO_M   0x0000001c
 
#define R92S_CAM_ALGO_S   2
 
#define R92S_CAM_VALID   0x00008000
 
#define R92S_CAM_MACLO_M   0xffff0000
 
#define R92S_CAM_MACLO_S   16
 
#define R92S_IOCMD_CLASS_M   0xff000000
 
#define R92S_IOCMD_CLASS_S   24
 
#define R92S_IOCMD_CLASS_BB_RF   0xf0
 
#define R92S_IOCMD_VALUE_M   0x00ffff00
 
#define R92S_IOCMD_VALUE_S   8
 
#define R92S_IOCMD_INDEX_M   0x000000ff
 
#define R92S_IOCMD_INDEX_S   0
 
#define R92S_IOCMD_INDEX_BB_READ   0
 
#define R92S_IOCMD_INDEX_BB_WRITE   1
 
#define R92S_IOCMD_INDEX_RF_READ   2
 
#define R92S_IOCMD_INDEX_RF_WRITE   3
 
#define R92S_USB_HRPWM_PS_ALL_ON   0x04
 
#define R92S_USB_HRPWM_PS_ST_ACTIVE   0x08
 
#define MS(val, field)    (((val) & field##_M) >> field##_S)
 
#define SM(field, val)    (((val) << field##_S) & field##_M)
 
#define RW(var, field, val)    (((var) & ~field##_M) | SM(field, val))
 
#define R92S_HCI_SEL_PCIE   0x01
 
#define R92S_HCI_SEL_USB   0x02
 
#define R92S_HCI_SEL_SDIO   0x04
 
#define R92S_HCI_SEL_8172   0x10
 
#define R92S_HCI_SEL_AP   0x80
 
#define R92S_VCS_TYPE_DISABLE   0
 
#define R92S_VCS_TYPE_ENABLE   1
 
#define R92S_VCS_TYPE_AUTO   2
 
#define R92S_VCS_MODE_NONE   0
 
#define R92S_VCS_MODE_RTS_CTS   1
 
#define R92S_VCS_MODE_CTS2SELF   2
 
#define R92S_FW_CMD_MORE   0x80
 
#define R92S_CMD_READ_MACREG   0
 
#define R92S_CMD_WRITE_MACREG   1
 
#define R92S_CMD_READ_BBREG   2
 
#define R92S_CMD_WRITE_BBREG   3
 
#define R92S_CMD_READ_RFREG   4
 
#define R92S_CMD_WRITE_RFREG   5
 
#define R92S_CMD_READ_EEPROM   6
 
#define R92S_CMD_WRITE_EEPROM   7
 
#define R92S_CMD_READ_EFUSE   8
 
#define R92S_CMD_WRITE_EFUSE   9
 
#define R92S_CMD_READ_CAM   10
 
#define R92S_CMD_WRITE_CAM   11
 
#define R92S_CMD_SET_BCNITV   12
 
#define R92S_CMD_SET_MBIDCFG   13
 
#define R92S_CMD_JOIN_BSS   14
 
#define R92S_CMD_DISCONNECT   15
 
#define R92S_CMD_CREATE_BSS   16
 
#define R92S_CMD_SET_OPMODE   17
 
#define R92S_CMD_SITE_SURVEY   18
 
#define R92S_CMD_SET_AUTH   19
 
#define R92S_CMD_SET_KEY   20
 
#define R92S_CMD_SET_STA_KEY   21
 
#define R92S_CMD_SET_ASSOC_STA   22
 
#define R92S_CMD_DEL_ASSOC_STA   23
 
#define R92S_CMD_SET_STAPWRSTATE   24
 
#define R92S_CMD_SET_BASIC_RATE   25
 
#define R92S_CMD_GET_BASIC_RATE   26
 
#define R92S_CMD_SET_DATA_RATE   27
 
#define R92S_CMD_GET_DATA_RATE   28
 
#define R92S_CMD_SET_PHY_INFO   29
 
#define R92S_CMD_GET_PHY_INFO   30
 
#define R92S_CMD_SET_PHY   31
 
#define R92S_CMD_GET_PHY   32
 
#define R92S_CMD_READ_RSSI   33
 
#define R92S_CMD_READ_GAIN   34
 
#define R92S_CMD_SET_ATIM   35
 
#define R92S_CMD_SET_PWR_MODE   36
 
#define R92S_CMD_JOIN_BSS_RPT   37
 
#define R92S_CMD_SET_RA_TABLE   38
 
#define R92S_CMD_GET_RA_TABLE   39
 
#define R92S_CMD_GET_CCX_REPORT   40
 
#define R92S_CMD_GET_DTM_REPORT   41
 
#define R92S_CMD_GET_TXRATE_STATS   42
 
#define R92S_CMD_SET_USB_SUSPEND   43
 
#define R92S_CMD_SET_H2C_LBK   44
 
#define R92S_CMD_ADDBA_REQ   45
 
#define R92S_CMD_SET_CHANNEL   46
 
#define R92S_CMD_SET_TXPOWER   47
 
#define R92S_CMD_SWITCH_ANTENNA   48
 
#define R92S_CMD_SET_CRYSTAL_CAL   49
 
#define R92S_CMD_SET_SINGLE_CARRIER_TX   50
 
#define R92S_CMD_SET_SINGLE_TONE_TX   51
 
#define R92S_CMD_SET_CARRIER_SUPPR_TX   52
 
#define R92S_CMD_SET_CONTINUOUS_TX   53
 
#define R92S_CMD_SWITCH_BANDWIDTH   54
 
#define R92S_CMD_TX_BEACON   55
 
#define R92S_CMD_SET_POWER_TRACKING   56
 
#define R92S_CMD_AMSDU_TO_AMPDU   57
 
#define R92S_CMD_SET_MAC_ADDRESS   58
 
#define R92S_CMD_GET_H2C_LBK   59
 
#define R92S_CMD_SET_PBREQ_IE   60
 
#define R92S_CMD_SET_ASSOCREQ_IE   61
 
#define R92S_CMD_SET_PBRESP_IE   62
 
#define R92S_CMD_SET_ASSOCRESP_IE   63
 
#define R92S_CMD_GET_CURDATARATE   64
 
#define R92S_CMD_GET_TXRETRY_CNT   65
 
#define R92S_CMD_GET_RXRETRY_CNT   66
 
#define R92S_CMD_GET_BCNOK_CNT   67
 
#define R92S_CMD_GET_BCNERR_CNT   68
 
#define R92S_CMD_GET_CURTXPWR_LEVEL   69
 
#define R92S_CMD_SET_DIG   70
 
#define R92S_CMD_SET_RA   71
 
#define R92S_CMD_SET_PT   72
 
#define R92S_CMD_READ_TSSI   73
 
#define R92S_EVT_READ_MACREG   0
 
#define R92S_EVT_READ_BBREG   1
 
#define R92S_EVT_READ_RFREG   2
 
#define R92S_EVT_READ_EEPROM   3
 
#define R92S_EVT_READ_EFUSE   4
 
#define R92S_EVT_READ_CAM   5
 
#define R92S_EVT_GET_BASICRATE   6
 
#define R92S_EVT_GET_DATARATE   7
 
#define R92S_EVT_SURVEY   8
 
#define R92S_EVT_SURVEY_DONE   9
 
#define R92S_EVT_JOIN_BSS   10
 
#define R92S_EVT_ADD_STA   11
 
#define R92S_EVT_DEL_STA   12
 
#define R92S_EVT_ATIM_DONE   13
 
#define R92S_EVT_TX_REPORT   14
 
#define R92S_EVT_CCX_REPORT   15
 
#define R92S_EVT_DTM_REPORT   16
 
#define R92S_EVT_TXRATE_STATS   17
 
#define R92S_EVT_C2H_LBK   18
 
#define R92S_EVT_FWDBG   19
 
#define R92S_EVT_C2H_FEEDBACK   20
 
#define R92S_EVT_ADDBA   21
 
#define R92S_EVT_C2H_BCN   22
 
#define R92S_EVT_PWR_STATE   23
 
#define R92S_EVT_WPS_PBC   24
 
#define R92S_EVT_ADDBA_REQ_REPORT   25
 
#define R92S_AUTHMODE_OPEN   0
 
#define R92S_AUTHMODE_SHARED   1
 
#define R92S_AUTHMODE_WPA   2
 
#define R92S_KEY_ALGO_NONE   0
 
#define R92S_KEY_ALGO_WEP40   1
 
#define R92S_KEY_ALGO_TKIP   2
 
#define R92S_KEY_ALGO_TKIP_MMIC   3
 
#define R92S_KEY_ALGO_AES   4
 
#define R92S_KEY_ALGO_WEP104   5
 
#define R92S_KEY_ALGO_INVALID   0xff /* for rsu_crypto_mode() only */
 
#define NDIS802_11FH   0
 
#define NDIS802_11DS   1
 
#define NDIS802_11OFDM5   2
 
#define NDIS802_11OFDM24   3
 
#define NDIS802_11AUTOMODE   4
 
#define NDIS802_11IBSS   0
 
#define NDIS802_11INFRASTRUCTURE   1
 
#define NDIS802_11AUTOUNKNOWN   2
 
#define NDIS802_11MONITOR   3
 
#define NDIS802_11APMODE   4
 
#define R92S_PS_MODE_ACTIVE   0
 
#define R92S_PS_MODE_MIN   1
 
#define R92S_PS_MODE_MAX   2
 
#define R92S_PS_MODE_DTIM   3
 
#define R92S_PS_MODE_VOIP   4
 
#define R92S_PS_MODE_UAPSD_WMM   5
 
#define R92S_PS_MODE_UAPSD   6
 
#define R92S_PS_MODE_IBSS   7
 
#define R92S_PS_MODE_WWLAN   8
 
#define R92S_PS_MODE_RADIOOFF   9
 
#define R92S_PS_MODE_DISABLE   10
 
#define R92S_MACID_BSS   5 /* XXX hardcoded somewhere */
 
#define R92S_RXDW0_PKTLEN_M   0x00003fff
 
#define R92S_RXDW0_PKTLEN_S   0
 
#define R92S_RXDW0_CRCERR   0x00004000
 
#define R92S_RXDW0_ICVERR   0x00008000
 
#define R92S_RXDW0_INFOSZ_M   0x000f0000
 
#define R92S_RXDW0_INFOSZ_S   16
 
#define R92S_RXDW0_CIPHER_M   0x00700000
 
#define R92S_RXDW0_CIPHER_S   20
 
#define R92S_RXDW0_QOS   0x00800000
 
#define R92S_RXDW0_SHIFT_M   0x03000000
 
#define R92S_RXDW0_SHIFT_S   24
 
#define R92S_RXDW0_PHYST   0x04000000
 
#define R92S_RXDW0_DECRYPTED   0x08000000
 
#define R92S_RXDW1_MOREFRAG   0x08000000
 
#define R92S_RXDW2_FRAG_M   0x0000f000
 
#define R92S_RXDW2_FRAG_S   12
 
#define R92S_RXDW2_PKTCNT_M   0x00ff0000
 
#define R92S_RXDW2_PKTCNT_S   16
 
#define R92S_RXDW3_RATE_M   0x0000003f
 
#define R92S_RXDW3_RATE_S   0
 
#define R92S_RXDW3_TCPCHKRPT   0x00000800
 
#define R92S_RXDW3_IPCHKRPT   0x00001000
 
#define R92S_RXDW3_TCPCHKVALID   0x00002000
 
#define R92S_RXDW3_HTC   0x00004000
 
#define R92S_TXDW0_PKTLEN_M   0x0000ffff
 
#define R92S_TXDW0_PKTLEN_S   0
 
#define R92S_TXDW0_OFFSET_M   0x00ff0000
 
#define R92S_TXDW0_OFFSET_S   16
 
#define R92S_TXDW0_TYPE_M   0x03000000
 
#define R92S_TXDW0_TYPE_S   24
 
#define R92S_TXDW0_LSG   0x04000000
 
#define R92S_TXDW0_FSG   0x08000000
 
#define R92S_TXDW0_LINIP   0x10000000
 
#define R92S_TXDW0_OWN   0x80000000
 
#define R92S_TXDW1_MACID_M   0x0000001f
 
#define R92S_TXDW1_MACID_S   0
 
#define R92S_TXDW1_MOREDATA   0x00000020
 
#define R92S_TXDW1_MOREFRAG   0x00000040
 
#define R92S_TXDW1_QSEL_M   0x00001f00
 
#define R92S_TXDW1_QSEL_S   8
 
#define R92S_TXDW1_QSEL_BE   0x03
 
#define R92S_TXDW1_QSEL_H2C   0x13
 
#define R92S_TXDW1_NONQOS   0x00010000
 
#define R92S_TXDW1_KEYIDX_M   0x00060000
 
#define R92S_TXDW1_KEYIDX_S   17
 
#define R92S_TXDW1_CIPHER_M   0x00c00000
 
#define R92S_TXDW1_CIPHER_S   22
 
#define R92S_TXDW1_CIPHER_NONE   0
 
#define R92S_TXDW1_CIPHER_WEP   1
 
#define R92S_TXDW1_CIPHER_TKIP   2
 
#define R92S_TXDW1_CIPHER_AES   3
 
#define R92S_TXDW1_HWPC   0x80000000
 
#define R92S_TXDW2_RTY_LMT_M   0x0000003f
 
#define R92S_TXDW2_RTY_LMT_S   0
 
#define R92S_TXDW2_RTY_LMT_ENA   0x00000040
 
#define R92S_TXDW2_BMCAST   0x00000080
 
#define R92S_TXDW2_AGGEN   0x20000000
 
#define R92S_TXDW2_BK   0x40000000
 
#define R92S_TXDW3_SEQ_M   0x0fff0000
 
#define R92S_TXDW3_SEQ_S   16
 
#define R92S_TXDW3_FRAG_M   0xf0000000
 
#define R92S_TXDW3_FRAG_S   28
 
#define R92S_TXDW4_TXBW   0x00040000
 
#define R92S_TXDW4_DRVRATE   0x80000000
 
#define R92S_TXDW5_DATARATE_M   0x00007e00
 
#define R92S_TXDW5_DATARATE_S   9
 
#define R92S_TXDW5_DISFB   0x00008000
 
#define R92S_TXDW5_DATARATE_FB_LMT_M   0x001f0000
 
#define R92S_TXDW5_DATARATE_FB_LMT_S   16
 
#define RSU_RX_LIST_COUNT   1
 
#define RSU_TX_LIST_COUNT   32
 
#define RSU_RXBUFSZ   (30 * 1024)
 
#define RSU_TXBUFSZ    ((sizeof(struct r92s_tx_desc) + IEEE80211_MAX_LEN + 3) & ~3)
 
#define RSU_TX_TIMEOUT   5000 /* ms */
 
#define RSU_CMD_TIMEOUT   2000 /* ms */
 
#define RSU_QID_BCN   0
 
#define RSU_QID_MGT   1
 
#define RSU_QID_BMC   2
 
#define RSU_QID_VO   3
 
#define RSU_QID_VI   4
 
#define RSU_QID_BE   5
 
#define RSU_QID_BK   6
 
#define RSU_QID_RXOFF   7
 
#define RSU_QID_H2C   8
 
#define RSU_QID_C2H   9
 
#define RSU_RX_RADIOTAP_PRESENT
 
#define RSU_TX_RADIOTAP_PRESENT
 
#define RSU_VAP(vap)   ((struct rsu_vap *)(vap))
 
#define RSU_LOCK(sc)   mtx_lock(&(sc)->sc_mtx)
 
#define RSU_UNLOCK(sc)   mtx_unlock(&(sc)->sc_mtx)
 
#define RSU_ASSERT_LOCKED(sc)   mtx_assert(&(sc)->sc_mtx, MA_OWNED)
 
#define RSU_DELKEY_BMAP_LOCK_INIT(_sc)    mtx_init(&(_sc)->free_keys_bmap_mtx, "bmap lock", NULL, MTX_DEF)
 
#define RSU_DELKEY_BMAP_LOCK(_sc)   mtx_lock(&(_sc)->free_keys_bmap_mtx)
 
#define RSU_DELKEY_BMAP_UNLOCK(_sc)   mtx_unlock(&(_sc)->free_keys_bmap_mtx)
 
#define RSU_DELKEY_BMAP_LOCK_DESTROY(_sc)    mtx_destroy(&(_sc)->free_keys_bmap_mtx)
 
#define sc_rxtap   sc_rxtapu.th
 
#define sc_txtap   sc_txtapu.th
 

Enumerations

enum  {
  RTL8712_RFCONFIG_1T = 0x10 , RTL8712_RFCONFIG_2T = 0x20 , RTL8712_RFCONFIG_1R = 0x01 , RTL8712_RFCONFIG_2R = 0x02 ,
  RTL8712_RFCONFIG_1T1R = 0x11 , RTL8712_RFCONFIG_1T2R = 0x12 , RTL8712_RFCONFIG_TURBO = 0x92 , RTL8712_RFCONFIG_2T2R = 0x22
}
 
enum  {
  RSU_BULK_RX , RSU_BULK_TX_BE_BK , RSU_BULK_TX_VI_VO , RSU_BULK_TX_H2C ,
  RSU_N_TRANSFER
}
 

Functions

struct r92s_rx_stat __aligned (4)
 
struct rsu_rx_radiotap_header __aligned (8)
 

Variables

struct r92s_fw_priv __packed
 
uint32_t rxdw0
 
uint32_t rxdw1
 
uint32_t rxdw2
 
uint32_t rxdw3
 
uint32_t rxdw4
 
uint32_t tsf_low
 
uint32_t phydw0
 
uint32_t phydw1
 
uint32_t phydw2
 
uint32_t phydw3
 
uint32_t phydw4
 
uint32_t phydw5
 
uint32_t phydw6
 
uint32_t phydw7
 
uint32_t txdw0
 
uint32_t txdw1
 
uint32_t txdw2
 
uint32_t txdw3
 
uint32_t txdw4
 
uint32_t txdw5
 
uint16_t ipchksum
 
uint16_t tcpchksum
 
uint16_t txbufsize
 
uint16_t reserved1
 
struct r92s_add_ba_event __aligned
 
static const uint8_t rsu_ac2qid [WME_NUM_AC]
 
static const uint8_t r92s_epaddr []
 
static const uint8_t rsu_qid2idx_4ep []
 
static const uint8_t rsu_qid2idx_6ep []
 
static const uint8_t rsu_qid2idx_11ep []
 
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
 
uint8_t wr_dbm_antsignal
 

Macro Definition Documentation

◆ MS

#define MS (   val,
  field 
)     (((val) & field##_M) >> field##_S)

Definition at line 234 of file if_rsureg.h.

◆ NDIS802_11APMODE

#define NDIS802_11APMODE   4

Definition at line 537 of file if_rsureg.h.

◆ NDIS802_11AUTOMODE

#define NDIS802_11AUTOMODE   4

Definition at line 529 of file if_rsureg.h.

◆ NDIS802_11AUTOUNKNOWN

#define NDIS802_11AUTOUNKNOWN   2

Definition at line 535 of file if_rsureg.h.

◆ NDIS802_11DS

#define NDIS802_11DS   1

Definition at line 526 of file if_rsureg.h.

◆ NDIS802_11FH

#define NDIS802_11FH   0

Definition at line 525 of file if_rsureg.h.

◆ NDIS802_11IBSS

#define NDIS802_11IBSS   0

Definition at line 533 of file if_rsureg.h.

◆ NDIS802_11INFRASTRUCTURE

#define NDIS802_11INFRASTRUCTURE   1

Definition at line 534 of file if_rsureg.h.

◆ NDIS802_11MONITOR

#define NDIS802_11MONITOR   3

Definition at line 536 of file if_rsureg.h.

◆ NDIS802_11OFDM24

#define NDIS802_11OFDM24   3

Definition at line 528 of file if_rsureg.h.

◆ NDIS802_11OFDM5

#define NDIS802_11OFDM5   2

Definition at line 527 of file if_rsureg.h.

◆ R92S_9356SEL

#define R92S_9356SEL   0x10

Definition at line 96 of file if_rsureg.h.

◆ R92S_AFE_MISC

#define R92S_AFE_MISC   (R92S_SYSCFG + 0x010)

Definition at line 32 of file if_rsureg.h.

◆ R92S_AFE_MISC_BGEN

#define R92S_AFE_MISC_BGEN   0x01

Definition at line 100 of file if_rsureg.h.

◆ R92S_AFE_MISC_I32_EN

#define R92S_AFE_MISC_I32_EN   0x08

Definition at line 102 of file if_rsureg.h.

◆ R92S_AFE_MISC_MBEN

#define R92S_AFE_MISC_MBEN   0x02

Definition at line 101 of file if_rsureg.h.

◆ R92S_AFE_PLL_CTRL

#define R92S_AFE_PLL_CTRL   (R92S_SYSCFG + 0x028)

Definition at line 39 of file if_rsureg.h.

◆ R92S_AFE_XTAL_CTRL

#define R92S_AFE_XTAL_CTRL   (R92S_SYSCFG + 0x026)

Definition at line 38 of file if_rsureg.h.

◆ R92S_AUTHMODE_OPEN

#define R92S_AUTHMODE_OPEN   0

Definition at line 462 of file if_rsureg.h.

◆ R92S_AUTHMODE_SHARED

#define R92S_AUTHMODE_SHARED   1

Definition at line 463 of file if_rsureg.h.

◆ R92S_AUTHMODE_WPA

#define R92S_AUTHMODE_WPA   2

Definition at line 464 of file if_rsureg.h.

◆ R92S_CAM_ALGO_M

#define R92S_CAM_ALGO_M   0x0000001c

Definition at line 207 of file if_rsureg.h.

◆ R92S_CAM_ALGO_S

#define R92S_CAM_ALGO_S   2

Definition at line 208 of file if_rsureg.h.

◆ R92S_CAM_CTL0

#define R92S_CAM_CTL0 (   entry)    ((entry) * 8 + 0)

Definition at line 200 of file if_rsureg.h.

◆ R92S_CAM_CTL1

#define R92S_CAM_CTL1 (   entry)    ((entry) * 8 + 1)

Definition at line 201 of file if_rsureg.h.

◆ R92S_CAM_ENTRY_BYTES

#define R92S_CAM_ENTRY_BYTES   howmany(R92S_CAM_ENTRY_LIMIT, NBBY)

Definition at line 198 of file if_rsureg.h.

◆ R92S_CAM_ENTRY_LIMIT

#define R92S_CAM_ENTRY_LIMIT   32

Definition at line 197 of file if_rsureg.h.

◆ R92S_CAM_KEY

#define R92S_CAM_KEY (   entry,
 
)    ((entry) * 8 + 2 + (i))

Definition at line 202 of file if_rsureg.h.

◆ R92S_CAM_KEYID_M

#define R92S_CAM_KEYID_M   0x00000003

Definition at line 205 of file if_rsureg.h.

◆ R92S_CAM_KEYID_S

#define R92S_CAM_KEYID_S   0

Definition at line 206 of file if_rsureg.h.

◆ R92S_CAM_MACLO_M

#define R92S_CAM_MACLO_M   0xffff0000

Definition at line 210 of file if_rsureg.h.

◆ R92S_CAM_MACLO_S

#define R92S_CAM_MACLO_S   16

Definition at line 211 of file if_rsureg.h.

◆ R92S_CAM_VALID

#define R92S_CAM_VALID   0x00008000

Definition at line 209 of file if_rsureg.h.

◆ R92S_CAMCMD

#define R92S_CAMCMD   (R92S_SECURITY + 0x000)

Definition at line 64 of file if_rsureg.h.

◆ R92S_CAMCMD_ADDR_M

#define R92S_CAMCMD_ADDR_M   0x000000ff

Definition at line 188 of file if_rsureg.h.

◆ R92S_CAMCMD_ADDR_S

#define R92S_CAMCMD_ADDR_S   0

Definition at line 189 of file if_rsureg.h.

◆ R92S_CAMCMD_POLLING

#define R92S_CAMCMD_POLLING   0x80000000

Definition at line 192 of file if_rsureg.h.

◆ R92S_CAMCMD_READ

#define R92S_CAMCMD_READ   0x00000000

Definition at line 190 of file if_rsureg.h.

◆ R92S_CAMCMD_WRITE

#define R92S_CAMCMD_WRITE   0x00010000

Definition at line 191 of file if_rsureg.h.

◆ R92S_CAMREAD

#define R92S_CAMREAD   (R92S_SECURITY + 0x008)

Definition at line 66 of file if_rsureg.h.

◆ R92S_CAMWRITE

#define R92S_CAMWRITE   (R92S_SECURITY + 0x004)

Definition at line 65 of file if_rsureg.h.

◆ R92S_CMD_ADDBA_REQ

#define R92S_CMD_ADDBA_REQ   45

Definition at line 393 of file if_rsureg.h.

◆ R92S_CMD_AMSDU_TO_AMPDU

#define R92S_CMD_AMSDU_TO_AMPDU   57

Definition at line 405 of file if_rsureg.h.

◆ R92S_CMD_CREATE_BSS

#define R92S_CMD_CREATE_BSS   16

Definition at line 364 of file if_rsureg.h.

◆ R92S_CMD_DEL_ASSOC_STA

#define R92S_CMD_DEL_ASSOC_STA   23

Definition at line 371 of file if_rsureg.h.

◆ R92S_CMD_DISCONNECT

#define R92S_CMD_DISCONNECT   15

Definition at line 363 of file if_rsureg.h.

◆ R92S_CMD_GET_BASIC_RATE

#define R92S_CMD_GET_BASIC_RATE   26

Definition at line 374 of file if_rsureg.h.

◆ R92S_CMD_GET_BCNERR_CNT

#define R92S_CMD_GET_BCNERR_CNT   68

Definition at line 416 of file if_rsureg.h.

◆ R92S_CMD_GET_BCNOK_CNT

#define R92S_CMD_GET_BCNOK_CNT   67

Definition at line 415 of file if_rsureg.h.

◆ R92S_CMD_GET_CCX_REPORT

#define R92S_CMD_GET_CCX_REPORT   40

Definition at line 388 of file if_rsureg.h.

◆ R92S_CMD_GET_CURDATARATE

#define R92S_CMD_GET_CURDATARATE   64

Definition at line 412 of file if_rsureg.h.

◆ R92S_CMD_GET_CURTXPWR_LEVEL

#define R92S_CMD_GET_CURTXPWR_LEVEL   69

Definition at line 417 of file if_rsureg.h.

◆ R92S_CMD_GET_DATA_RATE

#define R92S_CMD_GET_DATA_RATE   28

Definition at line 376 of file if_rsureg.h.

◆ R92S_CMD_GET_DTM_REPORT

#define R92S_CMD_GET_DTM_REPORT   41

Definition at line 389 of file if_rsureg.h.

◆ R92S_CMD_GET_H2C_LBK

#define R92S_CMD_GET_H2C_LBK   59

Definition at line 407 of file if_rsureg.h.

◆ R92S_CMD_GET_PHY

#define R92S_CMD_GET_PHY   32

Definition at line 380 of file if_rsureg.h.

◆ R92S_CMD_GET_PHY_INFO

#define R92S_CMD_GET_PHY_INFO   30

Definition at line 378 of file if_rsureg.h.

◆ R92S_CMD_GET_RA_TABLE

#define R92S_CMD_GET_RA_TABLE   39

Definition at line 387 of file if_rsureg.h.

◆ R92S_CMD_GET_RXRETRY_CNT

#define R92S_CMD_GET_RXRETRY_CNT   66

Definition at line 414 of file if_rsureg.h.

◆ R92S_CMD_GET_TXRATE_STATS

#define R92S_CMD_GET_TXRATE_STATS   42

Definition at line 390 of file if_rsureg.h.

◆ R92S_CMD_GET_TXRETRY_CNT

#define R92S_CMD_GET_TXRETRY_CNT   65

Definition at line 413 of file if_rsureg.h.

◆ R92S_CMD_JOIN_BSS

#define R92S_CMD_JOIN_BSS   14

Definition at line 362 of file if_rsureg.h.

◆ R92S_CMD_JOIN_BSS_RPT

#define R92S_CMD_JOIN_BSS_RPT   37

Definition at line 385 of file if_rsureg.h.

◆ R92S_CMD_READ_BBREG

#define R92S_CMD_READ_BBREG   2

Definition at line 350 of file if_rsureg.h.

◆ R92S_CMD_READ_CAM

#define R92S_CMD_READ_CAM   10

Definition at line 358 of file if_rsureg.h.

◆ R92S_CMD_READ_EEPROM

#define R92S_CMD_READ_EEPROM   6

Definition at line 354 of file if_rsureg.h.

◆ R92S_CMD_READ_EFUSE

#define R92S_CMD_READ_EFUSE   8

Definition at line 356 of file if_rsureg.h.

◆ R92S_CMD_READ_GAIN

#define R92S_CMD_READ_GAIN   34

Definition at line 382 of file if_rsureg.h.

◆ R92S_CMD_READ_MACREG

#define R92S_CMD_READ_MACREG   0

Definition at line 348 of file if_rsureg.h.

◆ R92S_CMD_READ_RFREG

#define R92S_CMD_READ_RFREG   4

Definition at line 352 of file if_rsureg.h.

◆ R92S_CMD_READ_RSSI

#define R92S_CMD_READ_RSSI   33

Definition at line 381 of file if_rsureg.h.

◆ R92S_CMD_READ_TSSI

#define R92S_CMD_READ_TSSI   73

Definition at line 421 of file if_rsureg.h.

◆ R92S_CMD_SET_ASSOC_STA

#define R92S_CMD_SET_ASSOC_STA   22

Definition at line 370 of file if_rsureg.h.

◆ R92S_CMD_SET_ASSOCREQ_IE

#define R92S_CMD_SET_ASSOCREQ_IE   61

Definition at line 409 of file if_rsureg.h.

◆ R92S_CMD_SET_ASSOCRESP_IE

#define R92S_CMD_SET_ASSOCRESP_IE   63

Definition at line 411 of file if_rsureg.h.

◆ R92S_CMD_SET_ATIM

#define R92S_CMD_SET_ATIM   35

Definition at line 383 of file if_rsureg.h.

◆ R92S_CMD_SET_AUTH

#define R92S_CMD_SET_AUTH   19

Definition at line 367 of file if_rsureg.h.

◆ R92S_CMD_SET_BASIC_RATE

#define R92S_CMD_SET_BASIC_RATE   25

Definition at line 373 of file if_rsureg.h.

◆ R92S_CMD_SET_BCNITV

#define R92S_CMD_SET_BCNITV   12

Definition at line 360 of file if_rsureg.h.

◆ R92S_CMD_SET_CARRIER_SUPPR_TX

#define R92S_CMD_SET_CARRIER_SUPPR_TX   52

Definition at line 400 of file if_rsureg.h.

◆ R92S_CMD_SET_CHANNEL

#define R92S_CMD_SET_CHANNEL   46

Definition at line 394 of file if_rsureg.h.

◆ R92S_CMD_SET_CONTINUOUS_TX

#define R92S_CMD_SET_CONTINUOUS_TX   53

Definition at line 401 of file if_rsureg.h.

◆ R92S_CMD_SET_CRYSTAL_CAL

#define R92S_CMD_SET_CRYSTAL_CAL   49

Definition at line 397 of file if_rsureg.h.

◆ R92S_CMD_SET_DATA_RATE

#define R92S_CMD_SET_DATA_RATE   27

Definition at line 375 of file if_rsureg.h.

◆ R92S_CMD_SET_DIG

#define R92S_CMD_SET_DIG   70

Definition at line 418 of file if_rsureg.h.

◆ R92S_CMD_SET_H2C_LBK

#define R92S_CMD_SET_H2C_LBK   44

Definition at line 392 of file if_rsureg.h.

◆ R92S_CMD_SET_KEY

#define R92S_CMD_SET_KEY   20

Definition at line 368 of file if_rsureg.h.

◆ R92S_CMD_SET_MAC_ADDRESS

#define R92S_CMD_SET_MAC_ADDRESS   58

Definition at line 406 of file if_rsureg.h.

◆ R92S_CMD_SET_MBIDCFG

#define R92S_CMD_SET_MBIDCFG   13

Definition at line 361 of file if_rsureg.h.

◆ R92S_CMD_SET_OPMODE

#define R92S_CMD_SET_OPMODE   17

Definition at line 365 of file if_rsureg.h.

◆ R92S_CMD_SET_PBREQ_IE

#define R92S_CMD_SET_PBREQ_IE   60

Definition at line 408 of file if_rsureg.h.

◆ R92S_CMD_SET_PBRESP_IE

#define R92S_CMD_SET_PBRESP_IE   62

Definition at line 410 of file if_rsureg.h.

◆ R92S_CMD_SET_PHY

#define R92S_CMD_SET_PHY   31

Definition at line 379 of file if_rsureg.h.

◆ R92S_CMD_SET_PHY_INFO

#define R92S_CMD_SET_PHY_INFO   29

Definition at line 377 of file if_rsureg.h.

◆ R92S_CMD_SET_POWER_TRACKING

#define R92S_CMD_SET_POWER_TRACKING   56

Definition at line 404 of file if_rsureg.h.

◆ R92S_CMD_SET_PT

#define R92S_CMD_SET_PT   72

Definition at line 420 of file if_rsureg.h.

◆ R92S_CMD_SET_PWR_MODE

#define R92S_CMD_SET_PWR_MODE   36

Definition at line 384 of file if_rsureg.h.

◆ R92S_CMD_SET_RA

#define R92S_CMD_SET_RA   71

Definition at line 419 of file if_rsureg.h.

◆ R92S_CMD_SET_RA_TABLE

#define R92S_CMD_SET_RA_TABLE   38

Definition at line 386 of file if_rsureg.h.

◆ R92S_CMD_SET_SINGLE_CARRIER_TX

#define R92S_CMD_SET_SINGLE_CARRIER_TX   50

Definition at line 398 of file if_rsureg.h.

◆ R92S_CMD_SET_SINGLE_TONE_TX

#define R92S_CMD_SET_SINGLE_TONE_TX   51

Definition at line 399 of file if_rsureg.h.

◆ R92S_CMD_SET_STA_KEY

#define R92S_CMD_SET_STA_KEY   21

Definition at line 369 of file if_rsureg.h.

◆ R92S_CMD_SET_STAPWRSTATE

#define R92S_CMD_SET_STAPWRSTATE   24

Definition at line 372 of file if_rsureg.h.

◆ R92S_CMD_SET_TXPOWER

#define R92S_CMD_SET_TXPOWER   47

Definition at line 395 of file if_rsureg.h.

◆ R92S_CMD_SET_USB_SUSPEND

#define R92S_CMD_SET_USB_SUSPEND   43

Definition at line 391 of file if_rsureg.h.

◆ R92S_CMD_SITE_SURVEY

#define R92S_CMD_SITE_SURVEY   18

Definition at line 366 of file if_rsureg.h.

◆ R92S_CMD_SWITCH_ANTENNA

#define R92S_CMD_SWITCH_ANTENNA   48

Definition at line 396 of file if_rsureg.h.

◆ R92S_CMD_SWITCH_BANDWIDTH

#define R92S_CMD_SWITCH_BANDWIDTH   54

Definition at line 402 of file if_rsureg.h.

◆ R92S_CMD_TX_BEACON

#define R92S_CMD_TX_BEACON   55

Definition at line 403 of file if_rsureg.h.

◆ R92S_CMD_WRITE_BBREG

#define R92S_CMD_WRITE_BBREG   3

Definition at line 351 of file if_rsureg.h.

◆ R92S_CMD_WRITE_CAM

#define R92S_CMD_WRITE_CAM   11

Definition at line 359 of file if_rsureg.h.

◆ R92S_CMD_WRITE_EEPROM

#define R92S_CMD_WRITE_EEPROM   7

Definition at line 355 of file if_rsureg.h.

◆ R92S_CMD_WRITE_EFUSE

#define R92S_CMD_WRITE_EFUSE   9

Definition at line 357 of file if_rsureg.h.

◆ R92S_CMD_WRITE_MACREG

#define R92S_CMD_WRITE_MACREG   1

Definition at line 349 of file if_rsureg.h.

◆ R92S_CMD_WRITE_RFREG

#define R92S_CMD_WRITE_RFREG   5

Definition at line 353 of file if_rsureg.h.

◆ R92S_CMDCTRL

#define R92S_CMDCTRL   0x0040

Definition at line 44 of file if_rsureg.h.

◆ R92S_CR

#define R92S_CR   (R92S_CMDCTRL + 0x000)

Definition at line 45 of file if_rsureg.h.

◆ R92S_CR_TXDMA_EN

#define R92S_CR_TXDMA_EN   0x10

Definition at line 122 of file if_rsureg.h.

◆ R92S_EE_9346CR

#define R92S_EE_9346CR   (R92S_SYSCFG + 0x00a)

Definition at line 31 of file if_rsureg.h.

◆ R92S_EEPROM_EN

#define R92S_EEPROM_EN   0x20

Definition at line 97 of file if_rsureg.h.

◆ R92S_EFUSE_CLK_CTRL

#define R92S_EFUSE_CLK_CTRL   (R92S_SYSCFG + 0x2f8)

Definition at line 42 of file if_rsureg.h.

◆ R92S_EFUSE_CTRL

#define R92S_EFUSE_CTRL   (R92S_SYSCFG + 0x030)

Definition at line 40 of file if_rsureg.h.

◆ R92S_EFUSE_CTRL_ADDR_M

#define R92S_EFUSE_CTRL_ADDR_M   0x0003ff00

Definition at line 117 of file if_rsureg.h.

◆ R92S_EFUSE_CTRL_ADDR_S

#define R92S_EFUSE_CTRL_ADDR_S   8

Definition at line 118 of file if_rsureg.h.

◆ R92S_EFUSE_CTRL_DATA_M

#define R92S_EFUSE_CTRL_DATA_M   0x000000ff

Definition at line 115 of file if_rsureg.h.

◆ R92S_EFUSE_CTRL_DATA_S

#define R92S_EFUSE_CTRL_DATA_S   0

Definition at line 116 of file if_rsureg.h.

◆ R92S_EFUSE_CTRL_VALID

#define R92S_EFUSE_CTRL_VALID   0x80000000

Definition at line 119 of file if_rsureg.h.

◆ R92S_EFUSE_TEST

#define R92S_EFUSE_TEST   (R92S_SYSCFG + 0x034)

Definition at line 41 of file if_rsureg.h.

◆ R92S_EVT_ADD_STA

#define R92S_EVT_ADD_STA   11

Definition at line 435 of file if_rsureg.h.

◆ R92S_EVT_ADDBA

#define R92S_EVT_ADDBA   21

Definition at line 445 of file if_rsureg.h.

◆ R92S_EVT_ADDBA_REQ_REPORT

#define R92S_EVT_ADDBA_REQ_REPORT   25

Definition at line 449 of file if_rsureg.h.

◆ R92S_EVT_ATIM_DONE

#define R92S_EVT_ATIM_DONE   13

Definition at line 437 of file if_rsureg.h.

◆ R92S_EVT_C2H_BCN

#define R92S_EVT_C2H_BCN   22

Definition at line 446 of file if_rsureg.h.

◆ R92S_EVT_C2H_FEEDBACK

#define R92S_EVT_C2H_FEEDBACK   20

Definition at line 444 of file if_rsureg.h.

◆ R92S_EVT_C2H_LBK

#define R92S_EVT_C2H_LBK   18

Definition at line 442 of file if_rsureg.h.

◆ R92S_EVT_CCX_REPORT

#define R92S_EVT_CCX_REPORT   15

Definition at line 439 of file if_rsureg.h.

◆ R92S_EVT_DEL_STA

#define R92S_EVT_DEL_STA   12

Definition at line 436 of file if_rsureg.h.

◆ R92S_EVT_DTM_REPORT

#define R92S_EVT_DTM_REPORT   16

Definition at line 440 of file if_rsureg.h.

◆ R92S_EVT_FWDBG

#define R92S_EVT_FWDBG   19

Definition at line 443 of file if_rsureg.h.

◆ R92S_EVT_GET_BASICRATE

#define R92S_EVT_GET_BASICRATE   6

Definition at line 430 of file if_rsureg.h.

◆ R92S_EVT_GET_DATARATE

#define R92S_EVT_GET_DATARATE   7

Definition at line 431 of file if_rsureg.h.

◆ R92S_EVT_JOIN_BSS

#define R92S_EVT_JOIN_BSS   10

Definition at line 434 of file if_rsureg.h.

◆ R92S_EVT_PWR_STATE

#define R92S_EVT_PWR_STATE   23

Definition at line 447 of file if_rsureg.h.

◆ R92S_EVT_READ_BBREG

#define R92S_EVT_READ_BBREG   1

Definition at line 425 of file if_rsureg.h.

◆ R92S_EVT_READ_CAM

#define R92S_EVT_READ_CAM   5

Definition at line 429 of file if_rsureg.h.

◆ R92S_EVT_READ_EEPROM

#define R92S_EVT_READ_EEPROM   3

Definition at line 427 of file if_rsureg.h.

◆ R92S_EVT_READ_EFUSE

#define R92S_EVT_READ_EFUSE   4

Definition at line 428 of file if_rsureg.h.

◆ R92S_EVT_READ_MACREG

#define R92S_EVT_READ_MACREG   0

Definition at line 424 of file if_rsureg.h.

◆ R92S_EVT_READ_RFREG

#define R92S_EVT_READ_RFREG   2

Definition at line 426 of file if_rsureg.h.

◆ R92S_EVT_SURVEY

#define R92S_EVT_SURVEY   8

Definition at line 432 of file if_rsureg.h.

◆ R92S_EVT_SURVEY_DONE

#define R92S_EVT_SURVEY_DONE   9

Definition at line 433 of file if_rsureg.h.

◆ R92S_EVT_TX_REPORT

#define R92S_EVT_TX_REPORT   14

Definition at line 438 of file if_rsureg.h.

◆ R92S_EVT_TXRATE_STATS

#define R92S_EVT_TXRATE_STATS   17

Definition at line 441 of file if_rsureg.h.

◆ R92S_EVT_WPS_PBC

#define R92S_EVT_WPS_PBC   24

Definition at line 448 of file if_rsureg.h.

◆ R92S_FEN_CPUEN

#define R92S_FEN_CPUEN   0x0400

Definition at line 80 of file if_rsureg.h.

◆ R92S_FIFOCTRL

#define R92S_FIFOCTRL   0x00a0

Definition at line 57 of file if_rsureg.h.

◆ R92S_FW_CMD_MORE

#define R92S_FW_CMD_MORE   0x80

Definition at line 342 of file if_rsureg.h.

◆ R92S_FWHW_SEL

#define R92S_FWHW_SEL   0x8000

Definition at line 93 of file if_rsureg.h.

◆ R92S_GP

#define R92S_GP   0x02e0

Definition at line 68 of file if_rsureg.h.

◆ R92S_GPIO_CTRL

#define R92S_GPIO_CTRL   (R92S_GP + 0x00c)

Definition at line 69 of file if_rsureg.h.

◆ R92S_GPIO_IO_SEL

#define R92S_GPIO_IO_SEL   (R92S_GP + 0x00e)

Definition at line 70 of file if_rsureg.h.

◆ R92S_GPIO_WPS

#define R92S_GPIO_WPS   0x10

Definition at line 176 of file if_rsureg.h.

◆ R92S_GPIOMUX_EN

#define R92S_GPIOMUX_EN   0x08

Definition at line 185 of file if_rsureg.h.

◆ R92S_GPIOSEL_GPIO_BT

#define R92S_GPIOSEL_GPIO_BT   2

Definition at line 183 of file if_rsureg.h.

◆ R92S_GPIOSEL_GPIO_JTAG

#define R92S_GPIOSEL_GPIO_JTAG   0

Definition at line 181 of file if_rsureg.h.

◆ R92S_GPIOSEL_GPIO_M

#define R92S_GPIOSEL_GPIO_M   0x03

Definition at line 179 of file if_rsureg.h.

◆ R92S_GPIOSEL_GPIO_PHYDBG

#define R92S_GPIOSEL_GPIO_PHYDBG   1

Definition at line 182 of file if_rsureg.h.

◆ R92S_GPIOSEL_GPIO_S

#define R92S_GPIOSEL_GPIO_S   0

Definition at line 180 of file if_rsureg.h.

◆ R92S_GPIOSEL_GPIO_WLANDBG

#define R92S_GPIOSEL_GPIO_WLANDBG   3

Definition at line 184 of file if_rsureg.h.

◆ R92S_HCI_SEL_8172

#define R92S_HCI_SEL_8172   0x10

Definition at line 269 of file if_rsureg.h.

◆ R92S_HCI_SEL_AP

#define R92S_HCI_SEL_AP   0x80

Definition at line 270 of file if_rsureg.h.

◆ R92S_HCI_SEL_PCIE

#define R92S_HCI_SEL_PCIE   0x01

Definition at line 266 of file if_rsureg.h.

◆ R92S_HCI_SEL_SDIO

#define R92S_HCI_SEL_SDIO   0x04

Definition at line 268 of file if_rsureg.h.

◆ R92S_HCI_SEL_USB

#define R92S_HCI_SEL_USB   0x02

Definition at line 267 of file if_rsureg.h.

◆ R92S_IOCMD_CLASS_BB_RF

#define R92S_IOCMD_CLASS_BB_RF   0xf0

Definition at line 216 of file if_rsureg.h.

◆ R92S_IOCMD_CLASS_M

#define R92S_IOCMD_CLASS_M   0xff000000

Definition at line 214 of file if_rsureg.h.

◆ R92S_IOCMD_CLASS_S

#define R92S_IOCMD_CLASS_S   24

Definition at line 215 of file if_rsureg.h.

◆ R92S_IOCMD_CTRL

#define R92S_IOCMD_CTRL   0x0370

Definition at line 74 of file if_rsureg.h.

◆ R92S_IOCMD_DATA

#define R92S_IOCMD_DATA   0x0374

Definition at line 75 of file if_rsureg.h.

◆ R92S_IOCMD_INDEX_BB_READ

#define R92S_IOCMD_INDEX_BB_READ   0

Definition at line 221 of file if_rsureg.h.

◆ R92S_IOCMD_INDEX_BB_WRITE

#define R92S_IOCMD_INDEX_BB_WRITE   1

Definition at line 222 of file if_rsureg.h.

◆ R92S_IOCMD_INDEX_M

#define R92S_IOCMD_INDEX_M   0x000000ff

Definition at line 219 of file if_rsureg.h.

◆ R92S_IOCMD_INDEX_RF_READ

#define R92S_IOCMD_INDEX_RF_READ   2

Definition at line 223 of file if_rsureg.h.

◆ R92S_IOCMD_INDEX_RF_WRITE

#define R92S_IOCMD_INDEX_RF_WRITE   3

Definition at line 224 of file if_rsureg.h.

◆ R92S_IOCMD_INDEX_S

#define R92S_IOCMD_INDEX_S   0

Definition at line 220 of file if_rsureg.h.

◆ R92S_IOCMD_VALUE_M

#define R92S_IOCMD_VALUE_M   0x00ffff00

Definition at line 217 of file if_rsureg.h.

◆ R92S_IOCMD_VALUE_S

#define R92S_IOCMD_VALUE_S   8

Definition at line 218 of file if_rsureg.h.

◆ R92S_KEY_ALGO_AES

#define R92S_KEY_ALGO_AES   4

Definition at line 476 of file if_rsureg.h.

◆ R92S_KEY_ALGO_INVALID

#define R92S_KEY_ALGO_INVALID   0xff /* for rsu_crypto_mode() only */

Definition at line 478 of file if_rsureg.h.

◆ R92S_KEY_ALGO_NONE

#define R92S_KEY_ALGO_NONE   0

Definition at line 472 of file if_rsureg.h.

◆ R92S_KEY_ALGO_TKIP

#define R92S_KEY_ALGO_TKIP   2

Definition at line 474 of file if_rsureg.h.

◆ R92S_KEY_ALGO_TKIP_MMIC

#define R92S_KEY_ALGO_TKIP_MMIC   3

Definition at line 475 of file if_rsureg.h.

◆ R92S_KEY_ALGO_WEP104

#define R92S_KEY_ALGO_WEP104   5

Definition at line 477 of file if_rsureg.h.

◆ R92S_KEY_ALGO_WEP40

#define R92S_KEY_ALGO_WEP40   1

Definition at line 473 of file if_rsureg.h.

◆ R92S_LDA15_EN

#define R92S_LDA15_EN   0x01

Definition at line 109 of file if_rsureg.h.

◆ R92S_LDOA15_CTRL

#define R92S_LDOA15_CTRL   (R92S_SYSCFG + 0x020)

Definition at line 36 of file if_rsureg.h.

◆ R92S_LDOV12D_CTRL

#define R92S_LDOV12D_CTRL   (R92S_SYSCFG + 0x021)

Definition at line 37 of file if_rsureg.h.

◆ R92S_LDV12_EN

#define R92S_LDV12_EN   0x01

Definition at line 112 of file if_rsureg.h.

◆ R92S_LEDCFG

#define R92S_LEDCFG   (R92S_GP + 0x012)

Definition at line 72 of file if_rsureg.h.

◆ R92S_MAC_CLK_EN

#define R92S_MAC_CLK_EN   0x0800

Definition at line 90 of file if_rsureg.h.

◆ R92S_MAC_PINMUX_CTRL

#define R92S_MAC_PINMUX_CTRL   (R92S_GP + 0x011)

Definition at line 71 of file if_rsureg.h.

◆ R92S_MACID

#define R92S_MACID   (R92S_MACIDSETTING + 0x000)

Definition at line 51 of file if_rsureg.h.

◆ R92S_MACID_BSS

#define R92S_MACID_BSS   5 /* XXX hardcoded somewhere */

Definition at line 597 of file if_rsureg.h.

◆ R92S_MACIDSETTING

#define R92S_MACIDSETTING   0x0050

Definition at line 50 of file if_rsureg.h.

◆ R92S_MAR

#define R92S_MAR   (R92S_MACIDSETTING + 0x010)

Definition at line 52 of file if_rsureg.h.

◆ R92S_PMC_FSM

#define R92S_PMC_FSM   (R92S_SYSCFG + 0x004)

Definition at line 29 of file if_rsureg.h.

◆ R92S_PMC_FSM_CUT_M

#define R92S_PMC_FSM_CUT_M   0x000f8000

Definition at line 83 of file if_rsureg.h.

◆ R92S_PMC_FSM_CUT_S

#define R92S_PMC_FSM_CUT_S   15

Definition at line 84 of file if_rsureg.h.

◆ R92S_PS_MODE_ACTIVE

#define R92S_PS_MODE_ACTIVE   0

Definition at line 554 of file if_rsureg.h.

◆ R92S_PS_MODE_DISABLE

#define R92S_PS_MODE_DISABLE   10

Definition at line 564 of file if_rsureg.h.

◆ R92S_PS_MODE_DTIM

#define R92S_PS_MODE_DTIM   3

Definition at line 557 of file if_rsureg.h.

◆ R92S_PS_MODE_IBSS

#define R92S_PS_MODE_IBSS   7

Definition at line 561 of file if_rsureg.h.

◆ R92S_PS_MODE_MAX

#define R92S_PS_MODE_MAX   2

Definition at line 556 of file if_rsureg.h.

◆ R92S_PS_MODE_MIN

#define R92S_PS_MODE_MIN   1

Definition at line 555 of file if_rsureg.h.

◆ R92S_PS_MODE_RADIOOFF

#define R92S_PS_MODE_RADIOOFF   9

Definition at line 563 of file if_rsureg.h.

◆ R92S_PS_MODE_UAPSD

#define R92S_PS_MODE_UAPSD   6

Definition at line 560 of file if_rsureg.h.

◆ R92S_PS_MODE_UAPSD_WMM

#define R92S_PS_MODE_UAPSD_WMM   5

Definition at line 559 of file if_rsureg.h.

◆ R92S_PS_MODE_VOIP

#define R92S_PS_MODE_VOIP   4

Definition at line 558 of file if_rsureg.h.

◆ R92S_PS_MODE_WWLAN

#define R92S_PS_MODE_WWLAN   8

Definition at line 562 of file if_rsureg.h.

◆ R92S_RCR

#define R92S_RCR   (R92S_CMDCTRL + 0x008)

Definition at line 48 of file if_rsureg.h.

◆ R92S_RCR_AAP

#define R92S_RCR_AAP   0x00000001

Definition at line 152 of file if_rsureg.h.

◆ R92S_RCR_AB

#define R92S_RCR_AB   0x00000008

Definition at line 155 of file if_rsureg.h.

◆ R92S_RCR_ACF

#define R92S_RCR_ACF   0x00080000

Definition at line 161 of file if_rsureg.h.

◆ R92S_RCR_ACRC32

#define R92S_RCR_ACRC32   0x00000020

Definition at line 156 of file if_rsureg.h.

◆ R92S_RCR_ADD3

#define R92S_RCR_ADD3   0x00200000

Definition at line 163 of file if_rsureg.h.

◆ R92S_RCR_ADF

#define R92S_RCR_ADF   0x00040000

Definition at line 160 of file if_rsureg.h.

◆ R92S_RCR_AICV

#define R92S_RCR_AICV   0x00001000

Definition at line 157 of file if_rsureg.h.

◆ R92S_RCR_AM

#define R92S_RCR_AM   0x00000004

Definition at line 154 of file if_rsureg.h.

◆ R92S_RCR_AMF

#define R92S_RCR_AMF   0x00100000

Definition at line 162 of file if_rsureg.h.

◆ R92S_RCR_APM

#define R92S_RCR_APM   0x00000002

Definition at line 153 of file if_rsureg.h.

◆ R92S_RCR_APP_ICV

#define R92S_RCR_APP_ICV   0x00010000

Definition at line 158 of file if_rsureg.h.

◆ R92S_RCR_APP_MIC

#define R92S_RCR_APP_MIC   0x00020000

Definition at line 159 of file if_rsureg.h.

◆ R92S_RCR_APP_PHYSTS

#define R92S_RCR_APP_PHYSTS   0x02000000

Definition at line 166 of file if_rsureg.h.

◆ R92S_RCR_APWRMGT

#define R92S_RCR_APWRMGT   0x00400000

Definition at line 164 of file if_rsureg.h.

◆ R92S_RCR_CBSSID

#define R92S_RCR_CBSSID   0x00800000

Definition at line 165 of file if_rsureg.h.

◆ R92S_RCR_ENMBID

#define R92S_RCR_ENMBID   0x08000000

Definition at line 168 of file if_rsureg.h.

◆ R92S_RCR_TCP_OFFLD_EN

#define R92S_RCR_TCP_OFFLD_EN   0x04000000

Definition at line 167 of file if_rsureg.h.

◆ R92S_REQ_REGS

#define R92S_REQ_REGS   0x05

Definition at line 21 of file if_rsureg.h.

◆ R92S_RF_CTRL

#define R92S_RF_CTRL   (R92S_SYSCFG + 0x01f)

Definition at line 35 of file if_rsureg.h.

◆ R92S_RXDW0_CIPHER_M

#define R92S_RXDW0_CIPHER_M   0x00700000

Definition at line 7 of file if_rsureg.h.

◆ R92S_RXDW0_CIPHER_S

#define R92S_RXDW0_CIPHER_S   20

Definition at line 8 of file if_rsureg.h.

◆ R92S_RXDW0_CRCERR

#define R92S_RXDW0_CRCERR   0x00004000

Definition at line 3 of file if_rsureg.h.

◆ R92S_RXDW0_DECRYPTED

#define R92S_RXDW0_DECRYPTED   0x08000000

Definition at line 13 of file if_rsureg.h.

◆ R92S_RXDW0_ICVERR

#define R92S_RXDW0_ICVERR   0x00008000

Definition at line 4 of file if_rsureg.h.

◆ R92S_RXDW0_INFOSZ_M

#define R92S_RXDW0_INFOSZ_M   0x000f0000

Definition at line 5 of file if_rsureg.h.

◆ R92S_RXDW0_INFOSZ_S

#define R92S_RXDW0_INFOSZ_S   16

Definition at line 6 of file if_rsureg.h.

◆ R92S_RXDW0_PHYST

#define R92S_RXDW0_PHYST   0x04000000

Definition at line 12 of file if_rsureg.h.

◆ R92S_RXDW0_PKTLEN_M

#define R92S_RXDW0_PKTLEN_M   0x00003fff

Definition at line 1 of file if_rsureg.h.

◆ R92S_RXDW0_PKTLEN_S

#define R92S_RXDW0_PKTLEN_S   0

Definition at line 2 of file if_rsureg.h.

◆ R92S_RXDW0_QOS

#define R92S_RXDW0_QOS   0x00800000

Definition at line 9 of file if_rsureg.h.

◆ R92S_RXDW0_SHIFT_M

#define R92S_RXDW0_SHIFT_M   0x03000000

Definition at line 10 of file if_rsureg.h.

◆ R92S_RXDW0_SHIFT_S

#define R92S_RXDW0_SHIFT_S   24

Definition at line 11 of file if_rsureg.h.

◆ R92S_RXDW1_MOREFRAG

#define R92S_RXDW1_MOREFRAG   0x08000000

Definition at line 16 of file if_rsureg.h.

◆ R92S_RXDW2_FRAG_M

#define R92S_RXDW2_FRAG_M   0x0000f000

Definition at line 19 of file if_rsureg.h.

◆ R92S_RXDW2_FRAG_S

#define R92S_RXDW2_FRAG_S   12

Definition at line 20 of file if_rsureg.h.

◆ R92S_RXDW2_PKTCNT_M

#define R92S_RXDW2_PKTCNT_M   0x00ff0000

Definition at line 21 of file if_rsureg.h.

◆ R92S_RXDW2_PKTCNT_S

#define R92S_RXDW2_PKTCNT_S   16

Definition at line 22 of file if_rsureg.h.

◆ R92S_RXDW3_HTC

#define R92S_RXDW3_HTC   0x00004000

Definition at line 30 of file if_rsureg.h.

◆ R92S_RXDW3_IPCHKRPT

#define R92S_RXDW3_IPCHKRPT   0x00001000

Definition at line 28 of file if_rsureg.h.

◆ R92S_RXDW3_RATE_M

#define R92S_RXDW3_RATE_M   0x0000003f

Definition at line 25 of file if_rsureg.h.

◆ R92S_RXDW3_RATE_S

#define R92S_RXDW3_RATE_S   0

Definition at line 26 of file if_rsureg.h.

◆ R92S_RXDW3_TCPCHKRPT

#define R92S_RXDW3_TCPCHKRPT   0x00000800

Definition at line 27 of file if_rsureg.h.

◆ R92S_RXDW3_TCPCHKVALID

#define R92S_RXDW3_TCPCHKVALID   0x00002000

Definition at line 29 of file if_rsureg.h.

◆ R92S_RXFLTMAP_CTL

#define R92S_RXFLTMAP_CTL   (R92S_FIFOCTRL + 0x078)

Definition at line 59 of file if_rsureg.h.

◆ R92S_RXFLTMAP_DATA

#define R92S_RXFLTMAP_DATA   (R92S_FIFOCTRL + 0x07a)

Definition at line 60 of file if_rsureg.h.

◆ R92S_RXFLTMAP_FW

#define R92S_RXFLTMAP_FW (   subtype)     (1 << ((subtype) >> IEEE80211_FC0_SUBTYPE_SHIFT))

Definition at line 172 of file if_rsureg.h.

◆ R92S_RXFLTMAP_MESH

#define R92S_RXFLTMAP_MESH   (R92S_FIFOCTRL + 0x07c)

Definition at line 61 of file if_rsureg.h.

◆ R92S_RXFLTMAP_MGT

#define R92S_RXFLTMAP_MGT   (R92S_FIFOCTRL + 0x076)

Definition at line 58 of file if_rsureg.h.

◆ R92S_RXFLTMAP_MGT_DEF

#define R92S_RXFLTMAP_MGT_DEF   0x3f3f

Definition at line 171 of file if_rsureg.h.

◆ R92S_SECURITY

#define R92S_SECURITY   0x0240

Definition at line 63 of file if_rsureg.h.

◆ R92S_SPS0_CTRL

#define R92S_SPS0_CTRL   (R92S_SYSCFG + 0x011)

Definition at line 33 of file if_rsureg.h.

◆ R92S_SPS1_CTRL

#define R92S_SPS1_CTRL   (R92S_SYSCFG + 0x018)

Definition at line 34 of file if_rsureg.h.

◆ R92S_SPS1_LDEN

#define R92S_SPS1_LDEN   0x01

Definition at line 105 of file if_rsureg.h.

◆ R92S_SPS1_SWEN

#define R92S_SPS1_SWEN   0x02

Definition at line 106 of file if_rsureg.h.

◆ R92S_SWHW_SEL

#define R92S_SWHW_SEL   0x4000

Definition at line 92 of file if_rsureg.h.

◆ R92S_SYS_CLK_EN

#define R92S_SYS_CLK_EN   0x1000

Definition at line 91 of file if_rsureg.h.

◆ R92S_SYS_CLKR

#define R92S_SYS_CLKR   (R92S_SYSCFG + 0x008)

Definition at line 30 of file if_rsureg.h.

◆ R92S_SYS_CLKSEL

#define R92S_SYS_CLKSEL   0x0001

Definition at line 87 of file if_rsureg.h.

◆ R92S_SYS_CPU_CLKSEL

#define R92S_SYS_CPU_CLKSEL   0x0004

Definition at line 89 of file if_rsureg.h.

◆ R92S_SYS_FUNC_EN

#define R92S_SYS_FUNC_EN   (R92S_SYSCFG + 0x002)

Definition at line 28 of file if_rsureg.h.

◆ R92S_SYS_ISO_CTRL

#define R92S_SYS_ISO_CTRL   (R92S_SYSCFG + 0x000)

Definition at line 27 of file if_rsureg.h.

◆ R92S_SYS_PS_CLKSEL

#define R92S_SYS_PS_CLKSEL   0x0002

Definition at line 88 of file if_rsureg.h.

◆ R92S_SYSCFG

#define R92S_SYSCFG   0x0000

Definition at line 26 of file if_rsureg.h.

◆ R92S_TCR

#define R92S_TCR   (R92S_CMDCTRL + 0x004)

Definition at line 47 of file if_rsureg.h.

◆ R92S_TCR_DMEM_CODE_DONE

#define R92S_TCR_DMEM_CODE_DONE   0x10

Definition at line 147 of file if_rsureg.h.

◆ R92S_TCR_EMEM_CHK_RPT

#define R92S_TCR_EMEM_CHK_RPT   0x08

Definition at line 146 of file if_rsureg.h.

◆ R92S_TCR_EMEM_CODE_DONE

#define R92S_TCR_EMEM_CODE_DONE   0x04

Definition at line 145 of file if_rsureg.h.

◆ R92S_TCR_FWRDY

#define R92S_TCR_FWRDY   0x80

Definition at line 149 of file if_rsureg.h.

◆ R92S_TCR_IMEM_CHK_RPT

#define R92S_TCR_IMEM_CHK_RPT   0x02

Definition at line 144 of file if_rsureg.h.

◆ R92S_TCR_IMEM_CODE_DONE

#define R92S_TCR_IMEM_CODE_DONE   0x01

Definition at line 143 of file if_rsureg.h.

◆ R92S_TCR_IMEM_RDY

#define R92S_TCR_IMEM_RDY   0x20

Definition at line 148 of file if_rsureg.h.

◆ R92S_TIMECTRL

#define R92S_TIMECTRL   0x0080

Definition at line 54 of file if_rsureg.h.

◆ R92S_TSFTR

#define R92S_TSFTR   (R92S_TIMECTRL + 0x000)

Definition at line 55 of file if_rsureg.h.

◆ R92S_TXDW0_FSG

#define R92S_TXDW0_FSG   0x08000000

Definition at line 8 of file if_rsureg.h.

◆ R92S_TXDW0_LINIP

#define R92S_TXDW0_LINIP   0x10000000

Definition at line 9 of file if_rsureg.h.

◆ R92S_TXDW0_LSG

#define R92S_TXDW0_LSG   0x04000000

Definition at line 7 of file if_rsureg.h.

◆ R92S_TXDW0_OFFSET_M

#define R92S_TXDW0_OFFSET_M   0x00ff0000

Definition at line 3 of file if_rsureg.h.

◆ R92S_TXDW0_OFFSET_S

#define R92S_TXDW0_OFFSET_S   16

Definition at line 4 of file if_rsureg.h.

◆ R92S_TXDW0_OWN

#define R92S_TXDW0_OWN   0x80000000

Definition at line 10 of file if_rsureg.h.

◆ R92S_TXDW0_PKTLEN_M

#define R92S_TXDW0_PKTLEN_M   0x0000ffff

Definition at line 1 of file if_rsureg.h.

◆ R92S_TXDW0_PKTLEN_S

#define R92S_TXDW0_PKTLEN_S   0

Definition at line 2 of file if_rsureg.h.

◆ R92S_TXDW0_TYPE_M

#define R92S_TXDW0_TYPE_M   0x03000000

Definition at line 5 of file if_rsureg.h.

◆ R92S_TXDW0_TYPE_S

#define R92S_TXDW0_TYPE_S   24

Definition at line 6 of file if_rsureg.h.

◆ R92S_TXDW1_CIPHER_AES

#define R92S_TXDW1_CIPHER_AES   3

Definition at line 29 of file if_rsureg.h.

◆ R92S_TXDW1_CIPHER_M

#define R92S_TXDW1_CIPHER_M   0x00c00000

Definition at line 24 of file if_rsureg.h.

◆ R92S_TXDW1_CIPHER_NONE

#define R92S_TXDW1_CIPHER_NONE   0

Definition at line 26 of file if_rsureg.h.

◆ R92S_TXDW1_CIPHER_S

#define R92S_TXDW1_CIPHER_S   22

Definition at line 25 of file if_rsureg.h.

◆ R92S_TXDW1_CIPHER_TKIP

#define R92S_TXDW1_CIPHER_TKIP   2

Definition at line 28 of file if_rsureg.h.

◆ R92S_TXDW1_CIPHER_WEP

#define R92S_TXDW1_CIPHER_WEP   1

Definition at line 27 of file if_rsureg.h.

◆ R92S_TXDW1_HWPC

#define R92S_TXDW1_HWPC   0x80000000

Definition at line 30 of file if_rsureg.h.

◆ R92S_TXDW1_KEYIDX_M

#define R92S_TXDW1_KEYIDX_M   0x00060000

Definition at line 22 of file if_rsureg.h.

◆ R92S_TXDW1_KEYIDX_S

#define R92S_TXDW1_KEYIDX_S   17

Definition at line 23 of file if_rsureg.h.

◆ R92S_TXDW1_MACID_M

#define R92S_TXDW1_MACID_M   0x0000001f

Definition at line 13 of file if_rsureg.h.

◆ R92S_TXDW1_MACID_S

#define R92S_TXDW1_MACID_S   0

Definition at line 14 of file if_rsureg.h.

◆ R92S_TXDW1_MOREDATA

#define R92S_TXDW1_MOREDATA   0x00000020

Definition at line 15 of file if_rsureg.h.

◆ R92S_TXDW1_MOREFRAG

#define R92S_TXDW1_MOREFRAG   0x00000040

Definition at line 16 of file if_rsureg.h.

◆ R92S_TXDW1_NONQOS

#define R92S_TXDW1_NONQOS   0x00010000

Definition at line 21 of file if_rsureg.h.

◆ R92S_TXDW1_QSEL_BE

#define R92S_TXDW1_QSEL_BE   0x03

Definition at line 19 of file if_rsureg.h.

◆ R92S_TXDW1_QSEL_H2C

#define R92S_TXDW1_QSEL_H2C   0x13

Definition at line 20 of file if_rsureg.h.

◆ R92S_TXDW1_QSEL_M

#define R92S_TXDW1_QSEL_M   0x00001f00

Definition at line 17 of file if_rsureg.h.

◆ R92S_TXDW1_QSEL_S

#define R92S_TXDW1_QSEL_S   8

Definition at line 18 of file if_rsureg.h.

◆ R92S_TXDW2_AGGEN

#define R92S_TXDW2_AGGEN   0x20000000

Definition at line 37 of file if_rsureg.h.

◆ R92S_TXDW2_BK

#define R92S_TXDW2_BK   0x40000000

Definition at line 38 of file if_rsureg.h.

◆ R92S_TXDW2_BMCAST

#define R92S_TXDW2_BMCAST   0x00000080

Definition at line 36 of file if_rsureg.h.

◆ R92S_TXDW2_RTY_LMT_ENA

#define R92S_TXDW2_RTY_LMT_ENA   0x00000040

Definition at line 35 of file if_rsureg.h.

◆ R92S_TXDW2_RTY_LMT_M

#define R92S_TXDW2_RTY_LMT_M   0x0000003f

Definition at line 33 of file if_rsureg.h.

◆ R92S_TXDW2_RTY_LMT_S

#define R92S_TXDW2_RTY_LMT_S   0

Definition at line 34 of file if_rsureg.h.

◆ R92S_TXDW3_FRAG_M

#define R92S_TXDW3_FRAG_M   0xf0000000

Definition at line 43 of file if_rsureg.h.

◆ R92S_TXDW3_FRAG_S

#define R92S_TXDW3_FRAG_S   28

Definition at line 44 of file if_rsureg.h.

◆ R92S_TXDW3_SEQ_M

#define R92S_TXDW3_SEQ_M   0x0fff0000

Definition at line 41 of file if_rsureg.h.

◆ R92S_TXDW3_SEQ_S

#define R92S_TXDW3_SEQ_S   16

Definition at line 42 of file if_rsureg.h.

◆ R92S_TXDW4_DRVRATE

#define R92S_TXDW4_DRVRATE   0x80000000

Definition at line 48 of file if_rsureg.h.

◆ R92S_TXDW4_TXBW

#define R92S_TXDW4_TXBW   0x00040000

Definition at line 47 of file if_rsureg.h.

◆ R92S_TXDW5_DATARATE_FB_LMT_M

#define R92S_TXDW5_DATARATE_FB_LMT_M   0x001f0000

Definition at line 54 of file if_rsureg.h.

◆ R92S_TXDW5_DATARATE_FB_LMT_S

#define R92S_TXDW5_DATARATE_FB_LMT_S   16

Definition at line 55 of file if_rsureg.h.

◆ R92S_TXDW5_DATARATE_M

#define R92S_TXDW5_DATARATE_M   0x00007e00

Definition at line 51 of file if_rsureg.h.

◆ R92S_TXDW5_DATARATE_S

#define R92S_TXDW5_DATARATE_S   9

Definition at line 52 of file if_rsureg.h.

◆ R92S_TXDW5_DISFB

#define R92S_TXDW5_DISFB   0x00008000

Definition at line 53 of file if_rsureg.h.

◆ R92S_TXPAUSE

#define R92S_TXPAUSE   (R92S_CMDCTRL + 0x002)

Definition at line 46 of file if_rsureg.h.

◆ R92S_TXPAUSE_AC

#define R92S_TXPAUSE_AC
Value:
R92S_TXPAUSE_BE | R92S_TXPAUSE_BK)
#define R92S_TXPAUSE_VI
Definition: if_rsureg.h:126
#define R92S_TXPAUSE_VO
Definition: if_rsureg.h:125
#define R92S_TXPAUSE_BK
Definition: if_rsureg.h:128

Definition at line 134 of file if_rsureg.h.

◆ R92S_TXPAUSE_ALL

#define R92S_TXPAUSE_ALL
Value:
R92S_TXPAUSE_HIGH | R92S_TXPAUSE_HCCA | 0x80)
#define R92S_TXPAUSE_AC
Definition: if_rsureg.h:134
#define R92S_TXPAUSE_HCCA
Definition: if_rsureg.h:131
#define R92S_TXPAUSE_MGT
Definition: if_rsureg.h:129

Definition at line 138 of file if_rsureg.h.

◆ R92S_TXPAUSE_BE

#define R92S_TXPAUSE_BE   0x04

Definition at line 127 of file if_rsureg.h.

◆ R92S_TXPAUSE_BK

#define R92S_TXPAUSE_BK   0x08

Definition at line 128 of file if_rsureg.h.

◆ R92S_TXPAUSE_HCCA

#define R92S_TXPAUSE_HCCA   0x40

Definition at line 131 of file if_rsureg.h.

◆ R92S_TXPAUSE_HIGH

#define R92S_TXPAUSE_HIGH   0x20

Definition at line 130 of file if_rsureg.h.

◆ R92S_TXPAUSE_MGT

#define R92S_TXPAUSE_MGT   0x10

Definition at line 129 of file if_rsureg.h.

◆ R92S_TXPAUSE_VI

#define R92S_TXPAUSE_VI   0x02

Definition at line 126 of file if_rsureg.h.

◆ R92S_TXPAUSE_VO

#define R92S_TXPAUSE_VO   0x01

Definition at line 125 of file if_rsureg.h.

◆ R92S_USB_HRPWM

#define R92S_USB_HRPWM   0xfe58

Definition at line 77 of file if_rsureg.h.

◆ R92S_USB_HRPWM_PS_ALL_ON

#define R92S_USB_HRPWM_PS_ALL_ON   0x04

Definition at line 227 of file if_rsureg.h.

◆ R92S_USB_HRPWM_PS_ST_ACTIVE

#define R92S_USB_HRPWM_PS_ST_ACTIVE   0x08

Definition at line 228 of file if_rsureg.h.

◆ R92S_VCS_MODE_CTS2SELF

#define R92S_VCS_MODE_CTS2SELF   2

Definition at line 294 of file if_rsureg.h.

◆ R92S_VCS_MODE_NONE

#define R92S_VCS_MODE_NONE   0

Definition at line 292 of file if_rsureg.h.

◆ R92S_VCS_MODE_RTS_CTS

#define R92S_VCS_MODE_RTS_CTS   1

Definition at line 293 of file if_rsureg.h.

◆ R92S_VCS_TYPE_AUTO

#define R92S_VCS_TYPE_AUTO   2

Definition at line 289 of file if_rsureg.h.

◆ R92S_VCS_TYPE_DISABLE

#define R92S_VCS_TYPE_DISABLE   0

Definition at line 287 of file if_rsureg.h.

◆ R92S_VCS_TYPE_ENABLE

#define R92S_VCS_TYPE_ENABLE   1

Definition at line 288 of file if_rsureg.h.

◆ RSU_ASSERT_LOCKED

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

Definition at line 841 of file if_rsureg.h.

◆ RSU_CMD_TIMEOUT

#define RSU_CMD_TIMEOUT   2000 /* ms */

Definition at line 743 of file if_rsureg.h.

◆ RSU_DELKEY_BMAP_LOCK

#define RSU_DELKEY_BMAP_LOCK (   _sc)    mtx_lock(&(_sc)->free_keys_bmap_mtx)

Definition at line 845 of file if_rsureg.h.

◆ RSU_DELKEY_BMAP_LOCK_DESTROY

#define RSU_DELKEY_BMAP_LOCK_DESTROY (   _sc)     mtx_destroy(&(_sc)->free_keys_bmap_mtx)

Definition at line 847 of file if_rsureg.h.

◆ RSU_DELKEY_BMAP_LOCK_INIT

#define RSU_DELKEY_BMAP_LOCK_INIT (   _sc)     mtx_init(&(_sc)->free_keys_bmap_mtx, "bmap lock", NULL, MTX_DEF)

Definition at line 843 of file if_rsureg.h.

◆ RSU_DELKEY_BMAP_UNLOCK

#define RSU_DELKEY_BMAP_UNLOCK (   _sc)    mtx_unlock(&(_sc)->free_keys_bmap_mtx)

Definition at line 846 of file if_rsureg.h.

◆ RSU_LOCK

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

Definition at line 839 of file if_rsureg.h.

◆ RSU_QID_BCN

#define RSU_QID_BCN   0

Definition at line 746 of file if_rsureg.h.

◆ RSU_QID_BE

#define RSU_QID_BE   5

Definition at line 751 of file if_rsureg.h.

◆ RSU_QID_BK

#define RSU_QID_BK   6

Definition at line 752 of file if_rsureg.h.

◆ RSU_QID_BMC

#define RSU_QID_BMC   2

Definition at line 748 of file if_rsureg.h.

◆ RSU_QID_C2H

#define RSU_QID_C2H   9

Definition at line 755 of file if_rsureg.h.

◆ RSU_QID_H2C

#define RSU_QID_H2C   8

Definition at line 754 of file if_rsureg.h.

◆ RSU_QID_MGT

#define RSU_QID_MGT   1

Definition at line 747 of file if_rsureg.h.

◆ RSU_QID_RXOFF

#define RSU_QID_RXOFF   7

Definition at line 753 of file if_rsureg.h.

◆ RSU_QID_VI

#define RSU_QID_VI   4

Definition at line 750 of file if_rsureg.h.

◆ RSU_QID_VO

#define RSU_QID_VO   3

Definition at line 749 of file if_rsureg.h.

◆ RSU_RX_LIST_COUNT

#define RSU_RX_LIST_COUNT   1

Definition at line 735 of file if_rsureg.h.

◆ RSU_RX_RADIOTAP_PRESENT

#define RSU_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)

Definition at line 793 of file if_rsureg.h.

◆ RSU_RXBUFSZ

#define RSU_RXBUFSZ   (30 * 1024)

Definition at line 738 of file if_rsureg.h.

◆ RSU_TX_LIST_COUNT

#define RSU_TX_LIST_COUNT   32

Definition at line 736 of file if_rsureg.h.

◆ RSU_TX_RADIOTAP_PRESENT

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

Definition at line 808 of file if_rsureg.h.

◆ RSU_TX_TIMEOUT

#define RSU_TX_TIMEOUT   5000 /* ms */

Definition at line 742 of file if_rsureg.h.

◆ RSU_TXBUFSZ

#define RSU_TXBUFSZ    ((sizeof(struct r92s_tx_desc) + IEEE80211_MAX_LEN + 3) & ~3)

Definition at line 739 of file if_rsureg.h.

◆ RSU_UNLOCK

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

Definition at line 840 of file if_rsureg.h.

◆ RSU_VAP

#define RSU_VAP (   vap)    ((struct rsu_vap *)(vap))

Definition at line 837 of file if_rsureg.h.

◆ RW

#define RW (   var,
  field,
  val 
)     (((var) & ~field##_M) | SM(field, val))

Definition at line 242 of file if_rsureg.h.

◆ sc_rxtap

#define sc_rxtap   sc_rxtapu.th

Definition at line 897 of file if_rsureg.h.

◆ sc_txtap

#define sc_txtap   sc_txtapu.th

Definition at line 903 of file if_rsureg.h.

◆ SM

#define SM (   field,
  val 
)     (((val) << field##_S) & field##_M)

Definition at line 238 of file if_rsureg.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
RTL8712_RFCONFIG_1T 
RTL8712_RFCONFIG_2T 
RTL8712_RFCONFIG_1R 
RTL8712_RFCONFIG_2R 
RTL8712_RFCONFIG_1T1R 
RTL8712_RFCONFIG_1T2R 
RTL8712_RFCONFIG_TURBO 
RTL8712_RFCONFIG_2T2R 

Definition at line 248 of file if_rsureg.h.

◆ anonymous enum

anonymous enum
Enumerator
RSU_BULK_RX 
RSU_BULK_TX_BE_BK 
RSU_BULK_TX_VI_VO 
RSU_BULK_TX_H2C 
RSU_N_TRANSFER 

Definition at line 814 of file if_rsureg.h.

Function Documentation

◆ __aligned() [1/2]

struct r92s_rx_stat __aligned ( )

◆ __aligned() [2/2]

struct rsu_rx_radiotap_header __aligned ( )

Variable Documentation

◆ __aligned

struct r92s_add_ba_event __aligned

◆ __packed

◆ ipchksum

uint16_t ipchksum

Definition at line 57 of file if_rsureg.h.

◆ phydw0

uint32_t phydw0

Definition at line 0 of file if_rsureg.h.

◆ phydw1

uint32_t phydw1

Definition at line 1 of file if_rsureg.h.

◆ phydw2

uint32_t phydw2

Definition at line 2 of file if_rsureg.h.

◆ phydw3

uint32_t phydw3

Definition at line 3 of file if_rsureg.h.

◆ phydw4

uint32_t phydw4

Definition at line 4 of file if_rsureg.h.

◆ phydw5

uint32_t phydw5

Definition at line 5 of file if_rsureg.h.

◆ phydw6

uint32_t phydw6

Definition at line 6 of file if_rsureg.h.

◆ phydw7

uint32_t phydw7

Definition at line 7 of file if_rsureg.h.

◆ r92s_epaddr

const uint8_t r92s_epaddr[]
static
Initial value:
=
{ 0x83, 0x04, 0x06, 0x0d,
0x05, 0x07,
0x89, 0x0a, 0x0b, 0x0c }

Definition at line 766 of file if_rsureg.h.

◆ reserved1

uint16_t reserved1

Definition at line 61 of file if_rsureg.h.

◆ rsu_ac2qid

const uint8_t rsu_ac2qid[WME_NUM_AC]
static
Initial value:
= {
}
#define RSU_QID_VO
Definition: if_rsureg.h:749
#define RSU_QID_VI
Definition: if_rsureg.h:750
#define RSU_QID_BK
Definition: if_rsureg.h:752
#define RSU_QID_BE
Definition: if_rsureg.h:751

Definition at line 758 of file if_rsureg.h.

Referenced by rsu_tx_start().

◆ rsu_qid2idx_11ep

const uint8_t rsu_qid2idx_11ep[]
static
Initial value:
=
{ 7, 9, 8, 1, 4, 2, 5, 0, 3, 6 }

Definition at line 780 of file if_rsureg.h.

◆ rsu_qid2idx_4ep

const uint8_t rsu_qid2idx_4ep[]
static
Initial value:
=
{ 3, 3, 3, 1, 1, 2, 2, 0, 3, 0 }

Definition at line 772 of file if_rsureg.h.

◆ rsu_qid2idx_6ep

const uint8_t rsu_qid2idx_6ep[]
static
Initial value:
=
{ 3, 3, 3, 1, 4, 2, 5, 0, 3, 0 }

Definition at line 776 of file if_rsureg.h.

◆ rxdw0

uint32_t rxdw0

Definition at line 0 of file if_rsureg.h.

Referenced by rsu_rx_copy_to_mbuf(), rsu_rx_frame(), and rsu_rx_multi_frame().

◆ rxdw1

uint32_t rxdw1

Definition at line 15 of file if_rsureg.h.

◆ rxdw2

uint32_t rxdw2

Definition at line 18 of file if_rsureg.h.

◆ rxdw3

uint32_t rxdw3

Definition at line 24 of file if_rsureg.h.

Referenced by rsu_rx_frame().

◆ rxdw4

uint32_t rxdw4

Definition at line 32 of file if_rsureg.h.

◆ tcpchksum

uint16_t tcpchksum

Definition at line 58 of file if_rsureg.h.

◆ tsf_low

uint32_t tsf_low

Definition at line 33 of file if_rsureg.h.

◆ txbufsize

uint16_t txbufsize

Definition at line 60 of file if_rsureg.h.

◆ txdw0

uint32_t txdw0

Definition at line 0 of file if_rsureg.h.

◆ txdw1

uint32_t txdw1

Definition at line 12 of file if_rsureg.h.

◆ txdw2

uint32_t txdw2

Definition at line 32 of file if_rsureg.h.

◆ txdw3

uint32_t txdw3

Definition at line 40 of file if_rsureg.h.

◆ txdw4

uint32_t txdw4

Definition at line 46 of file if_rsureg.h.

◆ txdw5

uint32_t txdw5

Definition at line 50 of file if_rsureg.h.

◆ wr_chan_flags

uint16_t wr_chan_flags

Definition at line 5 of file if_rsureg.h.

◆ wr_chan_freq

uint16_t wr_chan_freq

Definition at line 4 of file if_rsureg.h.

◆ wr_dbm_antsignal

uint8_t wr_dbm_antsignal

Definition at line 6 of file if_rsureg.h.

◆ wr_flags

uint8_t wr_flags

Definition at line 2 of file if_rsureg.h.

◆ wr_ihdr

struct ieee80211_radiotap_header wr_ihdr

Definition at line 0 of file if_rsureg.h.

◆ wr_rate

uint8_t wr_rate

Definition at line 3 of file if_rsureg.h.

◆ wr_tsft

uint64_t wr_tsft

Definition at line 1 of file if_rsureg.h.