linux/drivers/net/wireless/mediatek/mt76/mt76x02_regs.h

/* SPDX-License-Identifier: ISC */
/*
 * Copyright (C) 2016 Felix Fietkau <[email protected]>
 */

#ifndef __MT76X02_REGS_H
#define __MT76X02_REGS_H

#define MT_ASIC_VERSION

#define MT76XX_REV_E3
#define MT76XX_REV_E4

#define MT_CMB_CTRL
#define MT_CMB_CTRL_XTAL_RDY
#define MT_CMB_CTRL_PLL_LD

#define MT_EFUSE_CTRL
#define MT_EFUSE_CTRL_AOUT
#define MT_EFUSE_CTRL_MODE
#define MT_EFUSE_CTRL_LDO_OFF_TIME
#define MT_EFUSE_CTRL_LDO_ON_TIME
#define MT_EFUSE_CTRL_AIN
#define MT_EFUSE_CTRL_KICK
#define MT_EFUSE_CTRL_SEL

#define MT_EFUSE_DATA_BASE
#define MT_EFUSE_DATA(_n)

#define MT_COEXCFG0
#define MT_COEXCFG0_COEX_EN

#define MT_WLAN_FUN_CTRL
#define MT_WLAN_FUN_CTRL_WLAN_EN
#define MT_WLAN_FUN_CTRL_WLAN_CLK_EN
#define MT_WLAN_FUN_CTRL_WLAN_RESET_RF

#define MT_COEXCFG3

#define MT_LDO_CTRL_0
#define MT_LDO_CTRL_1

#define MT_WLAN_FUN_CTRL_WLAN_RESET
#define MT_WLAN_FUN_CTRL_CSR_F20M_CKEN

#define MT_WLAN_FUN_CTRL_PCIE_CLK_REQ
#define MT_WLAN_FUN_CTRL_FRC_WL_ANT_SEL
#define MT_WLAN_FUN_CTRL_INV_ANT_SEL
#define MT_WLAN_FUN_CTRL_WAKE_HOST

#define MT_WLAN_FUN_CTRL_THERM_RST
#define MT_WLAN_FUN_CTRL_THERM_CKEN

#define MT_WLAN_FUN_CTRL_GPIO_IN
#define MT_WLAN_FUN_CTRL_GPIO_OUT
#define MT_WLAN_FUN_CTRL_GPIO_OUT_EN

/* MT76x0 */
#define MT_CSR_EE_CFG1

#define MT_XO_CTRL0
#define MT_XO_CTRL1
#define MT_XO_CTRL2
#define MT_XO_CTRL3
#define MT_XO_CTRL4

#define MT_XO_CTRL5
#define MT_XO_CTRL5_C2_VAL

#define MT_XO_CTRL6
#define MT_XO_CTRL6_C2_CTRL

#define MT_XO_CTRL7

#define MT_IOCFG_6

#define MT_USB_U3DMA_CFG
#define MT_USB_DMA_CFG_RX_BULK_AGG_TOUT
#define MT_USB_DMA_CFG_RX_BULK_AGG_LMT
#define MT_USB_DMA_CFG_UDMA_TX_WL_DROP
#define MT_USB_DMA_CFG_WAKE_UP_EN
#define MT_USB_DMA_CFG_RX_DROP_OR_PAD
#define MT_USB_DMA_CFG_TX_CLR
#define MT_USB_DMA_CFG_TXOP_HALT
#define MT_USB_DMA_CFG_RX_BULK_AGG_EN
#define MT_USB_DMA_CFG_RX_BULK_EN
#define MT_USB_DMA_CFG_TX_BULK_EN
#define MT_USB_DMA_CFG_EP_OUT_VALID
#define MT_USB_DMA_CFG_RX_BUSY
#define MT_USB_DMA_CFG_TX_BUSY

