diff options
author | Christoph Hellwig <hch@lst.de> | 2008-01-27 19:41:47 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:04:35 -0500 |
commit | bb8c093bdea62f2ae371b98ebff81b0407852faf (patch) | |
tree | 7937a70c333356a85b344f883608eeaf93dd3d2b /drivers/net/wireless/iwlwifi/iwl-4965-rs.h | |
parent | 403ab56b1c2786b0e1d58c27f5ce667b529c7faa (diff) |
iwlwifi: cleanup namespace
Prefix all symbols with iwl3945_ or iwl4965_ and thus allow building
the driver into the kernel. Also remove all the useless default
statements in Kconfig while we're at it.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Zhu Yi <yi.zhu@intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-4965-rs.h')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-4965-rs.h | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-4965-rs.h b/drivers/net/wireless/iwlwifi/iwl-4965-rs.h index f735752abf30..4259099eae71 100644 --- a/drivers/net/wireless/iwlwifi/iwl-4965-rs.h +++ b/drivers/net/wireless/iwlwifi/iwl-4965-rs.h | |||
@@ -29,7 +29,7 @@ | |||
29 | 29 | ||
30 | #include "iwl-4965.h" | 30 | #include "iwl-4965.h" |
31 | 31 | ||
32 | struct iwl_rate_info { | 32 | struct iwl4965_rate_info { |
33 | u8 plcp; | 33 | u8 plcp; |
34 | u8 plcp_siso; | 34 | u8 plcp_siso; |
35 | u8 plcp_mimo; | 35 | u8 plcp_mimo; |
@@ -197,9 +197,9 @@ enum { | |||
197 | 197 | ||
198 | #define LQ_SIZE 2 | 198 | #define LQ_SIZE 2 |
199 | 199 | ||
200 | extern const struct iwl_rate_info iwl_rates[IWL_RATE_COUNT]; | 200 | extern const struct iwl4965_rate_info iwl4965_rates[IWL_RATE_COUNT]; |
201 | 201 | ||
202 | enum iwl_table_type { | 202 | enum iwl4965_table_type { |
203 | LQ_NONE, | 203 | LQ_NONE, |
204 | LQ_G, | 204 | LQ_G, |
205 | LQ_A, | 205 | LQ_A, |
@@ -208,59 +208,59 @@ enum iwl_table_type { | |||
208 | LQ_MAX, | 208 | LQ_MAX, |
209 | }; | 209 | }; |
210 | 210 | ||
211 | enum iwl_antenna_type { | 211 | enum iwl4965_antenna_type { |
212 | ANT_NONE, | 212 | ANT_NONE, |
213 | ANT_MAIN, | 213 | ANT_MAIN, |
214 | ANT_AUX, | 214 | ANT_AUX, |
215 | ANT_BOTH, | 215 | ANT_BOTH, |
216 | }; | 216 | }; |
217 | 217 | ||
218 | static inline u8 iwl_get_prev_ieee_rate(u8 rate_index) | 218 | static inline u8 iwl4965_get_prev_ieee_rate(u8 rate_index) |
219 | { | 219 | { |
220 | u8 rate = iwl_rates[rate_index].prev_ieee; | 220 | u8 rate = iwl4965_rates[rate_index].prev_ieee; |
221 | 221 | ||
222 | if (rate == IWL_RATE_INVALID) | 222 | if (rate == IWL_RATE_INVALID) |
223 | rate = rate_index; | 223 | rate = rate_index; |
224 | return rate; | 224 | return rate; |
225 | } | 225 | } |
226 | 226 | ||
227 | extern int iwl_rate_index_from_plcp(int plcp); | 227 | extern int iwl4965_rate_index_from_plcp(int plcp); |
228 | 228 | ||
229 | /** | 229 | /** |
230 | * iwl_fill_rs_info - Fill an output text buffer with the rate representation | 230 | * iwl4965_fill_rs_info - Fill an output text buffer with the rate representation |
231 | * | 231 | * |
232 | * NOTE: This is provided as a quick mechanism for a user to visualize | 232 | * NOTE: This is provided as a quick mechanism for a user to visualize |
233 | * the performance of the rate control algorithm and is not meant to be | 233 | * the performance of the rate control algorithm and is not meant to be |
234 | * parsed software. | 234 | * parsed software. |
235 | */ | 235 | */ |
236 | extern int iwl_fill_rs_info(struct ieee80211_hw *, char *buf, u8 sta_id); | 236 | extern int iwl4965_fill_rs_info(struct ieee80211_hw *, char *buf, u8 sta_id); |
237 | 237 | ||
238 | /** | 238 | /** |
239 | * iwl_rate_scale_init - Initialize the rate scale table based on assoc info | 239 | * iwl4965_rate_scale_init - Initialize the rate scale table based on assoc info |
240 | * | 240 | * |
241 | * The specific throughput table used is based on the type of network | 241 | * The specific throughput table used is based on the type of network |
242 | * the associated with, including A, B, G, and G w/ TGG protection | 242 | * the associated with, including A, B, G, and G w/ TGG protection |
243 | */ | 243 | */ |
244 | extern void iwl_rate_scale_init(struct ieee80211_hw *hw, s32 sta_id); | 244 | extern void iwl4965_rate_scale_init(struct ieee80211_hw *hw, s32 sta_id); |
245 | 245 | ||
246 | /** | 246 | /** |
247 | * iwl_rate_control_register - Register the rate control algorithm callbacks | 247 | * iwl4965_rate_control_register - Register the rate control algorithm callbacks |
248 | * | 248 | * |
249 | * Since the rate control algorithm is hardware specific, there is no need | 249 | * Since the rate control algorithm is hardware specific, there is no need |
250 | * or reason to place it as a stand alone module. The driver can call | 250 | * or reason to place it as a stand alone module. The driver can call |
251 | * iwl_rate_control_register in order to register the rate control callbacks | 251 | * iwl4965_rate_control_register in order to register the rate control callbacks |
252 | * with the mac80211 subsystem. This should be performed prior to calling | 252 | * with the mac80211 subsystem. This should be performed prior to calling |
253 | * ieee80211_register_hw | 253 | * ieee80211_register_hw |
254 | * | 254 | * |
255 | */ | 255 | */ |
256 | extern void iwl_rate_control_register(struct ieee80211_hw *hw); | 256 | extern void iwl4965_rate_control_register(struct ieee80211_hw *hw); |
257 | 257 | ||
258 | /** | 258 | /** |
259 | * iwl_rate_control_unregister - Unregister the rate control callbacks | 259 | * iwl4965_rate_control_unregister - Unregister the rate control callbacks |
260 | * | 260 | * |
261 | * This should be called after calling ieee80211_unregister_hw, but before | 261 | * This should be called after calling ieee80211_unregister_hw, but before |
262 | * the driver is unloaded. | 262 | * the driver is unloaded. |
263 | */ | 263 | */ |
264 | extern void iwl_rate_control_unregister(struct ieee80211_hw *hw); | 264 | extern void iwl4965_rate_control_unregister(struct ieee80211_hw *hw); |
265 | 265 | ||
266 | #endif | 266 | #endif |