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