Training courses

Kernel and Embedded Linux

Bootlin training courses

Embedded Linux, kernel,
Yocto Project, Buildroot, real-time,
graphics, boot time, debugging...

Bootlin logo

Elixir Cross Referencer

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
/*	$NetBSD: icureg.h,v 1.8 2003/04/01 02:45:34 igy Exp $	*/

/*-
 * Copyright (c) 1999 Shin Takemura. All rights reserved.
 * Copyright (c) 1999-2001 SATO Kazumi. All rights reserved.
 * Copyright (c) 1999 PocketBSD Project. All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 * 1. Redistributions of source code must retain the above copyright
 *    notice, this list of conditions and the following disclaimer.
 * 2. Redistributions in binary form must reproduce the above copyright
 *    notice, this list of conditions and the following disclaimer in the
 *    documentation and/or other materials provided with the distribution.
 * 3. All advertising materials mentioning features or use of this software
 *    must display the following acknowledgement:
 *	This product includes software developed by the PocketBSD project
 *	and its contributors.
 * 4. Neither the name of the project nor the names of its contributors
 *    may be used to endorse or promote products derived from this software
 *    without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 * SUCH DAMAGE.
 *
 */

/*
 *	ICU (Interrupt Control UNIT) Registers definitions
 *		start 0x0A000080 (vr4181)
 *		start 0x0B000080 (vr4102/4111/4121)
 *		start 0x0F000080 (vr4122)
 */
#include "opt_vr41xx.h"
#include <hpcmips/vr/vrcpudef.h>

#define ICU_NO_REG_W		0xffffffff	/* no register */


/* SYSINT1 & MSYSINT1 */
#define SYSINT1_REG_W		0x000	/* Level1 System intr reg 1 */
#define MSYSINT1_REG_W		0x00c	/* Level1 Mask System intr reg 1 */

#define SYSINT1_INT15			(1<<15)
#define SYSINT1_INT14			(1<<14)
#define SYSINT1_INT13			(1<<13)
#define SYSINT1_DOZEPIU			(1<<13)	/* PIU intr during Suspend */
#define SYSINT1_INT12			(1<<12)
#define SYSINT1_CLKRUN			(1<<12) /* CLKRUN intr (=vr4122) */
#define SYSINT1_INT11			(1<<11)
#define SYSINT1_SOFT			(1<<11)	/* Software intr */
#define SYSINT1_INT10			(1<<10)
#define SYSINT1_WRBERR			(1<<10)	/* Bus error intr (4102 <=,<= 4121)*/
#define SYSINT1_INT9			(1<<9)
#define SYSINT1_SIU			(1<<9)	/* SIU intr */
#define SYSINT1_INT8			(1<<8)
#define SYSINT1_GIU			(1<<8)	/* GIU intr */
#define SYSINT1_INT7			(1<<7)
#define SYSINT1_KIU			(1<<7)	/* KIU intr (4102 <=,<= 4121)*/
#define SYSINT1_INT6			(1<<6)
#define SYSINT1_AIU			(1<<6)	/* AIU intr (4102 <=,<= 4121)*/
#define SYSINT1_INT5			(1<<5)
#define SYSINT1_PIU			(1<<5)	/* PIU intr (4102 <=,<= 4121)*/
#define SYSINT1_INT4			(1<<4)
#define SYSINT1_INT3			(1<<3)
#define SYSINT1_ETIMER			(1<<3)	/* ETIMER intr */
#define SYSINT1_INT2			(1<<2)
#define SYSINT1_RTCL1			(1<<2)	/* RTClong1 intr */
#define SYSINT1_INT1			(1<<1)
#define SYSINT1_POWER			(1<<1)	/* PowerSW intr */
#define SYSINT1_INT0			(1<<0)
#define SYSINT1_BAT			(1<<0)	/* Battery intr */


/* PIUINT & MPIUINT */
#define ICUPIUINT_REG_W		0x002	/* Level2 PIU intr reg */
#define MPIUINT_REG_W		0x00e	/* Level2 Mask PIU intr reg */

