diff options
author | Joe Perches <joe@perches.com> | 2013-09-23 14:37:59 -0400 |
---|---|---|
committer | Joe Perches <joe@perches.com> | 2013-09-24 20:32:48 -0400 |
commit | 9bd91f3c00bd8dd54339499a9253b31c6bac7c7b (patch) | |
tree | 9bc91a1442802582f31b23a9e5c17e360b248f2d /drivers/net/wireless/brcm80211/brcmsmac/phy/phy_hal.h | |
parent | a3dabaf02d36dbb4051188b706a3e66e6465c56b (diff) |
brcm80211: Remove extern from function prototypes
There are a mix of function prototypes with and without extern
in the kernel sources. Standardize on not using extern for
function prototypes.
Function prototypes don't need to be written with extern.
extern is assumed by the compiler. Its use is as unnecessary as
using auto to declare automatic/local variables in a block.
Signed-off-by: Joe Perches <joe@perches.com>
Diffstat (limited to 'drivers/net/wireless/brcm80211/brcmsmac/phy/phy_hal.h')
-rw-r--r-- | drivers/net/wireless/brcm80211/brcmsmac/phy/phy_hal.h | 219 |
1 files changed, 102 insertions, 117 deletions
diff --git a/drivers/net/wireless/brcm80211/brcmsmac/phy/phy_hal.h b/drivers/net/wireless/brcm80211/brcmsmac/phy/phy_hal.h index e34a71e7d242..4d3734f48d9c 100644 --- a/drivers/net/wireless/brcm80211/brcmsmac/phy/phy_hal.h +++ b/drivers/net/wireless/brcm80211/brcmsmac/phy/phy_hal.h | |||
@@ -179,121 +179,106 @@ struct shared_phy_params { | |||
179 | }; | 179 | }; |
180 | 180 | ||
181 | 181 | ||
182 | extern struct shared_phy *wlc_phy_shared_attach(struct shared_phy_params *shp); | 182 | struct shared_phy *wlc_phy_shared_attach(struct shared_phy_params *shp); |
183 | extern struct brcms_phy_pub *wlc_phy_attach(struct shared_phy *sh, | 183 | struct brcms_phy_pub *wlc_phy_attach(struct shared_phy *sh, |
184 | struct bcma_device *d11core, | 184 | struct bcma_device *d11core, int bandtype, |
185 | int bandtype, struct wiphy *wiphy); | 185 | struct wiphy *wiphy); |
186 | extern void wlc_phy_detach(struct brcms_phy_pub *ppi); | 186 | void wlc_phy_detach(struct brcms_phy_pub *ppi); |
187 | 187 | ||
188 | extern bool wlc_phy_get_phyversion(struct brcms_phy_pub *pih, u16 *phytype, | 188 | bool wlc_phy_get_phyversion(struct brcms_phy_pub *pih, u16 *phytype, |
189 | u16 *phyrev, u16 *radioid, | 189 | u16 *phyrev, u16 *radioid, u16 *radiover); |
190 | u16 *radiover); | 190 | bool wlc_phy_get_encore(struct brcms_phy_pub *pih); |
191 | extern bool wlc_phy_get_encore(struct brcms_phy_pub *pih); | 191 | u32 wlc_phy_get_coreflags(struct brcms_phy_pub *pih); |
192 | extern u32 wlc_phy_get_coreflags(struct brcms_phy_pub *pih); | 192 | |
193 | 193 | void wlc_phy_hw_clk_state_upd(struct brcms_phy_pub *ppi, bool newstate); | |
194 | extern void wlc_phy_hw_clk_state_upd(struct brcms_phy_pub *ppi, bool newstate); | 194 | void wlc_phy_hw_state_upd(struct brcms_phy_pub *ppi, bool newstate); |
195 | extern void wlc_phy_hw_state_upd(struct brcms_phy_pub *ppi, bool newstate); | 195 | void wlc_phy_init(struct brcms_phy_pub *ppi, u16 chanspec); |
196 | extern void wlc_phy_init(struct brcms_phy_pub *ppi, u16 chanspec); | 196 | void wlc_phy_watchdog(struct brcms_phy_pub *ppi); |
197 | extern void wlc_phy_watchdog(struct brcms_phy_pub *ppi); | 197 | int wlc_phy_down(struct brcms_phy_pub *ppi); |
198 | extern int wlc_phy_down(struct brcms_phy_pub *ppi); | 198 | u32 wlc_phy_clk_bwbits(struct brcms_phy_pub *pih); |
199 | extern u32 wlc_phy_clk_bwbits(struct brcms_phy_pub *pih); | 199 | void wlc_phy_cal_init(struct brcms_phy_pub *ppi); |
200 | extern void wlc_phy_cal_init(struct brcms_phy_pub *ppi); | 200 | void wlc_phy_antsel_init(struct brcms_phy_pub *ppi, bool lut_init); |
201 | extern void wlc_phy_antsel_init(struct brcms_phy_pub *ppi, bool lut_init); | 201 | |
202 | 202 | void wlc_phy_chanspec_set(struct brcms_phy_pub *ppi, u16 chanspec); | |
203 | extern void wlc_phy_chanspec_set(struct brcms_phy_pub *ppi, | 203 | u16 wlc_phy_chanspec_get(struct brcms_phy_pub *ppi); |
204 | u16 chanspec); | 204 | void wlc_phy_chanspec_radio_set(struct brcms_phy_pub *ppi, u16 newch); |
205 | extern u16 wlc_phy_chanspec_get(struct brcms_phy_pub *ppi); | 205 | u16 wlc_phy_bw_state_get(struct brcms_phy_pub *ppi); |
206 | extern void wlc_phy_chanspec_radio_set(struct brcms_phy_pub *ppi, | 206 | void wlc_phy_bw_state_set(struct brcms_phy_pub *ppi, u16 bw); |
207 | u16 newch); | 207 | |
208 | extern u16 wlc_phy_bw_state_get(struct brcms_phy_pub *ppi); | 208 | int wlc_phy_rssi_compute(struct brcms_phy_pub *pih, struct d11rxhdr *rxh); |
209 | extern void wlc_phy_bw_state_set(struct brcms_phy_pub *ppi, u16 bw); | 209 | void wlc_phy_por_inform(struct brcms_phy_pub *ppi); |
210 | 210 | void wlc_phy_noise_sample_intr(struct brcms_phy_pub *ppi); | |
211 | extern int wlc_phy_rssi_compute(struct brcms_phy_pub *pih, | 211 | bool wlc_phy_bist_check_phy(struct brcms_phy_pub *ppi); |
212 | struct d11rxhdr *rxh); | 212 | |
213 | extern void wlc_phy_por_inform(struct brcms_phy_pub *ppi); | 213 | void wlc_phy_set_deaf(struct brcms_phy_pub *ppi, bool user_flag); |
214 | extern void wlc_phy_noise_sample_intr(struct brcms_phy_pub *ppi); | 214 | |
215 | extern bool wlc_phy_bist_check_phy(struct brcms_phy_pub *ppi); | 215 | void wlc_phy_switch_radio(struct brcms_phy_pub *ppi, bool on); |
216 | 216 | void wlc_phy_anacore(struct brcms_phy_pub *ppi, bool on); | |
217 | extern void wlc_phy_set_deaf(struct brcms_phy_pub *ppi, bool user_flag); | 217 | |
218 | 218 | ||
219 | extern void wlc_phy_switch_radio(struct brcms_phy_pub *ppi, bool on); | 219 | void wlc_phy_BSSinit(struct brcms_phy_pub *ppi, bool bonlyap, int rssi); |
220 | extern void wlc_phy_anacore(struct brcms_phy_pub *ppi, bool on); | 220 | |
221 | 221 | void wlc_phy_chanspec_ch14_widefilter_set(struct brcms_phy_pub *ppi, | |
222 | 222 | bool wide_filter); | |
223 | extern void wlc_phy_BSSinit(struct brcms_phy_pub *ppi, bool bonlyap, int rssi); | 223 | void wlc_phy_chanspec_band_validch(struct brcms_phy_pub *ppi, uint band, |
224 | 224 | struct brcms_chanvec *channels); | |
225 | extern void wlc_phy_chanspec_ch14_widefilter_set(struct brcms_phy_pub *ppi, | 225 | u16 wlc_phy_chanspec_band_firstch(struct brcms_phy_pub *ppi, uint band); |
226 | bool wide_filter); | 226 | |
227 | extern void wlc_phy_chanspec_band_validch(struct brcms_phy_pub *ppi, uint band, | 227 | void wlc_phy_txpower_sromlimit(struct brcms_phy_pub *ppi, uint chan, u8 *_min_, |
228 | struct brcms_chanvec *channels); | 228 | u8 *_max_, int rate); |
229 | extern u16 wlc_phy_chanspec_band_firstch(struct brcms_phy_pub *ppi, | 229 | void wlc_phy_txpower_sromlimit_max_get(struct brcms_phy_pub *ppi, uint chan, |
230 | uint band); | 230 | u8 *_max_, u8 *_min_); |
231 | 231 | void wlc_phy_txpower_boardlimit_band(struct brcms_phy_pub *ppi, uint band, | |
232 | extern void wlc_phy_txpower_sromlimit(struct brcms_phy_pub *ppi, uint chan, | 232 | s32 *, s32 *, u32 *); |
233 | u8 *_min_, u8 *_max_, int rate); | 233 | void wlc_phy_txpower_limit_set(struct brcms_phy_pub *ppi, struct txpwr_limits *, |
234 | extern void wlc_phy_txpower_sromlimit_max_get(struct brcms_phy_pub *ppi, | 234 | u16 chanspec); |
235 | uint chan, u8 *_max_, u8 *_min_); | 235 | int wlc_phy_txpower_get(struct brcms_phy_pub *ppi, uint *qdbm, bool *override); |
236 | extern void wlc_phy_txpower_boardlimit_band(struct brcms_phy_pub *ppi, | 236 | int wlc_phy_txpower_set(struct brcms_phy_pub *ppi, uint qdbm, bool override); |
237 | uint band, s32 *, s32 *, u32 *); | 237 | void wlc_phy_txpower_target_set(struct brcms_phy_pub *ppi, |
238 | extern void wlc_phy_txpower_limit_set(struct brcms_phy_pub *ppi, | 238 | struct txpwr_limits *); |
239 | struct txpwr_limits *, | 239 | bool wlc_phy_txpower_hw_ctrl_get(struct brcms_phy_pub *ppi); |
240 | u16 chanspec); | 240 | void wlc_phy_txpower_hw_ctrl_set(struct brcms_phy_pub *ppi, bool hwpwrctrl); |
241 | extern int wlc_phy_txpower_get(struct brcms_phy_pub *ppi, uint *qdbm, | 241 | u8 wlc_phy_txpower_get_target_min(struct brcms_phy_pub *ppi); |
242 | bool *override); | 242 | u8 wlc_phy_txpower_get_target_max(struct brcms_phy_pub *ppi); |
243 | extern int wlc_phy_txpower_set(struct brcms_phy_pub *ppi, uint qdbm, | 243 | bool wlc_phy_txpower_ipa_ison(struct brcms_phy_pub *pih); |
244 | bool override); | 244 | |
245 | extern void wlc_phy_txpower_target_set(struct brcms_phy_pub *ppi, | 245 | void wlc_phy_stf_chain_init(struct brcms_phy_pub *pih, u8 txchain, u8 rxchain); |
246 | struct txpwr_limits *); | 246 | void wlc_phy_stf_chain_set(struct brcms_phy_pub *pih, u8 txchain, u8 rxchain); |
247 | extern bool wlc_phy_txpower_hw_ctrl_get(struct brcms_phy_pub *ppi); | 247 | void wlc_phy_stf_chain_get(struct brcms_phy_pub *pih, u8 *txchain, u8 *rxchain); |
248 | extern void wlc_phy_txpower_hw_ctrl_set(struct brcms_phy_pub *ppi, | 248 | u8 wlc_phy_stf_chain_active_get(struct brcms_phy_pub *pih); |
249 | bool hwpwrctrl); | 249 | s8 wlc_phy_stf_ssmode_get(struct brcms_phy_pub *pih, u16 chanspec); |
250 | extern u8 wlc_phy_txpower_get_target_min(struct brcms_phy_pub *ppi); | 250 | void wlc_phy_ldpc_override_set(struct brcms_phy_pub *ppi, bool val); |
251 | extern u8 wlc_phy_txpower_get_target_max(struct brcms_phy_pub *ppi); | 251 | |
252 | extern bool wlc_phy_txpower_ipa_ison(struct brcms_phy_pub *pih); | 252 | void wlc_phy_cal_perical(struct brcms_phy_pub *ppi, u8 reason); |
253 | 253 | void wlc_phy_noise_sample_request_external(struct brcms_phy_pub *ppi); | |
254 | extern void wlc_phy_stf_chain_init(struct brcms_phy_pub *pih, u8 txchain, | 254 | void wlc_phy_edcrs_lock(struct brcms_phy_pub *pih, bool lock); |
255 | u8 rxchain); | 255 | void wlc_phy_cal_papd_recal(struct brcms_phy_pub *ppi); |
256 | extern void wlc_phy_stf_chain_set(struct brcms_phy_pub *pih, u8 txchain, | 256 | |
257 | u8 rxchain); | 257 | void wlc_phy_ant_rxdiv_set(struct brcms_phy_pub *ppi, u8 val); |
258 | extern void wlc_phy_stf_chain_get(struct brcms_phy_pub *pih, u8 *txchain, | 258 | void wlc_phy_clear_tssi(struct brcms_phy_pub *ppi); |
259 | u8 *rxchain); | 259 | void wlc_phy_hold_upd(struct brcms_phy_pub *ppi, u32 id, bool val); |
260 | extern u8 wlc_phy_stf_chain_active_get(struct brcms_phy_pub *pih); | 260 | void wlc_phy_mute_upd(struct brcms_phy_pub *ppi, bool val, u32 flags); |
261 | extern s8 wlc_phy_stf_ssmode_get(struct brcms_phy_pub *pih, | 261 | |
262 | u16 chanspec); | 262 | void wlc_phy_antsel_type_set(struct brcms_phy_pub *ppi, u8 antsel_type); |
263 | extern void wlc_phy_ldpc_override_set(struct brcms_phy_pub *ppi, bool val); | 263 | |
264 | 264 | void wlc_phy_txpower_get_current(struct brcms_phy_pub *ppi, | |
265 | extern void wlc_phy_cal_perical(struct brcms_phy_pub *ppi, u8 reason); | 265 | struct tx_power *power, uint channel); |
266 | extern void wlc_phy_noise_sample_request_external(struct brcms_phy_pub *ppi); | 266 | |
267 | extern void wlc_phy_edcrs_lock(struct brcms_phy_pub *pih, bool lock); | 267 | void wlc_phy_initcal_enable(struct brcms_phy_pub *pih, bool initcal); |
268 | extern void wlc_phy_cal_papd_recal(struct brcms_phy_pub *ppi); | 268 | bool wlc_phy_test_ison(struct brcms_phy_pub *ppi); |
269 | 269 | void wlc_phy_txpwr_percent_set(struct brcms_phy_pub *ppi, u8 txpwr_percent); | |
270 | extern void wlc_phy_ant_rxdiv_set(struct brcms_phy_pub *ppi, u8 val); | 270 | void wlc_phy_ofdm_rateset_war(struct brcms_phy_pub *pih, bool war); |
271 | extern void wlc_phy_clear_tssi(struct brcms_phy_pub *ppi); | 271 | void wlc_phy_bf_preempt_enable(struct brcms_phy_pub *pih, bool bf_preempt); |
272 | extern void wlc_phy_hold_upd(struct brcms_phy_pub *ppi, u32 id, bool val); | 272 | void wlc_phy_machwcap_set(struct brcms_phy_pub *ppi, u32 machwcap); |
273 | extern void wlc_phy_mute_upd(struct brcms_phy_pub *ppi, bool val, u32 flags); | 273 | |
274 | 274 | void wlc_phy_runbist_config(struct brcms_phy_pub *ppi, bool start_end); | |
275 | extern void wlc_phy_antsel_type_set(struct brcms_phy_pub *ppi, u8 antsel_type); | 275 | |
276 | 276 | void wlc_phy_freqtrack_start(struct brcms_phy_pub *ppi); | |
277 | extern void wlc_phy_txpower_get_current(struct brcms_phy_pub *ppi, | 277 | void wlc_phy_freqtrack_end(struct brcms_phy_pub *ppi); |
278 | struct tx_power *power, uint channel); | 278 | |
279 | 279 | const u8 *wlc_phy_get_ofdm_rate_lookup(void); | |
280 | extern void wlc_phy_initcal_enable(struct brcms_phy_pub *pih, bool initcal); | 280 | |
281 | extern bool wlc_phy_test_ison(struct brcms_phy_pub *ppi); | 281 | s8 wlc_phy_get_tx_power_offset_by_mcs(struct brcms_phy_pub *ppi, |
282 | extern void wlc_phy_txpwr_percent_set(struct brcms_phy_pub *ppi, | 282 | u8 mcs_offset); |
283 | u8 txpwr_percent); | 283 | s8 wlc_phy_get_tx_power_offset(struct brcms_phy_pub *ppi, u8 tbl_offset); |
284 | extern void wlc_phy_ofdm_rateset_war(struct brcms_phy_pub *pih, bool war); | ||
285 | extern void wlc_phy_bf_preempt_enable(struct brcms_phy_pub *pih, | ||
286 | bool bf_preempt); | ||
287 | extern void wlc_phy_machwcap_set(struct brcms_phy_pub *ppi, u32 machwcap); | ||
288 | |||
289 | extern void wlc_phy_runbist_config(struct brcms_phy_pub *ppi, bool start_end); | ||
290 | |||
291 | extern void wlc_phy_freqtrack_start(struct brcms_phy_pub *ppi); | ||
292 | extern void wlc_phy_freqtrack_end(struct brcms_phy_pub *ppi); | ||
293 | |||
294 | extern const u8 *wlc_phy_get_ofdm_rate_lookup(void); | ||
295 | |||
296 | extern s8 wlc_phy_get_tx_power_offset_by_mcs(struct brcms_phy_pub *ppi, | ||
297 | u8 mcs_offset); | ||
298 | extern s8 wlc_phy_get_tx_power_offset(struct brcms_phy_pub *ppi, u8 tbl_offset); | ||
299 | #endif /* _BRCM_PHY_HAL_H_ */ | 284 | #endif /* _BRCM_PHY_HAL_H_ */ |