.. | .. |
---|
| 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> |
---|
.. | .. |
---|
61 | 46 | #define IWL135_MODULE_FIRMWARE(api) IWL135_FW_PRE __stringify(api) ".ucode" |
---|
62 | 47 | |
---|
63 | 48 | static const struct iwl_base_params iwl2000_base_params = { |
---|
64 | | - .eeprom_size = OTP_LOW_IMAGE_SIZE, |
---|
| 49 | + .eeprom_size = OTP_LOW_IMAGE_SIZE_2K, |
---|
65 | 50 | .num_of_queues = IWLAGN_NUM_QUEUES, |
---|
66 | 51 | .max_tfd_queue_size = 256, |
---|
67 | 52 | .max_ll_items = OTP_MAX_LL_ITEMS_2x00, |
---|
.. | .. |
---|
75 | 60 | |
---|
76 | 61 | |
---|
77 | 62 | static const struct iwl_base_params iwl2030_base_params = { |
---|
78 | | - .eeprom_size = OTP_LOW_IMAGE_SIZE, |
---|
| 63 | + .eeprom_size = OTP_LOW_IMAGE_SIZE_2K, |
---|
79 | 64 | .num_of_queues = IWLAGN_NUM_QUEUES, |
---|
80 | 65 | .max_tfd_queue_size = 256, |
---|
81 | 66 | .max_ll_items = OTP_MAX_LL_ITEMS_2x00, |
---|
.. | .. |
---|
110 | 95 | .fw_name_pre = IWL2000_FW_PRE, \ |
---|
111 | 96 | .ucode_api_max = IWL2000_UCODE_API_MAX, \ |
---|
112 | 97 | .ucode_api_min = IWL2000_UCODE_API_MIN, \ |
---|
113 | | - .device_family = IWL_DEVICE_FAMILY_2000, \ |
---|
| 98 | + .trans.device_family = IWL_DEVICE_FAMILY_2000, \ |
---|
114 | 99 | .max_inst_size = IWL60_RTC_INST_SIZE, \ |
---|
115 | 100 | .max_data_size = IWL60_RTC_DATA_SIZE, \ |
---|
116 | 101 | .nvm_ver = EEPROM_2000_EEPROM_VERSION, \ |
---|
117 | 102 | .nvm_calib_ver = EEPROM_2000_TX_POWER_VERSION, \ |
---|
118 | | - .base_params = &iwl2000_base_params, \ |
---|
| 103 | + .trans.base_params = &iwl2000_base_params, \ |
---|
119 | 104 | .eeprom_params = &iwl20x0_eeprom_params, \ |
---|
120 | 105 | .led_mode = IWL_LED_RF_STATE, \ |
---|
121 | | - .max_ht_ampdu_exponent = IEEE80211_HT_MAX_AMPDU_64K, \ |
---|
122 | | - .csr = &iwl_csr_v1 |
---|
| 106 | + .max_ht_ampdu_exponent = IEEE80211_HT_MAX_AMPDU_64K |
---|
123 | 107 | |
---|
124 | 108 | |
---|
125 | 109 | const struct iwl_cfg iwl2000_2bgn_cfg = { |
---|
.. | .. |
---|
138 | 122 | .fw_name_pre = IWL2030_FW_PRE, \ |
---|
139 | 123 | .ucode_api_max = IWL2030_UCODE_API_MAX, \ |
---|
140 | 124 | .ucode_api_min = IWL2030_UCODE_API_MIN, \ |
---|
141 | | - .device_family = IWL_DEVICE_FAMILY_2030, \ |
---|
| 125 | + .trans.device_family = IWL_DEVICE_FAMILY_2030, \ |
---|
142 | 126 | .max_inst_size = IWL60_RTC_INST_SIZE, \ |
---|
143 | 127 | .max_data_size = IWL60_RTC_DATA_SIZE, \ |
---|
144 | 128 | .nvm_ver = EEPROM_2000_EEPROM_VERSION, \ |
---|
145 | 129 | .nvm_calib_ver = EEPROM_2000_TX_POWER_VERSION, \ |
---|
146 | | - .base_params = &iwl2030_base_params, \ |
---|
| 130 | + .trans.base_params = &iwl2030_base_params, \ |
---|
147 | 131 | .eeprom_params = &iwl20x0_eeprom_params, \ |
---|
148 | 132 | .led_mode = IWL_LED_RF_STATE, \ |
---|
149 | | - .max_ht_ampdu_exponent = IEEE80211_HT_MAX_AMPDU_64K, \ |
---|
150 | | - .csr = &iwl_csr_v1 |
---|
| 133 | + .max_ht_ampdu_exponent = IEEE80211_HT_MAX_AMPDU_64K |
---|
151 | 134 | |
---|
152 | 135 | const struct iwl_cfg iwl2030_2bgn_cfg = { |
---|
153 | 136 | .name = "Intel(R) Centrino(R) Wireless-N 2230 BGN", |
---|
.. | .. |
---|
159 | 142 | .fw_name_pre = IWL105_FW_PRE, \ |
---|
160 | 143 | .ucode_api_max = IWL105_UCODE_API_MAX, \ |
---|
161 | 144 | .ucode_api_min = IWL105_UCODE_API_MIN, \ |
---|
162 | | - .device_family = IWL_DEVICE_FAMILY_105, \ |
---|
| 145 | + .trans.device_family = IWL_DEVICE_FAMILY_105, \ |
---|
163 | 146 | .max_inst_size = IWL60_RTC_INST_SIZE, \ |
---|
164 | 147 | .max_data_size = IWL60_RTC_DATA_SIZE, \ |
---|
165 | 148 | .nvm_ver = EEPROM_2000_EEPROM_VERSION, \ |
---|
166 | 149 | .nvm_calib_ver = EEPROM_2000_TX_POWER_VERSION, \ |
---|
167 | | - .base_params = &iwl2000_base_params, \ |
---|
| 150 | + .trans.base_params = &iwl2000_base_params, \ |
---|
168 | 151 | .eeprom_params = &iwl20x0_eeprom_params, \ |
---|
169 | 152 | .led_mode = IWL_LED_RF_STATE, \ |
---|
170 | 153 | .rx_with_siso_diversity = true, \ |
---|
171 | | - .max_ht_ampdu_exponent = IEEE80211_HT_MAX_AMPDU_64K, \ |
---|
172 | | - .csr = &iwl_csr_v1 |
---|
| 154 | + .max_ht_ampdu_exponent = IEEE80211_HT_MAX_AMPDU_64K |
---|
173 | 155 | |
---|
174 | 156 | const struct iwl_cfg iwl105_bgn_cfg = { |
---|
175 | 157 | .name = "Intel(R) Centrino(R) Wireless-N 105 BGN", |
---|
.. | .. |
---|
187 | 169 | .fw_name_pre = IWL135_FW_PRE, \ |
---|
188 | 170 | .ucode_api_max = IWL135_UCODE_API_MAX, \ |
---|
189 | 171 | .ucode_api_min = IWL135_UCODE_API_MIN, \ |
---|
190 | | - .device_family = IWL_DEVICE_FAMILY_135, \ |
---|
| 172 | + .trans.device_family = IWL_DEVICE_FAMILY_135, \ |
---|
191 | 173 | .max_inst_size = IWL60_RTC_INST_SIZE, \ |
---|
192 | 174 | .max_data_size = IWL60_RTC_DATA_SIZE, \ |
---|
193 | 175 | .nvm_ver = EEPROM_2000_EEPROM_VERSION, \ |
---|
194 | 176 | .nvm_calib_ver = EEPROM_2000_TX_POWER_VERSION, \ |
---|
195 | | - .base_params = &iwl2030_base_params, \ |
---|
| 177 | + .trans.base_params = &iwl2030_base_params, \ |
---|
196 | 178 | .eeprom_params = &iwl20x0_eeprom_params, \ |
---|
197 | 179 | .led_mode = IWL_LED_RF_STATE, \ |
---|
198 | 180 | .rx_with_siso_diversity = true, \ |
---|
199 | | - .max_ht_ampdu_exponent = IEEE80211_HT_MAX_AMPDU_64K, \ |
---|
200 | | - .csr = &iwl_csr_v1 |
---|
| 181 | + .max_ht_ampdu_exponent = IEEE80211_HT_MAX_AMPDU_64K |
---|
201 | 182 | |
---|
202 | 183 | const struct iwl_cfg iwl135_bgn_cfg = { |
---|
203 | 184 | .name = "Intel(R) Centrino(R) Wireless-N 135 BGN", |
---|