summaryrefslogtreecommitdiff
path: root/sys/arch/octeon/dev/cn30xxciureg.h
blob: f57259b10a5924364254dba1245813a3b7ed7e5a (plain)
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
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
/*
 * THIS FILE IS AUTOMATICALLY GENERATED
 * DONT EDIT THIS FILE
 */

/*	$OpenBSD: cn30xxciureg.h,v 1.1 2011/06/16 11:22:30 syuu Exp $	*/

/*
 * Copyright (c) 2007 Internet Initiative Japan, Inc.
 * 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.
 *
 * 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.
 */

/*
 * Cavium Networks OCTEON CN30XX Hardware Reference Manual
 * CN30XX-HM-1.0
 * 11.10 CIU Registers
 */

#ifndef _CN30XXCIUREG_H_
#define _CN30XXCIUREG_H_

/* ---- register addresses */

#define	CIU_INT0_SUM0				0x0001070000000000ULL
#define	CIU_INT1_SUM0				0x0001070000000008ULL
#define	CIU_INT2_SUM0				0x0001070000000010ULL
#define	CIU_INT3_SUM0				0x0001070000000018ULL
#define	CIU_INT32_SUM0				0x0001070000000100ULL
#define	CIU_INT_SUM1				0x0001070000000008ULL
#define	CIU_INT0_EN0				0x0001070000000200ULL
#define	CIU_INT1_EN0				0x0001070000000210ULL
#define	CIU_INT2_EN0				0x0001070000000220ULL
#define	CIU_INT3_EN0				0x0001070000000230ULL
#define	CIU_INT32_EN0				0x0001070000000400ULL
#define	CIU_INT0_EN1				0x0001070000000208ULL
#define	CIU_INT1_EN1				0x0001070000000218ULL
#define	CIU_INT2_EN1				0x0001070000000228ULL
#define	CIU_INT3_EN1				0x0001070000000238ULL
#define	CIU_INT32_EN1				0x0001070000000408ULL
#define	CIU_TIM0				0x0001070000000480ULL
#define	CIU_TIM1				0x0001070000000488ULL
#define	CIU_TIM2				0x0001070000000490ULL
#define	CIU_TIM3				0x0001070000000498ULL
#define	CIU_WDOG0				0x0001070000000500ULL
#define	CIU_WDOG1				0x0001070000000508ULL
#define	CIU_PP_POKE0				0x0001070000000580ULL
#define	CIU_PP_POKE1				0x0001070000000588ULL
#define	CIU_MBOX_SET0				0x0001070000000600ULL
#define	CIU_MBOX_SET1				0x0001070000000600ULL
#define	CIU_MBOX_CLR0				0x0001070000000680ULL
#define	CIU_MBOX_CLR1				0x0001070000000680ULL
#define	CIU_PP_RST				0x0001070000000700ULL
#define	CIU_PP_DBG				0x0001070000000708ULL
#define	CIU_GSTOP				0x0001070000000710ULL
#define	CIU_NMI					0x0001070000000718ULL
#define	CIU_DINT				0x0001070000000720ULL
#define	CIU_FUSE				0x0001070000000728ULL
#define	CIU_BIST				0x0001070000000730ULL
#define	CIU_SOFT_BIST				0x0001070000000738ULL
#define	CIU_SOFT_RST				0x0001070000000740ULL
#define	CIU_SOFT_PRST				0x0001070000000748ULL
#define	CIU_PCI_INTA				0x0001070000000750ULL

#define	CIU_INT0_SUM0_OFFSET			0x0000
#define	CIU_INT1_SUM0_OFFSET			0x0008
#define	CIU_INT2_SUM0_OFFSET			0x0010
#define	CIU_INT3_SUM0_OFFSET			0x0018
#define	CIU_INT32_SUM0_OFFSET			0x0100
#define	CIU_INT_SUM1_OFFSET			0x0008
#define	CIU_INT0_EN0_OFFSET			0x0200
#define	CIU_INT1_EN0_OFFSET			0x0210
#define	CIU_INT2_EN0_OFFSET			0x0220
#define	CIU_INT3_EN0_OFFSET			0x0230
#define	CIU_INT32_EN0_OFFSET			0x0400
#define	CIU_INT0_EN1_OFFSET			0x0208
#define	CIU_INT1_EN1_OFFSET			0x0218
#define	CIU_INT2_EN1_OFFSET			0x0228
#define	CIU_INT3_EN1_OFFSET			0x0238
#define	CIU_INT32_EN1_OFFSET			0x0408
#define	CIU_TIM0_OFFSET				0x0480
#define	CIU_TIM1_OFFSET				0x0488
#define	CIU_TIM2_OFFSET				0x0490
#define	CIU_TIM3_OFFSET				0x0498
#define	CIU_WDOG0_OFFSET			0x0500
#define	CIU_WDOG1_OFFSET			0x0508
#define	CIU_PP_POKE0_OFFSET			0x0580
#define	CIU_PP_POKE1_OFFSET			0x0588
#define	CIU_MBOX_SET0_OFFSET			0x0600
#define	CIU_MBOX_SET1_OFFSET			0x0608
#define	CIU_MBOX_CLR0_OFFSET			0x0680
#define	CIU_MBOX_CLR1_OFFSET			0x0688
#define	CIU_PP_RST_OFFSET			0x0700
#define	CIU_PP_DBG_OFFSET			0x0708
#define	CIU_GSTOP_OFFSET			0x0710
#define	CIU_NMI_OFFSET				0x0718
#define	CIU_DINT_OFFSET				0x0720
#define	CIU_FUSE_OFFSET				0x0728
#define	CIU_BIST_OFFSET				0x0730
#define	CIU_SOFT_BIST_OFFSET			0x0738
#define	CIU_SOFT_RST_OFFSET			0x0740
#define	CIU_SOFT_PRST_OFFSET			0x0748
#define	CIU_PCI_INTA_OFFSET			0x0750

