.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /****************************************************************************** |
---|
2 | 3 | * |
---|
3 | 4 | * Copyright(c) 2008 - 2014 Intel Corporation. All rights reserved. |
---|
4 | | - * Copyright(c) 2018 Intel Corporation |
---|
5 | | - * |
---|
6 | | - * This program is free software; you can redistribute it and/or modify it |
---|
7 | | - * under the terms of version 2 of the GNU General Public License as |
---|
8 | | - * published by the Free Software Foundation. |
---|
9 | | - * |
---|
10 | | - * This program is distributed in the hope that it will be useful, but WITHOUT |
---|
11 | | - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
---|
12 | | - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for |
---|
13 | | - * more details. |
---|
14 | | - * |
---|
15 | | - * You should have received a copy of the GNU General Public License along with |
---|
16 | | - * this program; if not, write to the Free Software Foundation, Inc., |
---|
17 | | - * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA |
---|
18 | | - * |
---|
19 | | - * The full GNU General Public License is included in this distribution in the |
---|
20 | | - * file called LICENSE. |
---|
| 5 | + * Copyright(c) 2018 - 2019 Intel Corporation |
---|
21 | 6 | * |
---|
22 | 7 | * Contact Information: |
---|
23 | 8 | * Intel Linux Wireless <linuxwifi@intel.com> |
---|
.. | .. |
---|
70 | 55 | #define IWL6030_MODULE_FIRMWARE(api) IWL6030_FW_PRE __stringify(api) ".ucode" |
---|
71 | 56 | |
---|
72 | 57 | static const struct iwl_base_params iwl6000_base_params = { |
---|
73 | | - .eeprom_size = OTP_LOW_IMAGE_SIZE, |
---|
| 58 | + .eeprom_size = OTP_LOW_IMAGE_SIZE_2K, |
---|
74 | 59 | .num_of_queues = IWLAGN_NUM_QUEUES, |
---|
75 | 60 | .max_tfd_queue_size = 256, |
---|
76 | 61 | .max_ll_items = OTP_MAX_LL_ITEMS_6x00, |
---|
.. | .. |
---|
83 | 68 | }; |
---|
84 | 69 | |
---|
85 | 70 | static const struct iwl_base_params iwl6050_base_params = { |
---|
86 | | - .eeprom_size = OTP_LOW_IMAGE_SIZE, |
---|
| 71 | + .eeprom_size = OTP_LOW_IMAGE_SIZE_2K, |
---|
87 | 72 | .num_of_queues = IWLAGN_NUM_QUEUES, |
---|
88 | 73 | .max_tfd_queue_size = 256, |
---|
89 | 74 | .max_ll_items = OTP_MAX_LL_ITEMS_6x50, |
---|
.. | .. |
---|
96 | 81 | }; |
---|
97 | 82 | |
---|
98 | 83 | static const struct iwl_base_params iwl6000_g2_base_params = { |
---|
99 | | - .eeprom_size = OTP_LOW_IMAGE_SIZE, |
---|
| 84 | + .eeprom_size = OTP_LOW_IMAGE_SIZE_2K, |
---|
100 | 85 | .num_of_queues = IWLAGN_NUM_QUEUES, |
---|
101 | 86 | .max_tfd_queue_size = 256, |
---|
102 | 87 | .max_ll_items = OTP_MAX_LL_ITEMS_6x00, |
---|
.. | .. |
---|
131 | 116 | .fw_name_pre = IWL6005_FW_PRE, \ |
---|
132 | 117 | .ucode_api_max = IWL6000G2_UCODE_API_MAX, \ |
---|
133 | 118 | .ucode_api_min = IWL6000G2_UCODE_API_MIN, \ |
---|
134 | | - .device_family = IWL_DEVICE_FAMILY_6005, \ |
---|
| 119 | + .trans.device_family = IWL_DEVICE_FAMILY_6005, \ |
---|
135 | 120 | .max_inst_size = IWL60_RTC_INST_SIZE, \ |
---|
136 | 121 | .max_data_size = IWL60_RTC_DATA_SIZE, \ |
---|
137 | 122 | .nvm_ver = EEPROM_6005_EEPROM_VERSION, \ |
---|
138 | 123 | .nvm_calib_ver = EEPROM_6005_TX_POWER_VERSION, \ |
---|
139 | | - .base_params = &iwl6000_g2_base_params, \ |
---|
| 124 | + .trans.base_params = &iwl6000_g2_base_params, \ |
---|
140 | 125 | .eeprom_params = &iwl6000_eeprom_params, \ |
---|
141 | 126 | .led_mode = IWL_LED_RF_STATE, \ |
---|
142 | | - .max_ht_ampdu_exponent = IEEE80211_HT_MAX_AMPDU_64K, \ |
---|
143 | | - .csr = &iwl_csr_v1 |
---|
| 127 | + .max_ht_ampdu_exponent = IEEE80211_HT_MAX_AMPDU_64K |
---|
144 | 128 | |
---|
145 | 129 | const struct iwl_cfg iwl6005_2agn_cfg = { |
---|
146 | 130 | .name = "Intel(R) Centrino(R) Advanced-N 6205 AGN", |
---|
.. | .. |
---|
186 | 170 | .fw_name_pre = IWL6030_FW_PRE, \ |
---|
187 | 171 | .ucode_api_max = IWL6000G2_UCODE_API_MAX, \ |
---|
188 | 172 | .ucode_api_min = IWL6000G2_UCODE_API_MIN, \ |
---|
189 | | - .device_family = IWL_DEVICE_FAMILY_6030, \ |
---|
| 173 | + .trans.device_family = IWL_DEVICE_FAMILY_6030, \ |
---|
190 | 174 | .max_inst_size = IWL60_RTC_INST_SIZE, \ |
---|
191 | 175 | .max_data_size = IWL60_RTC_DATA_SIZE, \ |
---|
192 | 176 | .nvm_ver = EEPROM_6030_EEPROM_VERSION, \ |
---|
193 | 177 | .nvm_calib_ver = EEPROM_6030_TX_POWER_VERSION, \ |
---|
194 | | - .base_params = &iwl6000_g2_base_params, \ |
---|
| 178 | + .trans.base_params = &iwl6000_g2_base_params, \ |
---|
195 | 179 | .eeprom_params = &iwl6000_eeprom_params, \ |
---|
196 | 180 | .led_mode = IWL_LED_RF_STATE, \ |
---|
197 | | - .max_ht_ampdu_exponent = IEEE80211_HT_MAX_AMPDU_64K, \ |
---|
198 | | - .csr = &iwl_csr_v1 |
---|
| 181 | + .max_ht_ampdu_exponent = IEEE80211_HT_MAX_AMPDU_64K |
---|
199 | 182 | |
---|
200 | 183 | const struct iwl_cfg iwl6030_2agn_cfg = { |
---|
201 | 184 | .name = "Intel(R) Centrino(R) Advanced-N 6230 AGN", |
---|
.. | .. |
---|
223 | 206 | .fw_name_pre = IWL6030_FW_PRE, \ |
---|
224 | 207 | .ucode_api_max = IWL6035_UCODE_API_MAX, \ |
---|
225 | 208 | .ucode_api_min = IWL6035_UCODE_API_MIN, \ |
---|
226 | | - .device_family = IWL_DEVICE_FAMILY_6030, \ |
---|
| 209 | + .trans.device_family = IWL_DEVICE_FAMILY_6030, \ |
---|
227 | 210 | .max_inst_size = IWL60_RTC_INST_SIZE, \ |
---|
228 | 211 | .max_data_size = IWL60_RTC_DATA_SIZE, \ |
---|
229 | 212 | .nvm_ver = EEPROM_6030_EEPROM_VERSION, \ |
---|
230 | 213 | .nvm_calib_ver = EEPROM_6030_TX_POWER_VERSION, \ |
---|
231 | | - .base_params = &iwl6000_g2_base_params, \ |
---|
| 214 | + .trans.base_params = &iwl6000_g2_base_params, \ |
---|
232 | 215 | .eeprom_params = &iwl6000_eeprom_params, \ |
---|
233 | 216 | .led_mode = IWL_LED_RF_STATE, \ |
---|
234 | | - .max_ht_ampdu_exponent = IEEE80211_HT_MAX_AMPDU_64K, \ |
---|
235 | | - .csr = &iwl_csr_v1 |
---|
| 217 | + .max_ht_ampdu_exponent = IEEE80211_HT_MAX_AMPDU_64K |
---|
236 | 218 | |
---|
237 | 219 | const struct iwl_cfg iwl6035_2agn_cfg = { |
---|
238 | 220 | .name = "Intel(R) Centrino(R) Advanced-N 6235 AGN", |
---|
.. | .. |
---|
277 | 259 | .fw_name_pre = IWL6000_FW_PRE, \ |
---|
278 | 260 | .ucode_api_max = IWL6000_UCODE_API_MAX, \ |
---|
279 | 261 | .ucode_api_min = IWL6000_UCODE_API_MIN, \ |
---|
280 | | - .device_family = IWL_DEVICE_FAMILY_6000i, \ |
---|
| 262 | + .trans.device_family = IWL_DEVICE_FAMILY_6000i, \ |
---|
281 | 263 | .max_inst_size = IWL60_RTC_INST_SIZE, \ |
---|
282 | 264 | .max_data_size = IWL60_RTC_DATA_SIZE, \ |
---|
283 | 265 | .valid_tx_ant = ANT_BC, /* .cfg overwrite */ \ |
---|
284 | 266 | .valid_rx_ant = ANT_BC, /* .cfg overwrite */ \ |
---|
285 | 267 | .nvm_ver = EEPROM_6000_EEPROM_VERSION, \ |
---|
286 | 268 | .nvm_calib_ver = EEPROM_6000_TX_POWER_VERSION, \ |
---|
287 | | - .base_params = &iwl6000_base_params, \ |
---|
| 269 | + .trans.base_params = &iwl6000_base_params, \ |
---|
288 | 270 | .eeprom_params = &iwl6000_eeprom_params, \ |
---|
289 | 271 | .led_mode = IWL_LED_BLINK, \ |
---|
290 | | - .max_ht_ampdu_exponent = IEEE80211_HT_MAX_AMPDU_64K, \ |
---|
291 | | - .csr = &iwl_csr_v1 |
---|
| 272 | + .max_ht_ampdu_exponent = IEEE80211_HT_MAX_AMPDU_64K |
---|
292 | 273 | |
---|
293 | 274 | const struct iwl_cfg iwl6000i_2agn_cfg = { |
---|
294 | 275 | .name = "Intel(R) Centrino(R) Advanced-N 6200 AGN", |
---|
.. | .. |
---|
310 | 291 | .fw_name_pre = IWL6050_FW_PRE, \ |
---|
311 | 292 | .ucode_api_max = IWL6050_UCODE_API_MAX, \ |
---|
312 | 293 | .ucode_api_min = IWL6050_UCODE_API_MIN, \ |
---|
313 | | - .device_family = IWL_DEVICE_FAMILY_6050, \ |
---|
| 294 | + .trans.device_family = IWL_DEVICE_FAMILY_6050, \ |
---|
314 | 295 | .max_inst_size = IWL60_RTC_INST_SIZE, \ |
---|
315 | 296 | .max_data_size = IWL60_RTC_DATA_SIZE, \ |
---|
316 | 297 | .valid_tx_ant = ANT_AB, /* .cfg overwrite */ \ |
---|
317 | 298 | .valid_rx_ant = ANT_AB, /* .cfg overwrite */ \ |
---|
318 | 299 | .nvm_ver = EEPROM_6050_EEPROM_VERSION, \ |
---|
319 | 300 | .nvm_calib_ver = EEPROM_6050_TX_POWER_VERSION, \ |
---|
320 | | - .base_params = &iwl6050_base_params, \ |
---|
| 301 | + .trans.base_params = &iwl6050_base_params, \ |
---|
321 | 302 | .eeprom_params = &iwl6000_eeprom_params, \ |
---|
322 | 303 | .led_mode = IWL_LED_BLINK, \ |
---|
323 | 304 | .internal_wimax_coex = true, \ |
---|
324 | | - .max_ht_ampdu_exponent = IEEE80211_HT_MAX_AMPDU_64K, \ |
---|
325 | | - .csr = &iwl_csr_v1 |
---|
| 305 | + .max_ht_ampdu_exponent = IEEE80211_HT_MAX_AMPDU_64K |
---|
326 | 306 | |
---|
327 | 307 | const struct iwl_cfg iwl6050_2agn_cfg = { |
---|
328 | 308 | .name = "Intel(R) Centrino(R) Advanced-N + WiMAX 6250 AGN", |
---|
.. | .. |
---|
339 | 319 | .fw_name_pre = IWL6050_FW_PRE, \ |
---|
340 | 320 | .ucode_api_max = IWL6050_UCODE_API_MAX, \ |
---|
341 | 321 | .ucode_api_min = IWL6050_UCODE_API_MIN, \ |
---|
342 | | - .device_family = IWL_DEVICE_FAMILY_6150, \ |
---|
| 322 | + .trans.device_family = IWL_DEVICE_FAMILY_6150, \ |
---|
343 | 323 | .max_inst_size = IWL60_RTC_INST_SIZE, \ |
---|
344 | 324 | .max_data_size = IWL60_RTC_DATA_SIZE, \ |
---|
345 | 325 | .nvm_ver = EEPROM_6150_EEPROM_VERSION, \ |
---|
346 | 326 | .nvm_calib_ver = EEPROM_6150_TX_POWER_VERSION, \ |
---|
347 | | - .base_params = &iwl6050_base_params, \ |
---|
| 327 | + .trans.base_params = &iwl6050_base_params, \ |
---|
348 | 328 | .eeprom_params = &iwl6000_eeprom_params, \ |
---|
349 | 329 | .led_mode = IWL_LED_BLINK, \ |
---|
350 | 330 | .internal_wimax_coex = true, \ |
---|
351 | | - .max_ht_ampdu_exponent = IEEE80211_HT_MAX_AMPDU_64K, \ |
---|
352 | | - .csr = &iwl_csr_v1 |
---|
| 331 | + .max_ht_ampdu_exponent = IEEE80211_HT_MAX_AMPDU_64K |
---|
353 | 332 | |
---|
354 | 333 | const struct iwl_cfg iwl6150_bgn_cfg = { |
---|
355 | 334 | .name = "Intel(R) Centrino(R) Wireless-N + WiMAX 6150 BGN", |
---|
.. | .. |
---|
367 | 346 | .fw_name_pre = IWL6000_FW_PRE, |
---|
368 | 347 | .ucode_api_max = IWL6000_UCODE_API_MAX, |
---|
369 | 348 | .ucode_api_min = IWL6000_UCODE_API_MIN, |
---|
370 | | - .device_family = IWL_DEVICE_FAMILY_6000, |
---|
| 349 | + .trans.device_family = IWL_DEVICE_FAMILY_6000, |
---|
371 | 350 | .max_inst_size = IWL60_RTC_INST_SIZE, |
---|
372 | 351 | .max_data_size = IWL60_RTC_DATA_SIZE, |
---|
373 | 352 | .nvm_ver = EEPROM_6000_EEPROM_VERSION, |
---|
374 | 353 | .nvm_calib_ver = EEPROM_6000_TX_POWER_VERSION, |
---|
375 | | - .base_params = &iwl6000_base_params, |
---|
| 354 | + .trans.base_params = &iwl6000_base_params, |
---|
376 | 355 | .eeprom_params = &iwl6000_eeprom_params, |
---|
377 | 356 | .ht_params = &iwl6000_ht_params, |
---|
378 | 357 | .led_mode = IWL_LED_BLINK, |
---|
379 | | - .csr = &iwl_csr_v1, |
---|
380 | 358 | }; |
---|
381 | 359 | |
---|
382 | 360 | MODULE_FIRMWARE(IWL6000_MODULE_FIRMWARE(IWL6000_UCODE_API_MAX)); |
---|