Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
cvmx-ipd-defs.h
Go to the documentation of this file.
1 /***********************license start***************
2  * Author: Cavium Networks
3  *
4  * Contact: [email protected]
5  * This file is part of the OCTEON SDK
6  *
7  * Copyright (c) 2003-2012 Cavium Networks
8  *
9  * This file is free software; you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License, Version 2, as
11  * published by the Free Software Foundation.
12  *
13  * This file is distributed in the hope that it will be useful, but
14  * AS-IS and WITHOUT ANY WARRANTY; without even the implied warranty
15  * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE, TITLE, or
16  * NONINFRINGEMENT. See the GNU General Public License for more
17  * details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with this file; if not, write to the Free Software
21  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
22  * or visit http://www.gnu.org/licenses/.
23  *
24  * This file may also be available under a different license from Cavium.
25  * Contact Cavium Networks for more information
26  ***********************license end**************************************/
27 
28 #ifndef __CVMX_IPD_DEFS_H__
29 #define __CVMX_IPD_DEFS_H__
30 
31 #define CVMX_IPD_1ST_MBUFF_SKIP (CVMX_ADD_IO_SEG(0x00014F0000000000ull))
32 #define CVMX_IPD_1st_NEXT_PTR_BACK (CVMX_ADD_IO_SEG(0x00014F0000000150ull))
33 #define CVMX_IPD_2nd_NEXT_PTR_BACK (CVMX_ADD_IO_SEG(0x00014F0000000158ull))
34 #define CVMX_IPD_BIST_STATUS (CVMX_ADD_IO_SEG(0x00014F00000007F8ull))
35 #define CVMX_IPD_BPIDX_MBUF_TH(offset) (CVMX_ADD_IO_SEG(0x00014F0000002000ull) + ((offset) & 63) * 8)
36 #define CVMX_IPD_BPID_BP_COUNTERX(offset) (CVMX_ADD_IO_SEG(0x00014F0000003000ull) + ((offset) & 63) * 8)
37 #define CVMX_IPD_BP_PRT_RED_END (CVMX_ADD_IO_SEG(0x00014F0000000328ull))
38 #define CVMX_IPD_CLK_COUNT (CVMX_ADD_IO_SEG(0x00014F0000000338ull))
39 #define CVMX_IPD_CREDITS (CVMX_ADD_IO_SEG(0x00014F0000004410ull))
40 #define CVMX_IPD_CTL_STATUS (CVMX_ADD_IO_SEG(0x00014F0000000018ull))
41 #define CVMX_IPD_ECC_CTL (CVMX_ADD_IO_SEG(0x00014F0000004408ull))
42 #define CVMX_IPD_FREE_PTR_FIFO_CTL (CVMX_ADD_IO_SEG(0x00014F0000000780ull))
43 #define CVMX_IPD_FREE_PTR_VALUE (CVMX_ADD_IO_SEG(0x00014F0000000788ull))
44 #define CVMX_IPD_HOLD_PTR_FIFO_CTL (CVMX_ADD_IO_SEG(0x00014F0000000790ull))
45 #define CVMX_IPD_INT_ENB (CVMX_ADD_IO_SEG(0x00014F0000000160ull))
46 #define CVMX_IPD_INT_SUM (CVMX_ADD_IO_SEG(0x00014F0000000168ull))
47 #define CVMX_IPD_NEXT_PKT_PTR (CVMX_ADD_IO_SEG(0x00014F00000007A0ull))
48 #define CVMX_IPD_NEXT_WQE_PTR (CVMX_ADD_IO_SEG(0x00014F00000007A8ull))
49 #define CVMX_IPD_NOT_1ST_MBUFF_SKIP (CVMX_ADD_IO_SEG(0x00014F0000000008ull))
50 #define CVMX_IPD_ON_BP_DROP_PKTX(block_id) (CVMX_ADD_IO_SEG(0x00014F0000004100ull))
51 #define CVMX_IPD_PACKET_MBUFF_SIZE (CVMX_ADD_IO_SEG(0x00014F0000000010ull))
52 #define CVMX_IPD_PKT_ERR (CVMX_ADD_IO_SEG(0x00014F00000003F0ull))
53 #define CVMX_IPD_PKT_PTR_VALID (CVMX_ADD_IO_SEG(0x00014F0000000358ull))
54 #define CVMX_IPD_PORTX_BP_PAGE_CNT(offset) (CVMX_ADD_IO_SEG(0x00014F0000000028ull) + ((offset) & 63) * 8)
55 #define CVMX_IPD_PORTX_BP_PAGE_CNT2(offset) (CVMX_ADD_IO_SEG(0x00014F0000000368ull) + ((offset) & 63) * 8 - 8*36)
56 #define CVMX_IPD_PORTX_BP_PAGE_CNT3(offset) (CVMX_ADD_IO_SEG(0x00014F00000003D0ull) + ((offset) & 63) * 8 - 8*40)
57 #define CVMX_IPD_PORT_BP_COUNTERS2_PAIRX(offset) (CVMX_ADD_IO_SEG(0x00014F0000000388ull) + ((offset) & 63) * 8 - 8*36)
58 #define CVMX_IPD_PORT_BP_COUNTERS3_PAIRX(offset) (CVMX_ADD_IO_SEG(0x00014F00000003B0ull) + ((offset) & 63) * 8 - 8*40)
59 #define CVMX_IPD_PORT_BP_COUNTERS4_PAIRX(offset) (CVMX_ADD_IO_SEG(0x00014F0000000410ull) + ((offset) & 63) * 8 - 8*44)
60 #define CVMX_IPD_PORT_BP_COUNTERS_PAIRX(offset) (CVMX_ADD_IO_SEG(0x00014F00000001B8ull) + ((offset) & 63) * 8)
61 #define CVMX_IPD_PORT_PTR_FIFO_CTL (CVMX_ADD_IO_SEG(0x00014F0000000798ull))
62 #define CVMX_IPD_PORT_QOS_INTX(offset) (CVMX_ADD_IO_SEG(0x00014F0000000808ull) + ((offset) & 7) * 8)
63 #define CVMX_IPD_PORT_QOS_INT_ENBX(offset) (CVMX_ADD_IO_SEG(0x00014F0000000848ull) + ((offset) & 7) * 8)
64 #define CVMX_IPD_PORT_QOS_X_CNT(offset) (CVMX_ADD_IO_SEG(0x00014F0000000888ull) + ((offset) & 511) * 8)
65 #define CVMX_IPD_PORT_SOPX(block_id) (CVMX_ADD_IO_SEG(0x00014F0000004400ull))
66 #define CVMX_IPD_PRC_HOLD_PTR_FIFO_CTL (CVMX_ADD_IO_SEG(0x00014F0000000348ull))
67 #define CVMX_IPD_PRC_PORT_PTR_FIFO_CTL (CVMX_ADD_IO_SEG(0x00014F0000000350ull))
68 #define CVMX_IPD_PTR_COUNT (CVMX_ADD_IO_SEG(0x00014F0000000320ull))
69 #define CVMX_IPD_PWP_PTR_FIFO_CTL (CVMX_ADD_IO_SEG(0x00014F0000000340ull))
70 #define CVMX_IPD_QOS0_RED_MARKS CVMX_IPD_QOSX_RED_MARKS(0)
71 #define CVMX_IPD_QOS1_RED_MARKS CVMX_IPD_QOSX_RED_MARKS(1)
72 #define CVMX_IPD_QOS2_RED_MARKS CVMX_IPD_QOSX_RED_MARKS(2)
73 #define CVMX_IPD_QOS3_RED_MARKS CVMX_IPD_QOSX_RED_MARKS(3)
74 #define CVMX_IPD_QOS4_RED_MARKS CVMX_IPD_QOSX_RED_MARKS(4)
75 #define CVMX_IPD_QOS5_RED_MARKS CVMX_IPD_QOSX_RED_MARKS(5)
76 #define CVMX_IPD_QOS6_RED_MARKS CVMX_IPD_QOSX_RED_MARKS(6)
77 #define CVMX_IPD_QOS7_RED_MARKS CVMX_IPD_QOSX_RED_MARKS(7)
78 #define CVMX_IPD_QOSX_RED_MARKS(offset) (CVMX_ADD_IO_SEG(0x00014F0000000178ull) + ((offset) & 7) * 8)
79 #define CVMX_IPD_QUE0_FREE_PAGE_CNT (CVMX_ADD_IO_SEG(0x00014F0000000330ull))
80 #define CVMX_IPD_RED_BPID_ENABLEX(block_id) (CVMX_ADD_IO_SEG(0x00014F0000004200ull))
81 #define CVMX_IPD_RED_DELAY (CVMX_ADD_IO_SEG(0x00014F0000004300ull))
82 #define CVMX_IPD_RED_PORT_ENABLE (CVMX_ADD_IO_SEG(0x00014F00000002D8ull))
83 #define CVMX_IPD_RED_PORT_ENABLE2 (CVMX_ADD_IO_SEG(0x00014F00000003A8ull))
84 #define CVMX_IPD_RED_QUE0_PARAM CVMX_IPD_RED_QUEX_PARAM(0)
85 #define CVMX_IPD_RED_QUE1_PARAM CVMX_IPD_RED_QUEX_PARAM(1)
86 #define CVMX_IPD_RED_QUE2_PARAM CVMX_IPD_RED_QUEX_PARAM(2)
87 #define CVMX_IPD_RED_QUE3_PARAM CVMX_IPD_RED_QUEX_PARAM(3)
88 #define CVMX_IPD_RED_QUE4_PARAM CVMX_IPD_RED_QUEX_PARAM(4)
89 #define CVMX_IPD_RED_QUE5_PARAM CVMX_IPD_RED_QUEX_PARAM(5)
90 #define CVMX_IPD_RED_QUE6_PARAM CVMX_IPD_RED_QUEX_PARAM(6)
91 #define CVMX_IPD_RED_QUE7_PARAM CVMX_IPD_RED_QUEX_PARAM(7)
92 #define CVMX_IPD_RED_QUEX_PARAM(offset) (CVMX_ADD_IO_SEG(0x00014F00000002E0ull) + ((offset) & 7) * 8)
93 #define CVMX_IPD_REQ_WGT (CVMX_ADD_IO_SEG(0x00014F0000004418ull))
94 #define CVMX_IPD_SUB_PORT_BP_PAGE_CNT (CVMX_ADD_IO_SEG(0x00014F0000000148ull))
95 #define CVMX_IPD_SUB_PORT_FCS (CVMX_ADD_IO_SEG(0x00014F0000000170ull))
96 #define CVMX_IPD_SUB_PORT_QOS_CNT (CVMX_ADD_IO_SEG(0x00014F0000000800ull))
97 #define CVMX_IPD_WQE_FPA_QUEUE (CVMX_ADD_IO_SEG(0x00014F0000000020ull))
98 #define CVMX_IPD_WQE_PTR_VALID (CVMX_ADD_IO_SEG(0x00014F0000000360ull))
99 
103 #ifdef __BIG_ENDIAN_BITFIELD
105  uint64_t skip_sz:6;
106 #else
109 #endif
110  } s;
129 };
130 
134 #ifdef __BIG_ENDIAN_BITFIELD
136  uint64_t back:4;
137 #else
140 #endif
141  } s;
160 };
161 
165 #ifdef __BIG_ENDIAN_BITFIELD
167  uint64_t back:4;
168 #else
171 #endif
172  } s;
191 };
192 
196 #ifdef __BIG_ENDIAN_BITFIELD
198  uint64_t iiwo1:1;
199  uint64_t iiwo0:1;
200  uint64_t iio1:1;
201  uint64_t iio0:1;
202  uint64_t pbm4:1;
203  uint64_t csr_mem:1;
204  uint64_t csr_ncmd:1;
205  uint64_t pwq_wqed:1;
206  uint64_t pwq_wp1:1;
207  uint64_t pwq_pow:1;
208  uint64_t ipq_pbe1:1;
209  uint64_t ipq_pbe0:1;
210  uint64_t pbm3:1;
211  uint64_t pbm2:1;
212  uint64_t pbm1:1;
213  uint64_t pbm0:1;
214  uint64_t pbm_word:1;
215  uint64_t pwq1:1;
216  uint64_t pwq0:1;
217  uint64_t prc_off:1;
218  uint64_t ipd_old:1;
219  uint64_t ipd_new:1;
220  uint64_t pwp:1;
221 #else
246 #endif
247  } s;
249 #ifdef __BIG_ENDIAN_BITFIELD
251  uint64_t pwq_wqed:1;
252  uint64_t pwq_wp1:1;
253  uint64_t pwq_pow:1;
254  uint64_t ipq_pbe1:1;
255  uint64_t ipq_pbe0:1;
256  uint64_t pbm3:1;
257  uint64_t pbm2:1;
258  uint64_t pbm1:1;
259  uint64_t pbm0:1;
260  uint64_t pbm_word:1;
261  uint64_t pwq1:1;
262  uint64_t pwq0:1;
263  uint64_t prc_off:1;
264  uint64_t ipd_old:1;
265  uint64_t ipd_new:1;
266  uint64_t pwp:1;
267 #else
285 #endif
286  } cn30xx;
292 #ifdef __BIG_ENDIAN_BITFIELD
294  uint64_t csr_mem:1;
295  uint64_t csr_ncmd:1;
296  uint64_t pwq_wqed:1;
297  uint64_t pwq_wp1:1;
298  uint64_t pwq_pow:1;
299  uint64_t ipq_pbe1:1;
300  uint64_t ipq_pbe0:1;
301  uint64_t pbm3:1;
302  uint64_t pbm2:1;
303  uint64_t pbm1:1;
304  uint64_t pbm0:1;
305  uint64_t pbm_word:1;
306  uint64_t pwq1:1;
307  uint64_t pwq0:1;
308  uint64_t prc_off:1;
309  uint64_t ipd_old:1;
310  uint64_t ipd_new:1;
311  uint64_t pwp:1;
312 #else
332 #endif
333  } cn52xx;
346 };
347 
351 #ifdef __BIG_ENDIAN_BITFIELD
353  uint64_t prt_enb:48;
354 #else
357 #endif
358  } s;
360 #ifdef __BIG_ENDIAN_BITFIELD
362  uint64_t prt_enb:36;
363 #else
366 #endif
367  } cn30xx;
373 #ifdef __BIG_ENDIAN_BITFIELD
375  uint64_t prt_enb:40;
376 #else
379 #endif
380  } cn52xx;
388 #ifdef __BIG_ENDIAN_BITFIELD
390  uint64_t prt_enb:44;
391 #else
394 #endif
395  } cn63xx;
399 };
400 
404 #ifdef __BIG_ENDIAN_BITFIELD
406  uint64_t bp_enb:1;
407  uint64_t page_cnt:17;
408 #else
412 #endif
413  } s;
416 };
417 
421 #ifdef __BIG_ENDIAN_BITFIELD
423  uint64_t cnt_val:25;
424 #else
427 #endif
428  } s;
431 };
432 
436 #ifdef __BIG_ENDIAN_BITFIELD
437  uint64_t clk_cnt:64;
438 #else
440 #endif
441  } s;
460 };
461 
465 #ifdef __BIG_ENDIAN_BITFIELD
467  uint64_t iob_wrc:8;
468  uint64_t iob_wr:8;
469 #else
473 #endif
474  } s;
477 };
478 
482 #ifdef __BIG_ENDIAN_BITFIELD
484  uint64_t use_sop:1;
485  uint64_t rst_done:1;
486  uint64_t clken:1;
487  uint64_t no_wptr:1;
488  uint64_t pq_apkt:1;
489  uint64_t pq_nabuf:1;
490  uint64_t ipd_full:1;
491  uint64_t pkt_off:1;
492  uint64_t len_m8:1;
493  uint64_t reset:1;
494  uint64_t addpkt:1;
495  uint64_t naddbuf:1;
496  uint64_t pkt_lend:1;
497  uint64_t wqe_lend:1;
498  uint64_t pbp_en:1;
499  uint64_t opc_mode:2;
500  uint64_t ipd_en:1;
501 #else
520 #endif
521  } s;
523 #ifdef __BIG_ENDIAN_BITFIELD
525  uint64_t len_m8:1;
526  uint64_t reset:1;
527  uint64_t addpkt:1;
528  uint64_t naddbuf:1;
529  uint64_t pkt_lend:1;
530  uint64_t wqe_lend:1;
531  uint64_t pbp_en:1;
532  uint64_t opc_mode:2;
533  uint64_t ipd_en:1;
534 #else
545 #endif
546  } cn30xx;
550 #ifdef __BIG_ENDIAN_BITFIELD
552  uint64_t reset:1;
553  uint64_t addpkt:1;
554  uint64_t naddbuf:1;
555  uint64_t pkt_lend:1;
556  uint64_t wqe_lend:1;
557  uint64_t pbp_en:1;
558  uint64_t opc_mode:2;
559  uint64_t ipd_en:1;
560 #else
570 #endif
571  } cn38xxp2;
573 #ifdef __BIG_ENDIAN_BITFIELD
575  uint64_t no_wptr:1;
576  uint64_t pq_apkt:1;
577  uint64_t pq_nabuf:1;
578  uint64_t ipd_full:1;
579  uint64_t pkt_off:1;
580  uint64_t len_m8:1;
581  uint64_t reset:1;
582  uint64_t addpkt:1;
583  uint64_t naddbuf:1;
584  uint64_t pkt_lend:1;
585  uint64_t wqe_lend:1;
586  uint64_t pbp_en:1;
587  uint64_t opc_mode:2;
588  uint64_t ipd_en:1;
589 #else
605 #endif
606  } cn50xx;
612 #ifdef __BIG_ENDIAN_BITFIELD
614  uint64_t ipd_full:1;
615  uint64_t pkt_off:1;
616  uint64_t len_m8:1;
617  uint64_t reset:1;
618  uint64_t addpkt:1;
619  uint64_t naddbuf:1;
620  uint64_t pkt_lend:1;
621  uint64_t wqe_lend:1;
622  uint64_t pbp_en:1;
623  uint64_t opc_mode:2;
624  uint64_t ipd_en:1;
625 #else
638 #endif
639  } cn58xx;
644 #ifdef __BIG_ENDIAN_BITFIELD
646  uint64_t clken:1;
647  uint64_t no_wptr:1;
648  uint64_t pq_apkt:1;
649  uint64_t pq_nabuf:1;
650  uint64_t ipd_full:1;
651  uint64_t pkt_off:1;
652  uint64_t len_m8:1;
653  uint64_t reset:1;
654  uint64_t addpkt:1;
655  uint64_t naddbuf:1;
656  uint64_t pkt_lend:1;
657  uint64_t wqe_lend:1;
658  uint64_t pbp_en:1;
659  uint64_t opc_mode:2;
660  uint64_t ipd_en:1;
661 #else
678 #endif
679  } cn63xxp1;
684 };
685 
689 #ifdef __BIG_ENDIAN_BITFIELD
691  uint64_t pm3_syn:2;
692  uint64_t pm2_syn:2;
693  uint64_t pm1_syn:2;
694  uint64_t pm0_syn:2;
695 #else
701 #endif
702  } s;
705 };
706 
710 #ifdef __BIG_ENDIAN_BITFIELD
712  uint64_t max_cnts:7;
713  uint64_t wraddr:8;
714  uint64_t praddr:8;
715  uint64_t cena:1;
716  uint64_t raddr:8;
717 #else
724 #endif
725  } s;
728 };
729 
733 #ifdef __BIG_ENDIAN_BITFIELD
735  uint64_t ptr:33;
736 #else
739 #endif
740  } s;
743 };
744 
748 #ifdef __BIG_ENDIAN_BITFIELD
750  uint64_t ptr:33;
751  uint64_t max_pkt:3;
752  uint64_t praddr:3;
753  uint64_t cena:1;
754  uint64_t raddr:3;
755 #else
762 #endif
763  } s;
766 };
767 
771 #ifdef __BIG_ENDIAN_BITFIELD
773  uint64_t pw3_dbe:1;
774  uint64_t pw3_sbe:1;
775  uint64_t pw2_dbe:1;
776  uint64_t pw2_sbe:1;
777  uint64_t pw1_dbe:1;
778  uint64_t pw1_sbe:1;
779  uint64_t pw0_dbe:1;
780  uint64_t pw0_sbe:1;
781  uint64_t dat:1;
782  uint64_t eop:1;
783  uint64_t sop:1;
784  uint64_t pq_sub:1;
785  uint64_t pq_add:1;
786  uint64_t bc_ovr:1;
787  uint64_t d_coll:1;
788  uint64_t c_coll:1;
789  uint64_t cc_ovr:1;
790  uint64_t dc_ovr:1;
791  uint64_t bp_sub:1;
792  uint64_t prc_par3:1;
793  uint64_t prc_par2:1;
794  uint64_t prc_par1:1;
795  uint64_t prc_par0:1;
796 #else
821 #endif
822  } s;
824 #ifdef __BIG_ENDIAN_BITFIELD
826  uint64_t bp_sub:1;
827  uint64_t prc_par3:1;
828  uint64_t prc_par2:1;
829  uint64_t prc_par1:1;
830  uint64_t prc_par0:1;
831 #else
838 #endif
839  } cn30xx;
842 #ifdef __BIG_ENDIAN_BITFIELD
844  uint64_t bc_ovr:1;
845  uint64_t d_coll:1;
846  uint64_t c_coll:1;
847  uint64_t cc_ovr:1;
848  uint64_t dc_ovr:1;
849  uint64_t bp_sub:1;
850  uint64_t prc_par3:1;
851  uint64_t prc_par2:1;
852  uint64_t prc_par1:1;
853  uint64_t prc_par0:1;
854 #else
866 #endif
867  } cn38xx;
871 #ifdef __BIG_ENDIAN_BITFIELD
873  uint64_t pq_sub:1;
874  uint64_t pq_add:1;
875  uint64_t bc_ovr:1;
876  uint64_t d_coll:1;
877  uint64_t c_coll:1;
878  uint64_t cc_ovr:1;
879  uint64_t dc_ovr:1;
880  uint64_t bp_sub:1;
881  uint64_t prc_par3:1;
882  uint64_t prc_par2:1;
883  uint64_t prc_par1:1;
884  uint64_t prc_par0:1;
885 #else
899 #endif
900  } cn52xx;
913 };
914 
918 #ifdef __BIG_ENDIAN_BITFIELD
920  uint64_t pw3_dbe:1;
921  uint64_t pw3_sbe:1;
922  uint64_t pw2_dbe:1;
923  uint64_t pw2_sbe:1;
924  uint64_t pw1_dbe:1;
925  uint64_t pw1_sbe:1;
926  uint64_t pw0_dbe:1;
927  uint64_t pw0_sbe:1;
928  uint64_t dat:1;
929  uint64_t eop:1;
930  uint64_t sop:1;
931  uint64_t pq_sub:1;
932  uint64_t pq_add:1;
933  uint64_t bc_ovr:1;
934  uint64_t d_coll:1;
935  uint64_t c_coll:1;
936  uint64_t cc_ovr:1;
937  uint64_t dc_ovr:1;
938  uint64_t bp_sub:1;
939  uint64_t prc_par3:1;
940  uint64_t prc_par2:1;
941  uint64_t prc_par1:1;
942  uint64_t prc_par0:1;
943 #else
968 #endif
969  } s;
971 #ifdef __BIG_ENDIAN_BITFIELD
973  uint64_t bp_sub:1;
974  uint64_t prc_par3:1;
975  uint64_t prc_par2:1;
976  uint64_t prc_par1:1;
977  uint64_t prc_par0:1;
978 #else
985 #endif
986  } cn30xx;
989 #ifdef __BIG_ENDIAN_BITFIELD
991  uint64_t bc_ovr:1;
992  uint64_t d_coll:1;
993  uint64_t c_coll:1;
994  uint64_t cc_ovr:1;
995  uint64_t dc_ovr:1;
996  uint64_t bp_sub:1;
997  uint64_t prc_par3:1;
998  uint64_t prc_par2:1;
999  uint64_t prc_par1:1;
1000  uint64_t prc_par0:1;
1001 #else
1013 #endif
1014  } cn38xx;
1018 #ifdef __BIG_ENDIAN_BITFIELD
1020  uint64_t pq_sub:1;
1021  uint64_t pq_add:1;
1022  uint64_t bc_ovr:1;
1023  uint64_t d_coll:1;
1024  uint64_t c_coll:1;
1025  uint64_t cc_ovr:1;
1026  uint64_t dc_ovr:1;
1027  uint64_t bp_sub:1;
1028  uint64_t prc_par3:1;
1029  uint64_t prc_par2:1;
1030  uint64_t prc_par1:1;
1031  uint64_t prc_par0:1;
1032 #else
1046 #endif
1047  } cn52xx;
1060 };
1061 
1065 #ifdef __BIG_ENDIAN_BITFIELD
1067  uint64_t ptr:33;
1068 #else
1071 #endif
1072  } s;
1075 };
1076 
1080 #ifdef __BIG_ENDIAN_BITFIELD
1082  uint64_t ptr:33;
1083 #else
1086 #endif
1087  } s;
1090 };
1091 
1095 #ifdef __BIG_ENDIAN_BITFIELD
1097  uint64_t skip_sz:6;
1098 #else
1101 #endif
1102  } s;
1121 };
1122 
1126 #ifdef __BIG_ENDIAN_BITFIELD
1127  uint64_t prt_enb:64;
1128 #else
1130 #endif
1131  } s;
1134 };
1135 
1139 #ifdef __BIG_ENDIAN_BITFIELD
1141  uint64_t mb_size:12;
1142 #else
1145 #endif
1146  } s;
1165 };
1166 
1170 #ifdef __BIG_ENDIAN_BITFIELD
1172  uint64_t reasm:6;
1173 #else
1176 #endif
1177  } s;
1180 };
1181 
1185 #ifdef __BIG_ENDIAN_BITFIELD
1187  uint64_t ptr:29;
1188 #else
1191 #endif
1192  } s;
1208 };
1209 
1213 #ifdef __BIG_ENDIAN_BITFIELD
1215  uint64_t bp_enb:1;
1216  uint64_t page_cnt:17;
1217 #else
1221 #endif
1222  } s;
1239 };
1240 
1244 #ifdef __BIG_ENDIAN_BITFIELD
1246  uint64_t bp_enb:1;
1247  uint64_t page_cnt:17;
1248 #else
1252 #endif
1253  } s;
1263 };
1264 
1268 #ifdef __BIG_ENDIAN_BITFIELD
1270  uint64_t bp_enb:1;
1271  uint64_t page_cnt:17;
1272 #else
1276 #endif
1277  } s;
1283 };
1284 
1288 #ifdef __BIG_ENDIAN_BITFIELD
1290  uint64_t cnt_val:25;
1291 #else
1294 #endif
1295  } s;
1305 };
1306 
1310 #ifdef __BIG_ENDIAN_BITFIELD
1312  uint64_t cnt_val:25;
1313 #else
1316 #endif
1317  } s;
1323 };
1324 
1328 #ifdef __BIG_ENDIAN_BITFIELD
1330  uint64_t cnt_val:25;
1331 #else
1334 #endif
1335  } s;
1339 };
1340 
1344 #ifdef __BIG_ENDIAN_BITFIELD
1346  uint64_t cnt_val:25;
1347 #else
1350 #endif
1351  } s;
1368 };
1369 
1373 #ifdef __BIG_ENDIAN_BITFIELD
1375  uint64_t ptr:33;
1376  uint64_t max_pkt:7;
1377  uint64_t cena:1;
1378  uint64_t raddr:7;
1379 #else
1385 #endif
1386  } s;
1389 };
1390 
1394 #ifdef __BIG_ENDIAN_BITFIELD
1395  uint64_t wmark:32;
1396  uint64_t cnt:32;
1397 #else
1400 #endif
1401  } s;
1413 };
1414 
1418 #ifdef __BIG_ENDIAN_BITFIELD
1419  uint64_t intr:64;
1420 #else
1422 #endif
1423  } s;
1435 };
1436 
1440 #ifdef __BIG_ENDIAN_BITFIELD
1441  uint64_t enb:64;
1442 #else
1444 #endif
1445  } s;
1457 };
1458 
1462 #ifdef __BIG_ENDIAN_BITFIELD
1463  uint64_t sop:64;
1464 #else
1466 #endif
1467  } s;
1470 };
1471 
1475 #ifdef __BIG_ENDIAN_BITFIELD
1477  uint64_t max_pkt:3;
1478  uint64_t praddr:3;
1479  uint64_t ptr:29;
1480  uint64_t cena:1;
1481  uint64_t raddr:3;
1482 #else
1489 #endif
1490  } s;
1506 };
1507 
1511 #ifdef __BIG_ENDIAN_BITFIELD
1513  uint64_t max_pkt:7;
1514  uint64_t ptr:29;
1515  uint64_t cena:1;
1516  uint64_t raddr:7;
1517 #else
1523 #endif
1524  } s;
1540 };
1541 
1545 #ifdef __BIG_ENDIAN_BITFIELD
1547  uint64_t pktv_cnt:1;
1548  uint64_t wqev_cnt:1;
1549  uint64_t pfif_cnt:3;
1550  uint64_t pkt_pcnt:7;
1551  uint64_t wqe_pcnt:7;
1552 #else
1559 #endif
1560  } s;
1579 };
1580 
1584 #ifdef __BIG_ENDIAN_BITFIELD
1586  uint64_t max_cnts:7;
1587  uint64_t wraddr:8;
1588  uint64_t praddr:8;
1589  uint64_t ptr:29;
1590  uint64_t cena:1;
1591  uint64_t raddr:8;
1592 #else
1600 #endif
1601  } s;
1617 };
1618 
1622 #ifdef __BIG_ENDIAN_BITFIELD
1623  uint64_t drop:32;
1624  uint64_t pass:32;
1625 #else
1628 #endif
1629  } s;
1648 };
1649 
1653 #ifdef __BIG_ENDIAN_BITFIELD
1655  uint64_t q0_pcnt:32;
1656 #else
1659 #endif
1660  } s;
1679 };
1680 
1684 #ifdef __BIG_ENDIAN_BITFIELD
1685  uint64_t prt_enb:64;
1686 #else
1688 #endif
1689  } s;
1692 };
1693 
1697 #ifdef __BIG_ENDIAN_BITFIELD
1699  uint64_t prb_dly:14;
1700  uint64_t avg_dly:14;
1701 #else
1705 #endif
1706  } s;
1709 };
1710 
1714 #ifdef __BIG_ENDIAN_BITFIELD
1715  uint64_t prb_dly:14;
1716  uint64_t avg_dly:14;
1717  uint64_t prt_enb:36;
1718 #else
1722 #endif
1723  } s;
1740 };
1741 
1745 #ifdef __BIG_ENDIAN_BITFIELD
1747  uint64_t prt_enb:12;
1748 #else
1751 #endif
1752  } s;
1754 #ifdef __BIG_ENDIAN_BITFIELD
1756  uint64_t prt_enb:4;
1757 #else
1760 #endif
1761  } cn52xx;
1767 #ifdef __BIG_ENDIAN_BITFIELD
1769  uint64_t prt_enb:8;
1770 #else
1773 #endif
1774  } cn63xx;
1778 };
1779 
1783 #ifdef __BIG_ENDIAN_BITFIELD
1785  uint64_t use_pcnt:1;
1786  uint64_t new_con:8;
1787  uint64_t avg_con:8;
1788  uint64_t prb_con:32;
1789 #else
1795 #endif
1796  } s;
1815 };
1816 
1820 #ifdef __BIG_ENDIAN_BITFIELD
1821  uint64_t wgt7:8;
1822  uint64_t wgt6:8;
1823  uint64_t wgt5:8;
1824  uint64_t wgt4:8;
1825  uint64_t wgt3:8;
1826  uint64_t wgt2:8;
1827  uint64_t wgt1:8;
1828  uint64_t wgt0:8;
1829 #else
1838 #endif
1839  } s;
1841 };
1842 
1846 #ifdef __BIG_ENDIAN_BITFIELD
1848  uint64_t port:6;
1849  uint64_t page_cnt:25;
1850 #else
1854 #endif
1855  } s;
1874 };
1875 
1879 #ifdef __BIG_ENDIAN_BITFIELD
1881  uint64_t port_bit2:4;
1883  uint64_t port_bit:32;
1884 #else
1889 #endif
1890  } s;
1892 #ifdef __BIG_ENDIAN_BITFIELD
1894  uint64_t port_bit:3;
1895 #else
1898 #endif
1899  } cn30xx;
1902 #ifdef __BIG_ENDIAN_BITFIELD
1904  uint64_t port_bit:32;
1905 #else
1908 #endif
1909  } cn38xx;
1923 };
1924 
1928 #ifdef __BIG_ENDIAN_BITFIELD
1930  uint64_t port_qos:9;
1931  uint64_t cnt:32;
1932 #else
1936 #endif
1937  } s;
1949 };
1950 
1954 #ifdef __BIG_ENDIAN_BITFIELD
1956  uint64_t wqe_pool:3;
1957 #else
1960 #endif
1961  } s;
1980 };
1981 
1985 #ifdef __BIG_ENDIAN_BITFIELD
1987  uint64_t ptr:29;
1988 #else
1991 #endif
1992  } s;
2008 };
2009 
2010 #endif