#define		PIUINT_PADCMD		(1<<6)	/* PIU command scan intr */
#define		PIUINT_PADADP		(1<<5)	/* PIU AD port scan intr */
#define		PIUINT_PADPAGE1		(1<<4)	/* PIU data page 1 intr */
#define		PIUINT_PADPAGE0		(1<<3)	/* PIU data page 0 intr */
#define		PIUINT_PADLOST		(1<<2)	/* A/D data timeout intr */
#define		PIUINT_PENCHG		(1)	/* Touch Panel contact intr */


/* AIUINT & MAIUINT */
#define VR4102_AIUINT_REG_W	0x004	/* Level2 AIU intr reg */	
#define VR4102_MAIUINT_REG_W	0x010	/* Level2 Mask AIU intr reg */
#define VR4122_AIUINT_REG_W	ICU_NO_REG_W	/* Level2 AIU intr reg */	
#define VR4122_MAIUINT_REG_W	ICU_NO_REG_W	/* Level2 Mask AIU intr reg */
#define VR4181_AIUINT_REG_W	0x004	/* Level2 AIU intr reg */	
#define VR4181_MAIUINT_REG_W	0x010	/* Level2 Mask AIU intr reg */
#if defined SINGLE_VRIP_BASE
#if defined VRGROUP_4102_4121
#define AIUINT_REG_W		VR4102_AIUINT_REG_W
#define MAIUINT_REG_W		VR4102_MAIUINT_REG_W
#endif /* VRGROUP_4102_4121 */
#if defined VRGROUP_4122_4131
#define AIUINT_REG_W		VR4122_AIUINT_REG_W
#define MAIUINT_REG_W		VR4122_MAIUINT_REG_W
#endif /* VRGROUP_4122_4131 */
#if defined VRGROUP_4181
#define AIUINT_REG_W		VR4181_AIUINT_REG_W
#define MAIUINT_REG_W		VR4181_MAIUINT_REG_W
#endif /* VRGROUP_4181 */
#endif

#define		AIUINT_INTMEND		(1<<11)	/* Audio input DMA buffer 2 page */
#define		AIUINT_INTM		(1<<10)	/* Audio input DMA buffer 1 page */
#define		AIUINT_INTMIDLE		(1<<9)	/* Audio input idle intr */
#define		AIUINT_INTMST		(1<<8)	/* Audio input receive completion intr */
#define		AIUINT_INTSEND		(1<<3)	/* Audio output buffer 2 page */
#define		AIUINT_INTS		(1<<2)	/* Audio output buffer 1 page */
#define		AIUINT_INTSIDLE		(1<<1)	/* Audio output idle intr */


/* KIUINT & MKIUINT */
#define VR4102_KIUINT_REG_W	0x006	/* Level2 KIU intr reg */
#define VR4102_MKIUINT_REG_W	0x012	/* Level2 Mask KIU intr reg */
#define VR4122_KIUINT_REG_W	ICU_NO_REG_W	/* Level2 KIU intr reg */
#define VR4122_MKIUINT_REG_W	ICU_NO_REG_W	/* Level2 Mask KIU intr reg */
#define VR4181_KIUINT_REG_W	0x118	/* Level2 KIU intr reg */
#define VR4181_MKIUINT_REG_W	0x012	/* Level2 Mask KIU intr reg */
#if defined SINGLE_VRIP_BASE
#if defined VRGROUP_4102_4121
#define KIUINT_REG_W		VR4102_KIUINT_REG_W
#define MKIUINT_REG_W		VR4102_MKIUINT_REG_W
#endif /* VRGROUP_4102_4121 */
#if defined VRGROUP_4122_4131
#define KIUINT_REG_W		VR4122_KIUINT_REG_W
#define MKIUINT_REG_W		VR4122_MKIUINT_REG_W
#endif /* VRGROUP_4122_4131 */
#if defined VRGROUP_4181
#define KIUINT_REG_W		VR4181_KIUINT_REG_W
#define MKIUINT_REG_W		VR4181_MKIUINT_REG_W
#endif /* VRGROUP_4181 */
#endif

#define		KIUINT_KDATLOST		(1<<2)	/* Key scan data lost */
#define		KIUINT_KDATRDY		(1<<1)	/* Key scan data complete */
#define		KIUINT_SCANINT		(1)	/* Key input detect intr */


