Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Enumerations | Functions
phy_lcn.c File Reference
#include <linux/kernel.h>
#include <linux/delay.h>
#include <linux/cordic.h>
#include <pmu.h>
#include <d11.h>
#include <phy_shim.h>
#include "phy_qmath.h"
#include "phy_hal.h"
#include "phy_radio.h"
#include "phytbl_lcn.h"
#include "phy_lcn.h"

Go to the source code of this file.

Data Structures

struct  lcnphy_txgains
 
struct  lcnphy_rx_iqcomp
 
struct  lcnphy_spb_tone
 
struct  lcnphy_unsign16_struct
 
struct  lcnphy_iq_est
 
struct  lcnphy_sfo_cfg
 
struct  chan_info_2064_lcnphy
 

Macros

#define PLL_2064_NDIV   90
 
#define PLL_2064_LOW_END_VCO   3000
 
#define PLL_2064_LOW_END_KVCO   27
 
#define PLL_2064_HIGH_END_VCO   4200
 
#define PLL_2064_HIGH_END_KVCO   68
 
#define PLL_2064_LOOP_BW_DOUBLER   200
 
#define PLL_2064_D30_DOUBLER   10500
 
#define PLL_2064_LOOP_BW   260
 
#define PLL_2064_D30   8000
 
#define PLL_2064_CAL_REF_TO   8
 
#define PLL_2064_MHZ   1000000
 
#define PLL_2064_OPEN_LOOP_DELAY   5
 
#define TEMPSENSE   1
 
#define VBATSENSE   2
 
#define NOISE_IF_UPD_CHK_INTERVAL   1
 
#define NOISE_IF_UPD_RST_INTERVAL   60
 
#define NOISE_IF_UPD_THRESHOLD_CNT   1
 
#define NOISE_IF_UPD_TRHRESHOLD   50
 
#define NOISE_IF_UPD_TIMEOUT   1000
 
#define NOISE_IF_OFF   0
 
#define NOISE_IF_CHK   1
 
#define NOISE_IF_ON   2
 
#define PAPD_BLANKING_PROFILE   3
 
#define PAPD2LUT   0
 
#define PAPD_CORR_NORM   0
 
#define PAPD_BLANKING_THRESHOLD   0
 
#define PAPD_STOP_AFTER_LAST_UPDATE   0
 
#define LCN_TARGET_PWR   60
 
#define LCN_VBAT_OFFSET_433X   34649679
 
#define LCN_VBAT_SLOPE_433X   8258032
 
#define LCN_VBAT_SCALE_NOM   53
 
#define LCN_VBAT_SCALE_DEN   432
 
#define LCN_TEMPSENSE_OFFSET   80812
 
#define LCN_TEMPSENSE_DEN   2647
 
#define LCN_BW_LMT   200
 
#define LCN_CUR_LMT   1250
 
#define LCN_MULT   1
 
#define LCN_VCO_DIV   30
 
#define LCN_OFFSET   680
 
#define LCN_FACT   490
 
#define LCN_CUR_DIV   2640
 
#define LCNPHY_txgainctrlovrval1_pagain_ovr_val1_SHIFT   (0 + 8)
 
#define LCNPHY_txgainctrlovrval1_pagain_ovr_val1_MASK   (0x7f << LCNPHY_txgainctrlovrval1_pagain_ovr_val1_SHIFT)
 
#define LCNPHY_stxtxgainctrlovrval1_pagain_ovr_val1_SHIFT   (0 + 8)
 
#define LCNPHY_stxtxgainctrlovrval1_pagain_ovr_val1_MASK   (0x7f << LCNPHY_stxtxgainctrlovrval1_pagain_ovr_val1_SHIFT)
 
#define wlc_lcnphy_enable_tx_gain_override(pi)   wlc_lcnphy_set_tx_gain_override(pi, true)
 
#define wlc_lcnphy_disable_tx_gain_override(pi)   wlc_lcnphy_set_tx_gain_override(pi, false)
 
#define wlc_lcnphy_iqcal_active(pi)
 