/* ---- register bits */

/* ``interrupt bits'' shift values */

#define	_CIU_INT_XXX_63_SHIFT			0x3f
#define	_CIU_INT_XXX_62_SHIFT			0x3e
#define	_CIU_INT_XXX_61_SHIFT			0x3d
#define	_CIU_INT_XXX_60_SHIFT			0x3c
#define	_CIU_INT_XXX_59_SHIFT			0x3b
#define	_CIU_INT_MPI_SHIFT			0x3a
#define	_CIU_INT_PCM_SHIFT			0x39
#define	_CIU_INT_USB_SHIFT			0x38
#define	_CIU_INT_TIMER_3_SHIFT			0x37
#define	_CIU_INT_TIMER_2_SHIFT			0x36
#define	_CIU_INT_TIMER_1_SHIFT			0x35
#define	_CIU_INT_TIMER_0_SHIFT			0x34
#define	_CIU_INT_XXX_51_SHIFT			0x33
#define	_CIU_INT_IPD_DRP_SHIFT			0x32
#define	_CIU_INT_GMX_DRP_SHIFT			0x30
#define	_CIU_INT_TRACE_SHIFT			0x2f
#define	_CIU_INT_RML_SHIFT			0x2e
#define	_CIU_INT_TWSI_SHIFT			0x2d
#define	_CIU_INT_WDOG_SUM_SHIFT			0x2c
#define	_CIU_INT_PCI_MSI_63_48_SHIFT		0x2b
#define	_CIU_INT_PCI_MSI_47_32_SHIFT		0x2a
#define	_CIU_INT_PCI_MSI_31_16_SHIFT		0x29
#define	_CIU_INT_PCI_MSI_15_0_SHIFT		0x28
#define	_CIU_INT_PCI_INT_D_SHIFT		0x27
#define	_CIU_INT_PCI_INT_C_SHIFT		0x26
#define	_CIU_INT_PCI_INT_B_SHIFT		0x25
#define	_CIU_INT_PCI_INT_A_SHIFT		0x24
#define	_CIU_INT_UART_1_SHIFT			0x23
#define	_CIU_INT_UART_0_SHIFT			0x22
#define	_CIU_INT_MBOX_31_16_SHIFT		0x21
#define	_CIU_INT_MBOX_15_0_SHIFT		0x20
#define	_CIU_INT_GPIO_15_SHIFT			0x1f
#define	_CIU_INT_GPIO_14_SHIFT			0x1e
#define	_CIU_INT_GPIO_13_SHIFT			0x1d
#define	_CIU_INT_GPIO_12_SHIFT			0x1c
#define	_CIU_INT_GPIO_11_SHIFT			0x1b
#define	_CIU_INT_GPIO_10_SHIFT			0x1a
#define	_CIU_INT_GPIO_9_SHIFT			0x19
#define	_CIU_INT_GPIO_8_SHIFT			0x18
#define	_CIU_INT_GPIO_7_SHIFT			0x17
#define	_CIU_INT_GPIO_6_SHIFT			0x16
#define	_CIU_INT_GPIO_5_SHIFT			0x15
#define	_CIU_INT_GPIO_4_SHIFT			0x14
#define	_CIU_INT_GPIO_3_SHIFT			0x13
#define	_CIU_INT_GPIO_2_SHIFT			0x12
#define	_CIU_INT_GPIO_1_SHIFT			0x11
#define	_CIU_INT_GPIO_0_SHIFT			0x10
#define	_CIU_INT_WORKQ_15_SHIFT			0x0f
#define	_CIU_INT_WORKQ_14_SHIFT			0x0e
#define	_CIU_INT_WORKQ_13_SHIFT			0x0d
#define	_CIU_INT_WORKQ_12_SHIFT			0x0c
#define	_CIU_INT_WORKQ_11_SHIFT			0x0b
#define	_CIU_INT_WORKQ_10_SHIFT			0x0a
#define	_CIU_INT_WORKQ_9_SHIFT			0x09
#define	_CIU_INT_WORKQ_8_SHIFT			0x08
#define	_CIU_INT_WORKQ_7_SHIFT			0x07
#define	_CIU_INT_WORKQ_6_SHIFT			0x06
#define	_CIU_INT_WORKQ_5_SHIFT			0x05
#define	_CIU_INT_WORKQ_4_SHIFT			0x04
#define	_CIU_INT_WORKQ_3_SHIFT			0x03
#define	_CIU_INT_WORKQ_2_SHIFT			0x02
#define	_CIU_INT_WORKQ_1_SHIFT			0x01

