OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2008-2009 Atheros Communications Inc. | 2 * Copyright (c) 2008-2009 Atheros Communications Inc. |
3 * | 3 * |
4 * Permission to use, copy, modify, and/or distribute this software for any | 4 * Permission to use, copy, modify, and/or distribute this software for any |
5 * purpose with or without fee is hereby granted, provided that the above | 5 * purpose with or without fee is hereby granted, provided that the above |
6 * copyright notice and this permission notice appear in all copies. | 6 * copyright notice and this permission notice appear in all copies. |
7 * | 7 * |
8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | 8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES |
9 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | 9 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF |
10 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | 10 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 #define AR5416_EEPROM_MAGIC_OFFSET 0x0 | 55 #define AR5416_EEPROM_MAGIC_OFFSET 0x0 |
56 #define AR5416_EEPROM_S 2 | 56 #define AR5416_EEPROM_S 2 |
57 #define AR5416_EEPROM_OFFSET 0x2000 | 57 #define AR5416_EEPROM_OFFSET 0x2000 |
58 #define AR5416_EEPROM_MAX 0xae0 | 58 #define AR5416_EEPROM_MAX 0xae0 |
59 | 59 |
60 #define AR5416_EEPROM_START_ADDR \ | 60 #define AR5416_EEPROM_START_ADDR \ |
61 (AR_SREV_9100(ah)) ? 0x1fff1000 : 0x503f1200 | 61 (AR_SREV_9100(ah)) ? 0x1fff1000 : 0x503f1200 |
62 | 62 |
63 #define SD_NO_CTL 0xE0 | 63 #define SD_NO_CTL 0xE0 |
64 #define NO_CTL 0xff | 64 #define NO_CTL 0xff |
65 #define CTL_MODE_M 7 | 65 #define CTL_MODE_M 0xf |
66 #define CTL_11A 0 | 66 #define CTL_11A 0 |
67 #define CTL_11B 1 | 67 #define CTL_11B 1 |
68 #define CTL_11G 2 | 68 #define CTL_11G 2 |
69 #define CTL_2GHT20 5 | 69 #define CTL_2GHT20 5 |
70 #define CTL_5GHT20 6 | 70 #define CTL_5GHT20 6 |
71 #define CTL_2GHT40 7 | 71 #define CTL_2GHT40 7 |
72 #define CTL_5GHT40 8 | 72 #define CTL_5GHT40 8 |
73 | 73 |
74 #define EXT_ADDITIVE (0x8000) | 74 #define EXT_ADDITIVE (0x8000) |
75 #define CTL_11A_EXT (CTL_11A | EXT_ADDITIVE) | 75 #define CTL_11A_EXT (CTL_11A | EXT_ADDITIVE) |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 #define AR9287_EEP_VER 0xE | 184 #define AR9287_EEP_VER 0xE |
185 #define AR9287_EEP_VER_MINOR_MASK 0xFFF | 185 #define AR9287_EEP_VER_MINOR_MASK 0xFFF |
186 #define AR9287_EEP_MINOR_VER_1 0x1 | 186 #define AR9287_EEP_MINOR_VER_1 0x1 |
187 #define AR9287_EEP_MINOR_VER_2 0x2 | 187 #define AR9287_EEP_MINOR_VER_2 0x2 |
188 #define AR9287_EEP_MINOR_VER_3 0x3 | 188 #define AR9287_EEP_MINOR_VER_3 0x3 |
189 #define AR9287_EEP_MINOR_VER AR9287_EEP_MINOR_VER_3 | 189 #define AR9287_EEP_MINOR_VER AR9287_EEP_MINOR_VER_3 |
190 #define AR9287_EEP_MINOR_VER_b AR9287_EEP_MINOR_VER | 190 #define AR9287_EEP_MINOR_VER_b AR9287_EEP_MINOR_VER |
191 #define AR9287_EEP_NO_BACK_VER AR9287_EEP_MINOR_VER_1 | 191 #define AR9287_EEP_NO_BACK_VER AR9287_EEP_MINOR_VER_1 |
192 | 192 |
193 #define AR9287_EEP_START_LOC 128 | 193 #define AR9287_EEP_START_LOC 128 |
| 194 #define AR9287_HTC_EEP_START_LOC 256 |
194 #define AR9287_NUM_2G_CAL_PIERS 3 | 195 #define AR9287_NUM_2G_CAL_PIERS 3 |
195 #define AR9287_NUM_2G_CCK_TARGET_POWERS 3 | 196 #define AR9287_NUM_2G_CCK_TARGET_POWERS 3 |
196 #define AR9287_NUM_2G_20_TARGET_POWERS 3 | 197 #define AR9287_NUM_2G_20_TARGET_POWERS 3 |
197 #define AR9287_NUM_2G_40_TARGET_POWERS 3 | 198 #define AR9287_NUM_2G_40_TARGET_POWERS 3 |
198 #define AR9287_NUM_CTLS 12 | 199 #define AR9287_NUM_CTLS 12 |
199 #define AR9287_NUM_BAND_EDGES 4 | 200 #define AR9287_NUM_BAND_EDGES 4 |
200 #define AR9287_NUM_PD_GAINS 4 | 201 #define AR9287_NUM_PD_GAINS 4 |
201 #define AR9287_PD_GAINS_IN_MASK 4 | 202 #define AR9287_PD_GAINS_IN_MASK 4 |
202 #define AR9287_PD_GAIN_ICEPTS 1 | 203 #define AR9287_PD_GAIN_ICEPTS 1 |
203 #define AR9287_EEPROM_MODAL_SPURS 5 | 204 #define AR9287_EEPROM_MODAL_SPURS 5 |
(...skipping 509 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
713 (((_txchainmask >> 2) & 1) + \ | 714 (((_txchainmask >> 2) & 1) + \ |
714 ((_txchainmask >> 1) & 1) + (_txchainmask & 1)) | 715 ((_txchainmask >> 1) & 1) + (_txchainmask & 1)) |
715 | 716 |
716 extern const struct eeprom_ops eep_def_ops; | 717 extern const struct eeprom_ops eep_def_ops; |
717 extern const struct eeprom_ops eep_4k_ops; | 718 extern const struct eeprom_ops eep_4k_ops; |
718 extern const struct eeprom_ops eep_ar9287_ops; | 719 extern const struct eeprom_ops eep_ar9287_ops; |
719 extern const struct eeprom_ops eep_ar9287_ops; | 720 extern const struct eeprom_ops eep_ar9287_ops; |
720 extern const struct eeprom_ops eep_ar9300_ops; | 721 extern const struct eeprom_ops eep_ar9300_ops; |
721 | 722 |
722 #endif /* EEPROM_H */ | 723 #endif /* EEPROM_H */ |
OLD | NEW |