#define txpwrctrl_off(pi)   (0x7 != ((read_phy_reg(pi, 0x4a4) & 0xE000) >> 13))
 
#define wlc_lcnphy_tempsense_based_pwr_ctrl_enabled(pi)   (pi->temppwrctrl_capable)
 
#define wlc_lcnphy_tssi_based_pwr_ctrl_enabled(pi)   (pi->hwpwrctrl_capable)
 
#define SWCTRL_BT_TX   0x18
 
#define SWCTRL_OVR_DISABLE   0x40
 
#define AFE_CLK_INIT_MODE_TXRX2X   1
 
#define AFE_CLK_INIT_MODE_PAPD   0
 
#define LCNPHY_TBL_ID_IQLOCAL   0x00
 
#define LCNPHY_TBL_ID_RFSEQ   0x08
 
#define LCNPHY_TBL_ID_GAIN_IDX   0x0d
 
#define LCNPHY_TBL_ID_SW_CTRL   0x0f
 
#define LCNPHY_TBL_ID_GAIN_TBL   0x12
 
#define LCNPHY_TBL_ID_SPUR   0x14
 
#define LCNPHY_TBL_ID_SAMPLEPLAY   0x15
 
#define LCNPHY_TBL_ID_SAMPLEPLAY1   0x16
 
#define LCNPHY_TX_PWR_CTRL_RATE_OFFSET   832
 
#define LCNPHY_TX_PWR_CTRL_MAC_OFFSET   128
 
#define LCNPHY_TX_PWR_CTRL_GAIN_OFFSET   192
 
#define LCNPHY_TX_PWR_CTRL_IQ_OFFSET   320
 
#define LCNPHY_TX_PWR_CTRL_LO_OFFSET   448
 
#define LCNPHY_TX_PWR_CTRL_PWR_OFFSET   576
 
#define LCNPHY_TX_PWR_CTRL_START_INDEX_2G_4313   140
 
#define LCNPHY_TX_PWR_CTRL_START_NPT   1
 
#define LCNPHY_TX_PWR_CTRL_MAX_NPT   7
 
#define LCNPHY_NOISE_SAMPLES_DEFAULT   5000
 
#define LCNPHY_ACI_DETECT_START   1
 
#define LCNPHY_ACI_DETECT_PROGRESS   2
 
#define LCNPHY_ACI_DETECT_STOP   3
 
#define LCNPHY_ACI_CRSHIFRMLO_TRSH   100
 
#define LCNPHY_ACI_GLITCH_TRSH   2000
 
#define LCNPHY_ACI_TMOUT   250
 
#define LCNPHY_ACI_DETECT_TIMEOUT   2
 
#define LCNPHY_ACI_START_DELAY   0
 
#define wlc_lcnphy_tx_gain_override_enabled(pi)   (0 != (read_phy_reg((pi), 0x43b) & (0x1 << 6)))
 
#define wlc_lcnphy_total_tx_frames(pi)
 
#define LCNPHY_NUM_DIG_FILT_COEFFS   16
 
#define LCNPHY_NUM_TX_DIG_FILTERS_CCK   13
 
#define LCNPHY_NUM_TX_DIG_FILTERS_OFDM   3
 
#define wlc_lcnphy_set_start_tx_pwr_idx(pi, idx)
 
#define wlc_lcnphy_set_tx_pwr_npt(pi, npt)
 
#define wlc_lcnphy_get_tx_pwr_ctrl(pi)
 
#define wlc_lcnphy_get_tx_pwr_npt(pi)
 
#define wlc_lcnphy_get_current_tx_pwr_idx_if_pwrctrl_on(pi)   (read_phy_reg(pi, 0x473) & 0x1ff)
 
#define wlc_lcnphy_get_target_tx_pwr(pi)
 
#define wlc_lcnphy_set_target_tx_pwr(pi, target)
 
#define wlc_radio_2064_rcal_done(pi)   (0 != (read_radio_reg(pi, RADIO_2064_REG05C) & 0x20))
 