#define MT_WLAN_MTC_CTRL
#define MT_WLAN_MTC_CTRL_MTCMOS_PWR_UP
#define MT_WLAN_MTC_CTRL_PWR_ACK
#define MT_WLAN_MTC_CTRL_PWR_ACK_S
#define MT_WLAN_MTC_CTRL_BBP_MEM_PD
#define MT_WLAN_MTC_CTRL_PBF_MEM_PD
#define MT_WLAN_MTC_CTRL_FCE_MEM_PD
#define MT_WLAN_MTC_CTRL_TSO_MEM_PD
#define MT_WLAN_MTC_CTRL_BBP_MEM_RB
#define MT_WLAN_MTC_CTRL_PBF_MEM_RB
#define MT_WLAN_MTC_CTRL_FCE_MEM_RB
#define MT_WLAN_MTC_CTRL_TSO_MEM_RB
#define MT_WLAN_MTC_CTRL_STATE_UP

#define MT_INT_SOURCE_CSR
#define MT_INT_MASK_CSR

#define MT_INT_RX_DONE(_n)
#define MT_INT_RX_DONE_ALL
#define MT_INT_TX_DONE_ALL
#define MT_INT_TX_DONE(_n)
#define MT_INT_RX_COHERENT
#define MT_INT_TX_COHERENT
#define MT_INT_ANY_COHERENT
#define MT_INT_MCU_CMD
#define MT_INT_TBTT
#define MT_INT_PRE_TBTT
#define MT_INT_TX_STAT
#define MT_INT_AUTO_WAKEUP
#define MT_INT_GPTIMER
#define MT_INT_RXDELAYINT
#define MT_INT_TXDELAYINT

#define MT_WPDMA_GLO_CFG
#define MT_WPDMA_GLO_CFG_TX_DMA_EN
#define MT_WPDMA_GLO_CFG_TX_DMA_BUSY
#define MT_WPDMA_GLO_CFG_RX_DMA_EN
#define MT_WPDMA_GLO_CFG_RX_DMA_BUSY
#define MT_WPDMA_GLO_CFG_DMA_BURST_SIZE
#define MT_WPDMA_GLO_CFG_TX_WRITEBACK_DONE
#define MT_WPDMA_GLO_CFG_BIG_ENDIAN
#define MT_WPDMA_GLO_CFG_HDR_SEG_LEN
#define MT_WPDMA_GLO_CFG_CLK_GATE_DIS
#define MT_WPDMA_GLO_CFG_RX_2B_OFFSET

#define MT_WPDMA_RST_IDX

#define MT_WPDMA_DELAY_INT_CFG

#define MT_WMM_AIFSN
#define MT_WMM_AIFSN_MASK
#define MT_WMM_AIFSN_SHIFT(_n)

#define MT_WMM_CWMIN
#define MT_WMM_CWMIN_MASK
#define MT_WMM_CWMIN_SHIFT(_n)

#define MT_WMM_CWMAX
#define MT_WMM_CWMAX_MASK
#define MT_WMM_CWMAX_SHIFT(_n)

#define MT_WMM_TXOP_BASE
#define MT_WMM_TXOP(_n)
#define MT_WMM_TXOP_SHIFT(_n)
#define MT_WMM_TXOP_MASK

#define MT_WMM_CTRL
#define MT_FCE_DMA_ADDR
#define MT_FCE_DMA_LEN
#define MT_USB_DMA_CFG

#define MT_TSO_CTRL
#define MT_HEADER_TRANS_CTRL_REG

#define MT_US_CYC_CFG
#define MT_US_CYC_CNT

#define MT_TX_RING_BASE
#define MT_RX_RING_BASE

#define MT_TX_HW_QUEUE_MCU
#define MT_TX_HW_QUEUE_MGMT

#define MT_PBF_SYS_CTRL
#define MT_PBF_SYS_CTRL_MCU_RESET
#define MT_PBF_SYS_CTRL_DMA_RESET
#define MT_PBF_SYS_CTRL_MAC_RESET
#define MT_PBF_SYS_CTRL_PBF_RESET
#define MT_PBF_SYS_CTRL_ASY_RESET

#define MT_PBF_CFG
#define MT_PBF_CFG_TX0Q_EN
#define MT_PBF_CFG_TX1Q_EN
#define MT_PBF_CFG_TX2Q_EN
#define MT_PBF_CFG_TX3Q_EN
#define MT_PBF_CFG_RX0Q_EN
#define MT_PBF_CFG_RX_DROP_EN

