aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-4965.c
diff options
context:
space:
mode:
authorTomas Winkler <tomas.winkler@intel.com>2008-04-03 19:05:20 -0400
committerJohn W. Linville <linville@tuxdriver.com>2008-04-08 16:44:42 -0400
commit12a81f60b98096079d392f8abc284cbd76aa719b (patch)
treebff81654fdb7ed864a71f5aa66777af62d3a2f79 /drivers/net/wireless/iwlwifi/iwl-4965.c
parent133adf08266740cd886d544aa9fe80b9873cf699 (diff)
iwlwifi: hw names cleanup
This patch make some cleanup in HW names Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Signed-off-by: Reinette Chatre <reinette.chatre@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-4965.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-4965.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-4965.c b/drivers/net/wireless/iwlwifi/iwl-4965.c
index 73e8a24eb9ce..e8cff7dbfe87 100644
--- a/drivers/net/wireless/iwlwifi/iwl-4965.c
+++ b/drivers/net/wireless/iwlwifi/iwl-4965.c
@@ -532,7 +532,7 @@ static int iwl4965_txq_ctx_reset(struct iwl_priv *priv)
532 } 532 }
533 533
534 /* Turn off all Tx DMA channels */ 534 /* Turn off all Tx DMA channels */
535 iwl_write_prph(priv, KDR_SCD_TXFACT, 0); 535 iwl_write_prph(priv, IWL49_SCD_TXFACT, 0);
536 iwl_release_nic_access(priv); 536 iwl_release_nic_access(priv);
537 spin_unlock_irqrestore(&priv->lock, flags); 537 spin_unlock_irqrestore(&priv->lock, flags);
538 538
@@ -1731,7 +1731,7 @@ static void iwl4965_set_wr_ptrs(struct iwl_priv *priv, int txq_id, u32 index)
1731{ 1731{
1732 iwl_write_direct32(priv, HBUS_TARG_WRPTR, 1732 iwl_write_direct32(priv, HBUS_TARG_WRPTR,
1733 (index & 0xff) | (txq_id << 8)); 1733 (index & 0xff) | (txq_id << 8));
1734 iwl_write_prph(priv, KDR_SCD_QUEUE_RDPTR(txq_id), index); 1734 iwl_write_prph(priv, IWL49_SCD_QUEUE_RDPTR(txq_id), index);
1735} 1735}
1736 1736
1737/** 1737/**
@@ -1751,7 +1751,7 @@ static void iwl4965_tx_queue_set_status(struct iwl_priv *priv,
1751 int active = test_bit(txq_id, &priv->txq_ctx_active_msk)?1:0; 1751 int active = test_bit(txq_id, &priv->txq_ctx_active_msk)?1:0;
1752 1752
1753 /* Set up and activate */ 1753 /* Set up and activate */
1754 iwl_write_prph(priv, KDR_SCD_QUEUE_STATUS_BITS(txq_id), 1754 iwl_write_prph(priv, IWL49_SCD_QUEUE_STATUS_BITS(txq_id),
1755 (active << SCD_QUEUE_STTS_REG_POS_ACTIVE) | 1755 (active << SCD_QUEUE_STTS_REG_POS_ACTIVE) |
1756 (tx_fifo_id << SCD_QUEUE_STTS_REG_POS_TXF) | 1756 (tx_fifo_id << SCD_QUEUE_STTS_REG_POS_TXF) |
1757 (scd_retry << SCD_QUEUE_STTS_REG_POS_WSL) | 1757 (scd_retry << SCD_QUEUE_STTS_REG_POS_WSL) |
@@ -1810,7 +1810,7 @@ int iwl4965_alive_notify(struct iwl_priv *priv)
1810 } 1810 }
1811 1811
1812 /* Clear 4965's internal Tx Scheduler data base */ 1812 /* Clear 4965's internal Tx Scheduler data base */
1813 priv->scd_base_addr = iwl_read_prph(priv, KDR_SCD_SRAM_BASE_ADDR); 1813 priv->scd_base_addr = iwl_read_prph(priv, IWL49_SCD_SRAM_BASE_ADDR);
1814 a = priv->scd_base_addr + SCD_CONTEXT_DATA_OFFSET; 1814 a = priv->scd_base_addr + SCD_CONTEXT_DATA_OFFSET;
1815 for (; a < priv->scd_base_addr + SCD_TX_STTS_BITMAP_OFFSET; a += 4) 1815 for (; a < priv->scd_base_addr + SCD_TX_STTS_BITMAP_OFFSET; a += 4)
1816 iwl_write_targ_mem(priv, a, 0); 1816 iwl_write_targ_mem(priv, a, 0);
@@ -1820,18 +1820,18 @@ int iwl4965_alive_notify(struct iwl_priv *priv)
1820 iwl_write_targ_mem(priv, a, 0); 1820 iwl_write_targ_mem(priv, a, 0);
1821 1821
1822 /* Tel 4965 where to find Tx byte count tables */ 1822 /* Tel 4965 where to find Tx byte count tables */
1823 iwl_write_prph(priv, KDR_SCD_DRAM_BASE_ADDR, 1823 iwl_write_prph(priv, IWL49_SCD_DRAM_BASE_ADDR,
1824 (priv->hw_setting.shared_phys + 1824 (priv->hw_setting.shared_phys +
1825 offsetof(struct iwl4965_shared, queues_byte_cnt_tbls)) >> 10); 1825 offsetof(struct iwl4965_shared, queues_byte_cnt_tbls)) >> 10);
1826 1826
1827 /* Disable chain mode for all queues */ 1827 /* Disable chain mode for all queues */
1828 iwl_write_prph(priv, KDR_SCD_QUEUECHAIN_SEL, 0); 1828 iwl_write_prph(priv, IWL49_SCD_QUEUECHAIN_SEL, 0);
1829 1829
1830 /* Initialize each Tx queue (including the command queue) */ 1830 /* Initialize each Tx queue (including the command queue) */
1831 for (i = 0; i < priv->hw_setting.max_txq_num; i++) { 1831 for (i = 0; i < priv->hw_setting.max_txq_num; i++) {
1832 1832
1833 /* TFD circular buffer read/write indexes */ 1833 /* TFD circular buffer read/write indexes */
1834 iwl_write_prph(priv, KDR_SCD_QUEUE_RDPTR(i), 0); 1834 iwl_write_prph(priv, IWL49_SCD_QUEUE_RDPTR(i), 0);
1835 iwl_write_direct32(priv, HBUS_TARG_WRPTR, 0 | (i << 8)); 1835 iwl_write_direct32(priv, HBUS_TARG_WRPTR, 0 | (i << 8));
1836 1836
1837 /* Max Tx Window size for Scheduler-ACK mode */ 1837 /* Max Tx Window size for Scheduler-ACK mode */
@@ -1850,11 +1850,11 @@ int iwl4965_alive_notify(struct iwl_priv *priv)
1850 SCD_QUEUE_CTX_REG2_FRAME_LIMIT_MSK); 1850 SCD_QUEUE_CTX_REG2_FRAME_LIMIT_MSK);
1851 1851
1852 } 1852 }
1853 iwl_write_prph(priv, KDR_SCD_INTERRUPT_MASK, 1853 iwl_write_prph(priv, IWL49_SCD_INTERRUPT_MASK,
1854 (1 << priv->hw_setting.max_txq_num) - 1); 1854 (1 << priv->hw_setting.max_txq_num) - 1);
1855 1855
1856 /* Activate all Tx DMA/FIFO channels */ 1856 /* Activate all Tx DMA/FIFO channels */
1857 iwl_write_prph(priv, KDR_SCD_TXFACT, 1857 iwl_write_prph(priv, IWL49_SCD_TXFACT,
1858 SCD_TXFACT_REG_TXFIFO_MASK(0, 7)); 1858 SCD_TXFACT_REG_TXFIFO_MASK(0, 7));
1859 1859
1860 iwl4965_set_wr_ptrs(priv, IWL_CMD_QUEUE_NUM, 0); 1860 iwl4965_set_wr_ptrs(priv, IWL_CMD_QUEUE_NUM, 0);
@@ -4091,7 +4091,7 @@ static void iwl4965_tx_queue_stop_scheduler(struct iwl_priv *priv,
4091 /* Simply stop the queue, but don't change any configuration; 4091 /* Simply stop the queue, but don't change any configuration;
4092 * the SCD_ACT_EN bit is the write-enable mask for the ACTIVE bit. */ 4092 * the SCD_ACT_EN bit is the write-enable mask for the ACTIVE bit. */
4093 iwl_write_prph(priv, 4093 iwl_write_prph(priv,
4094 KDR_SCD_QUEUE_STATUS_BITS(txq_id), 4094 IWL49_SCD_QUEUE_STATUS_BITS(txq_id),
4095 (0 << SCD_QUEUE_STTS_REG_POS_ACTIVE)| 4095 (0 << SCD_QUEUE_STTS_REG_POS_ACTIVE)|
4096 (1 << SCD_QUEUE_STTS_REG_POS_SCD_ACT_EN)); 4096 (1 << SCD_QUEUE_STTS_REG_POS_SCD_ACT_EN));
4097} 4097}
@@ -4117,14 +4117,14 @@ static int iwl4965_tx_queue_agg_disable(struct iwl_priv *priv, u16 txq_id,
4117 4117
4118 iwl4965_tx_queue_stop_scheduler(priv, txq_id); 4118 iwl4965_tx_queue_stop_scheduler(priv, txq_id);
4119 4119
4120 iwl_clear_bits_prph(priv, KDR_SCD_QUEUECHAIN_SEL, (1 << txq_id)); 4120 iwl_clear_bits_prph(priv, IWL49_SCD_QUEUECHAIN_SEL, (1 << txq_id));
4121 4121
4122 priv->txq[txq_id].q.read_ptr = (ssn_idx & 0xff); 4122 priv->txq[txq_id].q.read_ptr = (ssn_idx & 0xff);
4123 priv->txq[txq_id].q.write_ptr = (ssn_idx & 0xff); 4123 priv->txq[txq_id].q.write_ptr = (ssn_idx & 0xff);
4124 /* supposes that ssn_idx is valid (!= 0xFFF) */ 4124 /* supposes that ssn_idx is valid (!= 0xFFF) */
4125 iwl4965_set_wr_ptrs(priv, txq_id, ssn_idx); 4125 iwl4965_set_wr_ptrs(priv, txq_id, ssn_idx);
4126 4126
4127 iwl_clear_bits_prph(priv, KDR_SCD_INTERRUPT_MASK, (1 << txq_id)); 4127 iwl_clear_bits_prph(priv, IWL49_SCD_INTERRUPT_MASK, (1 << txq_id));
4128 iwl4965_txq_ctx_deactivate(priv, txq_id); 4128 iwl4965_txq_ctx_deactivate(priv, txq_id);
4129 iwl4965_tx_queue_set_status(priv, &priv->txq[txq_id], tx_fifo, 0); 4129 iwl4965_tx_queue_set_status(priv, &priv->txq[txq_id], tx_fifo, 0);
4130 4130
@@ -4313,7 +4313,7 @@ static int iwl4965_tx_queue_agg_enable(struct iwl_priv *priv, int txq_id,
4313 iwl4965_tx_queue_set_q2ratid(priv, ra_tid, txq_id); 4313 iwl4965_tx_queue_set_q2ratid(priv, ra_tid, txq_id);
4314 4314
4315 /* Set this queue as a chain-building queue */ 4315 /* Set this queue as a chain-building queue */
4316 iwl_set_bits_prph(priv, KDR_SCD_QUEUECHAIN_SEL, (1 << txq_id)); 4316 iwl_set_bits_prph(priv, IWL49_SCD_QUEUECHAIN_SEL, (1 << txq_id));
4317 4317
4318 /* Place first TFD at index corresponding to start sequence number. 4318 /* Place first TFD at index corresponding to start sequence number.
4319 * Assumes that ssn_idx is valid (!= 0xFFF) */ 4319 * Assumes that ssn_idx is valid (!= 0xFFF) */
@@ -4332,7 +4332,7 @@ static int iwl4965_tx_queue_agg_enable(struct iwl_priv *priv, int txq_id,
4332 (SCD_FRAME_LIMIT << SCD_QUEUE_CTX_REG2_FRAME_LIMIT_POS) 4332 (SCD_FRAME_LIMIT << SCD_QUEUE_CTX_REG2_FRAME_LIMIT_POS)
4333 & SCD_QUEUE_CTX_REG2_FRAME_LIMIT_MSK); 4333 & SCD_QUEUE_CTX_REG2_FRAME_LIMIT_MSK);
4334 4334
4335 iwl_set_bits_prph(priv, KDR_SCD_INTERRUPT_MASK, (1 << txq_id)); 4335 iwl_set_bits_prph(priv, IWL49_SCD_INTERRUPT_MASK, (1 << txq_id));
4336 4336
4337 /* Set up Status area in SRAM, map to Tx DMA/FIFO, activate the queue */ 4337 /* Set up Status area in SRAM, map to Tx DMA/FIFO, activate the queue */
4338 iwl4965_tx_queue_set_status(priv, &priv->txq[txq_id], tx_fifo, 1); 4338 iwl4965_tx_queue_set_status(priv, &priv->txq[txq_id], tx_fifo, 1);