#define tempsense_done(pi)   (0x8000 == (read_phy_reg(pi, 0x476) & 0x8000))
 
#define LCNPHY_IQLOCC_READ(val)   ((u8)(-(s8)(((val) & 0xf0) >> 4) + (s8)((val) & 0x0f)))
 
#define FIXED_TXPWR   78
 
#define LCNPHY_TEMPSENSE(val)   ((s16)((val > 255) ? (val - 512) : val))
 
#define LCNPHY_MIN_RXIQ_PWR   2
 

Typedefs

typedef u16 iqcal_gain_params_lcnphy [9]
 

Enumerations

enum  lcnphy_cal_mode {
  LCNPHY_CAL_FULL, LCNPHY_CAL_RECAL, LCNPHY_CAL_CURRECAL, LCNPHY_CAL_DIGCAL,
  LCNPHY_CAL_GCTRL
}
 
enum  lcnphy_papd_cal_type { LCNPHY_PAPD_CAL_CW, LCNPHY_PAPD_CAL_OFDM }
 
enum  lcnphy_tssi_mode { LCNPHY_TSSI_PRE_PA, LCNPHY_TSSI_POST_PA, LCNPHY_TSSI_EXT }
 

Functions

void wlc_lcnphy_write_table (struct brcms_phy *pi, const struct phytbl_info *pti)
 
void wlc_lcnphy_read_table (struct brcms_phy *pi, struct phytbl_info *pti)
 
s8 wlc_lcnphy_get_current_tx_pwr_idx (struct brcms_phy *pi)
 
void wlc_lcnphy_crsuprs (struct brcms_phy *pi, int channel)
 
void wlc_phy_chanspec_set_lcnphy (struct brcms_phy *pi, u16 chanspec)
 
void wlc_lcnphy_tx_pwr_update_npt (struct brcms_phy *pi)
 
s32 wlc_lcnphy_tssi2dbm (s32 tssi, s32 a1, s32 b0, s32 b1)
 
void wlc_lcnphy_txpower_recalc_target (struct brcms_phy *pi)
 
void wlc_lcnphy_set_tx_pwr_ctrl (struct brcms_phy *pi, u16 mode)
 
void wlc_lcnphy_get_radio_loft (struct brcms_phy *pi, u8 *ei0, u8 *eq0, u8 *fi0, u8 *fq0)
 
void wlc_lcnphy_set_tx_iqcc (struct brcms_phy *pi, u16 a, u16 b)
 
void wlc_lcnphy_set_tx_locc (struct brcms_phy *pi, u16 didq)
 
void wlc_lcnphy_set_tx_pwr_by_index (struct brcms_phy *pi, int index)
 
void wlc_lcnphy_tx_pu (struct brcms_phy *pi, bool bEnable)
 
void wlc_lcnphy_deaf_mode (struct brcms_phy *pi, bool mode)
 
void wlc_lcnphy_start_tx_tone (struct brcms_phy *pi, s32 f_kHz, u16 max_val, bool iqcalmode)
 
void wlc_lcnphy_stop_tx_tone (struct brcms_phy *pi)
 
void wlc_lcnphy_get_tx_iqcc (struct brcms_phy *pi, u16 *a, u16 *b)
 
u16 wlc_lcnphy_get_tx_locc (struct brcms_phy *pi)
 
s16 wlc_lcnphy_tempsense_new (struct brcms_phy *pi, bool mode)
 
u16 wlc_lcnphy_tempsense (struct brcms_phy *pi, bool mode)
 
s8 wlc_lcnphy_tempsense_degree (struct brcms_phy *pi, bool mode)
 
s8 wlc_lcnphy_vbatsense (struct brcms_phy *pi, bool mode)
 
void wlc_lcnphy_calib_modes (struct brcms_phy *pi, uint mode)
 
void wlc_lcnphy_get_tssi (struct brcms_phy *pi, s8 *ofdm_pwr, s8 *cck_pwr)
 
void wlc_phy_cal_init_lcnphy (struct brcms_phy *pi)
 
void wlc_lcnphy_tx_power_adjustment (struct brcms_phy_pub *ppi)
 