#define MT_PBF_TX_MAX_PCNT
#define MT_PBF_RX_MAX_PCNT

#define MT_BCN_OFFSET_BASE
#define MT_BCN_OFFSET(_n)

#define MT_RXQ_STA
#define MT_TXQ_STA
#define MT_RF_CSR_CFG
#define MT_RF_CSR_CFG_DATA
#define MT_RF_CSR_CFG_REG_ID
#define MT_RF_CSR_CFG_REG_BANK
#define MT_RF_CSR_CFG_WR
#define MT_RF_CSR_CFG_KICK

#define MT_RF_BYPASS_0
#define MT_RF_BYPASS_1
#define MT_RF_SETTING_0

#define MT_RF_MISC
#define MT_RF_DATA_WRITE

#define MT_RF_CTRL
#define MT_RF_CTRL_ADDR
#define MT_RF_CTRL_WRITE
#define MT_RF_CTRL_BUSY
#define MT_RF_CTRL_IDX

#define MT_RF_DATA_READ

#define MT_COM_REG0
#define MT_COM_REG1
#define MT_COM_REG2
#define MT_COM_REG3

#define MT_LED_CTRL
#define MT_LED_CTRL_REPLAY(_n)
#define MT_LED_CTRL_POLARITY(_n)
#define MT_LED_CTRL_TX_BLINK_MODE(_n)
#define MT_LED_CTRL_KICK(_n)

#define MT_LED_TX_BLINK_0
#define MT_LED_TX_BLINK_1

#define MT_LED_S0_BASE
#define MT_LED_S0(_n)
#define MT_LED_S1_BASE
#define MT_LED_S1(_n)
#define MT_LED_STATUS_OFF
#define MT_LED_STATUS_ON
#define MT_LED_STATUS_DURATION

#define MT_FCE_PSE_CTRL
#define MT_FCE_PARAMETERS
#define MT_FCE_CSO

#define MT_FCE_L2_STUFF
#define MT_FCE_L2_STUFF_HT_L2_EN
#define MT_FCE_L2_STUFF_QOS_L2_EN
#define MT_FCE_L2_STUFF_RX_STUFF_EN
#define MT_FCE_L2_STUFF_TX_STUFF_EN
#define MT_FCE_L2_STUFF_WR_MPDU_LEN_EN
#define MT_FCE_L2_STUFF_MVINV_BSWAP
#define MT_FCE_L2_STUFF_TS_CMD_QSEL_EN
#define MT_FCE_L2_STUFF_TS_LEN_EN
#define MT_FCE_L2_STUFF_OTHER_PORT

#define MT_FCE_WLAN_FLOW_CONTROL1

#define MT_TX_CPU_FROM_FCE_BASE_PTR
#define MT_TX_CPU_FROM_FCE_MAX_COUNT
#define MT_TX_CPU_FROM_FCE_CPU_DESC_IDX
#define MT_FCE_PDMA_GLOBAL_CONF
#define MT_FCE_SKIP_FS

#define MT_PAUSE_ENABLE_CONTROL1

#define MT_MAC_CSR0

#define MT_MAC_SYS_CTRL
#define MT_MAC_SYS_CTRL_RESET_CSR
#define MT_MAC_SYS_CTRL_RESET_BBP
#define MT_MAC_SYS_CTRL_ENABLE_TX
#define MT_MAC_SYS_CTRL_ENABLE_RX

#define MT_MAC_ADDR_DW0
#define MT_MAC_ADDR_DW1
#define MT_MAC_ADDR_DW1_U2ME_MASK

#define MT_MAC_BSSID_DW0
#define MT_MAC_BSSID_DW1
#define MT_MAC_BSSID_DW1_ADDR
#define MT_MAC_BSSID_DW1_MBSS_MODE
#define MT_MAC_BSSID_DW1_MBEACON_N
#define MT_MAC_BSSID_DW1_MBSS_LOCAL_BIT
#define MT_MAC_BSSID_DW1_MBSS_MODE_B2
#define MT_MAC_BSSID_DW1_MBEACON_N_B3
#define MT_MAC_BSSID_DW1_MBSS_IDX_BYTE

