phy_lcn.h 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. /*
  2. * Copyright (c) 2010 Broadcom Corporation
  3. *
  4. * Permission to use, copy, modify, and/or distribute this software for any
  5. * purpose with or without fee is hereby granted, provided that the above
  6. * copyright notice and this permission notice appear in all copies.
  7. *
  8. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
  9. * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
  10. * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
  11. * SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  12. * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
  13. * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
  14. * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  15. */
  16. #ifndef _BRCM_PHY_LCN_H_
  17. #define _BRCM_PHY_LCN_H_
  18. #include <types.h>
  19. struct brcms_phy_lcnphy {
  20. int lcnphy_txrf_sp_9_override;
  21. u8 lcnphy_full_cal_channel;
  22. u8 lcnphy_cal_counter;
  23. u16 lcnphy_cal_temper;
  24. bool lcnphy_recal;
  25. u8 lcnphy_rc_cap;
  26. u32 lcnphy_mcs20_po;
  27. u8 lcnphy_tr_isolation_mid;
  28. u8 lcnphy_tr_isolation_low;
  29. u8 lcnphy_tr_isolation_hi;
  30. u8 lcnphy_bx_arch;
  31. u8 lcnphy_rx_power_offset;
  32. u8 lcnphy_rssi_vf;
  33. u8 lcnphy_rssi_vc;
  34. u8 lcnphy_rssi_gs;
  35. u8 lcnphy_tssi_val;
  36. u8 lcnphy_rssi_vf_lowtemp;
  37. u8 lcnphy_rssi_vc_lowtemp;
  38. u8 lcnphy_rssi_gs_lowtemp;
  39. u8 lcnphy_rssi_vf_hightemp;
  40. u8 lcnphy_rssi_vc_hightemp;
  41. u8 lcnphy_rssi_gs_hightemp;
  42. s16 lcnphy_pa0b0;
  43. s16 lcnphy_pa0b1;
  44. s16 lcnphy_pa0b2;
  45. u16 lcnphy_rawtempsense;
  46. u8 lcnphy_measPower;
  47. u8 lcnphy_tempsense_slope;
  48. u8 lcnphy_freqoffset_corr;
  49. u8 lcnphy_tempsense_option;
  50. u8 lcnphy_tempcorrx;
  51. bool lcnphy_iqcal_swp_dis;
  52. bool lcnphy_hw_iqcal_en;
  53. uint lcnphy_bandedge_corr;
  54. bool lcnphy_spurmod;
  55. u16 lcnphy_tssi_tx_cnt;
  56. u16 lcnphy_tssi_idx;
  57. u16 lcnphy_tssi_npt;
  58. u16 lcnphy_target_tx_freq;
  59. s8 lcnphy_tx_power_idx_override;
  60. u16 lcnphy_noise_samples;
  61. u32 lcnphy_papdRxGnIdx;
  62. u32 lcnphy_papd_rxGnCtrl_init;
  63. u32 lcnphy_gain_idx_14_lowword;
  64. u32 lcnphy_gain_idx_14_hiword;
  65. u32 lcnphy_gain_idx_27_lowword;
  66. u32 lcnphy_gain_idx_27_hiword;
  67. s16 lcnphy_ofdmgainidxtableoffset;
  68. s16 lcnphy_dsssgainidxtableoffset;
  69. u32 lcnphy_tr_R_gain_val;
  70. u32 lcnphy_tr_T_gain_val;
  71. s8 lcnphy_input_pwr_offset_db;
  72. u16 lcnphy_Med_Low_Gain_db;
  73. u16 lcnphy_Very_Low_Gain_db;
  74. s8 lcnphy_lastsensed_temperature;
  75. s8 lcnphy_pkteng_rssi_slope;
  76. u8 lcnphy_saved_tx_user_target[TXP_NUM_RATES];
  77. u8 lcnphy_volt_winner;
  78. u8 lcnphy_volt_low;
  79. u8 lcnphy_54_48_36_24mbps_backoff;
  80. u8 lcnphy_11n_backoff;
  81. u8 lcnphy_lowerofdm;
  82. u8 lcnphy_cck;
  83. u8 lcnphy_psat_2pt3_detected;
  84. s32 lcnphy_lowest_Re_div_Im;
  85. s8 lcnphy_final_papd_cal_idx;
  86. u16 lcnphy_extstxctrl4;
  87. u16 lcnphy_extstxctrl0;
  88. u16 lcnphy_extstxctrl1;
  89. s16 lcnphy_cck_dig_filt_type;
  90. s16 lcnphy_ofdm_dig_filt_type;
  91. struct lcnphy_cal_results lcnphy_cal_results;
  92. u8 lcnphy_psat_pwr;
  93. u8 lcnphy_psat_indx;
  94. s32 lcnphy_min_phase;
  95. u8 lcnphy_final_idx;
  96. u8 lcnphy_start_idx;
  97. u8 lcnphy_current_index;
  98. u16 lcnphy_logen_buf_1;
  99. u16 lcnphy_local_ovr_2;
  100. u16 lcnphy_local_oval_6;
  101. u16 lcnphy_local_oval_5;
  102. u16 lcnphy_logen_mixer_1;
  103. u8 lcnphy_aci_stat;
  104. uint lcnphy_aci_start_time;
  105. s8 lcnphy_tx_power_offset[TXP_NUM_RATES];
  106. };
  107. #endif /* _BRCM_PHY_LCN_H_ */