diff options
author | Felix Fietkau <nbd@openwrt.org> | 2010-12-11 18:51:08 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-12-13 15:23:31 -0500 |
commit | 4ddfcd7daf57247ff718b849a152d97a80b7ae4d (patch) | |
tree | a1d3bcf22e6e1ddc4bf79fee3101a4f8cdee8063 /drivers/net/wireless/ath/ath9k/eeprom.h | |
parent | 040b74f741b20dbf07359716d5c540356a036ade (diff) |
ath9k_hw: clean up duplicate and unnused eeprom related defines
AR*_MAX_RATE_POWER => MAX_RATE_POWER
AR*_EEPROM_MODAL_SPURS => AR_EEPROM_MODAL_SPURS
AR*_OPFLAGS_* => AR5416_OPFLAGS_*
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/eeprom.h')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/eeprom.h | 45 |
1 files changed, 10 insertions, 35 deletions
diff --git a/drivers/net/wireless/ath/ath9k/eeprom.h b/drivers/net/wireless/ath/ath9k/eeprom.h index 8b9885b5243f..833dd0c3feba 100644 --- a/drivers/net/wireless/ath/ath9k/eeprom.h +++ b/drivers/net/wireless/ath/ath9k/eeprom.h | |||
@@ -17,6 +17,8 @@ | |||
17 | #ifndef EEPROM_H | 17 | #ifndef EEPROM_H |
18 | #define EEPROM_H | 18 | #define EEPROM_H |
19 | 19 | ||
20 | #define AR_EEPROM_MODAL_SPURS 5 | ||
21 | |||
20 | #include "../ath.h" | 22 | #include "../ath.h" |
21 | #include <net/cfg80211.h> | 23 | #include <net/cfg80211.h> |
22 | #include "ar9003_eeprom.h" | 24 | #include "ar9003_eeprom.h" |
@@ -149,8 +151,6 @@ | |||
149 | #define AR5416_NUM_PD_GAINS 4 | 151 | #define AR5416_NUM_PD_GAINS 4 |
150 | #define AR5416_PD_GAINS_IN_MASK 4 | 152 | #define AR5416_PD_GAINS_IN_MASK 4 |
151 | #define AR5416_PD_GAIN_ICEPTS 5 | 153 | #define AR5416_PD_GAIN_ICEPTS 5 |
152 | #define AR5416_EEPROM_MODAL_SPURS 5 | ||
153 | #define AR5416_MAX_RATE_POWER 63 | ||
154 | #define AR5416_NUM_PDADC_VALUES 128 | 154 | #define AR5416_NUM_PDADC_VALUES 128 |
155 | #define AR5416_BCHAN_UNUSED 0xFF | 155 | #define AR5416_BCHAN_UNUSED 0xFF |
156 | #define AR5416_MAX_PWR_RANGE_IN_HALF_DB 64 | 156 | #define AR5416_MAX_PWR_RANGE_IN_HALF_DB 64 |
@@ -175,8 +175,6 @@ | |||
175 | #define AR5416_EEP4K_NUM_CTLS 12 | 175 | #define AR5416_EEP4K_NUM_CTLS 12 |
176 | #define AR5416_EEP4K_NUM_BAND_EDGES 4 | 176 | #define AR5416_EEP4K_NUM_BAND_EDGES 4 |
177 | #define AR5416_EEP4K_NUM_PD_GAINS 2 | 177 | #define AR5416_EEP4K_NUM_PD_GAINS 2 |
178 | #define AR5416_EEP4K_PD_GAINS_IN_MASK 4 | ||
179 | #define AR5416_EEP4K_PD_GAIN_ICEPTS 5 | ||
180 | #define AR5416_EEP4K_MAX_CHAINS 1 | 178 | #define AR5416_EEP4K_MAX_CHAINS 1 |
181 | 179 | ||
182 | #define AR9280_TX_GAIN_TABLE_SIZE 22 | 180 | #define AR9280_TX_GAIN_TABLE_SIZE 22 |
@@ -198,35 +196,12 @@ | |||
198 | #define AR9287_NUM_2G_40_TARGET_POWERS 3 | 196 | #define AR9287_NUM_2G_40_TARGET_POWERS 3 |
199 | #define AR9287_NUM_CTLS 12 | 197 | #define AR9287_NUM_CTLS 12 |
200 | #define AR9287_NUM_BAND_EDGES 4 | 198 | #define AR9287_NUM_BAND_EDGES 4 |
201 | #define AR9287_NUM_PD_GAINS 4 | ||
202 | #define AR9287_PD_GAINS_IN_MASK 4 | ||
203 | #define AR9287_PD_GAIN_ICEPTS 1 | 199 | #define AR9287_PD_GAIN_ICEPTS 1 |
204 | #define AR9287_EEPROM_MODAL_SPURS 5 | ||
205 | #define AR9287_MAX_RATE_POWER 63 | ||
206 | #define AR9287_NUM_PDADC_VALUES 128 | ||
207 | #define AR9287_NUM_RATES 16 | ||
208 | #define AR9287_BCHAN_UNUSED 0xFF | ||
209 | #define AR9287_MAX_PWR_RANGE_IN_HALF_DB 64 | ||
210 | #define AR9287_OPFLAGS_11A 0x01 | ||
211 | #define AR9287_OPFLAGS_11G 0x02 | ||
212 | #define AR9287_OPFLAGS_2G_HT40 0x08 | ||
213 | #define AR9287_OPFLAGS_2G_HT20 0x20 | ||
214 | #define AR9287_OPFLAGS_5G_HT40 0x04 | ||
215 | #define AR9287_OPFLAGS_5G_HT20 0x10 | ||
216 | #define AR9287_EEPMISC_BIG_ENDIAN 0x01 | 200 | #define AR9287_EEPMISC_BIG_ENDIAN 0x01 |
217 | #define AR9287_EEPMISC_WOW 0x02 | 201 | #define AR9287_EEPMISC_WOW 0x02 |
218 | #define AR9287_MAX_CHAINS 2 | 202 | #define AR9287_MAX_CHAINS 2 |
219 | #define AR9287_ANT_16S 32 | 203 | #define AR9287_ANT_16S 32 |
220 | #define AR9287_custdatasize 20 | 204 | |
221 | |||
222 | #define AR9287_NUM_ANT_CHAIN_FIELDS 6 | ||
223 | #define AR9287_NUM_ANT_COMMON_FIELDS 4 | ||
224 | #define AR9287_SIZE_ANT_CHAIN_FIELD 2 | ||
225 | #define AR9287_SIZE_ANT_COMMON_FIELD 4 | ||
226 | #define AR9287_ANT_CHAIN_MASK 0x3 | ||
227 | #define AR9287_ANT_COMMON_MASK 0xf | ||
228 | #define AR9287_CHAIN_0_IDX 0 | ||
229 | #define AR9287_CHAIN_1_IDX 1 | ||
230 | #define AR9287_DATA_SZ 32 | 205 | #define AR9287_DATA_SZ 32 |
231 | 206 | ||
232 | #define AR9287_PWR_TABLE_OFFSET_DB -5 | 207 | #define AR9287_PWR_TABLE_OFFSET_DB -5 |
@@ -396,7 +371,7 @@ struct modal_eep_header { | |||
396 | u16 xpaBiasLvlFreq[3]; | 371 | u16 xpaBiasLvlFreq[3]; |
397 | u8 futureModal[6]; | 372 | u8 futureModal[6]; |
398 | 373 | ||
399 | struct spur_chan spurChans[AR5416_EEPROM_MODAL_SPURS]; | 374 | struct spur_chan spurChans[AR_EEPROM_MODAL_SPURS]; |
400 | } __packed; | 375 | } __packed; |
401 | 376 | ||
402 | struct calDataPerFreqOpLoop { | 377 | struct calDataPerFreqOpLoop { |
@@ -464,7 +439,7 @@ struct modal_eep_4k_header { | |||
464 | u8 db2_4:4, reserved:4; | 439 | u8 db2_4:4, reserved:4; |
465 | #endif | 440 | #endif |
466 | u8 futureModal[4]; | 441 | u8 futureModal[4]; |
467 | struct spur_chan spurChans[AR5416_EEPROM_MODAL_SPURS]; | 442 | struct spur_chan spurChans[AR_EEPROM_MODAL_SPURS]; |
468 | } __packed; | 443 | } __packed; |
469 | 444 | ||
470 | struct base_eep_ar9287_header { | 445 | struct base_eep_ar9287_header { |
@@ -522,7 +497,7 @@ struct modal_eep_ar9287_header { | |||
522 | u8 ob_qam; | 497 | u8 ob_qam; |
523 | u8 ob_pal_off; | 498 | u8 ob_pal_off; |
524 | u8 futureModal[30]; | 499 | u8 futureModal[30]; |
525 | struct spur_chan spurChans[AR9287_EEPROM_MODAL_SPURS]; | 500 | struct spur_chan spurChans[AR_EEPROM_MODAL_SPURS]; |
526 | } __packed; | 501 | } __packed; |
527 | 502 | ||
528 | struct cal_data_per_freq { | 503 | struct cal_data_per_freq { |
@@ -531,8 +506,8 @@ struct cal_data_per_freq { | |||
531 | } __packed; | 506 | } __packed; |
532 | 507 | ||
533 | struct cal_data_per_freq_4k { | 508 | struct cal_data_per_freq_4k { |
534 | u8 pwrPdg[AR5416_EEP4K_NUM_PD_GAINS][AR5416_EEP4K_PD_GAIN_ICEPTS]; | 509 | u8 pwrPdg[AR5416_EEP4K_NUM_PD_GAINS][AR5416_PD_GAIN_ICEPTS]; |
535 | u8 vpdPdg[AR5416_EEP4K_NUM_PD_GAINS][AR5416_EEP4K_PD_GAIN_ICEPTS]; | 510 | u8 vpdPdg[AR5416_EEP4K_NUM_PD_GAINS][AR5416_PD_GAIN_ICEPTS]; |
536 | } __packed; | 511 | } __packed; |
537 | 512 | ||
538 | struct cal_target_power_leg { | 513 | struct cal_target_power_leg { |
@@ -558,8 +533,8 @@ struct cal_data_op_loop_ar9287 { | |||
558 | } __packed; | 533 | } __packed; |
559 | 534 | ||
560 | struct cal_data_per_freq_ar9287 { | 535 | struct cal_data_per_freq_ar9287 { |
561 | u8 pwrPdg[AR9287_NUM_PD_GAINS][AR9287_PD_GAIN_ICEPTS]; | 536 | u8 pwrPdg[AR5416_NUM_PD_GAINS][AR9287_PD_GAIN_ICEPTS]; |
562 | u8 vpdPdg[AR9287_NUM_PD_GAINS][AR9287_PD_GAIN_ICEPTS]; | 537 | u8 vpdPdg[AR5416_NUM_PD_GAINS][AR9287_PD_GAIN_ICEPTS]; |
563 | } __packed; | 538 | } __packed; |
564 | 539 | ||
565 | union cal_data_per_freq_ar9287_u { | 540 | union cal_data_per_freq_ar9287_u { |