#define MT_MAX_LEN_CFG
#define MT_MAX_LEN_CFG_AMPDU

#define MT_LED_CFG

#define MT_AMPDU_MAX_LEN_20M1S
#define MT_AMPDU_MAX_LEN_20M2S
#define MT_AMPDU_MAX_LEN_40M1S
#define MT_AMPDU_MAX_LEN_40M2S
#define MT_AMPDU_MAX_LEN

#define MT_WCID_DROP_BASE
#define MT_WCID_DROP(_n)
#define MT_WCID_DROP_MASK(_n)

#define MT_BCN_BYPASS_MASK

#define MT_MAC_APC_BSSID_BASE
#define MT_MAC_APC_BSSID_L(_n)
#define MT_MAC_APC_BSSID_H(_n)
#define MT_MAC_APC_BSSID_H_ADDR
#define MT_MAC_APC_BSSID0_H_EN

#define MT_XIFS_TIME_CFG
#define MT_XIFS_TIME_CFG_CCK_SIFS
#define MT_XIFS_TIME_CFG_OFDM_SIFS
#define MT_XIFS_TIME_CFG_OFDM_XIFS
#define MT_XIFS_TIME_CFG_EIFS
#define MT_XIFS_TIME_CFG_BB_RXEND_EN

#define MT_BKOFF_SLOT_CFG
#define MT_BKOFF_SLOT_CFG_SLOTTIME
#define MT_BKOFF_SLOT_CFG_CC_DELAY

#define MT_CH_TIME_CFG
#define MT_CH_TIME_CFG_TIMER_EN
#define MT_CH_TIME_CFG_TX_AS_BUSY
#define MT_CH_TIME_CFG_RX_AS_BUSY
#define MT_CH_TIME_CFG_NAV_AS_BUSY
#define MT_CH_TIME_CFG_EIFS_AS_BUSY
#define MT_CH_TIME_CFG_MDRDY_CNT_EN
#define MT_CH_CCA_RC_EN
#define MT_CH_TIME_CFG_CH_TIMER_CLR
#define MT_CH_TIME_CFG_MDRDY_CLR

#define MT_PBF_LIFE_TIMER

#define MT_BEACON_TIME_CFG
#define MT_BEACON_TIME_CFG_INTVAL
#define MT_BEACON_TIME_CFG_TIMER_EN
#define MT_BEACON_TIME_CFG_SYNC_MODE
#define MT_BEACON_TIME_CFG_TBTT_EN
#define MT_BEACON_TIME_CFG_BEACON_TX
#define MT_BEACON_TIME_CFG_TSF_COMP

#define MT_TBTT_SYNC_CFG
#define MT_TSF_TIMER_DW0
#define MT_TSF_TIMER_DW1
#define MT_TBTT_TIMER
#define MT_TBTT_TIMER_VAL

#define MT_INT_TIMER_CFG
#define MT_INT_TIMER_CFG_PRE_TBTT
#define MT_INT_TIMER_CFG_GP_TIMER

#define MT_INT_TIMER_EN
#define MT_INT_TIMER_EN_PRE_TBTT_EN
#define MT_INT_TIMER_EN_GP_TIMER_EN

#define MT_CH_IDLE
#define MT_CH_BUSY
#define MT_EXT_CH_BUSY
#define MT_ED_CCA_TIMER

#define MT_MAC_STATUS
#define MT_MAC_STATUS_TX
#define MT_MAC_STATUS_RX

#define MT_PWR_PIN_CFG
#define MT_AUX_CLK_CFG

#define MT_BB_PA_MODE_CFG0
#define MT_BB_PA_MODE_CFG1
#define MT_RF_PA_MODE_CFG0
#define MT_RF_PA_MODE_CFG1

#define MT_RF_PA_MODE_ADJ0
#define MT_RF_PA_MODE_ADJ1

#define MT_DACCLK_EN_DLY_CFG

