diff options
Diffstat (limited to 'drivers/net/wireless/iwlegacy/iwl-3945.h')
-rw-r--r-- | drivers/net/wireless/iwlegacy/iwl-3945.h | 78 |
1 files changed, 39 insertions, 39 deletions
diff --git a/drivers/net/wireless/iwlegacy/iwl-3945.h b/drivers/net/wireless/iwlegacy/iwl-3945.h index 167eedcfeb6..abe778b1b42 100644 --- a/drivers/net/wireless/iwlegacy/iwl-3945.h +++ b/drivers/net/wireless/iwlegacy/iwl-3945.h | |||
@@ -85,7 +85,7 @@ struct il3945_rate_scale_data { | |||
85 | 85 | ||
86 | struct il3945_rs_sta { | 86 | struct il3945_rs_sta { |
87 | spinlock_t lock; | 87 | spinlock_t lock; |
88 | struct il_priv *priv; | 88 | struct il_priv *il; |
89 | s32 *expected_tpt; | 89 | s32 *expected_tpt; |
90 | unsigned long last_partial_flush; | 90 | unsigned long last_partial_flush; |
91 | unsigned long last_flush; | 91 | unsigned long last_flush; |
@@ -207,12 +207,12 @@ struct il3945_ibss_seq { | |||
207 | *****************************************************************************/ | 207 | *****************************************************************************/ |
208 | extern int il3945_calc_db_from_ratio(int sig_ratio); | 208 | extern int il3945_calc_db_from_ratio(int sig_ratio); |
209 | extern void il3945_rx_replenish(void *data); | 209 | extern void il3945_rx_replenish(void *data); |
210 | extern void il3945_rx_queue_reset(struct il_priv *priv, struct il_rx_queue *rxq); | 210 | extern void il3945_rx_queue_reset(struct il_priv *il, struct il_rx_queue *rxq); |
211 | extern unsigned int il3945_fill_beacon_frame(struct il_priv *priv, | 211 | extern unsigned int il3945_fill_beacon_frame(struct il_priv *il, |
212 | struct ieee80211_hdr *hdr, int left); | 212 | struct ieee80211_hdr *hdr, int left); |
213 | extern int il3945_dump_nic_event_log(struct il_priv *priv, bool full_log, | 213 | extern int il3945_dump_nic_event_log(struct il_priv *il, bool full_log, |
214 | char **buf, bool display); | 214 | char **buf, bool display); |
215 | extern void il3945_dump_nic_error_log(struct il_priv *priv); | 215 | extern void il3945_dump_nic_error_log(struct il_priv *il); |
216 | 216 | ||
217 | /****************************************************************************** | 217 | /****************************************************************************** |
218 | * | 218 | * |
@@ -230,44 +230,44 @@ extern void il3945_dump_nic_error_log(struct il_priv *priv); | |||
230 | * il3945_mac_ <-- mac80211 callback | 230 | * il3945_mac_ <-- mac80211 callback |
231 | * | 231 | * |
232 | ****************************************************************************/ | 232 | ****************************************************************************/ |
233 | extern void il3945_hw_rx_handler_setup(struct il_priv *priv); | 233 | extern void il3945_hw_rx_handler_setup(struct il_priv *il); |
234 | extern void il3945_hw_setup_deferred_work(struct il_priv *priv); | 234 | extern void il3945_hw_setup_deferred_work(struct il_priv *il); |
235 | extern void il3945_hw_cancel_deferred_work(struct il_priv *priv); | 235 | extern void il3945_hw_cancel_deferred_work(struct il_priv *il); |
236 | extern int il3945_hw_rxq_stop(struct il_priv *priv); | 236 | extern int il3945_hw_rxq_stop(struct il_priv *il); |
237 | extern int il3945_hw_set_hw_params(struct il_priv *priv); | 237 | extern int il3945_hw_set_hw_params(struct il_priv *il); |
238 | extern int il3945_hw_nic_init(struct il_priv *priv); | 238 | extern int il3945_hw_nic_init(struct il_priv *il); |
239 | extern int il3945_hw_nic_stop_master(struct il_priv *priv); | 239 | extern int il3945_hw_nic_stop_master(struct il_priv *il); |
240 | extern void il3945_hw_txq_ctx_free(struct il_priv *priv); | 240 | extern void il3945_hw_txq_ctx_free(struct il_priv *il); |
241 | extern void il3945_hw_txq_ctx_stop(struct il_priv *priv); | 241 | extern void il3945_hw_txq_ctx_stop(struct il_priv *il); |
242 | extern int il3945_hw_nic_reset(struct il_priv *priv); | 242 | extern int il3945_hw_nic_reset(struct il_priv *il); |
243 | extern int il3945_hw_txq_attach_buf_to_tfd(struct il_priv *priv, | 243 | extern int il3945_hw_txq_attach_buf_to_tfd(struct il_priv *il, |
244 | struct il_tx_queue *txq, | 244 | struct il_tx_queue *txq, |
245 | dma_addr_t addr, u16 len, | 245 | dma_addr_t addr, u16 len, |
246 | u8 reset, u8 pad); | 246 | u8 reset, u8 pad); |
247 | extern void il3945_hw_txq_free_tfd(struct il_priv *priv, | 247 | extern void il3945_hw_txq_free_tfd(struct il_priv *il, |
248 | struct il_tx_queue *txq); | 248 | struct il_tx_queue *txq); |
249 | extern int il3945_hw_get_temperature(struct il_priv *priv); | 249 | extern int il3945_hw_get_temperature(struct il_priv *il); |
250 | extern int il3945_hw_tx_queue_init(struct il_priv *priv, | 250 | extern int il3945_hw_tx_queue_init(struct il_priv *il, |
251 | struct il_tx_queue *txq); | 251 | struct il_tx_queue *txq); |
252 | extern unsigned int il3945_hw_get_beacon_cmd(struct il_priv *priv, | 252 | extern unsigned int il3945_hw_get_beacon_cmd(struct il_priv *il, |
253 | struct il3945_frame *frame, u8 rate); | 253 | struct il3945_frame *frame, u8 rate); |
254 | void il3945_hw_build_tx_cmd_rate(struct il_priv *priv, | 254 | void il3945_hw_build_tx_cmd_rate(struct il_priv *il, |
255 | struct il_device_cmd *cmd, | 255 | struct il_device_cmd *cmd, |
256 | struct ieee80211_tx_info *info, | 256 | struct ieee80211_tx_info *info, |
257 | struct ieee80211_hdr *hdr, | 257 | struct ieee80211_hdr *hdr, |
258 | int sta_id, int tx_id); | 258 | int sta_id, int tx_id); |
259 | extern int il3945_hw_reg_send_txpower(struct il_priv *priv); | 259 | extern int il3945_hw_reg_send_txpower(struct il_priv *il); |
260 | extern int il3945_hw_reg_set_txpower(struct il_priv *priv, s8 power); | 260 | extern int il3945_hw_reg_set_txpower(struct il_priv *il, s8 power); |
261 | extern void il3945_hw_rx_statistics(struct il_priv *priv, | 261 | extern void il3945_hw_rx_statistics(struct il_priv *il, |
262 | struct il_rx_mem_buffer *rxb); | 262 | struct il_rx_mem_buffer *rxb); |
263 | void il3945_reply_statistics(struct il_priv *priv, | 263 | void il3945_reply_statistics(struct il_priv *il, |
264 | struct il_rx_mem_buffer *rxb); | 264 | struct il_rx_mem_buffer *rxb); |
265 | extern void il3945_disable_events(struct il_priv *priv); | 265 | extern void il3945_disable_events(struct il_priv *il); |
266 | extern int il4965_get_temperature(const struct il_priv *priv); | 266 | extern int il4965_get_temperature(const struct il_priv *il); |
267 | extern void il3945_post_associate(struct il_priv *priv); | 267 | extern void il3945_post_associate(struct il_priv *il); |
268 | extern void il3945_config_ap(struct il_priv *priv); | 268 | extern void il3945_config_ap(struct il_priv *il); |
269 | 269 | ||
270 | extern int il3945_commit_rxon(struct il_priv *priv, | 270 | extern int il3945_commit_rxon(struct il_priv *il, |
271 | struct il_rxon_context *ctx); | 271 | struct il_rxon_context *ctx); |
272 | 272 | ||
273 | /** | 273 | /** |
@@ -278,26 +278,26 @@ extern int il3945_commit_rxon(struct il_priv *priv, | |||
278 | * not yet been merged into a single common layer for managing the | 278 | * not yet been merged into a single common layer for managing the |
279 | * station tables. | 279 | * station tables. |
280 | */ | 280 | */ |
281 | extern u8 il3945_hw_find_station(struct il_priv *priv, const u8 *bssid); | 281 | extern u8 il3945_hw_find_station(struct il_priv *il, const u8 *bssid); |
282 | 282 | ||
283 | extern struct ieee80211_ops il3945_hw_ops; | 283 | extern struct ieee80211_ops il3945_hw_ops; |
284 | 284 | ||
285 | /* | 285 | /* |
286 | * Forward declare iwl-3945.c functions for iwl3945-base.c | 286 | * Forward declare iwl-3945.c functions for iwl3945-base.c |
287 | */ | 287 | */ |
288 | extern __le32 il3945_get_antenna_flags(const struct il_priv *priv); | 288 | extern __le32 il3945_get_antenna_flags(const struct il_priv *il); |
289 | extern int il3945_init_hw_rate_table(struct il_priv *priv); | 289 | extern int il3945_init_hw_rate_table(struct il_priv *il); |
290 | extern void il3945_reg_txpower_periodic(struct il_priv *priv); | 290 | extern void il3945_reg_txpower_periodic(struct il_priv *il); |
291 | extern int il3945_txpower_set_from_eeprom(struct il_priv *priv); | 291 | extern int il3945_txpower_set_from_eeprom(struct il_priv *il); |
292 | 292 | ||
293 | extern const struct il_channel_info *il3945_get_channel_info( | 293 | extern const struct il_channel_info *il3945_get_channel_info( |
294 | const struct il_priv *priv, enum ieee80211_band band, u16 channel); | 294 | const struct il_priv *il, enum ieee80211_band band, u16 channel); |
295 | 295 | ||
296 | extern int il3945_rs_next_rate(struct il_priv *priv, int rate); | 296 | extern int il3945_rs_next_rate(struct il_priv *il, int rate); |
297 | 297 | ||
298 | /* scanning */ | 298 | /* scanning */ |
299 | int il3945_request_scan(struct il_priv *priv, struct ieee80211_vif *vif); | 299 | int il3945_request_scan(struct il_priv *il, struct ieee80211_vif *vif); |
300 | void il3945_post_scan(struct il_priv *priv); | 300 | void il3945_post_scan(struct il_priv *il); |
301 | 301 | ||
302 | /* rates */ | 302 | /* rates */ |
303 | extern const struct il3945_rate_info il3945_rates[IL_RATE_COUNT_3945]; | 303 | extern const struct il3945_rate_info il3945_rates[IL_RATE_COUNT_3945]; |