diff options
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-4965.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-4965.c | 66 |
1 files changed, 33 insertions, 33 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-4965.c b/drivers/net/wireless/iwlwifi/iwl-4965.c index f5796b78f2d2..2b21edb757b9 100644 --- a/drivers/net/wireless/iwlwifi/iwl-4965.c +++ b/drivers/net/wireless/iwlwifi/iwl-4965.c | |||
@@ -47,7 +47,7 @@ | |||
47 | 47 | ||
48 | /* module parameters */ | 48 | /* module parameters */ |
49 | static struct iwl_mod_params iwl4965_mod_params = { | 49 | static struct iwl_mod_params iwl4965_mod_params = { |
50 | .num_of_queues = IWL4965_MAX_NUM_QUEUES, | 50 | .num_of_queues = IWL49_NUM_QUEUES, |
51 | .enable_qos = 1, | 51 | .enable_qos = 1, |
52 | .amsdu_size_8K = 1, | 52 | .amsdu_size_8K = 1, |
53 | /* the rest are 0 by default */ | 53 | /* the rest are 0 by default */ |
@@ -1164,11 +1164,11 @@ static void iwl4965_tx_queue_set_status(struct iwl_priv *priv, | |||
1164 | 1164 | ||
1165 | /* Set up and activate */ | 1165 | /* Set up and activate */ |
1166 | iwl_write_prph(priv, IWL49_SCD_QUEUE_STATUS_BITS(txq_id), | 1166 | iwl_write_prph(priv, IWL49_SCD_QUEUE_STATUS_BITS(txq_id), |
1167 | (active << SCD_QUEUE_STTS_REG_POS_ACTIVE) | | 1167 | (active << IWL49_SCD_QUEUE_STTS_REG_POS_ACTIVE) | |
1168 | (tx_fifo_id << SCD_QUEUE_STTS_REG_POS_TXF) | | 1168 | (tx_fifo_id << IWL49_SCD_QUEUE_STTS_REG_POS_TXF) | |
1169 | (scd_retry << SCD_QUEUE_STTS_REG_POS_WSL) | | 1169 | (scd_retry << IWL49_SCD_QUEUE_STTS_REG_POS_WSL) | |
1170 | (scd_retry << SCD_QUEUE_STTS_REG_POS_SCD_ACK) | | 1170 | (scd_retry << IWL49_SCD_QUEUE_STTS_REG_POS_SCD_ACK) | |
1171 | SCD_QUEUE_STTS_REG_MSK); | 1171 | IWL49_SCD_QUEUE_STTS_REG_MSK); |
1172 | 1172 | ||
1173 | txq->sched_retry = scd_retry; | 1173 | txq->sched_retry = scd_retry; |
1174 | 1174 | ||
@@ -1182,7 +1182,7 @@ static const u16 default_queue_to_tx_fifo[] = { | |||
1182 | IWL_TX_FIFO_AC2, | 1182 | IWL_TX_FIFO_AC2, |
1183 | IWL_TX_FIFO_AC1, | 1183 | IWL_TX_FIFO_AC1, |
1184 | IWL_TX_FIFO_AC0, | 1184 | IWL_TX_FIFO_AC0, |
1185 | IWL_CMD_FIFO_NUM, | 1185 | IWL49_CMD_FIFO_NUM, |
1186 | IWL_TX_FIFO_HCCA_1, | 1186 | IWL_TX_FIFO_HCCA_1, |
1187 | IWL_TX_FIFO_HCCA_2 | 1187 | IWL_TX_FIFO_HCCA_2 |
1188 | }; | 1188 | }; |
@@ -1223,10 +1223,10 @@ int iwl4965_alive_notify(struct iwl_priv *priv) | |||
1223 | 1223 | ||
1224 | /* Clear 4965's internal Tx Scheduler data base */ | 1224 | /* Clear 4965's internal Tx Scheduler data base */ |
1225 | priv->scd_base_addr = iwl_read_prph(priv, IWL49_SCD_SRAM_BASE_ADDR); | 1225 | priv->scd_base_addr = iwl_read_prph(priv, IWL49_SCD_SRAM_BASE_ADDR); |
1226 | a = priv->scd_base_addr + SCD_CONTEXT_DATA_OFFSET; | 1226 | a = priv->scd_base_addr + IWL49_SCD_CONTEXT_DATA_OFFSET; |
1227 | for (; a < priv->scd_base_addr + SCD_TX_STTS_BITMAP_OFFSET; a += 4) | 1227 | for (; a < priv->scd_base_addr + IWL49_SCD_TX_STTS_BITMAP_OFFSET; a += 4) |
1228 | iwl_write_targ_mem(priv, a, 0); | 1228 | iwl_write_targ_mem(priv, a, 0); |
1229 | for (; a < priv->scd_base_addr + SCD_TRANSLATE_TBL_OFFSET; a += 4) | 1229 | for (; a < priv->scd_base_addr + IWL49_SCD_TRANSLATE_TBL_OFFSET; a += 4) |
1230 | iwl_write_targ_mem(priv, a, 0); | 1230 | iwl_write_targ_mem(priv, a, 0); |
1231 | for (; a < sizeof(u16) * priv->hw_params.max_txq_num; a += 4) | 1231 | for (; a < sizeof(u16) * priv->hw_params.max_txq_num; a += 4) |
1232 | iwl_write_targ_mem(priv, a, 0); | 1232 | iwl_write_targ_mem(priv, a, 0); |
@@ -1248,18 +1248,18 @@ int iwl4965_alive_notify(struct iwl_priv *priv) | |||
1248 | 1248 | ||
1249 | /* Max Tx Window size for Scheduler-ACK mode */ | 1249 | /* Max Tx Window size for Scheduler-ACK mode */ |
1250 | iwl_write_targ_mem(priv, priv->scd_base_addr + | 1250 | iwl_write_targ_mem(priv, priv->scd_base_addr + |
1251 | SCD_CONTEXT_QUEUE_OFFSET(i), | 1251 | IWL49_SCD_CONTEXT_QUEUE_OFFSET(i), |
1252 | (SCD_WIN_SIZE << | 1252 | (SCD_WIN_SIZE << |
1253 | SCD_QUEUE_CTX_REG1_WIN_SIZE_POS) & | 1253 | IWL49_SCD_QUEUE_CTX_REG1_WIN_SIZE_POS) & |
1254 | SCD_QUEUE_CTX_REG1_WIN_SIZE_MSK); | 1254 | IWL49_SCD_QUEUE_CTX_REG1_WIN_SIZE_MSK); |
1255 | 1255 | ||
1256 | /* Frame limit */ | 1256 | /* Frame limit */ |
1257 | iwl_write_targ_mem(priv, priv->scd_base_addr + | 1257 | iwl_write_targ_mem(priv, priv->scd_base_addr + |
1258 | SCD_CONTEXT_QUEUE_OFFSET(i) + | 1258 | IWL49_SCD_CONTEXT_QUEUE_OFFSET(i) + |
1259 | sizeof(u32), | 1259 | sizeof(u32), |
1260 | (SCD_FRAME_LIMIT << | 1260 | (SCD_FRAME_LIMIT << |
1261 | SCD_QUEUE_CTX_REG2_FRAME_LIMIT_POS) & | 1261 | IWL49_SCD_QUEUE_CTX_REG2_FRAME_LIMIT_POS) & |
1262 | SCD_QUEUE_CTX_REG2_FRAME_LIMIT_MSK); | 1262 | IWL49_SCD_QUEUE_CTX_REG2_FRAME_LIMIT_MSK); |
1263 | 1263 | ||
1264 | } | 1264 | } |
1265 | iwl_write_prph(priv, IWL49_SCD_INTERRUPT_MASK, | 1265 | iwl_write_prph(priv, IWL49_SCD_INTERRUPT_MASK, |
@@ -1320,10 +1320,10 @@ static struct iwl_sensitivity_ranges iwl4965_sensitivity = { | |||
1320 | int iwl4965_hw_set_hw_params(struct iwl_priv *priv) | 1320 | int iwl4965_hw_set_hw_params(struct iwl_priv *priv) |
1321 | { | 1321 | { |
1322 | 1322 | ||
1323 | if ((priv->cfg->mod_params->num_of_queues > IWL4965_MAX_NUM_QUEUES) || | 1323 | if ((priv->cfg->mod_params->num_of_queues > IWL49_NUM_QUEUES) || |
1324 | (priv->cfg->mod_params->num_of_queues < IWL_MIN_NUM_QUEUES)) { | 1324 | (priv->cfg->mod_params->num_of_queues < IWL_MIN_NUM_QUEUES)) { |
1325 | IWL_ERROR("invalid queues_num, should be between %d and %d\n", | 1325 | IWL_ERROR("invalid queues_num, should be between %d and %d\n", |
1326 | IWL_MIN_NUM_QUEUES, IWL4965_MAX_NUM_QUEUES); | 1326 | IWL_MIN_NUM_QUEUES, IWL49_NUM_QUEUES); |
1327 | return -EINVAL; | 1327 | return -EINVAL; |
1328 | } | 1328 | } |
1329 | 1329 | ||
@@ -2520,9 +2520,9 @@ static void iwl4965_txq_update_byte_cnt_tbl(struct iwl_priv *priv, | |||
2520 | tfd_offset[txq->q.write_ptr], byte_cnt, len); | 2520 | tfd_offset[txq->q.write_ptr], byte_cnt, len); |
2521 | 2521 | ||
2522 | /* If within first 64 entries, duplicate at end */ | 2522 | /* If within first 64 entries, duplicate at end */ |
2523 | if (txq->q.write_ptr < IWL4965_MAX_WIN_SIZE) | 2523 | if (txq->q.write_ptr < IWL49_MAX_WIN_SIZE) |
2524 | IWL_SET_BITS16(shared_data->queues_byte_cnt_tbls[txq_id]. | 2524 | IWL_SET_BITS16(shared_data->queues_byte_cnt_tbls[txq_id]. |
2525 | tfd_offset[IWL4965_QUEUE_SIZE + txq->q.write_ptr], | 2525 | tfd_offset[IWL49_QUEUE_SIZE + txq->q.write_ptr], |
2526 | byte_cnt, len); | 2526 | byte_cnt, len); |
2527 | } | 2527 | } |
2528 | 2528 | ||
@@ -3646,8 +3646,8 @@ static void iwl4965_tx_queue_stop_scheduler(struct iwl_priv *priv, | |||
3646 | * the SCD_ACT_EN bit is the write-enable mask for the ACTIVE bit. */ | 3646 | * the SCD_ACT_EN bit is the write-enable mask for the ACTIVE bit. */ |
3647 | iwl_write_prph(priv, | 3647 | iwl_write_prph(priv, |
3648 | IWL49_SCD_QUEUE_STATUS_BITS(txq_id), | 3648 | IWL49_SCD_QUEUE_STATUS_BITS(txq_id), |
3649 | (0 << SCD_QUEUE_STTS_REG_POS_ACTIVE)| | 3649 | (0 << IWL49_SCD_QUEUE_STTS_REG_POS_ACTIVE)| |
3650 | (1 << SCD_QUEUE_STTS_REG_POS_SCD_ACT_EN)); | 3650 | (1 << IWL49_SCD_QUEUE_STTS_REG_POS_SCD_ACT_EN)); |
3651 | } | 3651 | } |
3652 | 3652 | ||
3653 | /** | 3653 | /** |
@@ -3812,10 +3812,10 @@ static int iwl4965_tx_queue_set_q2ratid(struct iwl_priv *priv, u16 ra_tid, | |||
3812 | u32 tbl_dw; | 3812 | u32 tbl_dw; |
3813 | u16 scd_q2ratid; | 3813 | u16 scd_q2ratid; |
3814 | 3814 | ||
3815 | scd_q2ratid = ra_tid & SCD_QUEUE_RA_TID_MAP_RATID_MSK; | 3815 | scd_q2ratid = ra_tid & IWL49_SCD_QUEUE_RA_TID_MAP_RATID_MSK; |
3816 | 3816 | ||
3817 | tbl_dw_addr = priv->scd_base_addr + | 3817 | tbl_dw_addr = priv->scd_base_addr + |
3818 | SCD_TRANSLATE_TBL_OFFSET_QUEUE(txq_id); | 3818 | IWL49_SCD_TRANSLATE_TBL_OFFSET_QUEUE(txq_id); |
3819 | 3819 | ||
3820 | tbl_dw = iwl_read_targ_mem(priv, tbl_dw_addr); | 3820 | tbl_dw = iwl_read_targ_mem(priv, tbl_dw_addr); |
3821 | 3821 | ||
@@ -3877,14 +3877,14 @@ static int iwl4965_tx_queue_agg_enable(struct iwl_priv *priv, int txq_id, | |||
3877 | 3877 | ||
3878 | /* Set up Tx window size and frame limit for this queue */ | 3878 | /* Set up Tx window size and frame limit for this queue */ |
3879 | iwl_write_targ_mem(priv, | 3879 | iwl_write_targ_mem(priv, |
3880 | priv->scd_base_addr + SCD_CONTEXT_QUEUE_OFFSET(txq_id), | 3880 | priv->scd_base_addr + IWL49_SCD_CONTEXT_QUEUE_OFFSET(txq_id), |
3881 | (SCD_WIN_SIZE << SCD_QUEUE_CTX_REG1_WIN_SIZE_POS) & | 3881 | (SCD_WIN_SIZE << IWL49_SCD_QUEUE_CTX_REG1_WIN_SIZE_POS) & |
3882 | SCD_QUEUE_CTX_REG1_WIN_SIZE_MSK); | 3882 | IWL49_SCD_QUEUE_CTX_REG1_WIN_SIZE_MSK); |
3883 | 3883 | ||
3884 | iwl_write_targ_mem(priv, priv->scd_base_addr + | 3884 | iwl_write_targ_mem(priv, priv->scd_base_addr + |
3885 | SCD_CONTEXT_QUEUE_OFFSET(txq_id) + sizeof(u32), | 3885 | IWL49_SCD_CONTEXT_QUEUE_OFFSET(txq_id) + sizeof(u32), |
3886 | (SCD_FRAME_LIMIT << SCD_QUEUE_CTX_REG2_FRAME_LIMIT_POS) | 3886 | (SCD_FRAME_LIMIT << IWL49_SCD_QUEUE_CTX_REG2_FRAME_LIMIT_POS) |
3887 | & SCD_QUEUE_CTX_REG2_FRAME_LIMIT_MSK); | 3887 | & IWL49_SCD_QUEUE_CTX_REG2_FRAME_LIMIT_MSK); |
3888 | 3888 | ||
3889 | iwl_set_bits_prph(priv, IWL49_SCD_INTERRUPT_MASK, (1 << txq_id)); | 3889 | iwl_set_bits_prph(priv, IWL49_SCD_INTERRUPT_MASK, (1 << txq_id)); |
3890 | 3890 | ||