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