#define	CIU_INTX_SUM0_XXX_63_59			0xf800000000000000ULL
#define	CIU_INTX_SUM0_MPI			0x0400000000000000ULL
#define	CIU_INTX_SUM0_PCM			0x0200000000000000ULL
#define	CIU_INTX_SUM0_USB			0x0100000000000000ULL
#define	CIU_INTX_SUM0_TIMER			0x00f0000000000000ULL
#define	 CIU_INTX_SUM0_TIMER_3			0x0080000000000000ULL
#define	 CIU_INTX_SUM0_TIMER_2			0x0040000000000000ULL
#define	 CIU_INTX_SUM0_TIMER_1			0x0020000000000000ULL
#define	 CIU_INTX_SUM0_TIMER_0			0x0010000000000000ULL
#define	CIU_INTX_SUM0_XXX_51			0x0008000000000000ULL
#define	CIU_INTX_SUM0_IPD_DRP			0x0004000000000000ULL
#define	CIU_INTX_SUM0_XXX_49			0x0002000000000000ULL
#define	CIU_INTX_SUM0_GMX_DRP			0x0001000000000000ULL
#define	CIU_INTX_SUM0_TRACE			0x0000800000000000ULL
#define	CIU_INTX_SUM0_RML			0x0000400000000000ULL
#define	CIU_INTX_SUM0_TWSI			0x0000200000000000ULL
#define	CIU_INTX_SUM0_WDOG_SUM			0x0000100000000000ULL
#define	CIU_INTX_SUM0_PCI_MSI			0x00000f0000000000ULL
#define	 CIU_INTX_SUM0_PCI_MSI_63_48		0x0000080000000000ULL
#define	 CIU_INTX_SUM0_PCI_MSI_47_32		0x0000040000000000ULL
#define	 CIU_INTX_SUM0_PCI_MSI_31_16		0x0000020000000000ULL
#define	 CIU_INTX_SUM0_PCI_MSI_15_0		0x0000010000000000ULL
#define	CIU_INTX_SUM0_PCI_INT			0x000000f000000000ULL
#define	 CIU_INTX_SUM0_PCI_INT_D		0x0000008000000000ULL
#define	 CIU_INTX_SUM0_PCI_INT_C		0x0000004000000000ULL
#define	 CIU_INTX_SUM0_PCI_INT_B		0x0000002000000000ULL
#define	 CIU_INTX_SUM0_PCI_INT_A		0x0000001000000000ULL
#define	CIU_INTX_SUM0_UART			0x0000000c00000000ULL
#define	 CIU_INTX_SUM0_UART_1			0x0000000800000000ULL
#define	 CIU_INTX_SUM0_UART_0			0x0000000400000000ULL
#define	CIU_INTX_SUM0_MBOX			0x0000000300000000ULL
#define	 CIU_INTX_SUM0_MBOX_31_16		0x0000000200000000ULL
#define	 CIU_INTX_SUM0_MBOX_15_0		0x0000000100000000ULL
#define	CIU_INTX_SUM0_GPIO			0x00000000ffff0000ULL
#define	 CIU_INTX_SUM0_GPIO_15			0x0000000080000000ULL
#define	 CIU_INTX_SUM0_GPIO_14			0x0000000040000000ULL
#define	 CIU_INTX_SUM0_GPIO_13			0x0000000020000000ULL
#define	 CIU_INTX_SUM0_GPIO_12			0x0000000010000000ULL
#define	 CIU_INTX_SUM0_GPIO_11			0x0000000008000000ULL
#define	 CIU_INTX_SUM0_GPIO_10			0x0000000004000000ULL
#define	 CIU_INTX_SUM0_GPIO_9			0x0000000002000000ULL
#define	 CIU_INTX_SUM0_GPIO_8			0x0000000001000000ULL
#define	 CIU_INTX_SUM0_GPIO_7			0x0000000000800000ULL
#define	 CIU_INTX_SUM0_GPIO_6			0x0000000000400000ULL
#define	 CIU_INTX_SUM0_GPIO_5			0x0000000000200000ULL
#define	 CIU_INTX_SUM0_GPIO_4			0x0000000000100000ULL
#define	 CIU_INTX_SUM0_GPIO_3			0x0000000000080000ULL
#define	 CIU_INTX_SUM0_GPIO_2			0x0000000000040000ULL
#define	 CIU_INTX_SUM0_GPIO_1			0x0000000000020000ULL
#define	 CIU_INTX_SUM0_GPIO_0			0x0000000000010000ULL
#define	CIU_INTX_SUM0_WORKQ			0x000000000000ffffULL
#define	 CIU_INTX_SUM0_WORKQ_15			0x0000000000008000ULL
#define	 CIU_INTX_SUM0_WORKQ_14			0x0000000000004000ULL
#define	 CIU_INTX_SUM0_WORKQ_13			0x0000000000002000ULL
#define	 CIU_INTX_SUM0_WORKQ_12			0x0000000000001000ULL
#define	 CIU_INTX_SUM0_WORKQ_11			0x0000000000000800ULL
#define	 CIU_INTX_SUM0_WORKQ_10			0x0000000000000400ULL
#define	 CIU_INTX_SUM0_WORKQ_9			0x0000000000000200ULL
#define	 CIU_INTX_SUM0_WORKQ_8			0x0000000000000100ULL
#define	 CIU_INTX_SUM0_WORKQ_7			0x0000000000000080ULL
#define	 CIU_INTX_SUM0_WORKQ_6			0x0000000000000040ULL
#define	 CIU_INTX_SUM0_WORKQ_5			0x0000000000000020ULL
#define	 CIU_INTX_SUM0_WORKQ_4			0x0000000000000010ULL
#define	 CIU_INTX_SUM0_WORKQ_3			0x0000000000000008ULL
#define	 CIU_INTX_SUM0_WORKQ_2			0x0000000000000004ULL
#define	 CIU_INTX_SUM0_WORKQ_1			0x0000000000000002ULL
#define	 CIU_INTX_SUM0_WORKQ_0			0x0000000000000001ULL

