diff options
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-agn-ucode.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn-ucode.c | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn-ucode.c b/drivers/net/wireless/iwlwifi/iwl-agn-ucode.c index 52ae157968b2..ae476c234a7c 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn-ucode.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn-ucode.c | |||
@@ -207,7 +207,7 @@ static int iwlagn_set_Xtal_calib(struct iwl_priv *priv) | |||
207 | { | 207 | { |
208 | struct iwl_calib_xtal_freq_cmd cmd; | 208 | struct iwl_calib_xtal_freq_cmd cmd; |
209 | __le16 *xtal_calib = | 209 | __le16 *xtal_calib = |
210 | (__le16 *)iwl_eeprom_query_addr(priv, EEPROM_5000_XTAL); | 210 | (__le16 *)iwl_eeprom_query_addr(priv, EEPROM_XTAL); |
211 | 211 | ||
212 | cmd.hdr.op_code = IWL_PHY_CALIBRATE_CRYSTAL_FRQ_CMD; | 212 | cmd.hdr.op_code = IWL_PHY_CALIBRATE_CRYSTAL_FRQ_CMD; |
213 | cmd.hdr.first_group = 0; | 213 | cmd.hdr.first_group = 0; |
@@ -329,19 +329,19 @@ int iwlagn_alive_notify(struct iwl_priv *priv) | |||
329 | 329 | ||
330 | spin_lock_irqsave(&priv->lock, flags); | 330 | spin_lock_irqsave(&priv->lock, flags); |
331 | 331 | ||
332 | priv->scd_base_addr = iwl_read_prph(priv, IWL50_SCD_SRAM_BASE_ADDR); | 332 | priv->scd_base_addr = iwl_read_prph(priv, IWLAGN_SCD_SRAM_BASE_ADDR); |
333 | a = priv->scd_base_addr + IWL50_SCD_CONTEXT_DATA_OFFSET; | 333 | a = priv->scd_base_addr + IWLAGN_SCD_CONTEXT_DATA_OFFSET; |
334 | for (; a < priv->scd_base_addr + IWL50_SCD_TX_STTS_BITMAP_OFFSET; | 334 | for (; a < priv->scd_base_addr + IWLAGN_SCD_TX_STTS_BITMAP_OFFSET; |
335 | a += 4) | 335 | a += 4) |
336 | iwl_write_targ_mem(priv, a, 0); | 336 | iwl_write_targ_mem(priv, a, 0); |
337 | for (; a < priv->scd_base_addr + IWL50_SCD_TRANSLATE_TBL_OFFSET; | 337 | for (; a < priv->scd_base_addr + IWLAGN_SCD_TRANSLATE_TBL_OFFSET; |
338 | a += 4) | 338 | a += 4) |
339 | iwl_write_targ_mem(priv, a, 0); | 339 | iwl_write_targ_mem(priv, a, 0); |
340 | for (; a < priv->scd_base_addr + | 340 | for (; a < priv->scd_base_addr + |
341 | IWL50_SCD_TRANSLATE_TBL_OFFSET_QUEUE(priv->hw_params.max_txq_num); a += 4) | 341 | IWLAGN_SCD_TRANSLATE_TBL_OFFSET_QUEUE(priv->hw_params.max_txq_num); a += 4) |
342 | iwl_write_targ_mem(priv, a, 0); | 342 | iwl_write_targ_mem(priv, a, 0); |
343 | 343 | ||
344 | iwl_write_prph(priv, IWL50_SCD_DRAM_BASE_ADDR, | 344 | iwl_write_prph(priv, IWLAGN_SCD_DRAM_BASE_ADDR, |
345 | priv->scd_bc_tbls.dma >> 10); | 345 | priv->scd_bc_tbls.dma >> 10); |
346 | 346 | ||
347 | /* Enable DMA channel */ | 347 | /* Enable DMA channel */ |
@@ -355,28 +355,28 @@ int iwlagn_alive_notify(struct iwl_priv *priv) | |||
355 | iwl_write_direct32(priv, FH_TX_CHICKEN_BITS_REG, | 355 | iwl_write_direct32(priv, FH_TX_CHICKEN_BITS_REG, |
356 | reg_val | FH_TX_CHICKEN_BITS_SCD_AUTO_RETRY_EN); | 356 | reg_val | FH_TX_CHICKEN_BITS_SCD_AUTO_RETRY_EN); |
357 | 357 | ||
358 | iwl_write_prph(priv, IWL50_SCD_QUEUECHAIN_SEL, | 358 | iwl_write_prph(priv, IWLAGN_SCD_QUEUECHAIN_SEL, |
359 | IWL50_SCD_QUEUECHAIN_SEL_ALL(priv->hw_params.max_txq_num)); | 359 | IWLAGN_SCD_QUEUECHAIN_SEL_ALL(priv->hw_params.max_txq_num)); |
360 | iwl_write_prph(priv, IWL50_SCD_AGGR_SEL, 0); | 360 | iwl_write_prph(priv, IWLAGN_SCD_AGGR_SEL, 0); |
361 | 361 | ||
362 | /* initiate the queues */ | 362 | /* initiate the queues */ |
363 | for (i = 0; i < priv->hw_params.max_txq_num; i++) { | 363 | for (i = 0; i < priv->hw_params.max_txq_num; i++) { |
364 | iwl_write_prph(priv, IWL50_SCD_QUEUE_RDPTR(i), 0); | 364 | iwl_write_prph(priv, IWLAGN_SCD_QUEUE_RDPTR(i), 0); |
365 | iwl_write_direct32(priv, HBUS_TARG_WRPTR, 0 | (i << 8)); | 365 | iwl_write_direct32(priv, HBUS_TARG_WRPTR, 0 | (i << 8)); |
366 | iwl_write_targ_mem(priv, priv->scd_base_addr + | 366 | iwl_write_targ_mem(priv, priv->scd_base_addr + |
367 | IWL50_SCD_CONTEXT_QUEUE_OFFSET(i), 0); | 367 | IWLAGN_SCD_CONTEXT_QUEUE_OFFSET(i), 0); |
368 | iwl_write_targ_mem(priv, priv->scd_base_addr + | 368 | iwl_write_targ_mem(priv, priv->scd_base_addr + |
369 | IWL50_SCD_CONTEXT_QUEUE_OFFSET(i) + | 369 | IWLAGN_SCD_CONTEXT_QUEUE_OFFSET(i) + |
370 | sizeof(u32), | 370 | sizeof(u32), |
371 | ((SCD_WIN_SIZE << | 371 | ((SCD_WIN_SIZE << |
372 | IWL50_SCD_QUEUE_CTX_REG2_WIN_SIZE_POS) & | 372 | IWLAGN_SCD_QUEUE_CTX_REG2_WIN_SIZE_POS) & |
373 | IWL50_SCD_QUEUE_CTX_REG2_WIN_SIZE_MSK) | | 373 | IWLAGN_SCD_QUEUE_CTX_REG2_WIN_SIZE_MSK) | |
374 | ((SCD_FRAME_LIMIT << | 374 | ((SCD_FRAME_LIMIT << |
375 | IWL50_SCD_QUEUE_CTX_REG2_FRAME_LIMIT_POS) & | 375 | IWLAGN_SCD_QUEUE_CTX_REG2_FRAME_LIMIT_POS) & |
376 | IWL50_SCD_QUEUE_CTX_REG2_FRAME_LIMIT_MSK)); | 376 | IWLAGN_SCD_QUEUE_CTX_REG2_FRAME_LIMIT_MSK)); |
377 | } | 377 | } |
378 | 378 | ||
379 | iwl_write_prph(priv, IWL50_SCD_INTERRUPT_MASK, | 379 | iwl_write_prph(priv, IWLAGN_SCD_INTERRUPT_MASK, |
380 | IWL_MASK(0, priv->hw_params.max_txq_num)); | 380 | IWL_MASK(0, priv->hw_params.max_txq_num)); |
381 | 381 | ||
382 | /* Activate all Tx DMA/FIFO channels */ | 382 | /* Activate all Tx DMA/FIFO channels */ |