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