aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlegacy/iwl-3945.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/iwlegacy/iwl-3945.h')
-rw-r--r--drivers/net/wireless/iwlegacy/iwl-3945.h78
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
86struct il3945_rs_sta { 86struct 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 *****************************************************************************/
208extern int il3945_calc_db_from_ratio(int sig_ratio); 208extern int il3945_calc_db_from_ratio(int sig_ratio);
209extern void il3945_rx_replenish(void *data); 209extern void il3945_rx_replenish(void *data);
210extern void il3945_rx_queue_reset(struct il_priv *priv, struct il_rx_queue *rxq); 210extern void il3945_rx_queue_reset(struct il_priv *il, struct il_rx_queue *rxq);
211extern unsigned int il3945_fill_beacon_frame(struct il_priv *priv, 211extern unsigned int il3945_fill_beacon_frame(struct il_priv *il,
212 struct ieee80211_hdr *hdr, int left); 212 struct ieee80211_hdr *hdr, int left);
213extern int il3945_dump_nic_event_log(struct il_priv *priv, bool full_log, 213extern int il3945_dump_nic_event_log(struct il_priv *il, bool full_log,
214 char **buf, bool display); 214 char **buf, bool display);
215extern void il3945_dump_nic_error_log(struct il_priv *priv); 215extern 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 ****************************************************************************/
233extern void il3945_hw_rx_handler_setup(struct il_priv *priv); 233extern void il3945_hw_rx_handler_setup(struct il_priv *il);
234extern void il3945_hw_setup_deferred_work(struct il_priv *priv); 234extern void il3945_hw_setup_deferred_work(struct il_priv *il);
235extern void il3945_hw_cancel_deferred_work(struct il_priv *priv); 235extern void il3945_hw_cancel_deferred_work(struct il_priv *il);
236extern int il3945_hw_rxq_stop(struct il_priv *priv); 236extern int il3945_hw_rxq_stop(struct il_priv *il);
237extern int il3945_hw_set_hw_params(struct il_priv *priv); 237extern int il3945_hw_set_hw_params(struct il_priv *il);
238extern int il3945_hw_nic_init(struct il_priv *priv); 238extern int il3945_hw_nic_init(struct il_priv *il);
239extern int il3945_hw_nic_stop_master(struct il_priv *priv); 239extern int il3945_hw_nic_stop_master(struct il_priv *il);
240extern void il3945_hw_txq_ctx_free(struct il_priv *priv); 240extern void il3945_hw_txq_ctx_free(struct il_priv *il);
241extern void il3945_hw_txq_ctx_stop(struct il_priv *priv); 241extern void il3945_hw_txq_ctx_stop(struct il_priv *il);
242extern int il3945_hw_nic_reset(struct il_priv *priv); 242extern int il3945_hw_nic_reset(struct il_priv *il);
243extern int il3945_hw_txq_attach_buf_to_tfd(struct il_priv *priv, 243extern 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);
247extern void il3945_hw_txq_free_tfd(struct il_priv *priv, 247extern void il3945_hw_txq_free_tfd(struct il_priv *il,
248 struct il_tx_queue *txq); 248 struct il_tx_queue *txq);
249extern int il3945_hw_get_temperature(struct il_priv *priv); 249extern int il3945_hw_get_temperature(struct il_priv *il);
250extern int il3945_hw_tx_queue_init(struct il_priv *priv, 250extern int il3945_hw_tx_queue_init(struct il_priv *il,
251 struct il_tx_queue *txq); 251 struct il_tx_queue *txq);
252extern unsigned int il3945_hw_get_beacon_cmd(struct il_priv *priv, 252extern 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);
254void il3945_hw_build_tx_cmd_rate(struct il_priv *priv, 254void 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);
259extern int il3945_hw_reg_send_txpower(struct il_priv *priv); 259extern int il3945_hw_reg_send_txpower(struct il_priv *il);
260extern int il3945_hw_reg_set_txpower(struct il_priv *priv, s8 power); 260extern int il3945_hw_reg_set_txpower(struct il_priv *il, s8 power);
261extern void il3945_hw_rx_statistics(struct il_priv *priv, 261extern void il3945_hw_rx_statistics(struct il_priv *il,
262 struct il_rx_mem_buffer *rxb); 262 struct il_rx_mem_buffer *rxb);
263void il3945_reply_statistics(struct il_priv *priv, 263void il3945_reply_statistics(struct il_priv *il,
264 struct il_rx_mem_buffer *rxb); 264 struct il_rx_mem_buffer *rxb);
265extern void il3945_disable_events(struct il_priv *priv); 265extern void il3945_disable_events(struct il_priv *il);
266extern int il4965_get_temperature(const struct il_priv *priv); 266extern int il4965_get_temperature(const struct il_priv *il);
267extern void il3945_post_associate(struct il_priv *priv); 267extern void il3945_post_associate(struct il_priv *il);
268extern void il3945_config_ap(struct il_priv *priv); 268extern void il3945_config_ap(struct il_priv *il);
269 269
270extern int il3945_commit_rxon(struct il_priv *priv, 270extern 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 */
281extern u8 il3945_hw_find_station(struct il_priv *priv, const u8 *bssid); 281extern u8 il3945_hw_find_station(struct il_priv *il, const u8 *bssid);
282 282
283extern struct ieee80211_ops il3945_hw_ops; 283extern 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 */
288extern __le32 il3945_get_antenna_flags(const struct il_priv *priv); 288extern __le32 il3945_get_antenna_flags(const struct il_priv *il);
289extern int il3945_init_hw_rate_table(struct il_priv *priv); 289extern int il3945_init_hw_rate_table(struct il_priv *il);
290extern void il3945_reg_txpower_periodic(struct il_priv *priv); 290extern void il3945_reg_txpower_periodic(struct il_priv *il);
291extern int il3945_txpower_set_from_eeprom(struct il_priv *priv); 291extern int il3945_txpower_set_from_eeprom(struct il_priv *il);
292 292
293extern const struct il_channel_info *il3945_get_channel_info( 293extern 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
296extern int il3945_rs_next_rate(struct il_priv *priv, int rate); 296extern int il3945_rs_next_rate(struct il_priv *il, int rate);
297 297
298/* scanning */ 298/* scanning */
299int il3945_request_scan(struct il_priv *priv, struct ieee80211_vif *vif); 299int il3945_request_scan(struct il_priv *il, struct ieee80211_vif *vif);
300void il3945_post_scan(struct il_priv *priv); 300void il3945_post_scan(struct il_priv *il);
301 301
302/* rates */ 302/* rates */
303extern const struct il3945_rate_info il3945_rates[IL_RATE_COUNT_3945]; 303extern const struct il3945_rate_info il3945_rates[IL_RATE_COUNT_3945];