1 //------------------------------------------------------------------------------
2 // Copyright (c) 2004-2010 Atheros Corporation. All rights reserved.
5 // Permission to use, copy, modify, and/or distribute this software for any
6 // purpose with or without fee is hereby granted, provided that the above
7 // copyright notice and this permission notice appear in all copies.
9 // THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10 // WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11 // MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12 // ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13 // WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14 // ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15 // OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
19 // Author(s): ="Atheros"
20 //------------------------------------------------------------------------------
26 * Each of these represents a WHAL INI table, which consists
27 * of an "address column" followed by 1 or more "value columns".
29 * Software uses the base WHAL_INI_DATA_ID+column to access a
30 * DataSet that holds a particular column of data.
33 #if defined(AR6002_REV4) || defined(AR6003)
34 /* Add these definitions for compatability */
35 #define WHAL_INI_DATA_ID_BB_RFGAIN_LNA1 WHAL_INI_DATA_ID_BB_RFGAIN
36 #define WHAL_INI_DATA_ID_BB_RFGAIN_LNA2 WHAL_INI_DATA_ID_BB_RFGAIN
37 WHAL_INI_DATA_ID_NULL =0,
38 WHAL_INI_DATA_ID_MODE_SPECIFIC =1, /* 2,3,4,5 */
39 WHAL_INI_DATA_ID_COMMON =6, /* 7 */
40 WHAL_INI_DATA_ID_BB_RFGAIN =8, /* 9,10 */
42 WHAL_INI_DATA_ID_ANALOG_BANK0 =11, /* 12 */
43 WHAL_INI_DATA_ID_ANALOG_BANK1 =13, /* 14 */
44 WHAL_INI_DATA_ID_ANALOG_BANK2 =15, /* 16 */
45 WHAL_INI_DATA_ID_ANALOG_BANK3 =17, /* 18, 19 */
46 WHAL_INI_DATA_ID_ANALOG_BANK6 =20, /* 21,22 */
47 WHAL_INI_DATA_ID_ANALOG_BANK7 =23, /* 24 */
48 WHAL_INI_DATA_ID_ADDAC =25, /* 26 */
50 WHAL_INI_DATA_ID_ANALOG_COMMON =11, /* 12 */
51 WHAL_INI_DATA_ID_ANALOG_MODE_SPECIFIC=13, /* 14,15 */
52 WHAL_INI_DATA_ID_ANALOG_BANK6 =16, /* 17,18 */
53 WHAL_INI_DATA_ID_MODE_OVERRIDES =19, /* 20,21,22,23 */
54 WHAL_INI_DATA_ID_COMMON_OVERRIDES =24, /* 25 */
55 WHAL_INI_DATA_ID_ANALOG_OVERRIDES =26, /* 27,28 */
58 WHAL_INI_DATA_ID_NULL =0,
59 WHAL_INI_DATA_ID_MODE_SPECIFIC =1, /* 2,3 */
60 WHAL_INI_DATA_ID_COMMON =4, /* 5 */
61 WHAL_INI_DATA_ID_BB_RFGAIN =6, /* 7,8 */
62 #define WHAL_INI_DATA_ID_BB_RFGAIN_LNA1 WHAL_INI_DATA_ID_BB_RFGAIN
63 WHAL_INI_DATA_ID_ANALOG_BANK1 =9, /* 10 */
64 WHAL_INI_DATA_ID_ANALOG_BANK2 =11, /* 12 */
65 WHAL_INI_DATA_ID_ANALOG_BANK3 =13, /* 14, 15 */
66 WHAL_INI_DATA_ID_ANALOG_BANK6 =16, /* 17, 18 */
67 WHAL_INI_DATA_ID_ANALOG_BANK7 =19, /* 20 */
68 WHAL_INI_DATA_ID_MODE_OVERRIDES =21, /* 22,23 */
69 WHAL_INI_DATA_ID_COMMON_OVERRIDES =24, /* 25 */
70 WHAL_INI_DATA_ID_ANALOG_OVERRIDES =26, /* 27,28 */
71 WHAL_INI_DATA_ID_BB_RFGAIN_LNA2 =29, /* 30,31 */
73 WHAL_INI_DATA_ID_MAX =31
76 typedef PREPACK struct {
77 A_UINT16 freqIndex; // 1 - A mode 2 - B or G mode 0 - common
80 } POSTPACK INI_DSET_REG_OVERRIDE;