Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
ini.h
Go to the documentation of this file.
1 /*
2  * This file is part of wl1271
3  *
4  * Copyright (C) 2010 Nokia Corporation
5  *
6  * Contact: Luciano Coelho <[email protected]>
7  *
8  * This program is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU General Public License
10  * version 2 as published by the Free Software Foundation.
11  *
12  * This program is distributed in the hope that it will be useful, but
13  * WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15  * General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, write to the Free Software
19  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
20  * 02110-1301 USA
21  *
22  */
23 
24 #ifndef __INI_H__
25 #define __INI_H__
26 
27 #define GENERAL_SETTINGS_DRPW_LPD 0xc0
28 #define SCRATCH_ENABLE_LPD BIT(25)
29 
30 #define WL1271_INI_MAX_SMART_REFLEX_PARAM 16
31 
45 } __packed;
46 
47 #define WL128X_INI_MAX_SETTINGS_PARAM 4
48 
67 } __packed;
68 
69 #define WL1271_INI_RSSI_PROCESS_COMPENS_SIZE 15
70 
75 } __packed;
76 
77 #define WL1271_INI_CHANNEL_COUNT_2 14
78 
83 } __packed;
84 
85 #define WL1271_INI_RATE_GROUP_COUNT 6
86 
101 } __packed;
102 
103 #define WL128X_INI_RATE_GROUP_COUNT 7
104 /* low and high temperatures */
105 #define WL128X_INI_PD_VS_TEMPERATURE_RANGES 2
106 
123 } __packed;
124 
125 #define WL1271_INI_CHANNEL_COUNT_5 35
126 #define WL1271_INI_SUB_BAND_COUNT_5 7
127 
132 } __packed;
133 
138 } __packed;
139 
153 } __packed;
154 
171 } __packed;
172 
173 /* NVS data structure */
174 #define WL1271_INI_NVS_SECTION_SIZE 468
175 
176 /* We have four FEM module types: 0-RFMD, 1-TQS, 2-SKW, 3-TQS_HP */
177 #define WL1271_INI_FEM_MODULE_COUNT 4
178 
179 /*
180  * In NVS we only store two FEM module entries -
181  * FEM modules 0,2,3 are stored in entry 0
182  * FEM module 1 is stored in entry 1
183  */
184 #define WL12XX_NVS_FEM_MODULE_COUNT 2
185 
186 #define WL12XX_FEM_TO_NVS_ENTRY(ini_fem_module) \
187  ((ini_fem_module) == 1 ? 1 : 0)
188 
189 #define WL1271_INI_LEGACY_NVS_FILE_SIZE 800
190 
192  /* NVS section - must be first! */
194 
195  /* INI section */
200  struct {
206  struct {
208  u8 padding;
210 } __packed;
211 
213  /* NVS section - must be first! */
215 
216  /* INI section */
221  struct {
227  struct {
229  u8 padding;
231 } __packed;
232 #endif