#define MT_EDCA_CFG_BASE
#define MT_EDCA_CFG_AC(_n)
#define MT_EDCA_CFG_TXOP
#define MT_EDCA_CFG_AIFSN
#define MT_EDCA_CFG_CWMIN
#define MT_EDCA_CFG_CWMAX

#define MT_TX_PWR_CFG_0
#define MT_TX_PWR_CFG_1
#define MT_TX_PWR_CFG_2
#define MT_TX_PWR_CFG_3
#define MT_TX_PWR_CFG_4
#define MT_TX_PIN_CFG
#define MT_TX_PIN_CFG_TXANT
#define MT_TX_PIN_CFG_RXANT
#define MT_TX_PIN_RFTR_EN
#define MT_TX_PIN_TRSW_EN

#define MT_TX_BAND_CFG
#define MT_TX_BAND_CFG_UPPER_40M
#define MT_TX_BAND_CFG_5G
#define MT_TX_BAND_CFG_2G

#define MT_HT_FBK_TO_LEGACY
#define MT_TX_MPDU_ADJ_INT

#define MT_TX_PWR_CFG_7
#define MT_TX_PWR_CFG_8
#define MT_TX_PWR_CFG_9

#define MT_TX_SW_CFG0
#define MT_TX_SW_CFG1
#define MT_TX_SW_CFG2

#define MT_TXOP_CTRL_CFG
#define MT_TXOP_TRUN_EN
#define MT_TXOP_EXT_CCA_DLY
#define MT_TXOP_ED_CCA_EN

#define MT_TX_RTS_CFG
#define MT_TX_RTS_CFG_RETRY_LIMIT
#define MT_TX_RTS_CFG_THRESH
#define MT_TX_RTS_FALLBACK

#define MT_TX_TIMEOUT_CFG
#define MT_TX_TIMEOUT_CFG_ACKTO

#define MT_TX_RETRY_CFG
#define MT_TX_LINK_CFG
#define MT_TX_CFACK_EN
#define MT_VHT_HT_FBK_CFG0
#define MT_VHT_HT_FBK_CFG1
#define MT_LG_FBK_CFG0
#define MT_LG_FBK_CFG1

#define MT_PROT_CFG_RATE
#define MT_PROT_CFG_CTRL
#define MT_PROT_CFG_NAV
#define MT_PROT_CFG_TXOP_ALLOW
#define MT_PROT_CFG_RTS_THRESH

#define MT_CCK_PROT_CFG
#define MT_OFDM_PROT_CFG
#define MT_MM20_PROT_CFG
#define MT_MM40_PROT_CFG
#define MT_GF20_PROT_CFG
#define MT_GF40_PROT_CFG

#define MT_PROT_RATE
#define MT_PROT_CTRL_RTS_CTS
#define MT_PROT_CTRL_CTS2SELF
#define MT_PROT_NAV_SHORT
#define MT_PROT_NAV_LONG
#define MT_PROT_TXOP_ALLOW_CCK
#define MT_PROT_TXOP_ALLOW_OFDM
#define MT_PROT_TXOP_ALLOW_MM20
#define MT_PROT_TXOP_ALLOW_MM40
#define MT_PROT_TXOP_ALLOW_GF20
#define MT_PROT_TXOP_ALLOW_GF40
#define MT_PROT_RTS_THR_EN
#define MT_PROT_RATE_CCK_11
#define MT_PROT_RATE_OFDM_6
#define MT_PROT_RATE_OFDM_24
#define MT_PROT_RATE_DUP_OFDM_24
#define MT_PROT_RATE_SGI_OFDM_24
#define MT_PROT_TXOP_ALLOW_ALL
#define MT_PROT_TXOP_ALLOW_BW20

#define MT_EXP_ACK_TIME

#define MT_TX_PWR_CFG_0_EXT
#define MT_TX_PWR_CFG_1_EXT

#define MT_TX_FBK_LIMIT
#define MT_TX_FBK_LIMIT_MPDU_FBK
#define MT_TX_FBK_LIMIT_AMPDU_FBK
#define MT_TX_FBK_LIMIT_MPDU_UP_CLEAR
#define MT_TX_FBK_LIMIT_AMPDU_UP_CLEAR
#define MT_TX_FBK_LIMIT_RATE_LUT