#define	CIU_INT_SUM1_XXX_63_1			0xfffffffffffffffeULL
#define	CIU_INT_SUM1_WDOG			0x0000000000000001ULL

#define	CIU_INTX_EN0_XXX_63_59			0xf800000000000000ULL
#define	CIU_INTX_EN0_MPI			0x0400000000000000ULL
#define	CIU_INTX_EN0_PCM			0x0200000000000000ULL
#define	CIU_INTX_EN0_USB			0x0100000000000000ULL
#define	CIU_INTX_EN0_TIMER			0x00f0000000000000ULL
#define	 CIU_INTX_EN0_TIMER_3			0x0080000000000000ULL
#define	 CIU_INTX_EN0_TIMER_2			0x0040000000000000ULL
#define	 CIU_INTX_EN0_TIMER_1			0x0020000000000000ULL
#define	 CIU_INTX_EN0_TIMER_0			0x0010000000000000ULL
#define	CIU_INTX_EN0_XXX_51			0x0008000000000000ULL
#define	CIU_INTX_EN0_IPD_DRP			0x0004000000000000ULL
#define	CIU_INTX_EN0_XXX_49			0x0002000000000000ULL
#define	CIU_INTX_EN0_GMX_DRP			0x0001000000000000ULL
#define	CIU_INTX_EN0_TRACE			0x0000800000000000ULL
#define	CIU_INTX_EN0_RML			0x0000400000000000ULL
#define	CIU_INTX_EN0_TWSI			0x0000200000000000ULL
#define	CIU_INTX_EN0_WDOG_SUM			0x0000100000000000ULL
#define	CIU_INTX_EN0_PCI_MSI			0x00000f0000000000ULL
#define	 CIU_INTX_EN0_PCI_MSI_63_48		0x0000080000000000ULL
#define	 CIU_INTX_EN0_PCI_MSI_47_32		0x0000040000000000ULL
#define	 CIU_INTX_EN0_PCI_MSI_31_16		0x0000020000000000ULL
#define	 CIU_INTX_EN0_PCI_MSI_15_0		0x0000010000000000ULL
#define	CIU_INTX_EN0_PCI_INT			0x000000f000000000ULL
#define	 CIU_INTX_EN0_PCI_INT_D			0x0000008000000000ULL
#define	 CIU_INTX_EN0_PCI_INT_C			0x0000004000000000ULL
#define	 CIU_INTX_EN0_PCI_INT_B			0x0000002000000000ULL
#define	 CIU_INTX_EN0_PCI_INT_A			0x0000001000000000ULL
#define	CIU_INTX_EN0_UART			0x0000000c00000000ULL
#define	 CIU_INTX_EN0_UART_1			0x0000000800000000ULL
#define	 CIU_INTX_EN0_UART_0			0x0000000400000000ULL
#define	CIU_INTX_EN0_MBOX			0x0000000300000000ULL
#define	 CIU_INTX_EN0_MBOX_31_16		0x0000000200000000ULL
#define	 CIU_INTX_EN0_MBOX_15_0			0x0000000100000000ULL
#define	CIU_INTX_EN0_GPIO			0x00000000ffff0000ULL
#define	 CIU_INTX_EN0_GPIO_15			0x0000000080000000ULL
#define	 CIU_INTX_EN0_GPIO_14			0x0000000040000000ULL
#define	 CIU_INTX_EN0_GPIO_13			0x0000000020000000ULL
#define	 CIU_INTX_EN0_GPIO_12			0x0000000010000000ULL
#define	 CIU_INTX_EN0_GPIO_11			0x0000000008000000ULL
#define	 CIU_INTX_EN0_GPIO_10			0x0000000004000000ULL
#define	 CIU_INTX_EN0_GPIO_9			0x0000000002000000ULL
#define	 CIU_INTX_EN0_GPIO_8			0x0000000001000000ULL
#define	 CIU_INTX_EN0_GPIO_7			0x0000000000800000ULL
#define	 CIU_INTX_EN0_GPIO_6			0x0000000000400000ULL
#define	 CIU_INTX_EN0_GPIO_5			0x0000000000200000ULL
#define	 CIU_INTX_EN0_GPIO_4			0x0000000000100000ULL
#define	 CIU_INTX_EN0_GPIO_3			0x0000000000080000ULL
#define	 CIU_INTX_EN0_GPIO_2			0x0000000000040000ULL
#define	 CIU_INTX_EN0_GPIO_1			0x0000000000020000ULL
#define	 CIU_INTX_EN0_GPIO_0			0x0000000000010000ULL
#define	CIU_INTX_EN0_WORKQ			0x000000000000ffffULL
#define	 CIU_INTX_EN0_WORKQ_15			0x0000000000008000ULL
#define	 CIU_INTX_EN0_WORKQ_14			0x0000000000004000ULL
#define	 CIU_INTX_EN0_WORKQ_13			0x0000000000002000ULL
#define	 CIU_INTX_EN0_WORKQ_12			0x0000000000001000ULL
#define	 CIU_INTX_EN0_WORKQ_11			0x0000000000000800ULL
#define	 CIU_INTX_EN0_WORKQ_10			0x0000000000000400ULL
#define	 CIU_INTX_EN0_WORKQ_9			0x0000000000000200ULL
#define	 CIU_INTX_EN0_WORKQ_8			0x0000000000000100ULL
#define	 CIU_INTX_EN0_WORKQ_7			0x0000000000000080ULL
#define	 CIU_INTX_EN0_WORKQ_6			0x0000000000000040ULL
#define	 CIU_INTX_EN0_WORKQ_5			0x0000000000000020ULL
#define	 CIU_INTX_EN0_WORKQ_4			0x0000000000000010ULL
#define	 CIU_INTX_EN0_WORKQ_3			0x0000000000000008ULL
#define	 CIU_INTX_EN0_WORKQ_2			0x0000000000000004ULL
#define	 CIU_INTX_EN0_WORKQ_1			0x0000000000000002ULL
#define	 CIU_INTX_EN0_WORKQ_0			0x0000000000000001ULL