/* GIUINTL & MGIUINTL */
#define VR4102_GIUINT_L_REG_W	0x008	/* Level2 GIU intr reg Low */
#define VR4102_MGIUINT_L_REG_W	0x014	/* Level2 Mask GIU intr reg Low */
#define VR4122_GIUINT_L_REG_W	0x008	/* Level2 GIU intr reg Low */
#define VR4122_MGIUINT_L_REG_W	0x014	/* Level2 Mask GIU intr reg Low */
#define VR4181_GIUINT_L_REG_W	ICU_NO_REG_W	/* Level2 GIU intr reg Low */
#define VR4181_MGIUINT_L_REG_W	ICU_NO_REG_W	/* Level2 Mask GIU intr reg Low */
#if defined SINGLE_VRIP_BASE
#if defined VRGROUP_4102_4121
#define GIUINT_L_REG_W		VR4102_GIUINT_L_REG_W
#define MGIUINT_L_REG_W		VR4102_MGIUINT_L_REG_W
#endif /* VRGROUP_4102_4121 */
#if defined VRGROUP_4122_4131
#define GIUINT_L_REG_W		VR4122_GIUINT_L_REG_W
#define MGIUINT_L_REG_W		VR4122_MGIUINT_L_REG_W
#endif /* VRGROUP_4122_4131 */
#if defined VRGROUP_4181
#define GIUINT_L_REG_W		VR4181_GIUINT_L_REG_W
#define MGIUINT_L_REG_W		VR4181_MGIUINT_L_REG_W
#endif /* VRGROUP_4181 */
#endif

#define		GIUINT_GPIO15		(1<<15)	/* GPIO 15 */
#define		GIUINT_GPIO14		(1<<14)	/* GPIO 14 */
#define		GIUINT_GPIO13		(1<<13)	/* GPIO 13 */
#define		GIUINT_GPIO12		(1<<12)	/* GPIO 12 */
#define		GIUINT_GPIO11		(1<<11)	/* GPIO 11 */
#define		GIUINT_GPIO10		(1<<10)	/* GPIO 10 */
#define		GIUINT_GPIO9		(1<<9)	/* GPIO 9 */
#define		GIUINT_GPIO8		(1<<8)	/* GPIO 8 */
#define		GIUINT_GPIO7		(1<<7)	/* GPIO 7 */
#define		GIUINT_GPIO6		(1<<6)	/* GPIO 6 */
#define		GIUINT_GPIO5		(1<<5)	/* GPIO 5 */
#define		GIUINT_GPIO4		(1<<4)	/* GPIO 4 */
#define		GIUINT_GPIO3		(1<<3)	/* GPIO 3 */
#define		GIUINT_GPIO2		(1<<2)	/* GPIO 2 */
#define		GIUINT_GPIO1		(1<<1)	/* GPIO 1 */
#define		GIUINT_GPIO0		(1)	/* GPIO 0 */


/* DSIUINT & MDSIUINT */
#define VR4102_DSIUINT_REG_W		0x00a	/* Level2 DSIU intr reg */
#define VR4102_MDSIUINT_REG_W		0x016	/* Level2 Mask DSIU intr reg */
#define VR4122_DSIUINT_REG_W		0x00a	/* Level2 DSIU intr reg */
#define VR4122_MDSIUINT_REG_W		0x016	/* Level2 Mask DSIU intr reg */
#define VR4181_DSIUINT_REG_W		ICU_NO_REG_W	/* Level2 DSIU intr reg */
#define VR4181_MDSIUINT_REG_W		ICU_NO_REG_W	/* Level2 Mask DSIU intr reg */
#if defined SINGLE_VRIP_BASE
#if defined VRGROUP_4102_4121
#define DSIUINT_REG_W		VR4102_DSIUINT_REG_W
#define MDSIUINT_REG_W		VR4102_MDSIUINT_REG_W
#endif /* VRGROUP_4102_4121 */
#if defined VRGROUP_4122_4131
#define DSIUINT_REG_W		VR4122_DSIUINT_REG_W
#define MDSIUINT_REG_W		VR4122_MDSIUINT_REG_W
#endif /* VRGROUP_4122_4131 */
#if defined VRGROUP_4181
#define DSIUINT_REG_W		VR4181_DSIUINT_REG_W
#define MDSIUINT_REG_W		VR4181_MDSIUINT_REG_W
#endif /* VRGROUP_4181 */
#endif