void wlc_phy_init_lcnphy (struct brcms_phy *pi)
 
void wlc_2064_vco_cal (struct brcms_phy *pi)
 
bool wlc_phy_tpc_isenabled_lcnphy (struct brcms_phy *pi)
 
void wlc_phy_txpower_recalc_target_lcnphy (struct brcms_phy *pi)
 
void wlc_phy_detach_lcnphy (struct brcms_phy *pi)
 
bool wlc_phy_attach_lcnphy (struct brcms_phy *pi)
 
s32 wlc_lcnphy_rx_signal_power (struct brcms_phy *pi, s32 gain_index)
 

Macro Definition Documentation

#define AFE_CLK_INIT_MODE_PAPD   0

Definition at line 109 of file phy_lcn.c.

#define AFE_CLK_INIT_MODE_TXRX2X   1

Definition at line 108 of file phy_lcn.c.

#define FIXED_TXPWR   78

Definition at line 973 of file phy_lcn.c.

#define LCN_BW_LMT   200

Definition at line 72 of file phy_lcn.c.

#define LCN_CUR_DIV   2640

Definition at line 78 of file phy_lcn.c.

#define LCN_CUR_LMT   1250

Definition at line 73 of file phy_lcn.c.

#define LCN_FACT   490

Definition at line 77 of file phy_lcn.c.

#define LCN_MULT   1

Definition at line 74 of file phy_lcn.c.

#define LCN_OFFSET   680

Definition at line 76 of file phy_lcn.c.

#define LCN_TARGET_PWR   60

Definition at line 61 of file phy_lcn.c.

#define LCN_TEMPSENSE_DEN   2647

Definition at line 70 of file phy_lcn.c.

#define LCN_TEMPSENSE_OFFSET   80812

Definition at line 69 of file phy_lcn.c.

#define LCN_VBAT_OFFSET_433X   34649679

Definition at line 63 of file phy_lcn.c.

#define LCN_VBAT_SCALE_DEN   432

Definition at line 67 of file phy_lcn.c.

#define LCN_VBAT_SCALE_NOM   53

Definition at line 66 of file phy_lcn.c.

#define LCN_VBAT_SLOPE_433X   8258032

Definition at line 64 of file phy_lcn.c.

#define LCN_VCO_DIV   30

Definition at line 75 of file phy_lcn.c.

#define LCNPHY_ACI_CRSHIFRMLO_TRSH   100

Definition at line 139 of file phy_lcn.c.

#define LCNPHY_ACI_DETECT_PROGRESS   2

Definition at line 136 of file phy_lcn.c.

#define LCNPHY_ACI_DETECT_START   1

Definition at line 135 of file phy_lcn.c.

#define LCNPHY_ACI_DETECT_STOP   3

Definition at line 137 of file phy_lcn.c.

#define LCNPHY_ACI_DETECT_TIMEOUT   2

Definition at line 142 of file phy_lcn.c.

#define LCNPHY_ACI_GLITCH_TRSH   2000

Definition at line 140 of file phy_lcn.c.

#define LCNPHY_ACI_START_DELAY   0

Definition at line 143 of file phy_lcn.c.

#define LCNPHY_ACI_TMOUT   250

Definition at line 141 of file phy_lcn.c.

#define LCNPHY_IQLOCC_READ (   val)    ((u8)(-(s8)(((val) & 0xf0) >> 4) + (s8)((val) & 0x0f)))

Definition at line 970 of file phy_lcn.c.

#define LCNPHY_MIN_RXIQ_PWR   2
#define LCNPHY_NOISE_SAMPLES_DEFAULT   5000

Definition at line 133 of file phy_lcn.c.

#define LCNPHY_NUM_DIG_FILT_COEFFS   16

Definition at line 886 of file phy_lcn.c.

#define LCNPHY_NUM_TX_DIG_FILTERS_CCK   13

Definition at line 887 of file phy_lcn.c.

#define LCNPHY_NUM_TX_DIG_FILTERS_OFDM   3

