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
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
|
/*
* THIS FILE IS AUTOMATICALLY GENERATED
* DONT EDIT THIS FILE
*/
/* $OpenBSD: cn30xxipdreg.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
* 7.9 IPD Registers
*/
#ifndef _CN30XXIPDREG_H_
#define _CN30XXIPDREG_H_
#define IPD_1ST_MBUFF_SKIP 0x00014f0000000000ULL
#define IPD_NOT_1ST_MBUFF_SKIP 0x00014f0000000008ULL
#define IPD_PACKET_MBUFF_SIZE 0x00014f0000000010ULL
#define IPD_CTL_STATUS 0x00014f0000000018ULL
#define IPD_WQE_FPA_QUEUE 0x00014f0000000020ULL
#define IPD_PORT0_BP_PAGE_CNT 0x00014f0000000028ULL
#define IPD_PORT1_BP_PAGE_CNT 0x00014f0000000030ULL
#define IPD_PORT2_BP_PAGE_CNT 0x00014f0000000038ULL
#define IPD_PORT32_BP_PAGE_CNT 0x00014f0000000128ULL
#define IPD_SUB_PORT_BP_PAGE_CNT 0x00014f0000000148ULL
#define IPD_1ST_NEXT_PTR_BACK 0x00014f0000000150ULL
#define IPD_2ND_NEXT_PTR_BACK 0x00014f0000000158ULL
#define IPD_INT_ENB 0x00014f0000000160ULL
#define IPD_INT_SUM 0x00014f0000000168ULL
#define IPD_SUB_PORT_FCS 0x00014f0000000170ULL
#define IPD_QOS0_RED_MARKS 0x00014f0000000178ULL
#define IPD_QOS1_RED_MARKS 0x00014f0000000180ULL
#define IPD_QOS2_RED_MARKS 0x00014f0000000188ULL
#define IPD_QOS3_RED_MARKS 0x00014f0000000190ULL
#define IPD_QOS4_RED_MARKS 0x00014f0000000198ULL
#define IPD_QOS5_RED_MARKS 0x00014f00000001a0ULL
#define IPD_QOS6_RED_MARKS 0x00014f00000001a8ULL
#define IPD_QOS7_RED_MARKS 0x00014f00000001b0ULL
#define IPD_PORT_BP_COUNTERS_PAIR0 0x00014f00000001b8ULL
#define IPD_PORT_BP_COUNTERS_PAIR1 0x00014f00000001c0ULL
#define IPD_PORT_BP_COUNTERS_PAIR2 0x00014f00000001c8ULL
#define IPD_PORT_BP_COUNTERS_PAIR32 0x00014f00000002b8ULL
#define IPD_RED_PORT_ENABLE 0x00014f00000002d8ULL
#define IPD_RED_QUE0_PARAM 0x00014f00000002e0ULL
#define IPD_RED_QUE1_PARAM 0x00014f00000002e8ULL
#define IPD_RED_QUE2_PARAM 0x00014f00000002f0ULL
#define IPD_RED_QUE3_PARAM 0x00014f00000002f8ULL
#define IPD_RED_QUE4_PARAM 0x00014f0000000300ULL
#define IPD_RED_QUE5_PARAM 0x00014f0000000308ULL
#define IPD_RED_QUE6_PARAM 0x00014f0000000310ULL
#define IPD_RED_QUE7_PARAM 0x00014f0000000318ULL
#define IPD_PTR_COUNT 0x00014f0000000320ULL
#define IPD_BP_PRT_RED_END 0x00014f0000000328ULL
#define IPD_QUE0_FREE_PAGE_CNT 0x00014f0000000330ULL
#define IPD_CLK_COUNT 0x00014f0000000338ULL
#define IPD_PWP_PTR_FIFO_CTL 0x00014f0000000340ULL
#define IPD_PRC_HOLD_PTR_FIFO_CTL 0x00014f0000000348ULL
#define IPD_PRC_PORT_PTR_FIFO_CTL 0x00014f0000000350ULL
#define IPD_PKT_PTR_VALID 0x00014f0000000358ULL
#define IPD_WQE_PTR_VALID 0x00014f0000000360ULL
#define IPD_BIST_STATUS 0x00014f00000007f8ULL
#define IPD_BASE 0x00014f0000000000ULL
#define IPD_SIZE 0x800ULL
#define IPD_1ST_MBUFF_SKIP_OFFSET 0x0ULL
#define IPD_NOT_1ST_MBUFF_SKIP_OFFSET 0x8ULL
#define IPD_PACKET_MBUFF_SIZE_OFFSET 0x10ULL
#define IPD_CTL_STATUS_OFFSET 0x18ULL
#define IPD_WQE_FPA_QUEUE_OFFSET 0x20ULL
#define IPD_PORT0_BP_PAGE_CNT_OFFSET 0x28ULL
#define IPD_PORT1_BP_PAGE_CNT_OFFSET 0x30ULL
#define IPD_PORT2_BP_PAGE_CNT_OFFSET 0x38ULL
#define IPD_PORT32_BP_PAGE_CNT_OFFSET 0x128ULL
#define IPD_SUB_PORT_BP_PAGE_CNT_OFFSET 0x148ULL
#define IPD_1ST_NEXT_PTR_BACK_OFFSET 0x150ULL
#define IPD_2ND_NEXT_PTR_BACK_OFFSET 0x158ULL
#define IPD_INT_ENB_OFFSET 0x160ULL
#define IPD_INT_SUM_OFFSET 0x168ULL
#define IPD_SUB_PORT_FCS_OFFSET 0x170ULL
#define IPD_QOS0_RED_MARKS_OFFSET 0x178ULL
#define IPD_QOS1_RED_MARKS_OFFSET 0x180ULL
#define IPD_QOS2_RED_MARKS_OFFSET 0x188ULL
#define IPD_QOS3_RED_MARKS_OFFSET 0x190ULL
#define IPD_QOS4_RED_MARKS_OFFSET 0x198ULL
#define IPD_QOS5_RED_MARKS_OFFSET 0x1a0ULL
#define IPD_QOS6_RED_MARKS_OFFSET 0x1a8ULL
#define IPD_QOS7_RED_MARKS_OFFSET 0x1b0ULL
#define IPD_PORT_BP_COUNTERS_PAIR0_OFFSET 0x1b8ULL
#define IPD_PORT_BP_COUNTERS_PAIR1_OFFSET 0x1c0ULL
#define IPD_PORT_BP_COUNTERS_PAIR2_OFFSET 0x1c8ULL
#define IPD_PORT_BP_COUNTERS_PAIR32_OFFSET 0x2b8ULL
#define IPD_RED_PORT_ENABLE_OFFSET 0x2d8ULL
#define IPD_RED_QUE0_PARAM_OFFSET 0x2e0ULL
#define IPD_RED_QUE1_PARAM_OFFSET 0x2e8ULL
#define IPD_RED_QUE2_PARAM_OFFSET 0x2f0ULL
#define IPD_RED_QUE3_PARAM_OFFSET 0x2f8ULL
#define IPD_RED_QUE4_PARAM_OFFSET 0x300ULL
#define IPD_RED_QUE5_PARAM_OFFSET 0x308ULL
#define IPD_RED_QUE6_PARAM_OFFSET 0x310ULL
#define IPD_RED_QUE7_PARAM_OFFSET 0x318ULL
#define IPD_PTR_COUNT_OFFSET 0x320ULL
#define IPD_BP_PRT_RED_END_OFFSET 0x328ULL
#define IPD_QUE0_FREE_PAGE_CNT_OFFSET 0x330ULL
#define IPD_CLK_COUNT_OFFSET 0x338ULL
#define IPD_PWP_PTR_FIFO_CTL_OFFSET 0x340ULL
#define IPD_PRC_HOLD_PTR_FIFO_CTL_OFFSET 0x348ULL
#define IPD_PRC_PORT_PTR_FIFO_CTL_OFFSET 0x350ULL
#define IPD_PKT_PTR_VALID_OFFSET 0x358ULL
#define IPD_WQE_PTR_VALID_OFFSET 0x360ULL
#define IPD_BIST_STATUS_OFFSET 0x7f8ULL
/* ----- */
/*
* Work Queue Entry Format (for input packet)
* 7.5 Work Queue Entry
* Figure 7-8. PIP/IPD Hardware Work-Queue Entry
*/
/*
* word 2
* Figure. 7-9 Work-Queue Entry format; Word2 Cases
*/
/* RAWFULL */
#define IPD_WQE_WORD2_RAW_BUFS 0xff00000000000000ULL
#define IPD_WQE_WORD2_RAW_WORD 0x00ffffffffffffffULL
/* is IP */
#define IPD_WQE_WORD2_IP_BUFS 0xff00000000000000ULL
#define IPD_WQE_WORD2_IP_IPOFF 0x00ff000000000000ULL
#define IPD_WQE_WORD2_IP_VV 0x0000800000000000ULL
#define IPD_WQE_WORD2_IP_VS 0x0000400000000000ULL
#define IPD_WQE_WORD2_IP_45 0x0000200000000000ULL
#define IPD_WQE_WORD2_IP_VC 0x0000100000000000ULL
#define IPD_WQE_WORD2_IP_VLANID 0x00000fff00000000ULL
#define IPD_WQE_WORD2_IP_31_20 0x00000000fff00000ULL
#define IPD_WQE_WORD2_IP_CO 0x0000000000080000ULL
#define IPD_WQE_WORD2_IP_TU 0x0000000000040000ULL
#define IPD_WQE_WORD2_IP_SE 0x0000000000020000ULL
#define IPD_WQE_WORD2_IP_V6 0x0000000000010000ULL
#define IPD_WQE_WORD2_IP_15 0x0000000000008000ULL
#define IPD_WQE_WORD2_IP_LE 0x0000000000004000ULL
#define IPD_WQE_WORD2_IP_FR 0x0000000000002000ULL
#define IPD_WQE_WORD2_IP_IE 0x0000000000001000ULL
#define IPD_WQE_WORD2_IP_B 0x0000000000000800ULL
#define IPD_WQE_WORD2_IP_M 0x0000000000000400ULL
#define IPD_WQE_WORD2_IP_NI 0x0000000000000200ULL
#define IPD_WQE_WORD2_IP_RE 0x0000000000000100ULL
#define IPD_WQE_WORD2_IP_OPCODE 0x00000000000000ffULL
/* All other */
#define IPD_WQE_WORD2_OTH_BUFS 0xff00000000000000ULL
#define IPD_WQE_WORD2_OTH_55_48 0x00ff000000000000ULL
#define IPD_WQE_WORD2_OTH_VV 0x0000800000000000ULL
#define IPD_WQE_WORD2_OTH_VS 0x0000400000000000ULL
#define IPD_WQE_WORD2_OTH_45 0x0000200000000000ULL
#define IPD_WQE_WORD2_OTH_VC 0x0000100000000000ULL
#define IPD_WQE_WORD2_OTH_VLANID 0x00000fff00000000ULL
#define IPD_WQE_WORD2_OTH_31_14 0x00000000ffffc000ULL
#define IPD_WQE_WORD2_OTH_IR 0x0000000000002000ULL
#define IPD_WQE_WORD2_OTH_IA 0x0000000000001000ULL
#define IPD_WQE_WORD2_OTH_B 0x0000000000000800ULL
#define IPD_WQE_WORD2_OTH_M 0x0000000000000400ULL
#define IPD_WQE_WORD2_OTH_NI 0x0000000000000200ULL
#define IPD_WQE_WORD2_OTH_RE 0x0000000000000100ULL
#define IPD_WQE_WORD2_OTH_OPCODE 0x00000000000000ffULL
/*
* word 3
*/
#define IPD_WQE_WORD3_63 0x8000000000000000ULL
#define IPD_WQE_WORD3_BACK 0x7800000000000000ULL
#define IPD_WQE_WORD3_58_56 0x0700000000000000ULL
#define IPD_WQE_WORD3_SIZE 0x00ffff0000000000ULL
#define IPD_WQE_WORD3_ADDR 0x000000ffffffffffULL
/*
* IPD_1ST_MBUFF_SKIP
*/
#define IPD_1ST_MBUFF_SKIP_63_6 0xffffffffffffffc0ULL
#define IPD_1ST_MBUFF_SKIP_SZ 0x000000000000003fULL
/*
* IPD_NOT_1ST_MBUFF_SKIP
*/
#define IPD_NOT_1ST_MBUFF_SKIP_63_6 0xffffffffffffffc0ULL
#define IPD_NOT_1ST_MBUFF_SKIP_SZ 0x000000000000003fULL
/*
* IPD_PACKET_MBUFF_SIZE
*/
#define IPD_PACKET_MBUFF_SIZE_63_12 0xfffffffffffff000ULL
#define IPD_PACKET_MBUFF_SIZE_MB_SIZE 0x0000000000000fffULL
/*
* IPD_CTL_STATUS
*/
#define IPD_CTL_STATUS_63_10 0xfffffffffffffc00ULL
#define IPD_CTL_STATUS_LEN_M8 0x0000000000000200ULL
#define IPD_CTL_STATUS_RESET 0x0000000000000100ULL
#define IPD_CTL_STATUS_ADDPKT 0x0000000000000080ULL
#define IPD_CTL_STATUS_NADDBUF 0x0000000000000040ULL
#define IPD_CTL_STATUS_PKT_LEND 0x0000000000000020ULL
#define IPD_CTL_STATUS_WQE_LEND 0x0000000000000010ULL
#define IPD_CTL_STATUS_PBP_EN 0x0000000000000008ULL
#define IPD_CTL_STATUS_OPC_MODE 0x0000000000000006ULL
#define IPD_CTL_STATUS_OPC_MODE_SHIFT 1
#define IPD_CTL_STATUS_OPC_MODE_NONE (0ULL << IPD_CTL_STATUS_OPC_MODE_SHIFT)
#define IPD_CTL_STATUS_OPC_MODE_ALL (1ULL << IPD_CTL_STATUS_OPC_MODE_SHIFT)
#define IPD_CTL_STATUS_OPC_MODE_ONE (2ULL << IPD_CTL_STATUS_OPC_MODE_SHIFT)
#define IPD_CTL_STATUS_OPC_MODE_TWO (3ULL << IPD_CTL_STATUS_OPC_MODE_SHIFT)
#define IPD_CTL_STATUS_IPD_EN 0x0000000000000001ULL
/*
* IPD_WQE_FPA_QUEUE
*/
#define IPD_WQE_FPA_QUEUE_63_3 0xfffffffffffffff8ULL
#define IPD_WQE_FPA_QUEUE_WQE_QUE 0x0000000000000007ULL
/*
* IPD_PORTN_BP_PAGE_CNT
*/
#define IPD_PORTN_BP_PAGE_CNT_63_18 0xfffffffffffc0000ULL
#define IPD_PORTN_BP_PAGE_CNT_BP_ENB 0x0000000000020000ULL
#define IPD_PORTN_BP_PAGE_CNT_PAGE_CNT 0x000000000001ffffULL
/*
* IPD_SUB_PORT_BP_PAGE_CNT
*/
#define IPD_SUB_PORT_BP_PAGE_CNT_63_18 0xffffffff80000000ULL
#define IPD_SUB_PORT_BP_PAGE_CNT_PORT 0x000000007e000000ULL
#define IPD_SUB_PORT_BP_PAGE_CNT_PAGE_CNT 0x0000000001ffffffULL
/*
* IPD_1ST_NEXT_PTR_BACK
*/
#define IPD_1ST_NEXT_PTR_BACK_63_4 0xfffffffffffffff0ULL
#define IPD_1ST_NEXT_PTR_BACK_BACK 0x000000000000000fULL
/*
* IPD_2ND_NEXT_PTR_BACK
*/
#define IPD_2ND_NEXT_PTR_BACK_63_4 0xfffffffffffffff0ULL
#define IPD_2ND_NEXT_PTR_BACK_BACK 0x000000000000000fULL
/*
* IPD_INT_ENB
*/
#define IPD_INT_ENB_63_4 0xffffffffffffffe0ULL
#define IPD_INT_ENB_BP_SUB 0x0000000000000010ULL
#define IPD_INT_ENB_PRC_PAR3 0x0000000000000008ULL
#define IPD_INT_ENB_PRC_PAR2 0x0000000000000004ULL
#define IPD_INT_ENB_PRC_PAR1 0x0000000000000002ULL
#define IPD_INT_ENB_PRC_PAR0 0x0000000000000001ULL
/*
* IPD_INT_SUM
*/
#define IPD_INT_SUM_63_4 0xffffffffffffffe0ULL
#define IPD_INT_SUM_BP_SUB 0x0000000000000010ULL
#define IPD_INT_SUM_PRC_PAR3 0x0000000000000008ULL
#define IPD_INT_SUM_PRC_PAR2 0x0000000000000004ULL
#define IPD_INT_SUM_PRC_PAR1 0x0000000000000002ULL
#define IPD_INT_SUM_PRC_PAR0 0x0000000000000001ULL
/*
* IPD_SUB_PORT_FCS
*/
#define IPD_SUB_PORT_FCS_63_3 0xfffffffffffffff8ULL
#define IPD_SUB_PORT_FCS_PORT_BIT 0x0000000000000007ULL
/*
* IPD_QOSN_RED_MARKS
*/
#define IPD_QOSN_READ_MARKS_DROP 0xffffffff00000000ULL
#define IPD_QOSN_READ_MARKS_PASS 0x00000000ffffffffULL
/*
* IPD_PORT_BP_COUNTERS_PAIRN
*/
#define IPD_PORT_BP_COUNTERS_PAIRN_63_25 0xfffffffffe000000ULL
#define IPD_PORT_BP_COUNTERS_PAIRN_CNT_VAL 0x0000000001ffffffULL
/*
* IPD_RED_PORT_ENABLE
*/
#define IPD_RED_PORT_ENABLE_PRB_DLY 0xfffc000000000000ULL
#define IPD_RED_PORT_ENABLE_AVG_DLY 0x0003fff000000000ULL
#define IPD_RED_PORT_ENABLE_PRT_ENB 0x0000000fffffffffULL
/*
* IPD_RED_QUEN_PARAM
*/
#define IPD_RED_QUEN_PARAM_63_49 0xfffe000000000000ULL
#define IPD_RED_QUEN_PARAM_USE_PCNT 0x0001000000000000ULL
#define IPD_RED_QUEN_PARAM_NEW_CON 0x0000ff0000000000ULL
#define IPD_RED_QUEN_PARAM_AVG_CON 0x000000ff00000000ULL
#define IPD_RED_QUEN_PARAM_PRB_CON 0x00000000ffffffffULL
/*
* IPD_PTR_COUNT
*/
#define IPD_PTR_COUNT_63_19 0xfffffffffff80000ULL
#define IPD_PTR_COUNT_PKTV_CNT 0x0000000000040000ULL
#define IPD_PTR_COUNT_WQEV_CNT 0x0000000000020000ULL
#define IPD_PTR_COUNT_PFIF_CNT 0x000000000001c000ULL
#define IPD_PTR_COUNT_PKT_PCNT 0x0000000000003f80ULL
#define IPD_PTR_COUNT_WQE_PCNT 0x000000000000007fULL
/*
* IPD_BP_PRT_RED_END
*/
#define IPD_BP_PRT_RED_END_63_36 0xfffffff000000000ULL
#define IPD_BP_PRT_RED_END_PRT_ENB 0x0000000fffffffffULL
/*
* IPD_QUE0_FREE_PAGE_CNT
*/
#define IPD_QUE0_FREE_PAGE_CNT_63_32 0xffffffff00000000ULL
#define IPD_QUE0_FREE_PAGE_CNT_Q0_PCNT 0x00000000ffffffffULL
/*
* IPD_CLK_COUNT
*/
#define IPD_CLK_COUNT_CLK_CNT 0xffffffffffffffffULL
/*
* IPD_PWP_PTR_FIFO_CTL
*/
#define IPD_PWP_PTR_FIFO_CTL_63_61 0xe000000000000000ULL
#define IPD_PWP_PTR_FIFO_CTL_MAX_CNTS 0x1fc0000000000000ULL
#define IPD_PWP_PTR_FIFO_CTL_WRADDR 0x003fc00000000000ULL
#define IPD_PWP_PTR_FIFO_CTL_PRADDR 0x00003fc000000000ULL
#define IPD_PWP_PTR_FIFO_CTL_PTR 0x0000003ffffffe00ULL
#define IPD_PWP_PTR_FIFO_CTL_CENA 0x0000000000000100ULL
#define IPD_PWP_PTR_FIFO_CTL_RADDR 0x00000000000000ffULL
/*
* IPD_PRC_HOLD_PTR_FIFO_CTL
*/
#define IPD_PRC_HOLD_PTR_FIFO_CTL_63_39 0xffffff8000000000ULL
#define IPD_PRC_HOLD_PTR_FIFO_CTL_MAX_PTR 0x0000007000000000ULL
#define IPD_PRC_HOLD_PTR_FIFO_CTL_PRADDR 0x0000000e00000000ULL
#define IPD_PRC_HOLD_PTR_FIFO_CTL_PTR 0x00000001fffffff0ULL
#define IPD_PRC_HOLD_PTR_FIFO_CTL_CENA 0x0000000000000008ULL
#define IPD_PRC_HOLD_PTR_FIFO_CTL_RADDR 0x0000000000000007ULL
/*
* IPD_PRC_PORT_PTR_FIFO_CTL
*/
#define IPD_PRC_PORT_PTR_FIFO_CTL_63_44 0xfffff00000000000ULL
#define IPD_PRC_PORT_PTR_FIFO_CTL_MAX_PTR 0x00000fe000000000ULL
#define IPD_PRC_PORT_PTR_FIFO_CTL_PTR 0x0000001fffffff00ULL
#define IPD_PRC_PORT_PTR_FIFO_CTL_CENA 0x0000000000000080ULL
#define IPD_PRC_PORT_PTR_FIFO_CTL_RADDR 0x000000000000007fULL
/*
* IPD_PKT_PTR_VALID
*/
#define IPD_PKT_PTR_VALID_63_29 0xffffffffe0000000ULL
#define IPD_PKT_PTR_VALID_PTR 0x000000001fffffffULL
/*
* IPD_WQE_PTR_VALID
*/
#define IPD_WQE_PTR_VALID_63_29 0xffffffffe0000000ULL
#define IPD_WQE_PTR_VALID_PTR 0x000000001fffffffULL
/*
* IPD_BIST_STATUS
*/
#define IPD_BIST_STATUS_63_29 0xffffffffffff0000ULL
#define IPD_BIST_STATUS_PWQ_WQED 0x0000000000008000ULL
#define IPD_BIST_STATUS_PWQ_WP1 0x0000000000004000ULL
#define IPD_BIST_STATUS_PWQ_POW 0x0000000000002000ULL
#define IPD_BIST_STATUS_IPQ_PBE1 0x0000000000001000ULL
#define IPD_BIST_STATUS_IPQ_PBE0 0x0000000000000800ULL
#define IPD_BIST_STATUS_PBM3 0x0000000000000400ULL
#define IPD_BIST_STATUS_PBM2 0x0000000000000200ULL
#define IPD_BIST_STATUS_PBM1 0x0000000000000100ULL
#define IPD_BIST_STATUS_PBM0 0x0000000000000080ULL
#define IPD_BIST_STATUS_PBM_WORD 0x0000000000000040ULL
#define IPD_BIST_STATUS_PWQ1 0x0000000000000020ULL
#define IPD_BIST_STATUS_PWQ0 0x0000000000000010ULL
#define IPD_BIST_STATUS_PRC_OFF 0x0000000000000008ULL
#define IPD_BIST_STATUS_IPD_OLD 0x0000000000000004ULL
#define IPD_BIST_STATUS_IPD_NEW 0x0000000000000002ULL
#define IPD_BIST_STATUS_PWP 0x0000000000000001ULL
/*
* word2[Opcode]
*/
/* L3 (IP) error */
#define IPD_WQE_L3_NOT_IP 1
#define IPD_WQE_L3_V4_CSUM_ERR 2
#define IPD_WQE_L3_HEADER_MALFORMED 3
#define IPD_WQE_L3_MELFORMED 4
#define IPD_WQE_L3_TTL_HOP 5
#define IPD_WQE_L3_IP_OPT 6
/* L4 (UDP/TCP) error */
#define IPD_WQE_L4_MALFORMED 1
#define IPD_WQE_L4_CSUM_ERR 2
#define IPD_WQE_L4_UDP_LEN_ERR 3
#define IPD_WQE_L4_BAD_PORT 4
#define IPD_WQE_L4_FIN_ONLY 8
#define IPD_WQE_L4_NO_FLAGS 9
#define IPD_WQE_L4_FIN_RST 10
#define IPD_WQE_L4_SYN_URG 11
#define IPD_WQE_L4_SYN_RST 12
#define IPD_WQE_L4_SYN_FIN 13
#define IPD_1ST_MBUFF_SKIP_BITS \
"\177" /* new format */ \
"\177" /* seil ext */ \
"\020" /* hex display */ \
"\020" /* %016x format */ \
"f\x06\x3a" "63_6\0" \
"f\x00\x06" "SZ\0"
#define IPD_NOT_1ST_MBUFF_SKIP_BITS \
"\177" /* new format */ \
"\177" /* seil ext */ \
"\020" /* hex display */ \
"\020" /* %016x format */ \
"f\x06\x3a" "63_6\0" \
"f\x00\x06" "SZ\0"
#define IPD_PACKET_MBUFF_SIZE_BITS \
"\177" /* new format */ \
"\177" /* seil ext */ \
"\020" /* hex display */ \
"\020" /* %016x format */ \
"f\x0c\x34" "63_12\0" \
"f\x00\x0c" "MB_SIZE\0"
#define IPD_CTL_STATUS_BITS \
"\177" /* new format */ \
"\177" /* seil ext */ \
"\020" /* hex display */ \
"\020" /* %016x format */ \
"f\x0a\x36" "63_10\0" \
"b\x09" "LEN_M8\0" \
"b\x08" "RESET\0" \
"b\x07" "ADDPKT\0" \
"b\x06" "NADDBUF\0" \
"b\x05" "PKT_LEND\0" \
"b\x04" "WQE_LEND\0" \
"b\x03" "PBP_EN\0" \
"f\x01\x02" "OPC_MODE\0" \
"b\x00" "IPD_EN\0"
#define IPD_WQE_FPA_QUEUE_BITS \
"\177" /* new format */ \
"\177" /* seil ext */ \
"\020" /* hex display */ \
"\020" /* %016x format */ \
"f\x03\x3d" "63_3\0" \
"f\x00\x03" "WQE_QUE\0"
#define IPD_PORT0_BP_PAGE_CNT_BITS \
"\177" /* new format */ \
"\177" /* seil ext */ \
"\020" /* hex display */ \
"\020" /* %016x format */ \
#define IPD_PORT1_BP_PAGE_CNT_BITS \
"\177" /* new format */ \
"\177" /* seil ext */ \
"\020" /* hex display */ \
"\020" /* %016x format */ \
#define IPD_PORT2_BP_PAGE_CNT_BITS \
"\177" /* new format */ \
"\177" /* seil ext */ \
"\020" /* hex display */ \
"\020" /* %016x format */ \
#define IPD_PORT32_BP_PAGE_CNT_BITS \
"\177" /* new format */ \
"\177" /* seil ext */ \
"\020" /* hex display */ \
"\020" /* %016x format */ \
#define IPD_SUB_PORT_BP_PAGE_CNT_BITS \
"\177" /* new format */ \
"\177" /* seil ext */ \
"\020" /* hex display */ \
"\020" /* %016x format */ \
"f\x1f\x21" "63_18\0" \
"f\x19\x06" "PORT\0" \
"f\x00\x19" "PAGE_CNT\0"
#define IPD_1ST_NEXT_PTR_BACK_BITS \
"\177" /* new format */ \
"\177" /* seil ext */ \
"\020" /* hex display */ \
"\020" /* %016x format */ \
"f\x04\x3c" "63_4\0" \
"f\x00\x04" "BACK\0"
#define IPD_2ND_NEXT_PTR_BACK_BITS \
"\177" /* new format */ \
"\177" /* seil ext */ \
"\020" /* hex display */ \
"\020" /* %016x format */ \
"f\x04\x3c" "63_4\0" \
"f\x00\x04" "BACK\0"
#define IPD_INT_ENB_BITS \
"\177" /* new format */ \
"\177" /* seil ext */ \
"\020" /* hex display */ \
"\020" /* %016x format */ \
"f\x05\x3b" "63_4\0" \
"b\x04" "BP_SUB\0" \
"b\x03" "PRC_PAR3\0" \
"b\x02" "PRC_PAR2\0" \
"b\x01" "PRC_PAR1\0" \
"b\x00" "PRC_PAR0\0"
#define IPD_INT_SUM_BITS \
"\177" /* new format */ \
"\177" /* seil ext */ \
"\020" /* hex display */ \
"\020" /* %016x format */ \
"f\x05\x3b" "63_4\0" \
"b\x04" "BP_SUB\0" \
"b\x03" "PRC_PAR3\0" \
"b\x02" "PRC_PAR2\0" \
"b\x01" "PRC_PAR1\0" \
"b\x00" "PRC_PAR0\0"
#define IPD_SUB_PORT_FCS_BITS \
"\177" /* new format */ \
"\177" /* seil ext */ \
"\020" /* hex display */ \
"\020" /* %016x format */ \
"f\x03\x3d" "63_3\0" \
"f\x00\x03" "PORT_BIT\0"
#define IPD_QOS0_RED_MARKS_BITS \
"\177" /* new format */ \
"\177" /* seil ext */ \
"\020" /* hex display */ \
"\020" /* %016x format */ \
#define IPD_QOS1_RED_MARKS_BITS \
"\177" /* new format */ \
"\177" /* seil ext */ \
"\020" /* hex display */ \
"\020" /* %016x format */ \
#define IPD_QOS2_RED_MARKS_BITS \
"\177" /* new format */ \
"\177" /* seil ext */ \
"\020" /* hex display */ \
"\020" /* %016x format */ \
#define IPD_QOS3_RED_MARKS_BITS \
"\177" /* new format */ \
"\177" /* seil ext */ \
"\020" /* hex display */ \
"\020" /* %016x format */ \
#define IPD_QOS4_RED_MARKS_BITS \
"\177" /* new format */ \
"\177" /* seil ext */ \
"\020" /* hex display */ \
"\020" /* %016x format */ \
#define IPD_QOS5_RED_MARKS_BITS \
"\177" /* new format */ \
"\177" /* seil ext */ \
"\020" /* hex display */ \
"\020" /* %016x format */ \
#define IPD_QOS6_RED_MARKS_BITS \
"\177" /* new format */ \
"\177" /* seil ext */ \
"\020" /* hex display */ \
"\020" /* %016x format */ \
#define IPD_QOS7_RED_MARKS_BITS \
"\177" /* new format */ \
"\177" /* seil ext */ \
"\020" /* hex display */ \
"\020" /* %016x format */ \
#define IPD_PORT_BP_COUNTERS_PAIR0_BITS \
"\177" /* new format */ \
"\177" /* seil ext */ \
"\020" /* hex display */ \
"\020" /* %016x format */ \
#define IPD_PORT_BP_COUNTERS_PAIR1_BITS \
"\177" /* new format */ \
"\177" /* seil ext */ \
"\020" /* hex display */ \
"\020" /* %016x format */ \
#define IPD_PORT_BP_COUNTERS_PAIR2_BITS \
"\177" /* new format */ \
"\177" /* seil ext */ \
"\020" /* hex display */ \
"\020" /* %016x format */ \
#define IPD_PORT_BP_COUNTERS_PAIR32_BITS \
"\177" /* new format */ \
"\177" /* seil ext */ \
"\020" /* hex display */ \
"\020" /* %016x format */ \
#define IPD_RED_PORT_ENABLE_BITS \
"\177" /* new format */ \
"\177" /* seil ext */ \
"\020" /* hex display */ \
"\020" /* %016x format */ \
"f\x32\x0e" "PRB_DLY\0" \
"f\x24\x0e" "AVG_DLY\0" \
"f\x00\x24" "PRT_ENB\0"
#define IPD_RED_QUE0_PARAM_BITS \
"\177" /* new format */ \
"\177" /* seil ext */ \
"\020" /* hex display */ \
"\020" /* %016x format */ \
#define IPD_RED_QUE1_PARAM_BITS \
"\177" /* new format */ \
"\177" /* seil ext */ \
"\020" /* hex display */ \
"\020" /* %016x format */ \
#define IPD_RED_QUE2_PARAM_BITS \
"\177" /* new format */ \
"\177" /* seil ext */ \
"\020" /* hex display */ \
"\020" /* %016x format */ \
#define IPD_RED_QUE3_PARAM_BITS \
"\177" /* new format */ \
"\177" /* seil ext */ \
"\020" /* hex display */ \
"\020" /* %016x format */ \
#define IPD_RED_QUE4_PARAM_BITS \
"\177" /* new format */ \
"\177" /* seil ext */ \
"\020" /* hex display */ \
"\020" /* %016x format */ \
#define IPD_RED_QUE5_PARAM_BITS \
"\177" /* new format */ \
"\177" /* seil ext */ \
"\020" /* hex display */ \
"\020" /* %016x format */ \
#define IPD_RED_QUE6_PARAM_BITS \
"\177" /* new format */ \
"\177" /* seil ext */ \
"\020" /* hex display */ \
"\020" /* %016x format */ \
#define IPD_RED_QUE7_PARAM_BITS \
"\177" /* new format */ \
"\177" /* seil ext */ \
"\020" /* hex display */ \
"\020" /* %016x format */ \
#define IPD_PTR_COUNT_BITS \
"\177" /* new format */ \
"\177" /* seil ext */ \
"\020" /* hex display */ \
"\020" /* %016x format */ \
"f\x13\x2d" "63_19\0" \
"b\x12" "PKTV_CNT\0" \
"b\x11" "WQEV_CNT\0" \
"f\x0e\x03" "PFIF_CNT\0" \
"f\x07\x07" "PKT_PCNT\0" \
"f\x00\x07" "WQE_PCNT\0"
#define IPD_BP_PRT_RED_END_BITS \
"\177" /* new format */ \
"\177" /* seil ext */ \
"\020" /* hex display */ \
"\020" /* %016x format */ \
"f\x24\x1c" "63_36\0" \
"f\x00\x24" "PRT_ENB\0"
#define IPD_QUE0_FREE_PAGE_CNT_BITS \
"\177" /* new format */ \
"\177" /* seil ext */ \
"\020" /* hex display */ \
"\020" /* %016x format */ \
"f\x20\x20" "63_32\0" \
"f\x00\x20" "Q0_PCNT\0"
#define IPD_CLK_COUNT_BITS \
"\177" /* new format */ \
"\177" /* seil ext */ \
"\020" /* hex display */ \
"\020" /* %016x format */ \
"f\x00\x40" "CLK_CNT\0"
#define IPD_PWP_PTR_FIFO_CTL_BITS \
"\177" /* new format */ \
"\177" /* seil ext */ \
"\020" /* hex display */ \
"\020" /* %016x format */ \
"f\x3d\x03" "63_61\0" \
"f\x36\x07" "MAX_CNTS\0" \
"f\x2e\x08" "WRADDR\0" \
"f\x26\x08" "PRADDR\0" \
"f\x09\x1d" "PTR\0" \
"b\x08" "CENA\0" \
"f\x00\x08" "RADDR\0"
#define IPD_PRC_HOLD_PTR_FIFO_CTL_BITS \
"\177" /* new format */ \
"\177" /* seil ext */ \
"\020" /* hex display */ \
"\020" /* %016x format */ \
"f\x27\x19" "63_39\0" \
"f\x24\x03" "MAX_PTR\0" \
"f\x21\x03" "PRADDR\0" \
"f\x04\x1d" "PTR\0" \
"b\x03" "CENA\0" \
"f\x00\x03" "RADDR\0"
#define IPD_PRC_PORT_PTR_FIFO_CTL_BITS \
"\177" /* new format */ \
"\177" /* seil ext */ \
"\020" /* hex display */ \
"\020" /* %016x format */ \
"f\x2c\x14" "63_44\0" \
"f\x25\x07" "MAX_PTR\0" \
"f\x08\x1d" "PTR\0" \
"b\x07" "CENA\0" \
"f\x00\x07" "RADDR\0"
#define IPD_PKT_PTR_VALID_BITS \
"\177" /* new format */ \
"\177" /* seil ext */ \
"\020" /* hex display */ \
"\020" /* %016x format */ \
"f\x1d\x23" "63_29\0" \
"f\x00\x1d" "PTR\0"
#define IPD_WQE_PTR_VALID_BITS \
"\177" /* new format */ \
"\177" /* seil ext */ \
"\020" /* hex display */ \
"\020" /* %016x format */ \
"f\x1d\x23" "63_29\0" \
"f\x00\x1d" "PTR\0"
#define IPD_BIST_STATUS_BITS \
"\177" /* new format */ \
"\177" /* seil ext */ \
"\020" /* hex display */ \
"\020" /* %016x format */ \
"f\x10\x30" "63_29\0" \
"b\x0f" "PWQ_WQED\0" \
"b\x0e" "PWQ_WP1\0" \
"b\x0d" "PWQ_POW\0" \
"b\x0c" "IPQ_PBE1\0" \
"b\x0b" "IPQ_PBE0\0" \
"b\x0a" "PBM3\0" \
"b\x09" "PBM2\0" \
"b\x08" "PBM1\0" \
"b\x07" "PBM0\0" \
"b\x06" "PBM_WORD\0" \
"b\x05" "PWQ1\0" \
"b\x04" "PWQ0\0" \
"b\x03" "PRC_OFF\0" \
"b\x02" "IPD_OLD\0" \
"b\x01" "IPD_NEW\0" \
"b\x00" "PWP\0"
#endif /* _CN30XXIPDREG_H_ */
|