#define		DSIUINT_DCTS		(1<<11)	/* DCTS# change */
#define		DSIUINT_SER0		(1<<10)	/* Debug serial receive error */
#define		DSIUINT_SR0		(1<<9)	/* Debug serial receive */
#define		DSIUINT_ST0		(1<<8)	/* Debug serial transmit */


/* NMI */
#define NMI_REG_W		0x018	/* NMI reg */

#define		LOWBATT_NMIORINT	(1)	/* Low battery type */
#define		LOWBATT_INT0		(1)	/* Low battery int 0 */
#define		LOWBATT_NMI		(0)	/* Low battery NMI */


/* SOFTINT */
#define SOFTINT_REG_W		0x01a	/* Software intr reg */

#define		SOFTINT_MASK3		(1<<3)	/* Softint3 mask */
#define		SOFTINT_SET3		(1<<3)	/* Softint3 set */
#define		SOFTINT_CLEAR3		(0<<3)	/* Softint3 clear */

#define		SOFTINT_MASK2		(1<<2)	/* Softint2 mask */
#define		SOFTINT_SET2		(1<<2)	/* Softint2 set */
#define		SOFTINT_CLEAR2		(0<<2)	/* Softint2 clear */

#define		SOFTINT_MASK1		(1<<1)	/* Softint1 mask */
#define		SOFTINT_SET1		(1<<1)	/* Softint1 set */
#define		SOFTINT_CLEAR1		(0<<1)	/* Softint1 clear */

#define		SOFTINT_MASK0		(1)	/* Softint0 mask */
#define		SOFTINT_SET0		(1)	/* Softint0 set */
#define		SOFTINT_CLEAR0		(0)	/* Softint0 clear */


/* SYSINT2 & MSYSINT2 */
#define VR4102_SYSINT2_REG_W	0x180	/* Level1 System intr reg 2 */
#define VR4102_MSYSINT2_REG_W	0x186	/* Level1 Mask System intr reg 2 */
#define VR4122_SYSINT2_REG_W	0x020	/* Level1 System intr reg 2 */
#define VR4122_MSYSINT2_REG_W	0x026	/* Level1 Mask System intr reg 2 */
#define VR4181_SYSINT2_REG_W	0x180	/* Level1 System intr reg 2 */
#define VR4181_MSYSINT2_REG_W	0x186	/* Level1 Mask System intr reg 2 */
#if defined SINGLE_VRIP_BASE
#if defined VRGROUP_4102_4121
#define SYSINT2_REG_W		VR4102_SYSINT2_REG_W
#define MSYSINT2_REG_W		VR4102_MSYSINT2_REG_W
#endif /* VRGROUP_4102_4121 */
#if defined VRGROUP_4122_4131
#define SYSINT2_REG_W		VR4122_SYSINT2_REG_W
#define MSYSINT2_REG_W		VR4122_MSYSINT2_REG_W
#endif /* VRGROUP_4122_4131 */
#if defined VRGROUP_4181
#define SYSINT2_REG_W		VR4181_SYSINT2_REG_W
#define MSYSINT2_REG_W		VR4181_MSYSINT2_REG_W
#endif /* VRGROUP_4181 */
#endif