Definition at line 919 of file phy_lcn.c.

#define LCNPHY_stxtxgainctrlovrval1_pagain_ovr_val1_MASK   (0x7f << LCNPHY_stxtxgainctrlovrval1_pagain_ovr_val1_SHIFT)

Definition at line 87 of file phy_lcn.c.

#define LCNPHY_stxtxgainctrlovrval1_pagain_ovr_val1_SHIFT   (0 + 8)

Definition at line 85 of file phy_lcn.c.

#define LCNPHY_TBL_ID_GAIN_IDX   0x0d

Definition at line 114 of file phy_lcn.c.

#define LCNPHY_TBL_ID_GAIN_TBL   0x12

Definition at line 116 of file phy_lcn.c.

#define LCNPHY_TBL_ID_IQLOCAL   0x00

Definition at line 111 of file phy_lcn.c.

#define LCNPHY_TBL_ID_RFSEQ   0x08

Definition at line 113 of file phy_lcn.c.

#define LCNPHY_TBL_ID_SAMPLEPLAY   0x15

Definition at line 118 of file phy_lcn.c.

#define LCNPHY_TBL_ID_SAMPLEPLAY1   0x16

Definition at line 119 of file phy_lcn.c.

#define LCNPHY_TBL_ID_SPUR   0x14

Definition at line 117 of file phy_lcn.c.

#define LCNPHY_TBL_ID_SW_CTRL   0x0f

Definition at line 115 of file phy_lcn.c.

#define LCNPHY_TEMPSENSE (   val)    ((s16)((val > 255) ? (val - 512) : val))

Definition at line 974 of file phy_lcn.c.

#define LCNPHY_TX_PWR_CTRL_GAIN_OFFSET   192

Definition at line 123 of file phy_lcn.c.

#define LCNPHY_TX_PWR_CTRL_IQ_OFFSET   320

Definition at line 124 of file phy_lcn.c.

#define LCNPHY_TX_PWR_CTRL_LO_OFFSET   448

Definition at line 125 of file phy_lcn.c.

#define LCNPHY_TX_PWR_CTRL_MAC_OFFSET   128

Definition at line 122 of file phy_lcn.c.

#define LCNPHY_TX_PWR_CTRL_MAX_NPT   7

Definition at line 131 of file phy_lcn.c.

#define LCNPHY_TX_PWR_CTRL_PWR_OFFSET   576

Definition at line 126 of file phy_lcn.c.

#define LCNPHY_TX_PWR_CTRL_RATE_OFFSET   832

Definition at line 121 of file phy_lcn.c.

#define LCNPHY_TX_PWR_CTRL_START_INDEX_2G_4313   140

Definition at line 128 of file phy_lcn.c.

#define LCNPHY_TX_PWR_CTRL_START_NPT   1

Definition at line 130 of file phy_lcn.c.

#define LCNPHY_txgainctrlovrval1_pagain_ovr_val1_MASK   (0x7f << LCNPHY_txgainctrlovrval1_pagain_ovr_val1_SHIFT)

Definition at line 82 of file phy_lcn.c.

#define LCNPHY_txgainctrlovrval1_pagain_ovr_val1_SHIFT   (0 + 8)

Definition at line 80 of file phy_lcn.c.

#define NOISE_IF_CHK   1

Definition at line 52 of file phy_lcn.c.

#define NOISE_IF_OFF   0

Definition at line 51 of file phy_lcn.c.

#define NOISE_IF_ON   2

Definition at line 53 of file phy_lcn.c.

#define NOISE_IF_UPD_CHK_INTERVAL   1

Definition at line 46 of file phy_lcn.c.

#define NOISE_IF_UPD_RST_INTERVAL   60

Definition at line 47 of file phy_lcn.c.

#define NOISE_IF_UPD_THRESHOLD_CNT   1

Definition at line 48 of file phy_lcn.c.

#define NOISE_IF_UPD_TIMEOUT   1000

Definition at line 50 of file phy_lcn.c.

#define NOISE_IF_UPD_TRHRESHOLD   50

