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

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

#include <linux/types.h>

#include "tables_nphy.h"

#define B2055_GEN_SPARE
#define B2055_SP_PINPD
#define B2055_C1_SP_RSSI
#define B2055_C1_SP_PDMISC
#define B2055_C2_SP_RSSI
#define B2055_C2_SP_PDMISC
#define B2055_C1_SP_RXGC1
#define B2055_C1_SP_RXGC2
#define B2055_C2_SP_RXGC1
#define B2055_C2_SP_RXGC2
#define B2055_C1_SP_LPFBWSEL
#define B2055_C2_SP_LPFBWSEL
#define B2055_C1_SP_TXGC1
#define B2055_C1_SP_TXGC2
#define B2055_C2_SP_TXGC1
#define B2055_C2_SP_TXGC2
#define B2055_MASTER1
#define B2055_MASTER2
#define B2055_PD_LGEN
#define B2055_PD_PLLTS
#define B2055_C1_PD_LGBUF
#define B2055_C1_PD_TX
#define B2055_C1_PD_RXTX
#define B2055_C1_PD_RSSIMISC
#define B2055_C2_PD_LGBUF
#define B2055_C2_PD_TX
#define B2055_C2_PD_RXTX
#define B2055_C2_PD_RSSIMISC
#define B2055_PWRDET_LGEN
#define B2055_C1_PWRDET_LGBUF
#define B2055_C1_PWRDET_RXTX
#define B2055_C2_PWRDET_LGBUF
#define B2055_C2_PWRDET_RXTX
#define B2055_RRCCAL_CS
#define B2055_RRCCAL_NOPTSEL
#define B2055_CAL_MISC
#define B2055_CAL_COUT
#define B2055_CAL_COUT2
#define B2055_CAL_CVARCTL
#define B2055_CAL_RVARCTL
#define B2055_CAL_LPOCTL
#define B2055_CAL_TS
#define B2055_CAL_RCCALRTS
#define B2055_CAL_RCALRTS
#define B2055_PADDRV
#define B2055_XOCTL1
#define B2055_XOCTL2
#define B2055_XOREGUL
#define B2055_XOMISC
#define B2055_PLL_LFC1
#define B2055_PLL_CALVTH
#define B2055_PLL_LFC2
#define B2055_PLL_REF
#define B2055_PLL_LFR1
#define B2055_PLL_PFDCP
#define B2055_PLL_IDAC_CPOPAMP
#define B2055_PLL_CPREG
#define B2055_PLL_RCAL
#define B2055_RF_PLLMOD0
#define B2055_RF_PLLMOD1
#define B2055_RF_MMDIDAC1
#define B2055_RF_MMDIDAC0
#define B2055_RF_MMDSP
#define B2055_VCO_CAL1
#define B2055_VCO_CAL2
#define B2055_VCO_CAL3
#define B2055_VCO_CAL4
#define B2055_VCO_CAL5
#define B2055_VCO_CAL6
#define B2055_VCO_CAL7
#define B2055_VCO_CAL8
#define B2055_VCO_CAL9
#define B2055_VCO_CAL10
#define B2055_VCO_CAL11
#define B2055_VCO_CAL12
#define B2055_VCO_CAL13
#define B2055_VCO_CAL14
#define B2055_VCO_CAL15
#define B2055_VCO_CAL16
#define B2055_VCO_KVCO
#define B2055_VCO_CAPTAIL
#define B2055_VCO_IDACVCO
#define B2055_VCO_REG
#define B2055_PLL_RFVTH
#define B2055_LGBUF_CENBUF
#define B2055_LGEN_TUNE1
#define B2055_LGEN_TUNE2
#define B2055_LGEN_IDAC1
#define B2055_LGEN_IDAC2
#define B2055_LGEN_BIASC
#define B2055_LGEN_BIASIDAC
#define B2055_LGEN_RCAL
#define B2055_LGEN_DIV
#define B2055_LGEN_SPARE2
#define B2055_C1_LGBUF_ATUNE
#define B2055_C1_LGBUF_GTUNE
#define B2055_C1_LGBUF_DIV
#define B2055_C1_LGBUF_AIDAC
#define B2055_C1_LGBUF_GIDAC
#define B2055_C1_LGBUF_IDACFO
#define B2055_C1_LGBUF_SPARE
#define B2055_C1_RX_RFSPC1
#define B2055_C1_RX_RFR1
#define B2055_C1_RX_RFR2
#define B2055_C1_RX_RFRCAL
#define B2055_C1_RX_BB_BLCMP
#define B2055_C1_RX_BB_LPF
#define B2055_C1_RX_BB_MIDACHP
#define B2055_C1_RX_BB_VGA1IDAC
#define B2055_C1_RX_BB_VGA2IDAC
#define B2055_C1_RX_BB_VGA3IDAC
#define B2055_C1_RX_BB_BUFOCTL
#define B2055_C1_RX_BB_RCCALCTL
#define B2055_C1_RX_BB_RSSICTL1
#define B2055_C1_RX_BB_RSSICTL2
#define B2055_C1_RX_BB_RSSICTL3
#define B2055_C1_RX_BB_RSSICTL4
#define B2055_C1_RX_BB_RSSICTL5
#define B2055_C1_RX_BB_REG
#define B2055_C1_RX_BB_SPARE1
#define B2055_C1_RX_TXBBRCAL
#define B2055_C1_TX_RF_SPGA
#define B2055_C1_TX_RF_SPAD
#define B2055_C1_TX_RF_CNTPGA1
#define B2055_C1_TX_RF_CNTPAD1
#define B2055_C1_TX_RF_PGAIDAC
#define B2055_C1_TX_PGAPADTN
#define B2055_C1_TX_PADIDAC1
#define B2055_C1_TX_PADIDAC2
#define B2055_C1_TX_MXBGTRIM
#define B2055_C1_TX_RF_RCAL
#define B2055_C1_TX_RF_PADTSSI1
#define B2055_C1_TX_RF_PADTSSI2
#define B2055_C1_TX_RF_SPARE
#define B2055_C1_TX_RF_IQCAL1
#define B2055_C1_TX_RF_IQCAL2
#define B2055_C1_TXBB_RCCAL
#define B2055_C1_TXBB_LPF1
#define B2055_C1_TX_VOSCNCL
#define B2055_C1_TX_LPF_MXGMIDAC
#define B2055_C1_TX_BB_MXGM
#define B2055_C2_LGBUF_ATUNE
#define B2055_C2_LGBUF_GTUNE
#define B2055_C2_LGBUF_DIV
#define B2055_C2_LGBUF_AIDAC
#define B2055_C2_LGBUF_GIDAC
#define B2055_C2_LGBUF_IDACFO
#define B2055_C2_LGBUF_SPARE
#define B2055_C2_RX_RFSPC1
#define B2055_C2_RX_RFR1
#define B2055_C2_RX_RFR2
#define B2055_C2_RX_RFRCAL
#define B2055_C2_RX_BB_BLCMP
#define B2055_C2_RX_BB_LPF
#define B2055_C2_RX_BB_MIDACHP
#define B2055_C2_RX_BB_VGA1IDAC
#define B2055_C2_RX_BB_VGA2IDAC
#define B2055_C2_RX_BB_VGA3IDAC
#define B2055_C2_RX_BB_BUFOCTL
#define B2055_C2_RX_BB_RCCALCTL
#define B2055_C2_RX_BB_RSSICTL1
#define B2055_C2_RX_BB_RSSICTL2
#define B2055_C2_RX_BB_RSSICTL3
#define B2055_C2_RX_BB_RSSICTL4
#define B2055_C2_RX_BB_RSSICTL5
#define B2055_C2_RX_BB_REG
#define B2055_C2_RX_BB_SPARE1
#define B2055_C2_RX_TXBBRCAL
#define B2055_C2_TX_RF_SPGA
#define B2055_C2_TX_RF_SPAD
#define B2055_C2_TX_RF_CNTPGA1
#define B2055_C2_TX_RF_CNTPAD1
#define B2055_C2_TX_RF_PGAIDAC
#define B2055_C2_TX_PGAPADTN
#define B2055_C2_TX_PADIDAC1
#define B2055_C2_TX_PADIDAC2
#define B2055_C2_TX_MXBGTRIM
#define B2055_C2_TX_RF_RCAL
#define B2055_C2_TX_RF_PADTSSI1
#define B2055_C2_TX_RF_PADTSSI2
#define B2055_C2_TX_RF_SPARE
#define B2055_C2_TX_RF_IQCAL1
#define B2055_C2_TX_RF_IQCAL2
#define B2055_C2_TXBB_RCCAL
#define B2055_C2_TXBB_LPF1
#define B2055_C2_TX_VOSCNCL
#define B2055_C2_TX_LPF_MXGMIDAC
#define B2055_C2_TX_BB_MXGM
#define B2055_PRG_GCHP21
#define B2055_PRG_GCHP22
#define B2055_PRG_GCHP23
#define B2055_PRG_GCHP24
#define B2055_PRG_GCHP25
#define B2055_PRG_GCHP26
#define B2055_PRG_GCHP27
#define B2055_PRG_GCHP28
#define B2055_PRG_GCHP29
#define B2055_PRG_GCHP30
#define B2055_C1_LNA_GAINBST
#define B2055_C1_B0NB_RSSIVCM
#define B2055_C1_GENSPARE2
#define B2055_C2_LNA_GAINBST
#define B2055_C2_B0NB_RSSIVCM
#define B2055_C2_GENSPARE2

struct b43_nphy_channeltab_entry_rev2 {};

/* Upload the default register value table.
 * If "ghz5" is true, we upload the 5Ghz table. Otherwise the 2.4Ghz
 * table is uploaded. If "ignore_uploadflag" is true, we upload any value
 * and ignore the "UPLOAD" flag. */
void b2055_upload_inittab(struct b43_wldev *dev,
			  bool ghz5, bool ignore_uploadflag);

/* Get the NPHY Channel Switch Table entry for a channel.
 * Returns NULL on failure to find an entry. */
const struct b43_nphy_channeltab_entry_rev2 *
b43_nphy_get_chantabent_rev2(struct b43_wldev *dev, u8 channel);

#endif /* B43_RADIO_2055_H_ */