Jay Sternberg | e122837 | 2009-01-19 15:30:34 -0800 | [diff] [blame] | 1 | /****************************************************************************** |
| 2 | * |
Reinette Chatre | 1f44780 | 2010-01-15 13:43:41 -0800 | [diff] [blame] | 3 | * Copyright(c) 2008 - 2010 Intel Corporation. All rights reserved. |
Jay Sternberg | e122837 | 2009-01-19 15:30:34 -0800 | [diff] [blame] | 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" |
Johannes Berg | a117512 | 2010-01-21 06:21:10 -0800 | [diff] [blame] | 45 | #include "iwl-agn.h" |
Jay Sternberg | e122837 | 2009-01-19 15:30:34 -0800 | [diff] [blame] | 46 | #include "iwl-helpers.h" |
| 47 | #include "iwl-5000-hw.h" |
Wey-Yi Guy | f3a2a42 | 2009-09-11 10:38:11 -0700 | [diff] [blame] | 48 | #include "iwl-6000-hw.h" |
Johannes Berg | e932a60 | 2009-10-02 13:44:03 -0700 | [diff] [blame] | 49 | #include "iwl-agn-led.h" |
Jay Sternberg | e122837 | 2009-01-19 15:30:34 -0800 | [diff] [blame] | 50 | |
| 51 | /* Highest firmware API version supported */ |
Wey-Yi Guy | fcbaf8b | 2009-08-21 13:34:18 -0700 | [diff] [blame] | 52 | #define IWL6000_UCODE_API_MAX 4 |
| 53 | #define IWL6050_UCODE_API_MAX 4 |
Jay Sternberg | e122837 | 2009-01-19 15:30:34 -0800 | [diff] [blame] | 54 | |
| 55 | /* Lowest firmware API version supported */ |
Wey-Yi Guy | 4424642 | 2009-10-23 13:42:34 -0700 | [diff] [blame] | 56 | #define IWL6000_UCODE_API_MIN 4 |
| 57 | #define IWL6050_UCODE_API_MIN 4 |
Jay Sternberg | e122837 | 2009-01-19 15:30:34 -0800 | [diff] [blame] | 58 | |
| 59 | #define IWL6000_FW_PRE "iwlwifi-6000-" |
| 60 | #define _IWL6000_MODULE_FIRMWARE(api) IWL6000_FW_PRE #api ".ucode" |
| 61 | #define IWL6000_MODULE_FIRMWARE(api) _IWL6000_MODULE_FIRMWARE(api) |
| 62 | |
| 63 | #define IWL6050_FW_PRE "iwlwifi-6050-" |
| 64 | #define _IWL6050_MODULE_FIRMWARE(api) IWL6050_FW_PRE #api ".ucode" |
| 65 | #define IWL6050_MODULE_FIRMWARE(api) _IWL6050_MODULE_FIRMWARE(api) |
| 66 | |
Wey-Yi Guy | 672639d | 2009-07-24 11:13:01 -0700 | [diff] [blame] | 67 | static void iwl6000_set_ct_threshold(struct iwl_priv *priv) |
| 68 | { |
| 69 | /* want Celsius */ |
| 70 | priv->hw_params.ct_kill_threshold = CT_KILL_THRESHOLD; |
| 71 | priv->hw_params.ct_kill_exit_threshold = CT_KILL_EXIT_THRESHOLD; |
| 72 | } |
| 73 | |
Abhijeet Kolekar | d575593 | 2010-02-18 22:03:05 -0800 | [diff] [blame] | 74 | /* Indicate calibration version to uCode. */ |
| 75 | static void iwl6050_set_calib_version(struct iwl_priv *priv) |
| 76 | { |
| 77 | if (priv->cfg->ops->lib->eeprom_ops.calib_version(priv) >= 6) |
| 78 | iwl_set_bit(priv, CSR_GP_DRIVER_REG, |
| 79 | CSR_GP_DRIVER_REG_BIT_CALIB_VERSION6); |
| 80 | } |
| 81 | |
Wey-Yi Guy | 65b7998 | 2009-07-31 14:28:07 -0700 | [diff] [blame] | 82 | /* NIC configuration for 6000 series */ |
| 83 | static void iwl6000_nic_config(struct iwl_priv *priv) |
| 84 | { |
Wey-Yi Guy | 9371d4e | 2009-09-11 10:38:10 -0700 | [diff] [blame] | 85 | u16 radio_cfg; |
| 86 | |
| 87 | radio_cfg = iwl_eeprom_query16(priv, EEPROM_RADIO_CONFIG); |
| 88 | |
| 89 | /* write radio config values to register */ |
| 90 | if (EEPROM_RF_CFG_TYPE_MSK(radio_cfg) <= EEPROM_RF_CONFIG_TYPE_MAX) |
| 91 | iwl_set_bit(priv, CSR_HW_IF_CONFIG_REG, |
| 92 | EEPROM_RF_CFG_TYPE_MSK(radio_cfg) | |
| 93 | EEPROM_RF_CFG_STEP_MSK(radio_cfg) | |
| 94 | EEPROM_RF_CFG_DASH_MSK(radio_cfg)); |
| 95 | |
| 96 | /* set CSR_HW_CONFIG_REG for uCode use */ |
| 97 | iwl_set_bit(priv, CSR_HW_IF_CONFIG_REG, |
| 98 | CSR_HW_IF_CONFIG_REG_BIT_RADIO_SI | |
| 99 | CSR_HW_IF_CONFIG_REG_BIT_MAC_SI); |
Wey-Yi Guy | 65b7998 | 2009-07-31 14:28:07 -0700 | [diff] [blame] | 100 | |
| 101 | /* no locking required for register write */ |
Wey-Yi Guy | 740e7f5 | 2009-11-06 14:52:55 -0800 | [diff] [blame] | 102 | if (priv->cfg->pa_type == IWL_PA_INTERNAL) { |
Wey-Yi Guy | 65b7998 | 2009-07-31 14:28:07 -0700 | [diff] [blame] | 103 | /* 2x2 IPA phy type */ |
| 104 | iwl_write32(priv, CSR_GP_DRIVER_REG, |
| 105 | CSR_GP_DRIVER_REG_BIT_RADIO_SKU_2x2_IPA); |
| 106 | } |
| 107 | /* else do nothing, uCode configured */ |
Abhijeet Kolekar | d575593 | 2010-02-18 22:03:05 -0800 | [diff] [blame] | 108 | if (priv->cfg->ops->lib->temp_ops.set_calib_version) |
| 109 | priv->cfg->ops->lib->temp_ops.set_calib_version(priv); |
Wey-Yi Guy | 65b7998 | 2009-07-31 14:28:07 -0700 | [diff] [blame] | 110 | } |
| 111 | |
Wey-Yi Guy | f3a2a42 | 2009-09-11 10:38:11 -0700 | [diff] [blame] | 112 | static struct iwl_sensitivity_ranges iwl6000_sensitivity = { |
| 113 | .min_nrg_cck = 97, |
| 114 | .max_nrg_cck = 0, /* not used, set to 0 */ |
| 115 | .auto_corr_min_ofdm = 80, |
| 116 | .auto_corr_min_ofdm_mrc = 128, |
| 117 | .auto_corr_min_ofdm_x1 = 105, |
| 118 | .auto_corr_min_ofdm_mrc_x1 = 192, |
| 119 | |
| 120 | .auto_corr_max_ofdm = 145, |
| 121 | .auto_corr_max_ofdm_mrc = 232, |
Wey-Yi Guy | 2494f63 | 2010-01-20 12:22:52 -0800 | [diff] [blame] | 122 | .auto_corr_max_ofdm_x1 = 110, |
Wey-Yi Guy | f3a2a42 | 2009-09-11 10:38:11 -0700 | [diff] [blame] | 123 | .auto_corr_max_ofdm_mrc_x1 = 232, |
| 124 | |
| 125 | .auto_corr_min_cck = 125, |
| 126 | .auto_corr_max_cck = 175, |
| 127 | .auto_corr_min_cck_mrc = 160, |
| 128 | .auto_corr_max_cck_mrc = 310, |
| 129 | .nrg_th_cck = 97, |
| 130 | .nrg_th_ofdm = 100, |
Wey-Yi Guy | 55036d6 | 2009-10-09 13:20:24 -0700 | [diff] [blame] | 131 | |
| 132 | .barker_corr_th_min = 190, |
| 133 | .barker_corr_th_min_mrc = 390, |
| 134 | .nrg_th_cca = 62, |
Wey-Yi Guy | f3a2a42 | 2009-09-11 10:38:11 -0700 | [diff] [blame] | 135 | }; |
| 136 | |
| 137 | static int iwl6000_hw_set_hw_params(struct iwl_priv *priv) |
| 138 | { |
Wey-Yi Guy | 88804e2 | 2009-10-09 13:20:28 -0700 | [diff] [blame] | 139 | if (priv->cfg->mod_params->num_of_queues >= IWL_MIN_NUM_QUEUES && |
| 140 | priv->cfg->mod_params->num_of_queues <= IWL50_NUM_QUEUES) |
| 141 | priv->cfg->num_of_queues = |
| 142 | priv->cfg->mod_params->num_of_queues; |
Wey-Yi Guy | f3a2a42 | 2009-09-11 10:38:11 -0700 | [diff] [blame] | 143 | |
Wey-Yi Guy | 88804e2 | 2009-10-09 13:20:28 -0700 | [diff] [blame] | 144 | priv->hw_params.max_txq_num = priv->cfg->num_of_queues; |
Wey-Yi Guy | f3a2a42 | 2009-09-11 10:38:11 -0700 | [diff] [blame] | 145 | priv->hw_params.dma_chnl_num = FH50_TCSR_CHNL_NUM; |
| 146 | priv->hw_params.scd_bc_tbls_size = |
Wey-Yi Guy | 88804e2 | 2009-10-09 13:20:28 -0700 | [diff] [blame] | 147 | priv->cfg->num_of_queues * |
| 148 | sizeof(struct iwl5000_scd_bc_tbl); |
Wey-Yi Guy | f3a2a42 | 2009-09-11 10:38:11 -0700 | [diff] [blame] | 149 | priv->hw_params.tfd_size = sizeof(struct iwl_tfd); |
| 150 | priv->hw_params.max_stations = IWL5000_STATION_COUNT; |
| 151 | priv->hw_params.bcast_sta_id = IWL5000_BROADCAST_ID; |
| 152 | |
| 153 | priv->hw_params.max_data_size = IWL60_RTC_DATA_SIZE; |
| 154 | priv->hw_params.max_inst_size = IWL60_RTC_INST_SIZE; |
| 155 | |
| 156 | priv->hw_params.max_bsm_size = 0; |
| 157 | priv->hw_params.ht40_channel = BIT(IEEE80211_BAND_2GHZ) | |
| 158 | BIT(IEEE80211_BAND_5GHZ); |
| 159 | priv->hw_params.rx_wrt_ptr_reg = FH_RSCSR_CHNL0_WPTR; |
| 160 | |
| 161 | priv->hw_params.tx_chains_num = num_of_ant(priv->cfg->valid_tx_ant); |
| 162 | priv->hw_params.rx_chains_num = num_of_ant(priv->cfg->valid_rx_ant); |
| 163 | priv->hw_params.valid_tx_ant = priv->cfg->valid_tx_ant; |
| 164 | priv->hw_params.valid_rx_ant = priv->cfg->valid_rx_ant; |
| 165 | |
| 166 | if (priv->cfg->ops->lib->temp_ops.set_ct_kill) |
| 167 | priv->cfg->ops->lib->temp_ops.set_ct_kill(priv); |
| 168 | |
| 169 | /* Set initial sensitivity parameters */ |
| 170 | /* Set initial calibration set */ |
| 171 | priv->hw_params.sens = &iwl6000_sensitivity; |
Abhijeet Kolekar | 07f33f9 | 2010-01-22 14:22:47 -0800 | [diff] [blame] | 172 | switch (priv->hw_rev & CSR_HW_REV_TYPE_MSK) { |
| 173 | case CSR_HW_REV_TYPE_6x50: |
| 174 | priv->hw_params.calib_init_cfg = |
| 175 | BIT(IWL_CALIB_XTAL) | |
| 176 | BIT(IWL_CALIB_DC) | |
| 177 | BIT(IWL_CALIB_LO) | |
| 178 | BIT(IWL_CALIB_TX_IQ) | |
| 179 | BIT(IWL_CALIB_BASE_BAND); |
| 180 | |
| 181 | break; |
| 182 | default: |
| 183 | priv->hw_params.calib_init_cfg = |
Wey-Yi Guy | f3a2a42 | 2009-09-11 10:38:11 -0700 | [diff] [blame] | 184 | BIT(IWL_CALIB_XTAL) | |
| 185 | BIT(IWL_CALIB_LO) | |
| 186 | BIT(IWL_CALIB_TX_IQ) | |
Wey-Yi Guy | f3a2a42 | 2009-09-11 10:38:11 -0700 | [diff] [blame] | 187 | BIT(IWL_CALIB_BASE_BAND); |
Abhijeet Kolekar | 07f33f9 | 2010-01-22 14:22:47 -0800 | [diff] [blame] | 188 | break; |
| 189 | } |
| 190 | |
Wey-Yi Guy | f3a2a42 | 2009-09-11 10:38:11 -0700 | [diff] [blame] | 191 | return 0; |
| 192 | } |
| 193 | |
Wey-Yi Guy | 4a56e96 | 2009-10-23 13:42:29 -0700 | [diff] [blame] | 194 | static int iwl6000_hw_channel_switch(struct iwl_priv *priv, u16 channel) |
| 195 | { |
| 196 | struct iwl6000_channel_switch_cmd cmd; |
| 197 | const struct iwl_channel_info *ch_info; |
| 198 | struct iwl_host_cmd hcmd = { |
| 199 | .id = REPLY_CHANNEL_SWITCH, |
| 200 | .len = sizeof(cmd), |
| 201 | .flags = CMD_SIZE_HUGE, |
| 202 | .data = &cmd, |
| 203 | }; |
| 204 | |
| 205 | IWL_DEBUG_11H(priv, "channel switch from %d to %d\n", |
| 206 | priv->active_rxon.channel, channel); |
| 207 | |
| 208 | cmd.band = priv->band == IEEE80211_BAND_2GHZ; |
| 209 | cmd.channel = cpu_to_le16(channel); |
Wey-Yi Guy | 0924e519 | 2009-11-06 14:52:54 -0800 | [diff] [blame] | 210 | cmd.rxon_flags = priv->staging_rxon.flags; |
| 211 | cmd.rxon_filter_flags = priv->staging_rxon.filter_flags; |
Wey-Yi Guy | 4a56e96 | 2009-10-23 13:42:29 -0700 | [diff] [blame] | 212 | cmd.switch_time = cpu_to_le32(priv->ucode_beacon_time); |
| 213 | ch_info = iwl_get_channel_info(priv, priv->band, channel); |
| 214 | if (ch_info) |
| 215 | cmd.expect_beacon = is_channel_radar(ch_info); |
| 216 | else { |
| 217 | IWL_ERR(priv, "invalid channel switch from %u to %u\n", |
| 218 | priv->active_rxon.channel, channel); |
| 219 | return -EFAULT; |
| 220 | } |
Wey-Yi Guy | 0924e519 | 2009-11-06 14:52:54 -0800 | [diff] [blame] | 221 | priv->switch_rxon.channel = cpu_to_le16(channel); |
| 222 | priv->switch_rxon.switch_in_progress = true; |
Wey-Yi Guy | 4a56e96 | 2009-10-23 13:42:29 -0700 | [diff] [blame] | 223 | |
| 224 | return iwl_send_cmd_sync(priv, &hcmd); |
| 225 | } |
| 226 | |
Wey-Yi Guy | 672639d | 2009-07-24 11:13:01 -0700 | [diff] [blame] | 227 | static struct iwl_lib_ops iwl6000_lib = { |
Wey-Yi Guy | f3a2a42 | 2009-09-11 10:38:11 -0700 | [diff] [blame] | 228 | .set_hw_params = iwl6000_hw_set_hw_params, |
Wey-Yi Guy | 672639d | 2009-07-24 11:13:01 -0700 | [diff] [blame] | 229 | .txq_update_byte_cnt_tbl = iwl5000_txq_update_byte_cnt_tbl, |
| 230 | .txq_inval_byte_cnt_tbl = iwl5000_txq_inval_byte_cnt_tbl, |
| 231 | .txq_set_sched = iwl5000_txq_set_sched, |
| 232 | .txq_agg_enable = iwl5000_txq_agg_enable, |
| 233 | .txq_agg_disable = iwl5000_txq_agg_disable, |
| 234 | .txq_attach_buf_to_tfd = iwl_hw_txq_attach_buf_to_tfd, |
| 235 | .txq_free_tfd = iwl_hw_txq_free_tfd, |
| 236 | .txq_init = iwl_hw_tx_queue_init, |
| 237 | .rx_handler_setup = iwl5000_rx_handler_setup, |
| 238 | .setup_deferred_work = iwl5000_setup_deferred_work, |
| 239 | .is_valid_rtc_data_addr = iwl5000_hw_valid_rtc_data_addr, |
| 240 | .load_ucode = iwl5000_load_ucode, |
Reinette Chatre | b7a7940 | 2009-09-25 14:24:23 -0700 | [diff] [blame] | 241 | .dump_nic_event_log = iwl_dump_nic_event_log, |
| 242 | .dump_nic_error_log = iwl_dump_nic_error_log, |
Wey-Yi Guy | 696bdee | 2009-12-10 14:37:25 -0800 | [diff] [blame] | 243 | .dump_csr = iwl_dump_csr, |
Wey-Yi Guy | 1b3eb82 | 2010-01-15 13:43:39 -0800 | [diff] [blame] | 244 | .dump_fh = iwl_dump_fh, |
Wey-Yi Guy | 672639d | 2009-07-24 11:13:01 -0700 | [diff] [blame] | 245 | .init_alive_start = iwl5000_init_alive_start, |
| 246 | .alive_notify = iwl5000_alive_notify, |
| 247 | .send_tx_power = iwl5000_send_tx_power, |
| 248 | .update_chain_flags = iwl_update_chain_flags, |
Wey-Yi Guy | 4a56e96 | 2009-10-23 13:42:29 -0700 | [diff] [blame] | 249 | .set_channel_switch = iwl6000_hw_channel_switch, |
Wey-Yi Guy | 672639d | 2009-07-24 11:13:01 -0700 | [diff] [blame] | 250 | .apm_ops = { |
Ben Cahill | fadb358 | 2009-10-23 13:42:21 -0700 | [diff] [blame] | 251 | .init = iwl_apm_init, |
Abhijeet Kolekar | d68b603 | 2009-10-02 13:44:04 -0700 | [diff] [blame] | 252 | .stop = iwl_apm_stop, |
Wey-Yi Guy | 65b7998 | 2009-07-31 14:28:07 -0700 | [diff] [blame] | 253 | .config = iwl6000_nic_config, |
Wey-Yi Guy | 672639d | 2009-07-24 11:13:01 -0700 | [diff] [blame] | 254 | .set_pwr_src = iwl_set_pwr_src, |
| 255 | }, |
| 256 | .eeprom_ops = { |
| 257 | .regulatory_bands = { |
| 258 | EEPROM_5000_REG_BAND_1_CHANNELS, |
| 259 | EEPROM_5000_REG_BAND_2_CHANNELS, |
| 260 | EEPROM_5000_REG_BAND_3_CHANNELS, |
| 261 | EEPROM_5000_REG_BAND_4_CHANNELS, |
| 262 | EEPROM_5000_REG_BAND_5_CHANNELS, |
Wey-Yi Guy | 7aafef1 | 2009-08-07 15:41:38 -0700 | [diff] [blame] | 263 | EEPROM_5000_REG_BAND_24_HT40_CHANNELS, |
| 264 | EEPROM_5000_REG_BAND_52_HT40_CHANNELS |
Wey-Yi Guy | 672639d | 2009-07-24 11:13:01 -0700 | [diff] [blame] | 265 | }, |
| 266 | .verify_signature = iwlcore_eeprom_verify_signature, |
| 267 | .acquire_semaphore = iwlcore_eeprom_acquire_semaphore, |
| 268 | .release_semaphore = iwlcore_eeprom_release_semaphore, |
| 269 | .calib_version = iwl5000_eeprom_calib_version, |
| 270 | .query_addr = iwl5000_eeprom_query_addr, |
Wey-Yi Guy | ab9fd1b | 2009-08-21 13:34:23 -0700 | [diff] [blame] | 271 | .update_enhanced_txpower = iwlcore_eeprom_enhanced_txpower, |
Wey-Yi Guy | 672639d | 2009-07-24 11:13:01 -0700 | [diff] [blame] | 272 | }, |
| 273 | .post_associate = iwl_post_associate, |
| 274 | .isr = iwl_isr_ict, |
| 275 | .config_ap = iwl_config_ap, |
| 276 | .temp_ops = { |
| 277 | .temperature = iwl5000_temperature, |
| 278 | .set_ct_kill = iwl6000_set_ct_threshold, |
| 279 | }, |
Reinette Chatre | 3459ab5 | 2010-01-22 14:22:49 -0800 | [diff] [blame] | 280 | .add_bcast_station = iwl_add_bcast_station, |
Wey-Yi Guy | b74e31a | 2010-03-01 17:23:50 -0800 | [diff] [blame^] | 281 | .recover_from_tx_stall = iwl_bg_monitor_recover, |
Wey-Yi Guy | 672639d | 2009-07-24 11:13:01 -0700 | [diff] [blame] | 282 | }; |
| 283 | |
Emese Revfy | 45d5d80 | 2009-12-14 00:59:53 +0100 | [diff] [blame] | 284 | static const struct iwl_ops iwl6000_ops = { |
Jay Sternberg | cc0f555 | 2009-07-17 09:30:16 -0700 | [diff] [blame] | 285 | .ucode = &iwl5000_ucode, |
Wey-Yi Guy | 672639d | 2009-07-24 11:13:01 -0700 | [diff] [blame] | 286 | .lib = &iwl6000_lib, |
Jay Sternberg | 29f35c1 | 2009-01-29 11:09:16 -0800 | [diff] [blame] | 287 | .hcmd = &iwl5000_hcmd, |
Wey-Yi Guy | d8c07e7 | 2009-09-25 14:24:26 -0700 | [diff] [blame] | 288 | .utils = &iwl5000_hcmd_utils, |
Johannes Berg | e932a60 | 2009-10-02 13:44:03 -0700 | [diff] [blame] | 289 | .led = &iwlagn_led_ops, |
Jay Sternberg | 29f35c1 | 2009-01-29 11:09:16 -0800 | [diff] [blame] | 290 | }; |
| 291 | |
Abhijeet Kolekar | d575593 | 2010-02-18 22:03:05 -0800 | [diff] [blame] | 292 | static struct iwl_lib_ops iwl6050_lib = { |
| 293 | .set_hw_params = iwl6000_hw_set_hw_params, |
| 294 | .txq_update_byte_cnt_tbl = iwl5000_txq_update_byte_cnt_tbl, |
| 295 | .txq_inval_byte_cnt_tbl = iwl5000_txq_inval_byte_cnt_tbl, |
| 296 | .txq_set_sched = iwl5000_txq_set_sched, |
| 297 | .txq_agg_enable = iwl5000_txq_agg_enable, |
| 298 | .txq_agg_disable = iwl5000_txq_agg_disable, |
| 299 | .txq_attach_buf_to_tfd = iwl_hw_txq_attach_buf_to_tfd, |
| 300 | .txq_free_tfd = iwl_hw_txq_free_tfd, |
| 301 | .txq_init = iwl_hw_tx_queue_init, |
| 302 | .rx_handler_setup = iwl5000_rx_handler_setup, |
| 303 | .setup_deferred_work = iwl5000_setup_deferred_work, |
| 304 | .is_valid_rtc_data_addr = iwl5000_hw_valid_rtc_data_addr, |
| 305 | .load_ucode = iwl5000_load_ucode, |
| 306 | .dump_nic_event_log = iwl_dump_nic_event_log, |
| 307 | .dump_nic_error_log = iwl_dump_nic_error_log, |
| 308 | .dump_csr = iwl_dump_csr, |
| 309 | .dump_fh = iwl_dump_fh, |
| 310 | .init_alive_start = iwl5000_init_alive_start, |
| 311 | .alive_notify = iwl5000_alive_notify, |
| 312 | .send_tx_power = iwl5000_send_tx_power, |
| 313 | .update_chain_flags = iwl_update_chain_flags, |
| 314 | .set_channel_switch = iwl6000_hw_channel_switch, |
| 315 | .apm_ops = { |
| 316 | .init = iwl_apm_init, |
| 317 | .stop = iwl_apm_stop, |
| 318 | .config = iwl6000_nic_config, |
| 319 | .set_pwr_src = iwl_set_pwr_src, |
| 320 | }, |
| 321 | .eeprom_ops = { |
| 322 | .regulatory_bands = { |
| 323 | EEPROM_5000_REG_BAND_1_CHANNELS, |
| 324 | EEPROM_5000_REG_BAND_2_CHANNELS, |
| 325 | EEPROM_5000_REG_BAND_3_CHANNELS, |
| 326 | EEPROM_5000_REG_BAND_4_CHANNELS, |
| 327 | EEPROM_5000_REG_BAND_5_CHANNELS, |
| 328 | EEPROM_5000_REG_BAND_24_HT40_CHANNELS, |
| 329 | EEPROM_5000_REG_BAND_52_HT40_CHANNELS |
| 330 | }, |
| 331 | .verify_signature = iwlcore_eeprom_verify_signature, |
| 332 | .acquire_semaphore = iwlcore_eeprom_acquire_semaphore, |
| 333 | .release_semaphore = iwlcore_eeprom_release_semaphore, |
| 334 | .calib_version = iwl5000_eeprom_calib_version, |
| 335 | .query_addr = iwl5000_eeprom_query_addr, |
| 336 | .update_enhanced_txpower = iwlcore_eeprom_enhanced_txpower, |
| 337 | }, |
| 338 | .post_associate = iwl_post_associate, |
| 339 | .isr = iwl_isr_ict, |
| 340 | .config_ap = iwl_config_ap, |
| 341 | .temp_ops = { |
| 342 | .temperature = iwl5000_temperature, |
| 343 | .set_ct_kill = iwl6000_set_ct_threshold, |
| 344 | .set_calib_version = iwl6050_set_calib_version, |
| 345 | }, |
| 346 | .add_bcast_station = iwl_add_bcast_station, |
Wey-Yi Guy | b74e31a | 2010-03-01 17:23:50 -0800 | [diff] [blame^] | 347 | .recover_from_tx_stall = iwl_bg_monitor_recover, |
Abhijeet Kolekar | d575593 | 2010-02-18 22:03:05 -0800 | [diff] [blame] | 348 | }; |
| 349 | |
| 350 | static const struct iwl_ops iwl6050_ops = { |
| 351 | .ucode = &iwl5000_ucode, |
| 352 | .lib = &iwl6050_lib, |
| 353 | .hcmd = &iwl5000_hcmd, |
| 354 | .utils = &iwl5000_hcmd_utils, |
| 355 | .led = &iwlagn_led_ops, |
| 356 | }; |
| 357 | |
Wey-Yi Guy | 65b7998 | 2009-07-31 14:28:07 -0700 | [diff] [blame] | 358 | /* |
| 359 | * "i": Internal configuration, use internal Power Amplifier |
| 360 | */ |
| 361 | struct iwl_cfg iwl6000i_2agn_cfg = { |
Shanyu Zhao | c11362c | 2010-03-05 17:05:20 -0800 | [diff] [blame] | 362 | .name = "Intel(R) Centrino(R) Advanced-N 6200 AGN", |
Wey-Yi Guy | 65b7998 | 2009-07-31 14:28:07 -0700 | [diff] [blame] | 363 | .fw_name_pre = IWL6000_FW_PRE, |
| 364 | .ucode_api_max = IWL6000_UCODE_API_MAX, |
| 365 | .ucode_api_min = IWL6000_UCODE_API_MIN, |
| 366 | .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N, |
| 367 | .ops = &iwl6000_ops, |
Wey-Yi Guy | 415e499 | 2009-08-13 13:30:54 -0700 | [diff] [blame] | 368 | .eeprom_size = OTP_LOW_IMAGE_SIZE, |
Wey-Yi Guy | 1f4b966 | 2009-09-17 10:43:46 -0700 | [diff] [blame] | 369 | .eeprom_ver = EEPROM_6000_EEPROM_VERSION, |
Wey-Yi Guy | 65b7998 | 2009-07-31 14:28:07 -0700 | [diff] [blame] | 370 | .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION, |
Wey-Yi Guy | 88804e2 | 2009-10-09 13:20:28 -0700 | [diff] [blame] | 371 | .num_of_queues = IWL50_NUM_QUEUES, |
| 372 | .num_of_ampdu_queues = IWL50_NUM_AMPDU_QUEUES, |
Wey-Yi Guy | 65b7998 | 2009-07-31 14:28:07 -0700 | [diff] [blame] | 373 | .mod_params = &iwl50_mod_params, |
| 374 | .valid_tx_ant = ANT_BC, |
| 375 | .valid_rx_ant = ANT_BC, |
Ben Cahill | fadb358 | 2009-10-23 13:42:21 -0700 | [diff] [blame] | 376 | .pll_cfg_val = 0, |
Ben Cahill | a6c5c73 | 2009-10-30 14:36:07 -0700 | [diff] [blame] | 377 | .set_l0s = true, |
Ben Cahill | fadb358 | 2009-10-23 13:42:21 -0700 | [diff] [blame] | 378 | .use_bsm = false, |
Wey-Yi Guy | 65b7998 | 2009-07-31 14:28:07 -0700 | [diff] [blame] | 379 | .pa_type = IWL_PA_INTERNAL, |
Wey-Yi Guy | 415e499 | 2009-08-13 13:30:54 -0700 | [diff] [blame] | 380 | .max_ll_items = OTP_MAX_LL_ITEMS_6x00, |
| 381 | .shadow_ram_support = true, |
Daniel C Halperin | b261793 | 2009-08-13 13:30:59 -0700 | [diff] [blame] | 382 | .ht_greenfield_support = true, |
Wey-Yi Guy | f2d0d0e | 2009-09-11 10:38:14 -0700 | [diff] [blame] | 383 | .led_compensation = 51, |
Wey-Yi Guy | 47eef9b | 2009-09-17 10:43:44 -0700 | [diff] [blame] | 384 | .use_rts_for_ht = true, /* use rts/cts protection */ |
Wey-Yi Guy | d8c07e7 | 2009-09-25 14:24:26 -0700 | [diff] [blame] | 385 | .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS, |
Johannes Berg | 78f5fb7 | 2009-09-25 14:24:27 -0700 | [diff] [blame] | 386 | .supports_idle = true, |
Wey-Yi Guy | 6047b4f | 2009-10-23 13:42:27 -0700 | [diff] [blame] | 387 | .adv_thermal_throttle = true, |
Wey-Yi Guy | 480e840 | 2009-10-23 13:42:28 -0700 | [diff] [blame] | 388 | .support_ct_kill_exit = true, |
Trieu 'Andrew' Nguyen | 3e4fb5f | 2010-01-22 14:22:46 -0800 | [diff] [blame] | 389 | .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF, |
Ben Cahill | d4fe5ac | 2010-02-05 11:33:46 -0800 | [diff] [blame] | 390 | .chain_noise_scale = 1000, |
Wey-Yi Guy | b74e31a | 2010-03-01 17:23:50 -0800 | [diff] [blame^] | 391 | .monitor_recover_period = IWL_MONITORING_PERIOD, |
Jay Sternberg | e122837 | 2009-01-19 15:30:34 -0800 | [diff] [blame] | 392 | }; |
| 393 | |
Wey-Yi Guy | 5953a62 | 2009-09-17 10:43:53 -0700 | [diff] [blame] | 394 | struct iwl_cfg iwl6000i_2abg_cfg = { |
Shanyu Zhao | c11362c | 2010-03-05 17:05:20 -0800 | [diff] [blame] | 395 | .name = "Intel(R) Centrino(R) Advanced-N 6200 ABG", |
Wey-Yi Guy | 5953a62 | 2009-09-17 10:43:53 -0700 | [diff] [blame] | 396 | .fw_name_pre = IWL6000_FW_PRE, |
| 397 | .ucode_api_max = IWL6000_UCODE_API_MAX, |
| 398 | .ucode_api_min = IWL6000_UCODE_API_MIN, |
| 399 | .sku = IWL_SKU_A|IWL_SKU_G, |
| 400 | .ops = &iwl6000_ops, |
| 401 | .eeprom_size = OTP_LOW_IMAGE_SIZE, |
| 402 | .eeprom_ver = EEPROM_6000_EEPROM_VERSION, |
| 403 | .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION, |
Wey-Yi Guy | 88804e2 | 2009-10-09 13:20:28 -0700 | [diff] [blame] | 404 | .num_of_queues = IWL50_NUM_QUEUES, |
| 405 | .num_of_ampdu_queues = IWL50_NUM_AMPDU_QUEUES, |
Wey-Yi Guy | 5953a62 | 2009-09-17 10:43:53 -0700 | [diff] [blame] | 406 | .mod_params = &iwl50_mod_params, |
| 407 | .valid_tx_ant = ANT_BC, |
| 408 | .valid_rx_ant = ANT_BC, |
Ben Cahill | fadb358 | 2009-10-23 13:42:21 -0700 | [diff] [blame] | 409 | .pll_cfg_val = 0, |
Ben Cahill | a6c5c73 | 2009-10-30 14:36:07 -0700 | [diff] [blame] | 410 | .set_l0s = true, |
Ben Cahill | fadb358 | 2009-10-23 13:42:21 -0700 | [diff] [blame] | 411 | .use_bsm = false, |
Wey-Yi Guy | 5953a62 | 2009-09-17 10:43:53 -0700 | [diff] [blame] | 412 | .pa_type = IWL_PA_INTERNAL, |
| 413 | .max_ll_items = OTP_MAX_LL_ITEMS_6x00, |
| 414 | .shadow_ram_support = true, |
| 415 | .ht_greenfield_support = true, |
| 416 | .led_compensation = 51, |
Wey-Yi Guy | d8c07e7 | 2009-09-25 14:24:26 -0700 | [diff] [blame] | 417 | .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS, |
Johannes Berg | 78f5fb7 | 2009-09-25 14:24:27 -0700 | [diff] [blame] | 418 | .supports_idle = true, |
Wey-Yi Guy | 6047b4f | 2009-10-23 13:42:27 -0700 | [diff] [blame] | 419 | .adv_thermal_throttle = true, |
Wey-Yi Guy | 480e840 | 2009-10-23 13:42:28 -0700 | [diff] [blame] | 420 | .support_ct_kill_exit = true, |
Trieu 'Andrew' Nguyen | 3e4fb5f | 2010-01-22 14:22:46 -0800 | [diff] [blame] | 421 | .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF, |
Ben Cahill | d4fe5ac | 2010-02-05 11:33:46 -0800 | [diff] [blame] | 422 | .chain_noise_scale = 1000, |
Wey-Yi Guy | b74e31a | 2010-03-01 17:23:50 -0800 | [diff] [blame^] | 423 | .monitor_recover_period = IWL_MONITORING_PERIOD, |
Wey-Yi Guy | 5953a62 | 2009-09-17 10:43:53 -0700 | [diff] [blame] | 424 | }; |
| 425 | |
| 426 | struct iwl_cfg iwl6000i_2bg_cfg = { |
Shanyu Zhao | c11362c | 2010-03-05 17:05:20 -0800 | [diff] [blame] | 427 | .name = "Intel(R) Centrino(R) Advanced-N 6200 BG", |
Wey-Yi Guy | 5953a62 | 2009-09-17 10:43:53 -0700 | [diff] [blame] | 428 | .fw_name_pre = IWL6000_FW_PRE, |
| 429 | .ucode_api_max = IWL6000_UCODE_API_MAX, |
| 430 | .ucode_api_min = IWL6000_UCODE_API_MIN, |
| 431 | .sku = IWL_SKU_G, |
| 432 | .ops = &iwl6000_ops, |
| 433 | .eeprom_size = OTP_LOW_IMAGE_SIZE, |
| 434 | .eeprom_ver = EEPROM_6000_EEPROM_VERSION, |
| 435 | .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION, |
Wey-Yi Guy | 88804e2 | 2009-10-09 13:20:28 -0700 | [diff] [blame] | 436 | .num_of_queues = IWL50_NUM_QUEUES, |
| 437 | .num_of_ampdu_queues = IWL50_NUM_AMPDU_QUEUES, |
Wey-Yi Guy | 5953a62 | 2009-09-17 10:43:53 -0700 | [diff] [blame] | 438 | .mod_params = &iwl50_mod_params, |
| 439 | .valid_tx_ant = ANT_BC, |
| 440 | .valid_rx_ant = ANT_BC, |
Ben Cahill | fadb358 | 2009-10-23 13:42:21 -0700 | [diff] [blame] | 441 | .pll_cfg_val = 0, |
Ben Cahill | a6c5c73 | 2009-10-30 14:36:07 -0700 | [diff] [blame] | 442 | .set_l0s = true, |
Ben Cahill | fadb358 | 2009-10-23 13:42:21 -0700 | [diff] [blame] | 443 | .use_bsm = false, |
Wey-Yi Guy | 5953a62 | 2009-09-17 10:43:53 -0700 | [diff] [blame] | 444 | .pa_type = IWL_PA_INTERNAL, |
| 445 | .max_ll_items = OTP_MAX_LL_ITEMS_6x00, |
| 446 | .shadow_ram_support = true, |
| 447 | .ht_greenfield_support = true, |
| 448 | .led_compensation = 51, |
Wey-Yi Guy | d8c07e7 | 2009-09-25 14:24:26 -0700 | [diff] [blame] | 449 | .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS, |
Johannes Berg | 78f5fb7 | 2009-09-25 14:24:27 -0700 | [diff] [blame] | 450 | .supports_idle = true, |
Wey-Yi Guy | 6047b4f | 2009-10-23 13:42:27 -0700 | [diff] [blame] | 451 | .adv_thermal_throttle = true, |
Wey-Yi Guy | 480e840 | 2009-10-23 13:42:28 -0700 | [diff] [blame] | 452 | .support_ct_kill_exit = true, |
Trieu 'Andrew' Nguyen | 3e4fb5f | 2010-01-22 14:22:46 -0800 | [diff] [blame] | 453 | .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF, |
Ben Cahill | d4fe5ac | 2010-02-05 11:33:46 -0800 | [diff] [blame] | 454 | .chain_noise_scale = 1000, |
Wey-Yi Guy | b74e31a | 2010-03-01 17:23:50 -0800 | [diff] [blame^] | 455 | .monitor_recover_period = IWL_MONITORING_PERIOD, |
Wey-Yi Guy | 5953a62 | 2009-09-17 10:43:53 -0700 | [diff] [blame] | 456 | }; |
| 457 | |
Jay Sternberg | e122837 | 2009-01-19 15:30:34 -0800 | [diff] [blame] | 458 | struct iwl_cfg iwl6050_2agn_cfg = { |
Shanyu Zhao | c11362c | 2010-03-05 17:05:20 -0800 | [diff] [blame] | 459 | .name = "Intel(R) Centrino(R) Advanced-N + WiMAX 6250 AGN", |
Jay Sternberg | e122837 | 2009-01-19 15:30:34 -0800 | [diff] [blame] | 460 | .fw_name_pre = IWL6050_FW_PRE, |
| 461 | .ucode_api_max = IWL6050_UCODE_API_MAX, |
| 462 | .ucode_api_min = IWL6050_UCODE_API_MIN, |
| 463 | .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N, |
Abhijeet Kolekar | d575593 | 2010-02-18 22:03:05 -0800 | [diff] [blame] | 464 | .ops = &iwl6050_ops, |
Wey-Yi Guy | 415e499 | 2009-08-13 13:30:54 -0700 | [diff] [blame] | 465 | .eeprom_size = OTP_LOW_IMAGE_SIZE, |
Wey-Yi Guy | 32b7e24 | 2009-10-16 14:25:51 -0700 | [diff] [blame] | 466 | .eeprom_ver = EEPROM_6050_EEPROM_VERSION, |
Jay Sternberg | e122837 | 2009-01-19 15:30:34 -0800 | [diff] [blame] | 467 | .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION, |
Wey-Yi Guy | 88804e2 | 2009-10-09 13:20:28 -0700 | [diff] [blame] | 468 | .num_of_queues = IWL50_NUM_QUEUES, |
| 469 | .num_of_ampdu_queues = IWL50_NUM_AMPDU_QUEUES, |
Jay Sternberg | e122837 | 2009-01-19 15:30:34 -0800 | [diff] [blame] | 470 | .mod_params = &iwl50_mod_params, |
Jay Sternberg | 542cc79 | 2009-05-08 13:44:46 -0700 | [diff] [blame] | 471 | .valid_tx_ant = ANT_AB, |
| 472 | .valid_rx_ant = ANT_AB, |
Ben Cahill | fadb358 | 2009-10-23 13:42:21 -0700 | [diff] [blame] | 473 | .pll_cfg_val = 0, |
Ben Cahill | a6c5c73 | 2009-10-30 14:36:07 -0700 | [diff] [blame] | 474 | .set_l0s = true, |
Ben Cahill | fadb358 | 2009-10-23 13:42:21 -0700 | [diff] [blame] | 475 | .use_bsm = false, |
Wey-Yi Guy | 65b7998 | 2009-07-31 14:28:07 -0700 | [diff] [blame] | 476 | .pa_type = IWL_PA_SYSTEM, |
Wey-Yi Guy | 3ab312a | 2009-10-16 14:25:52 -0700 | [diff] [blame] | 477 | .max_ll_items = OTP_MAX_LL_ITEMS_6x50, |
Wey-Yi Guy | 415e499 | 2009-08-13 13:30:54 -0700 | [diff] [blame] | 478 | .shadow_ram_support = true, |
Daniel C Halperin | b261793 | 2009-08-13 13:30:59 -0700 | [diff] [blame] | 479 | .ht_greenfield_support = true, |
Wey-Yi Guy | f2d0d0e | 2009-09-11 10:38:14 -0700 | [diff] [blame] | 480 | .led_compensation = 51, |
Wey-Yi Guy | 47eef9b | 2009-09-17 10:43:44 -0700 | [diff] [blame] | 481 | .use_rts_for_ht = true, /* use rts/cts protection */ |
Wey-Yi Guy | d8c07e7 | 2009-09-25 14:24:26 -0700 | [diff] [blame] | 482 | .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS, |
Johannes Berg | 78f5fb7 | 2009-09-25 14:24:27 -0700 | [diff] [blame] | 483 | .supports_idle = true, |
Wey-Yi Guy | 6047b4f | 2009-10-23 13:42:27 -0700 | [diff] [blame] | 484 | .adv_thermal_throttle = true, |
Wey-Yi Guy | 480e840 | 2009-10-23 13:42:28 -0700 | [diff] [blame] | 485 | .support_ct_kill_exit = true, |
Trieu 'Andrew' Nguyen | 3e4fb5f | 2010-01-22 14:22:46 -0800 | [diff] [blame] | 486 | .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF, |
Ben Cahill | d4fe5ac | 2010-02-05 11:33:46 -0800 | [diff] [blame] | 487 | .chain_noise_scale = 1500, |
Wey-Yi Guy | b74e31a | 2010-03-01 17:23:50 -0800 | [diff] [blame^] | 488 | .monitor_recover_period = IWL_MONITORING_PERIOD, |
Jay Sternberg | e122837 | 2009-01-19 15:30:34 -0800 | [diff] [blame] | 489 | }; |
| 490 | |
Wey-Yi Guy | 5953a62 | 2009-09-17 10:43:53 -0700 | [diff] [blame] | 491 | struct iwl_cfg iwl6050_2abg_cfg = { |
Shanyu Zhao | c11362c | 2010-03-05 17:05:20 -0800 | [diff] [blame] | 492 | .name = "Intel(R) Centrino(R) Advanced-N + WiMAX 6250 ABG", |
Wey-Yi Guy | 5953a62 | 2009-09-17 10:43:53 -0700 | [diff] [blame] | 493 | .fw_name_pre = IWL6050_FW_PRE, |
| 494 | .ucode_api_max = IWL6050_UCODE_API_MAX, |
| 495 | .ucode_api_min = IWL6050_UCODE_API_MIN, |
| 496 | .sku = IWL_SKU_A|IWL_SKU_G, |
Abhijeet Kolekar | d575593 | 2010-02-18 22:03:05 -0800 | [diff] [blame] | 497 | .ops = &iwl6050_ops, |
Wey-Yi Guy | 5953a62 | 2009-09-17 10:43:53 -0700 | [diff] [blame] | 498 | .eeprom_size = OTP_LOW_IMAGE_SIZE, |
Wey-Yi Guy | 32b7e24 | 2009-10-16 14:25:51 -0700 | [diff] [blame] | 499 | .eeprom_ver = EEPROM_6050_EEPROM_VERSION, |
Wey-Yi Guy | 5953a62 | 2009-09-17 10:43:53 -0700 | [diff] [blame] | 500 | .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION, |
Wey-Yi Guy | 88804e2 | 2009-10-09 13:20:28 -0700 | [diff] [blame] | 501 | .num_of_queues = IWL50_NUM_QUEUES, |
| 502 | .num_of_ampdu_queues = IWL50_NUM_AMPDU_QUEUES, |
Wey-Yi Guy | 5953a62 | 2009-09-17 10:43:53 -0700 | [diff] [blame] | 503 | .mod_params = &iwl50_mod_params, |
| 504 | .valid_tx_ant = ANT_AB, |
| 505 | .valid_rx_ant = ANT_AB, |
Ben Cahill | fadb358 | 2009-10-23 13:42:21 -0700 | [diff] [blame] | 506 | .pll_cfg_val = 0, |
Ben Cahill | a6c5c73 | 2009-10-30 14:36:07 -0700 | [diff] [blame] | 507 | .set_l0s = true, |
Ben Cahill | fadb358 | 2009-10-23 13:42:21 -0700 | [diff] [blame] | 508 | .use_bsm = false, |
Wey-Yi Guy | 5953a62 | 2009-09-17 10:43:53 -0700 | [diff] [blame] | 509 | .pa_type = IWL_PA_SYSTEM, |
Wey-Yi Guy | 3ab312a | 2009-10-16 14:25:52 -0700 | [diff] [blame] | 510 | .max_ll_items = OTP_MAX_LL_ITEMS_6x50, |
Wey-Yi Guy | 5953a62 | 2009-09-17 10:43:53 -0700 | [diff] [blame] | 511 | .shadow_ram_support = true, |
| 512 | .ht_greenfield_support = true, |
| 513 | .led_compensation = 51, |
Wey-Yi Guy | d8c07e7 | 2009-09-25 14:24:26 -0700 | [diff] [blame] | 514 | .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS, |
Johannes Berg | 78f5fb7 | 2009-09-25 14:24:27 -0700 | [diff] [blame] | 515 | .supports_idle = true, |
Wey-Yi Guy | 6047b4f | 2009-10-23 13:42:27 -0700 | [diff] [blame] | 516 | .adv_thermal_throttle = true, |
Wey-Yi Guy | 480e840 | 2009-10-23 13:42:28 -0700 | [diff] [blame] | 517 | .support_ct_kill_exit = true, |
Trieu 'Andrew' Nguyen | 3e4fb5f | 2010-01-22 14:22:46 -0800 | [diff] [blame] | 518 | .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF, |
Ben Cahill | d4fe5ac | 2010-02-05 11:33:46 -0800 | [diff] [blame] | 519 | .chain_noise_scale = 1500, |
Wey-Yi Guy | b74e31a | 2010-03-01 17:23:50 -0800 | [diff] [blame^] | 520 | .monitor_recover_period = IWL_MONITORING_PERIOD, |
Wey-Yi Guy | 5953a62 | 2009-09-17 10:43:53 -0700 | [diff] [blame] | 521 | }; |
| 522 | |
Jay Sternberg | e122837 | 2009-01-19 15:30:34 -0800 | [diff] [blame] | 523 | struct iwl_cfg iwl6000_3agn_cfg = { |
Shanyu Zhao | c11362c | 2010-03-05 17:05:20 -0800 | [diff] [blame] | 524 | .name = "Intel(R) Centrino(R) Ultimate-N 6300 AGN", |
Jay Sternberg | e122837 | 2009-01-19 15:30:34 -0800 | [diff] [blame] | 525 | .fw_name_pre = IWL6000_FW_PRE, |
| 526 | .ucode_api_max = IWL6000_UCODE_API_MAX, |
| 527 | .ucode_api_min = IWL6000_UCODE_API_MIN, |
| 528 | .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N, |
Jay Sternberg | 29f35c1 | 2009-01-29 11:09:16 -0800 | [diff] [blame] | 529 | .ops = &iwl6000_ops, |
Wey-Yi Guy | 415e499 | 2009-08-13 13:30:54 -0700 | [diff] [blame] | 530 | .eeprom_size = OTP_LOW_IMAGE_SIZE, |
Wey-Yi Guy | 1f4b966 | 2009-09-17 10:43:46 -0700 | [diff] [blame] | 531 | .eeprom_ver = EEPROM_6000_EEPROM_VERSION, |
Jay Sternberg | e122837 | 2009-01-19 15:30:34 -0800 | [diff] [blame] | 532 | .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION, |
Wey-Yi Guy | 88804e2 | 2009-10-09 13:20:28 -0700 | [diff] [blame] | 533 | .num_of_queues = IWL50_NUM_QUEUES, |
| 534 | .num_of_ampdu_queues = IWL50_NUM_AMPDU_QUEUES, |
Jay Sternberg | e122837 | 2009-01-19 15:30:34 -0800 | [diff] [blame] | 535 | .mod_params = &iwl50_mod_params, |
Jay Sternberg | c0bac76 | 2009-02-02 16:21:14 -0800 | [diff] [blame] | 536 | .valid_tx_ant = ANT_ABC, |
| 537 | .valid_rx_ant = ANT_ABC, |
Ben Cahill | fadb358 | 2009-10-23 13:42:21 -0700 | [diff] [blame] | 538 | .pll_cfg_val = 0, |
Ben Cahill | a6c5c73 | 2009-10-30 14:36:07 -0700 | [diff] [blame] | 539 | .set_l0s = true, |
Ben Cahill | fadb358 | 2009-10-23 13:42:21 -0700 | [diff] [blame] | 540 | .use_bsm = false, |
Wey-Yi Guy | 65b7998 | 2009-07-31 14:28:07 -0700 | [diff] [blame] | 541 | .pa_type = IWL_PA_SYSTEM, |
Wey-Yi Guy | 415e499 | 2009-08-13 13:30:54 -0700 | [diff] [blame] | 542 | .max_ll_items = OTP_MAX_LL_ITEMS_6x00, |
| 543 | .shadow_ram_support = true, |
Daniel C Halperin | b261793 | 2009-08-13 13:30:59 -0700 | [diff] [blame] | 544 | .ht_greenfield_support = true, |
Wey-Yi Guy | f2d0d0e | 2009-09-11 10:38:14 -0700 | [diff] [blame] | 545 | .led_compensation = 51, |
Wey-Yi Guy | 47eef9b | 2009-09-17 10:43:44 -0700 | [diff] [blame] | 546 | .use_rts_for_ht = true, /* use rts/cts protection */ |
Wey-Yi Guy | d8c07e7 | 2009-09-25 14:24:26 -0700 | [diff] [blame] | 547 | .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS, |
Johannes Berg | 78f5fb7 | 2009-09-25 14:24:27 -0700 | [diff] [blame] | 548 | .supports_idle = true, |
Wey-Yi Guy | 6047b4f | 2009-10-23 13:42:27 -0700 | [diff] [blame] | 549 | .adv_thermal_throttle = true, |
Wey-Yi Guy | 480e840 | 2009-10-23 13:42:28 -0700 | [diff] [blame] | 550 | .support_ct_kill_exit = true, |
Trieu 'Andrew' Nguyen | 3e4fb5f | 2010-01-22 14:22:46 -0800 | [diff] [blame] | 551 | .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF, |
Ben Cahill | d4fe5ac | 2010-02-05 11:33:46 -0800 | [diff] [blame] | 552 | .chain_noise_scale = 1000, |
Wey-Yi Guy | b74e31a | 2010-03-01 17:23:50 -0800 | [diff] [blame^] | 553 | .monitor_recover_period = IWL_MONITORING_PERIOD, |
Jay Sternberg | e122837 | 2009-01-19 15:30:34 -0800 | [diff] [blame] | 554 | }; |
| 555 | |
Jay Sternberg | e122837 | 2009-01-19 15:30:34 -0800 | [diff] [blame] | 556 | MODULE_FIRMWARE(IWL6000_MODULE_FIRMWARE(IWL6000_UCODE_API_MAX)); |
| 557 | MODULE_FIRMWARE(IWL6050_MODULE_FIRMWARE(IWL6050_UCODE_API_MAX)); |