cvmx-pip-defs.h 34 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268
  1. /***********************license start***************
  2. * Author: Cavium Networks
  3. *
  4. * Contact: support@caviumnetworks.com
  5. * This file is part of the OCTEON SDK
  6. *
  7. * Copyright (c) 2003-2008 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. #ifndef __CVMX_PIP_DEFS_H__
  28. #define __CVMX_PIP_DEFS_H__
  29. /*
  30. * Enumeration representing the amount of packet processing
  31. * and validation performed by the input hardware.
  32. */
  33. enum cvmx_pip_port_parse_mode {
  34. /*
  35. * Packet input doesn't perform any processing of the input
  36. * packet.
  37. */
  38. CVMX_PIP_PORT_CFG_MODE_NONE = 0ull,
  39. /*
  40. * Full packet processing is performed with pointer starting
  41. * at the L2 (ethernet MAC) header.
  42. */
  43. CVMX_PIP_PORT_CFG_MODE_SKIPL2 = 1ull,
  44. /*
  45. * Input packets are assumed to be IP. Results from non IP
  46. * packets is undefined. Pointers reference the beginning of
  47. * the IP header.
  48. */
  49. CVMX_PIP_PORT_CFG_MODE_SKIPIP = 2ull
  50. };
  51. #define CVMX_PIP_BCK_PRS \
  52. CVMX_ADD_IO_SEG(0x00011800A0000038ull)
  53. #define CVMX_PIP_BIST_STATUS \
  54. CVMX_ADD_IO_SEG(0x00011800A0000000ull)
  55. #define CVMX_PIP_CRC_CTLX(offset) \
  56. CVMX_ADD_IO_SEG(0x00011800A0000040ull + (((offset) & 1) * 8))
  57. #define CVMX_PIP_CRC_IVX(offset) \
  58. CVMX_ADD_IO_SEG(0x00011800A0000050ull + (((offset) & 1) * 8))
  59. #define CVMX_PIP_DEC_IPSECX(offset) \
  60. CVMX_ADD_IO_SEG(0x00011800A0000080ull + (((offset) & 3) * 8))
  61. #define CVMX_PIP_DSA_SRC_GRP \
  62. CVMX_ADD_IO_SEG(0x00011800A0000190ull)
  63. #define CVMX_PIP_DSA_VID_GRP \
  64. CVMX_ADD_IO_SEG(0x00011800A0000198ull)
  65. #define CVMX_PIP_FRM_LEN_CHKX(offset) \
  66. CVMX_ADD_IO_SEG(0x00011800A0000180ull + (((offset) & 1) * 8))
  67. #define CVMX_PIP_GBL_CFG \
  68. CVMX_ADD_IO_SEG(0x00011800A0000028ull)
  69. #define CVMX_PIP_GBL_CTL \
  70. CVMX_ADD_IO_SEG(0x00011800A0000020ull)
  71. #define CVMX_PIP_HG_PRI_QOS \
  72. CVMX_ADD_IO_SEG(0x00011800A00001A0ull)
  73. #define CVMX_PIP_INT_EN \
  74. CVMX_ADD_IO_SEG(0x00011800A0000010ull)
  75. #define CVMX_PIP_INT_REG \
  76. CVMX_ADD_IO_SEG(0x00011800A0000008ull)
  77. #define CVMX_PIP_IP_OFFSET \
  78. CVMX_ADD_IO_SEG(0x00011800A0000060ull)
  79. #define CVMX_PIP_PRT_CFGX(offset) \
  80. CVMX_ADD_IO_SEG(0x00011800A0000200ull + (((offset) & 63) * 8))
  81. #define CVMX_PIP_PRT_TAGX(offset) \
  82. CVMX_ADD_IO_SEG(0x00011800A0000400ull + (((offset) & 63) * 8))
  83. #define CVMX_PIP_QOS_DIFFX(offset) \
  84. CVMX_ADD_IO_SEG(0x00011800A0000600ull + (((offset) & 63) * 8))
  85. #define CVMX_PIP_QOS_VLANX(offset) \
  86. CVMX_ADD_IO_SEG(0x00011800A00000C0ull + (((offset) & 7) * 8))
  87. #define CVMX_PIP_QOS_WATCHX(offset) \
  88. CVMX_ADD_IO_SEG(0x00011800A0000100ull + (((offset) & 7) * 8))
  89. #define CVMX_PIP_RAW_WORD \
  90. CVMX_ADD_IO_SEG(0x00011800A00000B0ull)
  91. #define CVMX_PIP_SFT_RST \
  92. CVMX_ADD_IO_SEG(0x00011800A0000030ull)
  93. #define CVMX_PIP_STAT0_PRTX(offset) \
  94. CVMX_ADD_IO_SEG(0x00011800A0000800ull + (((offset) & 63) * 80))
  95. #define CVMX_PIP_STAT1_PRTX(offset) \
  96. CVMX_ADD_IO_SEG(0x00011800A0000808ull + (((offset) & 63) * 80))
  97. #define CVMX_PIP_STAT2_PRTX(offset) \
  98. CVMX_ADD_IO_SEG(0x00011800A0000810ull + (((offset) & 63) * 80))
  99. #define CVMX_PIP_STAT3_PRTX(offset) \
  100. CVMX_ADD_IO_SEG(0x00011800A0000818ull + (((offset) & 63) * 80))
  101. #define CVMX_PIP_STAT4_PRTX(offset) \
  102. CVMX_ADD_IO_SEG(0x00011800A0000820ull + (((offset) & 63) * 80))
  103. #define CVMX_PIP_STAT5_PRTX(offset) \
  104. CVMX_ADD_IO_SEG(0x00011800A0000828ull + (((offset) & 63) * 80))
  105. #define CVMX_PIP_STAT6_PRTX(offset) \
  106. CVMX_ADD_IO_SEG(0x00011800A0000830ull + (((offset) & 63) * 80))
  107. #define CVMX_PIP_STAT7_PRTX(offset) \
  108. CVMX_ADD_IO_SEG(0x00011800A0000838ull + (((offset) & 63) * 80))
  109. #define CVMX_PIP_STAT8_PRTX(offset) \
  110. CVMX_ADD_IO_SEG(0x00011800A0000840ull + (((offset) & 63) * 80))
  111. #define CVMX_PIP_STAT9_PRTX(offset) \
  112. CVMX_ADD_IO_SEG(0x00011800A0000848ull + (((offset) & 63) * 80))
  113. #define CVMX_PIP_STAT_CTL \
  114. CVMX_ADD_IO_SEG(0x00011800A0000018ull)
  115. #define CVMX_PIP_STAT_INB_ERRSX(offset) \
  116. CVMX_ADD_IO_SEG(0x00011800A0001A10ull + (((offset) & 63) * 32))
  117. #define CVMX_PIP_STAT_INB_OCTSX(offset) \
  118. CVMX_ADD_IO_SEG(0x00011800A0001A08ull + (((offset) & 63) * 32))
  119. #define CVMX_PIP_STAT_INB_PKTSX(offset) \
  120. CVMX_ADD_IO_SEG(0x00011800A0001A00ull + (((offset) & 63) * 32))
  121. #define CVMX_PIP_TAG_INCX(offset) \
  122. CVMX_ADD_IO_SEG(0x00011800A0001800ull + (((offset) & 63) * 8))
  123. #define CVMX_PIP_TAG_MASK \
  124. CVMX_ADD_IO_SEG(0x00011800A0000070ull)
  125. #define CVMX_PIP_TAG_SECRET \
  126. CVMX_ADD_IO_SEG(0x00011800A0000068ull)
  127. #define CVMX_PIP_TODO_ENTRY \
  128. CVMX_ADD_IO_SEG(0x00011800A0000078ull)
  129. union cvmx_pip_bck_prs {
  130. uint64_t u64;
  131. struct cvmx_pip_bck_prs_s {
  132. uint64_t bckprs:1;
  133. uint64_t reserved_13_62:50;
  134. uint64_t hiwater:5;
  135. uint64_t reserved_5_7:3;
  136. uint64_t lowater:5;
  137. } s;
  138. struct cvmx_pip_bck_prs_s cn38xx;
  139. struct cvmx_pip_bck_prs_s cn38xxp2;
  140. struct cvmx_pip_bck_prs_s cn56xx;
  141. struct cvmx_pip_bck_prs_s cn56xxp1;
  142. struct cvmx_pip_bck_prs_s cn58xx;
  143. struct cvmx_pip_bck_prs_s cn58xxp1;
  144. };
  145. union cvmx_pip_bist_status {
  146. uint64_t u64;
  147. struct cvmx_pip_bist_status_s {
  148. uint64_t reserved_18_63:46;
  149. uint64_t bist:18;
  150. } s;
  151. struct cvmx_pip_bist_status_s cn30xx;
  152. struct cvmx_pip_bist_status_s cn31xx;
  153. struct cvmx_pip_bist_status_s cn38xx;
  154. struct cvmx_pip_bist_status_s cn38xxp2;
  155. struct cvmx_pip_bist_status_cn50xx {
  156. uint64_t reserved_17_63:47;
  157. uint64_t bist:17;
  158. } cn50xx;
  159. struct cvmx_pip_bist_status_s cn52xx;
  160. struct cvmx_pip_bist_status_s cn52xxp1;
  161. struct cvmx_pip_bist_status_s cn56xx;
  162. struct cvmx_pip_bist_status_s cn56xxp1;
  163. struct cvmx_pip_bist_status_s cn58xx;
  164. struct cvmx_pip_bist_status_s cn58xxp1;
  165. };
  166. union cvmx_pip_crc_ctlx {
  167. uint64_t u64;
  168. struct cvmx_pip_crc_ctlx_s {
  169. uint64_t reserved_2_63:62;
  170. uint64_t invres:1;
  171. uint64_t reflect:1;
  172. } s;
  173. struct cvmx_pip_crc_ctlx_s cn38xx;
  174. struct cvmx_pip_crc_ctlx_s cn38xxp2;
  175. struct cvmx_pip_crc_ctlx_s cn58xx;
  176. struct cvmx_pip_crc_ctlx_s cn58xxp1;
  177. };
  178. union cvmx_pip_crc_ivx {
  179. uint64_t u64;
  180. struct cvmx_pip_crc_ivx_s {
  181. uint64_t reserved_32_63:32;
  182. uint64_t iv:32;
  183. } s;
  184. struct cvmx_pip_crc_ivx_s cn38xx;
  185. struct cvmx_pip_crc_ivx_s cn38xxp2;
  186. struct cvmx_pip_crc_ivx_s cn58xx;
  187. struct cvmx_pip_crc_ivx_s cn58xxp1;
  188. };
  189. union cvmx_pip_dec_ipsecx {
  190. uint64_t u64;
  191. struct cvmx_pip_dec_ipsecx_s {
  192. uint64_t reserved_18_63:46;
  193. uint64_t tcp:1;
  194. uint64_t udp:1;
  195. uint64_t dprt:16;
  196. } s;
  197. struct cvmx_pip_dec_ipsecx_s cn30xx;
  198. struct cvmx_pip_dec_ipsecx_s cn31xx;
  199. struct cvmx_pip_dec_ipsecx_s cn38xx;
  200. struct cvmx_pip_dec_ipsecx_s cn38xxp2;
  201. struct cvmx_pip_dec_ipsecx_s cn50xx;
  202. struct cvmx_pip_dec_ipsecx_s cn52xx;
  203. struct cvmx_pip_dec_ipsecx_s cn52xxp1;
  204. struct cvmx_pip_dec_ipsecx_s cn56xx;
  205. struct cvmx_pip_dec_ipsecx_s cn56xxp1;
  206. struct cvmx_pip_dec_ipsecx_s cn58xx;
  207. struct cvmx_pip_dec_ipsecx_s cn58xxp1;
  208. };
  209. union cvmx_pip_dsa_src_grp {
  210. uint64_t u64;
  211. struct cvmx_pip_dsa_src_grp_s {
  212. uint64_t map15:4;
  213. uint64_t map14:4;
  214. uint64_t map13:4;
  215. uint64_t map12:4;
  216. uint64_t map11:4;
  217. uint64_t map10:4;
  218. uint64_t map9:4;
  219. uint64_t map8:4;
  220. uint64_t map7:4;
  221. uint64_t map6:4;
  222. uint64_t map5:4;
  223. uint64_t map4:4;
  224. uint64_t map3:4;
  225. uint64_t map2:4;
  226. uint64_t map1:4;
  227. uint64_t map0:4;
  228. } s;
  229. struct cvmx_pip_dsa_src_grp_s cn52xx;
  230. struct cvmx_pip_dsa_src_grp_s cn52xxp1;
  231. struct cvmx_pip_dsa_src_grp_s cn56xx;
  232. };
  233. union cvmx_pip_dsa_vid_grp {
  234. uint64_t u64;
  235. struct cvmx_pip_dsa_vid_grp_s {
  236. uint64_t map15:4;
  237. uint64_t map14:4;
  238. uint64_t map13:4;
  239. uint64_t map12:4;
  240. uint64_t map11:4;
  241. uint64_t map10:4;
  242. uint64_t map9:4;
  243. uint64_t map8:4;
  244. uint64_t map7:4;
  245. uint64_t map6:4;
  246. uint64_t map5:4;
  247. uint64_t map4:4;
  248. uint64_t map3:4;
  249. uint64_t map2:4;
  250. uint64_t map1:4;
  251. uint64_t map0:4;
  252. } s;
  253. struct cvmx_pip_dsa_vid_grp_s cn52xx;
  254. struct cvmx_pip_dsa_vid_grp_s cn52xxp1;
  255. struct cvmx_pip_dsa_vid_grp_s cn56xx;
  256. };
  257. union cvmx_pip_frm_len_chkx {
  258. uint64_t u64;
  259. struct cvmx_pip_frm_len_chkx_s {
  260. uint64_t reserved_32_63:32;
  261. uint64_t maxlen:16;
  262. uint64_t minlen:16;
  263. } s;
  264. struct cvmx_pip_frm_len_chkx_s cn50xx;
  265. struct cvmx_pip_frm_len_chkx_s cn52xx;
  266. struct cvmx_pip_frm_len_chkx_s cn52xxp1;
  267. struct cvmx_pip_frm_len_chkx_s cn56xx;
  268. struct cvmx_pip_frm_len_chkx_s cn56xxp1;
  269. };
  270. union cvmx_pip_gbl_cfg {
  271. uint64_t u64;
  272. struct cvmx_pip_gbl_cfg_s {
  273. uint64_t reserved_19_63:45;
  274. uint64_t tag_syn:1;
  275. uint64_t ip6_udp:1;
  276. uint64_t max_l2:1;
  277. uint64_t reserved_11_15:5;
  278. uint64_t raw_shf:3;
  279. uint64_t reserved_3_7:5;
  280. uint64_t nip_shf:3;
  281. } s;
  282. struct cvmx_pip_gbl_cfg_s cn30xx;
  283. struct cvmx_pip_gbl_cfg_s cn31xx;
  284. struct cvmx_pip_gbl_cfg_s cn38xx;
  285. struct cvmx_pip_gbl_cfg_s cn38xxp2;
  286. struct cvmx_pip_gbl_cfg_s cn50xx;
  287. struct cvmx_pip_gbl_cfg_s cn52xx;
  288. struct cvmx_pip_gbl_cfg_s cn52xxp1;
  289. struct cvmx_pip_gbl_cfg_s cn56xx;
  290. struct cvmx_pip_gbl_cfg_s cn56xxp1;
  291. struct cvmx_pip_gbl_cfg_s cn58xx;
  292. struct cvmx_pip_gbl_cfg_s cn58xxp1;
  293. };
  294. union cvmx_pip_gbl_ctl {
  295. uint64_t u64;
  296. struct cvmx_pip_gbl_ctl_s {
  297. uint64_t reserved_27_63:37;
  298. uint64_t dsa_grp_tvid:1;
  299. uint64_t dsa_grp_scmd:1;
  300. uint64_t dsa_grp_sid:1;
  301. uint64_t reserved_21_23:3;
  302. uint64_t ring_en:1;
  303. uint64_t reserved_17_19:3;
  304. uint64_t ignrs:1;
  305. uint64_t vs_wqe:1;
  306. uint64_t vs_qos:1;
  307. uint64_t l2_mal:1;
  308. uint64_t tcp_flag:1;
  309. uint64_t l4_len:1;
  310. uint64_t l4_chk:1;
  311. uint64_t l4_prt:1;
  312. uint64_t l4_mal:1;
  313. uint64_t reserved_6_7:2;
  314. uint64_t ip6_eext:2;
  315. uint64_t ip4_opts:1;
  316. uint64_t ip_hop:1;
  317. uint64_t ip_mal:1;
  318. uint64_t ip_chk:1;
  319. } s;
  320. struct cvmx_pip_gbl_ctl_cn30xx {
  321. uint64_t reserved_17_63:47;
  322. uint64_t ignrs:1;
  323. uint64_t vs_wqe:1;
  324. uint64_t vs_qos:1;
  325. uint64_t l2_mal:1;
  326. uint64_t tcp_flag:1;
  327. uint64_t l4_len:1;
  328. uint64_t l4_chk:1;
  329. uint64_t l4_prt:1;
  330. uint64_t l4_mal:1;
  331. uint64_t reserved_6_7:2;
  332. uint64_t ip6_eext:2;
  333. uint64_t ip4_opts:1;
  334. uint64_t ip_hop:1;
  335. uint64_t ip_mal:1;
  336. uint64_t ip_chk:1;
  337. } cn30xx;
  338. struct cvmx_pip_gbl_ctl_cn30xx cn31xx;
  339. struct cvmx_pip_gbl_ctl_cn30xx cn38xx;
  340. struct cvmx_pip_gbl_ctl_cn30xx cn38xxp2;
  341. struct cvmx_pip_gbl_ctl_cn30xx cn50xx;
  342. struct cvmx_pip_gbl_ctl_s cn52xx;
  343. struct cvmx_pip_gbl_ctl_s cn52xxp1;
  344. struct cvmx_pip_gbl_ctl_s cn56xx;
  345. struct cvmx_pip_gbl_ctl_cn56xxp1 {
  346. uint64_t reserved_21_63:43;
  347. uint64_t ring_en:1;
  348. uint64_t reserved_17_19:3;
  349. uint64_t ignrs:1;
  350. uint64_t vs_wqe:1;
  351. uint64_t vs_qos:1;
  352. uint64_t l2_mal:1;
  353. uint64_t tcp_flag:1;
  354. uint64_t l4_len:1;
  355. uint64_t l4_chk:1;
  356. uint64_t l4_prt:1;
  357. uint64_t l4_mal:1;
  358. uint64_t reserved_6_7:2;
  359. uint64_t ip6_eext:2;
  360. uint64_t ip4_opts:1;
  361. uint64_t ip_hop:1;
  362. uint64_t ip_mal:1;
  363. uint64_t ip_chk:1;
  364. } cn56xxp1;
  365. struct cvmx_pip_gbl_ctl_cn30xx cn58xx;
  366. struct cvmx_pip_gbl_ctl_cn30xx cn58xxp1;
  367. };
  368. union cvmx_pip_hg_pri_qos {
  369. uint64_t u64;
  370. struct cvmx_pip_hg_pri_qos_s {
  371. uint64_t reserved_11_63:53;
  372. uint64_t qos:3;
  373. uint64_t reserved_6_7:2;
  374. uint64_t pri:6;
  375. } s;
  376. struct cvmx_pip_hg_pri_qos_s cn52xx;
  377. struct cvmx_pip_hg_pri_qos_s cn52xxp1;
  378. struct cvmx_pip_hg_pri_qos_s cn56xx;
  379. };
  380. union cvmx_pip_int_en {
  381. uint64_t u64;
  382. struct cvmx_pip_int_en_s {
  383. uint64_t reserved_13_63:51;
  384. uint64_t punyerr:1;
  385. uint64_t lenerr:1;
  386. uint64_t maxerr:1;
  387. uint64_t minerr:1;
  388. uint64_t beperr:1;
  389. uint64_t feperr:1;
  390. uint64_t todoovr:1;
  391. uint64_t skprunt:1;
  392. uint64_t badtag:1;
  393. uint64_t prtnxa:1;
  394. uint64_t bckprs:1;
  395. uint64_t crcerr:1;
  396. uint64_t pktdrp:1;
  397. } s;
  398. struct cvmx_pip_int_en_cn30xx {
  399. uint64_t reserved_9_63:55;
  400. uint64_t beperr:1;
  401. uint64_t feperr:1;
  402. uint64_t todoovr:1;
  403. uint64_t skprunt:1;
  404. uint64_t badtag:1;
  405. uint64_t prtnxa:1;
  406. uint64_t bckprs:1;
  407. uint64_t crcerr:1;
  408. uint64_t pktdrp:1;
  409. } cn30xx;
  410. struct cvmx_pip_int_en_cn30xx cn31xx;
  411. struct cvmx_pip_int_en_cn30xx cn38xx;
  412. struct cvmx_pip_int_en_cn30xx cn38xxp2;
  413. struct cvmx_pip_int_en_cn50xx {
  414. uint64_t reserved_12_63:52;
  415. uint64_t lenerr:1;
  416. uint64_t maxerr:1;
  417. uint64_t minerr:1;
  418. uint64_t beperr:1;
  419. uint64_t feperr:1;
  420. uint64_t todoovr:1;
  421. uint64_t skprunt:1;
  422. uint64_t badtag:1;
  423. uint64_t prtnxa:1;
  424. uint64_t bckprs:1;
  425. uint64_t reserved_1_1:1;
  426. uint64_t pktdrp:1;
  427. } cn50xx;
  428. struct cvmx_pip_int_en_cn52xx {
  429. uint64_t reserved_13_63:51;
  430. uint64_t punyerr:1;
  431. uint64_t lenerr:1;
  432. uint64_t maxerr:1;
  433. uint64_t minerr:1;
  434. uint64_t beperr:1;
  435. uint64_t feperr:1;
  436. uint64_t todoovr:1;
  437. uint64_t skprunt:1;
  438. uint64_t badtag:1;
  439. uint64_t prtnxa:1;
  440. uint64_t bckprs:1;
  441. uint64_t reserved_1_1:1;
  442. uint64_t pktdrp:1;
  443. } cn52xx;
  444. struct cvmx_pip_int_en_cn52xx cn52xxp1;
  445. struct cvmx_pip_int_en_s cn56xx;
  446. struct cvmx_pip_int_en_cn56xxp1 {
  447. uint64_t reserved_12_63:52;
  448. uint64_t lenerr:1;
  449. uint64_t maxerr:1;
  450. uint64_t minerr:1;
  451. uint64_t beperr:1;
  452. uint64_t feperr:1;
  453. uint64_t todoovr:1;
  454. uint64_t skprunt:1;
  455. uint64_t badtag:1;
  456. uint64_t prtnxa:1;
  457. uint64_t bckprs:1;
  458. uint64_t crcerr:1;
  459. uint64_t pktdrp:1;
  460. } cn56xxp1;
  461. struct cvmx_pip_int_en_cn58xx {
  462. uint64_t reserved_13_63:51;
  463. uint64_t punyerr:1;
  464. uint64_t reserved_9_11:3;
  465. uint64_t beperr:1;
  466. uint64_t feperr:1;
  467. uint64_t todoovr:1;
  468. uint64_t skprunt:1;
  469. uint64_t badtag:1;
  470. uint64_t prtnxa:1;
  471. uint64_t bckprs:1;
  472. uint64_t crcerr:1;
  473. uint64_t pktdrp:1;
  474. } cn58xx;
  475. struct cvmx_pip_int_en_cn30xx cn58xxp1;
  476. };
  477. union cvmx_pip_int_reg {
  478. uint64_t u64;
  479. struct cvmx_pip_int_reg_s {
  480. uint64_t reserved_13_63:51;
  481. uint64_t punyerr:1;
  482. uint64_t lenerr:1;
  483. uint64_t maxerr:1;
  484. uint64_t minerr:1;
  485. uint64_t beperr:1;
  486. uint64_t feperr:1;
  487. uint64_t todoovr:1;
  488. uint64_t skprunt:1;
  489. uint64_t badtag:1;
  490. uint64_t prtnxa:1;
  491. uint64_t bckprs:1;
  492. uint64_t crcerr:1;
  493. uint64_t pktdrp:1;
  494. } s;
  495. struct cvmx_pip_int_reg_cn30xx {
  496. uint64_t reserved_9_63:55;
  497. uint64_t beperr:1;
  498. uint64_t feperr:1;
  499. uint64_t todoovr:1;
  500. uint64_t skprunt:1;
  501. uint64_t badtag:1;
  502. uint64_t prtnxa:1;
  503. uint64_t bckprs:1;
  504. uint64_t crcerr:1;
  505. uint64_t pktdrp:1;
  506. } cn30xx;
  507. struct cvmx_pip_int_reg_cn30xx cn31xx;
  508. struct cvmx_pip_int_reg_cn30xx cn38xx;
  509. struct cvmx_pip_int_reg_cn30xx cn38xxp2;
  510. struct cvmx_pip_int_reg_cn50xx {
  511. uint64_t reserved_12_63:52;
  512. uint64_t lenerr:1;
  513. uint64_t maxerr:1;
  514. uint64_t minerr:1;
  515. uint64_t beperr:1;
  516. uint64_t feperr:1;
  517. uint64_t todoovr:1;
  518. uint64_t skprunt:1;
  519. uint64_t badtag:1;
  520. uint64_t prtnxa:1;
  521. uint64_t bckprs:1;
  522. uint64_t reserved_1_1:1;
  523. uint64_t pktdrp:1;
  524. } cn50xx;
  525. struct cvmx_pip_int_reg_cn52xx {
  526. uint64_t reserved_13_63:51;
  527. uint64_t punyerr:1;
  528. uint64_t lenerr:1;
  529. uint64_t maxerr:1;
  530. uint64_t minerr:1;
  531. uint64_t beperr:1;
  532. uint64_t feperr:1;
  533. uint64_t todoovr:1;
  534. uint64_t skprunt:1;
  535. uint64_t badtag:1;
  536. uint64_t prtnxa:1;
  537. uint64_t bckprs:1;
  538. uint64_t reserved_1_1:1;
  539. uint64_t pktdrp:1;
  540. } cn52xx;
  541. struct cvmx_pip_int_reg_cn52xx cn52xxp1;
  542. struct cvmx_pip_int_reg_s cn56xx;
  543. struct cvmx_pip_int_reg_cn56xxp1 {
  544. uint64_t reserved_12_63:52;
  545. uint64_t lenerr:1;
  546. uint64_t maxerr:1;
  547. uint64_t minerr:1;
  548. uint64_t beperr:1;
  549. uint64_t feperr:1;
  550. uint64_t todoovr:1;
  551. uint64_t skprunt:1;
  552. uint64_t badtag:1;
  553. uint64_t prtnxa:1;
  554. uint64_t bckprs:1;
  555. uint64_t crcerr:1;
  556. uint64_t pktdrp:1;
  557. } cn56xxp1;
  558. struct cvmx_pip_int_reg_cn58xx {
  559. uint64_t reserved_13_63:51;
  560. uint64_t punyerr:1;
  561. uint64_t reserved_9_11:3;
  562. uint64_t beperr:1;
  563. uint64_t feperr:1;
  564. uint64_t todoovr:1;
  565. uint64_t skprunt:1;
  566. uint64_t badtag:1;
  567. uint64_t prtnxa:1;
  568. uint64_t bckprs:1;
  569. uint64_t crcerr:1;
  570. uint64_t pktdrp:1;
  571. } cn58xx;
  572. struct cvmx_pip_int_reg_cn30xx cn58xxp1;
  573. };
  574. union cvmx_pip_ip_offset {
  575. uint64_t u64;
  576. struct cvmx_pip_ip_offset_s {
  577. uint64_t reserved_3_63:61;
  578. uint64_t offset:3;
  579. } s;
  580. struct cvmx_pip_ip_offset_s cn30xx;
  581. struct cvmx_pip_ip_offset_s cn31xx;
  582. struct cvmx_pip_ip_offset_s cn38xx;
  583. struct cvmx_pip_ip_offset_s cn38xxp2;
  584. struct cvmx_pip_ip_offset_s cn50xx;
  585. struct cvmx_pip_ip_offset_s cn52xx;
  586. struct cvmx_pip_ip_offset_s cn52xxp1;
  587. struct cvmx_pip_ip_offset_s cn56xx;
  588. struct cvmx_pip_ip_offset_s cn56xxp1;
  589. struct cvmx_pip_ip_offset_s cn58xx;
  590. struct cvmx_pip_ip_offset_s cn58xxp1;
  591. };
  592. union cvmx_pip_prt_cfgx {
  593. uint64_t u64;
  594. struct cvmx_pip_prt_cfgx_s {
  595. uint64_t reserved_53_63:11;
  596. uint64_t pad_len:1;
  597. uint64_t vlan_len:1;
  598. uint64_t lenerr_en:1;
  599. uint64_t maxerr_en:1;
  600. uint64_t minerr_en:1;
  601. uint64_t grp_wat_47:4;
  602. uint64_t qos_wat_47:4;
  603. uint64_t reserved_37_39:3;
  604. uint64_t rawdrp:1;
  605. uint64_t tag_inc:2;
  606. uint64_t dyn_rs:1;
  607. uint64_t inst_hdr:1;
  608. uint64_t grp_wat:4;
  609. uint64_t hg_qos:1;
  610. uint64_t qos:3;
  611. uint64_t qos_wat:4;
  612. uint64_t qos_vsel:1;
  613. uint64_t qos_vod:1;
  614. uint64_t qos_diff:1;
  615. uint64_t qos_vlan:1;
  616. uint64_t reserved_13_15:3;
  617. uint64_t crc_en:1;
  618. uint64_t higig_en:1;
  619. uint64_t dsa_en:1;
  620. uint64_t mode:2;
  621. uint64_t reserved_7_7:1;
  622. uint64_t skip:7;
  623. } s;
  624. struct cvmx_pip_prt_cfgx_cn30xx {
  625. uint64_t reserved_37_63:27;
  626. uint64_t rawdrp:1;
  627. uint64_t tag_inc:2;
  628. uint64_t dyn_rs:1;
  629. uint64_t inst_hdr:1;
  630. uint64_t grp_wat:4;
  631. uint64_t reserved_27_27:1;
  632. uint64_t qos:3;
  633. uint64_t qos_wat:4;
  634. uint64_t reserved_18_19:2;
  635. uint64_t qos_diff:1;
  636. uint64_t qos_vlan:1;
  637. uint64_t reserved_10_15:6;
  638. uint64_t mode:2;
  639. uint64_t reserved_7_7:1;
  640. uint64_t skip:7;
  641. } cn30xx;
  642. struct cvmx_pip_prt_cfgx_cn30xx cn31xx;
  643. struct cvmx_pip_prt_cfgx_cn38xx {
  644. uint64_t reserved_37_63:27;
  645. uint64_t rawdrp:1;
  646. uint64_t tag_inc:2;
  647. uint64_t dyn_rs:1;
  648. uint64_t inst_hdr:1;
  649. uint64_t grp_wat:4;
  650. uint64_t reserved_27_27:1;
  651. uint64_t qos:3;
  652. uint64_t qos_wat:4;
  653. uint64_t reserved_18_19:2;
  654. uint64_t qos_diff:1;
  655. uint64_t qos_vlan:1;
  656. uint64_t reserved_13_15:3;
  657. uint64_t crc_en:1;
  658. uint64_t reserved_10_11:2;
  659. uint64_t mode:2;
  660. uint64_t reserved_7_7:1;
  661. uint64_t skip:7;
  662. } cn38xx;
  663. struct cvmx_pip_prt_cfgx_cn38xx cn38xxp2;
  664. struct cvmx_pip_prt_cfgx_cn50xx {
  665. uint64_t reserved_53_63:11;
  666. uint64_t pad_len:1;
  667. uint64_t vlan_len:1;
  668. uint64_t lenerr_en:1;
  669. uint64_t maxerr_en:1;
  670. uint64_t minerr_en:1;
  671. uint64_t grp_wat_47:4;
  672. uint64_t qos_wat_47:4;
  673. uint64_t reserved_37_39:3;
  674. uint64_t rawdrp:1;
  675. uint64_t tag_inc:2;
  676. uint64_t dyn_rs:1;
  677. uint64_t inst_hdr:1;
  678. uint64_t grp_wat:4;
  679. uint64_t reserved_27_27:1;
  680. uint64_t qos:3;
  681. uint64_t qos_wat:4;
  682. uint64_t reserved_19_19:1;
  683. uint64_t qos_vod:1;
  684. uint64_t qos_diff:1;
  685. uint64_t qos_vlan:1;
  686. uint64_t reserved_13_15:3;
  687. uint64_t crc_en:1;
  688. uint64_t reserved_10_11:2;
  689. uint64_t mode:2;
  690. uint64_t reserved_7_7:1;
  691. uint64_t skip:7;
  692. } cn50xx;
  693. struct cvmx_pip_prt_cfgx_s cn52xx;
  694. struct cvmx_pip_prt_cfgx_s cn52xxp1;
  695. struct cvmx_pip_prt_cfgx_s cn56xx;
  696. struct cvmx_pip_prt_cfgx_cn50xx cn56xxp1;
  697. struct cvmx_pip_prt_cfgx_cn58xx {
  698. uint64_t reserved_37_63:27;
  699. uint64_t rawdrp:1;
  700. uint64_t tag_inc:2;
  701. uint64_t dyn_rs:1;
  702. uint64_t inst_hdr:1;
  703. uint64_t grp_wat:4;
  704. uint64_t reserved_27_27:1;
  705. uint64_t qos:3;
  706. uint64_t qos_wat:4;
  707. uint64_t reserved_19_19:1;
  708. uint64_t qos_vod:1;
  709. uint64_t qos_diff:1;
  710. uint64_t qos_vlan:1;
  711. uint64_t reserved_13_15:3;
  712. uint64_t crc_en:1;
  713. uint64_t reserved_10_11:2;
  714. uint64_t mode:2;
  715. uint64_t reserved_7_7:1;
  716. uint64_t skip:7;
  717. } cn58xx;
  718. struct cvmx_pip_prt_cfgx_cn58xx cn58xxp1;
  719. };
  720. union cvmx_pip_prt_tagx {
  721. uint64_t u64;
  722. struct cvmx_pip_prt_tagx_s {
  723. uint64_t reserved_40_63:24;
  724. uint64_t grptagbase:4;
  725. uint64_t grptagmask:4;
  726. uint64_t grptag:1;
  727. uint64_t grptag_mskip:1;
  728. uint64_t tag_mode:2;
  729. uint64_t inc_vs:2;
  730. uint64_t inc_vlan:1;
  731. uint64_t inc_prt_flag:1;
  732. uint64_t ip6_dprt_flag:1;
  733. uint64_t ip4_dprt_flag:1;
  734. uint64_t ip6_sprt_flag:1;
  735. uint64_t ip4_sprt_flag:1;
  736. uint64_t ip6_nxth_flag:1;
  737. uint64_t ip4_pctl_flag:1;
  738. uint64_t ip6_dst_flag:1;
  739. uint64_t ip4_dst_flag:1;
  740. uint64_t ip6_src_flag:1;
  741. uint64_t ip4_src_flag:1;
  742. uint64_t tcp6_tag_type:2;
  743. uint64_t tcp4_tag_type:2;
  744. uint64_t ip6_tag_type:2;
  745. uint64_t ip4_tag_type:2;
  746. uint64_t non_tag_type:2;
  747. uint64_t grp:4;
  748. } s;
  749. struct cvmx_pip_prt_tagx_cn30xx {
  750. uint64_t reserved_40_63:24;
  751. uint64_t grptagbase:4;
  752. uint64_t grptagmask:4;
  753. uint64_t grptag:1;
  754. uint64_t reserved_30_30:1;
  755. uint64_t tag_mode:2;
  756. uint64_t inc_vs:2;
  757. uint64_t inc_vlan:1;
  758. uint64_t inc_prt_flag:1;
  759. uint64_t ip6_dprt_flag:1;
  760. uint64_t ip4_dprt_flag:1;
  761. uint64_t ip6_sprt_flag:1;
  762. uint64_t ip4_sprt_flag:1;
  763. uint64_t ip6_nxth_flag:1;
  764. uint64_t ip4_pctl_flag:1;
  765. uint64_t ip6_dst_flag:1;
  766. uint64_t ip4_dst_flag:1;
  767. uint64_t ip6_src_flag:1;
  768. uint64_t ip4_src_flag:1;
  769. uint64_t tcp6_tag_type:2;
  770. uint64_t tcp4_tag_type:2;
  771. uint64_t ip6_tag_type:2;
  772. uint64_t ip4_tag_type:2;
  773. uint64_t non_tag_type:2;
  774. uint64_t grp:4;
  775. } cn30xx;
  776. struct cvmx_pip_prt_tagx_cn30xx cn31xx;
  777. struct cvmx_pip_prt_tagx_cn30xx cn38xx;
  778. struct cvmx_pip_prt_tagx_cn30xx cn38xxp2;
  779. struct cvmx_pip_prt_tagx_s cn50xx;
  780. struct cvmx_pip_prt_tagx_s cn52xx;
  781. struct cvmx_pip_prt_tagx_s cn52xxp1;
  782. struct cvmx_pip_prt_tagx_s cn56xx;
  783. struct cvmx_pip_prt_tagx_s cn56xxp1;
  784. struct cvmx_pip_prt_tagx_cn30xx cn58xx;
  785. struct cvmx_pip_prt_tagx_cn30xx cn58xxp1;
  786. };
  787. union cvmx_pip_qos_diffx {
  788. uint64_t u64;
  789. struct cvmx_pip_qos_diffx_s {
  790. uint64_t reserved_3_63:61;
  791. uint64_t qos:3;
  792. } s;
  793. struct cvmx_pip_qos_diffx_s cn30xx;
  794. struct cvmx_pip_qos_diffx_s cn31xx;
  795. struct cvmx_pip_qos_diffx_s cn38xx;
  796. struct cvmx_pip_qos_diffx_s cn38xxp2;
  797. struct cvmx_pip_qos_diffx_s cn50xx;
  798. struct cvmx_pip_qos_diffx_s cn52xx;
  799. struct cvmx_pip_qos_diffx_s cn52xxp1;
  800. struct cvmx_pip_qos_diffx_s cn56xx;
  801. struct cvmx_pip_qos_diffx_s cn56xxp1;
  802. struct cvmx_pip_qos_diffx_s cn58xx;
  803. struct cvmx_pip_qos_diffx_s cn58xxp1;
  804. };
  805. union cvmx_pip_qos_vlanx {
  806. uint64_t u64;
  807. struct cvmx_pip_qos_vlanx_s {
  808. uint64_t reserved_7_63:57;
  809. uint64_t qos1:3;
  810. uint64_t reserved_3_3:1;
  811. uint64_t qos:3;
  812. } s;
  813. struct cvmx_pip_qos_vlanx_cn30xx {
  814. uint64_t reserved_3_63:61;
  815. uint64_t qos:3;
  816. } cn30xx;
  817. struct cvmx_pip_qos_vlanx_cn30xx cn31xx;
  818. struct cvmx_pip_qos_vlanx_cn30xx cn38xx;
  819. struct cvmx_pip_qos_vlanx_cn30xx cn38xxp2;
  820. struct cvmx_pip_qos_vlanx_cn30xx cn50xx;
  821. struct cvmx_pip_qos_vlanx_s cn52xx;
  822. struct cvmx_pip_qos_vlanx_s cn52xxp1;
  823. struct cvmx_pip_qos_vlanx_s cn56xx;
  824. struct cvmx_pip_qos_vlanx_cn30xx cn56xxp1;
  825. struct cvmx_pip_qos_vlanx_cn30xx cn58xx;
  826. struct cvmx_pip_qos_vlanx_cn30xx cn58xxp1;
  827. };
  828. union cvmx_pip_qos_watchx {
  829. uint64_t u64;
  830. struct cvmx_pip_qos_watchx_s {
  831. uint64_t reserved_48_63:16;
  832. uint64_t mask:16;
  833. uint64_t reserved_28_31:4;
  834. uint64_t grp:4;
  835. uint64_t reserved_23_23:1;
  836. uint64_t qos:3;
  837. uint64_t reserved_19_19:1;
  838. uint64_t match_type:3;
  839. uint64_t match_value:16;
  840. } s;
  841. struct cvmx_pip_qos_watchx_cn30xx {
  842. uint64_t reserved_48_63:16;
  843. uint64_t mask:16;
  844. uint64_t reserved_28_31:4;
  845. uint64_t grp:4;
  846. uint64_t reserved_23_23:1;
  847. uint64_t qos:3;
  848. uint64_t reserved_18_19:2;
  849. uint64_t match_type:2;
  850. uint64_t match_value:16;
  851. } cn30xx;
  852. struct cvmx_pip_qos_watchx_cn30xx cn31xx;
  853. struct cvmx_pip_qos_watchx_cn30xx cn38xx;
  854. struct cvmx_pip_qos_watchx_cn30xx cn38xxp2;
  855. struct cvmx_pip_qos_watchx_s cn50xx;
  856. struct cvmx_pip_qos_watchx_s cn52xx;
  857. struct cvmx_pip_qos_watchx_s cn52xxp1;
  858. struct cvmx_pip_qos_watchx_s cn56xx;
  859. struct cvmx_pip_qos_watchx_s cn56xxp1;
  860. struct cvmx_pip_qos_watchx_cn30xx cn58xx;
  861. struct cvmx_pip_qos_watchx_cn30xx cn58xxp1;
  862. };
  863. union cvmx_pip_raw_word {
  864. uint64_t u64;
  865. struct cvmx_pip_raw_word_s {
  866. uint64_t reserved_56_63:8;
  867. uint64_t word:56;
  868. } s;
  869. struct cvmx_pip_raw_word_s cn30xx;
  870. struct cvmx_pip_raw_word_s cn31xx;
  871. struct cvmx_pip_raw_word_s cn38xx;
  872. struct cvmx_pip_raw_word_s cn38xxp2;
  873. struct cvmx_pip_raw_word_s cn50xx;
  874. struct cvmx_pip_raw_word_s cn52xx;
  875. struct cvmx_pip_raw_word_s cn52xxp1;
  876. struct cvmx_pip_raw_word_s cn56xx;
  877. struct cvmx_pip_raw_word_s cn56xxp1;
  878. struct cvmx_pip_raw_word_s cn58xx;
  879. struct cvmx_pip_raw_word_s cn58xxp1;
  880. };
  881. union cvmx_pip_sft_rst {
  882. uint64_t u64;
  883. struct cvmx_pip_sft_rst_s {
  884. uint64_t reserved_1_63:63;
  885. uint64_t rst:1;
  886. } s;
  887. struct cvmx_pip_sft_rst_s cn30xx;
  888. struct cvmx_pip_sft_rst_s cn31xx;
  889. struct cvmx_pip_sft_rst_s cn38xx;
  890. struct cvmx_pip_sft_rst_s cn50xx;
  891. struct cvmx_pip_sft_rst_s cn52xx;
  892. struct cvmx_pip_sft_rst_s cn52xxp1;
  893. struct cvmx_pip_sft_rst_s cn56xx;
  894. struct cvmx_pip_sft_rst_s cn56xxp1;
  895. struct cvmx_pip_sft_rst_s cn58xx;
  896. struct cvmx_pip_sft_rst_s cn58xxp1;
  897. };
  898. union cvmx_pip_stat0_prtx {
  899. uint64_t u64;
  900. struct cvmx_pip_stat0_prtx_s {
  901. uint64_t drp_pkts:32;
  902. uint64_t drp_octs:32;
  903. } s;
  904. struct cvmx_pip_stat0_prtx_s cn30xx;
  905. struct cvmx_pip_stat0_prtx_s cn31xx;
  906. struct cvmx_pip_stat0_prtx_s cn38xx;
  907. struct cvmx_pip_stat0_prtx_s cn38xxp2;
  908. struct cvmx_pip_stat0_prtx_s cn50xx;
  909. struct cvmx_pip_stat0_prtx_s cn52xx;
  910. struct cvmx_pip_stat0_prtx_s cn52xxp1;
  911. struct cvmx_pip_stat0_prtx_s cn56xx;
  912. struct cvmx_pip_stat0_prtx_s cn56xxp1;
  913. struct cvmx_pip_stat0_prtx_s cn58xx;
  914. struct cvmx_pip_stat0_prtx_s cn58xxp1;
  915. };
  916. union cvmx_pip_stat1_prtx {
  917. uint64_t u64;
  918. struct cvmx_pip_stat1_prtx_s {
  919. uint64_t reserved_48_63:16;
  920. uint64_t octs:48;
  921. } s;
  922. struct cvmx_pip_stat1_prtx_s cn30xx;
  923. struct cvmx_pip_stat1_prtx_s cn31xx;
  924. struct cvmx_pip_stat1_prtx_s cn38xx;
  925. struct cvmx_pip_stat1_prtx_s cn38xxp2;
  926. struct cvmx_pip_stat1_prtx_s cn50xx;
  927. struct cvmx_pip_stat1_prtx_s cn52xx;
  928. struct cvmx_pip_stat1_prtx_s cn52xxp1;
  929. struct cvmx_pip_stat1_prtx_s cn56xx;
  930. struct cvmx_pip_stat1_prtx_s cn56xxp1;
  931. struct cvmx_pip_stat1_prtx_s cn58xx;
  932. struct cvmx_pip_stat1_prtx_s cn58xxp1;
  933. };
  934. union cvmx_pip_stat2_prtx {
  935. uint64_t u64;
  936. struct cvmx_pip_stat2_prtx_s {
  937. uint64_t pkts:32;
  938. uint64_t raw:32;
  939. } s;
  940. struct cvmx_pip_stat2_prtx_s cn30xx;
  941. struct cvmx_pip_stat2_prtx_s cn31xx;
  942. struct cvmx_pip_stat2_prtx_s cn38xx;
  943. struct cvmx_pip_stat2_prtx_s cn38xxp2;
  944. struct cvmx_pip_stat2_prtx_s cn50xx;
  945. struct cvmx_pip_stat2_prtx_s cn52xx;
  946. struct cvmx_pip_stat2_prtx_s cn52xxp1;
  947. struct cvmx_pip_stat2_prtx_s cn56xx;
  948. struct cvmx_pip_stat2_prtx_s cn56xxp1;
  949. struct cvmx_pip_stat2_prtx_s cn58xx;
  950. struct cvmx_pip_stat2_prtx_s cn58xxp1;
  951. };
  952. union cvmx_pip_stat3_prtx {
  953. uint64_t u64;
  954. struct cvmx_pip_stat3_prtx_s {
  955. uint64_t bcst:32;
  956. uint64_t mcst:32;
  957. } s;
  958. struct cvmx_pip_stat3_prtx_s cn30xx;
  959. struct cvmx_pip_stat3_prtx_s cn31xx;
  960. struct cvmx_pip_stat3_prtx_s cn38xx;
  961. struct cvmx_pip_stat3_prtx_s cn38xxp2;
  962. struct cvmx_pip_stat3_prtx_s cn50xx;
  963. struct cvmx_pip_stat3_prtx_s cn52xx;
  964. struct cvmx_pip_stat3_prtx_s cn52xxp1;
  965. struct cvmx_pip_stat3_prtx_s cn56xx;
  966. struct cvmx_pip_stat3_prtx_s cn56xxp1;
  967. struct cvmx_pip_stat3_prtx_s cn58xx;
  968. struct cvmx_pip_stat3_prtx_s cn58xxp1;
  969. };
  970. union cvmx_pip_stat4_prtx {
  971. uint64_t u64;
  972. struct cvmx_pip_stat4_prtx_s {
  973. uint64_t h65to127:32;
  974. uint64_t h64:32;
  975. } s;
  976. struct cvmx_pip_stat4_prtx_s cn30xx;
  977. struct cvmx_pip_stat4_prtx_s cn31xx;
  978. struct cvmx_pip_stat4_prtx_s cn38xx;
  979. struct cvmx_pip_stat4_prtx_s cn38xxp2;
  980. struct cvmx_pip_stat4_prtx_s cn50xx;
  981. struct cvmx_pip_stat4_prtx_s cn52xx;
  982. struct cvmx_pip_stat4_prtx_s cn52xxp1;
  983. struct cvmx_pip_stat4_prtx_s cn56xx;
  984. struct cvmx_pip_stat4_prtx_s cn56xxp1;
  985. struct cvmx_pip_stat4_prtx_s cn58xx;
  986. struct cvmx_pip_stat4_prtx_s cn58xxp1;
  987. };
  988. union cvmx_pip_stat5_prtx {
  989. uint64_t u64;
  990. struct cvmx_pip_stat5_prtx_s {
  991. uint64_t h256to511:32;
  992. uint64_t h128to255:32;
  993. } s;
  994. struct cvmx_pip_stat5_prtx_s cn30xx;
  995. struct cvmx_pip_stat5_prtx_s cn31xx;
  996. struct cvmx_pip_stat5_prtx_s cn38xx;
  997. struct cvmx_pip_stat5_prtx_s cn38xxp2;
  998. struct cvmx_pip_stat5_prtx_s cn50xx;
  999. struct cvmx_pip_stat5_prtx_s cn52xx;
  1000. struct cvmx_pip_stat5_prtx_s cn52xxp1;
  1001. struct cvmx_pip_stat5_prtx_s cn56xx;
  1002. struct cvmx_pip_stat5_prtx_s cn56xxp1;
  1003. struct cvmx_pip_stat5_prtx_s cn58xx;
  1004. struct cvmx_pip_stat5_prtx_s cn58xxp1;
  1005. };
  1006. union cvmx_pip_stat6_prtx {
  1007. uint64_t u64;
  1008. struct cvmx_pip_stat6_prtx_s {
  1009. uint64_t h1024to1518:32;
  1010. uint64_t h512to1023:32;
  1011. } s;
  1012. struct cvmx_pip_stat6_prtx_s cn30xx;
  1013. struct cvmx_pip_stat6_prtx_s cn31xx;
  1014. struct cvmx_pip_stat6_prtx_s cn38xx;
  1015. struct cvmx_pip_stat6_prtx_s cn38xxp2;
  1016. struct cvmx_pip_stat6_prtx_s cn50xx;
  1017. struct cvmx_pip_stat6_prtx_s cn52xx;
  1018. struct cvmx_pip_stat6_prtx_s cn52xxp1;
  1019. struct cvmx_pip_stat6_prtx_s cn56xx;
  1020. struct cvmx_pip_stat6_prtx_s cn56xxp1;
  1021. struct cvmx_pip_stat6_prtx_s cn58xx;
  1022. struct cvmx_pip_stat6_prtx_s cn58xxp1;
  1023. };
  1024. union cvmx_pip_stat7_prtx {
  1025. uint64_t u64;
  1026. struct cvmx_pip_stat7_prtx_s {
  1027. uint64_t fcs:32;
  1028. uint64_t h1519:32;
  1029. } s;
  1030. struct cvmx_pip_stat7_prtx_s cn30xx;
  1031. struct cvmx_pip_stat7_prtx_s cn31xx;
  1032. struct cvmx_pip_stat7_prtx_s cn38xx;
  1033. struct cvmx_pip_stat7_prtx_s cn38xxp2;
  1034. struct cvmx_pip_stat7_prtx_s cn50xx;
  1035. struct cvmx_pip_stat7_prtx_s cn52xx;
  1036. struct cvmx_pip_stat7_prtx_s cn52xxp1;
  1037. struct cvmx_pip_stat7_prtx_s cn56xx;
  1038. struct cvmx_pip_stat7_prtx_s cn56xxp1;
  1039. struct cvmx_pip_stat7_prtx_s cn58xx;
  1040. struct cvmx_pip_stat7_prtx_s cn58xxp1;
  1041. };
  1042. union cvmx_pip_stat8_prtx {
  1043. uint64_t u64;
  1044. struct cvmx_pip_stat8_prtx_s {
  1045. uint64_t frag:32;
  1046. uint64_t undersz:32;
  1047. } s;
  1048. struct cvmx_pip_stat8_prtx_s cn30xx;
  1049. struct cvmx_pip_stat8_prtx_s cn31xx;
  1050. struct cvmx_pip_stat8_prtx_s cn38xx;
  1051. struct cvmx_pip_stat8_prtx_s cn38xxp2;
  1052. struct cvmx_pip_stat8_prtx_s cn50xx;
  1053. struct cvmx_pip_stat8_prtx_s cn52xx;
  1054. struct cvmx_pip_stat8_prtx_s cn52xxp1;
  1055. struct cvmx_pip_stat8_prtx_s cn56xx;
  1056. struct cvmx_pip_stat8_prtx_s cn56xxp1;
  1057. struct cvmx_pip_stat8_prtx_s cn58xx;
  1058. struct cvmx_pip_stat8_prtx_s cn58xxp1;
  1059. };
  1060. union cvmx_pip_stat9_prtx {
  1061. uint64_t u64;
  1062. struct cvmx_pip_stat9_prtx_s {
  1063. uint64_t jabber:32;
  1064. uint64_t oversz:32;
  1065. } s;
  1066. struct cvmx_pip_stat9_prtx_s cn30xx;
  1067. struct cvmx_pip_stat9_prtx_s cn31xx;
  1068. struct cvmx_pip_stat9_prtx_s cn38xx;
  1069. struct cvmx_pip_stat9_prtx_s cn38xxp2;
  1070. struct cvmx_pip_stat9_prtx_s cn50xx;
  1071. struct cvmx_pip_stat9_prtx_s cn52xx;
  1072. struct cvmx_pip_stat9_prtx_s cn52xxp1;
  1073. struct cvmx_pip_stat9_prtx_s cn56xx;
  1074. struct cvmx_pip_stat9_prtx_s cn56xxp1;
  1075. struct cvmx_pip_stat9_prtx_s cn58xx;
  1076. struct cvmx_pip_stat9_prtx_s cn58xxp1;
  1077. };
  1078. union cvmx_pip_stat_ctl {
  1079. uint64_t u64;
  1080. struct cvmx_pip_stat_ctl_s {
  1081. uint64_t reserved_1_63:63;
  1082. uint64_t rdclr:1;
  1083. } s;
  1084. struct cvmx_pip_stat_ctl_s cn30xx;
  1085. struct cvmx_pip_stat_ctl_s cn31xx;
  1086. struct cvmx_pip_stat_ctl_s cn38xx;
  1087. struct cvmx_pip_stat_ctl_s cn38xxp2;
  1088. struct cvmx_pip_stat_ctl_s cn50xx;
  1089. struct cvmx_pip_stat_ctl_s cn52xx;
  1090. struct cvmx_pip_stat_ctl_s cn52xxp1;
  1091. struct cvmx_pip_stat_ctl_s cn56xx;
  1092. struct cvmx_pip_stat_ctl_s cn56xxp1;
  1093. struct cvmx_pip_stat_ctl_s cn58xx;
  1094. struct cvmx_pip_stat_ctl_s cn58xxp1;
  1095. };
  1096. union cvmx_pip_stat_inb_errsx {
  1097. uint64_t u64;
  1098. struct cvmx_pip_stat_inb_errsx_s {
  1099. uint64_t reserved_16_63:48;
  1100. uint64_t errs:16;
  1101. } s;
  1102. struct cvmx_pip_stat_inb_errsx_s cn30xx;
  1103. struct cvmx_pip_stat_inb_errsx_s cn31xx;
  1104. struct cvmx_pip_stat_inb_errsx_s cn38xx;
  1105. struct cvmx_pip_stat_inb_errsx_s cn38xxp2;
  1106. struct cvmx_pip_stat_inb_errsx_s cn50xx;
  1107. struct cvmx_pip_stat_inb_errsx_s cn52xx;
  1108. struct cvmx_pip_stat_inb_errsx_s cn52xxp1;
  1109. struct cvmx_pip_stat_inb_errsx_s cn56xx;
  1110. struct cvmx_pip_stat_inb_errsx_s cn56xxp1;
  1111. struct cvmx_pip_stat_inb_errsx_s cn58xx;
  1112. struct cvmx_pip_stat_inb_errsx_s cn58xxp1;
  1113. };
  1114. union cvmx_pip_stat_inb_octsx {
  1115. uint64_t u64;
  1116. struct cvmx_pip_stat_inb_octsx_s {
  1117. uint64_t reserved_48_63:16;
  1118. uint64_t octs:48;
  1119. } s;
  1120. struct cvmx_pip_stat_inb_octsx_s cn30xx;
  1121. struct cvmx_pip_stat_inb_octsx_s cn31xx;
  1122. struct cvmx_pip_stat_inb_octsx_s cn38xx;
  1123. struct cvmx_pip_stat_inb_octsx_s cn38xxp2;
  1124. struct cvmx_pip_stat_inb_octsx_s cn50xx;
  1125. struct cvmx_pip_stat_inb_octsx_s cn52xx;
  1126. struct cvmx_pip_stat_inb_octsx_s cn52xxp1;
  1127. struct cvmx_pip_stat_inb_octsx_s cn56xx;
  1128. struct cvmx_pip_stat_inb_octsx_s cn56xxp1;
  1129. struct cvmx_pip_stat_inb_octsx_s cn58xx;
  1130. struct cvmx_pip_stat_inb_octsx_s cn58xxp1;
  1131. };
  1132. union cvmx_pip_stat_inb_pktsx {
  1133. uint64_t u64;
  1134. struct cvmx_pip_stat_inb_pktsx_s {
  1135. uint64_t reserved_32_63:32;
  1136. uint64_t pkts:32;
  1137. } s;
  1138. struct cvmx_pip_stat_inb_pktsx_s cn30xx;
  1139. struct cvmx_pip_stat_inb_pktsx_s cn31xx;
  1140. struct cvmx_pip_stat_inb_pktsx_s cn38xx;
  1141. struct cvmx_pip_stat_inb_pktsx_s cn38xxp2;
  1142. struct cvmx_pip_stat_inb_pktsx_s cn50xx;
  1143. struct cvmx_pip_stat_inb_pktsx_s cn52xx;
  1144. struct cvmx_pip_stat_inb_pktsx_s cn52xxp1;
  1145. struct cvmx_pip_stat_inb_pktsx_s cn56xx;
  1146. struct cvmx_pip_stat_inb_pktsx_s cn56xxp1;
  1147. struct cvmx_pip_stat_inb_pktsx_s cn58xx;
  1148. struct cvmx_pip_stat_inb_pktsx_s cn58xxp1;
  1149. };
  1150. union cvmx_pip_tag_incx {
  1151. uint64_t u64;
  1152. struct cvmx_pip_tag_incx_s {
  1153. uint64_t reserved_8_63:56;
  1154. uint64_t en:8;
  1155. } s;
  1156. struct cvmx_pip_tag_incx_s cn30xx;
  1157. struct cvmx_pip_tag_incx_s cn31xx;
  1158. struct cvmx_pip_tag_incx_s cn38xx;
  1159. struct cvmx_pip_tag_incx_s cn38xxp2;
  1160. struct cvmx_pip_tag_incx_s cn50xx;
  1161. struct cvmx_pip_tag_incx_s cn52xx;
  1162. struct cvmx_pip_tag_incx_s cn52xxp1;
  1163. struct cvmx_pip_tag_incx_s cn56xx;
  1164. struct cvmx_pip_tag_incx_s cn56xxp1;
  1165. struct cvmx_pip_tag_incx_s cn58xx;
  1166. struct cvmx_pip_tag_incx_s cn58xxp1;
  1167. };
  1168. union cvmx_pip_tag_mask {
  1169. uint64_t u64;
  1170. struct cvmx_pip_tag_mask_s {
  1171. uint64_t reserved_16_63:48;
  1172. uint64_t mask:16;
  1173. } s;
  1174. struct cvmx_pip_tag_mask_s cn30xx;
  1175. struct cvmx_pip_tag_mask_s cn31xx;
  1176. struct cvmx_pip_tag_mask_s cn38xx;
  1177. struct cvmx_pip_tag_mask_s cn38xxp2;
  1178. struct cvmx_pip_tag_mask_s cn50xx;
  1179. struct cvmx_pip_tag_mask_s cn52xx;
  1180. struct cvmx_pip_tag_mask_s cn52xxp1;
  1181. struct cvmx_pip_tag_mask_s cn56xx;
  1182. struct cvmx_pip_tag_mask_s cn56xxp1;
  1183. struct cvmx_pip_tag_mask_s cn58xx;
  1184. struct cvmx_pip_tag_mask_s cn58xxp1;
  1185. };
  1186. union cvmx_pip_tag_secret {
  1187. uint64_t u64;
  1188. struct cvmx_pip_tag_secret_s {
  1189. uint64_t reserved_32_63:32;
  1190. uint64_t dst:16;
  1191. uint64_t src:16;
  1192. } s;
  1193. struct cvmx_pip_tag_secret_s cn30xx;
  1194. struct cvmx_pip_tag_secret_s cn31xx;
  1195. struct cvmx_pip_tag_secret_s cn38xx;
  1196. struct cvmx_pip_tag_secret_s cn38xxp2;
  1197. struct cvmx_pip_tag_secret_s cn50xx;
  1198. struct cvmx_pip_tag_secret_s cn52xx;
  1199. struct cvmx_pip_tag_secret_s cn52xxp1;
  1200. struct cvmx_pip_tag_secret_s cn56xx;
  1201. struct cvmx_pip_tag_secret_s cn56xxp1;
  1202. struct cvmx_pip_tag_secret_s cn58xx;
  1203. struct cvmx_pip_tag_secret_s cn58xxp1;
  1204. };
  1205. union cvmx_pip_todo_entry {
  1206. uint64_t u64;
  1207. struct cvmx_pip_todo_entry_s {
  1208. uint64_t val:1;
  1209. uint64_t reserved_62_62:1;
  1210. uint64_t entry:62;
  1211. } s;
  1212. struct cvmx_pip_todo_entry_s cn30xx;
  1213. struct cvmx_pip_todo_entry_s cn31xx;
  1214. struct cvmx_pip_todo_entry_s cn38xx;
  1215. struct cvmx_pip_todo_entry_s cn38xxp2;
  1216. struct cvmx_pip_todo_entry_s cn50xx;
  1217. struct cvmx_pip_todo_entry_s cn52xx;
  1218. struct cvmx_pip_todo_entry_s cn52xxp1;
  1219. struct cvmx_pip_todo_entry_s cn56xx;
  1220. struct cvmx_pip_todo_entry_s cn56xxp1;
  1221. struct cvmx_pip_todo_entry_s cn58xx;
  1222. struct cvmx_pip_todo_entry_s cn58xxp1;
  1223. };
  1224. #endif