#define MT_TX0_RF_GAIN_CORR
#define MT_TX1_RF_GAIN_CORR
#define MT_TX0_RF_GAIN_ATTEN
#define MT_TX0_RF_GAIN_ATTEN

#define MT_TX_ALC_CFG_0
#define MT_TX_ALC_CFG_0_CH_INIT_0
#define MT_TX_ALC_CFG_0_CH_INIT_1
#define MT_TX_ALC_CFG_0_LIMIT_0
#define MT_TX_ALC_CFG_0_LIMIT_1

#define MT_TX_ALC_CFG_1
#define MT_TX_ALC_CFG_1_TEMP_COMP

#define MT_TX_ALC_CFG_2
#define MT_TX_ALC_CFG_2_TEMP_COMP

#define MT_TX_ALC_CFG_3
#define MT_TX_ALC_CFG_4
#define MT_TX_ALC_CFG_4_LOWGAIN_CH_EN
#define MT_TX0_BB_GAIN_ATTEN

#define MT_TX_ALC_VGA3

#define MT_TX_PROT_CFG6
#define MT_TX_PROT_CFG7
#define MT_TX_PROT_CFG8

#define MT_PIFS_TX_CFG

#define MT_RX_FILTR_CFG

#define MT_RX_FILTR_CFG_CRC_ERR
#define MT_RX_FILTR_CFG_PHY_ERR
#define MT_RX_FILTR_CFG_PROMISC
#define MT_RX_FILTR_CFG_OTHER_BSS
#define MT_RX_FILTR_CFG_VER_ERR
#define MT_RX_FILTR_CFG_MCAST
#define MT_RX_FILTR_CFG_BCAST
#define MT_RX_FILTR_CFG_DUP
#define MT_RX_FILTR_CFG_CFACK
#define MT_RX_FILTR_CFG_CFEND
#define MT_RX_FILTR_CFG_ACK
#define MT_RX_FILTR_CFG_CTS
#define MT_RX_FILTR_CFG_RTS
#define MT_RX_FILTR_CFG_PSPOLL
#define MT_RX_FILTR_CFG_BA
#define MT_RX_FILTR_CFG_BAR
#define MT_RX_FILTR_CFG_CTRL_RSV

#define MT_AUTO_RSP_CFG
#define MT_AUTO_RSP_EN
#define MT_AUTO_RSP_PREAMB_SHORT
#define MT_LEGACY_BASIC_RATE
#define MT_HT_BASIC_RATE

#define MT_HT_CTRL_CFG
#define MT_RX_PARSER_CFG
#define MT_RX_PARSER_RX_SET_NAV_ALL

#define MT_EXT_CCA_CFG
#define MT_EXT_CCA_CFG_CCA0
#define MT_EXT_CCA_CFG_CCA1
#define MT_EXT_CCA_CFG_CCA2
#define MT_EXT_CCA_CFG_CCA3
#define MT_EXT_CCA_CFG_CCA_MASK
#define MT_EXT_CCA_CFG_ED_CCA_MASK

#define MT_TX_SW_CFG3

#define MT_PN_PAD_MODE

#define MT_TXOP_HLDR_ET
#define MT_TXOP_HLDR_TX40M_BLK_EN

#define MT_PROT_AUTO_TX_CFG
#define MT_PROT_AUTO_TX_CFG_PROT_PADJ
#define MT_PROT_AUTO_TX_CFG_AUTO_PADJ

#define MT_RX_STAT_0
#define MT_RX_STAT_0_CRC_ERRORS
#define MT_RX_STAT_0_PHY_ERRORS

#define MT_RX_STAT_1
#define MT_RX_STAT_1_CCA_ERRORS
#define MT_RX_STAT_1_PLCP_ERRORS

#define MT_RX_STAT_2
#define MT_RX_STAT_2_DUP_ERRORS
#define MT_RX_STAT_2_OVERFLOW_ERRORS

#define MT_TX_STA_0
#define MT_TX_STA_0_BEACONS

#define MT_TX_STA_1
#define MT_TX_STA_2

