18c2ecf20Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0-only 28c2ecf20Sopenharmony_ci/****************************************************************************** 38c2ecf20Sopenharmony_ci * 48c2ecf20Sopenharmony_ci * Copyright(c) 2008 - 2014 Intel Corporation. All rights reserved. 58c2ecf20Sopenharmony_ci * Copyright(c) 2018 - 2019 Intel Corporation 68c2ecf20Sopenharmony_ci * 78c2ecf20Sopenharmony_ci * Contact Information: 88c2ecf20Sopenharmony_ci * Intel Linux Wireless <linuxwifi@intel.com> 98c2ecf20Sopenharmony_ci * Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497 108c2ecf20Sopenharmony_ci * 118c2ecf20Sopenharmony_ci *****************************************************************************/ 128c2ecf20Sopenharmony_ci 138c2ecf20Sopenharmony_ci#include <linux/module.h> 148c2ecf20Sopenharmony_ci#include <linux/stringify.h> 158c2ecf20Sopenharmony_ci#include "iwl-config.h" 168c2ecf20Sopenharmony_ci#include "iwl-agn-hw.h" 178c2ecf20Sopenharmony_ci#include "dvm/commands.h" /* needed for BT for now */ 188c2ecf20Sopenharmony_ci 198c2ecf20Sopenharmony_ci/* Highest firmware API version supported */ 208c2ecf20Sopenharmony_ci#define IWL6000_UCODE_API_MAX 6 218c2ecf20Sopenharmony_ci#define IWL6050_UCODE_API_MAX 5 228c2ecf20Sopenharmony_ci#define IWL6000G2_UCODE_API_MAX 6 238c2ecf20Sopenharmony_ci#define IWL6035_UCODE_API_MAX 6 248c2ecf20Sopenharmony_ci 258c2ecf20Sopenharmony_ci/* Lowest firmware API version supported */ 268c2ecf20Sopenharmony_ci#define IWL6000_UCODE_API_MIN 4 278c2ecf20Sopenharmony_ci#define IWL6050_UCODE_API_MIN 4 288c2ecf20Sopenharmony_ci#define IWL6000G2_UCODE_API_MIN 5 298c2ecf20Sopenharmony_ci#define IWL6035_UCODE_API_MIN 6 308c2ecf20Sopenharmony_ci 318c2ecf20Sopenharmony_ci/* EEPROM versions */ 328c2ecf20Sopenharmony_ci#define EEPROM_6000_TX_POWER_VERSION (4) 338c2ecf20Sopenharmony_ci#define EEPROM_6000_EEPROM_VERSION (0x423) 348c2ecf20Sopenharmony_ci#define EEPROM_6050_TX_POWER_VERSION (4) 358c2ecf20Sopenharmony_ci#define EEPROM_6050_EEPROM_VERSION (0x532) 368c2ecf20Sopenharmony_ci#define EEPROM_6150_TX_POWER_VERSION (6) 378c2ecf20Sopenharmony_ci#define EEPROM_6150_EEPROM_VERSION (0x553) 388c2ecf20Sopenharmony_ci#define EEPROM_6005_TX_POWER_VERSION (6) 398c2ecf20Sopenharmony_ci#define EEPROM_6005_EEPROM_VERSION (0x709) 408c2ecf20Sopenharmony_ci#define EEPROM_6030_TX_POWER_VERSION (6) 418c2ecf20Sopenharmony_ci#define EEPROM_6030_EEPROM_VERSION (0x709) 428c2ecf20Sopenharmony_ci#define EEPROM_6035_TX_POWER_VERSION (6) 438c2ecf20Sopenharmony_ci#define EEPROM_6035_EEPROM_VERSION (0x753) 448c2ecf20Sopenharmony_ci 458c2ecf20Sopenharmony_ci#define IWL6000_FW_PRE "iwlwifi-6000-" 468c2ecf20Sopenharmony_ci#define IWL6000_MODULE_FIRMWARE(api) IWL6000_FW_PRE __stringify(api) ".ucode" 478c2ecf20Sopenharmony_ci 488c2ecf20Sopenharmony_ci#define IWL6050_FW_PRE "iwlwifi-6050-" 498c2ecf20Sopenharmony_ci#define IWL6050_MODULE_FIRMWARE(api) IWL6050_FW_PRE __stringify(api) ".ucode" 508c2ecf20Sopenharmony_ci 518c2ecf20Sopenharmony_ci#define IWL6005_FW_PRE "iwlwifi-6000g2a-" 528c2ecf20Sopenharmony_ci#define IWL6005_MODULE_FIRMWARE(api) IWL6005_FW_PRE __stringify(api) ".ucode" 538c2ecf20Sopenharmony_ci 548c2ecf20Sopenharmony_ci#define IWL6030_FW_PRE "iwlwifi-6000g2b-" 558c2ecf20Sopenharmony_ci#define IWL6030_MODULE_FIRMWARE(api) IWL6030_FW_PRE __stringify(api) ".ucode" 568c2ecf20Sopenharmony_ci 578c2ecf20Sopenharmony_cistatic const struct iwl_base_params iwl6000_base_params = { 588c2ecf20Sopenharmony_ci .eeprom_size = OTP_LOW_IMAGE_SIZE_2K, 598c2ecf20Sopenharmony_ci .num_of_queues = IWLAGN_NUM_QUEUES, 608c2ecf20Sopenharmony_ci .max_tfd_queue_size = 256, 618c2ecf20Sopenharmony_ci .max_ll_items = OTP_MAX_LL_ITEMS_6x00, 628c2ecf20Sopenharmony_ci .shadow_ram_support = true, 638c2ecf20Sopenharmony_ci .led_compensation = 51, 648c2ecf20Sopenharmony_ci .wd_timeout = IWL_DEF_WD_TIMEOUT, 658c2ecf20Sopenharmony_ci .max_event_log_size = 512, 668c2ecf20Sopenharmony_ci .shadow_reg_enable = false, /* TODO: fix bugs using this feature */ 678c2ecf20Sopenharmony_ci .scd_chain_ext_wa = true, 688c2ecf20Sopenharmony_ci}; 698c2ecf20Sopenharmony_ci 708c2ecf20Sopenharmony_cistatic const struct iwl_base_params iwl6050_base_params = { 718c2ecf20Sopenharmony_ci .eeprom_size = OTP_LOW_IMAGE_SIZE_2K, 728c2ecf20Sopenharmony_ci .num_of_queues = IWLAGN_NUM_QUEUES, 738c2ecf20Sopenharmony_ci .max_tfd_queue_size = 256, 748c2ecf20Sopenharmony_ci .max_ll_items = OTP_MAX_LL_ITEMS_6x50, 758c2ecf20Sopenharmony_ci .shadow_ram_support = true, 768c2ecf20Sopenharmony_ci .led_compensation = 51, 778c2ecf20Sopenharmony_ci .wd_timeout = IWL_DEF_WD_TIMEOUT, 788c2ecf20Sopenharmony_ci .max_event_log_size = 1024, 798c2ecf20Sopenharmony_ci .shadow_reg_enable = false, /* TODO: fix bugs using this feature */ 808c2ecf20Sopenharmony_ci .scd_chain_ext_wa = true, 818c2ecf20Sopenharmony_ci}; 828c2ecf20Sopenharmony_ci 838c2ecf20Sopenharmony_cistatic const struct iwl_base_params iwl6000_g2_base_params = { 848c2ecf20Sopenharmony_ci .eeprom_size = OTP_LOW_IMAGE_SIZE_2K, 858c2ecf20Sopenharmony_ci .num_of_queues = IWLAGN_NUM_QUEUES, 868c2ecf20Sopenharmony_ci .max_tfd_queue_size = 256, 878c2ecf20Sopenharmony_ci .max_ll_items = OTP_MAX_LL_ITEMS_6x00, 888c2ecf20Sopenharmony_ci .shadow_ram_support = true, 898c2ecf20Sopenharmony_ci .led_compensation = 57, 908c2ecf20Sopenharmony_ci .wd_timeout = IWL_LONG_WD_TIMEOUT, 918c2ecf20Sopenharmony_ci .max_event_log_size = 512, 928c2ecf20Sopenharmony_ci .shadow_reg_enable = false, /* TODO: fix bugs using this feature */ 938c2ecf20Sopenharmony_ci .scd_chain_ext_wa = true, 948c2ecf20Sopenharmony_ci}; 958c2ecf20Sopenharmony_ci 968c2ecf20Sopenharmony_cistatic const struct iwl_ht_params iwl6000_ht_params = { 978c2ecf20Sopenharmony_ci .ht_greenfield_support = true, 988c2ecf20Sopenharmony_ci .use_rts_for_aggregation = true, /* use rts/cts protection */ 998c2ecf20Sopenharmony_ci .ht40_bands = BIT(NL80211_BAND_2GHZ) | BIT(NL80211_BAND_5GHZ), 1008c2ecf20Sopenharmony_ci}; 1018c2ecf20Sopenharmony_ci 1028c2ecf20Sopenharmony_cistatic const struct iwl_eeprom_params iwl6000_eeprom_params = { 1038c2ecf20Sopenharmony_ci .regulatory_bands = { 1048c2ecf20Sopenharmony_ci EEPROM_REG_BAND_1_CHANNELS, 1058c2ecf20Sopenharmony_ci EEPROM_REG_BAND_2_CHANNELS, 1068c2ecf20Sopenharmony_ci EEPROM_REG_BAND_3_CHANNELS, 1078c2ecf20Sopenharmony_ci EEPROM_REG_BAND_4_CHANNELS, 1088c2ecf20Sopenharmony_ci EEPROM_REG_BAND_5_CHANNELS, 1098c2ecf20Sopenharmony_ci EEPROM_6000_REG_BAND_24_HT40_CHANNELS, 1108c2ecf20Sopenharmony_ci EEPROM_REG_BAND_52_HT40_CHANNELS 1118c2ecf20Sopenharmony_ci }, 1128c2ecf20Sopenharmony_ci .enhanced_txpower = true, 1138c2ecf20Sopenharmony_ci}; 1148c2ecf20Sopenharmony_ci 1158c2ecf20Sopenharmony_ci#define IWL_DEVICE_6005 \ 1168c2ecf20Sopenharmony_ci .fw_name_pre = IWL6005_FW_PRE, \ 1178c2ecf20Sopenharmony_ci .ucode_api_max = IWL6000G2_UCODE_API_MAX, \ 1188c2ecf20Sopenharmony_ci .ucode_api_min = IWL6000G2_UCODE_API_MIN, \ 1198c2ecf20Sopenharmony_ci .trans.device_family = IWL_DEVICE_FAMILY_6005, \ 1208c2ecf20Sopenharmony_ci .max_inst_size = IWL60_RTC_INST_SIZE, \ 1218c2ecf20Sopenharmony_ci .max_data_size = IWL60_RTC_DATA_SIZE, \ 1228c2ecf20Sopenharmony_ci .nvm_ver = EEPROM_6005_EEPROM_VERSION, \ 1238c2ecf20Sopenharmony_ci .nvm_calib_ver = EEPROM_6005_TX_POWER_VERSION, \ 1248c2ecf20Sopenharmony_ci .trans.base_params = &iwl6000_g2_base_params, \ 1258c2ecf20Sopenharmony_ci .eeprom_params = &iwl6000_eeprom_params, \ 1268c2ecf20Sopenharmony_ci .led_mode = IWL_LED_RF_STATE, \ 1278c2ecf20Sopenharmony_ci .max_ht_ampdu_exponent = IEEE80211_HT_MAX_AMPDU_64K 1288c2ecf20Sopenharmony_ci 1298c2ecf20Sopenharmony_ciconst struct iwl_cfg iwl6005_2agn_cfg = { 1308c2ecf20Sopenharmony_ci .name = "Intel(R) Centrino(R) Advanced-N 6205 AGN", 1318c2ecf20Sopenharmony_ci IWL_DEVICE_6005, 1328c2ecf20Sopenharmony_ci .ht_params = &iwl6000_ht_params, 1338c2ecf20Sopenharmony_ci}; 1348c2ecf20Sopenharmony_ci 1358c2ecf20Sopenharmony_ciconst struct iwl_cfg iwl6005_2abg_cfg = { 1368c2ecf20Sopenharmony_ci .name = "Intel(R) Centrino(R) Advanced-N 6205 ABG", 1378c2ecf20Sopenharmony_ci IWL_DEVICE_6005, 1388c2ecf20Sopenharmony_ci}; 1398c2ecf20Sopenharmony_ci 1408c2ecf20Sopenharmony_ciconst struct iwl_cfg iwl6005_2bg_cfg = { 1418c2ecf20Sopenharmony_ci .name = "Intel(R) Centrino(R) Advanced-N 6205 BG", 1428c2ecf20Sopenharmony_ci IWL_DEVICE_6005, 1438c2ecf20Sopenharmony_ci}; 1448c2ecf20Sopenharmony_ci 1458c2ecf20Sopenharmony_ciconst struct iwl_cfg iwl6005_2agn_sff_cfg = { 1468c2ecf20Sopenharmony_ci .name = "Intel(R) Centrino(R) Advanced-N 6205S AGN", 1478c2ecf20Sopenharmony_ci IWL_DEVICE_6005, 1488c2ecf20Sopenharmony_ci .ht_params = &iwl6000_ht_params, 1498c2ecf20Sopenharmony_ci}; 1508c2ecf20Sopenharmony_ci 1518c2ecf20Sopenharmony_ciconst struct iwl_cfg iwl6005_2agn_d_cfg = { 1528c2ecf20Sopenharmony_ci .name = "Intel(R) Centrino(R) Advanced-N 6205D AGN", 1538c2ecf20Sopenharmony_ci IWL_DEVICE_6005, 1548c2ecf20Sopenharmony_ci .ht_params = &iwl6000_ht_params, 1558c2ecf20Sopenharmony_ci}; 1568c2ecf20Sopenharmony_ci 1578c2ecf20Sopenharmony_ciconst struct iwl_cfg iwl6005_2agn_mow1_cfg = { 1588c2ecf20Sopenharmony_ci .name = "Intel(R) Centrino(R) Advanced-N 6206 AGN", 1598c2ecf20Sopenharmony_ci IWL_DEVICE_6005, 1608c2ecf20Sopenharmony_ci .ht_params = &iwl6000_ht_params, 1618c2ecf20Sopenharmony_ci}; 1628c2ecf20Sopenharmony_ci 1638c2ecf20Sopenharmony_ciconst struct iwl_cfg iwl6005_2agn_mow2_cfg = { 1648c2ecf20Sopenharmony_ci .name = "Intel(R) Centrino(R) Advanced-N 6207 AGN", 1658c2ecf20Sopenharmony_ci IWL_DEVICE_6005, 1668c2ecf20Sopenharmony_ci .ht_params = &iwl6000_ht_params, 1678c2ecf20Sopenharmony_ci}; 1688c2ecf20Sopenharmony_ci 1698c2ecf20Sopenharmony_ci#define IWL_DEVICE_6030 \ 1708c2ecf20Sopenharmony_ci .fw_name_pre = IWL6030_FW_PRE, \ 1718c2ecf20Sopenharmony_ci .ucode_api_max = IWL6000G2_UCODE_API_MAX, \ 1728c2ecf20Sopenharmony_ci .ucode_api_min = IWL6000G2_UCODE_API_MIN, \ 1738c2ecf20Sopenharmony_ci .trans.device_family = IWL_DEVICE_FAMILY_6030, \ 1748c2ecf20Sopenharmony_ci .max_inst_size = IWL60_RTC_INST_SIZE, \ 1758c2ecf20Sopenharmony_ci .max_data_size = IWL60_RTC_DATA_SIZE, \ 1768c2ecf20Sopenharmony_ci .nvm_ver = EEPROM_6030_EEPROM_VERSION, \ 1778c2ecf20Sopenharmony_ci .nvm_calib_ver = EEPROM_6030_TX_POWER_VERSION, \ 1788c2ecf20Sopenharmony_ci .trans.base_params = &iwl6000_g2_base_params, \ 1798c2ecf20Sopenharmony_ci .eeprom_params = &iwl6000_eeprom_params, \ 1808c2ecf20Sopenharmony_ci .led_mode = IWL_LED_RF_STATE, \ 1818c2ecf20Sopenharmony_ci .max_ht_ampdu_exponent = IEEE80211_HT_MAX_AMPDU_64K 1828c2ecf20Sopenharmony_ci 1838c2ecf20Sopenharmony_ciconst struct iwl_cfg iwl6030_2agn_cfg = { 1848c2ecf20Sopenharmony_ci .name = "Intel(R) Centrino(R) Advanced-N 6230 AGN", 1858c2ecf20Sopenharmony_ci IWL_DEVICE_6030, 1868c2ecf20Sopenharmony_ci .ht_params = &iwl6000_ht_params, 1878c2ecf20Sopenharmony_ci}; 1888c2ecf20Sopenharmony_ci 1898c2ecf20Sopenharmony_ciconst struct iwl_cfg iwl6030_2abg_cfg = { 1908c2ecf20Sopenharmony_ci .name = "Intel(R) Centrino(R) Advanced-N 6230 ABG", 1918c2ecf20Sopenharmony_ci IWL_DEVICE_6030, 1928c2ecf20Sopenharmony_ci}; 1938c2ecf20Sopenharmony_ci 1948c2ecf20Sopenharmony_ciconst struct iwl_cfg iwl6030_2bgn_cfg = { 1958c2ecf20Sopenharmony_ci .name = "Intel(R) Centrino(R) Advanced-N 6230 BGN", 1968c2ecf20Sopenharmony_ci IWL_DEVICE_6030, 1978c2ecf20Sopenharmony_ci .ht_params = &iwl6000_ht_params, 1988c2ecf20Sopenharmony_ci}; 1998c2ecf20Sopenharmony_ci 2008c2ecf20Sopenharmony_ciconst struct iwl_cfg iwl6030_2bg_cfg = { 2018c2ecf20Sopenharmony_ci .name = "Intel(R) Centrino(R) Advanced-N 6230 BG", 2028c2ecf20Sopenharmony_ci IWL_DEVICE_6030, 2038c2ecf20Sopenharmony_ci}; 2048c2ecf20Sopenharmony_ci 2058c2ecf20Sopenharmony_ci#define IWL_DEVICE_6035 \ 2068c2ecf20Sopenharmony_ci .fw_name_pre = IWL6030_FW_PRE, \ 2078c2ecf20Sopenharmony_ci .ucode_api_max = IWL6035_UCODE_API_MAX, \ 2088c2ecf20Sopenharmony_ci .ucode_api_min = IWL6035_UCODE_API_MIN, \ 2098c2ecf20Sopenharmony_ci .trans.device_family = IWL_DEVICE_FAMILY_6030, \ 2108c2ecf20Sopenharmony_ci .max_inst_size = IWL60_RTC_INST_SIZE, \ 2118c2ecf20Sopenharmony_ci .max_data_size = IWL60_RTC_DATA_SIZE, \ 2128c2ecf20Sopenharmony_ci .nvm_ver = EEPROM_6030_EEPROM_VERSION, \ 2138c2ecf20Sopenharmony_ci .nvm_calib_ver = EEPROM_6030_TX_POWER_VERSION, \ 2148c2ecf20Sopenharmony_ci .trans.base_params = &iwl6000_g2_base_params, \ 2158c2ecf20Sopenharmony_ci .eeprom_params = &iwl6000_eeprom_params, \ 2168c2ecf20Sopenharmony_ci .led_mode = IWL_LED_RF_STATE, \ 2178c2ecf20Sopenharmony_ci .max_ht_ampdu_exponent = IEEE80211_HT_MAX_AMPDU_64K 2188c2ecf20Sopenharmony_ci 2198c2ecf20Sopenharmony_ciconst struct iwl_cfg iwl6035_2agn_cfg = { 2208c2ecf20Sopenharmony_ci .name = "Intel(R) Centrino(R) Advanced-N 6235 AGN", 2218c2ecf20Sopenharmony_ci IWL_DEVICE_6035, 2228c2ecf20Sopenharmony_ci .ht_params = &iwl6000_ht_params, 2238c2ecf20Sopenharmony_ci}; 2248c2ecf20Sopenharmony_ci 2258c2ecf20Sopenharmony_ciconst struct iwl_cfg iwl6035_2agn_sff_cfg = { 2268c2ecf20Sopenharmony_ci .name = "Intel(R) Centrino(R) Ultimate-N 6235 AGN", 2278c2ecf20Sopenharmony_ci IWL_DEVICE_6035, 2288c2ecf20Sopenharmony_ci .ht_params = &iwl6000_ht_params, 2298c2ecf20Sopenharmony_ci}; 2308c2ecf20Sopenharmony_ci 2318c2ecf20Sopenharmony_ciconst struct iwl_cfg iwl1030_bgn_cfg = { 2328c2ecf20Sopenharmony_ci .name = "Intel(R) Centrino(R) Wireless-N 1030 BGN", 2338c2ecf20Sopenharmony_ci IWL_DEVICE_6030, 2348c2ecf20Sopenharmony_ci .ht_params = &iwl6000_ht_params, 2358c2ecf20Sopenharmony_ci}; 2368c2ecf20Sopenharmony_ci 2378c2ecf20Sopenharmony_ciconst struct iwl_cfg iwl1030_bg_cfg = { 2388c2ecf20Sopenharmony_ci .name = "Intel(R) Centrino(R) Wireless-N 1030 BG", 2398c2ecf20Sopenharmony_ci IWL_DEVICE_6030, 2408c2ecf20Sopenharmony_ci}; 2418c2ecf20Sopenharmony_ci 2428c2ecf20Sopenharmony_ciconst struct iwl_cfg iwl130_bgn_cfg = { 2438c2ecf20Sopenharmony_ci .name = "Intel(R) Centrino(R) Wireless-N 130 BGN", 2448c2ecf20Sopenharmony_ci IWL_DEVICE_6030, 2458c2ecf20Sopenharmony_ci .ht_params = &iwl6000_ht_params, 2468c2ecf20Sopenharmony_ci .rx_with_siso_diversity = true, 2478c2ecf20Sopenharmony_ci}; 2488c2ecf20Sopenharmony_ci 2498c2ecf20Sopenharmony_ciconst struct iwl_cfg iwl130_bg_cfg = { 2508c2ecf20Sopenharmony_ci .name = "Intel(R) Centrino(R) Wireless-N 130 BG", 2518c2ecf20Sopenharmony_ci IWL_DEVICE_6030, 2528c2ecf20Sopenharmony_ci .rx_with_siso_diversity = true, 2538c2ecf20Sopenharmony_ci}; 2548c2ecf20Sopenharmony_ci 2558c2ecf20Sopenharmony_ci/* 2568c2ecf20Sopenharmony_ci * "i": Internal configuration, use internal Power Amplifier 2578c2ecf20Sopenharmony_ci */ 2588c2ecf20Sopenharmony_ci#define IWL_DEVICE_6000i \ 2598c2ecf20Sopenharmony_ci .fw_name_pre = IWL6000_FW_PRE, \ 2608c2ecf20Sopenharmony_ci .ucode_api_max = IWL6000_UCODE_API_MAX, \ 2618c2ecf20Sopenharmony_ci .ucode_api_min = IWL6000_UCODE_API_MIN, \ 2628c2ecf20Sopenharmony_ci .trans.device_family = IWL_DEVICE_FAMILY_6000i, \ 2638c2ecf20Sopenharmony_ci .max_inst_size = IWL60_RTC_INST_SIZE, \ 2648c2ecf20Sopenharmony_ci .max_data_size = IWL60_RTC_DATA_SIZE, \ 2658c2ecf20Sopenharmony_ci .valid_tx_ant = ANT_BC, /* .cfg overwrite */ \ 2668c2ecf20Sopenharmony_ci .valid_rx_ant = ANT_BC, /* .cfg overwrite */ \ 2678c2ecf20Sopenharmony_ci .nvm_ver = EEPROM_6000_EEPROM_VERSION, \ 2688c2ecf20Sopenharmony_ci .nvm_calib_ver = EEPROM_6000_TX_POWER_VERSION, \ 2698c2ecf20Sopenharmony_ci .trans.base_params = &iwl6000_base_params, \ 2708c2ecf20Sopenharmony_ci .eeprom_params = &iwl6000_eeprom_params, \ 2718c2ecf20Sopenharmony_ci .led_mode = IWL_LED_BLINK, \ 2728c2ecf20Sopenharmony_ci .max_ht_ampdu_exponent = IEEE80211_HT_MAX_AMPDU_64K 2738c2ecf20Sopenharmony_ci 2748c2ecf20Sopenharmony_ciconst struct iwl_cfg iwl6000i_2agn_cfg = { 2758c2ecf20Sopenharmony_ci .name = "Intel(R) Centrino(R) Advanced-N 6200 AGN", 2768c2ecf20Sopenharmony_ci IWL_DEVICE_6000i, 2778c2ecf20Sopenharmony_ci .ht_params = &iwl6000_ht_params, 2788c2ecf20Sopenharmony_ci}; 2798c2ecf20Sopenharmony_ci 2808c2ecf20Sopenharmony_ciconst struct iwl_cfg iwl6000i_2abg_cfg = { 2818c2ecf20Sopenharmony_ci .name = "Intel(R) Centrino(R) Advanced-N 6200 ABG", 2828c2ecf20Sopenharmony_ci IWL_DEVICE_6000i, 2838c2ecf20Sopenharmony_ci}; 2848c2ecf20Sopenharmony_ci 2858c2ecf20Sopenharmony_ciconst struct iwl_cfg iwl6000i_2bg_cfg = { 2868c2ecf20Sopenharmony_ci .name = "Intel(R) Centrino(R) Advanced-N 6200 BG", 2878c2ecf20Sopenharmony_ci IWL_DEVICE_6000i, 2888c2ecf20Sopenharmony_ci}; 2898c2ecf20Sopenharmony_ci 2908c2ecf20Sopenharmony_ci#define IWL_DEVICE_6050 \ 2918c2ecf20Sopenharmony_ci .fw_name_pre = IWL6050_FW_PRE, \ 2928c2ecf20Sopenharmony_ci .ucode_api_max = IWL6050_UCODE_API_MAX, \ 2938c2ecf20Sopenharmony_ci .ucode_api_min = IWL6050_UCODE_API_MIN, \ 2948c2ecf20Sopenharmony_ci .trans.device_family = IWL_DEVICE_FAMILY_6050, \ 2958c2ecf20Sopenharmony_ci .max_inst_size = IWL60_RTC_INST_SIZE, \ 2968c2ecf20Sopenharmony_ci .max_data_size = IWL60_RTC_DATA_SIZE, \ 2978c2ecf20Sopenharmony_ci .valid_tx_ant = ANT_AB, /* .cfg overwrite */ \ 2988c2ecf20Sopenharmony_ci .valid_rx_ant = ANT_AB, /* .cfg overwrite */ \ 2998c2ecf20Sopenharmony_ci .nvm_ver = EEPROM_6050_EEPROM_VERSION, \ 3008c2ecf20Sopenharmony_ci .nvm_calib_ver = EEPROM_6050_TX_POWER_VERSION, \ 3018c2ecf20Sopenharmony_ci .trans.base_params = &iwl6050_base_params, \ 3028c2ecf20Sopenharmony_ci .eeprom_params = &iwl6000_eeprom_params, \ 3038c2ecf20Sopenharmony_ci .led_mode = IWL_LED_BLINK, \ 3048c2ecf20Sopenharmony_ci .internal_wimax_coex = true, \ 3058c2ecf20Sopenharmony_ci .max_ht_ampdu_exponent = IEEE80211_HT_MAX_AMPDU_64K 3068c2ecf20Sopenharmony_ci 3078c2ecf20Sopenharmony_ciconst struct iwl_cfg iwl6050_2agn_cfg = { 3088c2ecf20Sopenharmony_ci .name = "Intel(R) Centrino(R) Advanced-N + WiMAX 6250 AGN", 3098c2ecf20Sopenharmony_ci IWL_DEVICE_6050, 3108c2ecf20Sopenharmony_ci .ht_params = &iwl6000_ht_params, 3118c2ecf20Sopenharmony_ci}; 3128c2ecf20Sopenharmony_ci 3138c2ecf20Sopenharmony_ciconst struct iwl_cfg iwl6050_2abg_cfg = { 3148c2ecf20Sopenharmony_ci .name = "Intel(R) Centrino(R) Advanced-N + WiMAX 6250 ABG", 3158c2ecf20Sopenharmony_ci IWL_DEVICE_6050, 3168c2ecf20Sopenharmony_ci}; 3178c2ecf20Sopenharmony_ci 3188c2ecf20Sopenharmony_ci#define IWL_DEVICE_6150 \ 3198c2ecf20Sopenharmony_ci .fw_name_pre = IWL6050_FW_PRE, \ 3208c2ecf20Sopenharmony_ci .ucode_api_max = IWL6050_UCODE_API_MAX, \ 3218c2ecf20Sopenharmony_ci .ucode_api_min = IWL6050_UCODE_API_MIN, \ 3228c2ecf20Sopenharmony_ci .trans.device_family = IWL_DEVICE_FAMILY_6150, \ 3238c2ecf20Sopenharmony_ci .max_inst_size = IWL60_RTC_INST_SIZE, \ 3248c2ecf20Sopenharmony_ci .max_data_size = IWL60_RTC_DATA_SIZE, \ 3258c2ecf20Sopenharmony_ci .nvm_ver = EEPROM_6150_EEPROM_VERSION, \ 3268c2ecf20Sopenharmony_ci .nvm_calib_ver = EEPROM_6150_TX_POWER_VERSION, \ 3278c2ecf20Sopenharmony_ci .trans.base_params = &iwl6050_base_params, \ 3288c2ecf20Sopenharmony_ci .eeprom_params = &iwl6000_eeprom_params, \ 3298c2ecf20Sopenharmony_ci .led_mode = IWL_LED_BLINK, \ 3308c2ecf20Sopenharmony_ci .internal_wimax_coex = true, \ 3318c2ecf20Sopenharmony_ci .max_ht_ampdu_exponent = IEEE80211_HT_MAX_AMPDU_64K 3328c2ecf20Sopenharmony_ci 3338c2ecf20Sopenharmony_ciconst struct iwl_cfg iwl6150_bgn_cfg = { 3348c2ecf20Sopenharmony_ci .name = "Intel(R) Centrino(R) Wireless-N + WiMAX 6150 BGN", 3358c2ecf20Sopenharmony_ci IWL_DEVICE_6150, 3368c2ecf20Sopenharmony_ci .ht_params = &iwl6000_ht_params, 3378c2ecf20Sopenharmony_ci}; 3388c2ecf20Sopenharmony_ci 3398c2ecf20Sopenharmony_ciconst struct iwl_cfg iwl6150_bg_cfg = { 3408c2ecf20Sopenharmony_ci .name = "Intel(R) Centrino(R) Wireless-N + WiMAX 6150 BG", 3418c2ecf20Sopenharmony_ci IWL_DEVICE_6150, 3428c2ecf20Sopenharmony_ci}; 3438c2ecf20Sopenharmony_ci 3448c2ecf20Sopenharmony_ciconst struct iwl_cfg iwl6000_3agn_cfg = { 3458c2ecf20Sopenharmony_ci .name = "Intel(R) Centrino(R) Ultimate-N 6300 AGN", 3468c2ecf20Sopenharmony_ci .fw_name_pre = IWL6000_FW_PRE, 3478c2ecf20Sopenharmony_ci .ucode_api_max = IWL6000_UCODE_API_MAX, 3488c2ecf20Sopenharmony_ci .ucode_api_min = IWL6000_UCODE_API_MIN, 3498c2ecf20Sopenharmony_ci .trans.device_family = IWL_DEVICE_FAMILY_6000, 3508c2ecf20Sopenharmony_ci .max_inst_size = IWL60_RTC_INST_SIZE, 3518c2ecf20Sopenharmony_ci .max_data_size = IWL60_RTC_DATA_SIZE, 3528c2ecf20Sopenharmony_ci .nvm_ver = EEPROM_6000_EEPROM_VERSION, 3538c2ecf20Sopenharmony_ci .nvm_calib_ver = EEPROM_6000_TX_POWER_VERSION, 3548c2ecf20Sopenharmony_ci .trans.base_params = &iwl6000_base_params, 3558c2ecf20Sopenharmony_ci .eeprom_params = &iwl6000_eeprom_params, 3568c2ecf20Sopenharmony_ci .ht_params = &iwl6000_ht_params, 3578c2ecf20Sopenharmony_ci .led_mode = IWL_LED_BLINK, 3588c2ecf20Sopenharmony_ci}; 3598c2ecf20Sopenharmony_ci 3608c2ecf20Sopenharmony_ciMODULE_FIRMWARE(IWL6000_MODULE_FIRMWARE(IWL6000_UCODE_API_MAX)); 3618c2ecf20Sopenharmony_ciMODULE_FIRMWARE(IWL6050_MODULE_FIRMWARE(IWL6050_UCODE_API_MAX)); 3628c2ecf20Sopenharmony_ciMODULE_FIRMWARE(IWL6005_MODULE_FIRMWARE(IWL6000G2_UCODE_API_MAX)); 3638c2ecf20Sopenharmony_ciMODULE_FIRMWARE(IWL6030_MODULE_FIRMWARE(IWL6000G2_UCODE_API_MAX)); 364