diff options
author | Johannes Berg <johannes.berg@intel.com> | 2010-09-22 12:02:11 -0400 |
---|---|---|
committer | Wey-Yi Guy <wey-yi.w.guy@intel.com> | 2010-10-07 18:52:44 -0400 |
commit | 0de76736552cff02cc6ee4bae41e5502d7673f8e (patch) | |
tree | d8028aae801f0d744df456b4921832976126fe86 | |
parent | 14e8e4afeb7e90f1f2d3f2d3b54da57c27f59f38 (diff) |
iwlwifi: clean up declarations
A number of declarations in iwl-core.h should
be in agn specific files, and also rename the
iwl-calib.h file to iwl-agn-calib.h to better
reflect that it belongs to agn.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-4965.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn-calib.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn-calib.h (renamed from drivers/net/wireless/iwlwifi/iwl-calib.h) | 4 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn-rx.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn-ucode.c | 1 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn.h | 23 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-core.h | 33 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-debugfs.c | 1 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-rx.c | 1 |
10 files changed, 32 insertions, 39 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-4965.c b/drivers/net/wireless/iwlwifi/iwl-4965.c index 28ba563197cb..b207e3e9299f 100644 --- a/drivers/net/wireless/iwlwifi/iwl-4965.c +++ b/drivers/net/wireless/iwlwifi/iwl-4965.c | |||
@@ -43,7 +43,7 @@ | |||
43 | #include "iwl-core.h" | 43 | #include "iwl-core.h" |
44 | #include "iwl-io.h" | 44 | #include "iwl-io.h" |
45 | #include "iwl-helpers.h" | 45 | #include "iwl-helpers.h" |
46 | #include "iwl-calib.h" | 46 | #include "iwl-agn-calib.h" |
47 | #include "iwl-sta.h" | 47 | #include "iwl-sta.h" |
48 | #include "iwl-agn-led.h" | 48 | #include "iwl-agn-led.h" |
49 | #include "iwl-agn.h" | 49 | #include "iwl-agn.h" |
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn-calib.c b/drivers/net/wireless/iwlwifi/iwl-agn-calib.c index 4c5ab783737f..e2019e756936 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn-calib.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn-calib.c | |||
@@ -65,7 +65,7 @@ | |||
65 | 65 | ||
66 | #include "iwl-dev.h" | 66 | #include "iwl-dev.h" |
67 | #include "iwl-core.h" | 67 | #include "iwl-core.h" |
68 | #include "iwl-calib.h" | 68 | #include "iwl-agn-calib.h" |
69 | 69 | ||
70 | /***************************************************************************** | 70 | /***************************************************************************** |
71 | * INIT calibrations framework | 71 | * INIT calibrations framework |
diff --git a/drivers/net/wireless/iwlwifi/iwl-calib.h b/drivers/net/wireless/iwlwifi/iwl-agn-calib.h index ba9523fbb300..e37ae7261630 100644 --- a/drivers/net/wireless/iwlwifi/iwl-calib.h +++ b/drivers/net/wireless/iwlwifi/iwl-agn-calib.h | |||
@@ -79,4 +79,8 @@ static inline void iwl_chain_noise_reset(struct iwl_priv *priv) | |||
79 | priv->cfg->ops->utils->chain_noise_reset(priv); | 79 | priv->cfg->ops->utils->chain_noise_reset(priv); |
80 | } | 80 | } |
81 | 81 | ||
82 | int iwl_send_calib_results(struct iwl_priv *priv); | ||
83 | int iwl_calib_set(struct iwl_calib_result *res, const u8 *buf, int len); | ||
84 | void iwl_calib_free_results(struct iwl_priv *priv); | ||
85 | |||
82 | #endif /* __iwl_calib_h__ */ | 86 | #endif /* __iwl_calib_h__ */ |
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn-rx.c b/drivers/net/wireless/iwlwifi/iwl-agn-rx.c index 1e08eb455474..bbd40b7dd597 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn-rx.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn-rx.c | |||
@@ -34,7 +34,7 @@ | |||
34 | 34 | ||
35 | #include "iwl-dev.h" | 35 | #include "iwl-dev.h" |
36 | #include "iwl-core.h" | 36 | #include "iwl-core.h" |
37 | #include "iwl-calib.h" | 37 | #include "iwl-agn-calib.h" |
38 | #include "iwl-sta.h" | 38 | #include "iwl-sta.h" |
39 | #include "iwl-io.h" | 39 | #include "iwl-io.h" |
40 | #include "iwl-helpers.h" | 40 | #include "iwl-helpers.h" |
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn-ucode.c b/drivers/net/wireless/iwlwifi/iwl-agn-ucode.c index e1dd76267dca..3a9537953875 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn-ucode.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn-ucode.c | |||
@@ -38,6 +38,7 @@ | |||
38 | #include "iwl-helpers.h" | 38 | #include "iwl-helpers.h" |
39 | #include "iwl-agn-hw.h" | 39 | #include "iwl-agn-hw.h" |
40 | #include "iwl-agn.h" | 40 | #include "iwl-agn.h" |
41 | #include "iwl-agn-calib.h" | ||
41 | 42 | ||
42 | static const s8 iwlagn_default_queue_to_tx_fifo[] = { | 43 | static const s8 iwlagn_default_queue_to_tx_fifo[] = { |
43 | IWL_TX_FIFO_VO, | 44 | IWL_TX_FIFO_VO, |
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn.c b/drivers/net/wireless/iwlwifi/iwl-agn.c index b1af79e7020a..763a93d832f8 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn.c | |||
@@ -57,7 +57,7 @@ | |||
57 | #include "iwl-io.h" | 57 | #include "iwl-io.h" |
58 | #include "iwl-helpers.h" | 58 | #include "iwl-helpers.h" |
59 | #include "iwl-sta.h" | 59 | #include "iwl-sta.h" |
60 | #include "iwl-calib.h" | 60 | #include "iwl-agn-calib.h" |
61 | #include "iwl-agn.h" | 61 | #include "iwl-agn.h" |
62 | 62 | ||
63 | 63 | ||
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn.h b/drivers/net/wireless/iwlwifi/iwl-agn.h index 1fca5af35771..b4deef4e91db 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn.h +++ b/drivers/net/wireless/iwlwifi/iwl-agn.h | |||
@@ -177,8 +177,15 @@ void iwlagn_rx_reply_rx(struct iwl_priv *priv, | |||
177 | struct iwl_rx_mem_buffer *rxb); | 177 | struct iwl_rx_mem_buffer *rxb); |
178 | void iwlagn_rx_reply_rx_phy(struct iwl_priv *priv, | 178 | void iwlagn_rx_reply_rx_phy(struct iwl_priv *priv, |
179 | struct iwl_rx_mem_buffer *rxb); | 179 | struct iwl_rx_mem_buffer *rxb); |
180 | void iwl_rx_handle(struct iwl_priv *priv); | ||
180 | 181 | ||
181 | /* tx */ | 182 | /* tx */ |
183 | void iwl_hw_txq_free_tfd(struct iwl_priv *priv, struct iwl_tx_queue *txq); | ||
184 | int iwl_hw_txq_attach_buf_to_tfd(struct iwl_priv *priv, | ||
185 | struct iwl_tx_queue *txq, | ||
186 | dma_addr_t addr, u16 len, u8 reset, u8 pad); | ||
187 | int iwl_hw_tx_queue_init(struct iwl_priv *priv, | ||
188 | struct iwl_tx_queue *txq); | ||
182 | void iwlagn_hwrate_to_tx_control(struct iwl_priv *priv, u32 rate_n_flags, | 189 | void iwlagn_hwrate_to_tx_control(struct iwl_priv *priv, u32 rate_n_flags, |
183 | struct ieee80211_tx_info *info); | 190 | struct ieee80211_tx_info *info); |
184 | int iwlagn_tx_skb(struct iwl_priv *priv, struct sk_buff *skb); | 191 | int iwlagn_tx_skb(struct iwl_priv *priv, struct sk_buff *skb); |
@@ -289,4 +296,20 @@ void iwl_sta_modify_ps_wake(struct iwl_priv *priv, int sta_id); | |||
289 | void iwl_sta_modify_sleep_tx_count(struct iwl_priv *priv, int sta_id, int cnt); | 296 | void iwl_sta_modify_sleep_tx_count(struct iwl_priv *priv, int sta_id, int cnt); |
290 | int iwl_update_bcast_stations(struct iwl_priv *priv); | 297 | int iwl_update_bcast_stations(struct iwl_priv *priv); |
291 | 298 | ||
299 | /* rate */ | ||
300 | static inline u32 iwl_ant_idx_to_flags(u8 ant_idx) | ||
301 | { | ||
302 | return BIT(ant_idx) << RATE_MCS_ANT_POS; | ||
303 | } | ||
304 | |||
305 | static inline u8 iwl_hw_get_rate(__le32 rate_n_flags) | ||
306 | { | ||
307 | return le32_to_cpu(rate_n_flags) & 0xFF; | ||
308 | } | ||
309 | |||
310 | static inline __le32 iwl_hw_set_rate_n_flags(u8 rate, u32 flags) | ||
311 | { | ||
312 | return cpu_to_le32(flags|(u32)rate); | ||
313 | } | ||
314 | |||
292 | #endif /* __iwl_agn_h__ */ | 315 | #endif /* __iwl_agn_h__ */ |
diff --git a/drivers/net/wireless/iwlwifi/iwl-core.h b/drivers/net/wireless/iwlwifi/iwl-core.h index c01262cf7249..a5e12b70c594 100644 --- a/drivers/net/wireless/iwlwifi/iwl-core.h +++ b/drivers/net/wireless/iwlwifi/iwl-core.h | |||
@@ -396,7 +396,6 @@ struct iwl_cfg { | |||
396 | 396 | ||
397 | struct ieee80211_hw *iwl_alloc_all(struct iwl_cfg *cfg, | 397 | struct ieee80211_hw *iwl_alloc_all(struct iwl_cfg *cfg, |
398 | struct ieee80211_ops *hw_ops); | 398 | struct ieee80211_ops *hw_ops); |
399 | void iwl_activate_qos(struct iwl_priv *priv); | ||
400 | int iwl_mac_conf_tx(struct ieee80211_hw *hw, u16 queue, | 399 | int iwl_mac_conf_tx(struct ieee80211_hw *hw, u16 queue, |
401 | const struct ieee80211_tx_queue_params *params); | 400 | const struct ieee80211_tx_queue_params *params); |
402 | int iwl_mac_tx_last_beacon(struct ieee80211_hw *hw); | 401 | int iwl_mac_tx_last_beacon(struct ieee80211_hw *hw); |
@@ -505,7 +504,6 @@ void iwl_rx_reply_error(struct iwl_priv *priv, | |||
505 | ******************************************************/ | 504 | ******************************************************/ |
506 | void iwl_cmd_queue_free(struct iwl_priv *priv); | 505 | void iwl_cmd_queue_free(struct iwl_priv *priv); |
507 | int iwl_rx_queue_alloc(struct iwl_priv *priv); | 506 | int iwl_rx_queue_alloc(struct iwl_priv *priv); |
508 | void iwl_rx_handle(struct iwl_priv *priv); | ||
509 | void iwl_rx_queue_update_write_ptr(struct iwl_priv *priv, | 507 | void iwl_rx_queue_update_write_ptr(struct iwl_priv *priv, |
510 | struct iwl_rx_queue *q); | 508 | struct iwl_rx_queue *q); |
511 | int iwl_rx_queue_space(const struct iwl_rx_queue *q); | 509 | int iwl_rx_queue_space(const struct iwl_rx_queue *q); |
@@ -523,12 +521,6 @@ void iwl_rx_csa(struct iwl_priv *priv, struct iwl_rx_mem_buffer *rxb); | |||
523 | /***************************************************** | 521 | /***************************************************** |
524 | * TX | 522 | * TX |
525 | ******************************************************/ | 523 | ******************************************************/ |
526 | void iwl_hw_txq_free_tfd(struct iwl_priv *priv, struct iwl_tx_queue *txq); | ||
527 | int iwl_hw_txq_attach_buf_to_tfd(struct iwl_priv *priv, | ||
528 | struct iwl_tx_queue *txq, | ||
529 | dma_addr_t addr, u16 len, u8 reset, u8 pad); | ||
530 | int iwl_hw_tx_queue_init(struct iwl_priv *priv, | ||
531 | struct iwl_tx_queue *txq); | ||
532 | void iwl_txq_update_write_ptr(struct iwl_priv *priv, struct iwl_tx_queue *txq); | 524 | void iwl_txq_update_write_ptr(struct iwl_priv *priv, struct iwl_tx_queue *txq); |
533 | int iwl_tx_queue_init(struct iwl_priv *priv, struct iwl_tx_queue *txq, | 525 | int iwl_tx_queue_init(struct iwl_priv *priv, struct iwl_tx_queue *txq, |
534 | int slots_num, u32 txq_id); | 526 | int slots_num, u32 txq_id); |
@@ -547,24 +539,6 @@ int iwl_set_tx_power(struct iwl_priv *priv, s8 tx_power, bool force); | |||
547 | u8 iwl_rate_get_lowest_plcp(struct iwl_priv *priv, | 539 | u8 iwl_rate_get_lowest_plcp(struct iwl_priv *priv, |
548 | struct iwl_rxon_context *ctx); | 540 | struct iwl_rxon_context *ctx); |
549 | 541 | ||
550 | static inline u32 iwl_ant_idx_to_flags(u8 ant_idx) | ||
551 | { | ||
552 | return BIT(ant_idx) << RATE_MCS_ANT_POS; | ||
553 | } | ||
554 | |||
555 | static inline u8 iwl_hw_get_rate(__le32 rate_n_flags) | ||
556 | { | ||
557 | return le32_to_cpu(rate_n_flags) & 0xFF; | ||
558 | } | ||
559 | static inline u32 iwl_hw_get_rate_n_flags(__le32 rate_n_flags) | ||
560 | { | ||
561 | return le32_to_cpu(rate_n_flags) & 0x1FFFF; | ||
562 | } | ||
563 | static inline __le32 iwl_hw_set_rate_n_flags(u8 rate, u32 flags) | ||
564 | { | ||
565 | return cpu_to_le32(flags|(u32)rate); | ||
566 | } | ||
567 | |||
568 | /******************************************************************************* | 542 | /******************************************************************************* |
569 | * Scanning | 543 | * Scanning |
570 | ******************************************************************************/ | 544 | ******************************************************************************/ |
@@ -600,13 +574,6 @@ void iwl_cancel_scan_deferred_work(struct iwl_priv *priv); | |||
600 | 574 | ||
601 | #define IWL_SCAN_CHECK_WATCHDOG (HZ * 7) | 575 | #define IWL_SCAN_CHECK_WATCHDOG (HZ * 7) |
602 | 576 | ||
603 | /******************************************************************************* | ||
604 | * Calibrations - implemented in iwl-calib.c | ||
605 | ******************************************************************************/ | ||
606 | int iwl_send_calib_results(struct iwl_priv *priv); | ||
607 | int iwl_calib_set(struct iwl_calib_result *res, const u8 *buf, int len); | ||
608 | void iwl_calib_free_results(struct iwl_priv *priv); | ||
609 | |||
610 | /***************************************************** | 577 | /***************************************************** |
611 | * S e n d i n g H o s t C o m m a n d s * | 578 | * S e n d i n g H o s t C o m m a n d s * |
612 | *****************************************************/ | 579 | *****************************************************/ |
diff --git a/drivers/net/wireless/iwlwifi/iwl-debugfs.c b/drivers/net/wireless/iwlwifi/iwl-debugfs.c index fc340311ea0a..96d9085639e3 100644 --- a/drivers/net/wireless/iwlwifi/iwl-debugfs.c +++ b/drivers/net/wireless/iwlwifi/iwl-debugfs.c | |||
@@ -39,7 +39,6 @@ | |||
39 | #include "iwl-debug.h" | 39 | #include "iwl-debug.h" |
40 | #include "iwl-core.h" | 40 | #include "iwl-core.h" |
41 | #include "iwl-io.h" | 41 | #include "iwl-io.h" |
42 | #include "iwl-calib.h" | ||
43 | 42 | ||
44 | /* create and remove of files */ | 43 | /* create and remove of files */ |
45 | #define DEBUGFS_ADD_FILE(name, parent, mode) do { \ | 44 | #define DEBUGFS_ADD_FILE(name, parent, mode) do { \ |
diff --git a/drivers/net/wireless/iwlwifi/iwl-rx.c b/drivers/net/wireless/iwlwifi/iwl-rx.c index 10be197b0f22..f436270ca39a 100644 --- a/drivers/net/wireless/iwlwifi/iwl-rx.c +++ b/drivers/net/wireless/iwlwifi/iwl-rx.c | |||
@@ -36,7 +36,6 @@ | |||
36 | #include "iwl-core.h" | 36 | #include "iwl-core.h" |
37 | #include "iwl-sta.h" | 37 | #include "iwl-sta.h" |
38 | #include "iwl-io.h" | 38 | #include "iwl-io.h" |
39 | #include "iwl-calib.h" | ||
40 | #include "iwl-helpers.h" | 39 | #include "iwl-helpers.h" |
41 | /************************** RX-FUNCTIONS ****************************/ | 40 | /************************** RX-FUNCTIONS ****************************/ |
42 | /* | 41 | /* |