linux/drivers/net/wireless/broadcom/b43/tables_nphy.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*

  Broadcom B43 wireless driver
  IEEE 802.11n PHY data tables

  Copyright (c) 2008 Michael Buesch <[email protected]>
  Copyright (c) 2010 Rafał Miłecki <[email protected]>


*/

#include "b43.h"
#include "tables_nphy.h"
#include "phy_common.h"
#include "phy_n.h"

static const u8 b43_ntab_adjustpower0[] =;

static const u8 b43_ntab_adjustpower1[] =;

static const u16 b43_ntab_bdi[] =;

static const u32 b43_ntab_channelest[] =;

static const u8 b43_ntab_estimatepowerlt0[] =;

static const u8 b43_ntab_estimatepowerlt1[] =;

static const u8 b43_ntab_framelookup[] =;

static const u32 b43_ntab_framestruct[] =;

static const u32 b43_ntab_gainctl0[] =;

static const u32 b43_ntab_gainctl1[] =;

static const u32 b43_ntab_intlevel[] =;

static const u32 b43_ntab_iqlt0[] =;

static const u32 b43_ntab_iqlt1[] =;

static const u16 b43_ntab_loftlt0[] =;

static const u16 b43_ntab_loftlt1[] =;

static const u8 b43_ntab_mcs[] =;

static const u32 b43_ntab_noisevar10[] =;

static const u32 b43_ntab_noisevar11[] =;

static const u16 b43_ntab_pilot[] =;

static const u32 b43_ntab_pilotlt[] =;

static const u32 b43_ntab_tdi20a0[] =;

static const u32 b43_ntab_tdi20a1[] =;

static const u32 b43_ntab_tdi40a0[] =;

static const u32 b43_ntab_tdi40a1[] =;

static const u32 b43_ntab_tdtrn[] =;

static const u32 b43_ntab_tmap[] =;

/* static tables, PHY revision >= 3 */
static const u32 b43_ntab_framestruct_r3[] =;

static const u16 b43_ntab_pilot_r3[] =;

static const u32 b43_ntab_tmap_r3[] =;

static const u32 b43_ntab_intlevel_r3[] =;

static const u32 b43_ntab_tdtrn_r3[] =;

static const u32 b43_ntab_noisevar_r3[] =;

static const u16 b43_ntab_mcs_r3[] =;

static const u32 b43_ntab_tdi20a0_r3[] =;

static const u32 b43_ntab_tdi20a1_r3[] =;

static const u32 b43_ntab_tdi40a0_r3[] =;

static const u32 b43_ntab_tdi40a1_r3[] =;

static const u32 b43_ntab_pilotlt_r3[] =;

static const u32 b43_ntab_channelest_r3[] =;

static const u8 b43_ntab_framelookup_r3[] =;

static const u8 b43_ntab_estimatepowerlt0_r3[] =;

static const u8 b43_ntab_estimatepowerlt1_r3[] =;

static const u8 b43_ntab_adjustpower0_r3[] =;

static const u8 b43_ntab_adjustpower1_r3[] =;

static const u32 b43_ntab_gainctl0_r3[] =;

static const u32 b43_ntab_gainctl1_r3[] =;

static const u32 b43_ntab_iqlt0_r3[] =;

static const u32 b43_ntab_iqlt1_r3[] =;

static const u16 b43_ntab_loftlt0_r3[] =;

static const u16 b43_ntab_loftlt1_r3[] =;

/* volatile  tables, PHY revision >= 3 */

/* indexed by antswctl2g */
static const u16 b43_ntab_antswctl_r3[4][32] =;

/* static tables, PHY revision >= 7 */

/* Copied from brcmsmac (5.75.11) */
static const u32 b43_ntab_tmap_r7[] =;

/* Extracted from MMIO dump of 6.30.223.141 */
static const u32 b43_ntab_noisevar_r7[] =;

/**************************************************
 * TX gain tables
 **************************************************/

static const u32 b43_ntab_tx_gain_rev0_1_2[] =;

/* EPA 2 GHz */

static const u32 b43_ntab_tx_gain_epa_rev3_2g[] =;

static const u32 b43_ntab_tx_gain_epa_rev3_hi_pwr_2g[] =;

/* EPA 5 GHz */

static const u32 b43_ntab_tx_gain_epa_rev3_5g[] =;

static const u32 b43_ntab_tx_gain_epa_rev4_5g[] =;

static const u32 b43_ntab_tx_gain_epa_rev4_hi_pwr_5g[] =;

static const u32 b43_ntab_tx_gain_epa_rev5_5g[] =;

/* IPA 2 GHz */

static const u32 b43_ntab_tx_gain_ipa_rev3_2g[] =;

static const u32 b43_ntab_tx_gain_ipa_rev5_2g[] =;

static const u32 b43_ntab_tx_gain_ipa_rev6_2g[] =;

/* Copied from brcmsmac (5.75.11): nphy_tpc_txgain_ipa_2g_2057rev5 */
static const u32 b43_ntab_tx_gain_ipa_2057_rev5_2g[] =;

/* Extracted from MMIO dump of 6.30.223.141 */
static const u32 b43_ntab_tx_gain_ipa_2057_rev9_2g[] =;

/* Extracted from MMIO dump of 6.30.223.248 */
static const u32 b43_ntab_tx_gain_ipa_2057_rev14_2g[] =;

/* IPA 2 5Hz */

