Jay Sternberg | e122837 | 2009-01-19 15:30:34 -0800 | [diff] [blame] | 1 | /****************************************************************************** |
| 2 | * |
| 3 | * Copyright(c) 2008-2009 Intel Corporation. All rights reserved. |
| 4 | * |
| 5 | * This program is free software; you can redistribute it and/or modify it |
| 6 | * under the terms of version 2 of the GNU General Public License as |
| 7 | * published by the Free Software Foundation. |
| 8 | * |
| 9 | * This program is distributed in the hope that it will be useful, but WITHOUT |
| 10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
| 11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for |
| 12 | * more details. |
| 13 | * |
| 14 | * You should have received a copy of the GNU General Public License along with |
| 15 | * this program; if not, write to the Free Software Foundation, Inc., |
| 16 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA |
| 17 | * |
| 18 | * The full GNU General Public License is included in this distribution in the |
| 19 | * file called LICENSE. |
| 20 | * |
| 21 | * Contact Information: |
| 22 | * Intel Linux Wireless <ilw@linux.intel.com> |
| 23 | * Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497 |
| 24 | * |
| 25 | *****************************************************************************/ |
| 26 | |
| 27 | #include <linux/kernel.h> |
| 28 | #include <linux/module.h> |
| 29 | #include <linux/init.h> |
| 30 | #include <linux/pci.h> |
| 31 | #include <linux/dma-mapping.h> |
| 32 | #include <linux/delay.h> |
| 33 | #include <linux/skbuff.h> |
| 34 | #include <linux/netdevice.h> |
| 35 | #include <linux/wireless.h> |
| 36 | #include <net/mac80211.h> |
| 37 | #include <linux/etherdevice.h> |
| 38 | #include <asm/unaligned.h> |
| 39 | |
| 40 | #include "iwl-eeprom.h" |
| 41 | #include "iwl-dev.h" |
| 42 | #include "iwl-core.h" |
| 43 | #include "iwl-io.h" |
| 44 | #include "iwl-sta.h" |
| 45 | #include "iwl-helpers.h" |
| 46 | #include "iwl-5000-hw.h" |
Wey-Yi Guy | f3a2a42 | 2009-09-11 10:38:11 -0700 | [diff] [blame] | 47 | #include "iwl-6000-hw.h" |
Johannes Berg | e932a60 | 2009-10-02 13:44:03 -0700 | [diff] [blame^] | 48 | #include "iwl-agn-led.h" |
Jay Sternberg | e122837 | 2009-01-19 15:30:34 -0800 | [diff] [blame] | 49 | |
| 50 | /* Highest firmware API version supported */ |
Wey-Yi Guy | fcbaf8b | 2009-08-21 13:34:18 -0700 | [diff] [blame] | 51 | #define IWL6000_UCODE_API_MAX 4 |
| 52 | #define IWL6050_UCODE_API_MAX 4 |
Jay Sternberg | e122837 | 2009-01-19 15:30:34 -0800 | [diff] [blame] | 53 | |
| 54 | /* Lowest firmware API version supported */ |
| 55 | #define IWL6000_UCODE_API_MIN 1 |
| 56 | #define IWL6050_UCODE_API_MIN 1 |
| 57 | |
| 58 | #define IWL6000_FW_PRE "iwlwifi-6000-" |
| 59 | #define _IWL6000_MODULE_FIRMWARE(api) IWL6000_FW_PRE #api ".ucode" |
| 60 | #define IWL6000_MODULE_FIRMWARE(api) _IWL6000_MODULE_FIRMWARE(api) |
| 61 | |
| 62 | #define IWL6050_FW_PRE "iwlwifi-6050-" |
| 63 | #define _IWL6050_MODULE_FIRMWARE(api) IWL6050_FW_PRE #api ".ucode" |
| 64 | #define IWL6050_MODULE_FIRMWARE(api) _IWL6050_MODULE_FIRMWARE(api) |
| 65 | |
Wey-Yi Guy | 672639d | 2009-07-24 11:13:01 -0700 | [diff] [blame] | 66 | static void iwl6000_set_ct_threshold(struct iwl_priv *priv) |
| 67 | { |
| 68 | /* want Celsius */ |
| 69 | priv->hw_params.ct_kill_threshold = CT_KILL_THRESHOLD; |
| 70 | priv->hw_params.ct_kill_exit_threshold = CT_KILL_EXIT_THRESHOLD; |
| 71 | } |
| 72 | |
Wey-Yi Guy | 65b7998 | 2009-07-31 14:28:07 -0700 | [diff] [blame] | 73 | /* NIC configuration for 6000 series */ |
| 74 | static void iwl6000_nic_config(struct iwl_priv *priv) |
| 75 | { |
Wey-Yi Guy | 9371d4e | 2009-09-11 10:38:10 -0700 | [diff] [blame] | 76 | u16 radio_cfg; |
| 77 | |
| 78 | radio_cfg = iwl_eeprom_query16(priv, EEPROM_RADIO_CONFIG); |
| 79 | |
| 80 | /* write radio config values to register */ |
| 81 | if (EEPROM_RF_CFG_TYPE_MSK(radio_cfg) <= EEPROM_RF_CONFIG_TYPE_MAX) |
| 82 | iwl_set_bit(priv, CSR_HW_IF_CONFIG_REG, |
| 83 | EEPROM_RF_CFG_TYPE_MSK(radio_cfg) | |
| 84 | EEPROM_RF_CFG_STEP_MSK(radio_cfg) | |
| 85 | EEPROM_RF_CFG_DASH_MSK(radio_cfg)); |
| 86 | |
| 87 | /* set CSR_HW_CONFIG_REG for uCode use */ |
| 88 | iwl_set_bit(priv, CSR_HW_IF_CONFIG_REG, |
| 89 | CSR_HW_IF_CONFIG_REG_BIT_RADIO_SI | |
| 90 | CSR_HW_IF_CONFIG_REG_BIT_MAC_SI); |
Wey-Yi Guy | 65b7998 | 2009-07-31 14:28:07 -0700 | [diff] [blame] | 91 | |
| 92 | /* no locking required for register write */ |
| 93 | if (priv->cfg->pa_type == IWL_PA_HYBRID) { |
| 94 | /* 2x2 hybrid phy type */ |
| 95 | iwl_write32(priv, CSR_GP_DRIVER_REG, |
| 96 | CSR_GP_DRIVER_REG_BIT_RADIO_SKU_2x2_HYB); |
| 97 | } else if (priv->cfg->pa_type == IWL_PA_INTERNAL) { |
| 98 | /* 2x2 IPA phy type */ |
| 99 | iwl_write32(priv, CSR_GP_DRIVER_REG, |
| 100 | CSR_GP_DRIVER_REG_BIT_RADIO_SKU_2x2_IPA); |
| 101 | } |
| 102 | /* else do nothing, uCode configured */ |
| 103 | } |
| 104 | |
Wey-Yi Guy | f3a2a42 | 2009-09-11 10:38:11 -0700 | [diff] [blame] | 105 | static struct iwl_sensitivity_ranges iwl6000_sensitivity = { |
| 106 | .min_nrg_cck = 97, |
| 107 | .max_nrg_cck = 0, /* not used, set to 0 */ |
| 108 | .auto_corr_min_ofdm = 80, |
| 109 | .auto_corr_min_ofdm_mrc = 128, |
| 110 | .auto_corr_min_ofdm_x1 = 105, |
| 111 | .auto_corr_min_ofdm_mrc_x1 = 192, |
| 112 | |
| 113 | .auto_corr_max_ofdm = 145, |
| 114 | .auto_corr_max_ofdm_mrc = 232, |
| 115 | .auto_corr_max_ofdm_x1 = 145, |
| 116 | .auto_corr_max_ofdm_mrc_x1 = 232, |
| 117 | |
| 118 | .auto_corr_min_cck = 125, |
| 119 | .auto_corr_max_cck = 175, |
| 120 | .auto_corr_min_cck_mrc = 160, |
| 121 | .auto_corr_max_cck_mrc = 310, |
| 122 | .nrg_th_cck = 97, |
| 123 | .nrg_th_ofdm = 100, |
| 124 | }; |
| 125 | |
| 126 | static int iwl6000_hw_set_hw_params(struct iwl_priv *priv) |
| 127 | { |
| 128 | if ((priv->cfg->mod_params->num_of_queues > IWL50_NUM_QUEUES) || |
| 129 | (priv->cfg->mod_params->num_of_queues < IWL_MIN_NUM_QUEUES)) { |
| 130 | IWL_ERR(priv, |
| 131 | "invalid queues_num, should be between %d and %d\n", |
| 132 | IWL_MIN_NUM_QUEUES, IWL50_NUM_QUEUES); |
| 133 | return -EINVAL; |
| 134 | } |
| 135 | |
| 136 | priv->hw_params.max_txq_num = priv->cfg->mod_params->num_of_queues; |
| 137 | priv->hw_params.dma_chnl_num = FH50_TCSR_CHNL_NUM; |
| 138 | priv->hw_params.scd_bc_tbls_size = |
| 139 | IWL50_NUM_QUEUES * sizeof(struct iwl5000_scd_bc_tbl); |
| 140 | priv->hw_params.tfd_size = sizeof(struct iwl_tfd); |
| 141 | priv->hw_params.max_stations = IWL5000_STATION_COUNT; |
| 142 | priv->hw_params.bcast_sta_id = IWL5000_BROADCAST_ID; |
| 143 | |
| 144 | priv->hw_params.max_data_size = IWL60_RTC_DATA_SIZE; |
| 145 | priv->hw_params.max_inst_size = IWL60_RTC_INST_SIZE; |
| 146 | |
| 147 | priv->hw_params.max_bsm_size = 0; |
| 148 | priv->hw_params.ht40_channel = BIT(IEEE80211_BAND_2GHZ) | |
| 149 | BIT(IEEE80211_BAND_5GHZ); |
| 150 | priv->hw_params.rx_wrt_ptr_reg = FH_RSCSR_CHNL0_WPTR; |
| 151 | |
| 152 | priv->hw_params.tx_chains_num = num_of_ant(priv->cfg->valid_tx_ant); |
| 153 | priv->hw_params.rx_chains_num = num_of_ant(priv->cfg->valid_rx_ant); |
| 154 | priv->hw_params.valid_tx_ant = priv->cfg->valid_tx_ant; |
| 155 | priv->hw_params.valid_rx_ant = priv->cfg->valid_rx_ant; |
| 156 | |
| 157 | if (priv->cfg->ops->lib->temp_ops.set_ct_kill) |
| 158 | priv->cfg->ops->lib->temp_ops.set_ct_kill(priv); |
| 159 | |
| 160 | /* Set initial sensitivity parameters */ |
| 161 | /* Set initial calibration set */ |
| 162 | priv->hw_params.sens = &iwl6000_sensitivity; |
| 163 | priv->hw_params.calib_init_cfg = |
| 164 | BIT(IWL_CALIB_XTAL) | |
| 165 | BIT(IWL_CALIB_LO) | |
| 166 | BIT(IWL_CALIB_TX_IQ) | |
| 167 | BIT(IWL_CALIB_TX_IQ_PERD) | |
| 168 | BIT(IWL_CALIB_BASE_BAND); |
| 169 | |
| 170 | return 0; |
| 171 | } |
| 172 | |
Wey-Yi Guy | 672639d | 2009-07-24 11:13:01 -0700 | [diff] [blame] | 173 | static struct iwl_lib_ops iwl6000_lib = { |
Wey-Yi Guy | f3a2a42 | 2009-09-11 10:38:11 -0700 | [diff] [blame] | 174 | .set_hw_params = iwl6000_hw_set_hw_params, |
Wey-Yi Guy | 672639d | 2009-07-24 11:13:01 -0700 | [diff] [blame] | 175 | .txq_update_byte_cnt_tbl = iwl5000_txq_update_byte_cnt_tbl, |
| 176 | .txq_inval_byte_cnt_tbl = iwl5000_txq_inval_byte_cnt_tbl, |
| 177 | .txq_set_sched = iwl5000_txq_set_sched, |
| 178 | .txq_agg_enable = iwl5000_txq_agg_enable, |
| 179 | .txq_agg_disable = iwl5000_txq_agg_disable, |
| 180 | .txq_attach_buf_to_tfd = iwl_hw_txq_attach_buf_to_tfd, |
| 181 | .txq_free_tfd = iwl_hw_txq_free_tfd, |
| 182 | .txq_init = iwl_hw_tx_queue_init, |
| 183 | .rx_handler_setup = iwl5000_rx_handler_setup, |
| 184 | .setup_deferred_work = iwl5000_setup_deferred_work, |
| 185 | .is_valid_rtc_data_addr = iwl5000_hw_valid_rtc_data_addr, |
| 186 | .load_ucode = iwl5000_load_ucode, |
Reinette Chatre | b7a7940 | 2009-09-25 14:24:23 -0700 | [diff] [blame] | 187 | .dump_nic_event_log = iwl_dump_nic_event_log, |
| 188 | .dump_nic_error_log = iwl_dump_nic_error_log, |
Wey-Yi Guy | 672639d | 2009-07-24 11:13:01 -0700 | [diff] [blame] | 189 | .init_alive_start = iwl5000_init_alive_start, |
| 190 | .alive_notify = iwl5000_alive_notify, |
| 191 | .send_tx_power = iwl5000_send_tx_power, |
| 192 | .update_chain_flags = iwl_update_chain_flags, |
| 193 | .apm_ops = { |
| 194 | .init = iwl5000_apm_init, |
| 195 | .reset = iwl5000_apm_reset, |
| 196 | .stop = iwl5000_apm_stop, |
Wey-Yi Guy | 65b7998 | 2009-07-31 14:28:07 -0700 | [diff] [blame] | 197 | .config = iwl6000_nic_config, |
Wey-Yi Guy | 672639d | 2009-07-24 11:13:01 -0700 | [diff] [blame] | 198 | .set_pwr_src = iwl_set_pwr_src, |
| 199 | }, |
| 200 | .eeprom_ops = { |
| 201 | .regulatory_bands = { |
| 202 | EEPROM_5000_REG_BAND_1_CHANNELS, |
| 203 | EEPROM_5000_REG_BAND_2_CHANNELS, |
| 204 | EEPROM_5000_REG_BAND_3_CHANNELS, |
| 205 | EEPROM_5000_REG_BAND_4_CHANNELS, |
| 206 | EEPROM_5000_REG_BAND_5_CHANNELS, |
Wey-Yi Guy | 7aafef1 | 2009-08-07 15:41:38 -0700 | [diff] [blame] | 207 | EEPROM_5000_REG_BAND_24_HT40_CHANNELS, |
| 208 | EEPROM_5000_REG_BAND_52_HT40_CHANNELS |
Wey-Yi Guy | 672639d | 2009-07-24 11:13:01 -0700 | [diff] [blame] | 209 | }, |
| 210 | .verify_signature = iwlcore_eeprom_verify_signature, |
| 211 | .acquire_semaphore = iwlcore_eeprom_acquire_semaphore, |
| 212 | .release_semaphore = iwlcore_eeprom_release_semaphore, |
| 213 | .calib_version = iwl5000_eeprom_calib_version, |
| 214 | .query_addr = iwl5000_eeprom_query_addr, |
Wey-Yi Guy | ab9fd1b | 2009-08-21 13:34:23 -0700 | [diff] [blame] | 215 | .update_enhanced_txpower = iwlcore_eeprom_enhanced_txpower, |
Wey-Yi Guy | 672639d | 2009-07-24 11:13:01 -0700 | [diff] [blame] | 216 | }, |
| 217 | .post_associate = iwl_post_associate, |
| 218 | .isr = iwl_isr_ict, |
| 219 | .config_ap = iwl_config_ap, |
| 220 | .temp_ops = { |
| 221 | .temperature = iwl5000_temperature, |
| 222 | .set_ct_kill = iwl6000_set_ct_threshold, |
| 223 | }, |
| 224 | }; |
| 225 | |
Jay Sternberg | 29f35c1 | 2009-01-29 11:09:16 -0800 | [diff] [blame] | 226 | static struct iwl_ops iwl6000_ops = { |
Jay Sternberg | cc0f555 | 2009-07-17 09:30:16 -0700 | [diff] [blame] | 227 | .ucode = &iwl5000_ucode, |
Wey-Yi Guy | 672639d | 2009-07-24 11:13:01 -0700 | [diff] [blame] | 228 | .lib = &iwl6000_lib, |
Jay Sternberg | 29f35c1 | 2009-01-29 11:09:16 -0800 | [diff] [blame] | 229 | .hcmd = &iwl5000_hcmd, |
Wey-Yi Guy | d8c07e7 | 2009-09-25 14:24:26 -0700 | [diff] [blame] | 230 | .utils = &iwl5000_hcmd_utils, |
Johannes Berg | e932a60 | 2009-10-02 13:44:03 -0700 | [diff] [blame^] | 231 | .led = &iwlagn_led_ops, |
Jay Sternberg | 29f35c1 | 2009-01-29 11:09:16 -0800 | [diff] [blame] | 232 | }; |
| 233 | |
Jay Sternberg | e122837 | 2009-01-19 15:30:34 -0800 | [diff] [blame] | 234 | |
Wey-Yi Guy | 65b7998 | 2009-07-31 14:28:07 -0700 | [diff] [blame] | 235 | /* |
| 236 | * "h": Hybrid configuration, use both internal and external Power Amplifier |
| 237 | */ |
| 238 | struct iwl_cfg iwl6000h_2agn_cfg = { |
Jay Sternberg | e122837 | 2009-01-19 15:30:34 -0800 | [diff] [blame] | 239 | .name = "6000 Series 2x2 AGN", |
| 240 | .fw_name_pre = IWL6000_FW_PRE, |
| 241 | .ucode_api_max = IWL6000_UCODE_API_MAX, |
| 242 | .ucode_api_min = IWL6000_UCODE_API_MIN, |
| 243 | .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N, |
Jay Sternberg | 29f35c1 | 2009-01-29 11:09:16 -0800 | [diff] [blame] | 244 | .ops = &iwl6000_ops, |
Wey-Yi Guy | 415e499 | 2009-08-13 13:30:54 -0700 | [diff] [blame] | 245 | .eeprom_size = OTP_LOW_IMAGE_SIZE, |
Wey-Yi Guy | 1f4b966 | 2009-09-17 10:43:46 -0700 | [diff] [blame] | 246 | .eeprom_ver = EEPROM_6000_EEPROM_VERSION, |
Jay Sternberg | e122837 | 2009-01-19 15:30:34 -0800 | [diff] [blame] | 247 | .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION, |
| 248 | .mod_params = &iwl50_mod_params, |
Jay Sternberg | 542cc79 | 2009-05-08 13:44:46 -0700 | [diff] [blame] | 249 | .valid_tx_ant = ANT_AB, |
| 250 | .valid_rx_ant = ANT_AB, |
Jay Sternberg | 050681b | 2009-01-29 11:09:13 -0800 | [diff] [blame] | 251 | .need_pll_cfg = false, |
Wey-Yi Guy | 65b7998 | 2009-07-31 14:28:07 -0700 | [diff] [blame] | 252 | .pa_type = IWL_PA_HYBRID, |
Wey-Yi Guy | 415e499 | 2009-08-13 13:30:54 -0700 | [diff] [blame] | 253 | .max_ll_items = OTP_MAX_LL_ITEMS_6x00, |
| 254 | .shadow_ram_support = true, |
Daniel C Halperin | b261793 | 2009-08-13 13:30:59 -0700 | [diff] [blame] | 255 | .ht_greenfield_support = true, |
Wey-Yi Guy | f2d0d0e | 2009-09-11 10:38:14 -0700 | [diff] [blame] | 256 | .led_compensation = 51, |
Wey-Yi Guy | 47eef9b | 2009-09-17 10:43:44 -0700 | [diff] [blame] | 257 | .use_rts_for_ht = true, /* use rts/cts protection */ |
Wey-Yi Guy | d8c07e7 | 2009-09-25 14:24:26 -0700 | [diff] [blame] | 258 | .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS, |
Johannes Berg | 78f5fb7 | 2009-09-25 14:24:27 -0700 | [diff] [blame] | 259 | .supports_idle = true, |
Wey-Yi Guy | 65b7998 | 2009-07-31 14:28:07 -0700 | [diff] [blame] | 260 | }; |
| 261 | |
Wey-Yi Guy | 5953a62 | 2009-09-17 10:43:53 -0700 | [diff] [blame] | 262 | struct iwl_cfg iwl6000h_2abg_cfg = { |
| 263 | .name = "6000 Series 2x2 ABG", |
| 264 | .fw_name_pre = IWL6000_FW_PRE, |
| 265 | .ucode_api_max = IWL6000_UCODE_API_MAX, |
| 266 | .ucode_api_min = IWL6000_UCODE_API_MIN, |
| 267 | .sku = IWL_SKU_A|IWL_SKU_G, |
| 268 | .ops = &iwl6000_ops, |
| 269 | .eeprom_size = OTP_LOW_IMAGE_SIZE, |
| 270 | .eeprom_ver = EEPROM_6000_EEPROM_VERSION, |
| 271 | .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION, |
| 272 | .mod_params = &iwl50_mod_params, |
| 273 | .valid_tx_ant = ANT_AB, |
| 274 | .valid_rx_ant = ANT_AB, |
| 275 | .need_pll_cfg = false, |
| 276 | .pa_type = IWL_PA_HYBRID, |
| 277 | .max_ll_items = OTP_MAX_LL_ITEMS_6x00, |
| 278 | .shadow_ram_support = true, |
| 279 | .ht_greenfield_support = true, |
| 280 | .led_compensation = 51, |
Wey-Yi Guy | d8c07e7 | 2009-09-25 14:24:26 -0700 | [diff] [blame] | 281 | .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS, |
Johannes Berg | 78f5fb7 | 2009-09-25 14:24:27 -0700 | [diff] [blame] | 282 | .supports_idle = true, |
Wey-Yi Guy | 5953a62 | 2009-09-17 10:43:53 -0700 | [diff] [blame] | 283 | }; |
| 284 | |
| 285 | struct iwl_cfg iwl6000h_2bg_cfg = { |
| 286 | .name = "6000 Series 2x2 BG", |
| 287 | .fw_name_pre = IWL6000_FW_PRE, |
| 288 | .ucode_api_max = IWL6000_UCODE_API_MAX, |
| 289 | .ucode_api_min = IWL6000_UCODE_API_MIN, |
| 290 | .sku = IWL_SKU_G, |
| 291 | .ops = &iwl6000_ops, |
| 292 | .eeprom_size = OTP_LOW_IMAGE_SIZE, |
| 293 | .eeprom_ver = EEPROM_6000_EEPROM_VERSION, |
| 294 | .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION, |
| 295 | .mod_params = &iwl50_mod_params, |
| 296 | .valid_tx_ant = ANT_AB, |
| 297 | .valid_rx_ant = ANT_AB, |
| 298 | .need_pll_cfg = false, |
| 299 | .pa_type = IWL_PA_HYBRID, |
| 300 | .max_ll_items = OTP_MAX_LL_ITEMS_6x00, |
| 301 | .shadow_ram_support = true, |
| 302 | .ht_greenfield_support = true, |
| 303 | .led_compensation = 51, |
Wey-Yi Guy | d8c07e7 | 2009-09-25 14:24:26 -0700 | [diff] [blame] | 304 | .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS, |
Johannes Berg | 78f5fb7 | 2009-09-25 14:24:27 -0700 | [diff] [blame] | 305 | .supports_idle = true, |
Wey-Yi Guy | 5953a62 | 2009-09-17 10:43:53 -0700 | [diff] [blame] | 306 | }; |
| 307 | |
Wey-Yi Guy | 65b7998 | 2009-07-31 14:28:07 -0700 | [diff] [blame] | 308 | /* |
| 309 | * "i": Internal configuration, use internal Power Amplifier |
| 310 | */ |
| 311 | struct iwl_cfg iwl6000i_2agn_cfg = { |
| 312 | .name = "6000 Series 2x2 AGN", |
| 313 | .fw_name_pre = IWL6000_FW_PRE, |
| 314 | .ucode_api_max = IWL6000_UCODE_API_MAX, |
| 315 | .ucode_api_min = IWL6000_UCODE_API_MIN, |
| 316 | .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N, |
| 317 | .ops = &iwl6000_ops, |
Wey-Yi Guy | 415e499 | 2009-08-13 13:30:54 -0700 | [diff] [blame] | 318 | .eeprom_size = OTP_LOW_IMAGE_SIZE, |
Wey-Yi Guy | 1f4b966 | 2009-09-17 10:43:46 -0700 | [diff] [blame] | 319 | .eeprom_ver = EEPROM_6000_EEPROM_VERSION, |
Wey-Yi Guy | 65b7998 | 2009-07-31 14:28:07 -0700 | [diff] [blame] | 320 | .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION, |
| 321 | .mod_params = &iwl50_mod_params, |
| 322 | .valid_tx_ant = ANT_BC, |
| 323 | .valid_rx_ant = ANT_BC, |
| 324 | .need_pll_cfg = false, |
| 325 | .pa_type = IWL_PA_INTERNAL, |
Wey-Yi Guy | 415e499 | 2009-08-13 13:30:54 -0700 | [diff] [blame] | 326 | .max_ll_items = OTP_MAX_LL_ITEMS_6x00, |
| 327 | .shadow_ram_support = true, |
Daniel C Halperin | b261793 | 2009-08-13 13:30:59 -0700 | [diff] [blame] | 328 | .ht_greenfield_support = true, |
Wey-Yi Guy | f2d0d0e | 2009-09-11 10:38:14 -0700 | [diff] [blame] | 329 | .led_compensation = 51, |
Wey-Yi Guy | 47eef9b | 2009-09-17 10:43:44 -0700 | [diff] [blame] | 330 | .use_rts_for_ht = true, /* use rts/cts protection */ |
Wey-Yi Guy | d8c07e7 | 2009-09-25 14:24:26 -0700 | [diff] [blame] | 331 | .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS, |
Johannes Berg | 78f5fb7 | 2009-09-25 14:24:27 -0700 | [diff] [blame] | 332 | .supports_idle = true, |
Jay Sternberg | e122837 | 2009-01-19 15:30:34 -0800 | [diff] [blame] | 333 | }; |
| 334 | |
Wey-Yi Guy | 5953a62 | 2009-09-17 10:43:53 -0700 | [diff] [blame] | 335 | struct iwl_cfg iwl6000i_2abg_cfg = { |
| 336 | .name = "6000 Series 2x2 ABG", |
| 337 | .fw_name_pre = IWL6000_FW_PRE, |
| 338 | .ucode_api_max = IWL6000_UCODE_API_MAX, |
| 339 | .ucode_api_min = IWL6000_UCODE_API_MIN, |
| 340 | .sku = IWL_SKU_A|IWL_SKU_G, |
| 341 | .ops = &iwl6000_ops, |
| 342 | .eeprom_size = OTP_LOW_IMAGE_SIZE, |
| 343 | .eeprom_ver = EEPROM_6000_EEPROM_VERSION, |
| 344 | .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION, |
| 345 | .mod_params = &iwl50_mod_params, |
| 346 | .valid_tx_ant = ANT_BC, |
| 347 | .valid_rx_ant = ANT_BC, |
| 348 | .need_pll_cfg = false, |
| 349 | .pa_type = IWL_PA_INTERNAL, |
| 350 | .max_ll_items = OTP_MAX_LL_ITEMS_6x00, |
| 351 | .shadow_ram_support = true, |
| 352 | .ht_greenfield_support = true, |
| 353 | .led_compensation = 51, |
Wey-Yi Guy | d8c07e7 | 2009-09-25 14:24:26 -0700 | [diff] [blame] | 354 | .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS, |
Johannes Berg | 78f5fb7 | 2009-09-25 14:24:27 -0700 | [diff] [blame] | 355 | .supports_idle = true, |
Wey-Yi Guy | 5953a62 | 2009-09-17 10:43:53 -0700 | [diff] [blame] | 356 | }; |
| 357 | |
| 358 | struct iwl_cfg iwl6000i_2bg_cfg = { |
| 359 | .name = "6000 Series 2x2 BG", |
| 360 | .fw_name_pre = IWL6000_FW_PRE, |
| 361 | .ucode_api_max = IWL6000_UCODE_API_MAX, |
| 362 | .ucode_api_min = IWL6000_UCODE_API_MIN, |
| 363 | .sku = IWL_SKU_G, |
| 364 | .ops = &iwl6000_ops, |
| 365 | .eeprom_size = OTP_LOW_IMAGE_SIZE, |
| 366 | .eeprom_ver = EEPROM_6000_EEPROM_VERSION, |
| 367 | .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION, |
| 368 | .mod_params = &iwl50_mod_params, |
| 369 | .valid_tx_ant = ANT_BC, |
| 370 | .valid_rx_ant = ANT_BC, |
| 371 | .need_pll_cfg = false, |
| 372 | .pa_type = IWL_PA_INTERNAL, |
| 373 | .max_ll_items = OTP_MAX_LL_ITEMS_6x00, |
| 374 | .shadow_ram_support = true, |
| 375 | .ht_greenfield_support = true, |
| 376 | .led_compensation = 51, |
Wey-Yi Guy | d8c07e7 | 2009-09-25 14:24:26 -0700 | [diff] [blame] | 377 | .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS, |
Johannes Berg | 78f5fb7 | 2009-09-25 14:24:27 -0700 | [diff] [blame] | 378 | .supports_idle = true, |
Wey-Yi Guy | 5953a62 | 2009-09-17 10:43:53 -0700 | [diff] [blame] | 379 | }; |
| 380 | |
Jay Sternberg | e122837 | 2009-01-19 15:30:34 -0800 | [diff] [blame] | 381 | struct iwl_cfg iwl6050_2agn_cfg = { |
| 382 | .name = "6050 Series 2x2 AGN", |
| 383 | .fw_name_pre = IWL6050_FW_PRE, |
| 384 | .ucode_api_max = IWL6050_UCODE_API_MAX, |
| 385 | .ucode_api_min = IWL6050_UCODE_API_MIN, |
| 386 | .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N, |
Jay Sternberg | 29f35c1 | 2009-01-29 11:09:16 -0800 | [diff] [blame] | 387 | .ops = &iwl6000_ops, |
Wey-Yi Guy | 415e499 | 2009-08-13 13:30:54 -0700 | [diff] [blame] | 388 | .eeprom_size = OTP_LOW_IMAGE_SIZE, |
Wey-Yi Guy | 1f4b966 | 2009-09-17 10:43:46 -0700 | [diff] [blame] | 389 | .eeprom_ver = EEPROM_6000_EEPROM_VERSION, |
Jay Sternberg | e122837 | 2009-01-19 15:30:34 -0800 | [diff] [blame] | 390 | .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION, |
| 391 | .mod_params = &iwl50_mod_params, |
Jay Sternberg | 542cc79 | 2009-05-08 13:44:46 -0700 | [diff] [blame] | 392 | .valid_tx_ant = ANT_AB, |
| 393 | .valid_rx_ant = ANT_AB, |
Jay Sternberg | 050681b | 2009-01-29 11:09:13 -0800 | [diff] [blame] | 394 | .need_pll_cfg = false, |
Wey-Yi Guy | 65b7998 | 2009-07-31 14:28:07 -0700 | [diff] [blame] | 395 | .pa_type = IWL_PA_SYSTEM, |
Wey-Yi Guy | 415e499 | 2009-08-13 13:30:54 -0700 | [diff] [blame] | 396 | .max_ll_items = OTP_MAX_LL_ITEMS_6x00, |
| 397 | .shadow_ram_support = true, |
Daniel C Halperin | b261793 | 2009-08-13 13:30:59 -0700 | [diff] [blame] | 398 | .ht_greenfield_support = true, |
Wey-Yi Guy | f2d0d0e | 2009-09-11 10:38:14 -0700 | [diff] [blame] | 399 | .led_compensation = 51, |
Wey-Yi Guy | 47eef9b | 2009-09-17 10:43:44 -0700 | [diff] [blame] | 400 | .use_rts_for_ht = true, /* use rts/cts protection */ |
Wey-Yi Guy | d8c07e7 | 2009-09-25 14:24:26 -0700 | [diff] [blame] | 401 | .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS, |
Johannes Berg | 78f5fb7 | 2009-09-25 14:24:27 -0700 | [diff] [blame] | 402 | .supports_idle = true, |
Jay Sternberg | e122837 | 2009-01-19 15:30:34 -0800 | [diff] [blame] | 403 | }; |
| 404 | |
Wey-Yi Guy | 5953a62 | 2009-09-17 10:43:53 -0700 | [diff] [blame] | 405 | struct iwl_cfg iwl6050_2abg_cfg = { |
| 406 | .name = "6050 Series 2x2 ABG", |
| 407 | .fw_name_pre = IWL6050_FW_PRE, |
| 408 | .ucode_api_max = IWL6050_UCODE_API_MAX, |
| 409 | .ucode_api_min = IWL6050_UCODE_API_MIN, |
| 410 | .sku = IWL_SKU_A|IWL_SKU_G, |
| 411 | .ops = &iwl6000_ops, |
| 412 | .eeprom_size = OTP_LOW_IMAGE_SIZE, |
| 413 | .eeprom_ver = EEPROM_6000_EEPROM_VERSION, |
| 414 | .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION, |
| 415 | .mod_params = &iwl50_mod_params, |
| 416 | .valid_tx_ant = ANT_AB, |
| 417 | .valid_rx_ant = ANT_AB, |
| 418 | .need_pll_cfg = false, |
| 419 | .pa_type = IWL_PA_SYSTEM, |
| 420 | .max_ll_items = OTP_MAX_LL_ITEMS_6x00, |
| 421 | .shadow_ram_support = true, |
| 422 | .ht_greenfield_support = true, |
| 423 | .led_compensation = 51, |
Wey-Yi Guy | d8c07e7 | 2009-09-25 14:24:26 -0700 | [diff] [blame] | 424 | .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS, |
Johannes Berg | 78f5fb7 | 2009-09-25 14:24:27 -0700 | [diff] [blame] | 425 | .supports_idle = true, |
Wey-Yi Guy | 5953a62 | 2009-09-17 10:43:53 -0700 | [diff] [blame] | 426 | }; |
| 427 | |
Jay Sternberg | e122837 | 2009-01-19 15:30:34 -0800 | [diff] [blame] | 428 | struct iwl_cfg iwl6000_3agn_cfg = { |
| 429 | .name = "6000 Series 3x3 AGN", |
| 430 | .fw_name_pre = IWL6000_FW_PRE, |
| 431 | .ucode_api_max = IWL6000_UCODE_API_MAX, |
| 432 | .ucode_api_min = IWL6000_UCODE_API_MIN, |
| 433 | .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N, |
Jay Sternberg | 29f35c1 | 2009-01-29 11:09:16 -0800 | [diff] [blame] | 434 | .ops = &iwl6000_ops, |
Wey-Yi Guy | 415e499 | 2009-08-13 13:30:54 -0700 | [diff] [blame] | 435 | .eeprom_size = OTP_LOW_IMAGE_SIZE, |
Wey-Yi Guy | 1f4b966 | 2009-09-17 10:43:46 -0700 | [diff] [blame] | 436 | .eeprom_ver = EEPROM_6000_EEPROM_VERSION, |
Jay Sternberg | e122837 | 2009-01-19 15:30:34 -0800 | [diff] [blame] | 437 | .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION, |
| 438 | .mod_params = &iwl50_mod_params, |
Jay Sternberg | c0bac76 | 2009-02-02 16:21:14 -0800 | [diff] [blame] | 439 | .valid_tx_ant = ANT_ABC, |
| 440 | .valid_rx_ant = ANT_ABC, |
Jay Sternberg | 050681b | 2009-01-29 11:09:13 -0800 | [diff] [blame] | 441 | .need_pll_cfg = false, |
Wey-Yi Guy | 65b7998 | 2009-07-31 14:28:07 -0700 | [diff] [blame] | 442 | .pa_type = IWL_PA_SYSTEM, |
Wey-Yi Guy | 415e499 | 2009-08-13 13:30:54 -0700 | [diff] [blame] | 443 | .max_ll_items = OTP_MAX_LL_ITEMS_6x00, |
| 444 | .shadow_ram_support = true, |
Daniel C Halperin | b261793 | 2009-08-13 13:30:59 -0700 | [diff] [blame] | 445 | .ht_greenfield_support = true, |
Wey-Yi Guy | f2d0d0e | 2009-09-11 10:38:14 -0700 | [diff] [blame] | 446 | .led_compensation = 51, |
Wey-Yi Guy | 47eef9b | 2009-09-17 10:43:44 -0700 | [diff] [blame] | 447 | .use_rts_for_ht = true, /* use rts/cts protection */ |
Wey-Yi Guy | d8c07e7 | 2009-09-25 14:24:26 -0700 | [diff] [blame] | 448 | .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS, |
Johannes Berg | 78f5fb7 | 2009-09-25 14:24:27 -0700 | [diff] [blame] | 449 | .supports_idle = true, |
Jay Sternberg | e122837 | 2009-01-19 15:30:34 -0800 | [diff] [blame] | 450 | }; |
| 451 | |
| 452 | struct iwl_cfg iwl6050_3agn_cfg = { |
| 453 | .name = "6050 Series 3x3 AGN", |
| 454 | .fw_name_pre = IWL6050_FW_PRE, |
| 455 | .ucode_api_max = IWL6050_UCODE_API_MAX, |
| 456 | .ucode_api_min = IWL6050_UCODE_API_MIN, |
| 457 | .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N, |
Jay Sternberg | 29f35c1 | 2009-01-29 11:09:16 -0800 | [diff] [blame] | 458 | .ops = &iwl6000_ops, |
Wey-Yi Guy | 415e499 | 2009-08-13 13:30:54 -0700 | [diff] [blame] | 459 | .eeprom_size = OTP_LOW_IMAGE_SIZE, |
Wey-Yi Guy | 1f4b966 | 2009-09-17 10:43:46 -0700 | [diff] [blame] | 460 | .eeprom_ver = EEPROM_6000_EEPROM_VERSION, |
Jay Sternberg | e122837 | 2009-01-19 15:30:34 -0800 | [diff] [blame] | 461 | .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION, |
| 462 | .mod_params = &iwl50_mod_params, |
Jay Sternberg | c0bac76 | 2009-02-02 16:21:14 -0800 | [diff] [blame] | 463 | .valid_tx_ant = ANT_ABC, |
| 464 | .valid_rx_ant = ANT_ABC, |
Jay Sternberg | 050681b | 2009-01-29 11:09:13 -0800 | [diff] [blame] | 465 | .need_pll_cfg = false, |
Wey-Yi Guy | 65b7998 | 2009-07-31 14:28:07 -0700 | [diff] [blame] | 466 | .pa_type = IWL_PA_SYSTEM, |
Wey-Yi Guy | 415e499 | 2009-08-13 13:30:54 -0700 | [diff] [blame] | 467 | .max_ll_items = OTP_MAX_LL_ITEMS_6x00, |
| 468 | .shadow_ram_support = true, |
Daniel C Halperin | b261793 | 2009-08-13 13:30:59 -0700 | [diff] [blame] | 469 | .ht_greenfield_support = true, |
Wey-Yi Guy | f2d0d0e | 2009-09-11 10:38:14 -0700 | [diff] [blame] | 470 | .led_compensation = 51, |
Wey-Yi Guy | 47eef9b | 2009-09-17 10:43:44 -0700 | [diff] [blame] | 471 | .use_rts_for_ht = true, /* use rts/cts protection */ |
Wey-Yi Guy | d8c07e7 | 2009-09-25 14:24:26 -0700 | [diff] [blame] | 472 | .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS, |
Johannes Berg | 78f5fb7 | 2009-09-25 14:24:27 -0700 | [diff] [blame] | 473 | .supports_idle = true, |
Jay Sternberg | e122837 | 2009-01-19 15:30:34 -0800 | [diff] [blame] | 474 | }; |
| 475 | |
| 476 | MODULE_FIRMWARE(IWL6000_MODULE_FIRMWARE(IWL6000_UCODE_API_MAX)); |
| 477 | MODULE_FIRMWARE(IWL6050_MODULE_FIRMWARE(IWL6050_UCODE_API_MAX)); |