linux/drivers/net/wireless/broadcom/b43/phy_a.h

/* SPDX-License-Identifier: GPL-2.0 */
#ifndef LINUX_B43_PHY_A_H_
#define LINUX_B43_PHY_A_H_

#include "phy_common.h"


/* OFDM (A) PHY Registers */
#define B43_PHY_VERSION_OFDM
#define B43_PHY_BBANDCFG
#define B43_PHY_BBANDCFG_RXANT
#define B43_PHY_BBANDCFG_RXANT_SHIFT
#define B43_PHY_PWRDOWN
#define B43_PHY_CRSTHRES1_R1
#define B43_PHY_LNAHPFCTL
#define B43_PHY_LPFGAINCTL
#define B43_PHY_ADIVRELATED
#define B43_PHY_CRS0
#define B43_PHY_CRS0_EN
#define B43_PHY_PEAK_COUNT
#define B43_PHY_ANTDWELL
#define B43_PHY_ANTDWELL_AUTODIV1
#define B43_PHY_ENCORE
#define B43_PHY_ENCORE_EN
#define B43_PHY_LMS
#define B43_PHY_OFDM61
#define B43_PHY_OFDM61_10
#define B43_PHY_IQBAL
#define B43_PHY_BBTXDC_BIAS
#define B43_PHY_OTABLECTL
#define B43_PHY_OTABLEOFF
#define B43_PHY_OTABLENR
#define B43_PHY_OTABLENR_SHIFT
#define B43_PHY_OTABLEI
#define B43_PHY_OTABLEQ
#define B43_PHY_HPWR_TSSICTL
#define B43_PHY_ADCCTL
#define B43_PHY_IDLE_TSSI
#define B43_PHY_A_TEMP_SENSE
#define B43_PHY_NRSSITHRES
#define B43_PHY_ANTWRSETT
#define B43_PHY_ANTWRSETT_ARXDIV
#define B43_PHY_CLIPPWRDOWNT
#define B43_PHY_OFDM9B
#define B43_PHY_N1P1GAIN
#define B43_PHY_P1P2GAIN
#define B43_PHY_N1N2GAIN
#define B43_PHY_CLIPTHRES
#define B43_PHY_CLIPN1P2THRES
#define B43_PHY_CCKSHIFTBITS_WA
#define B43_PHY_CCKSHIFTBITS
#define B43_PHY_DIVSRCHIDX
#define B43_PHY_CLIPP2THRES
#define B43_PHY_CLIPP3THRES
#define B43_PHY_DIVP1P2GAIN
#define B43_PHY_DIVSRCHGAINBACK
#define B43_PHY_DIVSRCHGAINCHNG
#define B43_PHY_CRSTHRES1
#define B43_PHY_CRSTHRES2
#define B43_PHY_TSSIP_LTBASE
#define B43_PHY_DC_LTBASE
#define B43_PHY_GAIN_LTBASE

/*** OFDM table numbers ***/
#define B43_OFDMTAB(number, offset)
#define B43_OFDMTAB_AGC1
#define B43_OFDMTAB_GAIN0
#define B43_OFDMTAB_GAINX
#define B43_OFDMTAB_GAIN1
#define B43_OFDMTAB_AGC3
#define B43_OFDMTAB_GAIN2
#define B43_OFDMTAB_LNAHPFGAIN1
#define B43_OFDMTAB_WRSSI
#define B43_OFDMTAB_LNAHPFGAIN2
#define B43_OFDMTAB_NOISESCALE
#define B43_OFDMTAB_AGC2
#define B43_OFDMTAB_ROTOR
#define B43_OFDMTAB_ADVRETARD
#define B43_OFDMTAB_DAC
#define B43_OFDMTAB_DC
#define B43_OFDMTAB_PWRDYN2
#define B43_OFDMTAB_LNAGAIN
#define B43_OFDMTAB_UNKNOWN_0F
#define B43_OFDMTAB_UNKNOWN_APHY
#define B43_OFDMTAB_LPFGAIN
#define B43_OFDMTAB_RSSI
#define B43_OFDMTAB_UNKNOWN_11
#define B43_OFDMTAB_AGC1_R1
#define B43_OFDMTAB_GAINX_R1
#define B43_OFDMTAB_MINSIGSQ
#define B43_OFDMTAB_AGC3_R1
#define B43_OFDMTAB_WRSSI_R1
#define B43_OFDMTAB_TSSI
#define B43_OFDMTAB_DACRFPABB
#define B43_OFDMTAB_DACOFF
#define B43_OFDMTAB_DCBIAS

u16 b43_ofdmtab_read16(struct b43_wldev *dev, u16 table, u16 offset);
void b43_ofdmtab_write16(struct b43_wldev *dev, u16 table,
			 u16 offset, u16 value);
u32 b43_ofdmtab_read32(struct b43_wldev *dev, u16 table, u16 offset);
void b43_ofdmtab_write32(struct b43_wldev *dev, u16 table,
			 u16 offset, u32 value);

#endif /* LINUX_B43_PHY_A_H_ */