#define	CIU_INTX_EN1_XXX_63_1			0xfffffffffffffffeULL
#define	CIU_INTX_EN1_WDOG			0x0000000000000001ULL

#define	CIU_TIMX_XXX_63_37			0xffffffe000000000ULL
#define	CIU_TIMX_ONE_SHOT			0x0000001000000000ULL
#define	CIU_TIMX_LEN				0x0000000fffffffffULL

#define	CIU_WDOGX_XXX_63_46			0xffffc00000000000ULL
#define	CIU_WDOGX_GSTOPEN			0x0000200000000000ULL
#define	CIU_WDOGX_DSTOP				0x0000100000000000ULL
#define	CIU_WDOGX_CNT				0x00000ffffff00000ULL
#define	CIU_WDOGX_LEN				0x00000000000ffff0ULL
#define	CIU_WDOGX_STATE				0x000000000000000cULL
#define	CIU_WDOGX_MODE				0x0000000000000003ULL

#define	CIU_PP_POKEX_XXX_63_0			0xffffffffffffffffULL

#define	CIU_MBOX_SETX_XXX_63_32			0xffffffff00000000ULL
#define	CIU_MBOX_SETX_SET			0x00000000ffffffffULL

#define	CIU_MBOX_CLRX_XXX_63_32			0xffffffff00000000ULL
#define	CIU_MBOX_CLRX_CLR			0x00000000ffffffffULL

#define	CIU_PP_RST_XXX_63_1			0xfffffffffffffffeULL
#define	CIU_PP_RST_RST0				0x0000000000000001ULL

#define	CIU_PP_DBG_XXX_63_1			0xfffffffffffffffeULL
#define	CIU_PP_DBG_PPDBG			0x0000000000000001ULL

#define	CIU_GSTOP_XXX_63_1			0xfffffffffffffffeULL
#define	CIU_GSTOP_GSTOP				0x0000000000000001ULL

#define	CIU_NMI_XXX_63_1			0xfffffffffffffffeULL
#define	CIU_NMI_NMI				0x0000000000000001ULL

#define	CIU_DINT_XXX_63_1			0xfffffffffffffffeULL
#define	CIU_DINT_DINT				0x0000000000000001ULL

#define	CIU_FUSE_XXX_63_1			0xfffffffffffffffeULL
#define	CIU_FUSE_FUSE				0x0000000000000001ULL

#define	CIU_BIST_XXX_63_4			0xfffffffffffffff0ULL
#define	CIU_BIST_BIST				0x000000000000000fULL

#define	CIU_SOFT_BIST_XXX_63_1			0xfffffffffffffffeULL
#define	CIU_SOFT_BIST_SOFT_BIST			0x0000000000000001ULL

