diff options
Diffstat (limited to 'drivers/net/wireless/iwlegacy/iwl-4965.h')
-rw-r--r-- | drivers/net/wireless/iwlegacy/iwl-4965.h | 120 |
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; | |||
73 | extern struct ieee80211_ops il4965_hw_ops; | 73 | extern struct ieee80211_ops il4965_hw_ops; |
74 | 74 | ||
75 | /* tx queue */ | 75 | /* tx queue */ |
76 | void il4965_free_tfds_in_queue(struct il_priv *priv, | 76 | void 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 */ |
80 | void il4965_set_rxon_chain(struct il_priv *priv, | 80 | void 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 */ |
84 | int il4965_verify_ucode(struct il_priv *priv); | 84 | int il4965_verify_ucode(struct il_priv *il); |
85 | 85 | ||
86 | /* lib */ | 86 | /* lib */ |
87 | void il4965_check_abort_status(struct il_priv *priv, | 87 | void il4965_check_abort_status(struct il_priv *il, |
88 | u8 frame_count, u32 status); | 88 | u8 frame_count, u32 status); |
89 | 89 | ||
90 | void il4965_rx_queue_reset(struct il_priv *priv, struct il_rx_queue *rxq); | 90 | void il4965_rx_queue_reset(struct il_priv *il, struct il_rx_queue *rxq); |
91 | int il4965_rx_init(struct il_priv *priv, struct il_rx_queue *rxq); | 91 | int il4965_rx_init(struct il_priv *il, struct il_rx_queue *rxq); |
92 | int il4965_hw_nic_init(struct il_priv *priv); | 92 | int il4965_hw_nic_init(struct il_priv *il); |
93 | int il4965_dump_fh(struct il_priv *priv, char **buf, bool display); | 93 | int il4965_dump_fh(struct il_priv *il, char **buf, bool display); |
94 | 94 | ||
95 | /* rx */ | 95 | /* rx */ |
96 | void il4965_rx_queue_restock(struct il_priv *priv); | 96 | void il4965_rx_queue_restock(struct il_priv *il); |
97 | void il4965_rx_replenish(struct il_priv *priv); | 97 | void il4965_rx_replenish(struct il_priv *il); |
98 | void il4965_rx_replenish_now(struct il_priv *priv); | 98 | void il4965_rx_replenish_now(struct il_priv *il); |
99 | void il4965_rx_queue_free(struct il_priv *priv, struct il_rx_queue *rxq); | 99 | void il4965_rx_queue_free(struct il_priv *il, struct il_rx_queue *rxq); |
100 | int il4965_rxq_stop(struct il_priv *priv); | 100 | int il4965_rxq_stop(struct il_priv *il); |
101 | int il4965_hwrate_to_mac80211_idx(u32 rate_n_flags, enum ieee80211_band band); | 101 | int il4965_hwrate_to_mac80211_idx(u32 rate_n_flags, enum ieee80211_band band); |
102 | void il4965_rx_reply_rx(struct il_priv *priv, | 102 | void il4965_rx_reply_rx(struct il_priv *il, |
103 | struct il_rx_mem_buffer *rxb); | 103 | struct il_rx_mem_buffer *rxb); |
104 | void il4965_rx_reply_rx_phy(struct il_priv *priv, | 104 | void il4965_rx_reply_rx_phy(struct il_priv *il, |
105 | struct il_rx_mem_buffer *rxb); | 105 | struct il_rx_mem_buffer *rxb); |
106 | void il4965_rx_handle(struct il_priv *priv); | 106 | void il4965_rx_handle(struct il_priv *il); |
107 | 107 | ||
108 | /* tx */ | 108 | /* tx */ |
109 | void il4965_hw_txq_free_tfd(struct il_priv *priv, struct il_tx_queue *txq); | 109 | void il4965_hw_txq_free_tfd(struct il_priv *il, struct il_tx_queue *txq); |
110 | int il4965_hw_txq_attach_buf_to_tfd(struct il_priv *priv, | 110 | int 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); |
113 | int il4965_hw_tx_queue_init(struct il_priv *priv, | 113 | int il4965_hw_tx_queue_init(struct il_priv *il, |
114 | struct il_tx_queue *txq); | 114 | struct il_tx_queue *txq); |
115 | void il4965_hwrate_to_tx_control(struct il_priv *priv, u32 rate_n_flags, | 115 | void 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); |
117 | int il4965_tx_skb(struct il_priv *priv, struct sk_buff *skb); | 117 | int il4965_tx_skb(struct il_priv *il, struct sk_buff *skb); |
118 | int il4965_tx_agg_start(struct il_priv *priv, struct ieee80211_vif *vif, | 118 | int 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); |
120 | int il4965_tx_agg_stop(struct il_priv *priv, struct ieee80211_vif *vif, | 120 | int 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); |
122 | int il4965_txq_check_empty(struct il_priv *priv, | 122 | int 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); |
124 | void il4965_rx_reply_compressed_ba(struct il_priv *priv, | 124 | void il4965_rx_reply_compressed_ba(struct il_priv *il, |
125 | struct il_rx_mem_buffer *rxb); | 125 | struct il_rx_mem_buffer *rxb); |
126 | int il4965_tx_queue_reclaim(struct il_priv *priv, int txq_id, int index); | 126 | int il4965_tx_queue_reclaim(struct il_priv *il, int txq_id, int index); |
127 | void il4965_hw_txq_ctx_free(struct il_priv *priv); | 127 | void il4965_hw_txq_ctx_free(struct il_priv *il); |
128 | int il4965_txq_ctx_alloc(struct il_priv *priv); | 128 | int il4965_txq_ctx_alloc(struct il_priv *il); |
129 | void il4965_txq_ctx_reset(struct il_priv *priv); | 129 | void il4965_txq_ctx_reset(struct il_priv *il); |
130 | void il4965_txq_ctx_stop(struct il_priv *priv); | 130 | void il4965_txq_ctx_stop(struct il_priv *il); |
131 | void il4965_txq_set_sched(struct il_priv *priv, u32 mask); | 131 | void 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 | */ |
136 | void il4965_set_wr_ptrs(struct il_priv *priv, int txq_id, u32 index); | 136 | void 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 | */ |
144 | void il4965_tx_queue_set_status(struct il_priv *priv, | 144 | void 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 | ||
170 | u8 il4965_toggle_tx_ant(struct il_priv *priv, u8 ant_idx, u8 valid); | 170 | u8 il4965_toggle_tx_ant(struct il_priv *il, u8 ant_idx, u8 valid); |
171 | 171 | ||
172 | /* rx */ | 172 | /* rx */ |
173 | void il4965_rx_missed_beacon_notif(struct il_priv *priv, | 173 | void il4965_rx_missed_beacon_notif(struct il_priv *il, |
174 | struct il_rx_mem_buffer *rxb); | 174 | struct il_rx_mem_buffer *rxb); |
175 | bool il4965_good_plcp_health(struct il_priv *priv, | 175 | bool il4965_good_plcp_health(struct il_priv *il, |
176 | struct il_rx_packet *pkt); | 176 | struct il_rx_packet *pkt); |
177 | void il4965_rx_statistics(struct il_priv *priv, | 177 | void il4965_rx_statistics(struct il_priv *il, |
178 | struct il_rx_mem_buffer *rxb); | 178 | struct il_rx_mem_buffer *rxb); |
179 | void il4965_reply_statistics(struct il_priv *priv, | 179 | void 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 */ |
183 | int il4965_request_scan(struct il_priv *priv, struct ieee80211_vif *vif); | 183 | int il4965_request_scan(struct il_priv *il, struct ieee80211_vif *vif); |
184 | 184 | ||
185 | /* station mgmt */ | 185 | /* station mgmt */ |
186 | int il4965_manage_ibss_station(struct il_priv *priv, | 186 | int 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 */ |
190 | int il4965_send_beacon_cmd(struct il_priv *priv); | 190 | int il4965_send_beacon_cmd(struct il_priv *il); |
191 | 191 | ||
192 | #ifdef CONFIG_IWLWIFI_LEGACY_DEBUG | 192 | #ifdef CONFIG_IWLWIFI_LEGACY_DEBUG |
193 | const char *il4965_get_tx_fail_reason(u32 status); | 193 | const 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 */ |
200 | int il4965_alloc_bcast_station(struct il_priv *priv, | 200 | int il4965_alloc_bcast_station(struct il_priv *il, |
201 | struct il_rxon_context *ctx); | 201 | struct il_rxon_context *ctx); |
202 | int il4965_add_bssid_station(struct il_priv *priv, | 202 | int 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); |
205 | int il4965_remove_default_wep_key(struct il_priv *priv, | 205 | int 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); |
208 | int il4965_set_default_wep_key(struct il_priv *priv, | 208 | int 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); |
211 | int il4965_restore_default_wep_keys(struct il_priv *priv, | 211 | int il4965_restore_default_wep_keys(struct il_priv *il, |
212 | struct il_rxon_context *ctx); | 212 | struct il_rxon_context *ctx); |
213 | int il4965_set_dynamic_key(struct il_priv *priv, | 213 | int 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); |
216 | int il4965_remove_dynamic_key(struct il_priv *priv, | 216 | int 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); |
219 | void il4965_update_tkip_key(struct il_priv *priv, | 219 | void 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); |
223 | int il4965_sta_tx_modify_enable_tid(struct il_priv *priv, | 223 | int il4965_sta_tx_modify_enable_tid(struct il_priv *il, |
224 | int sta_id, int tid); | 224 | int sta_id, int tid); |
225 | int il4965_sta_rx_agg_start(struct il_priv *priv, struct ieee80211_sta *sta, | 225 | int il4965_sta_rx_agg_start(struct il_priv *il, struct ieee80211_sta *sta, |
226 | int tid, u16 ssn); | 226 | int tid, u16 ssn); |
227 | int il4965_sta_rx_agg_stop(struct il_priv *priv, struct ieee80211_sta *sta, | 227 | int il4965_sta_rx_agg_stop(struct il_priv *il, struct ieee80211_sta *sta, |
228 | int tid); | 228 | int tid); |
229 | void il4965_sta_modify_sleep_tx_count(struct il_priv *priv, | 229 | void il4965_sta_modify_sleep_tx_count(struct il_priv *il, |
230 | int sta_id, int cnt); | 230 | int sta_id, int cnt); |
231 | int il4965_update_bcast_stations(struct il_priv *priv); | 231 | int il4965_update_bcast_stations(struct il_priv *il); |
232 | 232 | ||
233 | /* rate */ | 233 | /* rate */ |
234 | static inline u32 il4965_ant_idx_to_flags(u8 ant_idx) | 234 | static 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 */ |
250 | void il4965_eeprom_get_mac(const struct il_priv *priv, u8 *mac); | 250 | void il4965_eeprom_get_mac(const struct il_priv *il, u8 *mac); |
251 | int il4965_eeprom_acquire_semaphore(struct il_priv *priv); | 251 | int il4965_eeprom_acquire_semaphore(struct il_priv *il); |
252 | void il4965_eeprom_release_semaphore(struct il_priv *priv); | 252 | void il4965_eeprom_release_semaphore(struct il_priv *il); |
253 | int il4965_eeprom_check_version(struct il_priv *priv); | 253 | int il4965_eeprom_check_version(struct il_priv *il); |
254 | 254 | ||
255 | /* mac80211 handlers (for 4965) */ | 255 | /* mac80211 handlers (for 4965) */ |
256 | void il4965_mac_tx(struct ieee80211_hw *hw, struct sk_buff *skb); | 256 | void il4965_mac_tx(struct ieee80211_hw *hw, struct sk_buff *skb); |