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-1000.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-1000.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-1000.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-1000.c b/drivers/net/wireless/iwlwifi/iwl-1000.c index 6bdbe2df2829..f866410ea9d8 100644 --- a/drivers/net/wireless/iwlwifi/iwl-1000.c +++ b/drivers/net/wireless/iwlwifi/iwl-1000.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-agn-led.h" | 48 | #include "iwl-agn-led.h" |
49 | 49 | ||
50 | /* Highest firmware API version supported */ | 50 | /* Highest firmware API version supported */ |
@@ -118,7 +118,7 @@ static struct iwl_sensitivity_ranges iwl1000_sensitivity = { | |||
118 | static int iwl1000_hw_set_hw_params(struct iwl_priv *priv) | 118 | static int iwl1000_hw_set_hw_params(struct iwl_priv *priv) |
119 | { | 119 | { |
120 | if (priv->cfg->mod_params->num_of_queues >= IWL_MIN_NUM_QUEUES && | 120 | if (priv->cfg->mod_params->num_of_queues >= IWL_MIN_NUM_QUEUES && |
121 | priv->cfg->mod_params->num_of_queues <= IWL50_NUM_QUEUES) | 121 | priv->cfg->mod_params->num_of_queues <= IWLAGN_NUM_QUEUES) |
122 | priv->cfg->num_of_queues = | 122 | priv->cfg->num_of_queues = |
123 | priv->cfg->mod_params->num_of_queues; | 123 | priv->cfg->mod_params->num_of_queues; |
124 | 124 | ||
@@ -126,13 +126,13 @@ static int iwl1000_hw_set_hw_params(struct iwl_priv *priv) | |||
126 | priv->hw_params.dma_chnl_num = FH50_TCSR_CHNL_NUM; | 126 | priv->hw_params.dma_chnl_num = FH50_TCSR_CHNL_NUM; |
127 | priv->hw_params.scd_bc_tbls_size = | 127 | priv->hw_params.scd_bc_tbls_size = |
128 | priv->cfg->num_of_queues * | 128 | priv->cfg->num_of_queues * |
129 | sizeof(struct iwl5000_scd_bc_tbl); | 129 | sizeof(struct iwlagn_scd_bc_tbl); |
130 | priv->hw_params.tfd_size = sizeof(struct iwl_tfd); | 130 | priv->hw_params.tfd_size = sizeof(struct iwl_tfd); |
131 | priv->hw_params.max_stations = IWL5000_STATION_COUNT; | 131 | priv->hw_params.max_stations = IWL5000_STATION_COUNT; |
132 | priv->hw_params.bcast_sta_id = IWL5000_BROADCAST_ID; | 132 | priv->hw_params.bcast_sta_id = IWL5000_BROADCAST_ID; |
133 | 133 | ||
134 | priv->hw_params.max_data_size = IWL50_RTC_DATA_SIZE; | 134 | priv->hw_params.max_data_size = IWLAGN_RTC_DATA_SIZE; |
135 | priv->hw_params.max_inst_size = IWL50_RTC_INST_SIZE; | 135 | priv->hw_params.max_inst_size = IWLAGN_RTC_INST_SIZE; |
136 | 136 | ||
137 | priv->hw_params.max_bsm_size = 0; | 137 | priv->hw_params.max_bsm_size = 0; |
138 | priv->hw_params.ht40_channel = BIT(IEEE80211_BAND_2GHZ) | | 138 | priv->hw_params.ht40_channel = BIT(IEEE80211_BAND_2GHZ) | |
@@ -235,8 +235,8 @@ struct iwl_cfg iwl1000_bgn_cfg = { | |||
235 | .eeprom_size = OTP_LOW_IMAGE_SIZE, | 235 | .eeprom_size = OTP_LOW_IMAGE_SIZE, |
236 | .eeprom_ver = EEPROM_1000_EEPROM_VERSION, | 236 | .eeprom_ver = EEPROM_1000_EEPROM_VERSION, |
237 | .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION, | 237 | .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION, |
238 | .num_of_queues = IWL50_NUM_QUEUES, | 238 | .num_of_queues = IWLAGN_NUM_QUEUES, |
239 | .num_of_ampdu_queues = IWL50_NUM_AMPDU_QUEUES, | 239 | .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES, |
240 | .mod_params = &iwl50_mod_params, | 240 | .mod_params = &iwl50_mod_params, |
241 | .valid_tx_ant = ANT_A, | 241 | .valid_tx_ant = ANT_A, |
242 | .valid_rx_ant = ANT_AB, | 242 | .valid_rx_ant = ANT_AB, |
@@ -265,8 +265,8 @@ struct iwl_cfg iwl1000_bg_cfg = { | |||
265 | .eeprom_size = OTP_LOW_IMAGE_SIZE, | 265 | .eeprom_size = OTP_LOW_IMAGE_SIZE, |
266 | .eeprom_ver = EEPROM_1000_EEPROM_VERSION, | 266 | .eeprom_ver = EEPROM_1000_EEPROM_VERSION, |
267 | .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION, | 267 | .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION, |
268 | .num_of_queues = IWL50_NUM_QUEUES, | 268 | .num_of_queues = IWLAGN_NUM_QUEUES, |
269 | .num_of_ampdu_queues = IWL50_NUM_AMPDU_QUEUES, | 269 | .num_of_ampdu_queues = IWLAGN_NUM_AMPDU_QUEUES, |
270 | .mod_params = &iwl50_mod_params, | 270 | .mod_params = &iwl50_mod_params, |
271 | .valid_tx_ant = ANT_A, | 271 | .valid_tx_ant = ANT_A, |
272 | .valid_rx_ant = ANT_AB, | 272 | .valid_rx_ant = ANT_AB, |