Definition at line 49 of file phy_lcn.c.

#define PAPD2LUT   0

Definition at line 56 of file phy_lcn.c.

#define PAPD_BLANKING_PROFILE   3

Definition at line 55 of file phy_lcn.c.

#define PAPD_BLANKING_THRESHOLD   0

Definition at line 58 of file phy_lcn.c.

#define PAPD_CORR_NORM   0

Definition at line 57 of file phy_lcn.c.

#define PAPD_STOP_AFTER_LAST_UPDATE   0

Definition at line 59 of file phy_lcn.c.

#define PLL_2064_CAL_REF_TO   8

Definition at line 39 of file phy_lcn.c.

#define PLL_2064_D30   8000

Definition at line 38 of file phy_lcn.c.

#define PLL_2064_D30_DOUBLER   10500

Definition at line 36 of file phy_lcn.c.

#define PLL_2064_HIGH_END_KVCO   68

Definition at line 34 of file phy_lcn.c.

#define PLL_2064_HIGH_END_VCO   4200

Definition at line 33 of file phy_lcn.c.

#define PLL_2064_LOOP_BW   260

Definition at line 37 of file phy_lcn.c.

#define PLL_2064_LOOP_BW_DOUBLER   200

Definition at line 35 of file phy_lcn.c.

#define PLL_2064_LOW_END_KVCO   27

Definition at line 32 of file phy_lcn.c.

#define PLL_2064_LOW_END_VCO   3000

Definition at line 31 of file phy_lcn.c.

#define PLL_2064_MHZ   1000000

Definition at line 40 of file phy_lcn.c.

#define PLL_2064_NDIV   90

Definition at line 30 of file phy_lcn.c.

#define PLL_2064_OPEN_LOOP_DELAY   5

Definition at line 41 of file phy_lcn.c.

#define SWCTRL_BT_TX   0x18

Definition at line 105 of file phy_lcn.c.

#define SWCTRL_OVR_DISABLE   0x40

Definition at line 106 of file phy_lcn.c.

#define TEMPSENSE   1

Definition at line 43 of file phy_lcn.c.

#define tempsense_done (   pi)    (0x8000 == (read_phy_reg(pi, 0x476) & 0x8000))

Definition at line 967 of file phy_lcn.c.

#define txpwrctrl_off (   pi)    (0x7 != ((read_phy_reg(pi, 0x4a4) & 0xE000) >> 13))

Definition at line 99 of file phy_lcn.c.

#define VBATSENSE   2

Definition at line 44 of file phy_lcn.c.

#define wlc_lcnphy_disable_tx_gain_override (   pi)    wlc_lcnphy_set_tx_gain_override(pi, false)

Definition at line 92 of file phy_lcn.c.

#define wlc_lcnphy_enable_tx_gain_override (   pi)    wlc_lcnphy_set_tx_gain_override(pi, true)

Definition at line 90 of file phy_lcn.c.

#define wlc_lcnphy_get_current_tx_pwr_idx_if_pwrctrl_on (   pi)    (read_phy_reg(pi, 0x473) & 0x1ff)

Definition at line 951 of file phy_lcn.c.

#define wlc_lcnphy_get_target_tx_pwr (   pi)
Value:
((read_phy_reg(pi, 0x4a7) & \
(0xff << 0)) >> \
0)

Definition at line 954 of file phy_lcn.c.

#define wlc_lcnphy_get_tx_pwr_ctrl (   pi)
Value:
(read_phy_reg((pi), 0x4a4) & \
((0x1 << 15) | \
(0x1 << 14) | \
(0x1 << 13)))

Definition at line 940 of file phy_lcn.c.

#define wlc_lcnphy_get_tx_pwr_npt (   pi)
Value:
((read_phy_reg(pi, 0x4a5) & \
(0x7 << 8)) >> \
8)

Definition at line 946 of file phy_lcn.c.

#define wlc_lcnphy_iqcal_active (   pi)
Value:
(read_phy_reg((pi), 0x451) & \
((0x1 << 15) | (0x1 << 14)))

