aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-3945.c
diff options
context:
space:
mode:
authorSamuel Ortiz <samuel.ortiz@intel.com>2008-12-21 22:31:16 -0500
committerJohn W. Linville <linville@tuxdriver.com>2009-01-29 15:59:24 -0500
commit188cf6c73a72be1d8c118580a40d70cd76415eec (patch)
treee684a15fb8011a5666075062315790f3cb6d1600 /drivers/net/wireless/iwlwifi/iwl-3945.c
parent42427b4e436bbbf038742ecbb3bf09815f93ed7a (diff)
iwl3945: sync tx queue data structure with iwlagn
We are now using the iwl_tx_queue for iwl3945. To reach that goal, we included the 3945 specific tfd frame structure to iwl_tx_queue. This has no effect on the current iwlagn code. Signed-off-by: Samuel Ortiz <samuel.ortiz@intel.com> Signed-off-by: Abhijeet Kolekar <abhijeet.kolekar@intel.com> Signed-off-by: Zhu Yi <yi.zhu@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-3945.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-3945.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-3945.c b/drivers/net/wireless/iwlwifi/iwl-3945.c
index be0974d528e1..54ad07722b0b 100644
--- a/drivers/net/wireless/iwlwifi/iwl-3945.c
+++ b/drivers/net/wireless/iwlwifi/iwl-3945.c
@@ -306,7 +306,7 @@ int iwl3945_rs_next_rate(struct iwl_priv *priv, int rate)
306static void iwl3945_tx_queue_reclaim(struct iwl_priv *priv, 306static void iwl3945_tx_queue_reclaim(struct iwl_priv *priv,
307 int txq_id, int index) 307 int txq_id, int index)
308{ 308{
309 struct iwl3945_tx_queue *txq = &priv->txq39[txq_id]; 309 struct iwl_tx_queue *txq = &priv->txq[txq_id];
310 struct iwl_queue *q = &txq->q; 310 struct iwl_queue *q = &txq->q;
311 struct iwl_tx_info *tx_info; 311 struct iwl_tx_info *tx_info;
312 312
@@ -337,7 +337,7 @@ static void iwl3945_rx_reply_tx(struct iwl_priv *priv,
337 u16 sequence = le16_to_cpu(pkt->hdr.sequence); 337 u16 sequence = le16_to_cpu(pkt->hdr.sequence);
338 int txq_id = SEQ_TO_QUEUE(sequence); 338 int txq_id = SEQ_TO_QUEUE(sequence);
339 int index = SEQ_TO_INDEX(sequence); 339 int index = SEQ_TO_INDEX(sequence);
340 struct iwl3945_tx_queue *txq = &priv->txq39[txq_id]; 340 struct iwl_tx_queue *txq = &priv->txq[txq_id];
341 struct ieee80211_tx_info *info; 341 struct ieee80211_tx_info *info;
342 struct iwl3945_tx_resp *tx_resp = (void *)&pkt->u.raw[0]; 342 struct iwl3945_tx_resp *tx_resp = (void *)&pkt->u.raw[0];
343 u32 status = le32_to_cpu(tx_resp->status); 343 u32 status = le32_to_cpu(tx_resp->status);
@@ -756,9 +756,9 @@ int iwl3945_hw_txq_attach_buf_to_tfd(struct iwl_priv *priv, void *ptr,
756 * 756 *
757 * Does NOT advance any indexes 757 * Does NOT advance any indexes
758 */ 758 */
759int iwl3945_hw_txq_free_tfd(struct iwl_priv *priv, struct iwl3945_tx_queue *txq) 759int iwl3945_hw_txq_free_tfd(struct iwl_priv *priv, struct iwl_tx_queue *txq)
760{ 760{
761 struct iwl3945_tfd *tfd_tmp = (struct iwl3945_tfd *)&txq->tfds[0]; 761 struct iwl3945_tfd *tfd_tmp = (struct iwl3945_tfd *)&txq->tfds39[0];
762 struct iwl3945_tfd *tfd = &tfd_tmp[txq->q.read_ptr]; 762 struct iwl3945_tfd *tfd = &tfd_tmp[txq->q.read_ptr];
763 struct pci_dev *dev = priv->pci_dev; 763 struct pci_dev *dev = priv->pci_dev;
764 int i; 764 int i;
@@ -1061,7 +1061,7 @@ static int iwl3945_txq_ctx_reset(struct iwl_priv *priv)
1061 for (txq_id = 0; txq_id < TFD_QUEUE_MAX; txq_id++) { 1061 for (txq_id = 0; txq_id < TFD_QUEUE_MAX; txq_id++) {
1062 slots_num = (txq_id == IWL_CMD_QUEUE_NUM) ? 1062 slots_num = (txq_id == IWL_CMD_QUEUE_NUM) ?
1063 TFD_CMD_SLOTS : TFD_TX_CMD_SLOTS; 1063 TFD_CMD_SLOTS : TFD_TX_CMD_SLOTS;
1064 rc = iwl3945_tx_queue_init(priv, &priv->txq39[txq_id], slots_num, 1064 rc = iwl3945_tx_queue_init(priv, &priv->txq[txq_id], slots_num,
1065 txq_id); 1065 txq_id);
1066 if (rc) { 1066 if (rc) {
1067 IWL_ERR(priv, "Tx %d queue init failed\n", txq_id); 1067 IWL_ERR(priv, "Tx %d queue init failed\n", txq_id);
@@ -1251,7 +1251,7 @@ void iwl3945_hw_txq_ctx_free(struct iwl_priv *priv)
1251 1251
1252 /* Tx queues */ 1252 /* Tx queues */
1253 for (txq_id = 0; txq_id < TFD_QUEUE_MAX; txq_id++) 1253 for (txq_id = 0; txq_id < TFD_QUEUE_MAX; txq_id++)
1254 iwl3945_tx_queue_free(priv, &priv->txq39[txq_id]); 1254 iwl3945_tx_queue_free(priv, &priv->txq[txq_id]);
1255} 1255}
1256 1256
1257void iwl3945_hw_txq_ctx_stop(struct iwl_priv *priv) 1257void iwl3945_hw_txq_ctx_stop(struct iwl_priv *priv)
@@ -2342,7 +2342,7 @@ int iwl3945_hw_rxq_stop(struct iwl_priv *priv)
2342 return 0; 2342 return 0;
2343} 2343}
2344 2344
2345int iwl3945_hw_tx_queue_init(struct iwl_priv *priv, struct iwl3945_tx_queue *txq) 2345int iwl3945_hw_tx_queue_init(struct iwl_priv *priv, struct iwl_tx_queue *txq)
2346{ 2346{
2347 int rc; 2347 int rc;
2348 unsigned long flags; 2348 unsigned long flags;