diff options
author | Tomas Winkler <tomas.winkler@intel.com> | 2008-04-03 19:05:20 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-04-08 16:44:42 -0400 |
commit | 12a81f60b98096079d392f8abc284cbd76aa719b (patch) | |
tree | bff81654fdb7ed864a71f5aa66777af62d3a2f79 | |
parent | 133adf08266740cd886d544aa9fe80b9873cf699 (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>
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-4965-hw.h | 16 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-4965.c | 28 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-prph.h | 74 |
3 files changed, 62 insertions, 56 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-4965-hw.h b/drivers/net/wireless/iwlwifi/iwl-4965-hw.h index 1898888e71f2..de7bac149723 100644 --- a/drivers/net/wireless/iwlwifi/iwl-4965-hw.h +++ b/drivers/net/wireless/iwlwifi/iwl-4965-hw.h | |||
@@ -126,16 +126,18 @@ | |||
126 | /* Sizes and addresses for instruction and data memory (SRAM) in | 126 | /* Sizes and addresses for instruction and data memory (SRAM) in |
127 | * 4965's embedded processor. Driver access is via HBUS_TARG_MEM_* regs. */ | 127 | * 4965's embedded processor. Driver access is via HBUS_TARG_MEM_* regs. */ |
128 | #define RTC_INST_LOWER_BOUND (0x000000) | 128 | #define RTC_INST_LOWER_BOUND (0x000000) |
129 | #define KDR_RTC_INST_UPPER_BOUND (0x018000) | 129 | #define IWL49_RTC_INST_UPPER_BOUND (0x018000) |
130 | 130 | ||
131 | #define RTC_DATA_LOWER_BOUND (0x800000) | 131 | #define RTC_DATA_LOWER_BOUND (0x800000) |
132 | #define KDR_RTC_DATA_UPPER_BOUND (0x80A000) | 132 | #define IWL49_RTC_DATA_UPPER_BOUND (0x80A000) |
133 | 133 | ||
134 | #define KDR_RTC_INST_SIZE (KDR_RTC_INST_UPPER_BOUND - RTC_INST_LOWER_BOUND) | 134 | #define IWL49_RTC_INST_SIZE \ |
135 | #define KDR_RTC_DATA_SIZE (KDR_RTC_DATA_UPPER_BOUND - RTC_DATA_LOWER_BOUND) | 135 | (IWL49_RTC_INST_UPPER_BOUND - RTC_INST_LOWER_BOUND) |
136 | #define IWL49_RTC_DATA_SIZE \ | ||
137 | (IWL49_RTC_DATA_UPPER_BOUND - RTC_DATA_LOWER_BOUND) | ||
136 | 138 | ||
137 | #define IWL_MAX_INST_SIZE KDR_RTC_INST_SIZE | 139 | #define IWL_MAX_INST_SIZE IWL49_RTC_INST_SIZE |
138 | #define IWL_MAX_DATA_SIZE KDR_RTC_DATA_SIZE | 140 | #define IWL_MAX_DATA_SIZE IWL49_RTC_DATA_SIZE |
139 | 141 | ||
140 | /* Size of uCode instruction memory in bootstrap state machine */ | 142 | /* Size of uCode instruction memory in bootstrap state machine */ |
141 | #define IWL_MAX_BSM_SIZE BSM_SRAM_SIZE | 143 | #define IWL_MAX_BSM_SIZE BSM_SRAM_SIZE |
@@ -143,7 +145,7 @@ | |||
143 | static inline int iwl4965_hw_valid_rtc_data_addr(u32 addr) | 145 | static inline int iwl4965_hw_valid_rtc_data_addr(u32 addr) |
144 | { | 146 | { |
145 | return (addr >= RTC_DATA_LOWER_BOUND) && | 147 | return (addr >= RTC_DATA_LOWER_BOUND) && |
146 | (addr < KDR_RTC_DATA_UPPER_BOUND); | 148 | (addr < IWL49_RTC_DATA_UPPER_BOUND); |
147 | } | 149 | } |
148 | 150 | ||
149 | /********************* START TEMPERATURE *************************************/ | 151 | /********************* START TEMPERATURE *************************************/ |
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); |
diff --git a/drivers/net/wireless/iwlwifi/iwl-prph.h b/drivers/net/wireless/iwlwifi/iwl-prph.h index ecf651ae2593..c9cf8eef1a90 100644 --- a/drivers/net/wireless/iwlwifi/iwl-prph.h +++ b/drivers/net/wireless/iwlwifi/iwl-prph.h | |||
@@ -243,44 +243,48 @@ | |||
243 | * 4965 Tx Scheduler registers. | 243 | * 4965 Tx Scheduler registers. |
244 | * Details are documented in iwl-4965-hw.h | 244 | * Details are documented in iwl-4965-hw.h |
245 | */ | 245 | */ |
246 | #define KDR_SCD_BASE (PRPH_BASE + 0xa02c00) | 246 | #define IWL49_SCD_BASE (PRPH_BASE + 0xa02c00) |
247 | 247 | ||
248 | #define KDR_SCD_SRAM_BASE_ADDR (KDR_SCD_BASE + 0x0) | 248 | #define IWL49_SCD_SRAM_BASE_ADDR (IWL49_SCD_BASE + 0x0) |
249 | #define KDR_SCD_EMPTY_BITS (KDR_SCD_BASE + 0x4) | 249 | #define IWL49_SCD_EMPTY_BITS (IWL49_SCD_BASE + 0x4) |
250 | #define KDR_SCD_DRAM_BASE_ADDR (KDR_SCD_BASE + 0x10) | 250 | #define IWL49_SCD_DRAM_BASE_ADDR (IWL49_SCD_BASE + 0x10) |
251 | #define KDR_SCD_AIT (KDR_SCD_BASE + 0x18) | 251 | #define IWL49_SCD_AIT (IWL49_SCD_BASE + 0x18) |
252 | #define KDR_SCD_TXFACT (KDR_SCD_BASE + 0x1c) | 252 | #define IWL49_SCD_TXFACT (IWL49_SCD_BASE + 0x1c) |
253 | #define KDR_SCD_QUEUE_WRPTR(x) (KDR_SCD_BASE + 0x24 + (x) * 4) | 253 | #define IWL49_SCD_QUEUE_WRPTR(x) (IWL49_SCD_BASE + 0x24 + (x) * 4) |
254 | #define KDR_SCD_QUEUE_RDPTR(x) (KDR_SCD_BASE + 0x64 + (x) * 4) | 254 | #define IWL49_SCD_QUEUE_RDPTR(x) (IWL49_SCD_BASE + 0x64 + (x) * 4) |
255 | #define KDR_SCD_SETQUEUENUM (KDR_SCD_BASE + 0xa4) | 255 | #define IWL49_SCD_SETQUEUENUM (IWL49_SCD_BASE + 0xa4) |
256 | #define KDR_SCD_SET_TXSTAT_TXED (KDR_SCD_BASE + 0xa8) | 256 | #define IWL49_SCD_SET_TXSTAT_TXED (IWL49_SCD_BASE + 0xa8) |
257 | #define KDR_SCD_SET_TXSTAT_DONE (KDR_SCD_BASE + 0xac) | 257 | #define IWL49_SCD_SET_TXSTAT_DONE (IWL49_SCD_BASE + 0xac) |
258 | #define KDR_SCD_SET_TXSTAT_NOT_SCHD (KDR_SCD_BASE + 0xb0) | 258 | #define IWL49_SCD_SET_TXSTAT_NOT_SCHD (IWL49_SCD_BASE + 0xb0) |
259 | #define KDR_SCD_DECREASE_CREDIT (KDR_SCD_BASE + 0xb4) | 259 | #define IWL49_SCD_DECREASE_CREDIT (IWL49_SCD_BASE + 0xb4) |
260 | #define KDR_SCD_DECREASE_SCREDIT (KDR_SCD_BASE + 0xb8) | 260 | #define IWL49_SCD_DECREASE_SCREDIT (IWL49_SCD_BASE + 0xb8) |
261 | #define KDR_SCD_LOAD_CREDIT (KDR_SCD_BASE + 0xbc) | 261 | #define IWL49_SCD_LOAD_CREDIT (IWL49_SCD_BASE + 0xbc) |
262 | #define KDR_SCD_LOAD_SCREDIT (KDR_SCD_BASE + 0xc0) | 262 | #define IWL49_SCD_LOAD_SCREDIT (IWL49_SCD_BASE + 0xc0) |
263 | #define KDR_SCD_BAR (KDR_SCD_BASE + 0xc4) | 263 | #define IWL49_SCD_BAR (IWL49_SCD_BASE + 0xc4) |
264 | #define KDR_SCD_BAR_DW0 (KDR_SCD_BASE + 0xc8) | 264 | #define IWL49_SCD_BAR_DW0 (IWL49_SCD_BASE + 0xc8) |
265 | #define KDR_SCD_BAR_DW1 (KDR_SCD_BASE + 0xcc) | 265 | #define IWL49_SCD_BAR_DW1 (IWL49_SCD_BASE + 0xcc) |
266 | #define KDR_SCD_QUEUECHAIN_SEL (KDR_SCD_BASE + 0xd0) | 266 | #define IWL49_SCD_QUEUECHAIN_SEL (IWL49_SCD_BASE + 0xd0) |
267 | #define KDR_SCD_QUERY_REQ (KDR_SCD_BASE + 0xd8) | 267 | #define IWL49_SCD_QUERY_REQ (IWL49_SCD_BASE + 0xd8) |
268 | #define KDR_SCD_QUERY_RES (KDR_SCD_BASE + 0xdc) | 268 | #define IWL49_SCD_QUERY_RES (IWL49_SCD_BASE + 0xdc) |
269 | #define KDR_SCD_PENDING_FRAMES (KDR_SCD_BASE + 0xe0) | 269 | #define IWL49_SCD_PENDING_FRAMES (IWL49_SCD_BASE + 0xe0) |
270 | #define KDR_SCD_INTERRUPT_MASK (KDR_SCD_BASE + 0xe4) | 270 | #define IWL49_SCD_INTERRUPT_MASK (IWL49_SCD_BASE + 0xe4) |
271 | #define KDR_SCD_INTERRUPT_THRESHOLD (KDR_SCD_BASE + 0xe8) | 271 | #define IWL49_SCD_INTERRUPT_THRESHOLD (IWL49_SCD_BASE + 0xe8) |
272 | #define KDR_SCD_QUERY_MIN_FRAME_SIZE (KDR_SCD_BASE + 0x100) | 272 | #define IWL49_SCD_QUERY_MIN_FRAME_SIZE (IWL49_SCD_BASE + 0x100) |
273 | #define KDR_SCD_QUEUE_STATUS_BITS(x) (KDR_SCD_BASE + 0x104 + (x) * 4) | 273 | #define IWL49_SCD_QUEUE_STATUS_BITS(x) (IWL49_SCD_BASE + 0x104 + (x) * 4) |
274 | 274 | ||
275 | /* SP SCD */ | 275 | /* SP SCD */ |
276 | #define SHL_SCD_BASE (PRPH_BASE + 0xa02c00) | 276 | #define IWL50_SCD_BASE (PRPH_BASE + 0xa02c00) |
277 | 277 | ||
278 | #define SHL_SCD_AIT (SHL_SCD_BASE + 0x0c) | 278 | #define IWL50_SCD_SRAM_BASE_ADDR (IWL50_SCD_BASE + 0x0) |
279 | #define SHL_SCD_TXFACT (SHL_SCD_BASE + 0x10) | 279 | #define IWL50_SCD_DRAM_BASE_ADDR (IWL50_SCD_BASE + 0x8) |
280 | #define SHL_SCD_QUEUE_WRPTR(x) (SHL_SCD_BASE + 0x18 + (x) * 4) | 280 | #define IWL50_SCD_AIT (IWL50_SCD_BASE + 0x0c) |
281 | #define SHL_SCD_QUEUE_RDPTR(x) (SHL_SCD_BASE + 0x68 + (x) * 4) | 281 | #define IWL50_SCD_TXFACT (IWL50_SCD_BASE + 0x10) |
282 | #define SHL_SCD_QUEUECHAIN_SEL (SHL_SCD_BASE + 0xe8) | 282 | #define IWL50_SCD_ACTIVE (IWL50_SCD_BASE + 0x14) |
283 | #define SHL_SCD_AGGR_SEL (SHL_SCD_BASE + 0x248) | 283 | #define IWL50_SCD_QUEUE_WRPTR(x) (IWL50_SCD_BASE + 0x18 + (x) * 4) |
284 | #define SHL_SCD_INTERRUPT_MASK (SHL_SCD_BASE + 0x108) | 284 | #define IWL50_SCD_QUEUE_RDPTR(x) (IWL50_SCD_BASE + 0x68 + (x) * 4) |
285 | #define IWL50_SCD_QUEUECHAIN_SEL (IWL50_SCD_BASE + 0xe8) | ||
286 | #define IWL50_SCD_AGGR_SEL (IWL50_SCD_BASE + 0x248) | ||
287 | #define IWL50_SCD_INTERRUPT_MASK (IWL50_SCD_BASE + 0x108) | ||
288 | #define IWL50_SCD_QUEUE_STATUS_BITS(x) (IWL50_SCD_BASE + 0x10c + (x) * 4) | ||
285 | 289 | ||
286 | #endif /* __iwl_prph_h__ */ | 290 | #endif /* __iwl_prph_h__ */ |