#define SYSINT2_INT31			(1<<15)
#define SYSINT2_INT30			(1<<14)
#define SYSINT2_INT29			(1<<13)
#define SYSINT2_INT28			(1<<12)
#define SYSINT2_INT27			(1<<11)
#define SYSINT2_INT26			(1<<10)
#define SYSINT2_INT25			(1<<9)
#define SYSINT2_BCU			(1<<9)  /* BCU intr (=vr4122) */
#define SYSINT2_INT24			(1<<8)
#define SYSINT2_CSI			(1<<8)  /* CSI intr (=vr4122) */
#define SYSINT2_INT23			(1<<7)
#define SYSINT2_SCU			(1<<7)	/* SCU intr (=vr4122) */
#define SYSINT2_INT22			(1<<6)
#define SYSINT2_PCI			(1<<6)	/* PCI intr (=vr4122) */
#define SYSINT2_LCD			(1<<6)	/* LCD intr (=vr4181) */
#define SYSINT2_DSIU			(1<<5)	/* DSUI intr */
#define SYSINT2_DCU81			(1<<5)	/* DCU intr (=4181) */
#define SYSINT2_FIR			(1<<4)	/* FIR intr */
#define SYSINT2_TCLK			(1<<3)	/* TClock Counter intr */
#define SYSINT2_CSI81			(1<<3)	/* CSI intr (=4181) */
#define SYSINT2_HSP			(1<<2)	/* HSP intr (4122>=4102)*/
#define SYSINT2_ECU			(1<<2)	/* EUC intr (=4181)*/
#define SYSINT2_LED			(1<<1)	/* LED intr */
#define SYSINT2_RTCL2			(1<<0)	/* RTCLong2 intr */


/* GIUINTH & MGIUINTH */
#define VR4102_GIUINT_H_REG_W	0x182	/* Level2 GIU intr reg High */
#define VR4102_MGIUINT_H_REG_W	0x188	/* Level2 Mask GIU intr reg High */
#define VR4122_GIUINT_H_REG_W	0x022	/* Level2 GIU intr reg High */
#define VR4122_MGIUINT_H_REG_W	0x028	/* Level2 Mask GIU intr reg High */
#define VR4181_GIUINT_H_REG_W	ICU_NO_REG_W	/* Level2 GIU intr reg High */
#define VR4181_MGIUINT_H_REG_W	ICU_NO_REG_W	/* Level2 Mask GIU intr reg High */
#if defined SINGLE_VRIP_BASE
#if defined VRGROUP_4102_4121
#define GIUINT_H_REG_W		VR4102_GIUINT_H_REG_W
#define MGIUINT_H_REG_W		VR4102_MGIUINT_H_REG_W
#endif /* VRGROUP_4102_4121 */
#if defined VRGROUP_4122_4131
#define GIUINT_H_REG_W		VR4122_GIUINT_H_REG_W
#define MGIUINT_H_REG_W		VR4122_MGIUINT_H_REG_W
#endif /* VRGROUP_4122_4131 */
#if defined VRGROUP_4181
#define GIUINT_H_REG_W		VR4181_GIUINT_H_REG_W
#define MGIUINT_H_REG_W		VR4181_MGIUINT_H_REG_W
#endif /* VRGROUP_4181 */
#endif

#define		GIUINT_GPIO31		(1<<15)	/* GPIO 31 */
#define		GIUINT_GPIO30		(1<<14)	/* GPIO 30 */
#define		GIUINT_GPIO29		(1<<13)	/* GPIO 29 */
#define		GIUINT_GPIO28		(1<<12)	/* GPIO 28 */
#define		GIUINT_GPIO27		(1<<11)	/* GPIO 27 */
#define		GIUINT_GPIO26		(1<<10)	/* GPIO 26 */
#define		GIUINT_GPIO25		(1<<9)	/* GPIO 25 */
#define		GIUINT_GPIO24		(1<<8)	/* GPIO 24 */
#define		GIUINT_GPIO23		(1<<7)	/* GPIO 23 */
#define		GIUINT_GPIO22		(1<<6)	/* GPIO 22 */
#define		GIUINT_GPIO21		(1<<5)	/* GPIO 21 */
#define		GIUINT_GPIO20		(1<<4)	/* GPIO 20 */
#define		GIUINT_GPIO19		(1<<3)	/* GPIO 19 */
#define		GIUINT_GPIO18		(1<<2)	/* GPIO 18 */
#define		GIUINT_GPIO17		(1<<1)	/* GPIO 17 */
#define		GIUINT_GPIO16		(1)	/* GPIO 16 */


