diff options
Diffstat (limited to 'include/asm-mips/sibyte/sb1250_genbus.h')
-rw-r--r-- | include/asm-mips/sibyte/sb1250_genbus.h | 225 |
1 files changed, 212 insertions, 13 deletions
diff --git a/include/asm-mips/sibyte/sb1250_genbus.h b/include/asm-mips/sibyte/sb1250_genbus.h index f1f509f295c..0ce9957e8a7 100644 --- a/include/asm-mips/sibyte/sb1250_genbus.h +++ b/include/asm-mips/sibyte/sb1250_genbus.h | |||
@@ -51,19 +51,21 @@ | |||
51 | #define M_IO_WIDTH_SEL _SB_MAKEMASK(2,S_IO_WIDTH_SEL) | 51 | #define M_IO_WIDTH_SEL _SB_MAKEMASK(2,S_IO_WIDTH_SEL) |
52 | #define K_IO_WIDTH_SEL_1 0 | 52 | #define K_IO_WIDTH_SEL_1 0 |
53 | #define K_IO_WIDTH_SEL_2 1 | 53 | #define K_IO_WIDTH_SEL_2 1 |
54 | #if SIBYTE_HDR_FEATURE(1250, PASS2) || SIBYTE_HDR_FEATURE(112x, PASS1) | 54 | #if SIBYTE_HDR_FEATURE(1250, PASS2) || SIBYTE_HDR_FEATURE(112x, PASS1) \ |
55 | || SIBYTE_HDR_FEATURE_CHIP(1480) | ||
55 | #define K_IO_WIDTH_SEL_1L 2 | 56 | #define K_IO_WIDTH_SEL_1L 2 |
56 | #endif /* 1250 PASS2 || 112x PASS1 */ | 57 | #endif /* 1250 PASS2 || 112x PASS1 || 1480 */ |
57 | #define K_IO_WIDTH_SEL_4 3 | 58 | #define K_IO_WIDTH_SEL_4 3 |
58 | #define V_IO_WIDTH_SEL(x) _SB_MAKEVALUE(x,S_IO_WIDTH_SEL) | 59 | #define V_IO_WIDTH_SEL(x) _SB_MAKEVALUE(x,S_IO_WIDTH_SEL) |
59 | #define G_IO_WIDTH_SEL(x) _SB_GETVALUE(x,S_IO_WIDTH_SEL,M_IO_WIDTH_SEL) | 60 | #define G_IO_WIDTH_SEL(x) _SB_GETVALUE(x,S_IO_WIDTH_SEL,M_IO_WIDTH_SEL) |
60 | 61 | ||
61 | #define S_IO_PARITY_ENA 4 | 62 | #define S_IO_PARITY_ENA 4 |
62 | #define M_IO_PARITY_ENA _SB_MAKEMASK1(S_IO_PARITY_ENA) | 63 | #define M_IO_PARITY_ENA _SB_MAKEMASK1(S_IO_PARITY_ENA) |
63 | #if SIBYTE_HDR_FEATURE(1250, PASS2) || SIBYTE_HDR_FEATURE(112x, PASS1) | 64 | #if SIBYTE_HDR_FEATURE(1250, PASS2) || SIBYTE_HDR_FEATURE(112x, PASS1) \ |
65 | || SIBYTE_HDR_FEATURE_CHIP(1480) | ||
64 | #define S_IO_BURST_EN 5 | 66 | #define S_IO_BURST_EN 5 |
65 | #define M_IO_BURST_EN _SB_MAKEMASK1(S_IO_BURST_EN) | 67 | #define M_IO_BURST_EN _SB_MAKEMASK1(S_IO_BURST_EN) |
66 | #endif /* 1250 PASS2 || 112x PASS1 */ | 68 | #endif /* 1250 PASS2 || 112x PASS1 || 1480 */ |
67 | #define S_IO_PARITY_ODD 6 | 69 | #define S_IO_PARITY_ODD 6 |
68 | #define M_IO_PARITY_ODD _SB_MAKEMASK1(S_IO_PARITY_ODD) | 70 | #define M_IO_PARITY_ODD _SB_MAKEMASK1(S_IO_PARITY_ODD) |
69 | #define S_IO_NONMUX 7 | 71 | #define S_IO_NONMUX 7 |
@@ -96,8 +98,11 @@ | |||
96 | 98 | ||
97 | #define S_IO_ADDRBASE 16 /* # bits to shift addr for this reg */ | 99 | #define S_IO_ADDRBASE 16 /* # bits to shift addr for this reg */ |
98 | 100 | ||
101 | #define M_IO_BLK_CACHE _SB_MAKEMASK1(15) | ||
102 | |||
103 | |||
99 | /* | 104 | /* |
100 | * Generic Bus Region 0 Timing Registers (Table 11-7) | 105 | * Generic Bus Timing 0 Registers (Table 11-7) |
101 | */ | 106 | */ |
102 | 107 | ||
103 | #define S_IO_ALE_WIDTH 0 | 108 | #define S_IO_ALE_WIDTH 0 |
@@ -105,21 +110,23 @@ | |||
105 | #define V_IO_ALE_WIDTH(x) _SB_MAKEVALUE(x,S_IO_ALE_WIDTH) | 110 | #define V_IO_ALE_WIDTH(x) _SB_MAKEVALUE(x,S_IO_ALE_WIDTH) |
106 | #define G_IO_ALE_WIDTH(x) _SB_GETVALUE(x,S_IO_ALE_WIDTH,M_IO_ALE_WIDTH) | 111 | #define G_IO_ALE_WIDTH(x) _SB_GETVALUE(x,S_IO_ALE_WIDTH,M_IO_ALE_WIDTH) |
107 | 112 | ||
108 | #if SIBYTE_HDR_FEATURE(1250, PASS2) || SIBYTE_HDR_FEATURE(112x, PASS1) | 113 | #if SIBYTE_HDR_FEATURE(1250, PASS2) || SIBYTE_HDR_FEATURE(112x, PASS1) \ |
114 | || SIBYTE_HDR_FEATURE_CHIP(1480) | ||
109 | #define M_IO_EARLY_CS _SB_MAKEMASK1(3) | 115 | #define M_IO_EARLY_CS _SB_MAKEMASK1(3) |
110 | #endif /* 1250 PASS2 || 112x PASS1 */ | 116 | #endif /* 1250 PASS2 || 112x PASS1 || 1480 */ |
111 | 117 | ||
112 | #define S_IO_ALE_TO_CS 4 | 118 | #define S_IO_ALE_TO_CS 4 |
113 | #define M_IO_ALE_TO_CS _SB_MAKEMASK(2,S_IO_ALE_TO_CS) | 119 | #define M_IO_ALE_TO_CS _SB_MAKEMASK(2,S_IO_ALE_TO_CS) |
114 | #define V_IO_ALE_TO_CS(x) _SB_MAKEVALUE(x,S_IO_ALE_TO_CS) | 120 | #define V_IO_ALE_TO_CS(x) _SB_MAKEVALUE(x,S_IO_ALE_TO_CS) |
115 | #define G_IO_ALE_TO_CS(x) _SB_GETVALUE(x,S_IO_ALE_TO_CS,M_IO_ALE_TO_CS) | 121 | #define G_IO_ALE_TO_CS(x) _SB_GETVALUE(x,S_IO_ALE_TO_CS,M_IO_ALE_TO_CS) |
116 | 122 | ||
117 | #if SIBYTE_HDR_FEATURE(1250, PASS2) || SIBYTE_HDR_FEATURE(112x, PASS1) | 123 | #if SIBYTE_HDR_FEATURE(1250, PASS2) || SIBYTE_HDR_FEATURE(112x, PASS1) \ |
124 | || SIBYTE_HDR_FEATURE_CHIP(1480) | ||
118 | #define S_IO_BURST_WIDTH _SB_MAKE64(6) | 125 | #define S_IO_BURST_WIDTH _SB_MAKE64(6) |
119 | #define M_IO_BURST_WIDTH _SB_MAKEMASK(2,S_IO_BURST_WIDTH) | 126 | #define M_IO_BURST_WIDTH _SB_MAKEMASK(2,S_IO_BURST_WIDTH) |
120 | #define V_IO_BURST_WIDTH(x) _SB_MAKEVALUE(x,S_IO_BURST_WIDTH) | 127 | #define V_IO_BURST_WIDTH(x) _SB_MAKEVALUE(x,S_IO_BURST_WIDTH) |
121 | #define G_IO_BURST_WIDTH(x) _SB_GETVALUE(x,S_IO_BURST_WIDTH,M_IO_BURST_WIDTH) | 128 | #define G_IO_BURST_WIDTH(x) _SB_GETVALUE(x,S_IO_BURST_WIDTH,M_IO_BURST_WIDTH) |
122 | #endif /* 1250 PASS2 || 112x PASS1 */ | 129 | #endif /* 1250 PASS2 || 112x PASS1 || 1480 */ |
123 | 130 | ||
124 | #define S_IO_CS_WIDTH 8 | 131 | #define S_IO_CS_WIDTH 8 |
125 | #define M_IO_CS_WIDTH _SB_MAKEMASK(5,S_IO_CS_WIDTH) | 132 | #define M_IO_CS_WIDTH _SB_MAKEMASK(5,S_IO_CS_WIDTH) |
@@ -141,9 +148,10 @@ | |||
141 | #define V_IO_ALE_TO_WRITE(x) _SB_MAKEVALUE(x,S_IO_ALE_TO_WRITE) | 148 | #define V_IO_ALE_TO_WRITE(x) _SB_MAKEVALUE(x,S_IO_ALE_TO_WRITE) |
142 | #define G_IO_ALE_TO_WRITE(x) _SB_GETVALUE(x,S_IO_ALE_TO_WRITE,M_IO_ALE_TO_WRITE) | 149 | #define G_IO_ALE_TO_WRITE(x) _SB_GETVALUE(x,S_IO_ALE_TO_WRITE,M_IO_ALE_TO_WRITE) |
143 | 150 | ||
144 | #if SIBYTE_HDR_FEATURE(1250, PASS2) || SIBYTE_HDR_FEATURE(112x, PASS1) | 151 | #if SIBYTE_HDR_FEATURE(1250, PASS2) || SIBYTE_HDR_FEATURE(112x, PASS1) \ |
152 | || SIBYTE_HDR_FEATURE_CHIP(1480) | ||
145 | #define M_IO_RDY_SYNC _SB_MAKEMASK1(3) | 153 | #define M_IO_RDY_SYNC _SB_MAKEMASK1(3) |
146 | #endif /* 1250 PASS2 || 112x PASS1 */ | 154 | #endif /* 1250 PASS2 || 112x PASS1 || 1480 */ |
147 | 155 | ||
148 | #define S_IO_WRITE_WIDTH 4 | 156 | #define S_IO_WRITE_WIDTH 4 |
149 | #define M_IO_WRITE_WIDTH _SB_MAKEMASK(4,S_IO_WRITE_WIDTH) | 157 | #define M_IO_WRITE_WIDTH _SB_MAKEMASK(4,S_IO_WRITE_WIDTH) |
@@ -183,9 +191,127 @@ | |||
183 | #define M_IO_TIMEOUT_INT _SB_MAKEMASK1(10) | 191 | #define M_IO_TIMEOUT_INT _SB_MAKEMASK1(10) |
184 | #define M_IO_ILL_ADDR_INT _SB_MAKEMASK1(11) | 192 | #define M_IO_ILL_ADDR_INT _SB_MAKEMASK1(11) |
185 | #define M_IO_MULT_CS_INT _SB_MAKEMASK1(12) | 193 | #define M_IO_MULT_CS_INT _SB_MAKEMASK1(12) |
186 | #if SIBYTE_HDR_FEATURE(1250, PASS2) || SIBYTE_HDR_FEATURE(112x, PASS1) | 194 | #if SIBYTE_HDR_FEATURE(1250, PASS2) || SIBYTE_HDR_FEATURE(112x, PASS1) || SIBYTE_HDR_FEATURE_CHIP(1480) |
187 | #define M_IO_COH_ERR _SB_MAKEMASK1(14) | 195 | #define M_IO_COH_ERR _SB_MAKEMASK1(14) |
188 | #endif /* 1250 PASS2 || 112x PASS1 */ | 196 | #endif /* 1250 PASS2 || 112x PASS1 || 1480 */ |
197 | |||
198 | |||
199 | /* | ||
200 | * Generic Bus Output Drive Control Register 0 (Table 14-18) | ||
201 | */ | ||
202 | |||
203 | #define S_IO_SLEW0 0 | ||
204 | #define M_IO_SLEW0 _SB_MAKEMASK(2,S_IO_SLEW0) | ||
205 | #define V_IO_SLEW0(x) _SB_MAKEVALUE(x,S_IO_SLEW0) | ||
206 | #define G_IO_SLEW0(x) _SB_GETVALUE(x,S_IO_SLEW0,M_IO_SLEW0) | ||
207 | |||
208 | #define S_IO_DRV_A 2 | ||
209 | #define M_IO_DRV_A _SB_MAKEMASK(2,S_IO_DRV_A) | ||
210 | #define V_IO_DRV_A(x) _SB_MAKEVALUE(x,S_IO_DRV_A) | ||
211 | #define G_IO_DRV_A(x) _SB_GETVALUE(x,S_IO_DRV_A,M_IO_DRV_A) | ||
212 | |||
213 | #define S_IO_DRV_B 6 | ||
214 | #define M_IO_DRV_B _SB_MAKEMASK(2,S_IO_DRV_B) | ||
215 | #define V_IO_DRV_B(x) _SB_MAKEVALUE(x,S_IO_DRV_B) | ||
216 | #define G_IO_DRV_B(x) _SB_GETVALUE(x,S_IO_DRV_B,M_IO_DRV_B) | ||
217 | |||
218 | #define S_IO_DRV_C 10 | ||
219 | #define M_IO_DRV_C _SB_MAKEMASK(2,S_IO_DRV_C) | ||
220 | #define V_IO_DRV_C(x) _SB_MAKEVALUE(x,S_IO_DRV_C) | ||
221 | #define G_IO_DRV_C(x) _SB_GETVALUE(x,S_IO_DRV_C,M_IO_DRV_C) | ||
222 | |||
223 | #define S_IO_DRV_D 14 | ||
224 | #define M_IO_DRV_D _SB_MAKEMASK(2,S_IO_DRV_D) | ||
225 | #define V_IO_DRV_D(x) _SB_MAKEVALUE(x,S_IO_DRV_D) | ||
226 | #define G_IO_DRV_D(x) _SB_GETVALUE(x,S_IO_DRV_D,M_IO_DRV_D) | ||
227 | |||
228 | /* | ||
229 | * Generic Bus Output Drive Control Register 1 (Table 14-19) | ||
230 | */ | ||
231 | |||
232 | #define S_IO_DRV_E 2 | ||
233 | #define M_IO_DRV_E _SB_MAKEMASK(2,S_IO_DRV_E) | ||
234 | #define V_IO_DRV_E(x) _SB_MAKEVALUE(x,S_IO_DRV_E) | ||
235 | #define G_IO_DRV_E(x) _SB_GETVALUE(x,S_IO_DRV_E,M_IO_DRV_E) | ||
236 | |||
237 | #define S_IO_DRV_F 6 | ||
238 | #define M_IO_DRV_F _SB_MAKEMASK(2,S_IO_DRV_F) | ||
239 | #define V_IO_DRV_F(x) _SB_MAKEVALUE(x,S_IO_DRV_F) | ||
240 | #define G_IO_DRV_F(x) _SB_GETVALUE(x,S_IO_DRV_F,M_IO_DRV_F) | ||
241 | |||
242 | #define S_IO_SLEW1 8 | ||
243 | #define M_IO_SLEW1 _SB_MAKEMASK(2,S_IO_SLEW1) | ||
244 | #define V_IO_SLEW1(x) _SB_MAKEVALUE(x,S_IO_SLEW1) | ||
245 | #define G_IO_SLEW1(x) _SB_GETVALUE(x,S_IO_SLEW1,M_IO_SLEW1) | ||
246 | |||
247 | #define S_IO_DRV_G 10 | ||
248 | #define M_IO_DRV_G _SB_MAKEMASK(2,S_IO_DRV_G) | ||
249 | #define V_IO_DRV_G(x) _SB_MAKEVALUE(x,S_IO_DRV_G) | ||
250 | #define G_IO_DRV_G(x) _SB_GETVALUE(x,S_IO_DRV_G,M_IO_DRV_G) | ||
251 | |||
252 | #define S_IO_SLEW2 12 | ||
253 | #define M_IO_SLEW2 _SB_MAKEMASK(2,S_IO_SLEW2) | ||
254 | #define V_IO_SLEW2(x) _SB_MAKEVALUE(x,S_IO_SLEW2) | ||
255 | #define G_IO_SLEW2(x) _SB_GETVALUE(x,S_IO_SLEW2,M_IO_SLEW2) | ||
256 | |||
257 | #define S_IO_DRV_H 14 | ||
258 | #define M_IO_DRV_H _SB_MAKEMASK(2,S_IO_DRV_H) | ||
259 | #define V_IO_DRV_H(x) _SB_MAKEVALUE(x,S_IO_DRV_H) | ||
260 | #define G_IO_DRV_H(x) _SB_GETVALUE(x,S_IO_DRV_H,M_IO_DRV_H) | ||
261 | |||
262 | /* | ||
263 | * Generic Bus Output Drive Control Register 2 (Table 14-20) | ||
264 | */ | ||
265 | |||
266 | #define S_IO_DRV_J 2 | ||
267 | #define M_IO_DRV_J _SB_MAKEMASK(2,S_IO_DRV_J) | ||
268 | #define V_IO_DRV_J(x) _SB_MAKEVALUE(x,S_IO_DRV_J) | ||
269 | #define G_IO_DRV_J(x) _SB_GETVALUE(x,S_IO_DRV_J,M_IO_DRV_J) | ||
270 | |||
271 | #define S_IO_DRV_K 6 | ||
272 | #define M_IO_DRV_K _SB_MAKEMASK(2,S_IO_DRV_K) | ||
273 | #define V_IO_DRV_K(x) _SB_MAKEVALUE(x,S_IO_DRV_K) | ||
274 | #define G_IO_DRV_K(x) _SB_GETVALUE(x,S_IO_DRV_K,M_IO_DRV_K) | ||
275 | |||
276 | #define S_IO_DRV_L 10 | ||
277 | #define M_IO_DRV_L _SB_MAKEMASK(2,S_IO_DRV_L) | ||
278 | #define V_IO_DRV_L(x) _SB_MAKEVALUE(x,S_IO_DRV_L) | ||
279 | #define G_IO_DRV_L(x) _SB_GETVALUE(x,S_IO_DRV_L,M_IO_DRV_L) | ||
280 | |||
281 | #define S_IO_DRV_M 14 | ||
282 | #define M_IO_DRV_M _SB_MAKEMASK(2,S_IO_DRV_M) | ||
283 | #define V_IO_DRV_M(x) _SB_MAKEVALUE(x,S_IO_DRV_M) | ||
284 | #define G_IO_DRV_M(x) _SB_GETVALUE(x,S_IO_DRV_M,M_IO_DRV_M) | ||
285 | |||
286 | /* | ||
287 | * Generic Bus Output Drive Control Register 3 (Table 14-21) | ||
288 | */ | ||
289 | |||
290 | #define S_IO_SLEW3 0 | ||
291 | #define M_IO_SLEW3 _SB_MAKEMASK(2,S_IO_SLEW3) | ||
292 | #define V_IO_SLEW3(x) _SB_MAKEVALUE(x,S_IO_SLEW3) | ||
293 | #define G_IO_SLEW3(x) _SB_GETVALUE(x,S_IO_SLEW3,M_IO_SLEW3) | ||
294 | |||
295 | #define S_IO_DRV_N 2 | ||
296 | #define M_IO_DRV_N _SB_MAKEMASK(2,S_IO_DRV_N) | ||
297 | #define V_IO_DRV_N(x) _SB_MAKEVALUE(x,S_IO_DRV_N) | ||
298 | #define G_IO_DRV_N(x) _SB_GETVALUE(x,S_IO_DRV_N,M_IO_DRV_N) | ||
299 | |||
300 | #define S_IO_DRV_P 6 | ||
301 | #define M_IO_DRV_P _SB_MAKEMASK(2,S_IO_DRV_P) | ||
302 | #define V_IO_DRV_P(x) _SB_MAKEVALUE(x,S_IO_DRV_P) | ||
303 | #define G_IO_DRV_P(x) _SB_GETVALUE(x,S_IO_DRV_P,M_IO_DRV_P) | ||
304 | |||
305 | #define S_IO_DRV_Q 10 | ||
306 | #define M_IO_DRV_Q _SB_MAKEMASK(2,S_IO_DRV_Q) | ||
307 | #define V_IO_DRV_Q(x) _SB_MAKEVALUE(x,S_IO_DRV_Q) | ||
308 | #define G_IO_DRV_Q(x) _SB_GETVALUE(x,S_IO_DRV_Q,M_IO_DRV_Q) | ||
309 | |||
310 | #define S_IO_DRV_R 14 | ||
311 | #define M_IO_DRV_R _SB_MAKEMASK(2,S_IO_DRV_R) | ||
312 | #define V_IO_DRV_R(x) _SB_MAKEVALUE(x,S_IO_DRV_R) | ||
313 | #define G_IO_DRV_R(x) _SB_GETVALUE(x,S_IO_DRV_R,M_IO_DRV_R) | ||
314 | |||
189 | 315 | ||
190 | /* | 316 | /* |
191 | * PCMCIA configuration register (Table 12-6) | 317 | * PCMCIA configuration register (Table 12-6) |
@@ -202,6 +328,22 @@ | |||
202 | #define M_PCMCIA_CFG_RDYMASK _SB_MAKEMASK1(8) | 328 | #define M_PCMCIA_CFG_RDYMASK _SB_MAKEMASK1(8) |
203 | #define M_PCMCIA_CFG_PWRCTL _SB_MAKEMASK1(9) | 329 | #define M_PCMCIA_CFG_PWRCTL _SB_MAKEMASK1(9) |
204 | 330 | ||
331 | #if SIBYTE_HDR_FEATURE_CHIP(1480) | ||
332 | #define S_PCMCIA_MODE 16 | ||
333 | #define M_PCMCIA_MODE _SB_MAKEMASK(3,S_PCMCIA_MODE) | ||
334 | #define V_PCMCIA_MODE(x) _SB_MAKEVALUE(x,S_PCMCIA_MODE) | ||
335 | #define G_PCMCIA_MODE(x) _SB_GETVALUE(x,S_PCMCIA_MODE,M_PCMCIA_MODE) | ||
336 | |||
337 | #define K_PCMCIA_MODE_PCMA_NOB 0 /* standard PCMCIA "A", no "B" */ | ||
338 | #define K_PCMCIA_MODE_IDEA_NOB 1 /* IDE "A", no "B" */ | ||
339 | #define K_PCMCIA_MODE_PCMIOA_NOB 2 /* PCMCIA with I/O "A", no "B" */ | ||
340 | #define K_PCMCIA_MODE_PCMA_PCMB 4 /* standard PCMCIA "A", standard PCMCIA "B" */ | ||
341 | #define K_PCMCIA_MODE_IDEA_PCMB 5 /* IDE "A", standard PCMCIA "B" */ | ||
342 | #define K_PCMCIA_MODE_PCMA_IDEB 6 /* standard PCMCIA "A", IDE "B" */ | ||
343 | #define K_PCMCIA_MODE_IDEA_IDEB 7 /* IDE "A", IDE "B" */ | ||
344 | #endif | ||
345 | |||
346 | |||
205 | /* | 347 | /* |
206 | * PCMCIA status register (Table 12-7) | 348 | * PCMCIA status register (Table 12-7) |
207 | */ | 349 | */ |
@@ -272,5 +414,62 @@ | |||
272 | #define V_GPIO_INTR_TYPE14(x) _SB_MAKEVALUE(x,S_GPIO_INTR_TYPE14) | 414 | #define V_GPIO_INTR_TYPE14(x) _SB_MAKEVALUE(x,S_GPIO_INTR_TYPE14) |
273 | #define G_GPIO_INTR_TYPE14(x) _SB_GETVALUE(x,S_GPIO_INTR_TYPE14,M_GPIO_INTR_TYPE14) | 415 | #define G_GPIO_INTR_TYPE14(x) _SB_GETVALUE(x,S_GPIO_INTR_TYPE14,M_GPIO_INTR_TYPE14) |
274 | 416 | ||
417 | #if SIBYTE_HDR_FEATURE_CHIP(1480) | ||
418 | |||
419 | /* | ||
420 | * GPIO Interrupt Additional Type Register | ||
421 | */ | ||
422 | |||
423 | #define K_GPIO_INTR_BOTHEDGE 0 | ||
424 | #define K_GPIO_INTR_RISEEDGE 1 | ||
425 | #define K_GPIO_INTR_UNPRED1 2 | ||
426 | #define K_GPIO_INTR_UNPRED2 3 | ||
427 | |||
428 | #define S_GPIO_INTR_ATYPEX(n) (((n)/2)*2) | ||
429 | #define M_GPIO_INTR_ATYPEX(n) _SB_MAKEMASK(2,S_GPIO_INTR_ATYPEX(n)) | ||
430 | #define V_GPIO_INTR_ATYPEX(n,x) _SB_MAKEVALUE(x,S_GPIO_INTR_ATYPEX(n)) | ||
431 | #define G_GPIO_INTR_ATYPEX(n,x) _SB_GETVALUE(x,S_GPIO_INTR_ATYPEX(n),M_GPIO_INTR_ATYPEX(n)) | ||
432 | |||
433 | #define S_GPIO_INTR_ATYPE0 0 | ||
434 | #define M_GPIO_INTR_ATYPE0 _SB_MAKEMASK(2,S_GPIO_INTR_ATYPE0) | ||
435 | #define V_GPIO_INTR_ATYPE0(x) _SB_MAKEVALUE(x,S_GPIO_INTR_ATYPE0) | ||
436 | #define G_GPIO_INTR_ATYPE0(x) _SB_GETVALUE(x,S_GPIO_INTR_ATYPE0,M_GPIO_INTR_ATYPE0) | ||
437 | |||
438 | #define S_GPIO_INTR_ATYPE2 2 | ||
439 | #define M_GPIO_INTR_ATYPE2 _SB_MAKEMASK(2,S_GPIO_INTR_ATYPE2) | ||
440 | #define V_GPIO_INTR_ATYPE2(x) _SB_MAKEVALUE(x,S_GPIO_INTR_ATYPE2) | ||
441 | #define G_GPIO_INTR_ATYPE2(x) _SB_GETVALUE(x,S_GPIO_INTR_ATYPE2,M_GPIO_INTR_ATYPE2) | ||
442 | |||
443 | #define S_GPIO_INTR_ATYPE4 4 | ||
444 | #define M_GPIO_INTR_ATYPE4 _SB_MAKEMASK(2,S_GPIO_INTR_ATYPE4) | ||
445 | #define V_GPIO_INTR_ATYPE4(x) _SB_MAKEVALUE(x,S_GPIO_INTR_ATYPE4) | ||
446 | #define G_GPIO_INTR_ATYPE4(x) _SB_GETVALUE(x,S_GPIO_INTR_ATYPE4,M_GPIO_INTR_ATYPE4) | ||
447 | |||
448 | #define S_GPIO_INTR_ATYPE6 6 | ||
449 | #define M_GPIO_INTR_ATYPE6 _SB_MAKEMASK(2,S_GPIO_INTR_ATYPE6) | ||
450 | #define V_GPIO_INTR_ATYPE6(x) _SB_MAKEVALUE(x,S_GPIO_INTR_ATYPE6) | ||
451 | #define G_GPIO_INTR_ATYPE6(x) _SB_GETVALUE(x,S_GPIO_INTR_ATYPE6,M_GPIO_INTR_ATYPE6) | ||
452 | |||
453 | #define S_GPIO_INTR_ATYPE8 8 | ||
454 | #define M_GPIO_INTR_ATYPE8 _SB_MAKEMASK(2,S_GPIO_INTR_ATYPE8) | ||
455 | #define V_GPIO_INTR_ATYPE8(x) _SB_MAKEVALUE(x,S_GPIO_INTR_ATYPE8) | ||
456 | #define G_GPIO_INTR_ATYPE8(x) _SB_GETVALUE(x,S_GPIO_INTR_ATYPE8,M_GPIO_INTR_ATYPE8) | ||
457 | |||
458 | #define S_GPIO_INTR_ATYPE10 10 | ||
459 | #define M_GPIO_INTR_ATYPE10 _SB_MAKEMASK(2,S_GPIO_INTR_ATYPE10) | ||
460 | #define V_GPIO_INTR_ATYPE10(x) _SB_MAKEVALUE(x,S_GPIO_INTR_ATYPE10) | ||
461 | #define G_GPIO_INTR_ATYPE10(x) _SB_GETVALUE(x,S_GPIO_INTR_ATYPE10,M_GPIO_INTR_ATYPE10) | ||
462 | |||
463 | #define S_GPIO_INTR_ATYPE12 12 | ||
464 | #define M_GPIO_INTR_ATYPE12 _SB_MAKEMASK(2,S_GPIO_INTR_ATYPE12) | ||
465 | #define V_GPIO_INTR_ATYPE12(x) _SB_MAKEVALUE(x,S_GPIO_INTR_ATYPE12) | ||
466 | #define G_GPIO_INTR_ATYPE12(x) _SB_GETVALUE(x,S_GPIO_INTR_ATYPE12,M_GPIO_INTR_ATYPE12) | ||
467 | |||
468 | #define S_GPIO_INTR_ATYPE14 14 | ||
469 | #define M_GPIO_INTR_ATYPE14 _SB_MAKEMASK(2,S_GPIO_INTR_ATYPE14) | ||
470 | #define V_GPIO_INTR_ATYPE14(x) _SB_MAKEVALUE(x,S_GPIO_INTR_ATYPE14) | ||
471 | #define G_GPIO_INTR_ATYPE14(x) _SB_GETVALUE(x,S_GPIO_INTR_ATYPE14,M_GPIO_INTR_ATYPE14) | ||
472 | #endif | ||
473 | |||
275 | 474 | ||
276 | #endif | 475 | #endif |