#define	CIU_SOFT_RST_XXX_63_1			0xfffffffffffffffeULL
#define	CIU_SOFT_RST_SOFT_RST			0x0000000000000001ULL

#define	CIU_SOFT_PRST_XXX_63_1			0xfffffffffffffff8ULL
#define	CIU_SOFT_PRST_HOST64			0x0000000000000004ULL
#define	CIU_SOFT_PRST_NPI			0x0000000000000002ULL
#define	CIU_SOFT_PRST_SOFT_PRST			0x0000000000000001ULL

#define	CIU_PCI_INTA_XXX_63_2			0xfffffffffffffffcULL
#define	CIU_PCI_INTA_INT			0x0000000000000003ULL

/* -- bitmask_snprintf(9) */

#define	CIU_INTX_SUM0_BITS \
	"\177"		/* new format */ \
	"\177"		/* seil ext */ \
	"\020"		/* hex display */ \
	"\020"		/* %016x format */ \
	"b\x3a"		"MPI\0" \
	"b\x39"		"PCM\0" \
	"b\x38"		"USB\0" \
	"b\x37"		"TIMER_3\0" \
	"b\x36"		"TIMER_2\0" \
	"b\x35"		"TIMER_1\0" \
	"b\x34"		"TIMER_0\0" \
	"f\x34\x04"	"TIMER\0" \
	"b\x32"		"IPD_DRP\0" \
	"b\x30"		"GMX_DRP\0" \
	"b\x2f"		"TRACE\0" \
	"b\x2e"		"RML\0" \
	"b\x2d"		"TWSI\0" \
	"b\x2c"		"WDOG_SUM\0" \
	"b\x2b"		"PCI_MSI_63_48\0" \
	"b\x2a"		"PCI_MSI_47_32\0" \
	"b\x29"		"PCI_MSI_31_16\0" \
	"f\x28\x04"	"PCI_MSI\0" \
	"b\x28"		"PCI_MSI_15_0\0" \
	"b\x27"		"PCI_INT_D\0" \
	"b\x26"		"PCI_INT_C\0" \
	"b\x25"		"PCI_INT_B\0" \
	"f\x24\x04"	"PCI_INT\0" \
	"b\x24"		"PCI_INT_A\0" \
	"b\x23"		"UART_1\0" \
	"f\x22\x02"	"UART\0" \
	"b\x22"		"UART_0\0" \
	"b\x21"		"MBOX_31_16\0" \
	"f\x20\x02"	"MBOX\0" \
	"b\x20"		"MBOX_15_0\0" \
	"b\x1f"		"GPIO_15\0" \
	"b\x1e"		"GPIO_14\0" \
	"b\x1d"		"GPIO_13\0" \
	"b\x1c"		"GPIO_12\0" \
	"b\x1b"		"GPIO_11\0" \
	"b\x1a"		"GPIO_10\0" \
	"b\x19"		"GPIO_9\0" \
	"b\x18"		"GPIO_8\0" \
	"b\x17"		"GPIO_7\0" \
	"b\x16"		"GPIO_6\0" \
	"b\x15"		"GPIO_5\0" \
	"b\x14"		"GPIO_4\0" \
	"b\x13"		"GPIO_3\0" \
	"b\x12"		"GPIO_2\0" \
	"b\x11"		"GPIO_1\0" \
	"b\x10"		"GPIO_0\0" \
	"f\x10\x10"	"GPIO\0" \
	"b\x0f"		"WORKQ_15\0" \
	"b\x0e"		"WORKQ_14\0" \
	"b\x0d"		"WORKQ_13\0" \
	"b\x0c"		"WORKQ_12\0" \
	"b\x0b"		"WORKQ_11\0" \
	"b\x0a"		"WORKQ_10\0" \
	"b\x09"		"WORKQ_9\0" \
	"b\x08"		"WORKQ_8\0" \
	"b\x07"		"WORKQ_7\0" \
	"b\x06"		"WORKQ_6\0" \
	"b\x05"		"WORKQ_5\0" \
	"b\x04"		"WORKQ_4\0" \
	"b\x03"		"WORKQ_3\0" \
	"b\x02"		"WORKQ_2\0" \
	"b\x01"		"WORKQ_1\0" \
	"b\x00"		"WORKQ_0\0" \
	"f\x00\x10"	"WORKQ\0"
#define	CIU_INT0_SUM0_BITS			CIU_INTX_SUM0_BITS
#define	CIU_INT1_SUM0_BITS			CIU_INTX_SUM0_BITS
#define	CIU_INT2_SUM0_BITS			CIU_INTX_SUM0_BITS
#define	CIU_INT3_SUM0_BITS			CIU_INTX_SUM0_BITS
#define	CIU_INT32_SUM0_BITS			CIU_INTX_SUM0_BITS

#define	CIU_INT_SUM1_BITS \
	"\177"		/* new format */ \
	"\177"		/* seil ext */ \
	"\020"		/* hex display */ \
	"\020"		/* %016x format */ \
	"b\x00"		"WDOG\0"

