1
2
3
4
5
6
7
8
9
10
11
12
13#include <linux/module.h>
14#include <linux/stringify.h>
15#include "iwl-config.h"
16#include "iwl-agn-hw.h"
17
18
19#define IWL1000_UCODE_API_MAX 5
20#define IWL100_UCODE_API_MAX 5
21
22
23#define IWL1000_UCODE_API_MIN 1
24#define IWL100_UCODE_API_MIN 5
25
26
27#define EEPROM_1000_TX_POWER_VERSION (4)
28#define EEPROM_1000_EEPROM_VERSION (0x15C)
29
30#define IWL1000_FW_PRE "iwlwifi-1000-"
31#define IWL1000_MODULE_FIRMWARE(api) IWL1000_FW_PRE __stringify(api) ".ucode"
32
33#define IWL100_FW_PRE "iwlwifi-100-"
34#define IWL100_MODULE_FIRMWARE(api) IWL100_FW_PRE __stringify(api) ".ucode"
35
36
37static const struct iwl_base_params iwl1000_base_params = {
38 .num_of_queues = IWLAGN_NUM_QUEUES,
39 .max_tfd_queue_size = 256,
40 .eeprom_size = OTP_LOW_IMAGE_SIZE_2K,
41 .pll_cfg = true,
42 .max_ll_items = OTP_MAX_LL_ITEMS_1000,
43 .shadow_ram_support = false,
44 .led_compensation = 51,
45 .wd_timeout = IWL_WATCHDOG_DISABLED,
46 .max_event_log_size = 128,
47 .scd_chain_ext_wa = true,
48};
49
50static const struct iwl_ht_params iwl1000_ht_params = {
51 .ht_greenfield_support = true,
52 .use_rts_for_aggregation = true,
53 .ht40_bands = BIT(NL80211_BAND_2GHZ),
54};
55
56static const struct iwl_eeprom_params iwl1000_eeprom_params = {
57 .regulatory_bands = {
58 EEPROM_REG_BAND_1_CHANNELS,
59 EEPROM_REG_BAND_2_CHANNELS,
60 EEPROM_REG_BAND_3_CHANNELS,
61 EEPROM_REG_BAND_4_CHANNELS,
62 EEPROM_REG_BAND_5_CHANNELS,
63 EEPROM_REG_BAND_24_HT40_CHANNELS,
64 EEPROM_REGULATORY_BAND_NO_HT40,
65 }
66};
67
68#define IWL_DEVICE_1000 \
69 .fw_name_pre = IWL1000_FW_PRE, \
70 .ucode_api_max = IWL1000_UCODE_API_MAX, \
71 .ucode_api_min = IWL1000_UCODE_API_MIN, \
72 .trans.device_family = IWL_DEVICE_FAMILY_1000, \
73 .max_inst_size = IWLAGN_RTC_INST_SIZE, \
74 .max_data_size = IWLAGN_RTC_DATA_SIZE, \
75 .nvm_ver = EEPROM_1000_EEPROM_VERSION, \
76 .nvm_calib_ver = EEPROM_1000_TX_POWER_VERSION, \
77 .trans.base_params = &iwl1000_base_params, \
78 .eeprom_params = &iwl1000_eeprom_params, \
79 .led_mode = IWL_LED_BLINK
80
81const struct iwl_cfg iwl1000_bgn_cfg = {
82 .name = "Intel(R) Centrino(R) Wireless-N 1000 BGN",
83 IWL_DEVICE_1000,
84 .ht_params = &iwl1000_ht_params,
85};
86
87const struct iwl_cfg iwl1000_bg_cfg = {
88 .name = "Intel(R) Centrino(R) Wireless-N 1000 BG",
89 IWL_DEVICE_1000,
90};
91
92#define IWL_DEVICE_100 \
93 .fw_name_pre = IWL100_FW_PRE, \
94 .ucode_api_max = IWL100_UCODE_API_MAX, \
95 .ucode_api_min = IWL100_UCODE_API_MIN, \
96 .trans.device_family = IWL_DEVICE_FAMILY_100, \
97 .max_inst_size = IWLAGN_RTC_INST_SIZE, \
98 .max_data_size = IWLAGN_RTC_DATA_SIZE, \
99 .nvm_ver = EEPROM_1000_EEPROM_VERSION, \
100 .nvm_calib_ver = EEPROM_1000_TX_POWER_VERSION, \
101 .trans.base_params = &iwl1000_base_params, \
102 .eeprom_params = &iwl1000_eeprom_params, \
103 .led_mode = IWL_LED_RF_STATE, \
104 .rx_with_siso_diversity = true
105
106const struct iwl_cfg iwl100_bgn_cfg = {
107 .name = "Intel(R) Centrino(R) Wireless-N 100 BGN",
108 IWL_DEVICE_100,
109 .ht_params = &iwl1000_ht_params,
110};
111
112const struct iwl_cfg iwl100_bg_cfg = {
113 .name = "Intel(R) Centrino(R) Wireless-N 100 BG",
114 IWL_DEVICE_100,
115};
116
117MODULE_FIRMWARE(IWL1000_MODULE_FIRMWARE(IWL1000_UCODE_API_MAX));
118MODULE_FIRMWARE(IWL100_MODULE_FIRMWARE(IWL100_UCODE_API_MAX));
119