Definition at line 95 of file phy_lcn.c.

#define wlc_lcnphy_set_start_tx_pwr_idx (   pi,
  idx 
)
Value:
mod_phy_reg(pi, 0x4a4, \
(0x1ff << 0), \
(u16)(idx) << 0)

Definition at line 930 of file phy_lcn.c.

#define wlc_lcnphy_set_target_tx_pwr (   pi,
  target 
)
Value:
mod_phy_reg(pi, 0x4a7, \
(0xff << 0), \
(u16)(target) << 0)

Definition at line 959 of file phy_lcn.c.

#define wlc_lcnphy_set_tx_pwr_npt (   pi,
  npt 
)
Value:
mod_phy_reg(pi, 0x4a5, \
(0x7 << 8), \
(u16)(npt) << 8)

Definition at line 935 of file phy_lcn.c.

#define wlc_lcnphy_tempsense_based_pwr_ctrl_enabled (   pi)    (pi->temppwrctrl_capable)

Definition at line 100 of file phy_lcn.c.

#define wlc_lcnphy_total_tx_frames (   pi)
Value:
wlapi_bmac_read_shm((pi)->sh->physhim, M_UCODE_MACSTAT + \
offsetof(struct macstat, txallfrm))

Definition at line 148 of file phy_lcn.c.

#define wlc_lcnphy_tssi_based_pwr_ctrl_enabled (   pi)    (pi->hwpwrctrl_capable)

Definition at line 102 of file phy_lcn.c.

#define wlc_lcnphy_tx_gain_override_enabled (   pi)    (0 != (read_phy_reg((pi), 0x43b) & (0x1 << 6)))

Definition at line 145 of file phy_lcn.c.

#define wlc_radio_2064_rcal_done (   pi)    (0 != (read_radio_reg(pi, RADIO_2064_REG05C) & 0x20))

Definition at line 964 of file phy_lcn.c.

Typedef Documentation

typedef u16 iqcal_gain_params_lcnphy[9]

Definition at line 199 of file phy_lcn.c.

Enumeration Type Documentation

Enumerator:
LCNPHY_CAL_FULL 
LCNPHY_CAL_RECAL 
LCNPHY_CAL_CURRECAL 
LCNPHY_CAL_DIGCAL 
LCNPHY_CAL_GCTRL 

Definition at line 159 of file phy_lcn.c.

Enumerator:
LCNPHY_PAPD_CAL_CW 
LCNPHY_PAPD_CAL_OFDM 

Definition at line 194 of file phy_lcn.c.

Enumerator:
LCNPHY_TSSI_PRE_PA 
LCNPHY_TSSI_POST_PA 
LCNPHY_TSSI_EXT 

Definition at line 1975 of file phy_lcn.c.

Function Documentation

void wlc_2064_vco_cal ( struct brcms_phy pi)

Definition at line 4912 of file phy_lcn.c.

void wlc_lcnphy_calib_modes ( struct brcms_phy pi,
uint  mode 
)

Definition at line 4218 of file phy_lcn.c.

void wlc_lcnphy_crsuprs ( struct brcms_phy pi,
int  channel 
)

Definition at line 1512 of file phy_lcn.c.

void wlc_lcnphy_deaf_mode ( struct brcms_phy pi,
bool  mode 
)

Definition at line 3323 of file phy_lcn.c.

s8 wlc_lcnphy_get_current_tx_pwr_idx ( struct brcms_phy pi)

Definition at line 1497 of file phy_lcn.c.

void wlc_lcnphy_get_radio_loft ( struct brcms_phy pi,
u8 ei0,
u8 eq0,
u8 fi0,
u8 fq0 
)

Definition at line 3104 of file phy_lcn.c.

void wlc_lcnphy_get_tssi ( struct brcms_phy pi,
s8 ofdm_pwr,
s8 cck_pwr 
)

Definition at line 4257 of file phy_lcn.c.

void wlc_lcnphy_get_tx_iqcc ( struct brcms_phy pi,
u16 a,
u16 b 
)

Definition at line 3800 of file phy_lcn.c.

