Go to the documentation of this file.
28 #ifndef __CVMX_PIP_DEFS_H__
29 #define __CVMX_PIP_DEFS_H__
54 #define CVMX_PIP_ALT_SKIP_CFGX(offset) (CVMX_ADD_IO_SEG(0x00011800A0002A00ull) + ((offset) & 3) * 8)
55 #define CVMX_PIP_BCK_PRS (CVMX_ADD_IO_SEG(0x00011800A0000038ull))
56 #define CVMX_PIP_BIST_STATUS (CVMX_ADD_IO_SEG(0x00011800A0000000ull))
57 #define CVMX_PIP_BSEL_EXT_CFGX(offset) (CVMX_ADD_IO_SEG(0x00011800A0002800ull) + ((offset) & 3) * 16)
58 #define CVMX_PIP_BSEL_EXT_POSX(offset) (CVMX_ADD_IO_SEG(0x00011800A0002808ull) + ((offset) & 3) * 16)
59 #define CVMX_PIP_BSEL_TBL_ENTX(offset) (CVMX_ADD_IO_SEG(0x00011800A0003000ull) + ((offset) & 511) * 8)
60 #define CVMX_PIP_CLKEN (CVMX_ADD_IO_SEG(0x00011800A0000040ull))
61 #define CVMX_PIP_CRC_CTLX(offset) (CVMX_ADD_IO_SEG(0x00011800A0000040ull) + ((offset) & 1) * 8)
62 #define CVMX_PIP_CRC_IVX(offset) (CVMX_ADD_IO_SEG(0x00011800A0000050ull) + ((offset) & 1) * 8)
63 #define CVMX_PIP_DEC_IPSECX(offset) (CVMX_ADD_IO_SEG(0x00011800A0000080ull) + ((offset) & 3) * 8)
64 #define CVMX_PIP_DSA_SRC_GRP (CVMX_ADD_IO_SEG(0x00011800A0000190ull))
65 #define CVMX_PIP_DSA_VID_GRP (CVMX_ADD_IO_SEG(0x00011800A0000198ull))
66 #define CVMX_PIP_FRM_LEN_CHKX(offset) (CVMX_ADD_IO_SEG(0x00011800A0000180ull) + ((offset) & 1) * 8)
67 #define CVMX_PIP_GBL_CFG (CVMX_ADD_IO_SEG(0x00011800A0000028ull))
68 #define CVMX_PIP_GBL_CTL (CVMX_ADD_IO_SEG(0x00011800A0000020ull))
69 #define CVMX_PIP_HG_PRI_QOS (CVMX_ADD_IO_SEG(0x00011800A00001A0ull))
70 #define CVMX_PIP_INT_EN (CVMX_ADD_IO_SEG(0x00011800A0000010ull))
71 #define CVMX_PIP_INT_REG (CVMX_ADD_IO_SEG(0x00011800A0000008ull))
72 #define CVMX_PIP_IP_OFFSET (CVMX_ADD_IO_SEG(0x00011800A0000060ull))
73 #define CVMX_PIP_PRI_TBLX(offset) (CVMX_ADD_IO_SEG(0x00011800A0004000ull) + ((offset) & 255) * 8)
74 #define CVMX_PIP_PRT_CFGBX(offset) (CVMX_ADD_IO_SEG(0x00011800A0008000ull) + ((offset) & 63) * 8)
75 #define CVMX_PIP_PRT_CFGX(offset) (CVMX_ADD_IO_SEG(0x00011800A0000200ull) + ((offset) & 63) * 8)
76 #define CVMX_PIP_PRT_TAGX(offset) (CVMX_ADD_IO_SEG(0x00011800A0000400ull) + ((offset) & 63) * 8)
77 #define CVMX_PIP_QOS_DIFFX(offset) (CVMX_ADD_IO_SEG(0x00011800A0000600ull) + ((offset) & 63) * 8)
78 #define CVMX_PIP_QOS_VLANX(offset) (CVMX_ADD_IO_SEG(0x00011800A00000C0ull) + ((offset) & 7) * 8)
79 #define CVMX_PIP_QOS_WATCHX(offset) (CVMX_ADD_IO_SEG(0x00011800A0000100ull) + ((offset) & 7) * 8)
80 #define CVMX_PIP_RAW_WORD (CVMX_ADD_IO_SEG(0x00011800A00000B0ull))
81 #define CVMX_PIP_SFT_RST (CVMX_ADD_IO_SEG(0x00011800A0000030ull))
82 #define CVMX_PIP_STAT0_PRTX(offset) (CVMX_ADD_IO_SEG(0x00011800A0000800ull) + ((offset) & 63) * 80)
83 #define CVMX_PIP_STAT0_X(offset) (CVMX_ADD_IO_SEG(0x00011800A0040000ull) + ((offset) & 63) * 128)
84 #define CVMX_PIP_STAT10_PRTX(offset) (CVMX_ADD_IO_SEG(0x00011800A0001480ull) + ((offset) & 63) * 16)
85 #define CVMX_PIP_STAT10_X(offset) (CVMX_ADD_IO_SEG(0x00011800A0040050ull) + ((offset) & 63) * 128)
86 #define CVMX_PIP_STAT11_PRTX(offset) (CVMX_ADD_IO_SEG(0x00011800A0001488ull) + ((offset) & 63) * 16)
87 #define CVMX_PIP_STAT11_X(offset) (CVMX_ADD_IO_SEG(0x00011800A0040058ull) + ((offset) & 63) * 128)
88 #define CVMX_PIP_STAT1_PRTX(offset) (CVMX_ADD_IO_SEG(0x00011800A0000808ull) + ((offset) & 63) * 80)
89 #define CVMX_PIP_STAT1_X(offset) (CVMX_ADD_IO_SEG(0x00011800A0040008ull) + ((offset) & 63) * 128)
90 #define CVMX_PIP_STAT2_PRTX(offset) (CVMX_ADD_IO_SEG(0x00011800A0000810ull) + ((offset) & 63) * 80)
91 #define CVMX_PIP_STAT2_X(offset) (CVMX_ADD_IO_SEG(0x00011800A0040010ull) + ((offset) & 63) * 128)
92 #define CVMX_PIP_STAT3_PRTX(offset) (CVMX_ADD_IO_SEG(0x00011800A0000818ull) + ((offset) & 63) * 80)
93 #define CVMX_PIP_STAT3_X(offset) (CVMX_ADD_IO_SEG(0x00011800A0040018ull) + ((offset) & 63) * 128)
94 #define CVMX_PIP_STAT4_PRTX(offset) (CVMX_ADD_IO_SEG(0x00011800A0000820ull) + ((offset) & 63) * 80)
95 #define CVMX_PIP_STAT4_X(offset) (CVMX_ADD_IO_SEG(0x00011800A0040020ull) + ((offset) & 63) * 128)
96 #define CVMX_PIP_STAT5_PRTX(offset) (CVMX_ADD_IO_SEG(0x00011800A0000828ull) + ((offset) & 63) * 80)
97 #define CVMX_PIP_STAT5_X(offset) (CVMX_ADD_IO_SEG(0x00011800A0040028ull) + ((offset) & 63) * 128)
98 #define CVMX_PIP_STAT6_PRTX(offset) (CVMX_ADD_IO_SEG(0x00011800A0000830ull) + ((offset) & 63) * 80)
99 #define CVMX_PIP_STAT6_X(offset) (CVMX_ADD_IO_SEG(0x00011800A0040030ull) + ((offset) & 63) * 128)
100 #define CVMX_PIP_STAT7_PRTX(offset) (CVMX_ADD_IO_SEG(0x00011800A0000838ull) + ((offset) & 63) * 80)
101 #define CVMX_PIP_STAT7_X(offset) (CVMX_ADD_IO_SEG(0x00011800A0040038ull) + ((offset) & 63) * 128)
102 #define CVMX_PIP_STAT8_PRTX(offset) (CVMX_ADD_IO_SEG(0x00011800A0000840ull) + ((offset) & 63) * 80)
103 #define CVMX_PIP_STAT8_X(offset) (CVMX_ADD_IO_SEG(0x00011800A0040040ull) + ((offset) & 63) * 128)
104 #define CVMX_PIP_STAT9_PRTX(offset) (CVMX_ADD_IO_SEG(0x00011800A0000848ull) + ((offset) & 63) * 80)
105 #define CVMX_PIP_STAT9_X(offset) (CVMX_ADD_IO_SEG(0x00011800A0040048ull) + ((offset) & 63) * 128)
106 #define CVMX_PIP_STAT_CTL (CVMX_ADD_IO_SEG(0x00011800A0000018ull))
107 #define CVMX_PIP_STAT_INB_ERRSX(offset) (CVMX_ADD_IO_SEG(0x00011800A0001A10ull) + ((offset) & 63) * 32)
108 #define CVMX_PIP_STAT_INB_ERRS_PKNDX(offset) (CVMX_ADD_IO_SEG(0x00011800A0020010ull) + ((offset) & 63) * 32)
109 #define CVMX_PIP_STAT_INB_OCTSX(offset) (CVMX_ADD_IO_SEG(0x00011800A0001A08ull) + ((offset) & 63) * 32)
110 #define CVMX_PIP_STAT_INB_OCTS_PKNDX(offset) (CVMX_ADD_IO_SEG(0x00011800A0020008ull) + ((offset) & 63) * 32)
111 #define CVMX_PIP_STAT_INB_PKTSX(offset) (CVMX_ADD_IO_SEG(0x00011800A0001A00ull) + ((offset) & 63) * 32)
112 #define CVMX_PIP_STAT_INB_PKTS_PKNDX(offset) (CVMX_ADD_IO_SEG(0x00011800A0020000ull) + ((offset) & 63) * 32)
113 #define CVMX_PIP_SUB_PKIND_FCSX(block_id) (CVMX_ADD_IO_SEG(0x00011800A0080000ull))
114 #define CVMX_PIP_TAG_INCX(offset) (CVMX_ADD_IO_SEG(0x00011800A0001800ull) + ((offset) & 63) * 8)
115 #define CVMX_PIP_TAG_MASK (CVMX_ADD_IO_SEG(0x00011800A0000070ull))
116 #define CVMX_PIP_TAG_SECRET (CVMX_ADD_IO_SEG(0x00011800A0000068ull))
117 #define CVMX_PIP_TODO_ENTRY (CVMX_ADD_IO_SEG(0x00011800A0000078ull))
118 #define CVMX_PIP_VLAN_ETYPESX(offset) (CVMX_ADD_IO_SEG(0x00011800A00001C0ull) + ((offset) & 1) * 8)
119 #define CVMX_PIP_XSTAT0_PRTX(offset) (CVMX_ADD_IO_SEG(0x00011800A0002000ull) + ((offset) & 63) * 80 - 80*40)
120 #define CVMX_PIP_XSTAT10_PRTX(offset) (CVMX_ADD_IO_SEG(0x00011800A0001700ull) + ((offset) & 63) * 16 - 16*40)
121 #define CVMX_PIP_XSTAT11_PRTX(offset) (CVMX_ADD_IO_SEG(0x00011800A0001708ull) + ((offset) & 63) * 16 - 16*40)
122 #define CVMX_PIP_XSTAT1_PRTX(offset) (CVMX_ADD_IO_SEG(0x00011800A0002008ull) + ((offset) & 63) * 80 - 80*40)
123 #define CVMX_PIP_XSTAT2_PRTX(offset) (CVMX_ADD_IO_SEG(0x00011800A0002010ull) + ((offset) & 63) * 80 - 80*40)
124 #define CVMX_PIP_XSTAT3_PRTX(offset) (CVMX_ADD_IO_SEG(0x00011800A0002018ull) + ((offset) & 63) * 80 - 80*40)
125 #define CVMX_PIP_XSTAT4_PRTX(offset) (CVMX_ADD_IO_SEG(0x00011800A0002020ull) + ((offset) & 63) * 80 - 80*40)
126 #define CVMX_PIP_XSTAT5_PRTX(offset) (CVMX_ADD_IO_SEG(0x00011800A0002028ull) + ((offset) & 63) * 80 - 80*40)
127 #define CVMX_PIP_XSTAT6_PRTX(offset) (CVMX_ADD_IO_SEG(0x00011800A0002030ull) + ((offset) & 63) * 80 - 80*40)
128 #define CVMX_PIP_XSTAT7_PRTX(offset) (CVMX_ADD_IO_SEG(0x00011800A0002038ull) + ((offset) & 63) * 80 - 80*40)
129 #define CVMX_PIP_XSTAT8_PRTX(offset) (CVMX_ADD_IO_SEG(0x00011800A0002040ull) + ((offset) & 63) * 80 - 80*40)
130 #define CVMX_PIP_XSTAT9_PRTX(offset) (CVMX_ADD_IO_SEG(0x00011800A0002048ull) + ((offset) & 63) * 80 - 80*40)
135 #ifdef __BIG_ENDIAN_BITFIELD
172 #ifdef __BIG_ENDIAN_BITFIELD
204 #ifdef __BIG_ENDIAN_BITFIELD
213 #ifdef __BIG_ENDIAN_BITFIELD
225 #ifdef __BIG_ENDIAN_BITFIELD
240 #ifdef __BIG_ENDIAN_BITFIELD
259 #ifdef __BIG_ENDIAN_BITFIELD
285 #ifdef __BIG_ENDIAN_BITFIELD
329 #ifdef __BIG_ENDIAN_BITFIELD
358 #ifdef __BIG_ENDIAN_BITFIELD
393 #ifdef __BIG_ENDIAN_BITFIELD
413 #ifdef __BIG_ENDIAN_BITFIELD
432 #ifdef __BIG_ENDIAN_BITFIELD
449 #ifdef __BIG_ENDIAN_BITFIELD
484 #ifdef __BIG_ENDIAN_BITFIELD
535 #ifdef __BIG_ENDIAN_BITFIELD
586 #ifdef __BIG_ENDIAN_BITFIELD
613 #ifdef __BIG_ENDIAN_BITFIELD
656 #ifdef __BIG_ENDIAN_BITFIELD
709 #ifdef __BIG_ENDIAN_BITFIELD
750 #ifdef __BIG_ENDIAN_BITFIELD
801 #ifdef __BIG_ENDIAN_BITFIELD
844 #ifdef __BIG_ENDIAN_BITFIELD
898 #ifdef __BIG_ENDIAN_BITFIELD
947 #ifdef __BIG_ENDIAN_BITFIELD
999 #ifdef __BIG_ENDIAN_BITFIELD
1028 #ifdef __BIG_ENDIAN_BITFIELD
1061 #ifdef __BIG_ENDIAN_BITFIELD
1089 #ifdef __BIG_ENDIAN_BITFIELD
1120 #ifdef __BIG_ENDIAN_BITFIELD
1155 #ifdef __BIG_ENDIAN_BITFIELD
1186 #ifdef __BIG_ENDIAN_BITFIELD
1227 #ifdef __BIG_ENDIAN_BITFIELD
1260 #ifdef __BIG_ENDIAN_BITFIELD
1288 #ifdef __BIG_ENDIAN_BITFIELD
1319 #ifdef __BIG_ENDIAN_BITFIELD
1354 #ifdef __BIG_ENDIAN_BITFIELD
1385 #ifdef __BIG_ENDIAN_BITFIELD
1426 #ifdef __BIG_ENDIAN_BITFIELD
1457 #ifdef __BIG_ENDIAN_BITFIELD
1498 #ifdef __BIG_ENDIAN_BITFIELD
1563 #ifdef __BIG_ENDIAN_BITFIELD
1601 #ifdef __BIG_ENDIAN_BITFIELD
1643 #ifdef __BIG_ENDIAN_BITFIELD
1702 #ifdef __BIG_ENDIAN_BITFIELD
1766 #ifdef __BIG_ENDIAN_BITFIELD
1814 #ifdef __BIG_ENDIAN_BITFIELD
1885 #ifdef __BIG_ENDIAN_BITFIELD
1910 #ifdef __BIG_ENDIAN_BITFIELD
1929 #ifdef __BIG_ENDIAN_BITFIELD
1943 #ifdef __BIG_ENDIAN_BITFIELD
1961 #ifdef __BIG_ENDIAN_BITFIELD
2032 #ifdef __BIG_ENDIAN_BITFIELD
2090 #ifdef __BIG_ENDIAN_BITFIELD
2162 #ifdef __BIG_ENDIAN_BITFIELD
2191 #ifdef __BIG_ENDIAN_BITFIELD
2204 #ifdef __BIG_ENDIAN_BITFIELD
2232 #ifdef __BIG_ENDIAN_BITFIELD
2255 #ifdef __BIG_ENDIAN_BITFIELD
2281 #ifdef __BIG_ENDIAN_BITFIELD
2321 #ifdef __BIG_ENDIAN_BITFIELD
2352 #ifdef __BIG_ENDIAN_BITFIELD
2382 #ifdef __BIG_ENDIAN_BITFIELD
2397 #ifdef __BIG_ENDIAN_BITFIELD
2426 #ifdef __BIG_ENDIAN_BITFIELD
2441 #ifdef __BIG_ENDIAN_BITFIELD
2463 #ifdef __BIG_ENDIAN_BITFIELD
2478 #ifdef __BIG_ENDIAN_BITFIELD
2500 #ifdef __BIG_ENDIAN_BITFIELD
2515 #ifdef __BIG_ENDIAN_BITFIELD
2544 #ifdef __BIG_ENDIAN_BITFIELD
2559 #ifdef __BIG_ENDIAN_BITFIELD
2588 #ifdef __BIG_ENDIAN_BITFIELD
2603 #ifdef __BIG_ENDIAN_BITFIELD
2632 #ifdef __BIG_ENDIAN_BITFIELD
2647 #ifdef __BIG_ENDIAN_BITFIELD
2676 #ifdef __BIG_ENDIAN_BITFIELD
2691 #ifdef __BIG_ENDIAN_BITFIELD
2720 #ifdef __BIG_ENDIAN_BITFIELD
2735 #ifdef __BIG_ENDIAN_BITFIELD
2764 #ifdef __BIG_ENDIAN_BITFIELD
2779 #ifdef __BIG_ENDIAN_BITFIELD
2808 #ifdef __BIG_ENDIAN_BITFIELD
2823 #ifdef __BIG_ENDIAN_BITFIELD
2852 #ifdef __BIG_ENDIAN_BITFIELD
2867 #ifdef __BIG_ENDIAN_BITFIELD
2896 #ifdef __BIG_ENDIAN_BITFIELD
2909 #ifdef __BIG_ENDIAN_BITFIELD
2939 #ifdef __BIG_ENDIAN_BITFIELD
2968 #ifdef __BIG_ENDIAN_BITFIELD
2983 #ifdef __BIG_ENDIAN_BITFIELD
3012 #ifdef __BIG_ENDIAN_BITFIELD
3027 #ifdef __BIG_ENDIAN_BITFIELD
3056 #ifdef __BIG_ENDIAN_BITFIELD
3071 #ifdef __BIG_ENDIAN_BITFIELD
3084 #ifdef __BIG_ENDIAN_BITFIELD
3115 #ifdef __BIG_ENDIAN_BITFIELD
3146 #ifdef __BIG_ENDIAN_BITFIELD
3179 #ifdef __BIG_ENDIAN_BITFIELD
3212 #ifdef __BIG_ENDIAN_BITFIELD
3233 #ifdef __BIG_ENDIAN_BITFIELD
3249 #ifdef __BIG_ENDIAN_BITFIELD
3265 #ifdef __BIG_ENDIAN_BITFIELD
3281 #ifdef __BIG_ENDIAN_BITFIELD
3297 #ifdef __BIG_ENDIAN_BITFIELD
3313 #ifdef __BIG_ENDIAN_BITFIELD
3329 #ifdef __BIG_ENDIAN_BITFIELD
3345 #ifdef __BIG_ENDIAN_BITFIELD
3361 #ifdef __BIG_ENDIAN_BITFIELD
3377 #ifdef __BIG_ENDIAN_BITFIELD
3393 #ifdef __BIG_ENDIAN_BITFIELD
3409 #ifdef __BIG_ENDIAN_BITFIELD