#define	CIU_INTX_EN0_BITS \
	"\177"		/* new format */ \
	"\177"		/* seil ext */ \
	"\020"		/* hex display */ \
	"\020"		/* %016x format */ \
	"b\x3a"		"MPI\0" \
	"b\x39"		"PCM\0" \
	"b\x38"		"USB\0" \
	"b\x37"		"TIMER_3\0" \
	"b\x36"		"TIMER_2\0" \
	"b\x35"		"TIMER_1\0" \
	"b\x34"		"TIMER_0\0" \
	"f\x34\x04"	"TIMER\0" \
	"b\x32"		"IPD_DRP\0" \
	"b\x30"		"GMX_DRP\0" \
	"b\x2f"		"TRACE\0" \
	"b\x2e"		"RML\0" \
	"b\x2d"		"TWSI\0" \
	"b\x2c"		"WDOG_SUM\0" \
	"b\x2b"		"PCI_MSI_63_48\0" \
	"b\x2a"		"PCI_MSI_47_32\0" \
	"b\x29"		"PCI_MSI_31_16\0" \
	"f\x28\x04"	"PCI_MSI\0" \
	"b\x28"		"PCI_MSI_15_0\0" \
	"b\x27"		"PCI_INT_D\0" \
	"b\x26"		"PCI_INT_C\0" \
	"b\x25"		"PCI_INT_B\0" \
	"f\x24\x04"	"PCI_INT\0" \
	"b\x24"		"PCI_INT_A\0" \
	"b\x23"		"UART_1\0" \
	"f\x22\x02"	"UART\0" \
	"b\x22"		"UART_0\0" \
	"b\x21"		"MBOX_31_16\0" \
	"f\x20\x02"	"MBOX\0" \
	"b\x20"		"MBOX_15_0\0" \
	"b\x1f"		"GPIO_15\0" \
	"b\x1e"		"GPIO_14\0" \
	"b\x1d"		"GPIO_13\0" \
	"b\x1c"		"GPIO_12\0" \
	"b\x1b"		"GPIO_11\0" \
	"b\x1a"		"GPIO_10\0" \
	"b\x19"		"GPIO_9\0" \
	"b\x18"		"GPIO_8\0" \
	"b\x17"		"GPIO_7\0" \
	"b\x16"		"GPIO_6\0" \
	"b\x15"		"GPIO_5\0" \
	"b\x14"		"GPIO_4\0" \
	"b\x13"		"GPIO_3\0" \
	"b\x12"		"GPIO_2\0" \
	"b\x11"		"GPIO_1\0" \
	"b\x10"		"GPIO_0\0" \
	"f\x10\x10"	"GPIO\0" \
	"b\x0f"		"WORKQ_15\0" \
	"b\x0e"		"WORKQ_14\0" \
	"b\x0d"		"WORKQ_13\0" \
	"b\x0c"		"WORKQ_12\0" \
	"b\x0b"		"WORKQ_11\0" \
	"b\x0a"		"WORKQ_10\0" \
	"b\x09"		"WORKQ_9\0" \
	"b\x08"		"WORKQ_8\0" \
	"b\x07"		"WORKQ_7\0" \
	"b\x06"		"WORKQ_6\0" \
	"b\x05"		"WORKQ_5\0" \
	"b\x04"		"WORKQ_4\0" \
	"b\x03"		"WORKQ_3\0" \
	"b\x02"		"WORKQ_2\0" \
	"b\x01"		"WORKQ_1\0" \
	"b\x00"		"WORKQ_0\0" \
	"f\x00\x10"	"WORKQ\0"
#define	CIU_INT0_EN0_BITS			CIU_INTX_EN0_BITS
#define	CIU_INT1_EN0_BITS			CIU_INTX_EN0_BITS
#define	CIU_INT2_EN0_BITS			CIU_INTX_EN0_BITS
#define	CIU_INT3_EN0_BITS			CIU_INTX_EN0_BITS
#define	CIU_INT32_EN0_BITS			CIU_INTX_EN0_BITS

#define	CIU_INTX_EN1_BITS \
	"\177"		/* new format */ \
	"\177"		/* seil ext */ \
	"\020"		/* hex display */ \
	"\020"		/* %016x format */ \
	"b\x00"		"WDOG\0"
#define	CIU_INT0_EN1_BITS			CIU_INTX_EN1_BITS
#define	CIU_INT1_EN1_BITS			CIU_INTX_EN1_BITS
#define	CIU_INT2_EN1_BITS			CIU_INTX_EN1_BITS
#define	CIU_INT3_EN1_BITS			CIU_INTX_EN1_BITS
#define	CIU_INT32_EN1_BITS			CIU_INTX_EN1_BITS

#define	CIU_TIMX_BITS \
	"\177"		/* new format */ \
	"\177"		/* seil ext */ \
	"\020"		/* hex display */ \
	"\020"		/* %016x format */ \
	"b\x24"		"ONE_SHOT\0" \
	"f\x00\x24"	"LEN\0"
