diff options
author | Johannes Berg <johannes.berg@intel.com> | 2012-04-03 14:41:07 -0400 |
---|---|---|
committer | Wey-Yi Guy <wey-yi.w.guy@intel.com> | 2012-04-23 17:29:40 -0400 |
commit | 586aed966049c3248db334d6ab9b317e25be7b14 (patch) | |
tree | ed1620d78f7133011576718a3a73ff188976de3a | |
parent | f1f80a8c3b4cfd40eb20a52fd86f0ff9faffdec0 (diff) |
iwlwifi: move eeprom versions to HW files
The hardware files belong to the core PCI
functionality, but the eeprom header file
mixes higher-level functionality and the
defines, so move out the specific defines
and put them into the appropriate HW files
instead.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-1000.c | 4 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-2000.c | 5 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-5000.c | 6 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-6000.c | 14 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-eeprom.h | 42 |
5 files changed, 29 insertions, 42 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-1000.c b/drivers/net/wireless/iwlwifi/iwl-1000.c index e9006078f4e2..42de5aa45323 100644 --- a/drivers/net/wireless/iwlwifi/iwl-1000.c +++ b/drivers/net/wireless/iwlwifi/iwl-1000.c | |||
@@ -42,6 +42,10 @@ | |||
42 | #define IWL1000_UCODE_API_MIN 1 | 42 | #define IWL1000_UCODE_API_MIN 1 |
43 | #define IWL100_UCODE_API_MIN 5 | 43 | #define IWL100_UCODE_API_MIN 5 |
44 | 44 | ||
45 | /* EEPROM version */ | ||
46 | #define EEPROM_1000_TX_POWER_VERSION (4) | ||
47 | #define EEPROM_1000_EEPROM_VERSION (0x15C) | ||
48 | |||
45 | #define IWL1000_FW_PRE "iwlwifi-1000-" | 49 | #define IWL1000_FW_PRE "iwlwifi-1000-" |
46 | #define IWL1000_MODULE_FIRMWARE(api) IWL1000_FW_PRE __stringify(api) ".ucode" | 50 | #define IWL1000_MODULE_FIRMWARE(api) IWL1000_FW_PRE __stringify(api) ".ucode" |
47 | 51 | ||
diff --git a/drivers/net/wireless/iwlwifi/iwl-2000.c b/drivers/net/wireless/iwlwifi/iwl-2000.c index 3d4a36cf0408..d3d8c1021d16 100644 --- a/drivers/net/wireless/iwlwifi/iwl-2000.c +++ b/drivers/net/wireless/iwlwifi/iwl-2000.c | |||
@@ -48,6 +48,11 @@ | |||
48 | #define IWL105_UCODE_API_MIN 5 | 48 | #define IWL105_UCODE_API_MIN 5 |
49 | #define IWL135_UCODE_API_MIN 5 | 49 | #define IWL135_UCODE_API_MIN 5 |
50 | 50 | ||
51 | /* EEPROM version */ | ||
52 | #define EEPROM_2000_TX_POWER_VERSION (6) | ||
53 | #define EEPROM_2000_EEPROM_VERSION (0x805) | ||
54 | |||
55 | |||
51 | #define IWL2030_FW_PRE "iwlwifi-2030-" | 56 | #define IWL2030_FW_PRE "iwlwifi-2030-" |
52 | #define IWL2030_MODULE_FIRMWARE(api) IWL2030_FW_PRE __stringify(api) ".ucode" | 57 | #define IWL2030_MODULE_FIRMWARE(api) IWL2030_FW_PRE __stringify(api) ".ucode" |
53 | 58 | ||
diff --git a/drivers/net/wireless/iwlwifi/iwl-5000.c b/drivers/net/wireless/iwlwifi/iwl-5000.c index ffa9ac5fe086..94d465ee7d22 100644 --- a/drivers/net/wireless/iwlwifi/iwl-5000.c +++ b/drivers/net/wireless/iwlwifi/iwl-5000.c | |||
@@ -38,6 +38,12 @@ | |||
38 | #define IWL5000_UCODE_API_MIN 1 | 38 | #define IWL5000_UCODE_API_MIN 1 |
39 | #define IWL5150_UCODE_API_MIN 1 | 39 | #define IWL5150_UCODE_API_MIN 1 |
40 | 40 | ||
41 | /* EEPROM versions */ | ||
42 | #define EEPROM_5000_TX_POWER_VERSION (4) | ||
43 | #define EEPROM_5000_EEPROM_VERSION (0x11A) | ||
44 | #define EEPROM_5050_TX_POWER_VERSION (4) | ||
45 | #define EEPROM_5050_EEPROM_VERSION (0x21E) | ||
46 | |||
41 | #define IWL5000_FW_PRE "iwlwifi-5000-" | 47 | #define IWL5000_FW_PRE "iwlwifi-5000-" |
42 | #define IWL5000_MODULE_FIRMWARE(api) IWL5000_FW_PRE __stringify(api) ".ucode" | 48 | #define IWL5000_MODULE_FIRMWARE(api) IWL5000_FW_PRE __stringify(api) ".ucode" |
43 | 49 | ||
diff --git a/drivers/net/wireless/iwlwifi/iwl-6000.c b/drivers/net/wireless/iwlwifi/iwl-6000.c index 00da2520a4b7..6db0a4067b8d 100644 --- a/drivers/net/wireless/iwlwifi/iwl-6000.c +++ b/drivers/net/wireless/iwlwifi/iwl-6000.c | |||
@@ -44,6 +44,20 @@ | |||
44 | #define IWL6050_UCODE_API_MIN 4 | 44 | #define IWL6050_UCODE_API_MIN 4 |
45 | #define IWL6000G2_UCODE_API_MIN 4 | 45 | #define IWL6000G2_UCODE_API_MIN 4 |
46 | 46 | ||
47 | /* EEPROM versions */ | ||
48 | #define EEPROM_6000_TX_POWER_VERSION (4) | ||
49 | #define EEPROM_6000_EEPROM_VERSION (0x423) | ||
50 | #define EEPROM_6050_TX_POWER_VERSION (4) | ||
51 | #define EEPROM_6050_EEPROM_VERSION (0x532) | ||
52 | #define EEPROM_6150_TX_POWER_VERSION (6) | ||
53 | #define EEPROM_6150_EEPROM_VERSION (0x553) | ||
54 | #define EEPROM_6005_TX_POWER_VERSION (6) | ||
55 | #define EEPROM_6005_EEPROM_VERSION (0x709) | ||
56 | #define EEPROM_6030_TX_POWER_VERSION (6) | ||
57 | #define EEPROM_6030_EEPROM_VERSION (0x709) | ||
58 | #define EEPROM_6035_TX_POWER_VERSION (6) | ||
59 | #define EEPROM_6035_EEPROM_VERSION (0x753) | ||
60 | |||
47 | #define IWL6000_FW_PRE "iwlwifi-6000-" | 61 | #define IWL6000_FW_PRE "iwlwifi-6000-" |
48 | #define IWL6000_MODULE_FIRMWARE(api) IWL6000_FW_PRE __stringify(api) ".ucode" | 62 | #define IWL6000_MODULE_FIRMWARE(api) IWL6000_FW_PRE __stringify(api) ".ucode" |
49 | 63 | ||
diff --git a/drivers/net/wireless/iwlwifi/iwl-eeprom.h b/drivers/net/wireless/iwlwifi/iwl-eeprom.h index b3a3b1f0fdc4..24279dbd7395 100644 --- a/drivers/net/wireless/iwlwifi/iwl-eeprom.h +++ b/drivers/net/wireless/iwlwifi/iwl-eeprom.h | |||
@@ -206,48 +206,6 @@ struct iwl_eeprom_calib_hdr { | |||
206 | /* 6000 regulatory - indirect access */ | 206 | /* 6000 regulatory - indirect access */ |
207 | #define EEPROM_6000_REG_BAND_24_HT40_CHANNELS ((0x80)\ | 207 | #define EEPROM_6000_REG_BAND_24_HT40_CHANNELS ((0x80)\ |
208 | | INDIRECT_ADDRESS | INDIRECT_REGULATORY) /* 14 bytes */ | 208 | | INDIRECT_ADDRESS | INDIRECT_REGULATORY) /* 14 bytes */ |
209 | |||
210 | /* 5000 Specific */ | ||
211 | #define EEPROM_5000_TX_POWER_VERSION (4) | ||
212 | #define EEPROM_5000_EEPROM_VERSION (0x11A) | ||
213 | |||
214 | /* 5050 Specific */ | ||
215 | #define EEPROM_5050_TX_POWER_VERSION (4) | ||
216 | #define EEPROM_5050_EEPROM_VERSION (0x21E) | ||
217 | |||
218 | /* 1000 Specific */ | ||
219 | #define EEPROM_1000_TX_POWER_VERSION (4) | ||
220 | #define EEPROM_1000_EEPROM_VERSION (0x15C) | ||
221 | |||
222 | /* 6x00 Specific */ | ||
223 | #define EEPROM_6000_TX_POWER_VERSION (4) | ||
224 | #define EEPROM_6000_EEPROM_VERSION (0x423) | ||
225 | |||
226 | /* 6x50 Specific */ | ||
227 | #define EEPROM_6050_TX_POWER_VERSION (4) | ||
228 | #define EEPROM_6050_EEPROM_VERSION (0x532) | ||
229 | |||
230 | /* 6150 Specific */ | ||
231 | #define EEPROM_6150_TX_POWER_VERSION (6) | ||
232 | #define EEPROM_6150_EEPROM_VERSION (0x553) | ||
233 | |||
234 | /* 6x05 Specific */ | ||
235 | #define EEPROM_6005_TX_POWER_VERSION (6) | ||
236 | #define EEPROM_6005_EEPROM_VERSION (0x709) | ||
237 | |||
238 | /* 6x30 Specific */ | ||
239 | #define EEPROM_6030_TX_POWER_VERSION (6) | ||
240 | #define EEPROM_6030_EEPROM_VERSION (0x709) | ||
241 | |||
242 | /* 2x00 Specific */ | ||
243 | #define EEPROM_2000_TX_POWER_VERSION (6) | ||
244 | #define EEPROM_2000_EEPROM_VERSION (0x805) | ||
245 | |||
246 | /* 6x35 Specific */ | ||
247 | #define EEPROM_6035_TX_POWER_VERSION (6) | ||
248 | #define EEPROM_6035_EEPROM_VERSION (0x753) | ||
249 | |||
250 | |||
251 | /* OTP */ | 209 | /* OTP */ |
252 | /* lower blocks contain EEPROM image and calibration data */ | 210 | /* lower blocks contain EEPROM image and calibration data */ |
253 | #define OTP_LOW_IMAGE_SIZE (2 * 512 * sizeof(u16)) /* 2 KB */ | 211 | #define OTP_LOW_IMAGE_SIZE (2 * 512 * sizeof(u16)) /* 2 KB */ |