#define MT_TX_STAT_FIFO
#define MT_TX_STAT_FIFO_VALID
#define MT_TX_STAT_FIFO_SUCCESS
#define MT_TX_STAT_FIFO_AGGR
#define MT_TX_STAT_FIFO_ACKREQ
#define MT_TX_STAT_FIFO_WCID
#define MT_TX_STAT_FIFO_RATE

#define MT_TX_AGG_STAT

#define MT_TX_AGG_CNT_BASE0
#define MT_MPDU_DENSITY_CNT
#define MT_TX_AGG_CNT_BASE1

#define MT_TX_AGG_CNT(_id)

#define MT_TX_STAT_FIFO_EXT
#define MT_TX_STAT_FIFO_EXT_RETRY
#define MT_TX_STAT_FIFO_EXT_PKTID

#define MT_WCID_TX_RATE_BASE
#define MT_WCID_TX_RATE(_i)

#define MT_BBP_CORE_BASE
#define MT_BBP_IBI_BASE
#define MT_BBP_AGC_BASE
#define MT_BBP_TXC_BASE
#define MT_BBP_RXC_BASE
#define MT_BBP_TXO_BASE
#define MT_BBP_TXBE_BASE
#define MT_BBP_RXFE_BASE
#define MT_BBP_RXO_BASE
#define MT_BBP_DFS_BASE
#define MT_BBP_TR_BASE
#define MT_BBP_CAL_BASE
#define MT_BBP_DSC_BASE
#define MT_BBP_PFMU_BASE

#define MT_BBP(_type, _n)

#define MT_BBP_CORE_R1_BW

#define MT_BBP_AGC_R0_CTRL_CHAN
#define MT_BBP_AGC_R0_BW

/* AGC, R4/R5 */
#define MT_BBP_AGC_LNA_HIGH_GAIN
#define MT_BBP_AGC_LNA_MID_GAIN
#define MT_BBP_AGC_LNA_LOW_GAIN

/* AGC, R6/R7 */
#define MT_BBP_AGC_LNA_ULOW_GAIN

/* AGC, R8/R9 */
#define MT_BBP_AGC_LNA_GAIN_MODE
#define MT_BBP_AGC_GAIN

#define MT_BBP_AGC20_RSSI0
#define MT_BBP_AGC20_RSSI1

#define MT_BBP_TXBE_R0_CTRL_CHAN

#define MT_WCID_ADDR_BASE
#define MT_WCID_ADDR(_n)

#define MT_SRAM_BASE

#define MT_WCID_KEY_BASE
#define MT_WCID_KEY(_n)

#define MT_WCID_IV_BASE
#define MT_WCID_IV(_n)

#define MT_WCID_ATTR_BASE
#define MT_WCID_ATTR(_n)

#define MT_WCID_ATTR_PAIRWISE
#define MT_WCID_ATTR_PKEY_MODE
#define MT_WCID_ATTR_BSS_IDX
#define MT_WCID_ATTR_RXWI_UDF
#define MT_WCID_ATTR_PKEY_MODE_EXT
#define MT_WCID_ATTR_BSS_IDX_EXT
#define MT_WCID_ATTR_WAPI_MCBC
#define MT_WCID_ATTR_WAPI_KEYID

#define MT_SKEY_BASE_0
#define MT_SKEY_BASE_1
#define MT_SKEY_0(_bss, _idx)
#define MT_SKEY_1(_bss, _idx)
#define MT_SKEY(_bss, _idx)

#define MT_SKEY_MODE_BASE_0
#define MT_SKEY_MODE_BASE_1
#define MT_SKEY_MODE_0(_bss)
#define MT_SKEY_MODE_1(_bss)
#define MT_SKEY_MODE(_bss)
#define MT_SKEY_MODE_MASK
#define MT_SKEY_MODE_SHIFT(_bss, _idx)

#define MT_BEACON_BASE

#define MT_TEMP_SENSOR
#define MT_TEMP_SENSOR_VAL

struct mt76_wcid_addr {} __packed __aligned();

struct mt76_wcid_key {} __packed __aligned();

enum mt76x02_cipher_type {};

#endif