/* FIRINT & MFIRINT */
#define VR4102_FIRINT_REG_W	0x184	/* Level2 FIR intr reg */
#define VR4102_MFIRINT_REG_W	0x18a	/* Level2 Mask FIR intr reg */
#define VR4122_FIRINT_REG_W	0x024	/* Level2 FIR intr reg */
#define VR4122_MFIRINT_REG_W	0x02a	/* Level2 Mask FIR intr reg */
#define VR4181_FIRINT_REG_W	ICU_NO_REG_W	/* Level2 FIR intr reg */
#define VR4181_MFIRINT_REG_W	ICU_NO_REG_W	/* Level2 Mask FIR intr reg */
#if defined SINGLE_VRIP_BASE
#if defined VRGROUP_4102_4121
#define FIRINT_REG_W		VR4102_FIRINT_REG_W
#define MFIRINT_REG_W		VR4102_MFIRINT_REG_W
#endif /* VRGROUP_4102_4121 */
#if defined VRGROUP_4122_4131
#define FIRINT_REG_W		VR4122_FIRINT_REG_W
#define MFIRINT_REG_W		VR4122_MFIRINT_REG_W
#endif /* VRGROUP_4122_4131 */
#if defined VRGROUP_4181
#define FIRINT_REG_W		VR4181_FIRINT_REG_W
#define MFIRINT_REG_W		VR4181_MFIRINT_REG_W
#endif /* VRGROUP_4181 */
#endif

#define		FIRINT_FIR		(1<<4)	/* FIR intr */
#define		FIRINT_RECV2		(1<<3)	/* FIR DMA buf recv buffer2 */
#define		FIRINT_TRNS2		(1<<2)	/* FIR DMA buf transmit buffer2 */
#define		FIRINT_RECV1		(1<<1)	/* FIR DMA buf recv buffer1 */
#define		FIRINT_TRNS1		(1)	/* FIR DMA buf transmit buffer1 */


/* PCIINT & MPCIINT */
#define VR4102_PCIINT_REG_W	ICU_NO_REG_W	/* Level2 PCI intr reg */
#define VR4102_MPCIINT_REG_W	ICU_NO_REG_W	/* Level2 PCI intr mask */
#define VR4122_PCIINT_REG_W	0x2c	/* Level2 PCI intr reg */
#define VR4122_MPCIINT_REG_W	0x32	/* Level2 PCI intr mask */
#define VR4181_PCIINT_REG_W	ICU_NO_REG_W	/* Level2 PCI intr reg */
#define VR4181_MPCIINT_REG_W	ICU_NO_REG_W	/* Level2 PCI intr mask */
#if defined SINGLE_VRIP_BASE
#if defined VRGROUP_4102_4121
#define PCIINT_REG_W		VR4102_PCIINT_REG_W
#define MPCIINT_REG_W		VR4102_MPCIINT_REG_W
#endif /* VRGROUP_4102_4121 */
#if defined VRGROUP_4122_4131
#define PCIINT_REG_W		VR4122_PCIINT_REG_W
#define MPCIINT_REG_W		VR4122_MPCIINT_REG_W
#endif /* VRGROUP_4122_4131 */
#if defined VRGROUP_4181
#define PCIINT_REG_W		VR4181_PCIINT_REG_W
#define MPCIINT_REG_W		VR4181_MPCIINT_REG_W
#endif /* VRGROUP_4181 */
#endif

#define		PCIINT_INT0		(1)	/* PCI INT 0 */


/* SCUINT & MSCUINT */
#define VR4102_SCUINT_REG_W	ICU_NO_REG_W	/* Level2 SCU intr reg */
#define VR4102_MSCUINT_REG_W	ICU_NO_REG_W	/* Level2 SCU intr mask */
#define VR4122_SCUINT_REG_W	0x2e	/* Level2 SCU intr reg */
#define VR4122_MSCUINT_REG_W	0x34	/* Level2 SCU intr mask */
#define VR4181_SCUINT_REG_W	ICU_NO_REG_W	/* Level2 SCU intr reg */
#define VR4181_MSCUINT_REG_W	ICU_NO_REG_W	/* Level2 SCU intr mask */
#if defined SINGLE_VRIP_BASE
#if defined VRGROUP_4102_4121
#define SCUINT_REG_W		VR4102_SCUINT_REG_W
#define MSCUINT_REG_W		VR4102_MSCUINT_REG_W
#endif /* VRGROUP_4102_4121 */
#if defined VRGROUP_4122_4131
#define SCUINT_REG_W		VR4122_SCUINT_REG_W
#define MSCUINT_REG_W		VR4122_MSCUINT_REG_W
#endif /* VRGROUP_4122_4131 */
#if defined VRGROUP_4181
#define SCUINT_REG_W		VR4181_SCUINT_REG_W
#define MSCUINT_REG_W		VR4181_MSCUINT_REG_W
#endif /* VRGROUP_4181 */
#endif