static const u32 b43_ntab_tx_gain_ipa_rev3_5g[] =;

/* Extracted from MMIO dump of 6.30.223.141 */
static const u32 b43_ntab_tx_gain_ipa_2057_rev9_5g[] =;

const s8 b43_ntab_papd_pga_gain_delta_ipa_2g[] =;

/* Extracted from MMIO dump of 6.30.223.248
 * Entries: 0, 15, 17, 21, 24, 26, 27, 29, 30 were guessed
 */
static const s16 b43_ntab_rf_pwr_offset_2057_rev9_2g[] =;

/* Extracted from MMIO dump of 6.30.223.248 */
static const s16 b43_ntab_rf_pwr_offset_2057_rev9_5g[] =;

/* Extracted from MMIO dump of 6.30.223.248
 * Entries: 0, 26, 28, 29, 30, 31 were guessed
 */
static const s16 b43_ntab_rf_pwr_offset_2057_rev14_2g[] =;

const u16 tbl_iqcal_gainparams[2][9][8] =;

const struct nphy_txiqcal_ladder ladder_lo[] =;

const struct nphy_txiqcal_ladder ladder_iq[] =;

const u16 loscale[] =;

const u16 tbl_tx_iqlo_cal_loft_ladder_40[] =;

const u16 tbl_tx_iqlo_cal_loft_ladder_20[] =;

const u16 tbl_tx_iqlo_cal_iqimb_ladder_40[] =;

const u16 tbl_tx_iqlo_cal_iqimb_ladder_20[] =;

const u16 tbl_tx_iqlo_cal_startcoefs_nphyrev3[B43_NTAB_TX_IQLO_CAL_STARTCOEFS_REV3] =;

const u16 tbl_tx_iqlo_cal_startcoefs[B43_NTAB_TX_IQLO_CAL_STARTCOEFS] =;

const u16 tbl_tx_iqlo_cal_cmds_recal_nphyrev3[] =;

const u16 tbl_tx_iqlo_cal_cmds_recal[] =;

const u16 tbl_tx_iqlo_cal_cmds_fullcal[] =;

const u16 tbl_tx_iqlo_cal_cmds_fullcal_nphyrev3[] =;

const s16 tbl_tx_filter_coef_rev4[7][15] =;

/* addr0,  addr1,  bmask,  shift */
const struct nphy_rf_control_override_rev2 tbl_rf_control_override_rev2[] =;

/* val_mask, val_shift, en_addr0, val_addr0, en_addr1, val_addr1 */
const struct nphy_rf_control_override_rev3 tbl_rf_control_override_rev3[] =;

/* field, val_addr_core0, val_addr_core1, val_mask, val_shift */
static const struct nphy_rf_control_override_rev7
			tbl_rf_control_override_rev7_over0[] =;

/* field, val_addr_core0, val_addr_core1, val_mask, val_shift */
static const struct nphy_rf_control_override_rev7
			tbl_rf_control_override_rev7_over1[] =;

/* field, val_addr_core0, val_addr_core1, val_mask, val_shift */
static const struct nphy_rf_control_override_rev7
			tbl_rf_control_override_rev7_over2[] =;

static struct nphy_gain_ctl_workaround_entry nphy_gain_ctl_wa_phy6_radio11_ghz2 =;
static struct nphy_gain_ctl_workaround_entry nphy_gain_ctl_workaround[2][4] =;

static inline void assert_ntab_array_sizes(void)
{}

u32 b43_ntab_read(struct b43_wldev *dev, u32 offset)
{}

void b43_ntab_read_bulk(struct b43_wldev *dev, u32 offset,
			 unsigned int nr_elements, void *_data)
{}

void b43_ntab_write(struct b43_wldev *dev, u32 offset, u32 value)
{}

void b43_ntab_write_bulk(struct b43_wldev *dev, u32 offset,
			  unsigned int nr_elements, const void *_data)
{}

#define ntab_upload(dev, offset, data)

static void b43_nphy_tables_init_shared_lut(struct b43_wldev *dev)
{}

static void b43_nphy_tables_init_rev7_volatile(struct b43_wldev *dev)
{}

static void b43_nphy_tables_init_rev16(struct b43_wldev *dev)
{}

static void b43_nphy_tables_init_rev7(struct b43_wldev *dev)
{}

static void b43_nphy_tables_init_rev3(struct b43_wldev *dev)
{}

static void b43_nphy_tables_init_rev0(struct b43_wldev *dev)
{}

/* https://bcm-v4.sipsolutions.net/802.11/PHY/N/InitTables */
void b43_nphy_tables_init(struct b43_wldev *dev)
{}

/* https://bcm-v4.sipsolutions.net/802.11/PHY/N/GetIpaGainTbl */
static const u32 *b43_nphy_get_ipa_gain_table(struct b43_wldev *dev)
{}

const u32 *b43_nphy_get_tx_gain_table(struct b43_wldev *dev)
{}

const s16 *b43_ntab_get_rf_pwr_offset_table(struct b43_wldev *dev)
{}

struct nphy_gain_ctl_workaround_entry *b43_nphy_get_gain_ctl_workaround_ent(
	struct b43_wldev *dev, bool ghz5, bool ext_lna)
{}

const struct nphy_rf_control_override_rev7 *b43_nphy_get_rf_ctl_over_rev7(
	struct b43_wldev *dev, u16 field, u8 override)
{}