diff options
author | Wey-Yi Guy <wey-yi.w.guy@intel.com> | 2010-03-16 20:41:23 -0400 |
---|---|---|
committer | Reinette Chatre <reinette.chatre@intel.com> | 2010-03-25 14:18:05 -0400 |
commit | 19e6cda094002e9756a3d181cbb4c31ef2a9b6bb (patch) | |
tree | 4f3621a912b087d2a93d9b73d52a1f105d41494f /drivers/net/wireless/iwlwifi/iwl-agn-tx.c | |
parent | b305a08058f794c8a99c5ee87827b92d6b8c24ae (diff) |
iwlwifi: move hw related defines to separate file
Multiple iwlagn based devices shared the same hw definitions.
Move device hardware related defines from iwl-5000-hw.h to iwl-agn-hw.h
file.
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-agn-tx.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn-tx.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn-tx.c b/drivers/net/wireless/iwlwifi/iwl-agn-tx.c index 44b3d53e9c76..43bdd9d9df4d 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn-tx.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn-tx.c | |||
@@ -36,7 +36,7 @@ | |||
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-5000-hw.h" | 39 | #include "iwl-agn-hw.h" |
40 | 40 | ||
41 | /** | 41 | /** |
42 | * iwlagn_txq_update_byte_cnt_tbl - Set up entry in Tx byte-count array | 42 | * iwlagn_txq_update_byte_cnt_tbl - Set up entry in Tx byte-count array |
@@ -45,7 +45,7 @@ void iwlagn_txq_update_byte_cnt_tbl(struct iwl_priv *priv, | |||
45 | struct iwl_tx_queue *txq, | 45 | struct iwl_tx_queue *txq, |
46 | u16 byte_cnt) | 46 | u16 byte_cnt) |
47 | { | 47 | { |
48 | struct iwl5000_scd_bc_tbl *scd_bc_tbl = priv->scd_bc_tbls.addr; | 48 | struct iwlagn_scd_bc_tbl *scd_bc_tbl = priv->scd_bc_tbls.addr; |
49 | int write_ptr = txq->q.write_ptr; | 49 | int write_ptr = txq->q.write_ptr; |
50 | int txq_id = txq->q.id; | 50 | int txq_id = txq->q.id; |
51 | u8 sec_ctl = 0; | 51 | u8 sec_ctl = 0; |
@@ -84,7 +84,7 @@ void iwlagn_txq_update_byte_cnt_tbl(struct iwl_priv *priv, | |||
84 | void iwlagn_txq_inval_byte_cnt_tbl(struct iwl_priv *priv, | 84 | void iwlagn_txq_inval_byte_cnt_tbl(struct iwl_priv *priv, |
85 | struct iwl_tx_queue *txq) | 85 | struct iwl_tx_queue *txq) |
86 | { | 86 | { |
87 | struct iwl5000_scd_bc_tbl *scd_bc_tbl = priv->scd_bc_tbls.addr; | 87 | struct iwlagn_scd_bc_tbl *scd_bc_tbl = priv->scd_bc_tbls.addr; |
88 | int txq_id = txq->q.id; | 88 | int txq_id = txq->q.id; |
89 | int read_ptr = txq->q.read_ptr; | 89 | int read_ptr = txq->q.read_ptr; |
90 | u8 sta_id = 0; | 90 | u8 sta_id = 0; |
@@ -171,13 +171,13 @@ int iwlagn_txq_agg_enable(struct iwl_priv *priv, int txq_id, | |||
171 | unsigned long flags; | 171 | unsigned long flags; |
172 | u16 ra_tid; | 172 | u16 ra_tid; |
173 | 173 | ||
174 | if ((IWL50_FIRST_AMPDU_QUEUE > txq_id) || | 174 | if ((IWLAGN_FIRST_AMPDU_QUEUE > txq_id) || |
175 | (IWL50_FIRST_AMPDU_QUEUE + priv->cfg->num_of_ampdu_queues | 175 | (IWLAGN_FIRST_AMPDU_QUEUE + priv->cfg->num_of_ampdu_queues |
176 | <= txq_id)) { | 176 | <= txq_id)) { |
177 | IWL_WARN(priv, | 177 | IWL_WARN(priv, |
178 | "queue number out of range: %d, must be %d to %d\n", | 178 | "queue number out of range: %d, must be %d to %d\n", |
179 | txq_id, IWL50_FIRST_AMPDU_QUEUE, | 179 | txq_id, IWLAGN_FIRST_AMPDU_QUEUE, |
180 | IWL50_FIRST_AMPDU_QUEUE + | 180 | IWLAGN_FIRST_AMPDU_QUEUE + |
181 | priv->cfg->num_of_ampdu_queues - 1); | 181 | priv->cfg->num_of_ampdu_queues - 1); |
182 | return -EINVAL; | 182 | return -EINVAL; |
183 | } | 183 | } |
@@ -231,13 +231,13 @@ int iwlagn_txq_agg_enable(struct iwl_priv *priv, int txq_id, | |||
231 | int iwlagn_txq_agg_disable(struct iwl_priv *priv, u16 txq_id, | 231 | int iwlagn_txq_agg_disable(struct iwl_priv *priv, u16 txq_id, |
232 | u16 ssn_idx, u8 tx_fifo) | 232 | u16 ssn_idx, u8 tx_fifo) |
233 | { | 233 | { |
234 | if ((IWL50_FIRST_AMPDU_QUEUE > txq_id) || | 234 | if ((IWLAGN_FIRST_AMPDU_QUEUE > txq_id) || |
235 | (IWL50_FIRST_AMPDU_QUEUE + priv->cfg->num_of_ampdu_queues | 235 | (IWLAGN_FIRST_AMPDU_QUEUE + priv->cfg->num_of_ampdu_queues |
236 | <= txq_id)) { | 236 | <= txq_id)) { |
237 | IWL_ERR(priv, | 237 | IWL_ERR(priv, |
238 | "queue number out of range: %d, must be %d to %d\n", | 238 | "queue number out of range: %d, must be %d to %d\n", |
239 | txq_id, IWL50_FIRST_AMPDU_QUEUE, | 239 | txq_id, IWLAGN_FIRST_AMPDU_QUEUE, |
240 | IWL50_FIRST_AMPDU_QUEUE + | 240 | IWLAGN_FIRST_AMPDU_QUEUE + |
241 | priv->cfg->num_of_ampdu_queues - 1); | 241 | priv->cfg->num_of_ampdu_queues - 1); |
242 | return -EINVAL; | 242 | return -EINVAL; |
243 | } | 243 | } |