#define	CIU_TIM0_BITS				CIU_TIMX_BITS
#define	CIU_TIM1_BITS				CIU_TIMX_BITS
#define	CIU_TIM2_BITS				CIU_TIMX_BITS
#define	CIU_TIM3_BITS				CIU_TIMX_BITS
#define	CIU_TIM32_BITS				CIU_TIMX_BITS

#define	CIU_WDOGX_BITS \
	"\177"		/* new format */ \
	"\177"		/* seil ext */ \
	"\020"		/* hex display */ \
	"\020"		/* %016x format */ \
	"b\x2d"		"GSTOPEN\0" \
	"b\x2c"		"DSTOP\0" \
	"f\x14\x18"	"CNT\0" \
	"f\x04\x10"	"LEN\0" \
	"f\x02\x02"	"STATE\0" \
	"f\x00\x02"	"MODE\0"
#define	CIU_WDOG0_BITS				CIU_WDOGX_BITS
#define	CIU_WDOG1_BITS				CIU_WDOGX_BITS

#if 0
#define	CIU_PP_POKEX_BITS \
	"\177"		/* new format */ \
	"\177"		/* seil ext */ \
	"\020"		/* hex display */ \
	"\020"		/* %016x format */ \

#define	CIU_PP_POKE0_BITS			CIU_PP_POKEX_BITS
#define	CIU_PP_POKE1_BITS			CIU_PP_POKEX_BITS
#endif

#define	CIU_MBOX_SETX_BITS \
	"\177"		/* new format */ \
	"\177"		/* seil ext */ \
	"\020"		/* hex display */ \
	"\020"		/* %016x format */ \
	"f\x00\x20"	"SET\0"
#define	CIU_MBOX_SET0_BITS			CIU_MBOX_SETX_BITS
#define	CIU_MBOX_SET1_BITS			CIU_MBOX_SETX_BITS

#define	CIU_MBOX_CLRX_BITS \
	"\177"		/* new format */ \
	"\177"		/* seil ext */ \
	"\020"		/* hex display */ \
	"\020"		/* %016x format */ \
	"f\x00\x20"	"CLR\0"
#define	CIU_MBOX_CLR0_BITS			CIU_MBOX_CLRX_BITS
#define	CIU_MBOX_CLR1_BITS			CIU_MBOX_CLRX_BITS

#define	CIU_PP_RST_BITS \
	"\177"		/* new format */ \
	"\177"		/* seil ext */ \
	"\020"		/* hex display */ \
	"\020"		/* %016x format */ \
	"b\x00"		"RST0\0"

#define	CIU_PP_DBG_BITS \
	"\177"		/* new format */ \
	"\177"		/* seil ext */ \
	"\020"		/* hex display */ \
	"\020"		/* %016x format */ \
	"b\x00"		"PPDBG\0"

#define	CIU_GSTOP_BITS \
	"\177"		/* new format */ \
	"\177"		/* seil ext */ \
	"\020"		/* hex display */ \
	"\020"		/* %016x format */ \
	"b\x00"		"GSTOP\0"

#define	CIU_NMI_BITS \
	"\177"		/* new format */ \
	"\177"		/* seil ext */ \
	"\020"		/* hex display */ \
	"\020"		/* %016x format */ \
	"b\x00"		"NMI\0"

#define	CIU_DINT_BITS \
	"\177"		/* new format */ \
	"\177"		/* seil ext */ \
	"\020"		/* hex display */ \
	"\020"		/* %016x format */ \
	"b\x00"		"DINT\0"

#define	CIU_FUSE_BITS \
	"\177"		/* new format */ \
	"\177"		/* seil ext */ \
	"\020"		/* hex display */ \
	"\020"		/* %016x format */ \
	"b\x00"		"FUSE\0"

#define	CIU_BIST_BITS \
	"\177"		/* new format */ \
	"\177"		/* seil ext */ \
	"\020"		/* hex display */ \
	"\020"		/* %016x format */ \
	"f\x00\x04"	"BIST\0"

#define	CIU_SOFT_BIST_BITS \
	"\177"		/* new format */ \
	"\177"		/* seil ext */ \
	"\020"		/* hex display */ \
	"\020"		/* %016x format */ \
	"b\x00"		"SOFT_BIST\0"

#define	CIU_SOFT_RST_BITS \
	"\177"		/* new format */ \
	"\177"		/* seil ext */ \
	"\020"		/* hex display */ \
	"\020"		/* %016x format */ \
	"b\x00"		"SOFT_RST\0"

#define	CIU_SOFT_PRST_BITS \
	"\177"		/* new format */ \
	"\177"		/* seil ext */ \
	"\020"		/* hex display */ \
	"\020"		/* %016x format */ \
	"b\x02"		"HOST64\0" \
	"b\x01"		"NPI\0" \
	"b\x00"		"SOFT_PRST\0"

#define	CIU_PCI_INTA_BITS \
	"\177"		/* new format */ \
	"\177"		/* seil ext */ \
	"\020"		/* hex display */ \
	"\020"		/* %016x format */ \
	"f\x00\x02"	"INT\0"

#endif /* _CN30XXCIUREG_H_ */