linux/drivers/net/wireless/realtek/rtw88/rtw8821c.h

/* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */
/* Copyright(c) 2018-2019  Realtek Corporation
 */

#ifndef __RTW8821C_H__
#define __RTW8821C_H__

#include <asm/byteorder.h>

#define RCR_VHT_ACK

struct rtw8821cu_efuse {};

struct rtw8821ce_efuse {};

struct rtw8821cs_efuse {} __packed;

struct rtw8821c_efuse {};

static inline void
_rtw_write32s_mask(struct rtw_dev *rtwdev, u32 addr, u32 mask, u32 data)
{}

extern const struct rtw_chip_info rtw8821c_hw_spec;

#define rtw_write32s_mask(rtwdev, addr, mask, data)

#define BIT_FEN_PCIEA
#define WLAN_SLOT_TIME
#define WLAN_PIFS_TIME
#define WLAN_SIFS_CCK_CONT_TX
#define WLAN_SIFS_OFDM_CONT_TX
#define WLAN_SIFS_CCK_TRX
#define WLAN_SIFS_OFDM_TRX
#define WLAN_VO_TXOP_LIMIT
#define WLAN_VI_TXOP_LIMIT
#define WLAN_RDG_NAV
#define WLAN_TXOP_NAV
#define WLAN_CCK_RX_TSF
#define WLAN_OFDM_RX_TSF
#define WLAN_TBTT_PROHIBIT
#define WLAN_TBTT_HOLD_TIME
#define WLAN_DRV_EARLY_INT
#define WLAN_BCN_DMA_TIME

#define WLAN_RX_FILTER0
#define WLAN_RX_FILTER2
#define WLAN_RCR_CFG
#define WLAN_RXPKT_MAX_SZ
#define WLAN_RXPKT_MAX_SZ_512

#define WLAN_AMPDU_MAX_TIME
#define WLAN_RTS_LEN_TH
#define WLAN_RTS_TX_TIME_TH
#define WLAN_MAX_AGG_PKT_LIMIT
#define WLAN_RTS_MAX_AGG_PKT_LIMIT
#define FAST_EDCA_VO_TH
#define FAST_EDCA_VI_TH
#define FAST_EDCA_BE_TH
#define FAST_EDCA_BK_TH
#define WLAN_BAR_RETRY_LIMIT
#define WLAN_RA_TRY_RATE_AGG_LIMIT

#define WLAN_TX_FUNC_CFG1
#define WLAN_TX_FUNC_CFG2
#define WLAN_MAC_OPT_NORM_FUNC1
#define WLAN_MAC_OPT_LB_FUNC1
#define WLAN_MAC_OPT_FUNC2

#define WLAN_SIFS_CFG

#define WLAN_TBTT_TIME

#define WLAN_NAV_CFG
#define WLAN_RX_TSF_CFG
#define WLAN_PRE_TXCNT_TIME_TH

/* phy status page0 */
#define GET_PHY_STAT_P0_PWDB(phy_stat)
#define GET_PHY_STAT_P0_VGA(phy_stat)
#define GET_PHY_STAT_P0_LNA_L(phy_stat)
#define GET_PHY_STAT_P0_LNA_H(phy_stat)
#define BIT_LNA_H_MASK
#define BIT_LNA_L_MASK

/* phy status page1 */
#define GET_PHY_STAT_P1_PWDB_A(phy_stat)
#define GET_PHY_STAT_P1_PWDB_B(phy_stat)
#define GET_PHY_STAT_P1_RF_MODE(phy_stat)
#define GET_PHY_STAT_P1_L_RXSC(phy_stat)
#define GET_PHY_STAT_P1_HT_RXSC(phy_stat)
#define GET_PHY_STAT_P1_RXEVM_A(phy_stat)
#define GET_PHY_STAT_P1_RXEVM_B(phy_stat)
#define GET_PHY_STAT_P1_CFO_TAIL_A(phy_stat)
#define GET_PHY_STAT_P1_CFO_TAIL_B(phy_stat)
#define GET_PHY_STAT_P1_RXSNR_A(phy_stat)
#define GET_PHY_STAT_P1_RXSNR_B(phy_stat)

#define REG_SYS_CTRL
#define BIT_FEN_EN
#define REG_INIRTS_RATE_SEL
#define REG_HTSTFWT
#define REG_RXPSEL
#define BIT_RX_PSEL_RST
#define REG_TXPSEL
#define REG_RXCCAMSK
#define REG_CCASEL
#define REG_PDMFTH
#define REG_CCA2ND
#define REG_L1WT
#define REG_L1PKWT
#define REG_MRC
#define REG_CLKTRK
#define REG_ADCCLK
#define REG_ADC160
#define REG_ADC40
#define REG_CHFIR
#define REG_CDDTXP
#define REG_TXPSEL1
#define REG_ACBB0
#define REG_ACBBRXFIR
#define REG_ACGG2TBL
#define REG_FAS
#define REG_RXSB
#define REG_ADCINI
#define REG_PWRTH
#define REG_CCA_FLTR
#define REG_TXSF2
#define REG_TXSF6
#define REG_FA_CCK
#define REG_RXDESC
#define REG_ENTXCCK
#define BTG_LNA
#define WLG_LNA
#define REG_ENRXCCA
#define BTG_CCA
#define WLG_CCA
#define REG_PWRTH2
#define REG_CSRATIO
#define REG_TXFILTER
#define REG_CNTRST
#define REG_AGCTR_A
#define REG_TXSCALE_A
#define REG_TXDFIR
#define REG_RXIGI_A
#define REG_TXAGCIDX
#define REG_TRSW
#define REG_RFESEL0
#define REG_RFESEL8
#define REG_RFECTL
#define B_BTG_SWITCH
#define B_CTRL_SWITCH
#define B_WL_SWITCH
#define B_WLG_SWITCH
#define B_WLA_SWITCH
#define REG_RFEINV
#define REG_AGCTR_B
#define REG_RXIGI_B
#define REG_CRC_CCK
#define REG_CRC_OFDM
#define REG_CRC_HT
#define REG_CRC_VHT
#define REG_CCA_OFDM
#define REG_FA_OFDM
#define REG_CCA_CCK
#define REG_DMEM_CTRL
#define BIT_WL_RST
#define REG_ANTWT
#define REG_IQKFAILMSK
#define BIT_MASK_R_RFE_SEL_15
#define BIT_SDIO_INT
#define BT_CNT_ENABLE
#define BIT_BCN_QUEUE
#define BCN_PRI_EN
#define PTA_CTRL_PIN
#define DPDT_CTRL_PIN
#define ANTDIC_CTRL_PIN
#define REG_CTRL_TYPE
#define BIT_CTRL_TYPE1
#define BIT_CTRL_TYPE2
#define CTRL_TYPE_MASK

#define RF18_BAND_MASK
#define RF18_BAND_2G
#define RF18_BAND_5G
#define RF18_CHANNEL_MASK
#define RF18_RFSI_MASK
#define RF18_RFSI_GE
#define RF18_RFSI_GT
#define RF18_BW_MASK
#define RF18_BW_20M
#define RF18_BW_40M
#define RF18_BW_80M

#endif