diff options
author | Tomas Winkler <tomas.winkler@intel.com> | 2008-10-24 02:48:52 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-10-31 19:02:25 -0400 |
commit | f69f42a6bbefb311ccb1626fdb61f723160afbfd (patch) | |
tree | 3475e06e132914d4e43300e60e786ac7402767a9 /drivers/net/wireless/iwlwifi/iwl-5000.c | |
parent | 0ef2ca67b19e2286eed8eeb7ef7a35ce57d6d629 (diff) |
iwlwifi: calibration command namespace renaming
Since calibration framework is not HW specific remove 5000 and 4965 prefix
This patch doesn't provide any functional changes only code renaming
and movement
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-5000.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-5000.c | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-5000.c b/drivers/net/wireless/iwlwifi/iwl-5000.c index f3316d488240..b4b7e8b2a429 100644 --- a/drivers/net/wireless/iwlwifi/iwl-5000.c +++ b/drivers/net/wireless/iwlwifi/iwl-5000.c | |||
@@ -337,10 +337,10 @@ static void iwl5000_gain_computation(struct iwl_priv *priv, | |||
337 | data->delta_gain_code[1], data->delta_gain_code[2]); | 337 | data->delta_gain_code[1], data->delta_gain_code[2]); |
338 | 338 | ||
339 | if (!data->radio_write) { | 339 | if (!data->radio_write) { |
340 | struct iwl5000_calibration_chain_noise_gain_cmd cmd; | 340 | struct iwl_calib_chain_noise_gain_cmd cmd; |
341 | memset(&cmd, 0, sizeof(cmd)); | 341 | memset(&cmd, 0, sizeof(cmd)); |
342 | 342 | ||
343 | cmd.op_code = IWL5000_PHY_CALIBRATE_CHAIN_NOISE_GAIN_CMD; | 343 | cmd.op_code = IWL_PHY_CALIBRATE_CHAIN_NOISE_GAIN_CMD; |
344 | cmd.delta_gain_1 = data->delta_gain_code[1]; | 344 | cmd.delta_gain_1 = data->delta_gain_code[1]; |
345 | cmd.delta_gain_2 = data->delta_gain_code[2]; | 345 | cmd.delta_gain_2 = data->delta_gain_code[2]; |
346 | iwl_send_cmd_pdu_async(priv, REPLY_PHY_CALIBRATION_CMD, | 346 | iwl_send_cmd_pdu_async(priv, REPLY_PHY_CALIBRATION_CMD, |
@@ -364,10 +364,10 @@ static void iwl5000_chain_noise_reset(struct iwl_priv *priv) | |||
364 | struct iwl_chain_noise_data *data = &priv->chain_noise_data; | 364 | struct iwl_chain_noise_data *data = &priv->chain_noise_data; |
365 | 365 | ||
366 | if ((data->state == IWL_CHAIN_NOISE_ALIVE) && iwl_is_associated(priv)) { | 366 | if ((data->state == IWL_CHAIN_NOISE_ALIVE) && iwl_is_associated(priv)) { |
367 | struct iwl5000_calibration_chain_noise_reset_cmd cmd; | 367 | struct iwl_calib_chain_noise_reset_cmd cmd; |
368 | 368 | ||
369 | memset(&cmd, 0, sizeof(cmd)); | 369 | memset(&cmd, 0, sizeof(cmd)); |
370 | cmd.op_code = IWL5000_PHY_CALIBRATE_CHAIN_NOISE_RESET_CMD; | 370 | cmd.op_code = IWL_PHY_CALIBRATE_CHAIN_NOISE_RESET_CMD; |
371 | if (iwl_send_cmd_pdu(priv, REPLY_PHY_CALIBRATION_CMD, | 371 | if (iwl_send_cmd_pdu(priv, REPLY_PHY_CALIBRATION_CMD, |
372 | sizeof(cmd), &cmd)) | 372 | sizeof(cmd), &cmd)) |
373 | IWL_ERROR("Could not send REPLY_PHY_CALIBRATION_CMD\n"); | 373 | IWL_ERROR("Could not send REPLY_PHY_CALIBRATION_CMD\n"); |
@@ -420,25 +420,25 @@ static const u8 *iwl5000_eeprom_query_addr(const struct iwl_priv *priv, | |||
420 | */ | 420 | */ |
421 | static int iwl5000_set_Xtal_calib(struct iwl_priv *priv) | 421 | static int iwl5000_set_Xtal_calib(struct iwl_priv *priv) |
422 | { | 422 | { |
423 | u8 data[sizeof(struct iwl5000_calib_hdr) + | 423 | u8 data[sizeof(struct iwl_calib_hdr) + |
424 | sizeof(struct iwl_cal_xtal_freq)]; | 424 | sizeof(struct iwl_cal_xtal_freq)]; |
425 | struct iwl5000_calib_cmd *cmd = (struct iwl5000_calib_cmd *)data; | 425 | struct iwl_calib_cmd *cmd = (struct iwl_calib_cmd *)data; |
426 | struct iwl_cal_xtal_freq *xtal = (struct iwl_cal_xtal_freq *)cmd->data; | 426 | struct iwl_cal_xtal_freq *xtal = (struct iwl_cal_xtal_freq *)cmd->data; |
427 | u16 *xtal_calib = (u16 *)iwl_eeprom_query_addr(priv, EEPROM_5000_XTAL); | 427 | u16 *xtal_calib = (u16 *)iwl_eeprom_query_addr(priv, EEPROM_5000_XTAL); |
428 | 428 | ||
429 | cmd->hdr.op_code = IWL5000_PHY_CALIBRATE_CRYSTAL_FRQ_CMD; | 429 | cmd->hdr.op_code = IWL_PHY_CALIBRATE_CRYSTAL_FRQ_CMD; |
430 | xtal->cap_pin1 = (u8)xtal_calib[0]; | 430 | xtal->cap_pin1 = (u8)xtal_calib[0]; |
431 | xtal->cap_pin2 = (u8)xtal_calib[1]; | 431 | xtal->cap_pin2 = (u8)xtal_calib[1]; |
432 | return iwl_calib_set(&priv->calib_results[IWL5000_CALIB_XTAL], | 432 | return iwl_calib_set(&priv->calib_results[IWL_CALIB_XTAL], |
433 | data, sizeof(data)); | 433 | data, sizeof(data)); |
434 | } | 434 | } |
435 | 435 | ||
436 | static int iwl5000_send_calib_cfg(struct iwl_priv *priv) | 436 | static int iwl5000_send_calib_cfg(struct iwl_priv *priv) |
437 | { | 437 | { |
438 | struct iwl5000_calib_cfg_cmd calib_cfg_cmd; | 438 | struct iwl_calib_cfg_cmd calib_cfg_cmd; |
439 | struct iwl_host_cmd cmd = { | 439 | struct iwl_host_cmd cmd = { |
440 | .id = CALIBRATION_CFG_CMD, | 440 | .id = CALIBRATION_CFG_CMD, |
441 | .len = sizeof(struct iwl5000_calib_cfg_cmd), | 441 | .len = sizeof(struct iwl_calib_cfg_cmd), |
442 | .data = &calib_cfg_cmd, | 442 | .data = &calib_cfg_cmd, |
443 | }; | 443 | }; |
444 | 444 | ||
@@ -455,7 +455,7 @@ static void iwl5000_rx_calib_result(struct iwl_priv *priv, | |||
455 | struct iwl_rx_mem_buffer *rxb) | 455 | struct iwl_rx_mem_buffer *rxb) |
456 | { | 456 | { |
457 | struct iwl_rx_packet *pkt = (void *)rxb->skb->data; | 457 | struct iwl_rx_packet *pkt = (void *)rxb->skb->data; |
458 | struct iwl5000_calib_hdr *hdr = (struct iwl5000_calib_hdr *)pkt->u.raw; | 458 | struct iwl_calib_hdr *hdr = (struct iwl_calib_hdr *)pkt->u.raw; |
459 | int len = le32_to_cpu(pkt->len) & FH_RSCSR_FRAME_SIZE_MSK; | 459 | int len = le32_to_cpu(pkt->len) & FH_RSCSR_FRAME_SIZE_MSK; |
460 | int index; | 460 | int index; |
461 | 461 | ||
@@ -466,14 +466,14 @@ static void iwl5000_rx_calib_result(struct iwl_priv *priv, | |||
466 | * uCode. iwl_send_calib_results sends them in a row according to their | 466 | * uCode. iwl_send_calib_results sends them in a row according to their |
467 | * index. We sort them here */ | 467 | * index. We sort them here */ |
468 | switch (hdr->op_code) { | 468 | switch (hdr->op_code) { |
469 | case IWL5000_PHY_CALIBRATE_LO_CMD: | 469 | case IWL_PHY_CALIBRATE_LO_CMD: |
470 | index = IWL5000_CALIB_LO; | 470 | index = IWL_CALIB_LO; |
471 | break; | 471 | break; |
472 | case IWL5000_PHY_CALIBRATE_TX_IQ_CMD: | 472 | case IWL_PHY_CALIBRATE_TX_IQ_CMD: |
473 | index = IWL5000_CALIB_TX_IQ; | 473 | index = IWL_CALIB_TX_IQ; |
474 | break; | 474 | break; |
475 | case IWL5000_PHY_CALIBRATE_TX_IQ_PERD_CMD: | 475 | case IWL_PHY_CALIBRATE_TX_IQ_PERD_CMD: |
476 | index = IWL5000_CALIB_TX_IQ_PERD; | 476 | index = IWL_CALIB_TX_IQ_PERD; |
477 | break; | 477 | break; |
478 | default: | 478 | default: |
479 | IWL_ERROR("Unknown calibration notification %d\n", | 479 | IWL_ERROR("Unknown calibration notification %d\n", |
@@ -839,10 +839,10 @@ static int iwl5000_hw_set_hw_params(struct iwl_priv *priv) | |||
839 | case CSR_HW_REV_TYPE_5300: | 839 | case CSR_HW_REV_TYPE_5300: |
840 | case CSR_HW_REV_TYPE_5350: | 840 | case CSR_HW_REV_TYPE_5350: |
841 | priv->hw_params.calib_init_cfg = | 841 | priv->hw_params.calib_init_cfg = |
842 | BIT(IWL5000_CALIB_XTAL) | | 842 | BIT(IWL_CALIB_XTAL) | |
843 | BIT(IWL5000_CALIB_LO) | | 843 | BIT(IWL_CALIB_LO) | |
844 | BIT(IWL5000_CALIB_TX_IQ) | | 844 | BIT(IWL_CALIB_TX_IQ) | |
845 | BIT(IWL5000_CALIB_TX_IQ_PERD); | 845 | BIT(IWL_CALIB_TX_IQ_PERD); |
846 | break; | 846 | break; |
847 | case CSR_HW_REV_TYPE_5150: | 847 | case CSR_HW_REV_TYPE_5150: |
848 | priv->hw_params.calib_init_cfg = 0; | 848 | priv->hw_params.calib_init_cfg = 0; |