aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlegacy/iwl-4965.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/iwlegacy/iwl-4965.h')
-rw-r--r--drivers/net/wireless/iwlegacy/iwl-4965.h120
1 files changed, 60 insertions, 60 deletions
diff --git a/drivers/net/wireless/iwlegacy/iwl-4965.h b/drivers/net/wireless/iwlegacy/iwl-4965.h
index 7b322168bfc5..ea2a98e3a4a2 100644
--- a/drivers/net/wireless/iwlegacy/iwl-4965.h
+++ b/drivers/net/wireless/iwlegacy/iwl-4965.h
@@ -73,75 +73,75 @@ extern struct il_mod_params il4965_mod_params;
73extern struct ieee80211_ops il4965_hw_ops; 73extern struct ieee80211_ops il4965_hw_ops;
74 74
75/* tx queue */ 75/* tx queue */
76void il4965_free_tfds_in_queue(struct il_priv *priv, 76void il4965_free_tfds_in_queue(struct il_priv *il,
77 int sta_id, int tid, int freed); 77 int sta_id, int tid, int freed);
78 78
79/* RXON */ 79/* RXON */
80void il4965_set_rxon_chain(struct il_priv *priv, 80void il4965_set_rxon_chain(struct il_priv *il,
81 struct il_rxon_context *ctx); 81 struct il_rxon_context *ctx);
82 82
83/* uCode */ 83/* uCode */
84int il4965_verify_ucode(struct il_priv *priv); 84int il4965_verify_ucode(struct il_priv *il);
85 85
86/* lib */ 86/* lib */
87void il4965_check_abort_status(struct il_priv *priv, 87void il4965_check_abort_status(struct il_priv *il,
88 u8 frame_count, u32 status); 88 u8 frame_count, u32 status);
89 89
90void il4965_rx_queue_reset(struct il_priv *priv, struct il_rx_queue *rxq); 90void il4965_rx_queue_reset(struct il_priv *il, struct il_rx_queue *rxq);
91int il4965_rx_init(struct il_priv *priv, struct il_rx_queue *rxq); 91int il4965_rx_init(struct il_priv *il, struct il_rx_queue *rxq);
92int il4965_hw_nic_init(struct il_priv *priv); 92int il4965_hw_nic_init(struct il_priv *il);
93int il4965_dump_fh(struct il_priv *priv, char **buf, bool display); 93int il4965_dump_fh(struct il_priv *il, char **buf, bool display);
94 94
95/* rx */ 95/* rx */
96void il4965_rx_queue_restock(struct il_priv *priv); 96void il4965_rx_queue_restock(struct il_priv *il);
97void il4965_rx_replenish(struct il_priv *priv); 97void il4965_rx_replenish(struct il_priv *il);
98void il4965_rx_replenish_now(struct il_priv *priv); 98void il4965_rx_replenish_now(struct il_priv *il);
99void il4965_rx_queue_free(struct il_priv *priv, struct il_rx_queue *rxq); 99void il4965_rx_queue_free(struct il_priv *il, struct il_rx_queue *rxq);
100int il4965_rxq_stop(struct il_priv *priv); 100int il4965_rxq_stop(struct il_priv *il);
101int il4965_hwrate_to_mac80211_idx(u32 rate_n_flags, enum ieee80211_band band); 101int il4965_hwrate_to_mac80211_idx(u32 rate_n_flags, enum ieee80211_band band);
102void il4965_rx_reply_rx(struct il_priv *priv, 102void il4965_rx_reply_rx(struct il_priv *il,
103 struct il_rx_mem_buffer *rxb); 103 struct il_rx_mem_buffer *rxb);
104void il4965_rx_reply_rx_phy(struct il_priv *priv, 104void il4965_rx_reply_rx_phy(struct il_priv *il,
105 struct il_rx_mem_buffer *rxb); 105 struct il_rx_mem_buffer *rxb);
106void il4965_rx_handle(struct il_priv *priv); 106void il4965_rx_handle(struct il_priv *il);
107 107
108/* tx */ 108/* tx */
109void il4965_hw_txq_free_tfd(struct il_priv *priv, struct il_tx_queue *txq); 109void il4965_hw_txq_free_tfd(struct il_priv *il, struct il_tx_queue *txq);
110int il4965_hw_txq_attach_buf_to_tfd(struct il_priv *priv, 110int il4965_hw_txq_attach_buf_to_tfd(struct il_priv *il,
111 struct il_tx_queue *txq, 111 struct il_tx_queue *txq,
112 dma_addr_t addr, u16 len, u8 reset, u8 pad); 112 dma_addr_t addr, u16 len, u8 reset, u8 pad);
113int il4965_hw_tx_queue_init(struct il_priv *priv, 113int il4965_hw_tx_queue_init(struct il_priv *il,
114 struct il_tx_queue *txq); 114 struct il_tx_queue *txq);
115void il4965_hwrate_to_tx_control(struct il_priv *priv, u32 rate_n_flags, 115void il4965_hwrate_to_tx_control(struct il_priv *il, u32 rate_n_flags,
116 struct ieee80211_tx_info *info); 116 struct ieee80211_tx_info *info);
117int il4965_tx_skb(struct il_priv *priv, struct sk_buff *skb); 117int il4965_tx_skb(struct il_priv *il, struct sk_buff *skb);
118int il4965_tx_agg_start(struct il_priv *priv, struct ieee80211_vif *vif, 118int il4965_tx_agg_start(struct il_priv *il, struct ieee80211_vif *vif,
119 struct ieee80211_sta *sta, u16 tid, u16 *ssn); 119 struct ieee80211_sta *sta, u16 tid, u16 *ssn);
120int il4965_tx_agg_stop(struct il_priv *priv, struct ieee80211_vif *vif, 120int il4965_tx_agg_stop(struct il_priv *il, struct ieee80211_vif *vif,
121 struct ieee80211_sta *sta, u16 tid); 121 struct ieee80211_sta *sta, u16 tid);
122int il4965_txq_check_empty(struct il_priv *priv, 122int il4965_txq_check_empty(struct il_priv *il,
123 int sta_id, u8 tid, int txq_id); 123 int sta_id, u8 tid, int txq_id);
124void il4965_rx_reply_compressed_ba(struct il_priv *priv, 124void il4965_rx_reply_compressed_ba(struct il_priv *il,
125 struct il_rx_mem_buffer *rxb); 125 struct il_rx_mem_buffer *rxb);
126int il4965_tx_queue_reclaim(struct il_priv *priv, int txq_id, int index); 126int il4965_tx_queue_reclaim(struct il_priv *il, int txq_id, int index);
127void il4965_hw_txq_ctx_free(struct il_priv *priv); 127void il4965_hw_txq_ctx_free(struct il_priv *il);
128int il4965_txq_ctx_alloc(struct il_priv *priv); 128int il4965_txq_ctx_alloc(struct il_priv *il);
129void il4965_txq_ctx_reset(struct il_priv *priv); 129void il4965_txq_ctx_reset(struct il_priv *il);
130void il4965_txq_ctx_stop(struct il_priv *priv); 130void il4965_txq_ctx_stop(struct il_priv *il);
131void il4965_txq_set_sched(struct il_priv *priv, u32 mask); 131void il4965_txq_set_sched(struct il_priv *il, u32 mask);
132 132
133/* 133/*
134 * Acquire priv->lock before calling this function ! 134 * Acquire il->lock before calling this function !
135 */ 135 */
136void il4965_set_wr_ptrs(struct il_priv *priv, int txq_id, u32 index); 136void il4965_set_wr_ptrs(struct il_priv *il, int txq_id, u32 index);
137/** 137/**
138 * il4965_tx_queue_set_status - (optionally) start Tx/Cmd queue 138 * il4965_tx_queue_set_status - (optionally) start Tx/Cmd queue
139 * @tx_fifo_id: Tx DMA/FIFO channel (range 0-7) that the queue will feed 139 * @tx_fifo_id: Tx DMA/FIFO channel (range 0-7) that the queue will feed
140 * @scd_retry: (1) Indicates queue will be used in aggregation mode 140 * @scd_retry: (1) Indicates queue will be used in aggregation mode
141 * 141 *
142 * NOTE: Acquire priv->lock before calling this function ! 142 * NOTE: Acquire il->lock before calling this function !
143 */ 143 */
144void il4965_tx_queue_set_status(struct il_priv *priv, 144void il4965_tx_queue_set_status(struct il_priv *il,
145 struct il_tx_queue *txq, 145 struct il_tx_queue *txq,
146 int tx_fifo_id, int scd_retry); 146 int tx_fifo_id, int scd_retry);
147 147
@@ -167,27 +167,27 @@ static inline bool il4965_is_tx_success(u32 status)
167 (status == TX_STATUS_DIRECT_DONE); 167 (status == TX_STATUS_DIRECT_DONE);
168} 168}
169 169
170u8 il4965_toggle_tx_ant(struct il_priv *priv, u8 ant_idx, u8 valid); 170u8 il4965_toggle_tx_ant(struct il_priv *il, u8 ant_idx, u8 valid);
171 171
172/* rx */ 172/* rx */
173void il4965_rx_missed_beacon_notif(struct il_priv *priv, 173void il4965_rx_missed_beacon_notif(struct il_priv *il,
174 struct il_rx_mem_buffer *rxb); 174 struct il_rx_mem_buffer *rxb);
175bool il4965_good_plcp_health(struct il_priv *priv, 175bool il4965_good_plcp_health(struct il_priv *il,
176 struct il_rx_packet *pkt); 176 struct il_rx_packet *pkt);
177void il4965_rx_statistics(struct il_priv *priv, 177void il4965_rx_statistics(struct il_priv *il,
178 struct il_rx_mem_buffer *rxb); 178 struct il_rx_mem_buffer *rxb);
179void il4965_reply_statistics(struct il_priv *priv, 179void il4965_reply_statistics(struct il_priv *il,
180 struct il_rx_mem_buffer *rxb); 180 struct il_rx_mem_buffer *rxb);
181 181
182/* scan */ 182/* scan */
183int il4965_request_scan(struct il_priv *priv, struct ieee80211_vif *vif); 183int il4965_request_scan(struct il_priv *il, struct ieee80211_vif *vif);
184 184
185/* station mgmt */ 185/* station mgmt */
186int il4965_manage_ibss_station(struct il_priv *priv, 186int il4965_manage_ibss_station(struct il_priv *il,
187 struct ieee80211_vif *vif, bool add); 187 struct ieee80211_vif *vif, bool add);
188 188
189/* hcmd */ 189/* hcmd */
190int il4965_send_beacon_cmd(struct il_priv *priv); 190int il4965_send_beacon_cmd(struct il_priv *il);
191 191
192#ifdef CONFIG_IWLWIFI_LEGACY_DEBUG 192#ifdef CONFIG_IWLWIFI_LEGACY_DEBUG
193const char *il4965_get_tx_fail_reason(u32 status); 193const char *il4965_get_tx_fail_reason(u32 status);
@@ -197,38 +197,38 @@ il4965_get_tx_fail_reason(u32 status) { return ""; }
197#endif 197#endif
198 198
199/* station management */ 199/* station management */
200int il4965_alloc_bcast_station(struct il_priv *priv, 200int il4965_alloc_bcast_station(struct il_priv *il,
201 struct il_rxon_context *ctx); 201 struct il_rxon_context *ctx);
202int il4965_add_bssid_station(struct il_priv *priv, 202int il4965_add_bssid_station(struct il_priv *il,
203 struct il_rxon_context *ctx, 203 struct il_rxon_context *ctx,
204 const u8 *addr, u8 *sta_id_r); 204 const u8 *addr, u8 *sta_id_r);
205int il4965_remove_default_wep_key(struct il_priv *priv, 205int il4965_remove_default_wep_key(struct il_priv *il,
206 struct il_rxon_context *ctx, 206 struct il_rxon_context *ctx,
207 struct ieee80211_key_conf *key); 207 struct ieee80211_key_conf *key);
208int il4965_set_default_wep_key(struct il_priv *priv, 208int il4965_set_default_wep_key(struct il_priv *il,
209 struct il_rxon_context *ctx, 209 struct il_rxon_context *ctx,
210 struct ieee80211_key_conf *key); 210 struct ieee80211_key_conf *key);
211int il4965_restore_default_wep_keys(struct il_priv *priv, 211int il4965_restore_default_wep_keys(struct il_priv *il,
212 struct il_rxon_context *ctx); 212 struct il_rxon_context *ctx);
213int il4965_set_dynamic_key(struct il_priv *priv, 213int il4965_set_dynamic_key(struct il_priv *il,
214 struct il_rxon_context *ctx, 214 struct il_rxon_context *ctx,
215 struct ieee80211_key_conf *key, u8 sta_id); 215 struct ieee80211_key_conf *key, u8 sta_id);
216int il4965_remove_dynamic_key(struct il_priv *priv, 216int il4965_remove_dynamic_key(struct il_priv *il,
217 struct il_rxon_context *ctx, 217 struct il_rxon_context *ctx,
218 struct ieee80211_key_conf *key, u8 sta_id); 218 struct ieee80211_key_conf *key, u8 sta_id);
219void il4965_update_tkip_key(struct il_priv *priv, 219void il4965_update_tkip_key(struct il_priv *il,
220 struct il_rxon_context *ctx, 220 struct il_rxon_context *ctx,
221 struct ieee80211_key_conf *keyconf, 221 struct ieee80211_key_conf *keyconf,
222 struct ieee80211_sta *sta, u32 iv32, u16 *phase1key); 222 struct ieee80211_sta *sta, u32 iv32, u16 *phase1key);
223int il4965_sta_tx_modify_enable_tid(struct il_priv *priv, 223int il4965_sta_tx_modify_enable_tid(struct il_priv *il,
224 int sta_id, int tid); 224 int sta_id, int tid);
225int il4965_sta_rx_agg_start(struct il_priv *priv, struct ieee80211_sta *sta, 225int il4965_sta_rx_agg_start(struct il_priv *il, struct ieee80211_sta *sta,
226 int tid, u16 ssn); 226 int tid, u16 ssn);
227int il4965_sta_rx_agg_stop(struct il_priv *priv, struct ieee80211_sta *sta, 227int il4965_sta_rx_agg_stop(struct il_priv *il, struct ieee80211_sta *sta,
228 int tid); 228 int tid);
229void il4965_sta_modify_sleep_tx_count(struct il_priv *priv, 229void il4965_sta_modify_sleep_tx_count(struct il_priv *il,
230 int sta_id, int cnt); 230 int sta_id, int cnt);
231int il4965_update_bcast_stations(struct il_priv *priv); 231int il4965_update_bcast_stations(struct il_priv *il);
232 232
233/* rate */ 233/* rate */
234static inline u32 il4965_ant_idx_to_flags(u8 ant_idx) 234static inline u32 il4965_ant_idx_to_flags(u8 ant_idx)
@@ -247,10 +247,10 @@ static inline __le32 il4965_hw_set_rate_n_flags(u8 rate, u32 flags)
247} 247}
248 248
249/* eeprom */ 249/* eeprom */
250void il4965_eeprom_get_mac(const struct il_priv *priv, u8 *mac); 250void il4965_eeprom_get_mac(const struct il_priv *il, u8 *mac);
251int il4965_eeprom_acquire_semaphore(struct il_priv *priv); 251int il4965_eeprom_acquire_semaphore(struct il_priv *il);
252void il4965_eeprom_release_semaphore(struct il_priv *priv); 252void il4965_eeprom_release_semaphore(struct il_priv *il);
253int il4965_eeprom_check_version(struct il_priv *priv); 253int il4965_eeprom_check_version(struct il_priv *il);
254 254
255/* mac80211 handlers (for 4965) */ 255/* mac80211 handlers (for 4965) */
256void il4965_mac_tx(struct ieee80211_hw *hw, struct sk_buff *skb); 256void il4965_mac_tx(struct ieee80211_hw *hw, struct sk_buff *skb);