#define		SCUINT_INT0		(1)	/* SCU INT 0 */


/* CSIINT & MCSIINT */
#define VR4102_CSIINT_REG_W	ICU_NO_REG_W	/* Level2 CSI intr reg */
#define VR4102_MCSIINT_REG_W	ICU_NO_REG_W	/* Level2 CSI intr mask */
#define VR4122_CSIINT_REG_W	0x30	/* Level2 CSI intr reg */
#define VR4122_MCSIINT_REG_W	0x36	/* Level2 CSI intr mask */
#define VR4181_CSIINT_REG_W	ICU_NO_REG_W	/* Level2 CSI intr reg */
#define VR4181_MCSIINT_REG_W	ICU_NO_REG_W	/* Level2 CSI intr mask */
#if defined SINGLE_VRIP_BASE
#if defined VRGROUP_4102_4121
#define CSIINT_REG_W		VR4102_CSIINT_REG_W
#define MCSIINT_REG_W		VR4102_MCSIINT_REG_W
#endif /* VRGROUP_4102_4121 */
#if defined VRGROUP_4122_4131
#define CSIINT_REG_W		VR4122_CSIINT_REG_W
#define MCSIINT_REG_W		VR4122_MCSIINT_REG_W
#endif /* VRGROUP_4122_4131 */
#if defined VRGROUP_4181
#define CSIINT_REG_W		VR4181_CSIINT_REG_W
#define MCSIINT_REG_W		VR4181_MCSIINT_REG_W
#endif /* VRGROUP_4181 */
#endif

#define		CSIINT_TRPAGE2		(1<<6)	/* DMA send page 2 intr */
#define		CSIINT_TRPAGE1		(1<<5)	/* DMA send page 1 intr */
#define		CSIINT_TREND		(1<<4)	/* send every data intr */
#define		CSIINT_TREMPTY		(1<<3)	/* send FIFO empty intr */
#define		CSIINT_RCPAGE2		(1<<2)	/* DMA recv page 2 intr */
#define		CSIINT_RCPAGE1		(1<<1)	/* DMA recv page 1 intr */
#define		CSIINT_RCOVER		(1)	/* recv FIFO overrun intr */


/* BCUINT & MBCUINT */
#define VR4102_BCUINT_REG_W	ICU_NO_REG_W	/* Level2 BCU intr reg */
#define VR4102_MBCUINT_REG_W	ICU_NO_REG_W	/* Level2 BCU intr mask */
#define VR4122_BCUINT_REG_W	0x38	/* Level2 BCU intr reg */
#define VR4122_MBCUINT_REG_W	0x3a	/* Level2 BCU intr mask */
#define VR4181_BCUINT_REG_W	ICU_NO_REG_W	/* Level2 BCU intr reg */
#define VR4181_MBCUINT_REG_W	ICU_NO_REG_W	/* Level2 BCU intr mask */
#if defined SINGLE_VRIP_BASE
#if defined VRGROUP_4102_4121
#define BCUINT_REG_W		VR4102_BCUINT_REG_W
#define MBCUINT_REG_W		VR4102_MBCUINT_REG_W
#endif /* VRGROUP_4102_4121 */
#if defined VRGROUP_4122_4131
#define BCUINT_REG_W		VR4122_BCUINT_REG_W
#define MBCUINT_REG_W		VR4122_MBCUINT_REG_W
#endif /* VRGROUP_4122_4131 */
#if defined VRGROUP_4181
#define BCUINT_REG_W		VR4181_BCUINT_REG_W
#define MBCUINT_REG_W		VR4181_MBCUINT_REG_W
#endif /* VRGROUP_4181 */
#endif

#define		BCUINT_INT		(1)	/* BCU INT */

/* END icureg.h */