u16 wlc_lcnphy_get_tx_locc ( struct brcms_phy pi)

Definition at line 3838 of file phy_lcn.c.

void wlc_lcnphy_read_table ( struct brcms_phy pi,
struct phytbl_info pti 
)

Definition at line 981 of file phy_lcn.c.

s32 wlc_lcnphy_rx_signal_power ( struct brcms_phy pi,
s32  gain_index 
)

Definition at line 5068 of file phy_lcn.c.

void wlc_lcnphy_set_tx_iqcc ( struct brcms_phy pi,
u16  a,
u16  b 
)

Definition at line 3113 of file phy_lcn.c.

void wlc_lcnphy_set_tx_locc ( struct brcms_phy pi,
u16  didq 
)

Definition at line 3129 of file phy_lcn.c.

void wlc_lcnphy_set_tx_pwr_by_index ( struct brcms_phy pi,
int  index 
)

Definition at line 3141 of file phy_lcn.c.

void wlc_lcnphy_set_tx_pwr_ctrl ( struct brcms_phy pi,
u16  mode 
)

Definition at line 2396 of file phy_lcn.c.

void wlc_lcnphy_start_tx_tone ( struct brcms_phy pi,
s32  f_kHz,
u16  max_val,
bool  iqcalmode 
)

Definition at line 3349 of file phy_lcn.c.

void wlc_lcnphy_stop_tx_tone ( struct brcms_phy pi)

Definition at line 3412 of file phy_lcn.c.

u16 wlc_lcnphy_tempsense ( struct brcms_phy pi,
bool  mode 
)

Definition at line 4006 of file phy_lcn.c.

s8 wlc_lcnphy_tempsense_degree ( struct brcms_phy pi,
bool  mode 
)

Definition at line 4064 of file phy_lcn.c.

s16 wlc_lcnphy_tempsense_new ( struct brcms_phy pi,
bool  mode 
)

Definition at line 3964 of file phy_lcn.c.

s32 wlc_lcnphy_tssi2dbm ( s32  tssi,
s32  a1,
s32  b0,
s32  b1 
)

Definition at line 2218 of file phy_lcn.c.

void wlc_lcnphy_tx_power_adjustment ( struct brcms_phy_pub ppi)

Definition at line 4285 of file phy_lcn.c.

void wlc_lcnphy_tx_pu ( struct brcms_phy pi,
bool  bEnable 
)

Definition at line 3219 of file phy_lcn.c.

void wlc_lcnphy_tx_pwr_update_npt ( struct brcms_phy pi)

Definition at line 2199 of file phy_lcn.c.

void wlc_lcnphy_txpower_recalc_target ( struct brcms_phy pi)

Definition at line 2239 of file phy_lcn.c.

s8 wlc_lcnphy_vbatsense ( struct brcms_phy pi,
bool  mode 
)

Definition at line 4074 of file phy_lcn.c.

void wlc_lcnphy_write_table ( struct brcms_phy pi,
const struct phytbl_info pti 
)

Definition at line 976 of file phy_lcn.c.

bool wlc_phy_attach_lcnphy ( struct brcms_phy pi)

Definition at line 4954 of file phy_lcn.c.

void wlc_phy_cal_init_lcnphy ( struct brcms_phy pi)

Definition at line 4279 of file phy_lcn.c.

void wlc_phy_chanspec_set_lcnphy ( struct brcms_phy pi,
u16  chanspec 
)

Definition at line 1863 of file phy_lcn.c.

void wlc_phy_detach_lcnphy ( struct brcms_phy pi)

Definition at line 4949 of file phy_lcn.c.

void wlc_phy_init_lcnphy ( struct brcms_phy pi)

Definition at line 4766 of file phy_lcn.c.

bool wlc_phy_tpc_isenabled_lcnphy ( struct brcms_phy pi)

Definition at line 4927 of file phy_lcn.c.

void wlc_phy_txpower_recalc_target_lcnphy ( struct brcms_phy pi)

Definition at line 4936 of file phy_lcn.c.