Henry Ptasinski | a9533e7 | 2010-09-08 21:04:42 -0700 | [diff] [blame] | 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 | |
| 17 | #ifndef _wlc_phy_h_ |
| 18 | #define _wlc_phy_h_ |
| 19 | |
Henry Ptasinski | a9533e7 | 2010-09-08 21:04:42 -0700 | [diff] [blame] | 20 | #include <wlioctl.h> |
| 21 | #include <siutils.h> |
| 22 | #include <d11.h> |
| 23 | #include <wlc_phy_shim.h> |
| 24 | |
| 25 | #define IDCODE_VER_MASK 0x0000000f |
| 26 | #define IDCODE_VER_SHIFT 0 |
| 27 | #define IDCODE_MFG_MASK 0x00000fff |
| 28 | #define IDCODE_MFG_SHIFT 0 |
| 29 | #define IDCODE_ID_MASK 0x0ffff000 |
| 30 | #define IDCODE_ID_SHIFT 12 |
| 31 | #define IDCODE_REV_MASK 0xf0000000 |
| 32 | #define IDCODE_REV_SHIFT 28 |
| 33 | |
| 34 | #define NORADIO_ID 0xe4f5 |
| 35 | #define NORADIO_IDCODE 0x4e4f5246 |
| 36 | |
| 37 | #define BCM2055_ID 0x2055 |
| 38 | #define BCM2055_IDCODE 0x02055000 |
| 39 | #define BCM2055A0_IDCODE 0x1205517f |
| 40 | |
| 41 | #define BCM2056_ID 0x2056 |
| 42 | #define BCM2056_IDCODE 0x02056000 |
| 43 | #define BCM2056A0_IDCODE 0x1205617f |
| 44 | |
| 45 | #define BCM2057_ID 0x2057 |
| 46 | #define BCM2057_IDCODE 0x02057000 |
| 47 | #define BCM2057A0_IDCODE 0x1205717f |
| 48 | |
| 49 | #define BCM2064_ID 0x2064 |
| 50 | #define BCM2064_IDCODE 0x02064000 |
| 51 | #define BCM2064A0_IDCODE 0x0206417f |
| 52 | |
Greg Kroah-Hartman | 0965ae8 | 2010-10-12 12:50:15 -0700 | [diff] [blame] | 53 | #define PHY_TPC_HW_OFF false |
Greg Kroah-Hartman | 0f0881b | 2010-10-12 12:15:18 -0700 | [diff] [blame] | 54 | #define PHY_TPC_HW_ON true |
Henry Ptasinski | a9533e7 | 2010-09-08 21:04:42 -0700 | [diff] [blame] | 55 | |
| 56 | #define PHY_PERICAL_DRIVERUP 1 |
| 57 | #define PHY_PERICAL_WATCHDOG 2 |
| 58 | #define PHY_PERICAL_PHYINIT 3 |
| 59 | #define PHY_PERICAL_JOIN_BSS 4 |
| 60 | #define PHY_PERICAL_START_IBSS 5 |
| 61 | #define PHY_PERICAL_UP_BSS 6 |
| 62 | #define PHY_PERICAL_CHAN 7 |
| 63 | #define PHY_FULLCAL 8 |
| 64 | |
| 65 | #define PHY_PERICAL_DISABLE 0 |
| 66 | #define PHY_PERICAL_SPHASE 1 |
| 67 | #define PHY_PERICAL_MPHASE 2 |
| 68 | #define PHY_PERICAL_MANUAL 3 |
| 69 | |
| 70 | #define PHY_HOLD_FOR_ASSOC 1 |
| 71 | #define PHY_HOLD_FOR_SCAN 2 |
| 72 | #define PHY_HOLD_FOR_RM 4 |
| 73 | #define PHY_HOLD_FOR_PLT 8 |
| 74 | #define PHY_HOLD_FOR_MUTE 16 |
| 75 | #define PHY_HOLD_FOR_NOT_ASSOC 0x20 |
| 76 | |
| 77 | #define PHY_MUTE_FOR_PREISM 1 |
| 78 | #define PHY_MUTE_ALL 0xffffffff |
| 79 | |
| 80 | #define PHY_NOISE_FIXED_VAL (-95) |
| 81 | #define PHY_NOISE_FIXED_VAL_NPHY (-92) |
| 82 | #define PHY_NOISE_FIXED_VAL_LCNPHY (-92) |
| 83 | |
| 84 | #define PHY_MODE_CAL 0x0002 |
| 85 | #define PHY_MODE_NOISEM 0x0004 |
| 86 | |
| 87 | #define WLC_TXPWR_DB_FACTOR 4 |
| 88 | |
| 89 | #define WLC_NUM_RATES_CCK 4 |
| 90 | #define WLC_NUM_RATES_OFDM 8 |
| 91 | #define WLC_NUM_RATES_MCS_1_STREAM 8 |
| 92 | #define WLC_NUM_RATES_MCS_2_STREAM 8 |
| 93 | #define WLC_NUM_RATES_MCS_3_STREAM 8 |
| 94 | #define WLC_NUM_RATES_MCS_4_STREAM 8 |
| 95 | typedef struct txpwr_limits { |
Greg Kroah-Hartman | e868ab0 | 2010-10-05 10:14:26 -0700 | [diff] [blame] | 96 | u8 cck[WLC_NUM_RATES_CCK]; |
| 97 | u8 ofdm[WLC_NUM_RATES_OFDM]; |
Henry Ptasinski | a9533e7 | 2010-09-08 21:04:42 -0700 | [diff] [blame] | 98 | |
Greg Kroah-Hartman | e868ab0 | 2010-10-05 10:14:26 -0700 | [diff] [blame] | 99 | u8 ofdm_cdd[WLC_NUM_RATES_OFDM]; |
Henry Ptasinski | a9533e7 | 2010-09-08 21:04:42 -0700 | [diff] [blame] | 100 | |
Greg Kroah-Hartman | e868ab0 | 2010-10-05 10:14:26 -0700 | [diff] [blame] | 101 | u8 ofdm_40_siso[WLC_NUM_RATES_OFDM]; |
| 102 | u8 ofdm_40_cdd[WLC_NUM_RATES_OFDM]; |
Henry Ptasinski | a9533e7 | 2010-09-08 21:04:42 -0700 | [diff] [blame] | 103 | |
Greg Kroah-Hartman | e868ab0 | 2010-10-05 10:14:26 -0700 | [diff] [blame] | 104 | u8 mcs_20_siso[WLC_NUM_RATES_MCS_1_STREAM]; |
| 105 | u8 mcs_20_cdd[WLC_NUM_RATES_MCS_1_STREAM]; |
| 106 | u8 mcs_20_stbc[WLC_NUM_RATES_MCS_1_STREAM]; |
| 107 | u8 mcs_20_mimo[WLC_NUM_RATES_MCS_2_STREAM]; |
Henry Ptasinski | a9533e7 | 2010-09-08 21:04:42 -0700 | [diff] [blame] | 108 | |
Greg Kroah-Hartman | e868ab0 | 2010-10-05 10:14:26 -0700 | [diff] [blame] | 109 | u8 mcs_40_siso[WLC_NUM_RATES_MCS_1_STREAM]; |
| 110 | u8 mcs_40_cdd[WLC_NUM_RATES_MCS_1_STREAM]; |
| 111 | u8 mcs_40_stbc[WLC_NUM_RATES_MCS_1_STREAM]; |
| 112 | u8 mcs_40_mimo[WLC_NUM_RATES_MCS_2_STREAM]; |
| 113 | u8 mcs32; |
Henry Ptasinski | a9533e7 | 2010-09-08 21:04:42 -0700 | [diff] [blame] | 114 | } txpwr_limits_t; |
| 115 | |
| 116 | typedef struct { |
Greg Kroah-Hartman | e868ab0 | 2010-10-05 10:14:26 -0700 | [diff] [blame] | 117 | u8 vec[MAXCHANNEL / NBBY]; |
Henry Ptasinski | a9533e7 | 2010-09-08 21:04:42 -0700 | [diff] [blame] | 118 | } chanvec_t; |
| 119 | |
| 120 | struct rpc_info; |
| 121 | typedef struct shared_phy shared_phy_t; |
| 122 | |
| 123 | struct phy_pub; |
| 124 | |
| 125 | #ifdef WLC_HIGH_ONLY |
| 126 | typedef struct wlc_rpc_phy wlc_phy_t; |
| 127 | #else |
| 128 | typedef struct phy_pub wlc_phy_t; |
| 129 | #endif |
| 130 | |
| 131 | typedef struct shared_phy_params { |
| 132 | void *osh; |
| 133 | si_t *sih; |
| 134 | void *physhim; |
| 135 | uint unit; |
| 136 | uint corerev; |
| 137 | uint bustype; |
| 138 | uint buscorerev; |
| 139 | char *vars; |
Greg Kroah-Hartman | 7d4df48 | 2010-10-07 17:04:47 -0700 | [diff] [blame] | 140 | u16 vid; |
| 141 | u16 did; |
Henry Ptasinski | a9533e7 | 2010-09-08 21:04:42 -0700 | [diff] [blame] | 142 | uint chip; |
| 143 | uint chiprev; |
| 144 | uint chippkg; |
| 145 | uint sromrev; |
| 146 | uint boardtype; |
| 147 | uint boardrev; |
| 148 | uint boardvendor; |
Greg Kroah-Hartman | 66cbd3a | 2010-10-08 11:05:47 -0700 | [diff] [blame] | 149 | u32 boardflags; |
| 150 | u32 boardflags2; |
Henry Ptasinski | a9533e7 | 2010-09-08 21:04:42 -0700 | [diff] [blame] | 151 | } shared_phy_params_t; |
| 152 | |
| 153 | #ifdef WLC_LOW |
| 154 | |
Jason Cooper | 7cc4a4c | 2010-09-14 09:45:30 -0400 | [diff] [blame] | 155 | extern shared_phy_t *wlc_phy_shared_attach(shared_phy_params_t *shp); |
| 156 | extern void wlc_phy_shared_detach(shared_phy_t *phy_sh); |
| 157 | extern wlc_phy_t *wlc_phy_attach(shared_phy_t *sh, void *regs, int bandtype, |
Henry Ptasinski | a9533e7 | 2010-09-08 21:04:42 -0700 | [diff] [blame] | 158 | char *vars); |
Jason Cooper | 7cc4a4c | 2010-09-14 09:45:30 -0400 | [diff] [blame] | 159 | extern void wlc_phy_detach(wlc_phy_t *ppi); |
Henry Ptasinski | a9533e7 | 2010-09-08 21:04:42 -0700 | [diff] [blame] | 160 | |
Greg Kroah-Hartman | 7d4df48 | 2010-10-07 17:04:47 -0700 | [diff] [blame] | 161 | extern bool wlc_phy_get_phyversion(wlc_phy_t *pih, u16 *phytype, |
| 162 | u16 *phyrev, u16 *radioid, |
| 163 | u16 *radiover); |
Jason Cooper | 7cc4a4c | 2010-09-14 09:45:30 -0400 | [diff] [blame] | 164 | extern bool wlc_phy_get_encore(wlc_phy_t *pih); |
Greg Kroah-Hartman | 66cbd3a | 2010-10-08 11:05:47 -0700 | [diff] [blame] | 165 | extern u32 wlc_phy_get_coreflags(wlc_phy_t *pih); |
Henry Ptasinski | a9533e7 | 2010-09-08 21:04:42 -0700 | [diff] [blame] | 166 | |
Jason Cooper | 7cc4a4c | 2010-09-14 09:45:30 -0400 | [diff] [blame] | 167 | extern void wlc_phy_hw_clk_state_upd(wlc_phy_t *ppi, bool newstate); |
| 168 | extern void wlc_phy_hw_state_upd(wlc_phy_t *ppi, bool newstate); |
| 169 | extern void wlc_phy_init(wlc_phy_t *ppi, chanspec_t chanspec); |
| 170 | extern void wlc_phy_watchdog(wlc_phy_t *ppi); |
| 171 | extern int wlc_phy_down(wlc_phy_t *ppi); |
Greg Kroah-Hartman | 66cbd3a | 2010-10-08 11:05:47 -0700 | [diff] [blame] | 172 | extern u32 wlc_phy_clk_bwbits(wlc_phy_t *pih); |
Jason Cooper | 7cc4a4c | 2010-09-14 09:45:30 -0400 | [diff] [blame] | 173 | extern void wlc_phy_cal_init(wlc_phy_t *ppi); |
| 174 | extern void wlc_phy_antsel_init(wlc_phy_t *ppi, bool lut_init); |
Henry Ptasinski | a9533e7 | 2010-09-08 21:04:42 -0700 | [diff] [blame] | 175 | |
Jason Cooper | 7cc4a4c | 2010-09-14 09:45:30 -0400 | [diff] [blame] | 176 | extern void wlc_phy_chanspec_set(wlc_phy_t *ppi, chanspec_t chanspec); |
| 177 | extern chanspec_t wlc_phy_chanspec_get(wlc_phy_t *ppi); |
| 178 | extern void wlc_phy_chanspec_radio_set(wlc_phy_t *ppi, chanspec_t newch); |
Greg Kroah-Hartman | 7d4df48 | 2010-10-07 17:04:47 -0700 | [diff] [blame] | 179 | extern u16 wlc_phy_bw_state_get(wlc_phy_t *ppi); |
| 180 | extern void wlc_phy_bw_state_set(wlc_phy_t *ppi, u16 bw); |
Henry Ptasinski | a9533e7 | 2010-09-08 21:04:42 -0700 | [diff] [blame] | 181 | |
Jason Cooper | 7cc4a4c | 2010-09-14 09:45:30 -0400 | [diff] [blame] | 182 | extern void wlc_phy_rssi_compute(wlc_phy_t *pih, void *ctx); |
| 183 | extern void wlc_phy_por_inform(wlc_phy_t *ppi); |
| 184 | extern void wlc_phy_noise_sample_intr(wlc_phy_t *ppi); |
| 185 | extern bool wlc_phy_bist_check_phy(wlc_phy_t *ppi); |
Henry Ptasinski | a9533e7 | 2010-09-08 21:04:42 -0700 | [diff] [blame] | 186 | |
Jason Cooper | 7cc4a4c | 2010-09-14 09:45:30 -0400 | [diff] [blame] | 187 | extern void wlc_phy_set_deaf(wlc_phy_t *ppi, bool user_flag); |
Henry Ptasinski | a9533e7 | 2010-09-08 21:04:42 -0700 | [diff] [blame] | 188 | |
Jason Cooper | 7cc4a4c | 2010-09-14 09:45:30 -0400 | [diff] [blame] | 189 | extern void wlc_phy_switch_radio(wlc_phy_t *ppi, bool on); |
| 190 | extern void wlc_phy_anacore(wlc_phy_t *ppi, bool on); |
Henry Ptasinski | a9533e7 | 2010-09-08 21:04:42 -0700 | [diff] [blame] | 191 | |
| 192 | #endif /* WLC_LOW */ |
| 193 | |
Jason Cooper | 7cc4a4c | 2010-09-14 09:45:30 -0400 | [diff] [blame] | 194 | extern void wlc_phy_BSSinit(wlc_phy_t *ppi, bool bonlyap, int rssi); |
Henry Ptasinski | a9533e7 | 2010-09-08 21:04:42 -0700 | [diff] [blame] | 195 | |
Jason Cooper | 7cc4a4c | 2010-09-14 09:45:30 -0400 | [diff] [blame] | 196 | extern void wlc_phy_chanspec_ch14_widefilter_set(wlc_phy_t *ppi, |
Henry Ptasinski | a9533e7 | 2010-09-08 21:04:42 -0700 | [diff] [blame] | 197 | bool wide_filter); |
Jason Cooper | 7cc4a4c | 2010-09-14 09:45:30 -0400 | [diff] [blame] | 198 | extern void wlc_phy_chanspec_band_validch(wlc_phy_t *ppi, uint band, |
| 199 | chanvec_t *channels); |
| 200 | extern chanspec_t wlc_phy_chanspec_band_firstch(wlc_phy_t *ppi, uint band); |
Henry Ptasinski | a9533e7 | 2010-09-08 21:04:42 -0700 | [diff] [blame] | 201 | |
Jason Cooper | 7cc4a4c | 2010-09-14 09:45:30 -0400 | [diff] [blame] | 202 | extern void wlc_phy_txpower_sromlimit(wlc_phy_t *ppi, uint chan, |
Greg Kroah-Hartman | e868ab0 | 2010-10-05 10:14:26 -0700 | [diff] [blame] | 203 | u8 *_min_, u8 *_max_, int rate); |
Jason Cooper | 7cc4a4c | 2010-09-14 09:45:30 -0400 | [diff] [blame] | 204 | extern void wlc_phy_txpower_sromlimit_max_get(wlc_phy_t *ppi, uint chan, |
Greg Kroah-Hartman | e868ab0 | 2010-10-05 10:14:26 -0700 | [diff] [blame] | 205 | u8 *_max_, u8 *_min_); |
Greg Kroah-Hartman | 3e26416 | 2010-10-08 11:11:13 -0700 | [diff] [blame] | 206 | extern void wlc_phy_txpower_boardlimit_band(wlc_phy_t *ppi, uint band, s32 *, |
| 207 | s32 *, u32 *); |
Jason Cooper | 7cc4a4c | 2010-09-14 09:45:30 -0400 | [diff] [blame] | 208 | extern void wlc_phy_txpower_limit_set(wlc_phy_t *ppi, struct txpwr_limits *, |
Henry Ptasinski | a9533e7 | 2010-09-08 21:04:42 -0700 | [diff] [blame] | 209 | chanspec_t chanspec); |
Jason Cooper | 7cc4a4c | 2010-09-14 09:45:30 -0400 | [diff] [blame] | 210 | extern int wlc_phy_txpower_get(wlc_phy_t *ppi, uint *qdbm, bool *override); |
| 211 | extern int wlc_phy_txpower_set(wlc_phy_t *ppi, uint qdbm, bool override); |
| 212 | extern void wlc_phy_txpower_target_set(wlc_phy_t *ppi, struct txpwr_limits *); |
| 213 | extern bool wlc_phy_txpower_hw_ctrl_get(wlc_phy_t *ppi); |
| 214 | extern void wlc_phy_txpower_hw_ctrl_set(wlc_phy_t *ppi, bool hwpwrctrl); |
Greg Kroah-Hartman | e868ab0 | 2010-10-05 10:14:26 -0700 | [diff] [blame] | 215 | extern u8 wlc_phy_txpower_get_target_min(wlc_phy_t *ppi); |
| 216 | extern u8 wlc_phy_txpower_get_target_max(wlc_phy_t *ppi); |
Jason Cooper | 7cc4a4c | 2010-09-14 09:45:30 -0400 | [diff] [blame] | 217 | extern bool wlc_phy_txpower_ipa_ison(wlc_phy_t *pih); |
Henry Ptasinski | a9533e7 | 2010-09-08 21:04:42 -0700 | [diff] [blame] | 218 | |
Greg Kroah-Hartman | e868ab0 | 2010-10-05 10:14:26 -0700 | [diff] [blame] | 219 | extern void wlc_phy_stf_chain_init(wlc_phy_t *pih, u8 txchain, |
| 220 | u8 rxchain); |
| 221 | extern void wlc_phy_stf_chain_set(wlc_phy_t *pih, u8 txchain, |
| 222 | u8 rxchain); |
| 223 | extern void wlc_phy_stf_chain_get(wlc_phy_t *pih, u8 *txchain, |
| 224 | u8 *rxchain); |
| 225 | extern u8 wlc_phy_stf_chain_active_get(wlc_phy_t *pih); |
Greg Kroah-Hartman | 562c885 | 2010-10-05 11:04:17 -0700 | [diff] [blame] | 226 | extern s8 wlc_phy_stf_ssmode_get(wlc_phy_t *pih, chanspec_t chanspec); |
Jason Cooper | 7cc4a4c | 2010-09-14 09:45:30 -0400 | [diff] [blame] | 227 | extern void wlc_phy_ldpc_override_set(wlc_phy_t *ppi, bool val); |
Henry Ptasinski | a9533e7 | 2010-09-08 21:04:42 -0700 | [diff] [blame] | 228 | |
Greg Kroah-Hartman | e868ab0 | 2010-10-05 10:14:26 -0700 | [diff] [blame] | 229 | extern void wlc_phy_cal_perical(wlc_phy_t *ppi, u8 reason); |
Jason Cooper | 7cc4a4c | 2010-09-14 09:45:30 -0400 | [diff] [blame] | 230 | extern void wlc_phy_noise_sample_request_external(wlc_phy_t *ppi); |
| 231 | extern void wlc_phy_edcrs_lock(wlc_phy_t *pih, bool lock); |
| 232 | extern void wlc_phy_cal_papd_recal(wlc_phy_t *ppi); |
Henry Ptasinski | a9533e7 | 2010-09-08 21:04:42 -0700 | [diff] [blame] | 233 | |
Greg Kroah-Hartman | e868ab0 | 2010-10-05 10:14:26 -0700 | [diff] [blame] | 234 | extern void wlc_phy_ant_rxdiv_set(wlc_phy_t *ppi, u8 val); |
| 235 | extern bool wlc_phy_ant_rxdiv_get(wlc_phy_t *ppi, u8 *pval); |
Jason Cooper | 7cc4a4c | 2010-09-14 09:45:30 -0400 | [diff] [blame] | 236 | extern void wlc_phy_clear_tssi(wlc_phy_t *ppi); |
| 237 | extern void wlc_phy_hold_upd(wlc_phy_t *ppi, mbool id, bool val); |
| 238 | extern void wlc_phy_mute_upd(wlc_phy_t *ppi, bool val, mbool flags); |
Henry Ptasinski | a9533e7 | 2010-09-08 21:04:42 -0700 | [diff] [blame] | 239 | |
Greg Kroah-Hartman | e868ab0 | 2010-10-05 10:14:26 -0700 | [diff] [blame] | 240 | extern void wlc_phy_antsel_type_set(wlc_phy_t *ppi, u8 antsel_type); |
Henry Ptasinski | a9533e7 | 2010-09-08 21:04:42 -0700 | [diff] [blame] | 241 | |
Jason Cooper | 7cc4a4c | 2010-09-14 09:45:30 -0400 | [diff] [blame] | 242 | extern void wlc_phy_txpower_get_current(wlc_phy_t *ppi, tx_power_t *power, |
Henry Ptasinski | a9533e7 | 2010-09-08 21:04:42 -0700 | [diff] [blame] | 243 | uint channel); |
| 244 | |
Jason Cooper | 7cc4a4c | 2010-09-14 09:45:30 -0400 | [diff] [blame] | 245 | extern void wlc_phy_initcal_enable(wlc_phy_t *pih, bool initcal); |
| 246 | extern bool wlc_phy_test_ison(wlc_phy_t *ppi); |
Greg Kroah-Hartman | e868ab0 | 2010-10-05 10:14:26 -0700 | [diff] [blame] | 247 | extern void wlc_phy_txpwr_percent_set(wlc_phy_t *ppi, u8 txpwr_percent); |
Jason Cooper | 7cc4a4c | 2010-09-14 09:45:30 -0400 | [diff] [blame] | 248 | extern void wlc_phy_ofdm_rateset_war(wlc_phy_t *pih, bool war); |
| 249 | extern void wlc_phy_bf_preempt_enable(wlc_phy_t *pih, bool bf_preempt); |
Greg Kroah-Hartman | 66cbd3a | 2010-10-08 11:05:47 -0700 | [diff] [blame] | 250 | extern void wlc_phy_machwcap_set(wlc_phy_t *ppi, u32 machwcap); |
Henry Ptasinski | a9533e7 | 2010-09-08 21:04:42 -0700 | [diff] [blame] | 251 | |
Jason Cooper | 7cc4a4c | 2010-09-14 09:45:30 -0400 | [diff] [blame] | 252 | extern void wlc_phy_runbist_config(wlc_phy_t *ppi, bool start_end); |
Henry Ptasinski | a9533e7 | 2010-09-08 21:04:42 -0700 | [diff] [blame] | 253 | |
Jason Cooper | 7cc4a4c | 2010-09-14 09:45:30 -0400 | [diff] [blame] | 254 | extern void wlc_phy_freqtrack_start(wlc_phy_t *ppi); |
| 255 | extern void wlc_phy_freqtrack_end(wlc_phy_t *ppi); |
Henry Ptasinski | a9533e7 | 2010-09-08 21:04:42 -0700 | [diff] [blame] | 256 | |
Greg Kroah-Hartman | e868ab0 | 2010-10-05 10:14:26 -0700 | [diff] [blame] | 257 | extern const u8 *wlc_phy_get_ofdm_rate_lookup(void); |
Henry Ptasinski | a9533e7 | 2010-09-08 21:04:42 -0700 | [diff] [blame] | 258 | |
Greg Kroah-Hartman | 562c885 | 2010-10-05 11:04:17 -0700 | [diff] [blame] | 259 | extern s8 wlc_phy_get_tx_power_offset_by_mcs(wlc_phy_t *ppi, |
Greg Kroah-Hartman | e868ab0 | 2010-10-05 10:14:26 -0700 | [diff] [blame] | 260 | u8 mcs_offset); |
Greg Kroah-Hartman | 562c885 | 2010-10-05 11:04:17 -0700 | [diff] [blame] | 261 | extern s8 wlc_phy_get_tx_power_offset(wlc_phy_t *ppi, u8 tbl_offset); |
Henry Ptasinski | a9533e7 | 2010-09-08 21:04:42 -0700 | [diff] [blame] | 262 | #endif /* _wlc_phy_h_ */ |