diff options
author | Wey-Yi Guy <wey-yi.w.guy@intel.com> | 2010-03-16 20:41:23 -0400 |
---|---|---|
committer | Reinette Chatre <reinette.chatre@intel.com> | 2010-03-25 14:18:05 -0400 |
commit | 19e6cda094002e9756a3d181cbb4c31ef2a9b6bb (patch) | |
tree | 4f3621a912b087d2a93d9b73d52a1f105d41494f /drivers/net/wireless/iwlwifi/iwl-6000.c | |
parent | b305a08058f794c8a99c5ee87827b92d6b8c24ae (diff) |
iwlwifi: move hw related defines to separate file
Multiple iwlagn based devices shared the same hw definitions.
Move device hardware related defines from iwl-5000-hw.h to iwl-agn-hw.h
file.
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-6000.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-6000.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-6000.c b/drivers/net/wireless/iwlwifi/iwl-6000.c index f37639003489..2bbff18694c8 100644 --- a/drivers/net/wireless/iwlwifi/iwl-6000.c +++ b/drivers/net/wireless/iwlwifi/iwl-6000.c | |||
@@ -44,7 +44,7 @@ | |||
44 | #include "iwl-sta.h" | 44 | #include "iwl-sta.h" |
45 | #include "iwl-agn.h" | 45 | #include "iwl-agn.h" |
46 | #include "iwl-helpers.h" | 46 | #include "iwl-helpers.h" |
47 | #include "iwl-5000-hw.h" | 47 | #include "iwl-agn-hw.h" |
48 | #include "iwl-6000-hw.h" | 48 | #include "iwl-6000-hw.h" |
49 | #include "iwl-agn-led.h" | 49 | #include "iwl-agn-led.h" |
50 | 50 | ||
@@ -137,7 +137,7 @@ static struct iwl_sensitivity_ranges iwl6000_sensitivity = { | |||
137 | static int iwl6000_hw_set_hw_params(struct iwl_priv *priv) | 137 | static int iwl6000_hw_set_hw_params(struct iwl_priv *priv) |
138 | { | 138 | { |
139 | if (priv->cfg->mod_params->num_of_queues >= IWL_MIN_NUM_QUEUES && | 139 | if (priv->cfg->mod_params->num_of_queues >= IWL_MIN_NUM_QUEUES && |
140 | priv->cfg->mod_params->num_of_queues <= IWL50_NUM_QUEUES) | 140 | priv->cfg->mod_params->num_of_queues <= IWLAGN_NUM_QUEUES) |
141 | priv->cfg->num_of_queues = | 141 | priv->cfg->num_of_queues = |
142 | priv->cfg->mod_params->num_of_queues; | 142 | priv->cfg->mod_params->num_of_queues; |
143 | 143 | ||
@@ -145,7 +145,7 @@ static int iwl6000_hw_set_hw_params(struct iwl_priv *priv) | |||
145 | priv->hw_params.dma_chnl_num = FH50_TCSR_CHNL_NUM; | 145 | priv->hw_params.dma_chnl_num = FH50_TCSR_CHNL_NUM; |
146 | priv->hw_params.scd_bc_tbls_size = | 146 | priv->hw_params.scd_bc_tbls_size = |
147 | priv->cfg->num_of_queues * | 147 | priv->cfg->num_of_queues * |
148 | sizeof(struct iwl5000_scd_bc_tbl); | 148 | sizeof(struct iwlagn_scd_bc_tbl); |
149 | priv->hw_params.tfd_size = sizeof(struct iwl_tfd); | 149 | priv->hw_params.tfd_size = sizeof(struct iwl_tfd); |
150 | priv->hw_params.max_stations = IWL5000_STATION_COUNT; | 150 | priv->hw_params.max_stations = IWL5000_STATION_COUNT; |
151 | priv->hw_params.bcast_sta_id = IWL5000_BROADCAST_ID; | 151 | priv->hw_params.bcast_sta_id = IWL5000_BROADCAST_ID; |
@@ -372,8 +372,8 @@ struct iwl_cfg iwl6000i_2agn_cfg = { | |||
372 | .eeprom_size = OTP_LOW_IMAGE_SIZE, | 372 | .eeprom_size = OTP_LOW_IMAGE_SIZE, |
373 | .eeprom_ver = EEPROM_6000_EEPROM_VERSION, | 373 | .eeprom_ver = EEPROM_6000_EEPROM_VERSION, |
374 | .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION, | 374 | .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION, |
375 | .num_of_queues = IWL50_NUM_QUEUES, | 375 | .num_of_queues = IWLAGN_NUM_QUEUES, |
376 | .num_of_ampdu_queues = IWL50_NUM_AMPDU_QUEUES, | 376 | .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES, |
377 | .mod_params = &iwl50_mod_params, | 377 | .mod_params = &iwl50_mod_params, |
378 | .valid_tx_ant = ANT_BC, | 378 | .valid_tx_ant = ANT_BC, |
379 | .valid_rx_ant = ANT_BC, | 379 | .valid_rx_ant = ANT_BC, |
@@ -405,8 +405,8 @@ struct iwl_cfg iwl6000i_2abg_cfg = { | |||
405 | .eeprom_size = OTP_LOW_IMAGE_SIZE, | 405 | .eeprom_size = OTP_LOW_IMAGE_SIZE, |
406 | .eeprom_ver = EEPROM_6000_EEPROM_VERSION, | 406 | .eeprom_ver = EEPROM_6000_EEPROM_VERSION, |
407 | .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION, | 407 | .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION, |
408 | .num_of_queues = IWL50_NUM_QUEUES, | 408 | .num_of_queues = IWLAGN_NUM_QUEUES, |
409 | .num_of_ampdu_queues = IWL50_NUM_AMPDU_QUEUES, | 409 | .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES, |
410 | .mod_params = &iwl50_mod_params, | 410 | .mod_params = &iwl50_mod_params, |
411 | .valid_tx_ant = ANT_BC, | 411 | .valid_tx_ant = ANT_BC, |
412 | .valid_rx_ant = ANT_BC, | 412 | .valid_rx_ant = ANT_BC, |
@@ -437,8 +437,8 @@ struct iwl_cfg iwl6000i_2bg_cfg = { | |||
437 | .eeprom_size = OTP_LOW_IMAGE_SIZE, | 437 | .eeprom_size = OTP_LOW_IMAGE_SIZE, |
438 | .eeprom_ver = EEPROM_6000_EEPROM_VERSION, | 438 | .eeprom_ver = EEPROM_6000_EEPROM_VERSION, |
439 | .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION, | 439 | .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION, |
440 | .num_of_queues = IWL50_NUM_QUEUES, | 440 | .num_of_queues = IWLAGN_NUM_QUEUES, |
441 | .num_of_ampdu_queues = IWL50_NUM_AMPDU_QUEUES, | 441 | .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES, |
442 | .mod_params = &iwl50_mod_params, | 442 | .mod_params = &iwl50_mod_params, |
443 | .valid_tx_ant = ANT_BC, | 443 | .valid_tx_ant = ANT_BC, |
444 | .valid_rx_ant = ANT_BC, | 444 | .valid_rx_ant = ANT_BC, |
@@ -469,8 +469,8 @@ struct iwl_cfg iwl6050_2agn_cfg = { | |||
469 | .eeprom_size = OTP_LOW_IMAGE_SIZE, | 469 | .eeprom_size = OTP_LOW_IMAGE_SIZE, |
470 | .eeprom_ver = EEPROM_6050_EEPROM_VERSION, | 470 | .eeprom_ver = EEPROM_6050_EEPROM_VERSION, |
471 | .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION, | 471 | .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION, |
472 | .num_of_queues = IWL50_NUM_QUEUES, | 472 | .num_of_queues = IWLAGN_NUM_QUEUES, |
473 | .num_of_ampdu_queues = IWL50_NUM_AMPDU_QUEUES, | 473 | .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES, |
474 | .mod_params = &iwl50_mod_params, | 474 | .mod_params = &iwl50_mod_params, |
475 | .valid_tx_ant = ANT_AB, | 475 | .valid_tx_ant = ANT_AB, |
476 | .valid_rx_ant = ANT_AB, | 476 | .valid_rx_ant = ANT_AB, |
@@ -502,8 +502,8 @@ struct iwl_cfg iwl6050_2abg_cfg = { | |||
502 | .eeprom_size = OTP_LOW_IMAGE_SIZE, | 502 | .eeprom_size = OTP_LOW_IMAGE_SIZE, |
503 | .eeprom_ver = EEPROM_6050_EEPROM_VERSION, | 503 | .eeprom_ver = EEPROM_6050_EEPROM_VERSION, |
504 | .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION, | 504 | .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION, |
505 | .num_of_queues = IWL50_NUM_QUEUES, | 505 | .num_of_queues = IWLAGN_NUM_QUEUES, |
506 | .num_of_ampdu_queues = IWL50_NUM_AMPDU_QUEUES, | 506 | .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES, |
507 | .mod_params = &iwl50_mod_params, | 507 | .mod_params = &iwl50_mod_params, |
508 | .valid_tx_ant = ANT_AB, | 508 | .valid_tx_ant = ANT_AB, |
509 | .valid_rx_ant = ANT_AB, | 509 | .valid_rx_ant = ANT_AB, |
@@ -534,8 +534,8 @@ struct iwl_cfg iwl6000_3agn_cfg = { | |||
534 | .eeprom_size = OTP_LOW_IMAGE_SIZE, | 534 | .eeprom_size = OTP_LOW_IMAGE_SIZE, |
535 | .eeprom_ver = EEPROM_6000_EEPROM_VERSION, | 535 | .eeprom_ver = EEPROM_6000_EEPROM_VERSION, |
536 | .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION, | 536 | .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION, |
537 | .num_of_queues = IWL50_NUM_QUEUES, | 537 | .num_of_queues = IWLAGN_NUM_QUEUES, |
538 | .num_of_ampdu_queues = IWL50_NUM_AMPDU_QUEUES, | 538 | .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES, |
539 | .mod_params = &iwl50_mod_params, | 539 | .mod_params = &iwl50_mod_params, |
540 | .valid_tx_ant = ANT_ABC, | 540 | .valid_tx_ant = ANT_ABC, |
541 | .valid_rx_ant = ANT_ABC, | 541 | .valid_rx_ant = ANT_ABC, |