diff options
author | Ron Rindjunsky <ron.rindjunsky@intel.com> | 2008-05-04 22:22:43 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-05-14 16:29:46 -0400 |
commit | 1053d35f4ed6876ad9d3a14cdae363db0a7e9b0a (patch) | |
tree | 64c30d5add3bd5be8857803c06c2aedf71182c72 /drivers/net/wireless/iwlwifi/iwl-dev.h | |
parent | 5a676bbeaf9e534b75286f2294ec57a4c544f1d2 (diff) |
iwlwifi: move NIC init and Tx queues init to iwlcore
This patch does the following:
1 - change hw_nic_init from a handler to a function
2 - move hw_nic_init function to iwlcore
3 - open a new file - iwl-tx.c
4 - move all Tx queues initialization (part of NIC init) to iwl-tx.c
5 - move iwl_rx_init, previously as part of the NIC init, to iwl-rx.c
6 - iwl4965_tfd_frame rename to iwl_tfd_frame
Signed-off-by: Ron Rindjunsky <ron.rindjunsky@intel.com>
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-dev.h')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-dev.h | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-dev.h b/drivers/net/wireless/iwlwifi/iwl-dev.h index 23cae4c13459..e730583d88cc 100644 --- a/drivers/net/wireless/iwlwifi/iwl-dev.h +++ b/drivers/net/wireless/iwlwifi/iwl-dev.h | |||
@@ -138,7 +138,7 @@ struct iwl4965_tx_info { | |||
138 | */ | 138 | */ |
139 | struct iwl4965_tx_queue { | 139 | struct iwl4965_tx_queue { |
140 | struct iwl4965_queue q; | 140 | struct iwl4965_queue q; |
141 | struct iwl4965_tfd_frame *bd; | 141 | struct iwl_tfd_frame *bd; |
142 | struct iwl_cmd *cmd; | 142 | struct iwl_cmd *cmd; |
143 | dma_addr_t dma_addr_cmd; | 143 | dma_addr_t dma_addr_cmd; |
144 | struct iwl4965_tx_info *txb; | 144 | struct iwl4965_tx_info *txb; |
@@ -649,9 +649,6 @@ extern int iwl4965_is_duplicate_packet(struct iwl_priv *priv, | |||
649 | struct ieee80211_hdr *header); | 649 | struct ieee80211_hdr *header); |
650 | extern int iwl4965_calc_db_from_ratio(int sig_ratio); | 650 | extern int iwl4965_calc_db_from_ratio(int sig_ratio); |
651 | extern int iwl4965_calc_sig_qual(int rssi_dbm, int noise_dbm); | 651 | extern int iwl4965_calc_sig_qual(int rssi_dbm, int noise_dbm); |
652 | extern int iwl4965_tx_queue_init(struct iwl_priv *priv, | ||
653 | struct iwl4965_tx_queue *txq, int count, u32 id); | ||
654 | extern void iwl4965_tx_queue_free(struct iwl_priv *priv, struct iwl4965_tx_queue *txq); | ||
655 | extern unsigned int iwl4965_fill_beacon_frame(struct iwl_priv *priv, | 652 | extern unsigned int iwl4965_fill_beacon_frame(struct iwl_priv *priv, |
656 | struct ieee80211_hdr *hdr, | 653 | struct ieee80211_hdr *hdr, |
657 | const u8 *dest, int left); | 654 | const u8 *dest, int left); |
@@ -692,17 +689,12 @@ extern void iwl4965_hw_setup_deferred_work(struct iwl_priv *priv); | |||
692 | extern void iwl4965_hw_cancel_deferred_work(struct iwl_priv *priv); | 689 | extern void iwl4965_hw_cancel_deferred_work(struct iwl_priv *priv); |
693 | extern int iwl4965_hw_rxq_stop(struct iwl_priv *priv); | 690 | extern int iwl4965_hw_rxq_stop(struct iwl_priv *priv); |
694 | extern int iwl4965_hw_set_hw_params(struct iwl_priv *priv); | 691 | extern int iwl4965_hw_set_hw_params(struct iwl_priv *priv); |
695 | extern int iwl4965_hw_nic_init(struct iwl_priv *priv); | ||
696 | extern int iwl4965_hw_nic_stop_master(struct iwl_priv *priv); | 692 | extern int iwl4965_hw_nic_stop_master(struct iwl_priv *priv); |
697 | extern void iwl4965_hw_txq_ctx_free(struct iwl_priv *priv); | ||
698 | extern void iwl4965_hw_txq_ctx_stop(struct iwl_priv *priv); | 693 | extern void iwl4965_hw_txq_ctx_stop(struct iwl_priv *priv); |
699 | extern int iwl4965_hw_nic_reset(struct iwl_priv *priv); | 694 | extern int iwl4965_hw_nic_reset(struct iwl_priv *priv); |
700 | extern int iwl4965_hw_txq_attach_buf_to_tfd(struct iwl_priv *priv, void *tfd, | 695 | extern int iwl4965_hw_txq_attach_buf_to_tfd(struct iwl_priv *priv, void *tfd, |
701 | dma_addr_t addr, u16 len); | 696 | dma_addr_t addr, u16 len); |
702 | extern int iwl4965_hw_txq_free_tfd(struct iwl_priv *priv, struct iwl4965_tx_queue *txq); | ||
703 | extern int iwl4965_hw_get_temperature(struct iwl_priv *priv); | 697 | extern int iwl4965_hw_get_temperature(struct iwl_priv *priv); |
704 | extern int iwl4965_hw_tx_queue_init(struct iwl_priv *priv, | ||
705 | struct iwl4965_tx_queue *txq); | ||
706 | extern unsigned int iwl4965_hw_get_beacon_cmd(struct iwl_priv *priv, | 698 | extern unsigned int iwl4965_hw_get_beacon_cmd(struct iwl_priv *priv, |
707 | struct iwl4965_frame *frame, u8 rate); | 699 | struct iwl4965_frame *frame, u8 rate); |
708 | extern int iwl4965_hw_get_rx_read(struct iwl_priv *priv); | 700 | extern int iwl4965_hw_get_rx_read(struct iwl_priv *priv); |