Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(15)

Side by Side Diff: chromeos/drivers/ath6kl/include/AR6002/hw4.0/hw/gpio_athr_wlan_reg.h

Issue 646055: Atheros AR600x driver + build glue (Closed)
Patch Set: Created 10 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // ------------------------------------------------------------------
2 // Copyright (c) 2004-2007 Atheros Corporation. All rights reserved.
3 //
4 // This program is free software; you can redistribute it and/or modify
5 // it under the terms of the GNU General Public License version 2 as
6 // published by the Free Software Foundation;
7 //
8 // Software distributed under the License is distributed on an "AS
9 // IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
10 // implied. See the License for the specific language governing
11 // rights and limitations under the License.
12 //
13 //
14 // ------------------------------------------------------------------
15 //===================================================================
16 // Author(s): ="Atheros"
17 //===================================================================
18
19
20 #ifndef _GPIO_ATHR_WLAN_REG_REG_H_
21 #define _GPIO_ATHR_WLAN_REG_REG_H_
22
23 #define WLAN_GPIO_OUT_ADDRESS 0x00000000
24 #define WLAN_GPIO_OUT_OFFSET 0x00000000
25 #define WLAN_GPIO_OUT_DATA_MSB 25
26 #define WLAN_GPIO_OUT_DATA_LSB 0
27 #define WLAN_GPIO_OUT_DATA_MASK 0x03ffffff
28 #define WLAN_GPIO_OUT_DATA_GET(x) (((x) & WLAN_GPIO_OUT_DATA_MASK ) >> WLAN_GPIO_OUT_DATA_LSB)
29 #define WLAN_GPIO_OUT_DATA_SET(x) (((x) << WLAN_GPIO_OUT_DATA_LSB ) & WLAN_GPIO_OUT_DATA_MASK)
30
31 #define WLAN_GPIO_OUT_W1TS_ADDRESS 0x00000004
32 #define WLAN_GPIO_OUT_W1TS_OFFSET 0x00000004
33 #define WLAN_GPIO_OUT_W1TS_DATA_MSB 25
34 #define WLAN_GPIO_OUT_W1TS_DATA_LSB 0
35 #define WLAN_GPIO_OUT_W1TS_DATA_MASK 0x03ffffff
36 #define WLAN_GPIO_OUT_W1TS_DATA_GET(x) (((x) & WLAN_GPIO_OUT_W1TS_DATA _MASK) >> WLAN_GPIO_OUT_W1TS_DATA_LSB)
37 #define WLAN_GPIO_OUT_W1TS_DATA_SET(x) (((x) << WLAN_GPIO_OUT_W1TS_DAT A_LSB) & WLAN_GPIO_OUT_W1TS_DATA_MASK)
38
39 #define WLAN_GPIO_OUT_W1TC_ADDRESS 0x00000008
40 #define WLAN_GPIO_OUT_W1TC_OFFSET 0x00000008
41 #define WLAN_GPIO_OUT_W1TC_DATA_MSB 25
42 #define WLAN_GPIO_OUT_W1TC_DATA_LSB 0
43 #define WLAN_GPIO_OUT_W1TC_DATA_MASK 0x03ffffff
44 #define WLAN_GPIO_OUT_W1TC_DATA_GET(x) (((x) & WLAN_GPIO_OUT_W1TC_DATA _MASK) >> WLAN_GPIO_OUT_W1TC_DATA_LSB)
45 #define WLAN_GPIO_OUT_W1TC_DATA_SET(x) (((x) << WLAN_GPIO_OUT_W1TC_DAT A_LSB) & WLAN_GPIO_OUT_W1TC_DATA_MASK)
46
47 #define WLAN_GPIO_ENABLE_ADDRESS 0x0000000c
48 #define WLAN_GPIO_ENABLE_OFFSET 0x0000000c
49 #define WLAN_GPIO_ENABLE_DATA_MSB 25
50 #define WLAN_GPIO_ENABLE_DATA_LSB 0
51 #define WLAN_GPIO_ENABLE_DATA_MASK 0x03ffffff
52 #define WLAN_GPIO_ENABLE_DATA_GET(x) (((x) & WLAN_GPIO_ENABLE_DATA_M ASK) >> WLAN_GPIO_ENABLE_DATA_LSB)
53 #define WLAN_GPIO_ENABLE_DATA_SET(x) (((x) << WLAN_GPIO_ENABLE_DATA_ LSB) & WLAN_GPIO_ENABLE_DATA_MASK)
54
55 #define WLAN_GPIO_ENABLE_W1TS_ADDRESS 0x00000010
56 #define WLAN_GPIO_ENABLE_W1TS_OFFSET 0x00000010
57 #define WLAN_GPIO_ENABLE_W1TS_DATA_MSB 25
58 #define WLAN_GPIO_ENABLE_W1TS_DATA_LSB 0
59 #define WLAN_GPIO_ENABLE_W1TS_DATA_MASK 0x03ffffff
60 #define WLAN_GPIO_ENABLE_W1TS_DATA_GET(x) (((x) & WLAN_GPIO_ENABLE_W1TS_D ATA_MASK) >> WLAN_GPIO_ENABLE_W1TS_DATA_LSB)
61 #define WLAN_GPIO_ENABLE_W1TS_DATA_SET(x) (((x) << WLAN_GPIO_ENABLE_W1TS_ DATA_LSB) & WLAN_GPIO_ENABLE_W1TS_DATA_MASK)
62
63 #define WLAN_GPIO_ENABLE_W1TC_ADDRESS 0x00000014
64 #define WLAN_GPIO_ENABLE_W1TC_OFFSET 0x00000014
65 #define WLAN_GPIO_ENABLE_W1TC_DATA_MSB 25
66 #define WLAN_GPIO_ENABLE_W1TC_DATA_LSB 0
67 #define WLAN_GPIO_ENABLE_W1TC_DATA_MASK 0x03ffffff
68 #define WLAN_GPIO_ENABLE_W1TC_DATA_GET(x) (((x) & WLAN_GPIO_ENABLE_W1TC_D ATA_MASK) >> WLAN_GPIO_ENABLE_W1TC_DATA_LSB)
69 #define WLAN_GPIO_ENABLE_W1TC_DATA_SET(x) (((x) << WLAN_GPIO_ENABLE_W1TC_ DATA_LSB) & WLAN_GPIO_ENABLE_W1TC_DATA_MASK)
70
71 #define WLAN_GPIO_IN_ADDRESS 0x00000018
72 #define WLAN_GPIO_IN_OFFSET 0x00000018
73 #define WLAN_GPIO_IN_DATA_MSB 25
74 #define WLAN_GPIO_IN_DATA_LSB 0
75 #define WLAN_GPIO_IN_DATA_MASK 0x03ffffff
76 #define WLAN_GPIO_IN_DATA_GET(x) (((x) & WLAN_GPIO_IN_DATA_MASK) >> WLAN_GPIO_IN_DATA_LSB)
77 #define WLAN_GPIO_IN_DATA_SET(x) (((x) << WLAN_GPIO_IN_DATA_LSB) & WLAN_GPIO_IN_DATA_MASK)
78
79 #define WLAN_GPIO_STATUS_ADDRESS 0x0000001c
80 #define WLAN_GPIO_STATUS_OFFSET 0x0000001c
81 #define WLAN_GPIO_STATUS_INTERRUPT_MSB 25
82 #define WLAN_GPIO_STATUS_INTERRUPT_LSB 0
83 #define WLAN_GPIO_STATUS_INTERRUPT_MASK 0x03ffffff
84 #define WLAN_GPIO_STATUS_INTERRUPT_GET(x) (((x) & WLAN_GPIO_STATUS_INTERR UPT_MASK) >> WLAN_GPIO_STATUS_INTERRUPT_LSB)
85 #define WLAN_GPIO_STATUS_INTERRUPT_SET(x) (((x) << WLAN_GPIO_STATUS_INTER RUPT_LSB) & WLAN_GPIO_STATUS_INTERRUPT_MASK)
86
87 #define WLAN_GPIO_STATUS_W1TS_ADDRESS 0x00000020
88 #define WLAN_GPIO_STATUS_W1TS_OFFSET 0x00000020
89 #define WLAN_GPIO_STATUS_W1TS_INTERRUPT_MSB 25
90 #define WLAN_GPIO_STATUS_W1TS_INTERRUPT_LSB 0
91 #define WLAN_GPIO_STATUS_W1TS_INTERRUPT_MASK 0x03ffffff
92 #define WLAN_GPIO_STATUS_W1TS_INTERRUPT_GET(x) (((x) & WLAN_GPIO_STATUS_W1TS_I NTERRUPT_MASK) >> WLAN_GPIO_STATUS_W1TS_INTERRUPT_LSB)
93 #define WLAN_GPIO_STATUS_W1TS_INTERRUPT_SET(x) (((x) << WLAN_GPIO_STATUS_W1TS_ INTERRUPT_LSB) & WLAN_GPIO_STATUS_W1TS_INTERRUPT_MASK)
94
95 #define WLAN_GPIO_STATUS_W1TC_ADDRESS 0x00000024
96 #define WLAN_GPIO_STATUS_W1TC_OFFSET 0x00000024
97 #define WLAN_GPIO_STATUS_W1TC_INTERRUPT_MSB 25
98 #define WLAN_GPIO_STATUS_W1TC_INTERRUPT_LSB 0
99 #define WLAN_GPIO_STATUS_W1TC_INTERRUPT_MASK 0x03ffffff
100 #define WLAN_GPIO_STATUS_W1TC_INTERRUPT_GET(x) (((x) & WLAN_GPIO_STATUS_W1TC_I NTERRUPT_MASK) >> WLAN_GPIO_STATUS_W1TC_INTERRUPT_LSB)
101 #define WLAN_GPIO_STATUS_W1TC_INTERRUPT_SET(x) (((x) << WLAN_GPIO_STATUS_W1TC_ INTERRUPT_LSB) & WLAN_GPIO_STATUS_W1TC_INTERRUPT_MASK)
102
103 #define WLAN_GPIO_PIN0_ADDRESS 0x00000028
104 #define WLAN_GPIO_PIN0_OFFSET 0x00000028
105 #define WLAN_GPIO_PIN0_CONFIG_MSB 13
106 #define WLAN_GPIO_PIN0_CONFIG_LSB 11
107 #define WLAN_GPIO_PIN0_CONFIG_MASK 0x00003800
108 #define WLAN_GPIO_PIN0_CONFIG_GET(x) (((x) & WLAN_GPIO_PIN0_CONFIG_M ASK) >> WLAN_GPIO_PIN0_CONFIG_LSB)
109 #define WLAN_GPIO_PIN0_CONFIG_SET(x) (((x) << WLAN_GPIO_PIN0_CONFIG_ LSB) & WLAN_GPIO_PIN0_CONFIG_MASK)
110 #define WLAN_GPIO_PIN0_WAKEUP_ENABLE_MSB 10
111 #define WLAN_GPIO_PIN0_WAKEUP_ENABLE_LSB 10
112 #define WLAN_GPIO_PIN0_WAKEUP_ENABLE_MASK 0x00000400
113 #define WLAN_GPIO_PIN0_WAKEUP_ENABLE_GET(x) (((x) & WLAN_GPIO_PIN0_WAKEUP_E NABLE_MASK) >> WLAN_GPIO_PIN0_WAKEUP_ENABLE_LSB)
114 #define WLAN_GPIO_PIN0_WAKEUP_ENABLE_SET(x) (((x) << WLAN_GPIO_PIN0_WAKEUP_ ENABLE_LSB) & WLAN_GPIO_PIN0_WAKEUP_ENABLE_MASK)
115 #define WLAN_GPIO_PIN0_INT_TYPE_MSB 9
116 #define WLAN_GPIO_PIN0_INT_TYPE_LSB 7
117 #define WLAN_GPIO_PIN0_INT_TYPE_MASK 0x00000380
118 #define WLAN_GPIO_PIN0_INT_TYPE_GET(x) (((x) & WLAN_GPIO_PIN0_INT_TYPE _MASK) >> WLAN_GPIO_PIN0_INT_TYPE_LSB)
119 #define WLAN_GPIO_PIN0_INT_TYPE_SET(x) (((x) << WLAN_GPIO_PIN0_INT_TYP E_LSB) & WLAN_GPIO_PIN0_INT_TYPE_MASK)
120 #define WLAN_GPIO_PIN0_PAD_PULL_MSB 6
121 #define WLAN_GPIO_PIN0_PAD_PULL_LSB 5
122 #define WLAN_GPIO_PIN0_PAD_PULL_MASK 0x00000060
123 #define WLAN_GPIO_PIN0_PAD_PULL_GET(x) (((x) & WLAN_GPIO_PIN0_PAD_PULL _MASK) >> WLAN_GPIO_PIN0_PAD_PULL_LSB)
124 #define WLAN_GPIO_PIN0_PAD_PULL_SET(x) (((x) << WLAN_GPIO_PIN0_PAD_PUL L_LSB) & WLAN_GPIO_PIN0_PAD_PULL_MASK)
125 #define WLAN_GPIO_PIN0_PAD_STRENGTH_MSB 4
126 #define WLAN_GPIO_PIN0_PAD_STRENGTH_LSB 3
127 #define WLAN_GPIO_PIN0_PAD_STRENGTH_MASK 0x00000018
128 #define WLAN_GPIO_PIN0_PAD_STRENGTH_GET(x) (((x) & WLAN_GPIO_PIN0_PAD_STRE NGTH_MASK) >> WLAN_GPIO_PIN0_PAD_STRENGTH_LSB)
129 #define WLAN_GPIO_PIN0_PAD_STRENGTH_SET(x) (((x) << WLAN_GPIO_PIN0_PAD_STR ENGTH_LSB) & WLAN_GPIO_PIN0_PAD_STRENGTH_MASK)
130 #define WLAN_GPIO_PIN0_PAD_DRIVER_MSB 2
131 #define WLAN_GPIO_PIN0_PAD_DRIVER_LSB 2
132 #define WLAN_GPIO_PIN0_PAD_DRIVER_MASK 0x00000004
133 #define WLAN_GPIO_PIN0_PAD_DRIVER_GET(x) (((x) & WLAN_GPIO_PIN0_PAD_DRIV ER_MASK) >> WLAN_GPIO_PIN0_PAD_DRIVER_LSB)
134 #define WLAN_GPIO_PIN0_PAD_DRIVER_SET(x) (((x) << WLAN_GPIO_PIN0_PAD_DRI VER_LSB) & WLAN_GPIO_PIN0_PAD_DRIVER_MASK)
135 #define WLAN_GPIO_PIN0_SOURCE_MSB 0
136 #define WLAN_GPIO_PIN0_SOURCE_LSB 0
137 #define WLAN_GPIO_PIN0_SOURCE_MASK 0x00000001
138 #define WLAN_GPIO_PIN0_SOURCE_GET(x) (((x) & WLAN_GPIO_PIN0_SOURCE_M ASK) >> WLAN_GPIO_PIN0_SOURCE_LSB)
139 #define WLAN_GPIO_PIN0_SOURCE_SET(x) (((x) << WLAN_GPIO_PIN0_SOURCE_ LSB) & WLAN_GPIO_PIN0_SOURCE_MASK)
140
141 #define WLAN_GPIO_PIN1_ADDRESS 0x0000002c
142 #define WLAN_GPIO_PIN1_OFFSET 0x0000002c
143 #define WLAN_GPIO_PIN1_CONFIG_MSB 13
144 #define WLAN_GPIO_PIN1_CONFIG_LSB 11
145 #define WLAN_GPIO_PIN1_CONFIG_MASK 0x00003800
146 #define WLAN_GPIO_PIN1_CONFIG_GET(x) (((x) & WLAN_GPIO_PIN1_CONFIG_M ASK) >> WLAN_GPIO_PIN1_CONFIG_LSB)
147 #define WLAN_GPIO_PIN1_CONFIG_SET(x) (((x) << WLAN_GPIO_PIN1_CONFIG_ LSB) & WLAN_GPIO_PIN1_CONFIG_MASK)
148 #define WLAN_GPIO_PIN1_WAKEUP_ENABLE_MSB 10
149 #define WLAN_GPIO_PIN1_WAKEUP_ENABLE_LSB 10
150 #define WLAN_GPIO_PIN1_WAKEUP_ENABLE_MASK 0x00000400
151 #define WLAN_GPIO_PIN1_WAKEUP_ENABLE_GET(x) (((x) & WLAN_GPIO_PIN1_WAKEUP_E NABLE_MASK) >> WLAN_GPIO_PIN1_WAKEUP_ENABLE_LSB)
152 #define WLAN_GPIO_PIN1_WAKEUP_ENABLE_SET(x) (((x) << WLAN_GPIO_PIN1_WAKEUP_ ENABLE_LSB) & WLAN_GPIO_PIN1_WAKEUP_ENABLE_MASK)
153 #define WLAN_GPIO_PIN1_INT_TYPE_MSB 9
154 #define WLAN_GPIO_PIN1_INT_TYPE_LSB 7
155 #define WLAN_GPIO_PIN1_INT_TYPE_MASK 0x00000380
156 #define WLAN_GPIO_PIN1_INT_TYPE_GET(x) (((x) & WLAN_GPIO_PIN1_INT_TYPE _MASK) >> WLAN_GPIO_PIN1_INT_TYPE_LSB)
157 #define WLAN_GPIO_PIN1_INT_TYPE_SET(x) (((x) << WLAN_GPIO_PIN1_INT_TYP E_LSB) & WLAN_GPIO_PIN1_INT_TYPE_MASK)
158 #define WLAN_GPIO_PIN1_PAD_PULL_MSB 6
159 #define WLAN_GPIO_PIN1_PAD_PULL_LSB 5
160 #define WLAN_GPIO_PIN1_PAD_PULL_MASK 0x00000060
161 #define WLAN_GPIO_PIN1_PAD_PULL_GET(x) (((x) & WLAN_GPIO_PIN1_PAD_PULL _MASK) >> WLAN_GPIO_PIN1_PAD_PULL_LSB)
162 #define WLAN_GPIO_PIN1_PAD_PULL_SET(x) (((x) << WLAN_GPIO_PIN1_PAD_PUL L_LSB) & WLAN_GPIO_PIN1_PAD_PULL_MASK)
163 #define WLAN_GPIO_PIN1_PAD_STRENGTH_MSB 4
164 #define WLAN_GPIO_PIN1_PAD_STRENGTH_LSB 3
165 #define WLAN_GPIO_PIN1_PAD_STRENGTH_MASK 0x00000018
166 #define WLAN_GPIO_PIN1_PAD_STRENGTH_GET(x) (((x) & WLAN_GPIO_PIN1_PAD_STRE NGTH_MASK) >> WLAN_GPIO_PIN1_PAD_STRENGTH_LSB)
167 #define WLAN_GPIO_PIN1_PAD_STRENGTH_SET(x) (((x) << WLAN_GPIO_PIN1_PAD_STR ENGTH_LSB) & WLAN_GPIO_PIN1_PAD_STRENGTH_MASK)
168 #define WLAN_GPIO_PIN1_PAD_DRIVER_MSB 2
169 #define WLAN_GPIO_PIN1_PAD_DRIVER_LSB 2
170 #define WLAN_GPIO_PIN1_PAD_DRIVER_MASK 0x00000004
171 #define WLAN_GPIO_PIN1_PAD_DRIVER_GET(x) (((x) & WLAN_GPIO_PIN1_PAD_DRIV ER_MASK) >> WLAN_GPIO_PIN1_PAD_DRIVER_LSB)
172 #define WLAN_GPIO_PIN1_PAD_DRIVER_SET(x) (((x) << WLAN_GPIO_PIN1_PAD_DRI VER_LSB) & WLAN_GPIO_PIN1_PAD_DRIVER_MASK)
173 #define WLAN_GPIO_PIN1_SOURCE_MSB 0
174 #define WLAN_GPIO_PIN1_SOURCE_LSB 0
175 #define WLAN_GPIO_PIN1_SOURCE_MASK 0x00000001
176 #define WLAN_GPIO_PIN1_SOURCE_GET(x) (((x) & WLAN_GPIO_PIN1_SOURCE_M ASK) >> WLAN_GPIO_PIN1_SOURCE_LSB)
177 #define WLAN_GPIO_PIN1_SOURCE_SET(x) (((x) << WLAN_GPIO_PIN1_SOURCE_ LSB) & WLAN_GPIO_PIN1_SOURCE_MASK)
178
179 #define WLAN_GPIO_PIN2_ADDRESS 0x00000030
180 #define WLAN_GPIO_PIN2_OFFSET 0x00000030
181 #define WLAN_GPIO_PIN2_CONFIG_MSB 13
182 #define WLAN_GPIO_PIN2_CONFIG_LSB 11
183 #define WLAN_GPIO_PIN2_CONFIG_MASK 0x00003800
184 #define WLAN_GPIO_PIN2_CONFIG_GET(x) (((x) & WLAN_GPIO_PIN2_CONFIG_M ASK) >> WLAN_GPIO_PIN2_CONFIG_LSB)
185 #define WLAN_GPIO_PIN2_CONFIG_SET(x) (((x) << WLAN_GPIO_PIN2_CONFIG_ LSB) & WLAN_GPIO_PIN2_CONFIG_MASK)
186 #define WLAN_GPIO_PIN2_WAKEUP_ENABLE_MSB 10
187 #define WLAN_GPIO_PIN2_WAKEUP_ENABLE_LSB 10
188 #define WLAN_GPIO_PIN2_WAKEUP_ENABLE_MASK 0x00000400
189 #define WLAN_GPIO_PIN2_WAKEUP_ENABLE_GET(x) (((x) & WLAN_GPIO_PIN2_WAKEUP_E NABLE_MASK) >> WLAN_GPIO_PIN2_WAKEUP_ENABLE_LSB)
190 #define WLAN_GPIO_PIN2_WAKEUP_ENABLE_SET(x) (((x) << WLAN_GPIO_PIN2_WAKEUP_ ENABLE_LSB) & WLAN_GPIO_PIN2_WAKEUP_ENABLE_MASK)
191 #define WLAN_GPIO_PIN2_INT_TYPE_MSB 9
192 #define WLAN_GPIO_PIN2_INT_TYPE_LSB 7
193 #define WLAN_GPIO_PIN2_INT_TYPE_MASK 0x00000380
194 #define WLAN_GPIO_PIN2_INT_TYPE_GET(x) (((x) & WLAN_GPIO_PIN2_INT_TYPE _MASK) >> WLAN_GPIO_PIN2_INT_TYPE_LSB)
195 #define WLAN_GPIO_PIN2_INT_TYPE_SET(x) (((x) << WLAN_GPIO_PIN2_INT_TYP E_LSB) & WLAN_GPIO_PIN2_INT_TYPE_MASK)
196 #define WLAN_GPIO_PIN2_PAD_PULL_MSB 6
197 #define WLAN_GPIO_PIN2_PAD_PULL_LSB 5
198 #define WLAN_GPIO_PIN2_PAD_PULL_MASK 0x00000060
199 #define WLAN_GPIO_PIN2_PAD_PULL_GET(x) (((x) & WLAN_GPIO_PIN2_PAD_PULL _MASK) >> WLAN_GPIO_PIN2_PAD_PULL_LSB)
200 #define WLAN_GPIO_PIN2_PAD_PULL_SET(x) (((x) << WLAN_GPIO_PIN2_PAD_PUL L_LSB) & WLAN_GPIO_PIN2_PAD_PULL_MASK)
201 #define WLAN_GPIO_PIN2_PAD_STRENGTH_MSB 4
202 #define WLAN_GPIO_PIN2_PAD_STRENGTH_LSB 3
203 #define WLAN_GPIO_PIN2_PAD_STRENGTH_MASK 0x00000018
204 #define WLAN_GPIO_PIN2_PAD_STRENGTH_GET(x) (((x) & WLAN_GPIO_PIN2_PAD_STRE NGTH_MASK) >> WLAN_GPIO_PIN2_PAD_STRENGTH_LSB)
205 #define WLAN_GPIO_PIN2_PAD_STRENGTH_SET(x) (((x) << WLAN_GPIO_PIN2_PAD_STR ENGTH_LSB) & WLAN_GPIO_PIN2_PAD_STRENGTH_MASK)
206 #define WLAN_GPIO_PIN2_PAD_DRIVER_MSB 2
207 #define WLAN_GPIO_PIN2_PAD_DRIVER_LSB 2
208 #define WLAN_GPIO_PIN2_PAD_DRIVER_MASK 0x00000004
209 #define WLAN_GPIO_PIN2_PAD_DRIVER_GET(x) (((x) & WLAN_GPIO_PIN2_PAD_DRIV ER_MASK) >> WLAN_GPIO_PIN2_PAD_DRIVER_LSB)
210 #define WLAN_GPIO_PIN2_PAD_DRIVER_SET(x) (((x) << WLAN_GPIO_PIN2_PAD_DRI VER_LSB) & WLAN_GPIO_PIN2_PAD_DRIVER_MASK)
211 #define WLAN_GPIO_PIN2_SOURCE_MSB 0
212 #define WLAN_GPIO_PIN2_SOURCE_LSB 0
213 #define WLAN_GPIO_PIN2_SOURCE_MASK 0x00000001
214 #define WLAN_GPIO_PIN2_SOURCE_GET(x) (((x) & WLAN_GPIO_PIN2_SOURCE_M ASK) >> WLAN_GPIO_PIN2_SOURCE_LSB)
215 #define WLAN_GPIO_PIN2_SOURCE_SET(x) (((x) << WLAN_GPIO_PIN2_SOURCE_ LSB) & WLAN_GPIO_PIN2_SOURCE_MASK)
216
217 #define WLAN_GPIO_PIN3_ADDRESS 0x00000034
218 #define WLAN_GPIO_PIN3_OFFSET 0x00000034
219 #define WLAN_GPIO_PIN3_CONFIG_MSB 13
220 #define WLAN_GPIO_PIN3_CONFIG_LSB 11
221 #define WLAN_GPIO_PIN3_CONFIG_MASK 0x00003800
222 #define WLAN_GPIO_PIN3_CONFIG_GET(x) (((x) & WLAN_GPIO_PIN3_CONFIG_M ASK) >> WLAN_GPIO_PIN3_CONFIG_LSB)
223 #define WLAN_GPIO_PIN3_CONFIG_SET(x) (((x) << WLAN_GPIO_PIN3_CONFIG_ LSB) & WLAN_GPIO_PIN3_CONFIG_MASK)
224 #define WLAN_GPIO_PIN3_WAKEUP_ENABLE_MSB 10
225 #define WLAN_GPIO_PIN3_WAKEUP_ENABLE_LSB 10
226 #define WLAN_GPIO_PIN3_WAKEUP_ENABLE_MASK 0x00000400
227 #define WLAN_GPIO_PIN3_WAKEUP_ENABLE_GET(x) (((x) & WLAN_GPIO_PIN3_WAKEUP_E NABLE_MASK) >> WLAN_GPIO_PIN3_WAKEUP_ENABLE_LSB)
228 #define WLAN_GPIO_PIN3_WAKEUP_ENABLE_SET(x) (((x) << WLAN_GPIO_PIN3_WAKEUP_ ENABLE_LSB) & WLAN_GPIO_PIN3_WAKEUP_ENABLE_MASK)
229 #define WLAN_GPIO_PIN3_INT_TYPE_MSB 9
230 #define WLAN_GPIO_PIN3_INT_TYPE_LSB 7
231 #define WLAN_GPIO_PIN3_INT_TYPE_MASK 0x00000380
232 #define WLAN_GPIO_PIN3_INT_TYPE_GET(x) (((x) & WLAN_GPIO_PIN3_INT_TYPE _MASK) >> WLAN_GPIO_PIN3_INT_TYPE_LSB)
233 #define WLAN_GPIO_PIN3_INT_TYPE_SET(x) (((x) << WLAN_GPIO_PIN3_INT_TYP E_LSB) & WLAN_GPIO_PIN3_INT_TYPE_MASK)
234 #define WLAN_GPIO_PIN3_PAD_PULL_MSB 6
235 #define WLAN_GPIO_PIN3_PAD_PULL_LSB 5
236 #define WLAN_GPIO_PIN3_PAD_PULL_MASK 0x00000060
237 #define WLAN_GPIO_PIN3_PAD_PULL_GET(x) (((x) & WLAN_GPIO_PIN3_PAD_PULL _MASK) >> WLAN_GPIO_PIN3_PAD_PULL_LSB)
238 #define WLAN_GPIO_PIN3_PAD_PULL_SET(x) (((x) << WLAN_GPIO_PIN3_PAD_PUL L_LSB) & WLAN_GPIO_PIN3_PAD_PULL_MASK)
239 #define WLAN_GPIO_PIN3_PAD_STRENGTH_MSB 4
240 #define WLAN_GPIO_PIN3_PAD_STRENGTH_LSB 3
241 #define WLAN_GPIO_PIN3_PAD_STRENGTH_MASK 0x00000018
242 #define WLAN_GPIO_PIN3_PAD_STRENGTH_GET(x) (((x) & WLAN_GPIO_PIN3_PAD_STRE NGTH_MASK) >> WLAN_GPIO_PIN3_PAD_STRENGTH_LSB)
243 #define WLAN_GPIO_PIN3_PAD_STRENGTH_SET(x) (((x) << WLAN_GPIO_PIN3_PAD_STR ENGTH_LSB) & WLAN_GPIO_PIN3_PAD_STRENGTH_MASK)
244 #define WLAN_GPIO_PIN3_PAD_DRIVER_MSB 2
245 #define WLAN_GPIO_PIN3_PAD_DRIVER_LSB 2
246 #define WLAN_GPIO_PIN3_PAD_DRIVER_MASK 0x00000004
247 #define WLAN_GPIO_PIN3_PAD_DRIVER_GET(x) (((x) & WLAN_GPIO_PIN3_PAD_DRIV ER_MASK) >> WLAN_GPIO_PIN3_PAD_DRIVER_LSB)
248 #define WLAN_GPIO_PIN3_PAD_DRIVER_SET(x) (((x) << WLAN_GPIO_PIN3_PAD_DRI VER_LSB) & WLAN_GPIO_PIN3_PAD_DRIVER_MASK)
249 #define WLAN_GPIO_PIN3_SOURCE_MSB 0
250 #define WLAN_GPIO_PIN3_SOURCE_LSB 0
251 #define WLAN_GPIO_PIN3_SOURCE_MASK 0x00000001
252 #define WLAN_GPIO_PIN3_SOURCE_GET(x) (((x) & WLAN_GPIO_PIN3_SOURCE_M ASK) >> WLAN_GPIO_PIN3_SOURCE_LSB)
253 #define WLAN_GPIO_PIN3_SOURCE_SET(x) (((x) << WLAN_GPIO_PIN3_SOURCE_ LSB) & WLAN_GPIO_PIN3_SOURCE_MASK)
254
255 #define WLAN_GPIO_PIN4_ADDRESS 0x00000038
256 #define WLAN_GPIO_PIN4_OFFSET 0x00000038
257 #define WLAN_GPIO_PIN4_CONFIG_MSB 13
258 #define WLAN_GPIO_PIN4_CONFIG_LSB 11
259 #define WLAN_GPIO_PIN4_CONFIG_MASK 0x00003800
260 #define WLAN_GPIO_PIN4_CONFIG_GET(x) (((x) & WLAN_GPIO_PIN4_CONFIG_M ASK) >> WLAN_GPIO_PIN4_CONFIG_LSB)
261 #define WLAN_GPIO_PIN4_CONFIG_SET(x) (((x) << WLAN_GPIO_PIN4_CONFIG_ LSB) & WLAN_GPIO_PIN4_CONFIG_MASK)
262 #define WLAN_GPIO_PIN4_WAKEUP_ENABLE_MSB 10
263 #define WLAN_GPIO_PIN4_WAKEUP_ENABLE_LSB 10
264 #define WLAN_GPIO_PIN4_WAKEUP_ENABLE_MASK 0x00000400
265 #define WLAN_GPIO_PIN4_WAKEUP_ENABLE_GET(x) (((x) & WLAN_GPIO_PIN4_WAKEUP_E NABLE_MASK) >> WLAN_GPIO_PIN4_WAKEUP_ENABLE_LSB)
266 #define WLAN_GPIO_PIN4_WAKEUP_ENABLE_SET(x) (((x) << WLAN_GPIO_PIN4_WAKEUP_ ENABLE_LSB) & WLAN_GPIO_PIN4_WAKEUP_ENABLE_MASK)
267 #define WLAN_GPIO_PIN4_INT_TYPE_MSB 9
268 #define WLAN_GPIO_PIN4_INT_TYPE_LSB 7
269 #define WLAN_GPIO_PIN4_INT_TYPE_MASK 0x00000380
270 #define WLAN_GPIO_PIN4_INT_TYPE_GET(x) (((x) & WLAN_GPIO_PIN4_INT_TYPE _MASK) >> WLAN_GPIO_PIN4_INT_TYPE_LSB)
271 #define WLAN_GPIO_PIN4_INT_TYPE_SET(x) (((x) << WLAN_GPIO_PIN4_INT_TYP E_LSB) & WLAN_GPIO_PIN4_INT_TYPE_MASK)
272 #define WLAN_GPIO_PIN4_PAD_PULL_MSB 6
273 #define WLAN_GPIO_PIN4_PAD_PULL_LSB 5
274 #define WLAN_GPIO_PIN4_PAD_PULL_MASK 0x00000060
275 #define WLAN_GPIO_PIN4_PAD_PULL_GET(x) (((x) & WLAN_GPIO_PIN4_PAD_PULL _MASK) >> WLAN_GPIO_PIN4_PAD_PULL_LSB)
276 #define WLAN_GPIO_PIN4_PAD_PULL_SET(x) (((x) << WLAN_GPIO_PIN4_PAD_PUL L_LSB) & WLAN_GPIO_PIN4_PAD_PULL_MASK)
277 #define WLAN_GPIO_PIN4_PAD_STRENGTH_MSB 4
278 #define WLAN_GPIO_PIN4_PAD_STRENGTH_LSB 3
279 #define WLAN_GPIO_PIN4_PAD_STRENGTH_MASK 0x00000018
280 #define WLAN_GPIO_PIN4_PAD_STRENGTH_GET(x) (((x) & WLAN_GPIO_PIN4_PAD_STRE NGTH_MASK) >> WLAN_GPIO_PIN4_PAD_STRENGTH_LSB)
281 #define WLAN_GPIO_PIN4_PAD_STRENGTH_SET(x) (((x) << WLAN_GPIO_PIN4_PAD_STR ENGTH_LSB) & WLAN_GPIO_PIN4_PAD_STRENGTH_MASK)
282 #define WLAN_GPIO_PIN4_PAD_DRIVER_MSB 2
283 #define WLAN_GPIO_PIN4_PAD_DRIVER_LSB 2
284 #define WLAN_GPIO_PIN4_PAD_DRIVER_MASK 0x00000004
285 #define WLAN_GPIO_PIN4_PAD_DRIVER_GET(x) (((x) & WLAN_GPIO_PIN4_PAD_DRIV ER_MASK) >> WLAN_GPIO_PIN4_PAD_DRIVER_LSB)
286 #define WLAN_GPIO_PIN4_PAD_DRIVER_SET(x) (((x) << WLAN_GPIO_PIN4_PAD_DRI VER_LSB) & WLAN_GPIO_PIN4_PAD_DRIVER_MASK)
287 #define WLAN_GPIO_PIN4_SOURCE_MSB 0
288 #define WLAN_GPIO_PIN4_SOURCE_LSB 0
289 #define WLAN_GPIO_PIN4_SOURCE_MASK 0x00000001
290 #define WLAN_GPIO_PIN4_SOURCE_GET(x) (((x) & WLAN_GPIO_PIN4_SOURCE_M ASK) >> WLAN_GPIO_PIN4_SOURCE_LSB)
291 #define WLAN_GPIO_PIN4_SOURCE_SET(x) (((x) << WLAN_GPIO_PIN4_SOURCE_ LSB) & WLAN_GPIO_PIN4_SOURCE_MASK)
292
293 #define WLAN_GPIO_PIN5_ADDRESS 0x0000003c
294 #define WLAN_GPIO_PIN5_OFFSET 0x0000003c
295 #define WLAN_GPIO_PIN5_CONFIG_MSB 13
296 #define WLAN_GPIO_PIN5_CONFIG_LSB 11
297 #define WLAN_GPIO_PIN5_CONFIG_MASK 0x00003800
298 #define WLAN_GPIO_PIN5_CONFIG_GET(x) (((x) & WLAN_GPIO_PIN5_CONFIG_M ASK) >> WLAN_GPIO_PIN5_CONFIG_LSB)
299 #define WLAN_GPIO_PIN5_CONFIG_SET(x) (((x) << WLAN_GPIO_PIN5_CONFIG_ LSB) & WLAN_GPIO_PIN5_CONFIG_MASK)
300 #define WLAN_GPIO_PIN5_WAKEUP_ENABLE_MSB 10
301 #define WLAN_GPIO_PIN5_WAKEUP_ENABLE_LSB 10
302 #define WLAN_GPIO_PIN5_WAKEUP_ENABLE_MASK 0x00000400
303 #define WLAN_GPIO_PIN5_WAKEUP_ENABLE_GET(x) (((x) & WLAN_GPIO_PIN5_WAKEUP_E NABLE_MASK) >> WLAN_GPIO_PIN5_WAKEUP_ENABLE_LSB)
304 #define WLAN_GPIO_PIN5_WAKEUP_ENABLE_SET(x) (((x) << WLAN_GPIO_PIN5_WAKEUP_ ENABLE_LSB) & WLAN_GPIO_PIN5_WAKEUP_ENABLE_MASK)
305 #define WLAN_GPIO_PIN5_INT_TYPE_MSB 9
306 #define WLAN_GPIO_PIN5_INT_TYPE_LSB 7
307 #define WLAN_GPIO_PIN5_INT_TYPE_MASK 0x00000380
308 #define WLAN_GPIO_PIN5_INT_TYPE_GET(x) (((x) & WLAN_GPIO_PIN5_INT_TYPE _MASK) >> WLAN_GPIO_PIN5_INT_TYPE_LSB)
309 #define WLAN_GPIO_PIN5_INT_TYPE_SET(x) (((x) << WLAN_GPIO_PIN5_INT_TYP E_LSB) & WLAN_GPIO_PIN5_INT_TYPE_MASK)
310 #define WLAN_GPIO_PIN5_PAD_PULL_MSB 6
311 #define WLAN_GPIO_PIN5_PAD_PULL_LSB 5
312 #define WLAN_GPIO_PIN5_PAD_PULL_MASK 0x00000060
313 #define WLAN_GPIO_PIN5_PAD_PULL_GET(x) (((x) & WLAN_GPIO_PIN5_PAD_PULL _MASK) >> WLAN_GPIO_PIN5_PAD_PULL_LSB)
314 #define WLAN_GPIO_PIN5_PAD_PULL_SET(x) (((x) << WLAN_GPIO_PIN5_PAD_PUL L_LSB) & WLAN_GPIO_PIN5_PAD_PULL_MASK)
315 #define WLAN_GPIO_PIN5_PAD_STRENGTH_MSB 4
316 #define WLAN_GPIO_PIN5_PAD_STRENGTH_LSB 3
317 #define WLAN_GPIO_PIN5_PAD_STRENGTH_MASK 0x00000018
318 #define WLAN_GPIO_PIN5_PAD_STRENGTH_GET(x) (((x) & WLAN_GPIO_PIN5_PAD_STRE NGTH_MASK) >> WLAN_GPIO_PIN5_PAD_STRENGTH_LSB)
319 #define WLAN_GPIO_PIN5_PAD_STRENGTH_SET(x) (((x) << WLAN_GPIO_PIN5_PAD_STR ENGTH_LSB) & WLAN_GPIO_PIN5_PAD_STRENGTH_MASK)
320 #define WLAN_GPIO_PIN5_PAD_DRIVER_MSB 2
321 #define WLAN_GPIO_PIN5_PAD_DRIVER_LSB 2
322 #define WLAN_GPIO_PIN5_PAD_DRIVER_MASK 0x00000004
323 #define WLAN_GPIO_PIN5_PAD_DRIVER_GET(x) (((x) & WLAN_GPIO_PIN5_PAD_DRIV ER_MASK) >> WLAN_GPIO_PIN5_PAD_DRIVER_LSB)
324 #define WLAN_GPIO_PIN5_PAD_DRIVER_SET(x) (((x) << WLAN_GPIO_PIN5_PAD_DRI VER_LSB) & WLAN_GPIO_PIN5_PAD_DRIVER_MASK)
325 #define WLAN_GPIO_PIN5_SOURCE_MSB 0
326 #define WLAN_GPIO_PIN5_SOURCE_LSB 0
327 #define WLAN_GPIO_PIN5_SOURCE_MASK 0x00000001
328 #define WLAN_GPIO_PIN5_SOURCE_GET(x) (((x) & WLAN_GPIO_PIN5_SOURCE_M ASK) >> WLAN_GPIO_PIN5_SOURCE_LSB)
329 #define WLAN_GPIO_PIN5_SOURCE_SET(x) (((x) << WLAN_GPIO_PIN5_SOURCE_ LSB) & WLAN_GPIO_PIN5_SOURCE_MASK)
330
331 #define WLAN_GPIO_PIN6_ADDRESS 0x00000040
332 #define WLAN_GPIO_PIN6_OFFSET 0x00000040
333 #define WLAN_GPIO_PIN6_CONFIG_MSB 13
334 #define WLAN_GPIO_PIN6_CONFIG_LSB 11
335 #define WLAN_GPIO_PIN6_CONFIG_MASK 0x00003800
336 #define WLAN_GPIO_PIN6_CONFIG_GET(x) (((x) & WLAN_GPIO_PIN6_CONFIG_M ASK) >> WLAN_GPIO_PIN6_CONFIG_LSB)
337 #define WLAN_GPIO_PIN6_CONFIG_SET(x) (((x) << WLAN_GPIO_PIN6_CONFIG_ LSB) & WLAN_GPIO_PIN6_CONFIG_MASK)
338 #define WLAN_GPIO_PIN6_WAKEUP_ENABLE_MSB 10
339 #define WLAN_GPIO_PIN6_WAKEUP_ENABLE_LSB 10
340 #define WLAN_GPIO_PIN6_WAKEUP_ENABLE_MASK 0x00000400
341 #define WLAN_GPIO_PIN6_WAKEUP_ENABLE_GET(x) (((x) & WLAN_GPIO_PIN6_WAKEUP_E NABLE_MASK) >> WLAN_GPIO_PIN6_WAKEUP_ENABLE_LSB)
342 #define WLAN_GPIO_PIN6_WAKEUP_ENABLE_SET(x) (((x) << WLAN_GPIO_PIN6_WAKEUP_ ENABLE_LSB) & WLAN_GPIO_PIN6_WAKEUP_ENABLE_MASK)
343 #define WLAN_GPIO_PIN6_INT_TYPE_MSB 9
344 #define WLAN_GPIO_PIN6_INT_TYPE_LSB 7
345 #define WLAN_GPIO_PIN6_INT_TYPE_MASK 0x00000380
346 #define WLAN_GPIO_PIN6_INT_TYPE_GET(x) (((x) & WLAN_GPIO_PIN6_INT_TYPE _MASK) >> WLAN_GPIO_PIN6_INT_TYPE_LSB)
347 #define WLAN_GPIO_PIN6_INT_TYPE_SET(x) (((x) << WLAN_GPIO_PIN6_INT_TYP E_LSB) & WLAN_GPIO_PIN6_INT_TYPE_MASK)
348 #define WLAN_GPIO_PIN6_PAD_PULL_MSB 6
349 #define WLAN_GPIO_PIN6_PAD_PULL_LSB 5
350 #define WLAN_GPIO_PIN6_PAD_PULL_MASK 0x00000060
351 #define WLAN_GPIO_PIN6_PAD_PULL_GET(x) (((x) & WLAN_GPIO_PIN6_PAD_PULL _MASK) >> WLAN_GPIO_PIN6_PAD_PULL_LSB)
352 #define WLAN_GPIO_PIN6_PAD_PULL_SET(x) (((x) << WLAN_GPIO_PIN6_PAD_PUL L_LSB) & WLAN_GPIO_PIN6_PAD_PULL_MASK)
353 #define WLAN_GPIO_PIN6_PAD_STRENGTH_MSB 4
354 #define WLAN_GPIO_PIN6_PAD_STRENGTH_LSB 3
355 #define WLAN_GPIO_PIN6_PAD_STRENGTH_MASK 0x00000018
356 #define WLAN_GPIO_PIN6_PAD_STRENGTH_GET(x) (((x) & WLAN_GPIO_PIN6_PAD_STRE NGTH_MASK) >> WLAN_GPIO_PIN6_PAD_STRENGTH_LSB)
357 #define WLAN_GPIO_PIN6_PAD_STRENGTH_SET(x) (((x) << WLAN_GPIO_PIN6_PAD_STR ENGTH_LSB) & WLAN_GPIO_PIN6_PAD_STRENGTH_MASK)
358 #define WLAN_GPIO_PIN6_PAD_DRIVER_MSB 2
359 #define WLAN_GPIO_PIN6_PAD_DRIVER_LSB 2
360 #define WLAN_GPIO_PIN6_PAD_DRIVER_MASK 0x00000004
361 #define WLAN_GPIO_PIN6_PAD_DRIVER_GET(x) (((x) & WLAN_GPIO_PIN6_PAD_DRIV ER_MASK) >> WLAN_GPIO_PIN6_PAD_DRIVER_LSB)
362 #define WLAN_GPIO_PIN6_PAD_DRIVER_SET(x) (((x) << WLAN_GPIO_PIN6_PAD_DRI VER_LSB) & WLAN_GPIO_PIN6_PAD_DRIVER_MASK)
363 #define WLAN_GPIO_PIN6_SOURCE_MSB 0
364 #define WLAN_GPIO_PIN6_SOURCE_LSB 0
365 #define WLAN_GPIO_PIN6_SOURCE_MASK 0x00000001
366 #define WLAN_GPIO_PIN6_SOURCE_GET(x) (((x) & WLAN_GPIO_PIN6_SOURCE_M ASK) >> WLAN_GPIO_PIN6_SOURCE_LSB)
367 #define WLAN_GPIO_PIN6_SOURCE_SET(x) (((x) << WLAN_GPIO_PIN6_SOURCE_ LSB) & WLAN_GPIO_PIN6_SOURCE_MASK)
368
369 #define WLAN_GPIO_PIN7_ADDRESS 0x00000044
370 #define WLAN_GPIO_PIN7_OFFSET 0x00000044
371 #define WLAN_GPIO_PIN7_CONFIG_MSB 13
372 #define WLAN_GPIO_PIN7_CONFIG_LSB 11
373 #define WLAN_GPIO_PIN7_CONFIG_MASK 0x00003800
374 #define WLAN_GPIO_PIN7_CONFIG_GET(x) (((x) & WLAN_GPIO_PIN7_CONFIG_M ASK) >> WLAN_GPIO_PIN7_CONFIG_LSB)
375 #define WLAN_GPIO_PIN7_CONFIG_SET(x) (((x) << WLAN_GPIO_PIN7_CONFIG_ LSB) & WLAN_GPIO_PIN7_CONFIG_MASK)
376 #define WLAN_GPIO_PIN7_WAKEUP_ENABLE_MSB 10
377 #define WLAN_GPIO_PIN7_WAKEUP_ENABLE_LSB 10
378 #define WLAN_GPIO_PIN7_WAKEUP_ENABLE_MASK 0x00000400
379 #define WLAN_GPIO_PIN7_WAKEUP_ENABLE_GET(x) (((x) & WLAN_GPIO_PIN7_WAKEUP_E NABLE_MASK) >> WLAN_GPIO_PIN7_WAKEUP_ENABLE_LSB)
380 #define WLAN_GPIO_PIN7_WAKEUP_ENABLE_SET(x) (((x) << WLAN_GPIO_PIN7_WAKEUP_ ENABLE_LSB) & WLAN_GPIO_PIN7_WAKEUP_ENABLE_MASK)
381 #define WLAN_GPIO_PIN7_INT_TYPE_MSB 9
382 #define WLAN_GPIO_PIN7_INT_TYPE_LSB 7
383 #define WLAN_GPIO_PIN7_INT_TYPE_MASK 0x00000380
384 #define WLAN_GPIO_PIN7_INT_TYPE_GET(x) (((x) & WLAN_GPIO_PIN7_INT_TYPE _MASK) >> WLAN_GPIO_PIN7_INT_TYPE_LSB)
385 #define WLAN_GPIO_PIN7_INT_TYPE_SET(x) (((x) << WLAN_GPIO_PIN7_INT_TYP E_LSB) & WLAN_GPIO_PIN7_INT_TYPE_MASK)
386 #define WLAN_GPIO_PIN7_PAD_PULL_MSB 6
387 #define WLAN_GPIO_PIN7_PAD_PULL_LSB 5
388 #define WLAN_GPIO_PIN7_PAD_PULL_MASK 0x00000060
389 #define WLAN_GPIO_PIN7_PAD_PULL_GET(x) (((x) & WLAN_GPIO_PIN7_PAD_PULL _MASK) >> WLAN_GPIO_PIN7_PAD_PULL_LSB)
390 #define WLAN_GPIO_PIN7_PAD_PULL_SET(x) (((x) << WLAN_GPIO_PIN7_PAD_PUL L_LSB) & WLAN_GPIO_PIN7_PAD_PULL_MASK)
391 #define WLAN_GPIO_PIN7_PAD_STRENGTH_MSB 4
392 #define WLAN_GPIO_PIN7_PAD_STRENGTH_LSB 3
393 #define WLAN_GPIO_PIN7_PAD_STRENGTH_MASK 0x00000018
394 #define WLAN_GPIO_PIN7_PAD_STRENGTH_GET(x) (((x) & WLAN_GPIO_PIN7_PAD_STRE NGTH_MASK) >> WLAN_GPIO_PIN7_PAD_STRENGTH_LSB)
395 #define WLAN_GPIO_PIN7_PAD_STRENGTH_SET(x) (((x) << WLAN_GPIO_PIN7_PAD_STR ENGTH_LSB) & WLAN_GPIO_PIN7_PAD_STRENGTH_MASK)
396 #define WLAN_GPIO_PIN7_PAD_DRIVER_MSB 2
397 #define WLAN_GPIO_PIN7_PAD_DRIVER_LSB 2
398 #define WLAN_GPIO_PIN7_PAD_DRIVER_MASK 0x00000004
399 #define WLAN_GPIO_PIN7_PAD_DRIVER_GET(x) (((x) & WLAN_GPIO_PIN7_PAD_DRIV ER_MASK) >> WLAN_GPIO_PIN7_PAD_DRIVER_LSB)
400 #define WLAN_GPIO_PIN7_PAD_DRIVER_SET(x) (((x) << WLAN_GPIO_PIN7_PAD_DRI VER_LSB) & WLAN_GPIO_PIN7_PAD_DRIVER_MASK)
401 #define WLAN_GPIO_PIN7_SOURCE_MSB 0
402 #define WLAN_GPIO_PIN7_SOURCE_LSB 0
403 #define WLAN_GPIO_PIN7_SOURCE_MASK 0x00000001
404 #define WLAN_GPIO_PIN7_SOURCE_GET(x) (((x) & WLAN_GPIO_PIN7_SOURCE_M ASK) >> WLAN_GPIO_PIN7_SOURCE_LSB)
405 #define WLAN_GPIO_PIN7_SOURCE_SET(x) (((x) << WLAN_GPIO_PIN7_SOURCE_ LSB) & WLAN_GPIO_PIN7_SOURCE_MASK)
406
407 #define WLAN_GPIO_PIN8_ADDRESS 0x00000048
408 #define WLAN_GPIO_PIN8_OFFSET 0x00000048
409 #define WLAN_GPIO_PIN8_CONFIG_MSB 13
410 #define WLAN_GPIO_PIN8_CONFIG_LSB 11
411 #define WLAN_GPIO_PIN8_CONFIG_MASK 0x00003800
412 #define WLAN_GPIO_PIN8_CONFIG_GET(x) (((x) & WLAN_GPIO_PIN8_CONFIG_M ASK) >> WLAN_GPIO_PIN8_CONFIG_LSB)
413 #define WLAN_GPIO_PIN8_CONFIG_SET(x) (((x) << WLAN_GPIO_PIN8_CONFIG_ LSB) & WLAN_GPIO_PIN8_CONFIG_MASK)
414 #define WLAN_GPIO_PIN8_WAKEUP_ENABLE_MSB 10
415 #define WLAN_GPIO_PIN8_WAKEUP_ENABLE_LSB 10
416 #define WLAN_GPIO_PIN8_WAKEUP_ENABLE_MASK 0x00000400
417 #define WLAN_GPIO_PIN8_WAKEUP_ENABLE_GET(x) (((x) & WLAN_GPIO_PIN8_WAKEUP_E NABLE_MASK) >> WLAN_GPIO_PIN8_WAKEUP_ENABLE_LSB)
418 #define WLAN_GPIO_PIN8_WAKEUP_ENABLE_SET(x) (((x) << WLAN_GPIO_PIN8_WAKEUP_ ENABLE_LSB) & WLAN_GPIO_PIN8_WAKEUP_ENABLE_MASK)
419 #define WLAN_GPIO_PIN8_INT_TYPE_MSB 9
420 #define WLAN_GPIO_PIN8_INT_TYPE_LSB 7
421 #define WLAN_GPIO_PIN8_INT_TYPE_MASK 0x00000380
422 #define WLAN_GPIO_PIN8_INT_TYPE_GET(x) (((x) & WLAN_GPIO_PIN8_INT_TYPE _MASK) >> WLAN_GPIO_PIN8_INT_TYPE_LSB)
423 #define WLAN_GPIO_PIN8_INT_TYPE_SET(x) (((x) << WLAN_GPIO_PIN8_INT_TYP E_LSB) & WLAN_GPIO_PIN8_INT_TYPE_MASK)
424 #define WLAN_GPIO_PIN8_PAD_PULL_MSB 6
425 #define WLAN_GPIO_PIN8_PAD_PULL_LSB 5
426 #define WLAN_GPIO_PIN8_PAD_PULL_MASK 0x00000060
427 #define WLAN_GPIO_PIN8_PAD_PULL_GET(x) (((x) & WLAN_GPIO_PIN8_PAD_PULL _MASK) >> WLAN_GPIO_PIN8_PAD_PULL_LSB)
428 #define WLAN_GPIO_PIN8_PAD_PULL_SET(x) (((x) << WLAN_GPIO_PIN8_PAD_PUL L_LSB) & WLAN_GPIO_PIN8_PAD_PULL_MASK)
429 #define WLAN_GPIO_PIN8_PAD_STRENGTH_MSB 4
430 #define WLAN_GPIO_PIN8_PAD_STRENGTH_LSB 3
431 #define WLAN_GPIO_PIN8_PAD_STRENGTH_MASK 0x00000018
432 #define WLAN_GPIO_PIN8_PAD_STRENGTH_GET(x) (((x) & WLAN_GPIO_PIN8_PAD_STRE NGTH_MASK) >> WLAN_GPIO_PIN8_PAD_STRENGTH_LSB)
433 #define WLAN_GPIO_PIN8_PAD_STRENGTH_SET(x) (((x) << WLAN_GPIO_PIN8_PAD_STR ENGTH_LSB) & WLAN_GPIO_PIN8_PAD_STRENGTH_MASK)
434 #define WLAN_GPIO_PIN8_PAD_DRIVER_MSB 2
435 #define WLAN_GPIO_PIN8_PAD_DRIVER_LSB 2
436 #define WLAN_GPIO_PIN8_PAD_DRIVER_MASK 0x00000004
437 #define WLAN_GPIO_PIN8_PAD_DRIVER_GET(x) (((x) & WLAN_GPIO_PIN8_PAD_DRIV ER_MASK) >> WLAN_GPIO_PIN8_PAD_DRIVER_LSB)
438 #define WLAN_GPIO_PIN8_PAD_DRIVER_SET(x) (((x) << WLAN_GPIO_PIN8_PAD_DRI VER_LSB) & WLAN_GPIO_PIN8_PAD_DRIVER_MASK)
439 #define WLAN_GPIO_PIN8_SOURCE_MSB 0
440 #define WLAN_GPIO_PIN8_SOURCE_LSB 0
441 #define WLAN_GPIO_PIN8_SOURCE_MASK 0x00000001
442 #define WLAN_GPIO_PIN8_SOURCE_GET(x) (((x) & WLAN_GPIO_PIN8_SOURCE_M ASK) >> WLAN_GPIO_PIN8_SOURCE_LSB)
443 #define WLAN_GPIO_PIN8_SOURCE_SET(x) (((x) << WLAN_GPIO_PIN8_SOURCE_ LSB) & WLAN_GPIO_PIN8_SOURCE_MASK)
444
445 #define WLAN_GPIO_PIN9_ADDRESS 0x0000004c
446 #define WLAN_GPIO_PIN9_OFFSET 0x0000004c
447 #define WLAN_GPIO_PIN9_CONFIG_MSB 13
448 #define WLAN_GPIO_PIN9_CONFIG_LSB 11
449 #define WLAN_GPIO_PIN9_CONFIG_MASK 0x00003800
450 #define WLAN_GPIO_PIN9_CONFIG_GET(x) (((x) & WLAN_GPIO_PIN9_CONFIG_M ASK) >> WLAN_GPIO_PIN9_CONFIG_LSB)
451 #define WLAN_GPIO_PIN9_CONFIG_SET(x) (((x) << WLAN_GPIO_PIN9_CONFIG_ LSB) & WLAN_GPIO_PIN9_CONFIG_MASK)
452 #define WLAN_GPIO_PIN9_WAKEUP_ENABLE_MSB 10
453 #define WLAN_GPIO_PIN9_WAKEUP_ENABLE_LSB 10
454 #define WLAN_GPIO_PIN9_WAKEUP_ENABLE_MASK 0x00000400
455 #define WLAN_GPIO_PIN9_WAKEUP_ENABLE_GET(x) (((x) & WLAN_GPIO_PIN9_WAKEUP_E NABLE_MASK) >> WLAN_GPIO_PIN9_WAKEUP_ENABLE_LSB)
456 #define WLAN_GPIO_PIN9_WAKEUP_ENABLE_SET(x) (((x) << WLAN_GPIO_PIN9_WAKEUP_ ENABLE_LSB) & WLAN_GPIO_PIN9_WAKEUP_ENABLE_MASK)
457 #define WLAN_GPIO_PIN9_INT_TYPE_MSB 9
458 #define WLAN_GPIO_PIN9_INT_TYPE_LSB 7
459 #define WLAN_GPIO_PIN9_INT_TYPE_MASK 0x00000380
460 #define WLAN_GPIO_PIN9_INT_TYPE_GET(x) (((x) & WLAN_GPIO_PIN9_INT_TYPE _MASK) >> WLAN_GPIO_PIN9_INT_TYPE_LSB)
461 #define WLAN_GPIO_PIN9_INT_TYPE_SET(x) (((x) << WLAN_GPIO_PIN9_INT_TYP E_LSB) & WLAN_GPIO_PIN9_INT_TYPE_MASK)
462 #define WLAN_GPIO_PIN9_PAD_PULL_MSB 6
463 #define WLAN_GPIO_PIN9_PAD_PULL_LSB 5
464 #define WLAN_GPIO_PIN9_PAD_PULL_MASK 0x00000060
465 #define WLAN_GPIO_PIN9_PAD_PULL_GET(x) (((x) & WLAN_GPIO_PIN9_PAD_PULL _MASK) >> WLAN_GPIO_PIN9_PAD_PULL_LSB)
466 #define WLAN_GPIO_PIN9_PAD_PULL_SET(x) (((x) << WLAN_GPIO_PIN9_PAD_PUL L_LSB) & WLAN_GPIO_PIN9_PAD_PULL_MASK)
467 #define WLAN_GPIO_PIN9_PAD_STRENGTH_MSB 4
468 #define WLAN_GPIO_PIN9_PAD_STRENGTH_LSB 3
469 #define WLAN_GPIO_PIN9_PAD_STRENGTH_MASK 0x00000018
470 #define WLAN_GPIO_PIN9_PAD_STRENGTH_GET(x) (((x) & WLAN_GPIO_PIN9_PAD_STRE NGTH_MASK) >> WLAN_GPIO_PIN9_PAD_STRENGTH_LSB)
471 #define WLAN_GPIO_PIN9_PAD_STRENGTH_SET(x) (((x) << WLAN_GPIO_PIN9_PAD_STR ENGTH_LSB) & WLAN_GPIO_PIN9_PAD_STRENGTH_MASK)
472 #define WLAN_GPIO_PIN9_PAD_DRIVER_MSB 2
473 #define WLAN_GPIO_PIN9_PAD_DRIVER_LSB 2
474 #define WLAN_GPIO_PIN9_PAD_DRIVER_MASK 0x00000004
475 #define WLAN_GPIO_PIN9_PAD_DRIVER_GET(x) (((x) & WLAN_GPIO_PIN9_PAD_DRIV ER_MASK) >> WLAN_GPIO_PIN9_PAD_DRIVER_LSB)
476 #define WLAN_GPIO_PIN9_PAD_DRIVER_SET(x) (((x) << WLAN_GPIO_PIN9_PAD_DRI VER_LSB) & WLAN_GPIO_PIN9_PAD_DRIVER_MASK)
477 #define WLAN_GPIO_PIN9_SOURCE_MSB 0
478 #define WLAN_GPIO_PIN9_SOURCE_LSB 0
479 #define WLAN_GPIO_PIN9_SOURCE_MASK 0x00000001
480 #define WLAN_GPIO_PIN9_SOURCE_GET(x) (((x) & WLAN_GPIO_PIN9_SOURCE_M ASK) >> WLAN_GPIO_PIN9_SOURCE_LSB)
481 #define WLAN_GPIO_PIN9_SOURCE_SET(x) (((x) << WLAN_GPIO_PIN9_SOURCE_ LSB) & WLAN_GPIO_PIN9_SOURCE_MASK)
482
483 #define WLAN_GPIO_PIN10_ADDRESS 0x00000050
484 #define WLAN_GPIO_PIN10_OFFSET 0x00000050
485 #define WLAN_GPIO_PIN10_CONFIG_MSB 13
486 #define WLAN_GPIO_PIN10_CONFIG_LSB 11
487 #define WLAN_GPIO_PIN10_CONFIG_MASK 0x00003800
488 #define WLAN_GPIO_PIN10_CONFIG_GET(x) (((x) & WLAN_GPIO_PIN10_CONFIG_ MASK) >> WLAN_GPIO_PIN10_CONFIG_LSB)
489 #define WLAN_GPIO_PIN10_CONFIG_SET(x) (((x) << WLAN_GPIO_PIN10_CONFIG _LSB) & WLAN_GPIO_PIN10_CONFIG_MASK)
490 #define WLAN_GPIO_PIN10_WAKEUP_ENABLE_MSB 10
491 #define WLAN_GPIO_PIN10_WAKEUP_ENABLE_LSB 10
492 #define WLAN_GPIO_PIN10_WAKEUP_ENABLE_MASK 0x00000400
493 #define WLAN_GPIO_PIN10_WAKEUP_ENABLE_GET(x) (((x) & WLAN_GPIO_PIN10_WAKEUP_ ENABLE_MASK) >> WLAN_GPIO_PIN10_WAKEUP_ENABLE_LSB)
494 #define WLAN_GPIO_PIN10_WAKEUP_ENABLE_SET(x) (((x) << WLAN_GPIO_PIN10_WAKEUP _ENABLE_LSB) & WLAN_GPIO_PIN10_WAKEUP_ENABLE_MASK)
495 #define WLAN_GPIO_PIN10_INT_TYPE_MSB 9
496 #define WLAN_GPIO_PIN10_INT_TYPE_LSB 7
497 #define WLAN_GPIO_PIN10_INT_TYPE_MASK 0x00000380
498 #define WLAN_GPIO_PIN10_INT_TYPE_GET(x) (((x) & WLAN_GPIO_PIN10_INT_TYP E_MASK) >> WLAN_GPIO_PIN10_INT_TYPE_LSB)
499 #define WLAN_GPIO_PIN10_INT_TYPE_SET(x) (((x) << WLAN_GPIO_PIN10_INT_TY PE_LSB) & WLAN_GPIO_PIN10_INT_TYPE_MASK)
500 #define WLAN_GPIO_PIN10_PAD_PULL_MSB 6
501 #define WLAN_GPIO_PIN10_PAD_PULL_LSB 5
502 #define WLAN_GPIO_PIN10_PAD_PULL_MASK 0x00000060
503 #define WLAN_GPIO_PIN10_PAD_PULL_GET(x) (((x) & WLAN_GPIO_PIN10_PAD_PUL L_MASK) >> WLAN_GPIO_PIN10_PAD_PULL_LSB)
504 #define WLAN_GPIO_PIN10_PAD_PULL_SET(x) (((x) << WLAN_GPIO_PIN10_PAD_PU LL_LSB) & WLAN_GPIO_PIN10_PAD_PULL_MASK)
505 #define WLAN_GPIO_PIN10_PAD_STRENGTH_MSB 4
506 #define WLAN_GPIO_PIN10_PAD_STRENGTH_LSB 3
507 #define WLAN_GPIO_PIN10_PAD_STRENGTH_MASK 0x00000018
508 #define WLAN_GPIO_PIN10_PAD_STRENGTH_GET(x) (((x) & WLAN_GPIO_PIN10_PAD_STR ENGTH_MASK) >> WLAN_GPIO_PIN10_PAD_STRENGTH_LSB)
509 #define WLAN_GPIO_PIN10_PAD_STRENGTH_SET(x) (((x) << WLAN_GPIO_PIN10_PAD_ST RENGTH_LSB) & WLAN_GPIO_PIN10_PAD_STRENGTH_MASK)
510 #define WLAN_GPIO_PIN10_PAD_DRIVER_MSB 2
511 #define WLAN_GPIO_PIN10_PAD_DRIVER_LSB 2
512 #define WLAN_GPIO_PIN10_PAD_DRIVER_MASK 0x00000004
513 #define WLAN_GPIO_PIN10_PAD_DRIVER_GET(x) (((x) & WLAN_GPIO_PIN10_PAD_DRI VER_MASK) >> WLAN_GPIO_PIN10_PAD_DRIVER_LSB)
514 #define WLAN_GPIO_PIN10_PAD_DRIVER_SET(x) (((x) << WLAN_GPIO_PIN10_PAD_DR IVER_LSB) & WLAN_GPIO_PIN10_PAD_DRIVER_MASK)
515 #define WLAN_GPIO_PIN10_SOURCE_MSB 0
516 #define WLAN_GPIO_PIN10_SOURCE_LSB 0
517 #define WLAN_GPIO_PIN10_SOURCE_MASK 0x00000001
518 #define WLAN_GPIO_PIN10_SOURCE_GET(x) (((x) & WLAN_GPIO_PIN10_SOURCE_ MASK) >> WLAN_GPIO_PIN10_SOURCE_LSB)
519 #define WLAN_GPIO_PIN10_SOURCE_SET(x) (((x) << WLAN_GPIO_PIN10_SOURCE _LSB) & WLAN_GPIO_PIN10_SOURCE_MASK)
520
521 #define WLAN_GPIO_PIN11_ADDRESS 0x00000054
522 #define WLAN_GPIO_PIN11_OFFSET 0x00000054
523 #define WLAN_GPIO_PIN11_CONFIG_MSB 13
524 #define WLAN_GPIO_PIN11_CONFIG_LSB 11
525 #define WLAN_GPIO_PIN11_CONFIG_MASK 0x00003800
526 #define WLAN_GPIO_PIN11_CONFIG_GET(x) (((x) & WLAN_GPIO_PIN11_CONFIG_ MASK) >> WLAN_GPIO_PIN11_CONFIG_LSB)
527 #define WLAN_GPIO_PIN11_CONFIG_SET(x) (((x) << WLAN_GPIO_PIN11_CONFIG _LSB) & WLAN_GPIO_PIN11_CONFIG_MASK)
528 #define WLAN_GPIO_PIN11_WAKEUP_ENABLE_MSB 10
529 #define WLAN_GPIO_PIN11_WAKEUP_ENABLE_LSB 10
530 #define WLAN_GPIO_PIN11_WAKEUP_ENABLE_MASK 0x00000400
531 #define WLAN_GPIO_PIN11_WAKEUP_ENABLE_GET(x) (((x) & WLAN_GPIO_PIN11_WAKEUP_ ENABLE_MASK) >> WLAN_GPIO_PIN11_WAKEUP_ENABLE_LSB)
532 #define WLAN_GPIO_PIN11_WAKEUP_ENABLE_SET(x) (((x) << WLAN_GPIO_PIN11_WAKEUP _ENABLE_LSB) & WLAN_GPIO_PIN11_WAKEUP_ENABLE_MASK)
533 #define WLAN_GPIO_PIN11_INT_TYPE_MSB 9
534 #define WLAN_GPIO_PIN11_INT_TYPE_LSB 7
535 #define WLAN_GPIO_PIN11_INT_TYPE_MASK 0x00000380
536 #define WLAN_GPIO_PIN11_INT_TYPE_GET(x) (((x) & WLAN_GPIO_PIN11_INT_TYP E_MASK) >> WLAN_GPIO_PIN11_INT_TYPE_LSB)
537 #define WLAN_GPIO_PIN11_INT_TYPE_SET(x) (((x) << WLAN_GPIO_PIN11_INT_TY PE_LSB) & WLAN_GPIO_PIN11_INT_TYPE_MASK)
538 #define WLAN_GPIO_PIN11_PAD_PULL_MSB 6
539 #define WLAN_GPIO_PIN11_PAD_PULL_LSB 5
540 #define WLAN_GPIO_PIN11_PAD_PULL_MASK 0x00000060
541 #define WLAN_GPIO_PIN11_PAD_PULL_GET(x) (((x) & WLAN_GPIO_PIN11_PAD_PUL L_MASK) >> WLAN_GPIO_PIN11_PAD_PULL_LSB)
542 #define WLAN_GPIO_PIN11_PAD_PULL_SET(x) (((x) << WLAN_GPIO_PIN11_PAD_PU LL_LSB) & WLAN_GPIO_PIN11_PAD_PULL_MASK)
543 #define WLAN_GPIO_PIN11_PAD_STRENGTH_MSB 4
544 #define WLAN_GPIO_PIN11_PAD_STRENGTH_LSB 3
545 #define WLAN_GPIO_PIN11_PAD_STRENGTH_MASK 0x00000018
546 #define WLAN_GPIO_PIN11_PAD_STRENGTH_GET(x) (((x) & WLAN_GPIO_PIN11_PAD_STR ENGTH_MASK) >> WLAN_GPIO_PIN11_PAD_STRENGTH_LSB)
547 #define WLAN_GPIO_PIN11_PAD_STRENGTH_SET(x) (((x) << WLAN_GPIO_PIN11_PAD_ST RENGTH_LSB) & WLAN_GPIO_PIN11_PAD_STRENGTH_MASK)
548 #define WLAN_GPIO_PIN11_PAD_DRIVER_MSB 2
549 #define WLAN_GPIO_PIN11_PAD_DRIVER_LSB 2
550 #define WLAN_GPIO_PIN11_PAD_DRIVER_MASK 0x00000004
551 #define WLAN_GPIO_PIN11_PAD_DRIVER_GET(x) (((x) & WLAN_GPIO_PIN11_PAD_DRI VER_MASK) >> WLAN_GPIO_PIN11_PAD_DRIVER_LSB)
552 #define WLAN_GPIO_PIN11_PAD_DRIVER_SET(x) (((x) << WLAN_GPIO_PIN11_PAD_DR IVER_LSB) & WLAN_GPIO_PIN11_PAD_DRIVER_MASK)
553 #define WLAN_GPIO_PIN11_SOURCE_MSB 0
554 #define WLAN_GPIO_PIN11_SOURCE_LSB 0
555 #define WLAN_GPIO_PIN11_SOURCE_MASK 0x00000001
556 #define WLAN_GPIO_PIN11_SOURCE_GET(x) (((x) & WLAN_GPIO_PIN11_SOURCE_ MASK) >> WLAN_GPIO_PIN11_SOURCE_LSB)
557 #define WLAN_GPIO_PIN11_SOURCE_SET(x) (((x) << WLAN_GPIO_PIN11_SOURCE _LSB) & WLAN_GPIO_PIN11_SOURCE_MASK)
558
559 #define WLAN_GPIO_PIN12_ADDRESS 0x00000058
560 #define WLAN_GPIO_PIN12_OFFSET 0x00000058
561 #define WLAN_GPIO_PIN12_CONFIG_MSB 13
562 #define WLAN_GPIO_PIN12_CONFIG_LSB 11
563 #define WLAN_GPIO_PIN12_CONFIG_MASK 0x00003800
564 #define WLAN_GPIO_PIN12_CONFIG_GET(x) (((x) & WLAN_GPIO_PIN12_CONFIG_ MASK) >> WLAN_GPIO_PIN12_CONFIG_LSB)
565 #define WLAN_GPIO_PIN12_CONFIG_SET(x) (((x) << WLAN_GPIO_PIN12_CONFIG _LSB) & WLAN_GPIO_PIN12_CONFIG_MASK)
566 #define WLAN_GPIO_PIN12_WAKEUP_ENABLE_MSB 10
567 #define WLAN_GPIO_PIN12_WAKEUP_ENABLE_LSB 10
568 #define WLAN_GPIO_PIN12_WAKEUP_ENABLE_MASK 0x00000400
569 #define WLAN_GPIO_PIN12_WAKEUP_ENABLE_GET(x) (((x) & WLAN_GPIO_PIN12_WAKEUP_ ENABLE_MASK) >> WLAN_GPIO_PIN12_WAKEUP_ENABLE_LSB)
570 #define WLAN_GPIO_PIN12_WAKEUP_ENABLE_SET(x) (((x) << WLAN_GPIO_PIN12_WAKEUP _ENABLE_LSB) & WLAN_GPIO_PIN12_WAKEUP_ENABLE_MASK)
571 #define WLAN_GPIO_PIN12_INT_TYPE_MSB 9
572 #define WLAN_GPIO_PIN12_INT_TYPE_LSB 7
573 #define WLAN_GPIO_PIN12_INT_TYPE_MASK 0x00000380
574 #define WLAN_GPIO_PIN12_INT_TYPE_GET(x) (((x) & WLAN_GPIO_PIN12_INT_TYP E_MASK) >> WLAN_GPIO_PIN12_INT_TYPE_LSB)
575 #define WLAN_GPIO_PIN12_INT_TYPE_SET(x) (((x) << WLAN_GPIO_PIN12_INT_TY PE_LSB) & WLAN_GPIO_PIN12_INT_TYPE_MASK)
576 #define WLAN_GPIO_PIN12_PAD_PULL_MSB 6
577 #define WLAN_GPIO_PIN12_PAD_PULL_LSB 5
578 #define WLAN_GPIO_PIN12_PAD_PULL_MASK 0x00000060
579 #define WLAN_GPIO_PIN12_PAD_PULL_GET(x) (((x) & WLAN_GPIO_PIN12_PAD_PUL L_MASK) >> WLAN_GPIO_PIN12_PAD_PULL_LSB)
580 #define WLAN_GPIO_PIN12_PAD_PULL_SET(x) (((x) << WLAN_GPIO_PIN12_PAD_PU LL_LSB) & WLAN_GPIO_PIN12_PAD_PULL_MASK)
581 #define WLAN_GPIO_PIN12_PAD_STRENGTH_MSB 4
582 #define WLAN_GPIO_PIN12_PAD_STRENGTH_LSB 3
583 #define WLAN_GPIO_PIN12_PAD_STRENGTH_MASK 0x00000018
584 #define WLAN_GPIO_PIN12_PAD_STRENGTH_GET(x) (((x) & WLAN_GPIO_PIN12_PAD_STR ENGTH_MASK) >> WLAN_GPIO_PIN12_PAD_STRENGTH_LSB)
585 #define WLAN_GPIO_PIN12_PAD_STRENGTH_SET(x) (((x) << WLAN_GPIO_PIN12_PAD_ST RENGTH_LSB) & WLAN_GPIO_PIN12_PAD_STRENGTH_MASK)
586 #define WLAN_GPIO_PIN12_PAD_DRIVER_MSB 2
587 #define WLAN_GPIO_PIN12_PAD_DRIVER_LSB 2
588 #define WLAN_GPIO_PIN12_PAD_DRIVER_MASK 0x00000004
589 #define WLAN_GPIO_PIN12_PAD_DRIVER_GET(x) (((x) & WLAN_GPIO_PIN12_PAD_DRI VER_MASK) >> WLAN_GPIO_PIN12_PAD_DRIVER_LSB)
590 #define WLAN_GPIO_PIN12_PAD_DRIVER_SET(x) (((x) << WLAN_GPIO_PIN12_PAD_DR IVER_LSB) & WLAN_GPIO_PIN12_PAD_DRIVER_MASK)
591 #define WLAN_GPIO_PIN12_SOURCE_MSB 0
592 #define WLAN_GPIO_PIN12_SOURCE_LSB 0
593 #define WLAN_GPIO_PIN12_SOURCE_MASK 0x00000001
594 #define WLAN_GPIO_PIN12_SOURCE_GET(x) (((x) & WLAN_GPIO_PIN12_SOURCE_ MASK) >> WLAN_GPIO_PIN12_SOURCE_LSB)
595 #define WLAN_GPIO_PIN12_SOURCE_SET(x) (((x) << WLAN_GPIO_PIN12_SOURCE _LSB) & WLAN_GPIO_PIN12_SOURCE_MASK)
596
597 #define WLAN_GPIO_PIN13_ADDRESS 0x0000005c
598 #define WLAN_GPIO_PIN13_OFFSET 0x0000005c
599 #define WLAN_GPIO_PIN13_CONFIG_MSB 13
600 #define WLAN_GPIO_PIN13_CONFIG_LSB 11
601 #define WLAN_GPIO_PIN13_CONFIG_MASK 0x00003800
602 #define WLAN_GPIO_PIN13_CONFIG_GET(x) (((x) & WLAN_GPIO_PIN13_CONFIG_ MASK) >> WLAN_GPIO_PIN13_CONFIG_LSB)
603 #define WLAN_GPIO_PIN13_CONFIG_SET(x) (((x) << WLAN_GPIO_PIN13_CONFIG _LSB) & WLAN_GPIO_PIN13_CONFIG_MASK)
604 #define WLAN_GPIO_PIN13_WAKEUP_ENABLE_MSB 10
605 #define WLAN_GPIO_PIN13_WAKEUP_ENABLE_LSB 10
606 #define WLAN_GPIO_PIN13_WAKEUP_ENABLE_MASK 0x00000400
607 #define WLAN_GPIO_PIN13_WAKEUP_ENABLE_GET(x) (((x) & WLAN_GPIO_PIN13_WAKEUP_ ENABLE_MASK) >> WLAN_GPIO_PIN13_WAKEUP_ENABLE_LSB)
608 #define WLAN_GPIO_PIN13_WAKEUP_ENABLE_SET(x) (((x) << WLAN_GPIO_PIN13_WAKEUP _ENABLE_LSB) & WLAN_GPIO_PIN13_WAKEUP_ENABLE_MASK)
609 #define WLAN_GPIO_PIN13_INT_TYPE_MSB 9
610 #define WLAN_GPIO_PIN13_INT_TYPE_LSB 7
611 #define WLAN_GPIO_PIN13_INT_TYPE_MASK 0x00000380
612 #define WLAN_GPIO_PIN13_INT_TYPE_GET(x) (((x) & WLAN_GPIO_PIN13_INT_TYP E_MASK) >> WLAN_GPIO_PIN13_INT_TYPE_LSB)
613 #define WLAN_GPIO_PIN13_INT_TYPE_SET(x) (((x) << WLAN_GPIO_PIN13_INT_TY PE_LSB) & WLAN_GPIO_PIN13_INT_TYPE_MASK)
614 #define WLAN_GPIO_PIN13_PAD_PULL_MSB 6
615 #define WLAN_GPIO_PIN13_PAD_PULL_LSB 5
616 #define WLAN_GPIO_PIN13_PAD_PULL_MASK 0x00000060
617 #define WLAN_GPIO_PIN13_PAD_PULL_GET(x) (((x) & WLAN_GPIO_PIN13_PAD_PUL L_MASK) >> WLAN_GPIO_PIN13_PAD_PULL_LSB)
618 #define WLAN_GPIO_PIN13_PAD_PULL_SET(x) (((x) << WLAN_GPIO_PIN13_PAD_PU LL_LSB) & WLAN_GPIO_PIN13_PAD_PULL_MASK)
619 #define WLAN_GPIO_PIN13_PAD_STRENGTH_MSB 4
620 #define WLAN_GPIO_PIN13_PAD_STRENGTH_LSB 3
621 #define WLAN_GPIO_PIN13_PAD_STRENGTH_MASK 0x00000018
622 #define WLAN_GPIO_PIN13_PAD_STRENGTH_GET(x) (((x) & WLAN_GPIO_PIN13_PAD_STR ENGTH_MASK) >> WLAN_GPIO_PIN13_PAD_STRENGTH_LSB)
623 #define WLAN_GPIO_PIN13_PAD_STRENGTH_SET(x) (((x) << WLAN_GPIO_PIN13_PAD_ST RENGTH_LSB) & WLAN_GPIO_PIN13_PAD_STRENGTH_MASK)
624 #define WLAN_GPIO_PIN13_PAD_DRIVER_MSB 2
625 #define WLAN_GPIO_PIN13_PAD_DRIVER_LSB 2
626 #define WLAN_GPIO_PIN13_PAD_DRIVER_MASK 0x00000004
627 #define WLAN_GPIO_PIN13_PAD_DRIVER_GET(x) (((x) & WLAN_GPIO_PIN13_PAD_DRI VER_MASK) >> WLAN_GPIO_PIN13_PAD_DRIVER_LSB)
628 #define WLAN_GPIO_PIN13_PAD_DRIVER_SET(x) (((x) << WLAN_GPIO_PIN13_PAD_DR IVER_LSB) & WLAN_GPIO_PIN13_PAD_DRIVER_MASK)
629 #define WLAN_GPIO_PIN13_SOURCE_MSB 0
630 #define WLAN_GPIO_PIN13_SOURCE_LSB 0
631 #define WLAN_GPIO_PIN13_SOURCE_MASK 0x00000001
632 #define WLAN_GPIO_PIN13_SOURCE_GET(x) (((x) & WLAN_GPIO_PIN13_SOURCE_ MASK) >> WLAN_GPIO_PIN13_SOURCE_LSB)
633 #define WLAN_GPIO_PIN13_SOURCE_SET(x) (((x) << WLAN_GPIO_PIN13_SOURCE _LSB) & WLAN_GPIO_PIN13_SOURCE_MASK)
634
635 #define WLAN_GPIO_PIN14_ADDRESS 0x00000060
636 #define WLAN_GPIO_PIN14_OFFSET 0x00000060
637 #define WLAN_GPIO_PIN14_CONFIG_MSB 13
638 #define WLAN_GPIO_PIN14_CONFIG_LSB 11
639 #define WLAN_GPIO_PIN14_CONFIG_MASK 0x00003800
640 #define WLAN_GPIO_PIN14_CONFIG_GET(x) (((x) & WLAN_GPIO_PIN14_CONFIG_ MASK) >> WLAN_GPIO_PIN14_CONFIG_LSB)
641 #define WLAN_GPIO_PIN14_CONFIG_SET(x) (((x) << WLAN_GPIO_PIN14_CONFIG _LSB) & WLAN_GPIO_PIN14_CONFIG_MASK)
642 #define WLAN_GPIO_PIN14_WAKEUP_ENABLE_MSB 10
643 #define WLAN_GPIO_PIN14_WAKEUP_ENABLE_LSB 10
644 #define WLAN_GPIO_PIN14_WAKEUP_ENABLE_MASK 0x00000400
645 #define WLAN_GPIO_PIN14_WAKEUP_ENABLE_GET(x) (((x) & WLAN_GPIO_PIN14_WAKEUP_ ENABLE_MASK) >> WLAN_GPIO_PIN14_WAKEUP_ENABLE_LSB)
646 #define WLAN_GPIO_PIN14_WAKEUP_ENABLE_SET(x) (((x) << WLAN_GPIO_PIN14_WAKEUP _ENABLE_LSB) & WLAN_GPIO_PIN14_WAKEUP_ENABLE_MASK)
647 #define WLAN_GPIO_PIN14_INT_TYPE_MSB 9
648 #define WLAN_GPIO_PIN14_INT_TYPE_LSB 7
649 #define WLAN_GPIO_PIN14_INT_TYPE_MASK 0x00000380
650 #define WLAN_GPIO_PIN14_INT_TYPE_GET(x) (((x) & WLAN_GPIO_PIN14_INT_TYP E_MASK) >> WLAN_GPIO_PIN14_INT_TYPE_LSB)
651 #define WLAN_GPIO_PIN14_INT_TYPE_SET(x) (((x) << WLAN_GPIO_PIN14_INT_TY PE_LSB) & WLAN_GPIO_PIN14_INT_TYPE_MASK)
652 #define WLAN_GPIO_PIN14_PAD_PULL_MSB 6
653 #define WLAN_GPIO_PIN14_PAD_PULL_LSB 5
654 #define WLAN_GPIO_PIN14_PAD_PULL_MASK 0x00000060
655 #define WLAN_GPIO_PIN14_PAD_PULL_GET(x) (((x) & WLAN_GPIO_PIN14_PAD_PUL L_MASK) >> WLAN_GPIO_PIN14_PAD_PULL_LSB)
656 #define WLAN_GPIO_PIN14_PAD_PULL_SET(x) (((x) << WLAN_GPIO_PIN14_PAD_PU LL_LSB) & WLAN_GPIO_PIN14_PAD_PULL_MASK)
657 #define WLAN_GPIO_PIN14_PAD_STRENGTH_MSB 4
658 #define WLAN_GPIO_PIN14_PAD_STRENGTH_LSB 3
659 #define WLAN_GPIO_PIN14_PAD_STRENGTH_MASK 0x00000018
660 #define WLAN_GPIO_PIN14_PAD_STRENGTH_GET(x) (((x) & WLAN_GPIO_PIN14_PAD_STR ENGTH_MASK) >> WLAN_GPIO_PIN14_PAD_STRENGTH_LSB)
661 #define WLAN_GPIO_PIN14_PAD_STRENGTH_SET(x) (((x) << WLAN_GPIO_PIN14_PAD_ST RENGTH_LSB) & WLAN_GPIO_PIN14_PAD_STRENGTH_MASK)
662 #define WLAN_GPIO_PIN14_PAD_DRIVER_MSB 2
663 #define WLAN_GPIO_PIN14_PAD_DRIVER_LSB 2
664 #define WLAN_GPIO_PIN14_PAD_DRIVER_MASK 0x00000004
665 #define WLAN_GPIO_PIN14_PAD_DRIVER_GET(x) (((x) & WLAN_GPIO_PIN14_PAD_DRI VER_MASK) >> WLAN_GPIO_PIN14_PAD_DRIVER_LSB)
666 #define WLAN_GPIO_PIN14_PAD_DRIVER_SET(x) (((x) << WLAN_GPIO_PIN14_PAD_DR IVER_LSB) & WLAN_GPIO_PIN14_PAD_DRIVER_MASK)
667 #define WLAN_GPIO_PIN14_SOURCE_MSB 0
668 #define WLAN_GPIO_PIN14_SOURCE_LSB 0
669 #define WLAN_GPIO_PIN14_SOURCE_MASK 0x00000001
670 #define WLAN_GPIO_PIN14_SOURCE_GET(x) (((x) & WLAN_GPIO_PIN14_SOURCE_ MASK) >> WLAN_GPIO_PIN14_SOURCE_LSB)
671 #define WLAN_GPIO_PIN14_SOURCE_SET(x) (((x) << WLAN_GPIO_PIN14_SOURCE _LSB) & WLAN_GPIO_PIN14_SOURCE_MASK)
672
673 #define WLAN_GPIO_PIN15_ADDRESS 0x00000064
674 #define WLAN_GPIO_PIN15_OFFSET 0x00000064
675 #define WLAN_GPIO_PIN15_CONFIG_MSB 13
676 #define WLAN_GPIO_PIN15_CONFIG_LSB 11
677 #define WLAN_GPIO_PIN15_CONFIG_MASK 0x00003800
678 #define WLAN_GPIO_PIN15_CONFIG_GET(x) (((x) & WLAN_GPIO_PIN15_CONFIG_ MASK) >> WLAN_GPIO_PIN15_CONFIG_LSB)
679 #define WLAN_GPIO_PIN15_CONFIG_SET(x) (((x) << WLAN_GPIO_PIN15_CONFIG _LSB) & WLAN_GPIO_PIN15_CONFIG_MASK)
680 #define WLAN_GPIO_PIN15_WAKEUP_ENABLE_MSB 10
681 #define WLAN_GPIO_PIN15_WAKEUP_ENABLE_LSB 10
682 #define WLAN_GPIO_PIN15_WAKEUP_ENABLE_MASK 0x00000400
683 #define WLAN_GPIO_PIN15_WAKEUP_ENABLE_GET(x) (((x) & WLAN_GPIO_PIN15_WAKEUP_ ENABLE_MASK) >> WLAN_GPIO_PIN15_WAKEUP_ENABLE_LSB)
684 #define WLAN_GPIO_PIN15_WAKEUP_ENABLE_SET(x) (((x) << WLAN_GPIO_PIN15_WAKEUP _ENABLE_LSB) & WLAN_GPIO_PIN15_WAKEUP_ENABLE_MASK)
685 #define WLAN_GPIO_PIN15_INT_TYPE_MSB 9
686 #define WLAN_GPIO_PIN15_INT_TYPE_LSB 7
687 #define WLAN_GPIO_PIN15_INT_TYPE_MASK 0x00000380
688 #define WLAN_GPIO_PIN15_INT_TYPE_GET(x) (((x) & WLAN_GPIO_PIN15_INT_TYP E_MASK) >> WLAN_GPIO_PIN15_INT_TYPE_LSB)
689 #define WLAN_GPIO_PIN15_INT_TYPE_SET(x) (((x) << WLAN_GPIO_PIN15_INT_TY PE_LSB) & WLAN_GPIO_PIN15_INT_TYPE_MASK)
690 #define WLAN_GPIO_PIN15_PAD_PULL_MSB 6
691 #define WLAN_GPIO_PIN15_PAD_PULL_LSB 5
692 #define WLAN_GPIO_PIN15_PAD_PULL_MASK 0x00000060
693 #define WLAN_GPIO_PIN15_PAD_PULL_GET(x) (((x) & WLAN_GPIO_PIN15_PAD_PUL L_MASK) >> WLAN_GPIO_PIN15_PAD_PULL_LSB)
694 #define WLAN_GPIO_PIN15_PAD_PULL_SET(x) (((x) << WLAN_GPIO_PIN15_PAD_PU LL_LSB) & WLAN_GPIO_PIN15_PAD_PULL_MASK)
695 #define WLAN_GPIO_PIN15_PAD_STRENGTH_MSB 4
696 #define WLAN_GPIO_PIN15_PAD_STRENGTH_LSB 3
697 #define WLAN_GPIO_PIN15_PAD_STRENGTH_MASK 0x00000018
698 #define WLAN_GPIO_PIN15_PAD_STRENGTH_GET(x) (((x) & WLAN_GPIO_PIN15_PAD_STR ENGTH_MASK) >> WLAN_GPIO_PIN15_PAD_STRENGTH_LSB)
699 #define WLAN_GPIO_PIN15_PAD_STRENGTH_SET(x) (((x) << WLAN_GPIO_PIN15_PAD_ST RENGTH_LSB) & WLAN_GPIO_PIN15_PAD_STRENGTH_MASK)
700 #define WLAN_GPIO_PIN15_PAD_DRIVER_MSB 2
701 #define WLAN_GPIO_PIN15_PAD_DRIVER_LSB 2
702 #define WLAN_GPIO_PIN15_PAD_DRIVER_MASK 0x00000004
703 #define WLAN_GPIO_PIN15_PAD_DRIVER_GET(x) (((x) & WLAN_GPIO_PIN15_PAD_DRI VER_MASK) >> WLAN_GPIO_PIN15_PAD_DRIVER_LSB)
704 #define WLAN_GPIO_PIN15_PAD_DRIVER_SET(x) (((x) << WLAN_GPIO_PIN15_PAD_DR IVER_LSB) & WLAN_GPIO_PIN15_PAD_DRIVER_MASK)
705 #define WLAN_GPIO_PIN15_SOURCE_MSB 0
706 #define WLAN_GPIO_PIN15_SOURCE_LSB 0
707 #define WLAN_GPIO_PIN15_SOURCE_MASK 0x00000001
708 #define WLAN_GPIO_PIN15_SOURCE_GET(x) (((x) & WLAN_GPIO_PIN15_SOURCE_ MASK) >> WLAN_GPIO_PIN15_SOURCE_LSB)
709 #define WLAN_GPIO_PIN15_SOURCE_SET(x) (((x) << WLAN_GPIO_PIN15_SOURCE _LSB) & WLAN_GPIO_PIN15_SOURCE_MASK)
710
711 #define WLAN_GPIO_PIN16_ADDRESS 0x00000068
712 #define WLAN_GPIO_PIN16_OFFSET 0x00000068
713 #define WLAN_GPIO_PIN16_CONFIG_MSB 13
714 #define WLAN_GPIO_PIN16_CONFIG_LSB 11
715 #define WLAN_GPIO_PIN16_CONFIG_MASK 0x00003800
716 #define WLAN_GPIO_PIN16_CONFIG_GET(x) (((x) & WLAN_GPIO_PIN16_CONFIG_ MASK) >> WLAN_GPIO_PIN16_CONFIG_LSB)
717 #define WLAN_GPIO_PIN16_CONFIG_SET(x) (((x) << WLAN_GPIO_PIN16_CONFIG _LSB) & WLAN_GPIO_PIN16_CONFIG_MASK)
718 #define WLAN_GPIO_PIN16_WAKEUP_ENABLE_MSB 10
719 #define WLAN_GPIO_PIN16_WAKEUP_ENABLE_LSB 10
720 #define WLAN_GPIO_PIN16_WAKEUP_ENABLE_MASK 0x00000400
721 #define WLAN_GPIO_PIN16_WAKEUP_ENABLE_GET(x) (((x) & WLAN_GPIO_PIN16_WAKEUP_ ENABLE_MASK) >> WLAN_GPIO_PIN16_WAKEUP_ENABLE_LSB)
722 #define WLAN_GPIO_PIN16_WAKEUP_ENABLE_SET(x) (((x) << WLAN_GPIO_PIN16_WAKEUP _ENABLE_LSB) & WLAN_GPIO_PIN16_WAKEUP_ENABLE_MASK)
723 #define WLAN_GPIO_PIN16_INT_TYPE_MSB 9
724 #define WLAN_GPIO_PIN16_INT_TYPE_LSB 7
725 #define WLAN_GPIO_PIN16_INT_TYPE_MASK 0x00000380
726 #define WLAN_GPIO_PIN16_INT_TYPE_GET(x) (((x) & WLAN_GPIO_PIN16_INT_TYP E_MASK) >> WLAN_GPIO_PIN16_INT_TYPE_LSB)
727 #define WLAN_GPIO_PIN16_INT_TYPE_SET(x) (((x) << WLAN_GPIO_PIN16_INT_TY PE_LSB) & WLAN_GPIO_PIN16_INT_TYPE_MASK)
728 #define WLAN_GPIO_PIN16_PAD_PULL_MSB 6
729 #define WLAN_GPIO_PIN16_PAD_PULL_LSB 5
730 #define WLAN_GPIO_PIN16_PAD_PULL_MASK 0x00000060
731 #define WLAN_GPIO_PIN16_PAD_PULL_GET(x) (((x) & WLAN_GPIO_PIN16_PAD_PUL L_MASK) >> WLAN_GPIO_PIN16_PAD_PULL_LSB)
732 #define WLAN_GPIO_PIN16_PAD_PULL_SET(x) (((x) << WLAN_GPIO_PIN16_PAD_PU LL_LSB) & WLAN_GPIO_PIN16_PAD_PULL_MASK)
733 #define WLAN_GPIO_PIN16_PAD_STRENGTH_MSB 4
734 #define WLAN_GPIO_PIN16_PAD_STRENGTH_LSB 3
735 #define WLAN_GPIO_PIN16_PAD_STRENGTH_MASK 0x00000018
736 #define WLAN_GPIO_PIN16_PAD_STRENGTH_GET(x) (((x) & WLAN_GPIO_PIN16_PAD_STR ENGTH_MASK) >> WLAN_GPIO_PIN16_PAD_STRENGTH_LSB)
737 #define WLAN_GPIO_PIN16_PAD_STRENGTH_SET(x) (((x) << WLAN_GPIO_PIN16_PAD_ST RENGTH_LSB) & WLAN_GPIO_PIN16_PAD_STRENGTH_MASK)
738 #define WLAN_GPIO_PIN16_PAD_DRIVER_MSB 2
739 #define WLAN_GPIO_PIN16_PAD_DRIVER_LSB 2
740 #define WLAN_GPIO_PIN16_PAD_DRIVER_MASK 0x00000004
741 #define WLAN_GPIO_PIN16_PAD_DRIVER_GET(x) (((x) & WLAN_GPIO_PIN16_PAD_DRI VER_MASK) >> WLAN_GPIO_PIN16_PAD_DRIVER_LSB)
742 #define WLAN_GPIO_PIN16_PAD_DRIVER_SET(x) (((x) << WLAN_GPIO_PIN16_PAD_DR IVER_LSB) & WLAN_GPIO_PIN16_PAD_DRIVER_MASK)
743 #define WLAN_GPIO_PIN16_SOURCE_MSB 0
744 #define WLAN_GPIO_PIN16_SOURCE_LSB 0
745 #define WLAN_GPIO_PIN16_SOURCE_MASK 0x00000001
746 #define WLAN_GPIO_PIN16_SOURCE_GET(x) (((x) & WLAN_GPIO_PIN16_SOURCE_ MASK) >> WLAN_GPIO_PIN16_SOURCE_LSB)
747 #define WLAN_GPIO_PIN16_SOURCE_SET(x) (((x) << WLAN_GPIO_PIN16_SOURCE _LSB) & WLAN_GPIO_PIN16_SOURCE_MASK)
748
749 #define WLAN_GPIO_PIN17_ADDRESS 0x0000006c
750 #define WLAN_GPIO_PIN17_OFFSET 0x0000006c
751 #define WLAN_GPIO_PIN17_CONFIG_MSB 13
752 #define WLAN_GPIO_PIN17_CONFIG_LSB 11
753 #define WLAN_GPIO_PIN17_CONFIG_MASK 0x00003800
754 #define WLAN_GPIO_PIN17_CONFIG_GET(x) (((x) & WLAN_GPIO_PIN17_CONFIG_ MASK) >> WLAN_GPIO_PIN17_CONFIG_LSB)
755 #define WLAN_GPIO_PIN17_CONFIG_SET(x) (((x) << WLAN_GPIO_PIN17_CONFIG _LSB) & WLAN_GPIO_PIN17_CONFIG_MASK)
756 #define WLAN_GPIO_PIN17_WAKEUP_ENABLE_MSB 10
757 #define WLAN_GPIO_PIN17_WAKEUP_ENABLE_LSB 10
758 #define WLAN_GPIO_PIN17_WAKEUP_ENABLE_MASK 0x00000400
759 #define WLAN_GPIO_PIN17_WAKEUP_ENABLE_GET(x) (((x) & WLAN_GPIO_PIN17_WAKEUP_ ENABLE_MASK) >> WLAN_GPIO_PIN17_WAKEUP_ENABLE_LSB)
760 #define WLAN_GPIO_PIN17_WAKEUP_ENABLE_SET(x) (((x) << WLAN_GPIO_PIN17_WAKEUP _ENABLE_LSB) & WLAN_GPIO_PIN17_WAKEUP_ENABLE_MASK)
761 #define WLAN_GPIO_PIN17_INT_TYPE_MSB 9
762 #define WLAN_GPIO_PIN17_INT_TYPE_LSB 7
763 #define WLAN_GPIO_PIN17_INT_TYPE_MASK 0x00000380
764 #define WLAN_GPIO_PIN17_INT_TYPE_GET(x) (((x) & WLAN_GPIO_PIN17_INT_TYP E_MASK) >> WLAN_GPIO_PIN17_INT_TYPE_LSB)
765 #define WLAN_GPIO_PIN17_INT_TYPE_SET(x) (((x) << WLAN_GPIO_PIN17_INT_TY PE_LSB) & WLAN_GPIO_PIN17_INT_TYPE_MASK)
766 #define WLAN_GPIO_PIN17_PAD_PULL_MSB 6
767 #define WLAN_GPIO_PIN17_PAD_PULL_LSB 5
768 #define WLAN_GPIO_PIN17_PAD_PULL_MASK 0x00000060
769 #define WLAN_GPIO_PIN17_PAD_PULL_GET(x) (((x) & WLAN_GPIO_PIN17_PAD_PUL L_MASK) >> WLAN_GPIO_PIN17_PAD_PULL_LSB)
770 #define WLAN_GPIO_PIN17_PAD_PULL_SET(x) (((x) << WLAN_GPIO_PIN17_PAD_PU LL_LSB) & WLAN_GPIO_PIN17_PAD_PULL_MASK)
771 #define WLAN_GPIO_PIN17_PAD_STRENGTH_MSB 4
772 #define WLAN_GPIO_PIN17_PAD_STRENGTH_LSB 3
773 #define WLAN_GPIO_PIN17_PAD_STRENGTH_MASK 0x00000018
774 #define WLAN_GPIO_PIN17_PAD_STRENGTH_GET(x) (((x) & WLAN_GPIO_PIN17_PAD_STR ENGTH_MASK) >> WLAN_GPIO_PIN17_PAD_STRENGTH_LSB)
775 #define WLAN_GPIO_PIN17_PAD_STRENGTH_SET(x) (((x) << WLAN_GPIO_PIN17_PAD_ST RENGTH_LSB) & WLAN_GPIO_PIN17_PAD_STRENGTH_MASK)
776 #define WLAN_GPIO_PIN17_PAD_DRIVER_MSB 2
777 #define WLAN_GPIO_PIN17_PAD_DRIVER_LSB 2
778 #define WLAN_GPIO_PIN17_PAD_DRIVER_MASK 0x00000004
779 #define WLAN_GPIO_PIN17_PAD_DRIVER_GET(x) (((x) & WLAN_GPIO_PIN17_PAD_DRI VER_MASK) >> WLAN_GPIO_PIN17_PAD_DRIVER_LSB)
780 #define WLAN_GPIO_PIN17_PAD_DRIVER_SET(x) (((x) << WLAN_GPIO_PIN17_PAD_DR IVER_LSB) & WLAN_GPIO_PIN17_PAD_DRIVER_MASK)
781 #define WLAN_GPIO_PIN17_SOURCE_MSB 0
782 #define WLAN_GPIO_PIN17_SOURCE_LSB 0
783 #define WLAN_GPIO_PIN17_SOURCE_MASK 0x00000001
784 #define WLAN_GPIO_PIN17_SOURCE_GET(x) (((x) & WLAN_GPIO_PIN17_SOURCE_ MASK) >> WLAN_GPIO_PIN17_SOURCE_LSB)
785 #define WLAN_GPIO_PIN17_SOURCE_SET(x) (((x) << WLAN_GPIO_PIN17_SOURCE _LSB) & WLAN_GPIO_PIN17_SOURCE_MASK)
786
787 #define WLAN_GPIO_PIN18_ADDRESS 0x00000070
788 #define WLAN_GPIO_PIN18_OFFSET 0x00000070
789 #define WLAN_GPIO_PIN18_CONFIG_MSB 13
790 #define WLAN_GPIO_PIN18_CONFIG_LSB 11
791 #define WLAN_GPIO_PIN18_CONFIG_MASK 0x00003800
792 #define WLAN_GPIO_PIN18_CONFIG_GET(x) (((x) & WLAN_GPIO_PIN18_CONFIG_ MASK) >> WLAN_GPIO_PIN18_CONFIG_LSB)
793 #define WLAN_GPIO_PIN18_CONFIG_SET(x) (((x) << WLAN_GPIO_PIN18_CONFIG _LSB) & WLAN_GPIO_PIN18_CONFIG_MASK)
794 #define WLAN_GPIO_PIN18_WAKEUP_ENABLE_MSB 10
795 #define WLAN_GPIO_PIN18_WAKEUP_ENABLE_LSB 10
796 #define WLAN_GPIO_PIN18_WAKEUP_ENABLE_MASK 0x00000400
797 #define WLAN_GPIO_PIN18_WAKEUP_ENABLE_GET(x) (((x) & WLAN_GPIO_PIN18_WAKEUP_ ENABLE_MASK) >> WLAN_GPIO_PIN18_WAKEUP_ENABLE_LSB)
798 #define WLAN_GPIO_PIN18_WAKEUP_ENABLE_SET(x) (((x) << WLAN_GPIO_PIN18_WAKEUP _ENABLE_LSB) & WLAN_GPIO_PIN18_WAKEUP_ENABLE_MASK)
799 #define WLAN_GPIO_PIN18_INT_TYPE_MSB 9
800 #define WLAN_GPIO_PIN18_INT_TYPE_LSB 7
801 #define WLAN_GPIO_PIN18_INT_TYPE_MASK 0x00000380
802 #define WLAN_GPIO_PIN18_INT_TYPE_GET(x) (((x) & WLAN_GPIO_PIN18_INT_TYP E_MASK) >> WLAN_GPIO_PIN18_INT_TYPE_LSB)
803 #define WLAN_GPIO_PIN18_INT_TYPE_SET(x) (((x) << WLAN_GPIO_PIN18_INT_TY PE_LSB) & WLAN_GPIO_PIN18_INT_TYPE_MASK)
804 #define WLAN_GPIO_PIN18_PAD_PULL_MSB 6
805 #define WLAN_GPIO_PIN18_PAD_PULL_LSB 5
806 #define WLAN_GPIO_PIN18_PAD_PULL_MASK 0x00000060
807 #define WLAN_GPIO_PIN18_PAD_PULL_GET(x) (((x) & WLAN_GPIO_PIN18_PAD_PUL L_MASK) >> WLAN_GPIO_PIN18_PAD_PULL_LSB)
808 #define WLAN_GPIO_PIN18_PAD_PULL_SET(x) (((x) << WLAN_GPIO_PIN18_PAD_PU LL_LSB) & WLAN_GPIO_PIN18_PAD_PULL_MASK)
809 #define WLAN_GPIO_PIN18_PAD_STRENGTH_MSB 4
810 #define WLAN_GPIO_PIN18_PAD_STRENGTH_LSB 3
811 #define WLAN_GPIO_PIN18_PAD_STRENGTH_MASK 0x00000018
812 #define WLAN_GPIO_PIN18_PAD_STRENGTH_GET(x) (((x) & WLAN_GPIO_PIN18_PAD_STR ENGTH_MASK) >> WLAN_GPIO_PIN18_PAD_STRENGTH_LSB)
813 #define WLAN_GPIO_PIN18_PAD_STRENGTH_SET(x) (((x) << WLAN_GPIO_PIN18_PAD_ST RENGTH_LSB) & WLAN_GPIO_PIN18_PAD_STRENGTH_MASK)
814 #define WLAN_GPIO_PIN18_PAD_DRIVER_MSB 2
815 #define WLAN_GPIO_PIN18_PAD_DRIVER_LSB 2
816 #define WLAN_GPIO_PIN18_PAD_DRIVER_MASK 0x00000004
817 #define WLAN_GPIO_PIN18_PAD_DRIVER_GET(x) (((x) & WLAN_GPIO_PIN18_PAD_DRI VER_MASK) >> WLAN_GPIO_PIN18_PAD_DRIVER_LSB)
818 #define WLAN_GPIO_PIN18_PAD_DRIVER_SET(x) (((x) << WLAN_GPIO_PIN18_PAD_DR IVER_LSB) & WLAN_GPIO_PIN18_PAD_DRIVER_MASK)
819 #define WLAN_GPIO_PIN18_SOURCE_MSB 0
820 #define WLAN_GPIO_PIN18_SOURCE_LSB 0
821 #define WLAN_GPIO_PIN18_SOURCE_MASK 0x00000001
822 #define WLAN_GPIO_PIN18_SOURCE_GET(x) (((x) & WLAN_GPIO_PIN18_SOURCE_ MASK) >> WLAN_GPIO_PIN18_SOURCE_LSB)
823 #define WLAN_GPIO_PIN18_SOURCE_SET(x) (((x) << WLAN_GPIO_PIN18_SOURCE _LSB) & WLAN_GPIO_PIN18_SOURCE_MASK)
824
825 #define WLAN_GPIO_PIN19_ADDRESS 0x00000074
826 #define WLAN_GPIO_PIN19_OFFSET 0x00000074
827 #define WLAN_GPIO_PIN19_CONFIG_MSB 13
828 #define WLAN_GPIO_PIN19_CONFIG_LSB 11
829 #define WLAN_GPIO_PIN19_CONFIG_MASK 0x00003800
830 #define WLAN_GPIO_PIN19_CONFIG_GET(x) (((x) & WLAN_GPIO_PIN19_CONFIG_ MASK) >> WLAN_GPIO_PIN19_CONFIG_LSB)
831 #define WLAN_GPIO_PIN19_CONFIG_SET(x) (((x) << WLAN_GPIO_PIN19_CONFIG _LSB) & WLAN_GPIO_PIN19_CONFIG_MASK)
832 #define WLAN_GPIO_PIN19_WAKEUP_ENABLE_MSB 10
833 #define WLAN_GPIO_PIN19_WAKEUP_ENABLE_LSB 10
834 #define WLAN_GPIO_PIN19_WAKEUP_ENABLE_MASK 0x00000400
835 #define WLAN_GPIO_PIN19_WAKEUP_ENABLE_GET(x) (((x) & WLAN_GPIO_PIN19_WAKEUP_ ENABLE_MASK) >> WLAN_GPIO_PIN19_WAKEUP_ENABLE_LSB)
836 #define WLAN_GPIO_PIN19_WAKEUP_ENABLE_SET(x) (((x) << WLAN_GPIO_PIN19_WAKEUP _ENABLE_LSB) & WLAN_GPIO_PIN19_WAKEUP_ENABLE_MASK)
837 #define WLAN_GPIO_PIN19_INT_TYPE_MSB 9
838 #define WLAN_GPIO_PIN19_INT_TYPE_LSB 7
839 #define WLAN_GPIO_PIN19_INT_TYPE_MASK 0x00000380
840 #define WLAN_GPIO_PIN19_INT_TYPE_GET(x) (((x) & WLAN_GPIO_PIN19_INT_TYP E_MASK) >> WLAN_GPIO_PIN19_INT_TYPE_LSB)
841 #define WLAN_GPIO_PIN19_INT_TYPE_SET(x) (((x) << WLAN_GPIO_PIN19_INT_TY PE_LSB) & WLAN_GPIO_PIN19_INT_TYPE_MASK)
842 #define WLAN_GPIO_PIN19_PAD_PULL_MSB 6
843 #define WLAN_GPIO_PIN19_PAD_PULL_LSB 5
844 #define WLAN_GPIO_PIN19_PAD_PULL_MASK 0x00000060
845 #define WLAN_GPIO_PIN19_PAD_PULL_GET(x) (((x) & WLAN_GPIO_PIN19_PAD_PUL L_MASK) >> WLAN_GPIO_PIN19_PAD_PULL_LSB)
846 #define WLAN_GPIO_PIN19_PAD_PULL_SET(x) (((x) << WLAN_GPIO_PIN19_PAD_PU LL_LSB) & WLAN_GPIO_PIN19_PAD_PULL_MASK)
847 #define WLAN_GPIO_PIN19_PAD_STRENGTH_MSB 4
848 #define WLAN_GPIO_PIN19_PAD_STRENGTH_LSB 3
849 #define WLAN_GPIO_PIN19_PAD_STRENGTH_MASK 0x00000018
850 #define WLAN_GPIO_PIN19_PAD_STRENGTH_GET(x) (((x) & WLAN_GPIO_PIN19_PAD_STR ENGTH_MASK) >> WLAN_GPIO_PIN19_PAD_STRENGTH_LSB)
851 #define WLAN_GPIO_PIN19_PAD_STRENGTH_SET(x) (((x) << WLAN_GPIO_PIN19_PAD_ST RENGTH_LSB) & WLAN_GPIO_PIN19_PAD_STRENGTH_MASK)
852 #define WLAN_GPIO_PIN19_PAD_DRIVER_MSB 2
853 #define WLAN_GPIO_PIN19_PAD_DRIVER_LSB 2
854 #define WLAN_GPIO_PIN19_PAD_DRIVER_MASK 0x00000004
855 #define WLAN_GPIO_PIN19_PAD_DRIVER_GET(x) (((x) & WLAN_GPIO_PIN19_PAD_DRI VER_MASK) >> WLAN_GPIO_PIN19_PAD_DRIVER_LSB)
856 #define WLAN_GPIO_PIN19_PAD_DRIVER_SET(x) (((x) << WLAN_GPIO_PIN19_PAD_DR IVER_LSB) & WLAN_GPIO_PIN19_PAD_DRIVER_MASK)
857 #define WLAN_GPIO_PIN19_SOURCE_MSB 0
858 #define WLAN_GPIO_PIN19_SOURCE_LSB 0
859 #define WLAN_GPIO_PIN19_SOURCE_MASK 0x00000001
860 #define WLAN_GPIO_PIN19_SOURCE_GET(x) (((x) & WLAN_GPIO_PIN19_SOURCE_ MASK) >> WLAN_GPIO_PIN19_SOURCE_LSB)
861 #define WLAN_GPIO_PIN19_SOURCE_SET(x) (((x) << WLAN_GPIO_PIN19_SOURCE _LSB) & WLAN_GPIO_PIN19_SOURCE_MASK)
862
863 #define WLAN_GPIO_PIN20_ADDRESS 0x00000078
864 #define WLAN_GPIO_PIN20_OFFSET 0x00000078
865 #define WLAN_GPIO_PIN20_CONFIG_MSB 13
866 #define WLAN_GPIO_PIN20_CONFIG_LSB 11
867 #define WLAN_GPIO_PIN20_CONFIG_MASK 0x00003800
868 #define WLAN_GPIO_PIN20_CONFIG_GET(x) (((x) & WLAN_GPIO_PIN20_CONFIG_ MASK) >> WLAN_GPIO_PIN20_CONFIG_LSB)
869 #define WLAN_GPIO_PIN20_CONFIG_SET(x) (((x) << WLAN_GPIO_PIN20_CONFIG _LSB) & WLAN_GPIO_PIN20_CONFIG_MASK)
870 #define WLAN_GPIO_PIN20_WAKEUP_ENABLE_MSB 10
871 #define WLAN_GPIO_PIN20_WAKEUP_ENABLE_LSB 10
872 #define WLAN_GPIO_PIN20_WAKEUP_ENABLE_MASK 0x00000400
873 #define WLAN_GPIO_PIN20_WAKEUP_ENABLE_GET(x) (((x) & WLAN_GPIO_PIN20_WAKEUP_ ENABLE_MASK) >> WLAN_GPIO_PIN20_WAKEUP_ENABLE_LSB)
874 #define WLAN_GPIO_PIN20_WAKEUP_ENABLE_SET(x) (((x) << WLAN_GPIO_PIN20_WAKEUP _ENABLE_LSB) & WLAN_GPIO_PIN20_WAKEUP_ENABLE_MASK)
875 #define WLAN_GPIO_PIN20_INT_TYPE_MSB 9
876 #define WLAN_GPIO_PIN20_INT_TYPE_LSB 7
877 #define WLAN_GPIO_PIN20_INT_TYPE_MASK 0x00000380
878 #define WLAN_GPIO_PIN20_INT_TYPE_GET(x) (((x) & WLAN_GPIO_PIN20_INT_TYP E_MASK) >> WLAN_GPIO_PIN20_INT_TYPE_LSB)
879 #define WLAN_GPIO_PIN20_INT_TYPE_SET(x) (((x) << WLAN_GPIO_PIN20_INT_TY PE_LSB) & WLAN_GPIO_PIN20_INT_TYPE_MASK)
880 #define WLAN_GPIO_PIN20_PAD_PULL_MSB 6
881 #define WLAN_GPIO_PIN20_PAD_PULL_LSB 5
882 #define WLAN_GPIO_PIN20_PAD_PULL_MASK 0x00000060
883 #define WLAN_GPIO_PIN20_PAD_PULL_GET(x) (((x) & WLAN_GPIO_PIN20_PAD_PUL L_MASK) >> WLAN_GPIO_PIN20_PAD_PULL_LSB)
884 #define WLAN_GPIO_PIN20_PAD_PULL_SET(x) (((x) << WLAN_GPIO_PIN20_PAD_PU LL_LSB) & WLAN_GPIO_PIN20_PAD_PULL_MASK)
885 #define WLAN_GPIO_PIN20_PAD_STRENGTH_MSB 4
886 #define WLAN_GPIO_PIN20_PAD_STRENGTH_LSB 3
887 #define WLAN_GPIO_PIN20_PAD_STRENGTH_MASK 0x00000018
888 #define WLAN_GPIO_PIN20_PAD_STRENGTH_GET(x) (((x) & WLAN_GPIO_PIN20_PAD_STR ENGTH_MASK) >> WLAN_GPIO_PIN20_PAD_STRENGTH_LSB)
889 #define WLAN_GPIO_PIN20_PAD_STRENGTH_SET(x) (((x) << WLAN_GPIO_PIN20_PAD_ST RENGTH_LSB) & WLAN_GPIO_PIN20_PAD_STRENGTH_MASK)
890 #define WLAN_GPIO_PIN20_PAD_DRIVER_MSB 2
891 #define WLAN_GPIO_PIN20_PAD_DRIVER_LSB 2
892 #define WLAN_GPIO_PIN20_PAD_DRIVER_MASK 0x00000004
893 #define WLAN_GPIO_PIN20_PAD_DRIVER_GET(x) (((x) & WLAN_GPIO_PIN20_PAD_DRI VER_MASK) >> WLAN_GPIO_PIN20_PAD_DRIVER_LSB)
894 #define WLAN_GPIO_PIN20_PAD_DRIVER_SET(x) (((x) << WLAN_GPIO_PIN20_PAD_DR IVER_LSB) & WLAN_GPIO_PIN20_PAD_DRIVER_MASK)
895 #define WLAN_GPIO_PIN20_SOURCE_MSB 0
896 #define WLAN_GPIO_PIN20_SOURCE_LSB 0
897 #define WLAN_GPIO_PIN20_SOURCE_MASK 0x00000001
898 #define WLAN_GPIO_PIN20_SOURCE_GET(x) (((x) & WLAN_GPIO_PIN20_SOURCE_ MASK) >> WLAN_GPIO_PIN20_SOURCE_LSB)
899 #define WLAN_GPIO_PIN20_SOURCE_SET(x) (((x) << WLAN_GPIO_PIN20_SOURCE _LSB) & WLAN_GPIO_PIN20_SOURCE_MASK)
900
901 #define WLAN_GPIO_PIN21_ADDRESS 0x0000007c
902 #define WLAN_GPIO_PIN21_OFFSET 0x0000007c
903 #define WLAN_GPIO_PIN21_CONFIG_MSB 13
904 #define WLAN_GPIO_PIN21_CONFIG_LSB 11
905 #define WLAN_GPIO_PIN21_CONFIG_MASK 0x00003800
906 #define WLAN_GPIO_PIN21_CONFIG_GET(x) (((x) & WLAN_GPIO_PIN21_CONFIG_ MASK) >> WLAN_GPIO_PIN21_CONFIG_LSB)
907 #define WLAN_GPIO_PIN21_CONFIG_SET(x) (((x) << WLAN_GPIO_PIN21_CONFIG _LSB) & WLAN_GPIO_PIN21_CONFIG_MASK)
908 #define WLAN_GPIO_PIN21_WAKEUP_ENABLE_MSB 10
909 #define WLAN_GPIO_PIN21_WAKEUP_ENABLE_LSB 10
910 #define WLAN_GPIO_PIN21_WAKEUP_ENABLE_MASK 0x00000400
911 #define WLAN_GPIO_PIN21_WAKEUP_ENABLE_GET(x) (((x) & WLAN_GPIO_PIN21_WAKEUP_ ENABLE_MASK) >> WLAN_GPIO_PIN21_WAKEUP_ENABLE_LSB)
912 #define WLAN_GPIO_PIN21_WAKEUP_ENABLE_SET(x) (((x) << WLAN_GPIO_PIN21_WAKEUP _ENABLE_LSB) & WLAN_GPIO_PIN21_WAKEUP_ENABLE_MASK)
913 #define WLAN_GPIO_PIN21_INT_TYPE_MSB 9
914 #define WLAN_GPIO_PIN21_INT_TYPE_LSB 7
915 #define WLAN_GPIO_PIN21_INT_TYPE_MASK 0x00000380
916 #define WLAN_GPIO_PIN21_INT_TYPE_GET(x) (((x) & WLAN_GPIO_PIN21_INT_TYP E_MASK) >> WLAN_GPIO_PIN21_INT_TYPE_LSB)
917 #define WLAN_GPIO_PIN21_INT_TYPE_SET(x) (((x) << WLAN_GPIO_PIN21_INT_TY PE_LSB) & WLAN_GPIO_PIN21_INT_TYPE_MASK)
918 #define WLAN_GPIO_PIN21_PAD_PULL_MSB 6
919 #define WLAN_GPIO_PIN21_PAD_PULL_LSB 5
920 #define WLAN_GPIO_PIN21_PAD_PULL_MASK 0x00000060
921 #define WLAN_GPIO_PIN21_PAD_PULL_GET(x) (((x) & WLAN_GPIO_PIN21_PAD_PUL L_MASK) >> WLAN_GPIO_PIN21_PAD_PULL_LSB)
922 #define WLAN_GPIO_PIN21_PAD_PULL_SET(x) (((x) << WLAN_GPIO_PIN21_PAD_PU LL_LSB) & WLAN_GPIO_PIN21_PAD_PULL_MASK)
923 #define WLAN_GPIO_PIN21_PAD_STRENGTH_MSB 4
924 #define WLAN_GPIO_PIN21_PAD_STRENGTH_LSB 3
925 #define WLAN_GPIO_PIN21_PAD_STRENGTH_MASK 0x00000018
926 #define WLAN_GPIO_PIN21_PAD_STRENGTH_GET(x) (((x) & WLAN_GPIO_PIN21_PAD_STR ENGTH_MASK) >> WLAN_GPIO_PIN21_PAD_STRENGTH_LSB)
927 #define WLAN_GPIO_PIN21_PAD_STRENGTH_SET(x) (((x) << WLAN_GPIO_PIN21_PAD_ST RENGTH_LSB) & WLAN_GPIO_PIN21_PAD_STRENGTH_MASK)
928 #define WLAN_GPIO_PIN21_PAD_DRIVER_MSB 2
929 #define WLAN_GPIO_PIN21_PAD_DRIVER_LSB 2
930 #define WLAN_GPIO_PIN21_PAD_DRIVER_MASK 0x00000004
931 #define WLAN_GPIO_PIN21_PAD_DRIVER_GET(x) (((x) & WLAN_GPIO_PIN21_PAD_DRI VER_MASK) >> WLAN_GPIO_PIN21_PAD_DRIVER_LSB)
932 #define WLAN_GPIO_PIN21_PAD_DRIVER_SET(x) (((x) << WLAN_GPIO_PIN21_PAD_DR IVER_LSB) & WLAN_GPIO_PIN21_PAD_DRIVER_MASK)
933 #define WLAN_GPIO_PIN21_SOURCE_MSB 0
934 #define WLAN_GPIO_PIN21_SOURCE_LSB 0
935 #define WLAN_GPIO_PIN21_SOURCE_MASK 0x00000001
936 #define WLAN_GPIO_PIN21_SOURCE_GET(x) (((x) & WLAN_GPIO_PIN21_SOURCE_ MASK) >> WLAN_GPIO_PIN21_SOURCE_LSB)
937 #define WLAN_GPIO_PIN21_SOURCE_SET(x) (((x) << WLAN_GPIO_PIN21_SOURCE _LSB) & WLAN_GPIO_PIN21_SOURCE_MASK)
938
939 #define WLAN_GPIO_PIN22_ADDRESS 0x00000080
940 #define WLAN_GPIO_PIN22_OFFSET 0x00000080
941 #define WLAN_GPIO_PIN22_CONFIG_MSB 13
942 #define WLAN_GPIO_PIN22_CONFIG_LSB 11
943 #define WLAN_GPIO_PIN22_CONFIG_MASK 0x00003800
944 #define WLAN_GPIO_PIN22_CONFIG_GET(x) (((x) & WLAN_GPIO_PIN22_CONFIG_ MASK) >> WLAN_GPIO_PIN22_CONFIG_LSB)
945 #define WLAN_GPIO_PIN22_CONFIG_SET(x) (((x) << WLAN_GPIO_PIN22_CONFIG _LSB) & WLAN_GPIO_PIN22_CONFIG_MASK)
946 #define WLAN_GPIO_PIN22_WAKEUP_ENABLE_MSB 10
947 #define WLAN_GPIO_PIN22_WAKEUP_ENABLE_LSB 10
948 #define WLAN_GPIO_PIN22_WAKEUP_ENABLE_MASK 0x00000400
949 #define WLAN_GPIO_PIN22_WAKEUP_ENABLE_GET(x) (((x) & WLAN_GPIO_PIN22_WAKEUP_ ENABLE_MASK) >> WLAN_GPIO_PIN22_WAKEUP_ENABLE_LSB)
950 #define WLAN_GPIO_PIN22_WAKEUP_ENABLE_SET(x) (((x) << WLAN_GPIO_PIN22_WAKEUP _ENABLE_LSB) & WLAN_GPIO_PIN22_WAKEUP_ENABLE_MASK)
951 #define WLAN_GPIO_PIN22_INT_TYPE_MSB 9
952 #define WLAN_GPIO_PIN22_INT_TYPE_LSB 7
953 #define WLAN_GPIO_PIN22_INT_TYPE_MASK 0x00000380
954 #define WLAN_GPIO_PIN22_INT_TYPE_GET(x) (((x) & WLAN_GPIO_PIN22_INT_TYP E_MASK) >> WLAN_GPIO_PIN22_INT_TYPE_LSB)
955 #define WLAN_GPIO_PIN22_INT_TYPE_SET(x) (((x) << WLAN_GPIO_PIN22_INT_TY PE_LSB) & WLAN_GPIO_PIN22_INT_TYPE_MASK)
956 #define WLAN_GPIO_PIN22_PAD_PULL_MSB 6
957 #define WLAN_GPIO_PIN22_PAD_PULL_LSB 5
958 #define WLAN_GPIO_PIN22_PAD_PULL_MASK 0x00000060
959 #define WLAN_GPIO_PIN22_PAD_PULL_GET(x) (((x) & WLAN_GPIO_PIN22_PAD_PUL L_MASK) >> WLAN_GPIO_PIN22_PAD_PULL_LSB)
960 #define WLAN_GPIO_PIN22_PAD_PULL_SET(x) (((x) << WLAN_GPIO_PIN22_PAD_PU LL_LSB) & WLAN_GPIO_PIN22_PAD_PULL_MASK)
961 #define WLAN_GPIO_PIN22_PAD_STRENGTH_MSB 4
962 #define WLAN_GPIO_PIN22_PAD_STRENGTH_LSB 3
963 #define WLAN_GPIO_PIN22_PAD_STRENGTH_MASK 0x00000018
964 #define WLAN_GPIO_PIN22_PAD_STRENGTH_GET(x) (((x) & WLAN_GPIO_PIN22_PAD_STR ENGTH_MASK) >> WLAN_GPIO_PIN22_PAD_STRENGTH_LSB)
965 #define WLAN_GPIO_PIN22_PAD_STRENGTH_SET(x) (((x) << WLAN_GPIO_PIN22_PAD_ST RENGTH_LSB) & WLAN_GPIO_PIN22_PAD_STRENGTH_MASK)
966 #define WLAN_GPIO_PIN22_PAD_DRIVER_MSB 2
967 #define WLAN_GPIO_PIN22_PAD_DRIVER_LSB 2
968 #define WLAN_GPIO_PIN22_PAD_DRIVER_MASK 0x00000004
969 #define WLAN_GPIO_PIN22_PAD_DRIVER_GET(x) (((x) & WLAN_GPIO_PIN22_PAD_DRI VER_MASK) >> WLAN_GPIO_PIN22_PAD_DRIVER_LSB)
970 #define WLAN_GPIO_PIN22_PAD_DRIVER_SET(x) (((x) << WLAN_GPIO_PIN22_PAD_DR IVER_LSB) & WLAN_GPIO_PIN22_PAD_DRIVER_MASK)
971 #define WLAN_GPIO_PIN22_SOURCE_MSB 0
972 #define WLAN_GPIO_PIN22_SOURCE_LSB 0
973 #define WLAN_GPIO_PIN22_SOURCE_MASK 0x00000001
974 #define WLAN_GPIO_PIN22_SOURCE_GET(x) (((x) & WLAN_GPIO_PIN22_SOURCE_ MASK) >> WLAN_GPIO_PIN22_SOURCE_LSB)
975 #define WLAN_GPIO_PIN22_SOURCE_SET(x) (((x) << WLAN_GPIO_PIN22_SOURCE _LSB) & WLAN_GPIO_PIN22_SOURCE_MASK)
976
977 #define WLAN_GPIO_PIN23_ADDRESS 0x00000084
978 #define WLAN_GPIO_PIN23_OFFSET 0x00000084
979 #define WLAN_GPIO_PIN23_CONFIG_MSB 13
980 #define WLAN_GPIO_PIN23_CONFIG_LSB 11
981 #define WLAN_GPIO_PIN23_CONFIG_MASK 0x00003800
982 #define WLAN_GPIO_PIN23_CONFIG_GET(x) (((x) & WLAN_GPIO_PIN23_CONFIG_ MASK) >> WLAN_GPIO_PIN23_CONFIG_LSB)
983 #define WLAN_GPIO_PIN23_CONFIG_SET(x) (((x) << WLAN_GPIO_PIN23_CONFIG _LSB) & WLAN_GPIO_PIN23_CONFIG_MASK)
984 #define WLAN_GPIO_PIN23_WAKEUP_ENABLE_MSB 10
985 #define WLAN_GPIO_PIN23_WAKEUP_ENABLE_LSB 10
986 #define WLAN_GPIO_PIN23_WAKEUP_ENABLE_MASK 0x00000400
987 #define WLAN_GPIO_PIN23_WAKEUP_ENABLE_GET(x) (((x) & WLAN_GPIO_PIN23_WAKEUP_ ENABLE_MASK) >> WLAN_GPIO_PIN23_WAKEUP_ENABLE_LSB)
988 #define WLAN_GPIO_PIN23_WAKEUP_ENABLE_SET(x) (((x) << WLAN_GPIO_PIN23_WAKEUP _ENABLE_LSB) & WLAN_GPIO_PIN23_WAKEUP_ENABLE_MASK)
989 #define WLAN_GPIO_PIN23_INT_TYPE_MSB 9
990 #define WLAN_GPIO_PIN23_INT_TYPE_LSB 7
991 #define WLAN_GPIO_PIN23_INT_TYPE_MASK 0x00000380
992 #define WLAN_GPIO_PIN23_INT_TYPE_GET(x) (((x) & WLAN_GPIO_PIN23_INT_TYP E_MASK) >> WLAN_GPIO_PIN23_INT_TYPE_LSB)
993 #define WLAN_GPIO_PIN23_INT_TYPE_SET(x) (((x) << WLAN_GPIO_PIN23_INT_TY PE_LSB) & WLAN_GPIO_PIN23_INT_TYPE_MASK)
994 #define WLAN_GPIO_PIN23_PAD_DRIVER_MSB 2
995 #define WLAN_GPIO_PIN23_PAD_DRIVER_LSB 2
996 #define WLAN_GPIO_PIN23_PAD_DRIVER_MASK 0x00000004
997 #define WLAN_GPIO_PIN23_PAD_DRIVER_GET(x) (((x) & WLAN_GPIO_PIN23_PAD_DRI VER_MASK) >> WLAN_GPIO_PIN23_PAD_DRIVER_LSB)
998 #define WLAN_GPIO_PIN23_PAD_DRIVER_SET(x) (((x) << WLAN_GPIO_PIN23_PAD_DR IVER_LSB) & WLAN_GPIO_PIN23_PAD_DRIVER_MASK)
999 #define WLAN_GPIO_PIN23_SOURCE_MSB 0
1000 #define WLAN_GPIO_PIN23_SOURCE_LSB 0
1001 #define WLAN_GPIO_PIN23_SOURCE_MASK 0x00000001
1002 #define WLAN_GPIO_PIN23_SOURCE_GET(x) (((x) & WLAN_GPIO_PIN23_SOURCE_ MASK) >> WLAN_GPIO_PIN23_SOURCE_LSB)
1003 #define WLAN_GPIO_PIN23_SOURCE_SET(x) (((x) << WLAN_GPIO_PIN23_SOURCE _LSB) & WLAN_GPIO_PIN23_SOURCE_MASK)
1004
1005 #define WLAN_GPIO_PIN24_ADDRESS 0x00000088
1006 #define WLAN_GPIO_PIN24_OFFSET 0x00000088
1007 #define WLAN_GPIO_PIN24_CONFIG_MSB 13
1008 #define WLAN_GPIO_PIN24_CONFIG_LSB 11
1009 #define WLAN_GPIO_PIN24_CONFIG_MASK 0x00003800
1010 #define WLAN_GPIO_PIN24_CONFIG_GET(x) (((x) & WLAN_GPIO_PIN24_CONFIG_ MASK) >> WLAN_GPIO_PIN24_CONFIG_LSB)
1011 #define WLAN_GPIO_PIN24_CONFIG_SET(x) (((x) << WLAN_GPIO_PIN24_CONFIG _LSB) & WLAN_GPIO_PIN24_CONFIG_MASK)
1012 #define WLAN_GPIO_PIN24_WAKEUP_ENABLE_MSB 10
1013 #define WLAN_GPIO_PIN24_WAKEUP_ENABLE_LSB 10
1014 #define WLAN_GPIO_PIN24_WAKEUP_ENABLE_MASK 0x00000400
1015 #define WLAN_GPIO_PIN24_WAKEUP_ENABLE_GET(x) (((x) & WLAN_GPIO_PIN24_WAKEUP_ ENABLE_MASK) >> WLAN_GPIO_PIN24_WAKEUP_ENABLE_LSB)
1016 #define WLAN_GPIO_PIN24_WAKEUP_ENABLE_SET(x) (((x) << WLAN_GPIO_PIN24_WAKEUP _ENABLE_LSB) & WLAN_GPIO_PIN24_WAKEUP_ENABLE_MASK)
1017 #define WLAN_GPIO_PIN24_INT_TYPE_MSB 9
1018 #define WLAN_GPIO_PIN24_INT_TYPE_LSB 7
1019 #define WLAN_GPIO_PIN24_INT_TYPE_MASK 0x00000380
1020 #define WLAN_GPIO_PIN24_INT_TYPE_GET(x) (((x) & WLAN_GPIO_PIN24_INT_TYP E_MASK) >> WLAN_GPIO_PIN24_INT_TYPE_LSB)
1021 #define WLAN_GPIO_PIN24_INT_TYPE_SET(x) (((x) << WLAN_GPIO_PIN24_INT_TY PE_LSB) & WLAN_GPIO_PIN24_INT_TYPE_MASK)
1022 #define WLAN_GPIO_PIN24_PAD_DRIVER_MSB 2
1023 #define WLAN_GPIO_PIN24_PAD_DRIVER_LSB 2
1024 #define WLAN_GPIO_PIN24_PAD_DRIVER_MASK 0x00000004
1025 #define WLAN_GPIO_PIN24_PAD_DRIVER_GET(x) (((x) & WLAN_GPIO_PIN24_PAD_DRI VER_MASK) >> WLAN_GPIO_PIN24_PAD_DRIVER_LSB)
1026 #define WLAN_GPIO_PIN24_PAD_DRIVER_SET(x) (((x) << WLAN_GPIO_PIN24_PAD_DR IVER_LSB) & WLAN_GPIO_PIN24_PAD_DRIVER_MASK)
1027 #define WLAN_GPIO_PIN24_SOURCE_MSB 0
1028 #define WLAN_GPIO_PIN24_SOURCE_LSB 0
1029 #define WLAN_GPIO_PIN24_SOURCE_MASK 0x00000001
1030 #define WLAN_GPIO_PIN24_SOURCE_GET(x) (((x) & WLAN_GPIO_PIN24_SOURCE_ MASK) >> WLAN_GPIO_PIN24_SOURCE_LSB)
1031 #define WLAN_GPIO_PIN24_SOURCE_SET(x) (((x) << WLAN_GPIO_PIN24_SOURCE _LSB) & WLAN_GPIO_PIN24_SOURCE_MASK)
1032
1033 #define WLAN_GPIO_PIN25_ADDRESS 0x0000008c
1034 #define WLAN_GPIO_PIN25_OFFSET 0x0000008c
1035 #define WLAN_GPIO_PIN25_CONFIG_MSB 13
1036 #define WLAN_GPIO_PIN25_CONFIG_LSB 11
1037 #define WLAN_GPIO_PIN25_CONFIG_MASK 0x00003800
1038 #define WLAN_GPIO_PIN25_CONFIG_GET(x) (((x) & WLAN_GPIO_PIN25_CONFIG_ MASK) >> WLAN_GPIO_PIN25_CONFIG_LSB)
1039 #define WLAN_GPIO_PIN25_CONFIG_SET(x) (((x) << WLAN_GPIO_PIN25_CONFIG _LSB) & WLAN_GPIO_PIN25_CONFIG_MASK)
1040 #define WLAN_GPIO_PIN25_WAKEUP_ENABLE_MSB 10
1041 #define WLAN_GPIO_PIN25_WAKEUP_ENABLE_LSB 10
1042 #define WLAN_GPIO_PIN25_WAKEUP_ENABLE_MASK 0x00000400
1043 #define WLAN_GPIO_PIN25_WAKEUP_ENABLE_GET(x) (((x) & WLAN_GPIO_PIN25_WAKEUP_ ENABLE_MASK) >> WLAN_GPIO_PIN25_WAKEUP_ENABLE_LSB)
1044 #define WLAN_GPIO_PIN25_WAKEUP_ENABLE_SET(x) (((x) << WLAN_GPIO_PIN25_WAKEUP _ENABLE_LSB) & WLAN_GPIO_PIN25_WAKEUP_ENABLE_MASK)
1045 #define WLAN_GPIO_PIN25_INT_TYPE_MSB 9
1046 #define WLAN_GPIO_PIN25_INT_TYPE_LSB 7
1047 #define WLAN_GPIO_PIN25_INT_TYPE_MASK 0x00000380
1048 #define WLAN_GPIO_PIN25_INT_TYPE_GET(x) (((x) & WLAN_GPIO_PIN25_INT_TYP E_MASK) >> WLAN_GPIO_PIN25_INT_TYPE_LSB)
1049 #define WLAN_GPIO_PIN25_INT_TYPE_SET(x) (((x) << WLAN_GPIO_PIN25_INT_TY PE_LSB) & WLAN_GPIO_PIN25_INT_TYPE_MASK)
1050 #define WLAN_GPIO_PIN25_PAD_DRIVER_MSB 2
1051 #define WLAN_GPIO_PIN25_PAD_DRIVER_LSB 2
1052 #define WLAN_GPIO_PIN25_PAD_DRIVER_MASK 0x00000004
1053 #define WLAN_GPIO_PIN25_PAD_DRIVER_GET(x) (((x) & WLAN_GPIO_PIN25_PAD_DRI VER_MASK) >> WLAN_GPIO_PIN25_PAD_DRIVER_LSB)
1054 #define WLAN_GPIO_PIN25_PAD_DRIVER_SET(x) (((x) << WLAN_GPIO_PIN25_PAD_DR IVER_LSB) & WLAN_GPIO_PIN25_PAD_DRIVER_MASK)
1055 #define WLAN_GPIO_PIN25_SOURCE_MSB 0
1056 #define WLAN_GPIO_PIN25_SOURCE_LSB 0
1057 #define WLAN_GPIO_PIN25_SOURCE_MASK 0x00000001
1058 #define WLAN_GPIO_PIN25_SOURCE_GET(x) (((x) & WLAN_GPIO_PIN25_SOURCE_ MASK) >> WLAN_GPIO_PIN25_SOURCE_LSB)
1059 #define WLAN_GPIO_PIN25_SOURCE_SET(x) (((x) << WLAN_GPIO_PIN25_SOURCE _LSB) & WLAN_GPIO_PIN25_SOURCE_MASK)
1060
1061 #define SDIO_ADDRESS 0x00000090
1062 #define SDIO_OFFSET 0x00000090
1063 #define SDIO_PINS_EN_MSB 0
1064 #define SDIO_PINS_EN_LSB 0
1065 #define SDIO_PINS_EN_MASK 0x00000001
1066 #define SDIO_PINS_EN_GET(x) (((x) & SDIO_PINS_EN_MASK) >> S DIO_PINS_EN_LSB)
1067 #define SDIO_PINS_EN_SET(x) (((x) << SDIO_PINS_EN_LSB) & SD IO_PINS_EN_MASK)
1068
1069 #define FUNC_BUS_ADDRESS 0x00000094
1070 #define FUNC_BUS_OFFSET 0x00000094
1071 #define FUNC_BUS_GPIO_MODE_MSB 22
1072 #define FUNC_BUS_GPIO_MODE_LSB 22
1073 #define FUNC_BUS_GPIO_MODE_MASK 0x00400000
1074 #define FUNC_BUS_GPIO_MODE_GET(x) (((x) & FUNC_BUS_GPIO_MODE_MASK ) >> FUNC_BUS_GPIO_MODE_LSB)
1075 #define FUNC_BUS_GPIO_MODE_SET(x) (((x) << FUNC_BUS_GPIO_MODE_LSB ) & FUNC_BUS_GPIO_MODE_MASK)
1076 #define FUNC_BUS_OE_L_MSB 21
1077 #define FUNC_BUS_OE_L_LSB 0
1078 #define FUNC_BUS_OE_L_MASK 0x003fffff
1079 #define FUNC_BUS_OE_L_GET(x) (((x) & FUNC_BUS_OE_L_MASK) >> FUNC_BUS_OE_L_LSB)
1080 #define FUNC_BUS_OE_L_SET(x) (((x) << FUNC_BUS_OE_L_LSB) & F UNC_BUS_OE_L_MASK)
1081
1082 #define WL_SOC_APB_ADDRESS 0x00000098
1083 #define WL_SOC_APB_OFFSET 0x00000098
1084 #define WL_SOC_APB_TOGGLE_MSB 0
1085 #define WL_SOC_APB_TOGGLE_LSB 0
1086 #define WL_SOC_APB_TOGGLE_MASK 0x00000001
1087 #define WL_SOC_APB_TOGGLE_GET(x) (((x) & WL_SOC_APB_TOGGLE_MASK) >> WL_SOC_APB_TOGGLE_LSB)
1088 #define WL_SOC_APB_TOGGLE_SET(x) (((x) << WL_SOC_APB_TOGGLE_LSB) & WL_SOC_APB_TOGGLE_MASK)
1089
1090 #define WLAN_SIGMA_DELTA_ADDRESS 0x0000009c
1091 #define WLAN_SIGMA_DELTA_OFFSET 0x0000009c
1092 #define WLAN_SIGMA_DELTA_ENABLE_MSB 16
1093 #define WLAN_SIGMA_DELTA_ENABLE_LSB 16
1094 #define WLAN_SIGMA_DELTA_ENABLE_MASK 0x00010000
1095 #define WLAN_SIGMA_DELTA_ENABLE_GET(x) (((x) & WLAN_SIGMA_DELTA_ENABLE _MASK) >> WLAN_SIGMA_DELTA_ENABLE_LSB)
1096 #define WLAN_SIGMA_DELTA_ENABLE_SET(x) (((x) << WLAN_SIGMA_DELTA_ENABL E_LSB) & WLAN_SIGMA_DELTA_ENABLE_MASK)
1097 #define WLAN_SIGMA_DELTA_PRESCALAR_MSB 15
1098 #define WLAN_SIGMA_DELTA_PRESCALAR_LSB 8
1099 #define WLAN_SIGMA_DELTA_PRESCALAR_MASK 0x0000ff00
1100 #define WLAN_SIGMA_DELTA_PRESCALAR_GET(x) (((x) & WLAN_SIGMA_DELTA_PRESCA LAR_MASK) >> WLAN_SIGMA_DELTA_PRESCALAR_LSB)
1101 #define WLAN_SIGMA_DELTA_PRESCALAR_SET(x) (((x) << WLAN_SIGMA_DELTA_PRESC ALAR_LSB) & WLAN_SIGMA_DELTA_PRESCALAR_MASK)
1102 #define WLAN_SIGMA_DELTA_TARGET_MSB 7
1103 #define WLAN_SIGMA_DELTA_TARGET_LSB 0
1104 #define WLAN_SIGMA_DELTA_TARGET_MASK 0x000000ff
1105 #define WLAN_SIGMA_DELTA_TARGET_GET(x) (((x) & WLAN_SIGMA_DELTA_TARGET _MASK) >> WLAN_SIGMA_DELTA_TARGET_LSB)
1106 #define WLAN_SIGMA_DELTA_TARGET_SET(x) (((x) << WLAN_SIGMA_DELTA_TARGE T_LSB) & WLAN_SIGMA_DELTA_TARGET_MASK)
1107
1108 #define WL_BOOTSTRAP_ADDRESS 0x000000a0
1109 #define WL_BOOTSTRAP_OFFSET 0x000000a0
1110 #define WL_BOOTSTRAP_STATUS_MSB 22
1111 #define WL_BOOTSTRAP_STATUS_LSB 0
1112 #define WL_BOOTSTRAP_STATUS_MASK 0x007fffff
1113 #define WL_BOOTSTRAP_STATUS_GET(x) (((x) & WL_BOOTSTRAP_STATUS_MAS K) >> WL_BOOTSTRAP_STATUS_LSB)
1114 #define WL_BOOTSTRAP_STATUS_SET(x) (((x) << WL_BOOTSTRAP_STATUS_LS B) & WL_BOOTSTRAP_STATUS_MASK)
1115
1116 #define CLOCK_GPIO_ADDRESS 0x000000a4
1117 #define CLOCK_GPIO_OFFSET 0x000000a4
1118 #define CLOCK_GPIO_CLK_REQ_OUT_EN_MSB 2
1119 #define CLOCK_GPIO_CLK_REQ_OUT_EN_LSB 2
1120 #define CLOCK_GPIO_CLK_REQ_OUT_EN_MASK 0x00000004
1121 #define CLOCK_GPIO_CLK_REQ_OUT_EN_GET(x) (((x) & CLOCK_GPIO_CLK_REQ_OUT_ EN_MASK) >> CLOCK_GPIO_CLK_REQ_OUT_EN_LSB)
1122 #define CLOCK_GPIO_CLK_REQ_OUT_EN_SET(x) (((x) << CLOCK_GPIO_CLK_REQ_OUT _EN_LSB) & CLOCK_GPIO_CLK_REQ_OUT_EN_MASK)
1123 #define CLOCK_GPIO_BT_CLK_REQ_EN_MSB 1
1124 #define CLOCK_GPIO_BT_CLK_REQ_EN_LSB 1
1125 #define CLOCK_GPIO_BT_CLK_REQ_EN_MASK 0x00000002
1126 #define CLOCK_GPIO_BT_CLK_REQ_EN_GET(x) (((x) & CLOCK_GPIO_BT_CLK_REQ_E N_MASK) >> CLOCK_GPIO_BT_CLK_REQ_EN_LSB)
1127 #define CLOCK_GPIO_BT_CLK_REQ_EN_SET(x) (((x) << CLOCK_GPIO_BT_CLK_REQ_ EN_LSB) & CLOCK_GPIO_BT_CLK_REQ_EN_MASK)
1128 #define CLOCK_GPIO_BT_CLK_OUT_EN_MSB 0
1129 #define CLOCK_GPIO_BT_CLK_OUT_EN_LSB 0
1130 #define CLOCK_GPIO_BT_CLK_OUT_EN_MASK 0x00000001
1131 #define CLOCK_GPIO_BT_CLK_OUT_EN_GET(x) (((x) & CLOCK_GPIO_BT_CLK_OUT_E N_MASK) >> CLOCK_GPIO_BT_CLK_OUT_EN_LSB)
1132 #define CLOCK_GPIO_BT_CLK_OUT_EN_SET(x) (((x) << CLOCK_GPIO_BT_CLK_OUT_ EN_LSB) & CLOCK_GPIO_BT_CLK_OUT_EN_MASK)
1133
1134 #define WLAN_DEBUG_CONTROL_ADDRESS 0x000000a8
1135 #define WLAN_DEBUG_CONTROL_OFFSET 0x000000a8
1136 #define WLAN_DEBUG_CONTROL_ENABLE_MSB 0
1137 #define WLAN_DEBUG_CONTROL_ENABLE_LSB 0
1138 #define WLAN_DEBUG_CONTROL_ENABLE_MASK 0x00000001
1139 #define WLAN_DEBUG_CONTROL_ENABLE_GET(x) (((x) & WLAN_DEBUG_CONTROL_ENAB LE_MASK) >> WLAN_DEBUG_CONTROL_ENABLE_LSB)
1140 #define WLAN_DEBUG_CONTROL_ENABLE_SET(x) (((x) << WLAN_DEBUG_CONTROL_ENA BLE_LSB) & WLAN_DEBUG_CONTROL_ENABLE_MASK)
1141
1142 #define WLAN_DEBUG_INPUT_SEL_ADDRESS 0x000000ac
1143 #define WLAN_DEBUG_INPUT_SEL_OFFSET 0x000000ac
1144 #define WLAN_DEBUG_INPUT_SEL_SHIFT_MSB 5
1145 #define WLAN_DEBUG_INPUT_SEL_SHIFT_LSB 4
1146 #define WLAN_DEBUG_INPUT_SEL_SHIFT_MASK 0x00000030
1147 #define WLAN_DEBUG_INPUT_SEL_SHIFT_GET(x) (((x) & WLAN_DEBUG_INPUT_SEL_SH IFT_MASK) >> WLAN_DEBUG_INPUT_SEL_SHIFT_LSB)
1148 #define WLAN_DEBUG_INPUT_SEL_SHIFT_SET(x) (((x) << WLAN_DEBUG_INPUT_SEL_S HIFT_LSB) & WLAN_DEBUG_INPUT_SEL_SHIFT_MASK)
1149 #define WLAN_DEBUG_INPUT_SEL_SRC_MSB 3
1150 #define WLAN_DEBUG_INPUT_SEL_SRC_LSB 0
1151 #define WLAN_DEBUG_INPUT_SEL_SRC_MASK 0x0000000f
1152 #define WLAN_DEBUG_INPUT_SEL_SRC_GET(x) (((x) & WLAN_DEBUG_INPUT_SEL_SR C_MASK) >> WLAN_DEBUG_INPUT_SEL_SRC_LSB)
1153 #define WLAN_DEBUG_INPUT_SEL_SRC_SET(x) (((x) << WLAN_DEBUG_INPUT_SEL_S RC_LSB) & WLAN_DEBUG_INPUT_SEL_SRC_MASK)
1154
1155 #define WLAN_DEBUG_OUT_ADDRESS 0x000000b0
1156 #define WLAN_DEBUG_OUT_OFFSET 0x000000b0
1157 #define WLAN_DEBUG_OUT_DATA_MSB 17
1158 #define WLAN_DEBUG_OUT_DATA_LSB 0
1159 #define WLAN_DEBUG_OUT_DATA_MASK 0x0003ffff
1160 #define WLAN_DEBUG_OUT_DATA_GET(x) (((x) & WLAN_DEBUG_OUT_DATA_MAS K) >> WLAN_DEBUG_OUT_DATA_LSB)
1161 #define WLAN_DEBUG_OUT_DATA_SET(x) (((x) << WLAN_DEBUG_OUT_DATA_LS B) & WLAN_DEBUG_OUT_DATA_MASK)
1162
1163 #define WLAN_RESET_TUPLE_STATUS_ADDRESS 0x000000b4
1164 #define WLAN_RESET_TUPLE_STATUS_OFFSET 0x000000b4
1165 #define WLAN_RESET_TUPLE_STATUS_TEST_RESET_TUPLE_MSB 11
1166 #define WLAN_RESET_TUPLE_STATUS_TEST_RESET_TUPLE_LSB 8
1167 #define WLAN_RESET_TUPLE_STATUS_TEST_RESET_TUPLE_MASK 0x00000f00
1168 #define WLAN_RESET_TUPLE_STATUS_TEST_RESET_TUPLE_GET(x) (((x) & WLAN_RESET_TUPLE _STATUS_TEST_RESET_TUPLE_MASK) >> WLAN_RESET_TUPLE_STATUS_TEST_RESET_TUPLE_LSB)
1169 #define WLAN_RESET_TUPLE_STATUS_TEST_RESET_TUPLE_SET(x) (((x) << WLAN_RESET_TUPL E_STATUS_TEST_RESET_TUPLE_LSB) & WLAN_RESET_TUPLE_STATUS_TEST_RESET_TUPLE_MASK)
1170 #define WLAN_RESET_TUPLE_STATUS_PIN_RESET_TUPLE_MSB 7
1171 #define WLAN_RESET_TUPLE_STATUS_PIN_RESET_TUPLE_LSB 0
1172 #define WLAN_RESET_TUPLE_STATUS_PIN_RESET_TUPLE_MASK 0x000000ff
1173 #define WLAN_RESET_TUPLE_STATUS_PIN_RESET_TUPLE_GET(x) (((x) & WLAN_RESET_TUPLE_ STATUS_PIN_RESET_TUPLE_MASK) >> WLAN_RESET_TUPLE_STATUS_PIN_RESET_TUPLE_LSB)
1174 #define WLAN_RESET_TUPLE_STATUS_PIN_RESET_TUPLE_SET(x) (((x) << WLAN_RESET_TUPLE _STATUS_PIN_RESET_TUPLE_LSB) & WLAN_RESET_TUPLE_STATUS_PIN_RESET_TUPLE_MASK)
1175
1176 #define ANTENNA_SLEEP_CONTROL_ADDRESS 0x000000b8
1177 #define ANTENNA_SLEEP_CONTROL_OFFSET 0x000000b8
1178 #define ANTENNA_SLEEP_CONTROL_OVERRIDE_MSB 14
1179 #define ANTENNA_SLEEP_CONTROL_OVERRIDE_LSB 10
1180 #define ANTENNA_SLEEP_CONTROL_OVERRIDE_MASK 0x00007c00
1181 #define ANTENNA_SLEEP_CONTROL_OVERRIDE_GET(x) (((x) & ANTENNA_SLEEP_CONTROL_O VERRIDE_MASK) >> ANTENNA_SLEEP_CONTROL_OVERRIDE_LSB)
1182 #define ANTENNA_SLEEP_CONTROL_OVERRIDE_SET(x) (((x) << ANTENNA_SLEEP_CONTROL_ OVERRIDE_LSB) & ANTENNA_SLEEP_CONTROL_OVERRIDE_MASK)
1183 #define ANTENNA_SLEEP_CONTROL_VALUE_MSB 9
1184 #define ANTENNA_SLEEP_CONTROL_VALUE_LSB 5
1185 #define ANTENNA_SLEEP_CONTROL_VALUE_MASK 0x000003e0
1186 #define ANTENNA_SLEEP_CONTROL_VALUE_GET(x) (((x) & ANTENNA_SLEEP_CONTROL_V ALUE_MASK) >> ANTENNA_SLEEP_CONTROL_VALUE_LSB)
1187 #define ANTENNA_SLEEP_CONTROL_VALUE_SET(x) (((x) << ANTENNA_SLEEP_CONTROL_ VALUE_LSB) & ANTENNA_SLEEP_CONTROL_VALUE_MASK)
1188 #define ANTENNA_SLEEP_CONTROL_ENABLE_MSB 4
1189 #define ANTENNA_SLEEP_CONTROL_ENABLE_LSB 0
1190 #define ANTENNA_SLEEP_CONTROL_ENABLE_MASK 0x0000001f
1191 #define ANTENNA_SLEEP_CONTROL_ENABLE_GET(x) (((x) & ANTENNA_SLEEP_CONTROL_E NABLE_MASK) >> ANTENNA_SLEEP_CONTROL_ENABLE_LSB)
1192 #define ANTENNA_SLEEP_CONTROL_ENABLE_SET(x) (((x) << ANTENNA_SLEEP_CONTROL_ ENABLE_LSB) & ANTENNA_SLEEP_CONTROL_ENABLE_MASK)
1193
1194
1195 #ifndef __ASSEMBLER__
1196
1197 typedef struct gpio_athr_wlan_reg_reg_s {
1198 volatile unsigned int wlan_gpio_out;
1199 volatile unsigned int wlan_gpio_out_w1ts;
1200 volatile unsigned int wlan_gpio_out_w1tc;
1201 volatile unsigned int wlan_gpio_enable;
1202 volatile unsigned int wlan_gpio_enable_w1ts;
1203 volatile unsigned int wlan_gpio_enable_w1tc;
1204 volatile unsigned int wlan_gpio_in;
1205 volatile unsigned int wlan_gpio_status;
1206 volatile unsigned int wlan_gpio_status_w1ts;
1207 volatile unsigned int wlan_gpio_status_w1tc;
1208 volatile unsigned int wlan_gpio_pin0;
1209 volatile unsigned int wlan_gpio_pin1;
1210 volatile unsigned int wlan_gpio_pin2;
1211 volatile unsigned int wlan_gpio_pin3;
1212 volatile unsigned int wlan_gpio_pin4;
1213 volatile unsigned int wlan_gpio_pin5;
1214 volatile unsigned int wlan_gpio_pin6;
1215 volatile unsigned int wlan_gpio_pin7;
1216 volatile unsigned int wlan_gpio_pin8;
1217 volatile unsigned int wlan_gpio_pin9;
1218 volatile unsigned int wlan_gpio_pin10;
1219 volatile unsigned int wlan_gpio_pin11;
1220 volatile unsigned int wlan_gpio_pin12;
1221 volatile unsigned int wlan_gpio_pin13;
1222 volatile unsigned int wlan_gpio_pin14;
1223 volatile unsigned int wlan_gpio_pin15;
1224 volatile unsigned int wlan_gpio_pin16;
1225 volatile unsigned int wlan_gpio_pin17;
1226 volatile unsigned int wlan_gpio_pin18;
1227 volatile unsigned int wlan_gpio_pin19;
1228 volatile unsigned int wlan_gpio_pin20;
1229 volatile unsigned int wlan_gpio_pin21;
1230 volatile unsigned int wlan_gpio_pin22;
1231 volatile unsigned int wlan_gpio_pin23;
1232 volatile unsigned int wlan_gpio_pin24;
1233 volatile unsigned int wlan_gpio_pin25;
1234 volatile unsigned int sdio;
1235 volatile unsigned int func_bus;
1236 volatile unsigned int wl_soc_apb;
1237 volatile unsigned int wlan_sigma_delta;
1238 volatile unsigned int wl_bootstrap;
1239 volatile unsigned int clock_gpio;
1240 volatile unsigned int wlan_debug_control;
1241 volatile unsigned int wlan_debug_input_sel;
1242 volatile unsigned int wlan_debug_out;
1243 volatile unsigned int wlan_reset_tuple_status;
1244 volatile unsigned int antenna_sleep_control;
1245 } gpio_athr_wlan_reg_reg_t;
1246
1247 #endif /* __ASSEMBLER__ */
1248
1249 #endif /* _GPIO_ATHR_WLAN_REG_H_ */
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698