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

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

#ifndef __RTW8822B_H__
#define __RTW8822B_H__

#include <asm/byteorder.h>

#define RCR_VHT_ACK

struct rtw8822bu_efuse {};

struct rtw8822be_efuse {};

struct rtw8822bs_efuse {} __packed;

struct rtw8822b_efuse {};

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

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

/* phy status page0 */
#define GET_PHY_STAT_P0_PWDB(phy_stat)

/* 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 RTW8822B_EDCCA_MAX
#define RTW8822B_EDCCA_SRC_DEF
#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_EDCCA_POW_MA
#define BIT_MA_LEVEL
#define REG_ADCCLK
#define REG_ADC160
#define REG_ADC40
#define REG_EDCCA_DECISION
#define BIT_EDCCA_OPTION
#define REG_CDDTXP
#define REG_TXPSEL1
#define REG_EDCCA_SOURCE
#define BIT_SOURCE_OPTION
#define REG_ACBB0
#define REG_ACBBRXFIR
#define REG_ACGG2TBL
#define REG_RXSB
#define REG_ADCINI
#define REG_TXSF2
#define REG_TXSF6
#define REG_RXDESC
#define REG_ENTXCCK
#define REG_AGCTR_A
#define REG_TXDFIR
#define REG_RXIGI_A
#define REG_TRSW
#define REG_RFESEL0
#define REG_RFESEL8
#define REG_RFECTL
#define REG_RFEINV
#define REG_AGCTR_B
#define REG_RXIGI_B
#define REG_ANTWT
#define REG_IQKFAILMSK

extern const struct rtw_chip_info rtw8822b_hw_spec;

#endif