cvmx-ipd-defs.h 56 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011
  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-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. #ifndef __CVMX_IPD_DEFS_H__
  28. #define __CVMX_IPD_DEFS_H__
  29. #define CVMX_IPD_1ST_MBUFF_SKIP (CVMX_ADD_IO_SEG(0x00014F0000000000ull))
  30. #define CVMX_IPD_1st_NEXT_PTR_BACK (CVMX_ADD_IO_SEG(0x00014F0000000150ull))
  31. #define CVMX_IPD_2nd_NEXT_PTR_BACK (CVMX_ADD_IO_SEG(0x00014F0000000158ull))
  32. #define CVMX_IPD_BIST_STATUS (CVMX_ADD_IO_SEG(0x00014F00000007F8ull))
  33. #define CVMX_IPD_BPIDX_MBUF_TH(offset) (CVMX_ADD_IO_SEG(0x00014F0000002000ull) + ((offset) & 63) * 8)
  34. #define CVMX_IPD_BPID_BP_COUNTERX(offset) (CVMX_ADD_IO_SEG(0x00014F0000003000ull) + ((offset) & 63) * 8)
  35. #define CVMX_IPD_BP_PRT_RED_END (CVMX_ADD_IO_SEG(0x00014F0000000328ull))
  36. #define CVMX_IPD_CLK_COUNT (CVMX_ADD_IO_SEG(0x00014F0000000338ull))
  37. #define CVMX_IPD_CREDITS (CVMX_ADD_IO_SEG(0x00014F0000004410ull))
  38. #define CVMX_IPD_CTL_STATUS (CVMX_ADD_IO_SEG(0x00014F0000000018ull))
  39. #define CVMX_IPD_ECC_CTL (CVMX_ADD_IO_SEG(0x00014F0000004408ull))
  40. #define CVMX_IPD_FREE_PTR_FIFO_CTL (CVMX_ADD_IO_SEG(0x00014F0000000780ull))
  41. #define CVMX_IPD_FREE_PTR_VALUE (CVMX_ADD_IO_SEG(0x00014F0000000788ull))
  42. #define CVMX_IPD_HOLD_PTR_FIFO_CTL (CVMX_ADD_IO_SEG(0x00014F0000000790ull))
  43. #define CVMX_IPD_INT_ENB (CVMX_ADD_IO_SEG(0x00014F0000000160ull))
  44. #define CVMX_IPD_INT_SUM (CVMX_ADD_IO_SEG(0x00014F0000000168ull))
  45. #define CVMX_IPD_NEXT_PKT_PTR (CVMX_ADD_IO_SEG(0x00014F00000007A0ull))
  46. #define CVMX_IPD_NEXT_WQE_PTR (CVMX_ADD_IO_SEG(0x00014F00000007A8ull))
  47. #define CVMX_IPD_NOT_1ST_MBUFF_SKIP (CVMX_ADD_IO_SEG(0x00014F0000000008ull))
  48. #define CVMX_IPD_ON_BP_DROP_PKTX(block_id) (CVMX_ADD_IO_SEG(0x00014F0000004100ull))
  49. #define CVMX_IPD_PACKET_MBUFF_SIZE (CVMX_ADD_IO_SEG(0x00014F0000000010ull))
  50. #define CVMX_IPD_PKT_ERR (CVMX_ADD_IO_SEG(0x00014F00000003F0ull))
  51. #define CVMX_IPD_PKT_PTR_VALID (CVMX_ADD_IO_SEG(0x00014F0000000358ull))
  52. #define CVMX_IPD_PORTX_BP_PAGE_CNT(offset) (CVMX_ADD_IO_SEG(0x00014F0000000028ull) + ((offset) & 63) * 8)
  53. #define CVMX_IPD_PORTX_BP_PAGE_CNT2(offset) (CVMX_ADD_IO_SEG(0x00014F0000000368ull) + ((offset) & 63) * 8 - 8*36)
  54. #define CVMX_IPD_PORTX_BP_PAGE_CNT3(offset) (CVMX_ADD_IO_SEG(0x00014F00000003D0ull) + ((offset) & 63) * 8 - 8*40)
  55. #define CVMX_IPD_PORT_BP_COUNTERS2_PAIRX(offset) (CVMX_ADD_IO_SEG(0x00014F0000000388ull) + ((offset) & 63) * 8 - 8*36)
  56. #define CVMX_IPD_PORT_BP_COUNTERS3_PAIRX(offset) (CVMX_ADD_IO_SEG(0x00014F00000003B0ull) + ((offset) & 63) * 8 - 8*40)
  57. #define CVMX_IPD_PORT_BP_COUNTERS4_PAIRX(offset) (CVMX_ADD_IO_SEG(0x00014F0000000410ull) + ((offset) & 63) * 8 - 8*44)
  58. #define CVMX_IPD_PORT_BP_COUNTERS_PAIRX(offset) (CVMX_ADD_IO_SEG(0x00014F00000001B8ull) + ((offset) & 63) * 8)
  59. #define CVMX_IPD_PORT_PTR_FIFO_CTL (CVMX_ADD_IO_SEG(0x00014F0000000798ull))
  60. #define CVMX_IPD_PORT_QOS_INTX(offset) (CVMX_ADD_IO_SEG(0x00014F0000000808ull) + ((offset) & 7) * 8)
  61. #define CVMX_IPD_PORT_QOS_INT_ENBX(offset) (CVMX_ADD_IO_SEG(0x00014F0000000848ull) + ((offset) & 7) * 8)
  62. #define CVMX_IPD_PORT_QOS_X_CNT(offset) (CVMX_ADD_IO_SEG(0x00014F0000000888ull) + ((offset) & 511) * 8)
  63. #define CVMX_IPD_PORT_SOPX(block_id) (CVMX_ADD_IO_SEG(0x00014F0000004400ull))
  64. #define CVMX_IPD_PRC_HOLD_PTR_FIFO_CTL (CVMX_ADD_IO_SEG(0x00014F0000000348ull))
  65. #define CVMX_IPD_PRC_PORT_PTR_FIFO_CTL (CVMX_ADD_IO_SEG(0x00014F0000000350ull))
  66. #define CVMX_IPD_PTR_COUNT (CVMX_ADD_IO_SEG(0x00014F0000000320ull))
  67. #define CVMX_IPD_PWP_PTR_FIFO_CTL (CVMX_ADD_IO_SEG(0x00014F0000000340ull))
  68. #define CVMX_IPD_QOS0_RED_MARKS CVMX_IPD_QOSX_RED_MARKS(0)
  69. #define CVMX_IPD_QOS1_RED_MARKS CVMX_IPD_QOSX_RED_MARKS(1)
  70. #define CVMX_IPD_QOS2_RED_MARKS CVMX_IPD_QOSX_RED_MARKS(2)
  71. #define CVMX_IPD_QOS3_RED_MARKS CVMX_IPD_QOSX_RED_MARKS(3)
  72. #define CVMX_IPD_QOS4_RED_MARKS CVMX_IPD_QOSX_RED_MARKS(4)
  73. #define CVMX_IPD_QOS5_RED_MARKS CVMX_IPD_QOSX_RED_MARKS(5)
  74. #define CVMX_IPD_QOS6_RED_MARKS CVMX_IPD_QOSX_RED_MARKS(6)
  75. #define CVMX_IPD_QOS7_RED_MARKS CVMX_IPD_QOSX_RED_MARKS(7)
  76. #define CVMX_IPD_QOSX_RED_MARKS(offset) (CVMX_ADD_IO_SEG(0x00014F0000000178ull) + ((offset) & 7) * 8)
  77. #define CVMX_IPD_QUE0_FREE_PAGE_CNT (CVMX_ADD_IO_SEG(0x00014F0000000330ull))
  78. #define CVMX_IPD_RED_BPID_ENABLEX(block_id) (CVMX_ADD_IO_SEG(0x00014F0000004200ull))
  79. #define CVMX_IPD_RED_DELAY (CVMX_ADD_IO_SEG(0x00014F0000004300ull))
  80. #define CVMX_IPD_RED_PORT_ENABLE (CVMX_ADD_IO_SEG(0x00014F00000002D8ull))
  81. #define CVMX_IPD_RED_PORT_ENABLE2 (CVMX_ADD_IO_SEG(0x00014F00000003A8ull))
  82. #define CVMX_IPD_RED_QUE0_PARAM CVMX_IPD_RED_QUEX_PARAM(0)
  83. #define CVMX_IPD_RED_QUE1_PARAM CVMX_IPD_RED_QUEX_PARAM(1)
  84. #define CVMX_IPD_RED_QUE2_PARAM CVMX_IPD_RED_QUEX_PARAM(2)
  85. #define CVMX_IPD_RED_QUE3_PARAM CVMX_IPD_RED_QUEX_PARAM(3)
  86. #define CVMX_IPD_RED_QUE4_PARAM CVMX_IPD_RED_QUEX_PARAM(4)
  87. #define CVMX_IPD_RED_QUE5_PARAM CVMX_IPD_RED_QUEX_PARAM(5)
  88. #define CVMX_IPD_RED_QUE6_PARAM CVMX_IPD_RED_QUEX_PARAM(6)
  89. #define CVMX_IPD_RED_QUE7_PARAM CVMX_IPD_RED_QUEX_PARAM(7)
  90. #define CVMX_IPD_RED_QUEX_PARAM(offset) (CVMX_ADD_IO_SEG(0x00014F00000002E0ull) + ((offset) & 7) * 8)
  91. #define CVMX_IPD_REQ_WGT (CVMX_ADD_IO_SEG(0x00014F0000004418ull))
  92. #define CVMX_IPD_SUB_PORT_BP_PAGE_CNT (CVMX_ADD_IO_SEG(0x00014F0000000148ull))
  93. #define CVMX_IPD_SUB_PORT_FCS (CVMX_ADD_IO_SEG(0x00014F0000000170ull))
  94. #define CVMX_IPD_SUB_PORT_QOS_CNT (CVMX_ADD_IO_SEG(0x00014F0000000800ull))
  95. #define CVMX_IPD_WQE_FPA_QUEUE (CVMX_ADD_IO_SEG(0x00014F0000000020ull))
  96. #define CVMX_IPD_WQE_PTR_VALID (CVMX_ADD_IO_SEG(0x00014F0000000360ull))
  97. union cvmx_ipd_1st_mbuff_skip {
  98. uint64_t u64;
  99. struct cvmx_ipd_1st_mbuff_skip_s {
  100. #ifdef __BIG_ENDIAN_BITFIELD
  101. uint64_t reserved_6_63:58;
  102. uint64_t skip_sz:6;
  103. #else
  104. uint64_t skip_sz:6;
  105. uint64_t reserved_6_63:58;
  106. #endif
  107. } s;
  108. struct cvmx_ipd_1st_mbuff_skip_s cn30xx;
  109. struct cvmx_ipd_1st_mbuff_skip_s cn31xx;
  110. struct cvmx_ipd_1st_mbuff_skip_s cn38xx;
  111. struct cvmx_ipd_1st_mbuff_skip_s cn38xxp2;
  112. struct cvmx_ipd_1st_mbuff_skip_s cn50xx;
  113. struct cvmx_ipd_1st_mbuff_skip_s cn52xx;
  114. struct cvmx_ipd_1st_mbuff_skip_s cn52xxp1;
  115. struct cvmx_ipd_1st_mbuff_skip_s cn56xx;
  116. struct cvmx_ipd_1st_mbuff_skip_s cn56xxp1;
  117. struct cvmx_ipd_1st_mbuff_skip_s cn58xx;
  118. struct cvmx_ipd_1st_mbuff_skip_s cn58xxp1;
  119. struct cvmx_ipd_1st_mbuff_skip_s cn61xx;
  120. struct cvmx_ipd_1st_mbuff_skip_s cn63xx;
  121. struct cvmx_ipd_1st_mbuff_skip_s cn63xxp1;
  122. struct cvmx_ipd_1st_mbuff_skip_s cn66xx;
  123. struct cvmx_ipd_1st_mbuff_skip_s cn68xx;
  124. struct cvmx_ipd_1st_mbuff_skip_s cn68xxp1;
  125. struct cvmx_ipd_1st_mbuff_skip_s cnf71xx;
  126. };
  127. union cvmx_ipd_1st_next_ptr_back {
  128. uint64_t u64;
  129. struct cvmx_ipd_1st_next_ptr_back_s {
  130. #ifdef __BIG_ENDIAN_BITFIELD
  131. uint64_t reserved_4_63:60;
  132. uint64_t back:4;
  133. #else
  134. uint64_t back:4;
  135. uint64_t reserved_4_63:60;
  136. #endif
  137. } s;
  138. struct cvmx_ipd_1st_next_ptr_back_s cn30xx;
  139. struct cvmx_ipd_1st_next_ptr_back_s cn31xx;
  140. struct cvmx_ipd_1st_next_ptr_back_s cn38xx;
  141. struct cvmx_ipd_1st_next_ptr_back_s cn38xxp2;
  142. struct cvmx_ipd_1st_next_ptr_back_s cn50xx;
  143. struct cvmx_ipd_1st_next_ptr_back_s cn52xx;
  144. struct cvmx_ipd_1st_next_ptr_back_s cn52xxp1;
  145. struct cvmx_ipd_1st_next_ptr_back_s cn56xx;
  146. struct cvmx_ipd_1st_next_ptr_back_s cn56xxp1;
  147. struct cvmx_ipd_1st_next_ptr_back_s cn58xx;
  148. struct cvmx_ipd_1st_next_ptr_back_s cn58xxp1;
  149. struct cvmx_ipd_1st_next_ptr_back_s cn61xx;
  150. struct cvmx_ipd_1st_next_ptr_back_s cn63xx;
  151. struct cvmx_ipd_1st_next_ptr_back_s cn63xxp1;
  152. struct cvmx_ipd_1st_next_ptr_back_s cn66xx;
  153. struct cvmx_ipd_1st_next_ptr_back_s cn68xx;
  154. struct cvmx_ipd_1st_next_ptr_back_s cn68xxp1;
  155. struct cvmx_ipd_1st_next_ptr_back_s cnf71xx;
  156. };
  157. union cvmx_ipd_2nd_next_ptr_back {
  158. uint64_t u64;
  159. struct cvmx_ipd_2nd_next_ptr_back_s {
  160. #ifdef __BIG_ENDIAN_BITFIELD
  161. uint64_t reserved_4_63:60;
  162. uint64_t back:4;
  163. #else
  164. uint64_t back:4;
  165. uint64_t reserved_4_63:60;
  166. #endif
  167. } s;
  168. struct cvmx_ipd_2nd_next_ptr_back_s cn30xx;
  169. struct cvmx_ipd_2nd_next_ptr_back_s cn31xx;
  170. struct cvmx_ipd_2nd_next_ptr_back_s cn38xx;
  171. struct cvmx_ipd_2nd_next_ptr_back_s cn38xxp2;
  172. struct cvmx_ipd_2nd_next_ptr_back_s cn50xx;
  173. struct cvmx_ipd_2nd_next_ptr_back_s cn52xx;
  174. struct cvmx_ipd_2nd_next_ptr_back_s cn52xxp1;
  175. struct cvmx_ipd_2nd_next_ptr_back_s cn56xx;
  176. struct cvmx_ipd_2nd_next_ptr_back_s cn56xxp1;
  177. struct cvmx_ipd_2nd_next_ptr_back_s cn58xx;
  178. struct cvmx_ipd_2nd_next_ptr_back_s cn58xxp1;
  179. struct cvmx_ipd_2nd_next_ptr_back_s cn61xx;
  180. struct cvmx_ipd_2nd_next_ptr_back_s cn63xx;
  181. struct cvmx_ipd_2nd_next_ptr_back_s cn63xxp1;
  182. struct cvmx_ipd_2nd_next_ptr_back_s cn66xx;
  183. struct cvmx_ipd_2nd_next_ptr_back_s cn68xx;
  184. struct cvmx_ipd_2nd_next_ptr_back_s cn68xxp1;
  185. struct cvmx_ipd_2nd_next_ptr_back_s cnf71xx;
  186. };
  187. union cvmx_ipd_bist_status {
  188. uint64_t u64;
  189. struct cvmx_ipd_bist_status_s {
  190. #ifdef __BIG_ENDIAN_BITFIELD
  191. uint64_t reserved_23_63:41;
  192. uint64_t iiwo1:1;
  193. uint64_t iiwo0:1;
  194. uint64_t iio1:1;
  195. uint64_t iio0:1;
  196. uint64_t pbm4:1;
  197. uint64_t csr_mem:1;
  198. uint64_t csr_ncmd:1;
  199. uint64_t pwq_wqed:1;
  200. uint64_t pwq_wp1:1;
  201. uint64_t pwq_pow:1;
  202. uint64_t ipq_pbe1:1;
  203. uint64_t ipq_pbe0:1;
  204. uint64_t pbm3:1;
  205. uint64_t pbm2:1;
  206. uint64_t pbm1:1;
  207. uint64_t pbm0:1;
  208. uint64_t pbm_word:1;
  209. uint64_t pwq1:1;
  210. uint64_t pwq0:1;
  211. uint64_t prc_off:1;
  212. uint64_t ipd_old:1;
  213. uint64_t ipd_new:1;
  214. uint64_t pwp:1;
  215. #else
  216. uint64_t pwp:1;
  217. uint64_t ipd_new:1;
  218. uint64_t ipd_old:1;
  219. uint64_t prc_off:1;
  220. uint64_t pwq0:1;
  221. uint64_t pwq1:1;
  222. uint64_t pbm_word:1;
  223. uint64_t pbm0:1;
  224. uint64_t pbm1:1;
  225. uint64_t pbm2:1;
  226. uint64_t pbm3:1;
  227. uint64_t ipq_pbe0:1;
  228. uint64_t ipq_pbe1:1;
  229. uint64_t pwq_pow:1;
  230. uint64_t pwq_wp1:1;
  231. uint64_t pwq_wqed:1;
  232. uint64_t csr_ncmd:1;
  233. uint64_t csr_mem:1;
  234. uint64_t pbm4:1;
  235. uint64_t iio0:1;
  236. uint64_t iio1:1;
  237. uint64_t iiwo0:1;
  238. uint64_t iiwo1:1;
  239. uint64_t reserved_23_63:41;
  240. #endif
  241. } s;
  242. struct cvmx_ipd_bist_status_cn30xx {
  243. #ifdef __BIG_ENDIAN_BITFIELD
  244. uint64_t reserved_16_63:48;
  245. uint64_t pwq_wqed:1;
  246. uint64_t pwq_wp1:1;
  247. uint64_t pwq_pow:1;
  248. uint64_t ipq_pbe1:1;
  249. uint64_t ipq_pbe0:1;
  250. uint64_t pbm3:1;
  251. uint64_t pbm2:1;
  252. uint64_t pbm1:1;
  253. uint64_t pbm0:1;
  254. uint64_t pbm_word:1;
  255. uint64_t pwq1:1;
  256. uint64_t pwq0:1;
  257. uint64_t prc_off:1;
  258. uint64_t ipd_old:1;
  259. uint64_t ipd_new:1;
  260. uint64_t pwp:1;
  261. #else
  262. uint64_t pwp:1;
  263. uint64_t ipd_new:1;
  264. uint64_t ipd_old:1;
  265. uint64_t prc_off:1;
  266. uint64_t pwq0:1;
  267. uint64_t pwq1:1;
  268. uint64_t pbm_word:1;
  269. uint64_t pbm0:1;
  270. uint64_t pbm1:1;
  271. uint64_t pbm2:1;
  272. uint64_t pbm3:1;
  273. uint64_t ipq_pbe0:1;
  274. uint64_t ipq_pbe1:1;
  275. uint64_t pwq_pow:1;
  276. uint64_t pwq_wp1:1;
  277. uint64_t pwq_wqed:1;
  278. uint64_t reserved_16_63:48;
  279. #endif
  280. } cn30xx;
  281. struct cvmx_ipd_bist_status_cn30xx cn31xx;
  282. struct cvmx_ipd_bist_status_cn30xx cn38xx;
  283. struct cvmx_ipd_bist_status_cn30xx cn38xxp2;
  284. struct cvmx_ipd_bist_status_cn30xx cn50xx;
  285. struct cvmx_ipd_bist_status_cn52xx {
  286. #ifdef __BIG_ENDIAN_BITFIELD
  287. uint64_t reserved_18_63:46;
  288. uint64_t csr_mem:1;
  289. uint64_t csr_ncmd:1;
  290. uint64_t pwq_wqed:1;
  291. uint64_t pwq_wp1:1;
  292. uint64_t pwq_pow:1;
  293. uint64_t ipq_pbe1:1;
  294. uint64_t ipq_pbe0:1;
  295. uint64_t pbm3:1;
  296. uint64_t pbm2:1;
  297. uint64_t pbm1:1;
  298. uint64_t pbm0:1;
  299. uint64_t pbm_word:1;
  300. uint64_t pwq1:1;
  301. uint64_t pwq0:1;
  302. uint64_t prc_off:1;
  303. uint64_t ipd_old:1;
  304. uint64_t ipd_new:1;
  305. uint64_t pwp:1;
  306. #else
  307. uint64_t pwp:1;
  308. uint64_t ipd_new:1;
  309. uint64_t ipd_old:1;
  310. uint64_t prc_off:1;
  311. uint64_t pwq0:1;
  312. uint64_t pwq1:1;
  313. uint64_t pbm_word:1;
  314. uint64_t pbm0:1;
  315. uint64_t pbm1:1;
  316. uint64_t pbm2:1;
  317. uint64_t pbm3:1;
  318. uint64_t ipq_pbe0:1;
  319. uint64_t ipq_pbe1:1;
  320. uint64_t pwq_pow:1;
  321. uint64_t pwq_wp1:1;
  322. uint64_t pwq_wqed:1;
  323. uint64_t csr_ncmd:1;
  324. uint64_t csr_mem:1;
  325. uint64_t reserved_18_63:46;
  326. #endif
  327. } cn52xx;
  328. struct cvmx_ipd_bist_status_cn52xx cn52xxp1;
  329. struct cvmx_ipd_bist_status_cn52xx cn56xx;
  330. struct cvmx_ipd_bist_status_cn52xx cn56xxp1;
  331. struct cvmx_ipd_bist_status_cn30xx cn58xx;
  332. struct cvmx_ipd_bist_status_cn30xx cn58xxp1;
  333. struct cvmx_ipd_bist_status_cn52xx cn61xx;
  334. struct cvmx_ipd_bist_status_cn52xx cn63xx;
  335. struct cvmx_ipd_bist_status_cn52xx cn63xxp1;
  336. struct cvmx_ipd_bist_status_cn52xx cn66xx;
  337. struct cvmx_ipd_bist_status_s cn68xx;
  338. struct cvmx_ipd_bist_status_s cn68xxp1;
  339. struct cvmx_ipd_bist_status_cn52xx cnf71xx;
  340. };
  341. union cvmx_ipd_bp_prt_red_end {
  342. uint64_t u64;
  343. struct cvmx_ipd_bp_prt_red_end_s {
  344. #ifdef __BIG_ENDIAN_BITFIELD
  345. uint64_t reserved_48_63:16;
  346. uint64_t prt_enb:48;
  347. #else
  348. uint64_t prt_enb:48;
  349. uint64_t reserved_48_63:16;
  350. #endif
  351. } s;
  352. struct cvmx_ipd_bp_prt_red_end_cn30xx {
  353. #ifdef __BIG_ENDIAN_BITFIELD
  354. uint64_t reserved_36_63:28;
  355. uint64_t prt_enb:36;
  356. #else
  357. uint64_t prt_enb:36;
  358. uint64_t reserved_36_63:28;
  359. #endif
  360. } cn30xx;
  361. struct cvmx_ipd_bp_prt_red_end_cn30xx cn31xx;
  362. struct cvmx_ipd_bp_prt_red_end_cn30xx cn38xx;
  363. struct cvmx_ipd_bp_prt_red_end_cn30xx cn38xxp2;
  364. struct cvmx_ipd_bp_prt_red_end_cn30xx cn50xx;
  365. struct cvmx_ipd_bp_prt_red_end_cn52xx {
  366. #ifdef __BIG_ENDIAN_BITFIELD
  367. uint64_t reserved_40_63:24;
  368. uint64_t prt_enb:40;
  369. #else
  370. uint64_t prt_enb:40;
  371. uint64_t reserved_40_63:24;
  372. #endif
  373. } cn52xx;
  374. struct cvmx_ipd_bp_prt_red_end_cn52xx cn52xxp1;
  375. struct cvmx_ipd_bp_prt_red_end_cn52xx cn56xx;
  376. struct cvmx_ipd_bp_prt_red_end_cn52xx cn56xxp1;
  377. struct cvmx_ipd_bp_prt_red_end_cn30xx cn58xx;
  378. struct cvmx_ipd_bp_prt_red_end_cn30xx cn58xxp1;
  379. struct cvmx_ipd_bp_prt_red_end_s cn61xx;
  380. struct cvmx_ipd_bp_prt_red_end_cn63xx {
  381. #ifdef __BIG_ENDIAN_BITFIELD
  382. uint64_t reserved_44_63:20;
  383. uint64_t prt_enb:44;
  384. #else
  385. uint64_t prt_enb:44;
  386. uint64_t reserved_44_63:20;
  387. #endif
  388. } cn63xx;
  389. struct cvmx_ipd_bp_prt_red_end_cn63xx cn63xxp1;
  390. struct cvmx_ipd_bp_prt_red_end_s cn66xx;
  391. struct cvmx_ipd_bp_prt_red_end_s cnf71xx;
  392. };
  393. union cvmx_ipd_bpidx_mbuf_th {
  394. uint64_t u64;
  395. struct cvmx_ipd_bpidx_mbuf_th_s {
  396. #ifdef __BIG_ENDIAN_BITFIELD
  397. uint64_t reserved_18_63:46;
  398. uint64_t bp_enb:1;
  399. uint64_t page_cnt:17;
  400. #else
  401. uint64_t page_cnt:17;
  402. uint64_t bp_enb:1;
  403. uint64_t reserved_18_63:46;
  404. #endif
  405. } s;
  406. struct cvmx_ipd_bpidx_mbuf_th_s cn68xx;
  407. struct cvmx_ipd_bpidx_mbuf_th_s cn68xxp1;
  408. };
  409. union cvmx_ipd_bpid_bp_counterx {
  410. uint64_t u64;
  411. struct cvmx_ipd_bpid_bp_counterx_s {
  412. #ifdef __BIG_ENDIAN_BITFIELD
  413. uint64_t reserved_25_63:39;
  414. uint64_t cnt_val:25;
  415. #else
  416. uint64_t cnt_val:25;
  417. uint64_t reserved_25_63:39;
  418. #endif
  419. } s;
  420. struct cvmx_ipd_bpid_bp_counterx_s cn68xx;
  421. struct cvmx_ipd_bpid_bp_counterx_s cn68xxp1;
  422. };
  423. union cvmx_ipd_clk_count {
  424. uint64_t u64;
  425. struct cvmx_ipd_clk_count_s {
  426. #ifdef __BIG_ENDIAN_BITFIELD
  427. uint64_t clk_cnt:64;
  428. #else
  429. uint64_t clk_cnt:64;
  430. #endif
  431. } s;
  432. struct cvmx_ipd_clk_count_s cn30xx;
  433. struct cvmx_ipd_clk_count_s cn31xx;
  434. struct cvmx_ipd_clk_count_s cn38xx;
  435. struct cvmx_ipd_clk_count_s cn38xxp2;
  436. struct cvmx_ipd_clk_count_s cn50xx;
  437. struct cvmx_ipd_clk_count_s cn52xx;
  438. struct cvmx_ipd_clk_count_s cn52xxp1;
  439. struct cvmx_ipd_clk_count_s cn56xx;
  440. struct cvmx_ipd_clk_count_s cn56xxp1;
  441. struct cvmx_ipd_clk_count_s cn58xx;
  442. struct cvmx_ipd_clk_count_s cn58xxp1;
  443. struct cvmx_ipd_clk_count_s cn61xx;
  444. struct cvmx_ipd_clk_count_s cn63xx;
  445. struct cvmx_ipd_clk_count_s cn63xxp1;
  446. struct cvmx_ipd_clk_count_s cn66xx;
  447. struct cvmx_ipd_clk_count_s cn68xx;
  448. struct cvmx_ipd_clk_count_s cn68xxp1;
  449. struct cvmx_ipd_clk_count_s cnf71xx;
  450. };
  451. union cvmx_ipd_credits {
  452. uint64_t u64;
  453. struct cvmx_ipd_credits_s {
  454. #ifdef __BIG_ENDIAN_BITFIELD
  455. uint64_t reserved_16_63:48;
  456. uint64_t iob_wrc:8;
  457. uint64_t iob_wr:8;
  458. #else
  459. uint64_t iob_wr:8;
  460. uint64_t iob_wrc:8;
  461. uint64_t reserved_16_63:48;
  462. #endif
  463. } s;
  464. struct cvmx_ipd_credits_s cn68xx;
  465. struct cvmx_ipd_credits_s cn68xxp1;
  466. };
  467. union cvmx_ipd_ctl_status {
  468. uint64_t u64;
  469. struct cvmx_ipd_ctl_status_s {
  470. #ifdef __BIG_ENDIAN_BITFIELD
  471. uint64_t reserved_18_63:46;
  472. uint64_t use_sop:1;
  473. uint64_t rst_done:1;
  474. uint64_t clken:1;
  475. uint64_t no_wptr:1;
  476. uint64_t pq_apkt:1;
  477. uint64_t pq_nabuf:1;
  478. uint64_t ipd_full:1;
  479. uint64_t pkt_off:1;
  480. uint64_t len_m8:1;
  481. uint64_t reset:1;
  482. uint64_t addpkt:1;
  483. uint64_t naddbuf:1;
  484. uint64_t pkt_lend:1;
  485. uint64_t wqe_lend:1;
  486. uint64_t pbp_en:1;
  487. uint64_t opc_mode:2;
  488. uint64_t ipd_en:1;
  489. #else
  490. uint64_t ipd_en:1;
  491. uint64_t opc_mode:2;
  492. uint64_t pbp_en:1;
  493. uint64_t wqe_lend:1;
  494. uint64_t pkt_lend:1;
  495. uint64_t naddbuf:1;
  496. uint64_t addpkt:1;
  497. uint64_t reset:1;
  498. uint64_t len_m8:1;
  499. uint64_t pkt_off:1;
  500. uint64_t ipd_full:1;
  501. uint64_t pq_nabuf:1;
  502. uint64_t pq_apkt:1;
  503. uint64_t no_wptr:1;
  504. uint64_t clken:1;
  505. uint64_t rst_done:1;
  506. uint64_t use_sop:1;
  507. uint64_t reserved_18_63:46;
  508. #endif
  509. } s;
  510. struct cvmx_ipd_ctl_status_cn30xx {
  511. #ifdef __BIG_ENDIAN_BITFIELD
  512. uint64_t reserved_10_63:54;
  513. uint64_t len_m8:1;
  514. uint64_t reset:1;
  515. uint64_t addpkt:1;
  516. uint64_t naddbuf:1;
  517. uint64_t pkt_lend:1;
  518. uint64_t wqe_lend:1;
  519. uint64_t pbp_en:1;
  520. uint64_t opc_mode:2;
  521. uint64_t ipd_en:1;
  522. #else
  523. uint64_t ipd_en:1;
  524. uint64_t opc_mode:2;
  525. uint64_t pbp_en:1;
  526. uint64_t wqe_lend:1;
  527. uint64_t pkt_lend:1;
  528. uint64_t naddbuf:1;
  529. uint64_t addpkt:1;
  530. uint64_t reset:1;
  531. uint64_t len_m8:1;
  532. uint64_t reserved_10_63:54;
  533. #endif
  534. } cn30xx;
  535. struct cvmx_ipd_ctl_status_cn30xx cn31xx;
  536. struct cvmx_ipd_ctl_status_cn30xx cn38xx;
  537. struct cvmx_ipd_ctl_status_cn38xxp2 {
  538. #ifdef __BIG_ENDIAN_BITFIELD
  539. uint64_t reserved_9_63:55;
  540. uint64_t reset:1;
  541. uint64_t addpkt:1;
  542. uint64_t naddbuf:1;
  543. uint64_t pkt_lend:1;
  544. uint64_t wqe_lend:1;
  545. uint64_t pbp_en:1;
  546. uint64_t opc_mode:2;
  547. uint64_t ipd_en:1;
  548. #else
  549. uint64_t ipd_en:1;
  550. uint64_t opc_mode:2;
  551. uint64_t pbp_en:1;
  552. uint64_t wqe_lend:1;
  553. uint64_t pkt_lend:1;
  554. uint64_t naddbuf:1;
  555. uint64_t addpkt:1;
  556. uint64_t reset:1;
  557. uint64_t reserved_9_63:55;
  558. #endif
  559. } cn38xxp2;
  560. struct cvmx_ipd_ctl_status_cn50xx {
  561. #ifdef __BIG_ENDIAN_BITFIELD
  562. uint64_t reserved_15_63:49;
  563. uint64_t no_wptr:1;
  564. uint64_t pq_apkt:1;
  565. uint64_t pq_nabuf:1;
  566. uint64_t ipd_full:1;
  567. uint64_t pkt_off:1;
  568. uint64_t len_m8:1;
  569. uint64_t reset:1;
  570. uint64_t addpkt:1;
  571. uint64_t naddbuf:1;
  572. uint64_t pkt_lend:1;
  573. uint64_t wqe_lend:1;
  574. uint64_t pbp_en:1;
  575. uint64_t opc_mode:2;
  576. uint64_t ipd_en:1;
  577. #else
  578. uint64_t ipd_en:1;
  579. uint64_t opc_mode:2;
  580. uint64_t pbp_en:1;
  581. uint64_t wqe_lend:1;
  582. uint64_t pkt_lend:1;
  583. uint64_t naddbuf:1;
  584. uint64_t addpkt:1;
  585. uint64_t reset:1;
  586. uint64_t len_m8:1;
  587. uint64_t pkt_off:1;
  588. uint64_t ipd_full:1;
  589. uint64_t pq_nabuf:1;
  590. uint64_t pq_apkt:1;
  591. uint64_t no_wptr:1;
  592. uint64_t reserved_15_63:49;
  593. #endif
  594. } cn50xx;
  595. struct cvmx_ipd_ctl_status_cn50xx cn52xx;
  596. struct cvmx_ipd_ctl_status_cn50xx cn52xxp1;
  597. struct cvmx_ipd_ctl_status_cn50xx cn56xx;
  598. struct cvmx_ipd_ctl_status_cn50xx cn56xxp1;
  599. struct cvmx_ipd_ctl_status_cn58xx {
  600. #ifdef __BIG_ENDIAN_BITFIELD
  601. uint64_t reserved_12_63:52;
  602. uint64_t ipd_full:1;
  603. uint64_t pkt_off:1;
  604. uint64_t len_m8:1;
  605. uint64_t reset:1;
  606. uint64_t addpkt:1;
  607. uint64_t naddbuf:1;
  608. uint64_t pkt_lend:1;
  609. uint64_t wqe_lend:1;
  610. uint64_t pbp_en:1;
  611. uint64_t opc_mode:2;
  612. uint64_t ipd_en:1;
  613. #else
  614. uint64_t ipd_en:1;
  615. uint64_t opc_mode:2;
  616. uint64_t pbp_en:1;
  617. uint64_t wqe_lend:1;
  618. uint64_t pkt_lend:1;
  619. uint64_t naddbuf:1;
  620. uint64_t addpkt:1;
  621. uint64_t reset:1;
  622. uint64_t len_m8:1;
  623. uint64_t pkt_off:1;
  624. uint64_t ipd_full:1;
  625. uint64_t reserved_12_63:52;
  626. #endif
  627. } cn58xx;
  628. struct cvmx_ipd_ctl_status_cn58xx cn58xxp1;
  629. struct cvmx_ipd_ctl_status_s cn61xx;
  630. struct cvmx_ipd_ctl_status_s cn63xx;
  631. struct cvmx_ipd_ctl_status_cn63xxp1 {
  632. #ifdef __BIG_ENDIAN_BITFIELD
  633. uint64_t reserved_16_63:48;
  634. uint64_t clken:1;
  635. uint64_t no_wptr:1;
  636. uint64_t pq_apkt:1;
  637. uint64_t pq_nabuf:1;
  638. uint64_t ipd_full:1;
  639. uint64_t pkt_off:1;
  640. uint64_t len_m8:1;
  641. uint64_t reset:1;
  642. uint64_t addpkt:1;
  643. uint64_t naddbuf:1;
  644. uint64_t pkt_lend:1;
  645. uint64_t wqe_lend:1;
  646. uint64_t pbp_en:1;
  647. uint64_t opc_mode:2;
  648. uint64_t ipd_en:1;
  649. #else
  650. uint64_t ipd_en:1;
  651. uint64_t opc_mode:2;
  652. uint64_t pbp_en:1;
  653. uint64_t wqe_lend:1;
  654. uint64_t pkt_lend:1;
  655. uint64_t naddbuf:1;
  656. uint64_t addpkt:1;
  657. uint64_t reset:1;
  658. uint64_t len_m8:1;
  659. uint64_t pkt_off:1;
  660. uint64_t ipd_full:1;
  661. uint64_t pq_nabuf:1;
  662. uint64_t pq_apkt:1;
  663. uint64_t no_wptr:1;
  664. uint64_t clken:1;
  665. uint64_t reserved_16_63:48;
  666. #endif
  667. } cn63xxp1;
  668. struct cvmx_ipd_ctl_status_s cn66xx;
  669. struct cvmx_ipd_ctl_status_s cn68xx;
  670. struct cvmx_ipd_ctl_status_s cn68xxp1;
  671. struct cvmx_ipd_ctl_status_s cnf71xx;
  672. };
  673. union cvmx_ipd_ecc_ctl {
  674. uint64_t u64;
  675. struct cvmx_ipd_ecc_ctl_s {
  676. #ifdef __BIG_ENDIAN_BITFIELD
  677. uint64_t reserved_8_63:56;
  678. uint64_t pm3_syn:2;
  679. uint64_t pm2_syn:2;
  680. uint64_t pm1_syn:2;
  681. uint64_t pm0_syn:2;
  682. #else
  683. uint64_t pm0_syn:2;
  684. uint64_t pm1_syn:2;
  685. uint64_t pm2_syn:2;
  686. uint64_t pm3_syn:2;
  687. uint64_t reserved_8_63:56;
  688. #endif
  689. } s;
  690. struct cvmx_ipd_ecc_ctl_s cn68xx;
  691. struct cvmx_ipd_ecc_ctl_s cn68xxp1;
  692. };
  693. union cvmx_ipd_free_ptr_fifo_ctl {
  694. uint64_t u64;
  695. struct cvmx_ipd_free_ptr_fifo_ctl_s {
  696. #ifdef __BIG_ENDIAN_BITFIELD
  697. uint64_t reserved_32_63:32;
  698. uint64_t max_cnts:7;
  699. uint64_t wraddr:8;
  700. uint64_t praddr:8;
  701. uint64_t cena:1;
  702. uint64_t raddr:8;
  703. #else
  704. uint64_t raddr:8;
  705. uint64_t cena:1;
  706. uint64_t praddr:8;
  707. uint64_t wraddr:8;
  708. uint64_t max_cnts:7;
  709. uint64_t reserved_32_63:32;
  710. #endif
  711. } s;
  712. struct cvmx_ipd_free_ptr_fifo_ctl_s cn68xx;
  713. struct cvmx_ipd_free_ptr_fifo_ctl_s cn68xxp1;
  714. };
  715. union cvmx_ipd_free_ptr_value {
  716. uint64_t u64;
  717. struct cvmx_ipd_free_ptr_value_s {
  718. #ifdef __BIG_ENDIAN_BITFIELD
  719. uint64_t reserved_33_63:31;
  720. uint64_t ptr:33;
  721. #else
  722. uint64_t ptr:33;
  723. uint64_t reserved_33_63:31;
  724. #endif
  725. } s;
  726. struct cvmx_ipd_free_ptr_value_s cn68xx;
  727. struct cvmx_ipd_free_ptr_value_s cn68xxp1;
  728. };
  729. union cvmx_ipd_hold_ptr_fifo_ctl {
  730. uint64_t u64;
  731. struct cvmx_ipd_hold_ptr_fifo_ctl_s {
  732. #ifdef __BIG_ENDIAN_BITFIELD
  733. uint64_t reserved_43_63:21;
  734. uint64_t ptr:33;
  735. uint64_t max_pkt:3;
  736. uint64_t praddr:3;
  737. uint64_t cena:1;
  738. uint64_t raddr:3;
  739. #else
  740. uint64_t raddr:3;
  741. uint64_t cena:1;
  742. uint64_t praddr:3;
  743. uint64_t max_pkt:3;
  744. uint64_t ptr:33;
  745. uint64_t reserved_43_63:21;
  746. #endif
  747. } s;
  748. struct cvmx_ipd_hold_ptr_fifo_ctl_s cn68xx;
  749. struct cvmx_ipd_hold_ptr_fifo_ctl_s cn68xxp1;
  750. };
  751. union cvmx_ipd_int_enb {
  752. uint64_t u64;
  753. struct cvmx_ipd_int_enb_s {
  754. #ifdef __BIG_ENDIAN_BITFIELD
  755. uint64_t reserved_23_63:41;
  756. uint64_t pw3_dbe:1;
  757. uint64_t pw3_sbe:1;
  758. uint64_t pw2_dbe:1;
  759. uint64_t pw2_sbe:1;
  760. uint64_t pw1_dbe:1;
  761. uint64_t pw1_sbe:1;
  762. uint64_t pw0_dbe:1;
  763. uint64_t pw0_sbe:1;
  764. uint64_t dat:1;
  765. uint64_t eop:1;
  766. uint64_t sop:1;
  767. uint64_t pq_sub:1;
  768. uint64_t pq_add:1;
  769. uint64_t bc_ovr:1;
  770. uint64_t d_coll:1;
  771. uint64_t c_coll:1;
  772. uint64_t cc_ovr:1;
  773. uint64_t dc_ovr:1;
  774. uint64_t bp_sub:1;
  775. uint64_t prc_par3:1;
  776. uint64_t prc_par2:1;
  777. uint64_t prc_par1:1;
  778. uint64_t prc_par0:1;
  779. #else
  780. uint64_t prc_par0:1;
  781. uint64_t prc_par1:1;
  782. uint64_t prc_par2:1;
  783. uint64_t prc_par3:1;
  784. uint64_t bp_sub:1;
  785. uint64_t dc_ovr:1;
  786. uint64_t cc_ovr:1;
  787. uint64_t c_coll:1;
  788. uint64_t d_coll:1;
  789. uint64_t bc_ovr:1;
  790. uint64_t pq_add:1;
  791. uint64_t pq_sub:1;
  792. uint64_t sop:1;
  793. uint64_t eop:1;
  794. uint64_t dat:1;
  795. uint64_t pw0_sbe:1;
  796. uint64_t pw0_dbe:1;
  797. uint64_t pw1_sbe:1;
  798. uint64_t pw1_dbe:1;
  799. uint64_t pw2_sbe:1;
  800. uint64_t pw2_dbe:1;
  801. uint64_t pw3_sbe:1;
  802. uint64_t pw3_dbe:1;
  803. uint64_t reserved_23_63:41;
  804. #endif
  805. } s;
  806. struct cvmx_ipd_int_enb_cn30xx {
  807. #ifdef __BIG_ENDIAN_BITFIELD
  808. uint64_t reserved_5_63:59;
  809. uint64_t bp_sub:1;
  810. uint64_t prc_par3:1;
  811. uint64_t prc_par2:1;
  812. uint64_t prc_par1:1;
  813. uint64_t prc_par0:1;
  814. #else
  815. uint64_t prc_par0:1;
  816. uint64_t prc_par1:1;
  817. uint64_t prc_par2:1;
  818. uint64_t prc_par3:1;
  819. uint64_t bp_sub:1;
  820. uint64_t reserved_5_63:59;
  821. #endif
  822. } cn30xx;
  823. struct cvmx_ipd_int_enb_cn30xx cn31xx;
  824. struct cvmx_ipd_int_enb_cn38xx {
  825. #ifdef __BIG_ENDIAN_BITFIELD
  826. uint64_t reserved_10_63:54;
  827. uint64_t bc_ovr:1;
  828. uint64_t d_coll:1;
  829. uint64_t c_coll:1;
  830. uint64_t cc_ovr:1;
  831. uint64_t dc_ovr:1;
  832. uint64_t bp_sub:1;
  833. uint64_t prc_par3:1;
  834. uint64_t prc_par2:1;
  835. uint64_t prc_par1:1;
  836. uint64_t prc_par0:1;
  837. #else
  838. uint64_t prc_par0:1;
  839. uint64_t prc_par1:1;
  840. uint64_t prc_par2:1;
  841. uint64_t prc_par3:1;
  842. uint64_t bp_sub:1;
  843. uint64_t dc_ovr:1;
  844. uint64_t cc_ovr:1;
  845. uint64_t c_coll:1;
  846. uint64_t d_coll:1;
  847. uint64_t bc_ovr:1;
  848. uint64_t reserved_10_63:54;
  849. #endif
  850. } cn38xx;
  851. struct cvmx_ipd_int_enb_cn30xx cn38xxp2;
  852. struct cvmx_ipd_int_enb_cn38xx cn50xx;
  853. struct cvmx_ipd_int_enb_cn52xx {
  854. #ifdef __BIG_ENDIAN_BITFIELD
  855. uint64_t reserved_12_63:52;
  856. uint64_t pq_sub:1;
  857. uint64_t pq_add:1;
  858. uint64_t bc_ovr:1;
  859. uint64_t d_coll:1;
  860. uint64_t c_coll:1;
  861. uint64_t cc_ovr:1;
  862. uint64_t dc_ovr:1;
  863. uint64_t bp_sub:1;
  864. uint64_t prc_par3:1;
  865. uint64_t prc_par2:1;
  866. uint64_t prc_par1:1;
  867. uint64_t prc_par0:1;
  868. #else
  869. uint64_t prc_par0:1;
  870. uint64_t prc_par1:1;
  871. uint64_t prc_par2:1;
  872. uint64_t prc_par3:1;
  873. uint64_t bp_sub:1;
  874. uint64_t dc_ovr:1;
  875. uint64_t cc_ovr:1;
  876. uint64_t c_coll:1;
  877. uint64_t d_coll:1;
  878. uint64_t bc_ovr:1;
  879. uint64_t pq_add:1;
  880. uint64_t pq_sub:1;
  881. uint64_t reserved_12_63:52;
  882. #endif
  883. } cn52xx;
  884. struct cvmx_ipd_int_enb_cn52xx cn52xxp1;
  885. struct cvmx_ipd_int_enb_cn52xx cn56xx;
  886. struct cvmx_ipd_int_enb_cn52xx cn56xxp1;
  887. struct cvmx_ipd_int_enb_cn38xx cn58xx;
  888. struct cvmx_ipd_int_enb_cn38xx cn58xxp1;
  889. struct cvmx_ipd_int_enb_cn52xx cn61xx;
  890. struct cvmx_ipd_int_enb_cn52xx cn63xx;
  891. struct cvmx_ipd_int_enb_cn52xx cn63xxp1;
  892. struct cvmx_ipd_int_enb_cn52xx cn66xx;
  893. struct cvmx_ipd_int_enb_s cn68xx;
  894. struct cvmx_ipd_int_enb_s cn68xxp1;
  895. struct cvmx_ipd_int_enb_cn52xx cnf71xx;
  896. };
  897. union cvmx_ipd_int_sum {
  898. uint64_t u64;
  899. struct cvmx_ipd_int_sum_s {
  900. #ifdef __BIG_ENDIAN_BITFIELD
  901. uint64_t reserved_23_63:41;
  902. uint64_t pw3_dbe:1;
  903. uint64_t pw3_sbe:1;
  904. uint64_t pw2_dbe:1;
  905. uint64_t pw2_sbe:1;
  906. uint64_t pw1_dbe:1;
  907. uint64_t pw1_sbe:1;
  908. uint64_t pw0_dbe:1;
  909. uint64_t pw0_sbe:1;
  910. uint64_t dat:1;
  911. uint64_t eop:1;
  912. uint64_t sop:1;
  913. uint64_t pq_sub:1;
  914. uint64_t pq_add:1;
  915. uint64_t bc_ovr:1;
  916. uint64_t d_coll:1;
  917. uint64_t c_coll:1;
  918. uint64_t cc_ovr:1;
  919. uint64_t dc_ovr:1;
  920. uint64_t bp_sub:1;
  921. uint64_t prc_par3:1;
  922. uint64_t prc_par2:1;
  923. uint64_t prc_par1:1;
  924. uint64_t prc_par0:1;
  925. #else
  926. uint64_t prc_par0:1;
  927. uint64_t prc_par1:1;
  928. uint64_t prc_par2:1;
  929. uint64_t prc_par3:1;
  930. uint64_t bp_sub:1;
  931. uint64_t dc_ovr:1;
  932. uint64_t cc_ovr:1;
  933. uint64_t c_coll:1;
  934. uint64_t d_coll:1;
  935. uint64_t bc_ovr:1;
  936. uint64_t pq_add:1;
  937. uint64_t pq_sub:1;
  938. uint64_t sop:1;
  939. uint64_t eop:1;
  940. uint64_t dat:1;
  941. uint64_t pw0_sbe:1;
  942. uint64_t pw0_dbe:1;
  943. uint64_t pw1_sbe:1;
  944. uint64_t pw1_dbe:1;
  945. uint64_t pw2_sbe:1;
  946. uint64_t pw2_dbe:1;
  947. uint64_t pw3_sbe:1;
  948. uint64_t pw3_dbe:1;
  949. uint64_t reserved_23_63:41;
  950. #endif
  951. } s;
  952. struct cvmx_ipd_int_sum_cn30xx {
  953. #ifdef __BIG_ENDIAN_BITFIELD
  954. uint64_t reserved_5_63:59;
  955. uint64_t bp_sub:1;
  956. uint64_t prc_par3:1;
  957. uint64_t prc_par2:1;
  958. uint64_t prc_par1:1;
  959. uint64_t prc_par0:1;
  960. #else
  961. uint64_t prc_par0:1;
  962. uint64_t prc_par1:1;
  963. uint64_t prc_par2:1;
  964. uint64_t prc_par3:1;
  965. uint64_t bp_sub:1;
  966. uint64_t reserved_5_63:59;
  967. #endif
  968. } cn30xx;
  969. struct cvmx_ipd_int_sum_cn30xx cn31xx;
  970. struct cvmx_ipd_int_sum_cn38xx {
  971. #ifdef __BIG_ENDIAN_BITFIELD
  972. uint64_t reserved_10_63:54;
  973. uint64_t bc_ovr:1;
  974. uint64_t d_coll:1;
  975. uint64_t c_coll:1;
  976. uint64_t cc_ovr:1;
  977. uint64_t dc_ovr:1;
  978. uint64_t bp_sub:1;
  979. uint64_t prc_par3:1;
  980. uint64_t prc_par2:1;
  981. uint64_t prc_par1:1;
  982. uint64_t prc_par0:1;
  983. #else
  984. uint64_t prc_par0:1;
  985. uint64_t prc_par1:1;
  986. uint64_t prc_par2:1;
  987. uint64_t prc_par3:1;
  988. uint64_t bp_sub:1;
  989. uint64_t dc_ovr:1;
  990. uint64_t cc_ovr:1;
  991. uint64_t c_coll:1;
  992. uint64_t d_coll:1;
  993. uint64_t bc_ovr:1;
  994. uint64_t reserved_10_63:54;
  995. #endif
  996. } cn38xx;
  997. struct cvmx_ipd_int_sum_cn30xx cn38xxp2;
  998. struct cvmx_ipd_int_sum_cn38xx cn50xx;
  999. struct cvmx_ipd_int_sum_cn52xx {
  1000. #ifdef __BIG_ENDIAN_BITFIELD
  1001. uint64_t reserved_12_63:52;
  1002. uint64_t pq_sub:1;
  1003. uint64_t pq_add:1;
  1004. uint64_t bc_ovr:1;
  1005. uint64_t d_coll:1;
  1006. uint64_t c_coll:1;
  1007. uint64_t cc_ovr:1;
  1008. uint64_t dc_ovr:1;
  1009. uint64_t bp_sub:1;
  1010. uint64_t prc_par3:1;
  1011. uint64_t prc_par2:1;
  1012. uint64_t prc_par1:1;
  1013. uint64_t prc_par0:1;
  1014. #else
  1015. uint64_t prc_par0:1;
  1016. uint64_t prc_par1:1;
  1017. uint64_t prc_par2:1;
  1018. uint64_t prc_par3:1;
  1019. uint64_t bp_sub:1;
  1020. uint64_t dc_ovr:1;
  1021. uint64_t cc_ovr:1;
  1022. uint64_t c_coll:1;
  1023. uint64_t d_coll:1;
  1024. uint64_t bc_ovr:1;
  1025. uint64_t pq_add:1;
  1026. uint64_t pq_sub:1;
  1027. uint64_t reserved_12_63:52;
  1028. #endif
  1029. } cn52xx;
  1030. struct cvmx_ipd_int_sum_cn52xx cn52xxp1;
  1031. struct cvmx_ipd_int_sum_cn52xx cn56xx;
  1032. struct cvmx_ipd_int_sum_cn52xx cn56xxp1;
  1033. struct cvmx_ipd_int_sum_cn38xx cn58xx;
  1034. struct cvmx_ipd_int_sum_cn38xx cn58xxp1;
  1035. struct cvmx_ipd_int_sum_cn52xx cn61xx;
  1036. struct cvmx_ipd_int_sum_cn52xx cn63xx;
  1037. struct cvmx_ipd_int_sum_cn52xx cn63xxp1;
  1038. struct cvmx_ipd_int_sum_cn52xx cn66xx;
  1039. struct cvmx_ipd_int_sum_s cn68xx;
  1040. struct cvmx_ipd_int_sum_s cn68xxp1;
  1041. struct cvmx_ipd_int_sum_cn52xx cnf71xx;
  1042. };
  1043. union cvmx_ipd_next_pkt_ptr {
  1044. uint64_t u64;
  1045. struct cvmx_ipd_next_pkt_ptr_s {
  1046. #ifdef __BIG_ENDIAN_BITFIELD
  1047. uint64_t reserved_33_63:31;
  1048. uint64_t ptr:33;
  1049. #else
  1050. uint64_t ptr:33;
  1051. uint64_t reserved_33_63:31;
  1052. #endif
  1053. } s;
  1054. struct cvmx_ipd_next_pkt_ptr_s cn68xx;
  1055. struct cvmx_ipd_next_pkt_ptr_s cn68xxp1;
  1056. };
  1057. union cvmx_ipd_next_wqe_ptr {
  1058. uint64_t u64;
  1059. struct cvmx_ipd_next_wqe_ptr_s {
  1060. #ifdef __BIG_ENDIAN_BITFIELD
  1061. uint64_t reserved_33_63:31;
  1062. uint64_t ptr:33;
  1063. #else
  1064. uint64_t ptr:33;
  1065. uint64_t reserved_33_63:31;
  1066. #endif
  1067. } s;
  1068. struct cvmx_ipd_next_wqe_ptr_s cn68xx;
  1069. struct cvmx_ipd_next_wqe_ptr_s cn68xxp1;
  1070. };
  1071. union cvmx_ipd_not_1st_mbuff_skip {
  1072. uint64_t u64;
  1073. struct cvmx_ipd_not_1st_mbuff_skip_s {
  1074. #ifdef __BIG_ENDIAN_BITFIELD
  1075. uint64_t reserved_6_63:58;
  1076. uint64_t skip_sz:6;
  1077. #else
  1078. uint64_t skip_sz:6;
  1079. uint64_t reserved_6_63:58;
  1080. #endif
  1081. } s;
  1082. struct cvmx_ipd_not_1st_mbuff_skip_s cn30xx;
  1083. struct cvmx_ipd_not_1st_mbuff_skip_s cn31xx;
  1084. struct cvmx_ipd_not_1st_mbuff_skip_s cn38xx;
  1085. struct cvmx_ipd_not_1st_mbuff_skip_s cn38xxp2;
  1086. struct cvmx_ipd_not_1st_mbuff_skip_s cn50xx;
  1087. struct cvmx_ipd_not_1st_mbuff_skip_s cn52xx;
  1088. struct cvmx_ipd_not_1st_mbuff_skip_s cn52xxp1;
  1089. struct cvmx_ipd_not_1st_mbuff_skip_s cn56xx;
  1090. struct cvmx_ipd_not_1st_mbuff_skip_s cn56xxp1;
  1091. struct cvmx_ipd_not_1st_mbuff_skip_s cn58xx;
  1092. struct cvmx_ipd_not_1st_mbuff_skip_s cn58xxp1;
  1093. struct cvmx_ipd_not_1st_mbuff_skip_s cn61xx;
  1094. struct cvmx_ipd_not_1st_mbuff_skip_s cn63xx;
  1095. struct cvmx_ipd_not_1st_mbuff_skip_s cn63xxp1;
  1096. struct cvmx_ipd_not_1st_mbuff_skip_s cn66xx;
  1097. struct cvmx_ipd_not_1st_mbuff_skip_s cn68xx;
  1098. struct cvmx_ipd_not_1st_mbuff_skip_s cn68xxp1;
  1099. struct cvmx_ipd_not_1st_mbuff_skip_s cnf71xx;
  1100. };
  1101. union cvmx_ipd_on_bp_drop_pktx {
  1102. uint64_t u64;
  1103. struct cvmx_ipd_on_bp_drop_pktx_s {
  1104. #ifdef __BIG_ENDIAN_BITFIELD
  1105. uint64_t prt_enb:64;
  1106. #else
  1107. uint64_t prt_enb:64;
  1108. #endif
  1109. } s;
  1110. struct cvmx_ipd_on_bp_drop_pktx_s cn68xx;
  1111. struct cvmx_ipd_on_bp_drop_pktx_s cn68xxp1;
  1112. };
  1113. union cvmx_ipd_packet_mbuff_size {
  1114. uint64_t u64;
  1115. struct cvmx_ipd_packet_mbuff_size_s {
  1116. #ifdef __BIG_ENDIAN_BITFIELD
  1117. uint64_t reserved_12_63:52;
  1118. uint64_t mb_size:12;
  1119. #else
  1120. uint64_t mb_size:12;
  1121. uint64_t reserved_12_63:52;
  1122. #endif
  1123. } s;
  1124. struct cvmx_ipd_packet_mbuff_size_s cn30xx;
  1125. struct cvmx_ipd_packet_mbuff_size_s cn31xx;
  1126. struct cvmx_ipd_packet_mbuff_size_s cn38xx;
  1127. struct cvmx_ipd_packet_mbuff_size_s cn38xxp2;
  1128. struct cvmx_ipd_packet_mbuff_size_s cn50xx;
  1129. struct cvmx_ipd_packet_mbuff_size_s cn52xx;
  1130. struct cvmx_ipd_packet_mbuff_size_s cn52xxp1;
  1131. struct cvmx_ipd_packet_mbuff_size_s cn56xx;
  1132. struct cvmx_ipd_packet_mbuff_size_s cn56xxp1;
  1133. struct cvmx_ipd_packet_mbuff_size_s cn58xx;
  1134. struct cvmx_ipd_packet_mbuff_size_s cn58xxp1;
  1135. struct cvmx_ipd_packet_mbuff_size_s cn61xx;
  1136. struct cvmx_ipd_packet_mbuff_size_s cn63xx;
  1137. struct cvmx_ipd_packet_mbuff_size_s cn63xxp1;
  1138. struct cvmx_ipd_packet_mbuff_size_s cn66xx;
  1139. struct cvmx_ipd_packet_mbuff_size_s cn68xx;
  1140. struct cvmx_ipd_packet_mbuff_size_s cn68xxp1;
  1141. struct cvmx_ipd_packet_mbuff_size_s cnf71xx;
  1142. };
  1143. union cvmx_ipd_pkt_err {
  1144. uint64_t u64;
  1145. struct cvmx_ipd_pkt_err_s {
  1146. #ifdef __BIG_ENDIAN_BITFIELD
  1147. uint64_t reserved_6_63:58;
  1148. uint64_t reasm:6;
  1149. #else
  1150. uint64_t reasm:6;
  1151. uint64_t reserved_6_63:58;
  1152. #endif
  1153. } s;
  1154. struct cvmx_ipd_pkt_err_s cn68xx;
  1155. struct cvmx_ipd_pkt_err_s cn68xxp1;
  1156. };
  1157. union cvmx_ipd_pkt_ptr_valid {
  1158. uint64_t u64;
  1159. struct cvmx_ipd_pkt_ptr_valid_s {
  1160. #ifdef __BIG_ENDIAN_BITFIELD
  1161. uint64_t reserved_29_63:35;
  1162. uint64_t ptr:29;
  1163. #else
  1164. uint64_t ptr:29;
  1165. uint64_t reserved_29_63:35;
  1166. #endif
  1167. } s;
  1168. struct cvmx_ipd_pkt_ptr_valid_s cn30xx;
  1169. struct cvmx_ipd_pkt_ptr_valid_s cn31xx;
  1170. struct cvmx_ipd_pkt_ptr_valid_s cn38xx;
  1171. struct cvmx_ipd_pkt_ptr_valid_s cn50xx;
  1172. struct cvmx_ipd_pkt_ptr_valid_s cn52xx;
  1173. struct cvmx_ipd_pkt_ptr_valid_s cn52xxp1;
  1174. struct cvmx_ipd_pkt_ptr_valid_s cn56xx;
  1175. struct cvmx_ipd_pkt_ptr_valid_s cn56xxp1;
  1176. struct cvmx_ipd_pkt_ptr_valid_s cn58xx;
  1177. struct cvmx_ipd_pkt_ptr_valid_s cn58xxp1;
  1178. struct cvmx_ipd_pkt_ptr_valid_s cn61xx;
  1179. struct cvmx_ipd_pkt_ptr_valid_s cn63xx;
  1180. struct cvmx_ipd_pkt_ptr_valid_s cn63xxp1;
  1181. struct cvmx_ipd_pkt_ptr_valid_s cn66xx;
  1182. struct cvmx_ipd_pkt_ptr_valid_s cnf71xx;
  1183. };
  1184. union cvmx_ipd_portx_bp_page_cnt {
  1185. uint64_t u64;
  1186. struct cvmx_ipd_portx_bp_page_cnt_s {
  1187. #ifdef __BIG_ENDIAN_BITFIELD
  1188. uint64_t reserved_18_63:46;
  1189. uint64_t bp_enb:1;
  1190. uint64_t page_cnt:17;
  1191. #else
  1192. uint64_t page_cnt:17;
  1193. uint64_t bp_enb:1;
  1194. uint64_t reserved_18_63:46;
  1195. #endif
  1196. } s;
  1197. struct cvmx_ipd_portx_bp_page_cnt_s cn30xx;
  1198. struct cvmx_ipd_portx_bp_page_cnt_s cn31xx;
  1199. struct cvmx_ipd_portx_bp_page_cnt_s cn38xx;
  1200. struct cvmx_ipd_portx_bp_page_cnt_s cn38xxp2;
  1201. struct cvmx_ipd_portx_bp_page_cnt_s cn50xx;
  1202. struct cvmx_ipd_portx_bp_page_cnt_s cn52xx;
  1203. struct cvmx_ipd_portx_bp_page_cnt_s cn52xxp1;
  1204. struct cvmx_ipd_portx_bp_page_cnt_s cn56xx;
  1205. struct cvmx_ipd_portx_bp_page_cnt_s cn56xxp1;
  1206. struct cvmx_ipd_portx_bp_page_cnt_s cn58xx;
  1207. struct cvmx_ipd_portx_bp_page_cnt_s cn58xxp1;
  1208. struct cvmx_ipd_portx_bp_page_cnt_s cn61xx;
  1209. struct cvmx_ipd_portx_bp_page_cnt_s cn63xx;
  1210. struct cvmx_ipd_portx_bp_page_cnt_s cn63xxp1;
  1211. struct cvmx_ipd_portx_bp_page_cnt_s cn66xx;
  1212. struct cvmx_ipd_portx_bp_page_cnt_s cnf71xx;
  1213. };
  1214. union cvmx_ipd_portx_bp_page_cnt2 {
  1215. uint64_t u64;
  1216. struct cvmx_ipd_portx_bp_page_cnt2_s {
  1217. #ifdef __BIG_ENDIAN_BITFIELD
  1218. uint64_t reserved_18_63:46;
  1219. uint64_t bp_enb:1;
  1220. uint64_t page_cnt:17;
  1221. #else
  1222. uint64_t page_cnt:17;
  1223. uint64_t bp_enb:1;
  1224. uint64_t reserved_18_63:46;
  1225. #endif
  1226. } s;
  1227. struct cvmx_ipd_portx_bp_page_cnt2_s cn52xx;
  1228. struct cvmx_ipd_portx_bp_page_cnt2_s cn52xxp1;
  1229. struct cvmx_ipd_portx_bp_page_cnt2_s cn56xx;
  1230. struct cvmx_ipd_portx_bp_page_cnt2_s cn56xxp1;
  1231. struct cvmx_ipd_portx_bp_page_cnt2_s cn61xx;
  1232. struct cvmx_ipd_portx_bp_page_cnt2_s cn63xx;
  1233. struct cvmx_ipd_portx_bp_page_cnt2_s cn63xxp1;
  1234. struct cvmx_ipd_portx_bp_page_cnt2_s cn66xx;
  1235. struct cvmx_ipd_portx_bp_page_cnt2_s cnf71xx;
  1236. };
  1237. union cvmx_ipd_portx_bp_page_cnt3 {
  1238. uint64_t u64;
  1239. struct cvmx_ipd_portx_bp_page_cnt3_s {
  1240. #ifdef __BIG_ENDIAN_BITFIELD
  1241. uint64_t reserved_18_63:46;
  1242. uint64_t bp_enb:1;
  1243. uint64_t page_cnt:17;
  1244. #else
  1245. uint64_t page_cnt:17;
  1246. uint64_t bp_enb:1;
  1247. uint64_t reserved_18_63:46;
  1248. #endif
  1249. } s;
  1250. struct cvmx_ipd_portx_bp_page_cnt3_s cn61xx;
  1251. struct cvmx_ipd_portx_bp_page_cnt3_s cn63xx;
  1252. struct cvmx_ipd_portx_bp_page_cnt3_s cn63xxp1;
  1253. struct cvmx_ipd_portx_bp_page_cnt3_s cn66xx;
  1254. struct cvmx_ipd_portx_bp_page_cnt3_s cnf71xx;
  1255. };
  1256. union cvmx_ipd_port_bp_counters2_pairx {
  1257. uint64_t u64;
  1258. struct cvmx_ipd_port_bp_counters2_pairx_s {
  1259. #ifdef __BIG_ENDIAN_BITFIELD
  1260. uint64_t reserved_25_63:39;
  1261. uint64_t cnt_val:25;
  1262. #else
  1263. uint64_t cnt_val:25;
  1264. uint64_t reserved_25_63:39;
  1265. #endif
  1266. } s;
  1267. struct cvmx_ipd_port_bp_counters2_pairx_s cn52xx;
  1268. struct cvmx_ipd_port_bp_counters2_pairx_s cn52xxp1;
  1269. struct cvmx_ipd_port_bp_counters2_pairx_s cn56xx;
  1270. struct cvmx_ipd_port_bp_counters2_pairx_s cn56xxp1;
  1271. struct cvmx_ipd_port_bp_counters2_pairx_s cn61xx;
  1272. struct cvmx_ipd_port_bp_counters2_pairx_s cn63xx;
  1273. struct cvmx_ipd_port_bp_counters2_pairx_s cn63xxp1;
  1274. struct cvmx_ipd_port_bp_counters2_pairx_s cn66xx;
  1275. struct cvmx_ipd_port_bp_counters2_pairx_s cnf71xx;
  1276. };
  1277. union cvmx_ipd_port_bp_counters3_pairx {
  1278. uint64_t u64;
  1279. struct cvmx_ipd_port_bp_counters3_pairx_s {
  1280. #ifdef __BIG_ENDIAN_BITFIELD
  1281. uint64_t reserved_25_63:39;
  1282. uint64_t cnt_val:25;
  1283. #else
  1284. uint64_t cnt_val:25;
  1285. uint64_t reserved_25_63:39;
  1286. #endif
  1287. } s;
  1288. struct cvmx_ipd_port_bp_counters3_pairx_s cn61xx;
  1289. struct cvmx_ipd_port_bp_counters3_pairx_s cn63xx;
  1290. struct cvmx_ipd_port_bp_counters3_pairx_s cn63xxp1;
  1291. struct cvmx_ipd_port_bp_counters3_pairx_s cn66xx;
  1292. struct cvmx_ipd_port_bp_counters3_pairx_s cnf71xx;
  1293. };
  1294. union cvmx_ipd_port_bp_counters4_pairx {
  1295. uint64_t u64;
  1296. struct cvmx_ipd_port_bp_counters4_pairx_s {
  1297. #ifdef __BIG_ENDIAN_BITFIELD
  1298. uint64_t reserved_25_63:39;
  1299. uint64_t cnt_val:25;
  1300. #else
  1301. uint64_t cnt_val:25;
  1302. uint64_t reserved_25_63:39;
  1303. #endif
  1304. } s;
  1305. struct cvmx_ipd_port_bp_counters4_pairx_s cn61xx;
  1306. struct cvmx_ipd_port_bp_counters4_pairx_s cn66xx;
  1307. struct cvmx_ipd_port_bp_counters4_pairx_s cnf71xx;
  1308. };
  1309. union cvmx_ipd_port_bp_counters_pairx {
  1310. uint64_t u64;
  1311. struct cvmx_ipd_port_bp_counters_pairx_s {
  1312. #ifdef __BIG_ENDIAN_BITFIELD
  1313. uint64_t reserved_25_63:39;
  1314. uint64_t cnt_val:25;
  1315. #else
  1316. uint64_t cnt_val:25;
  1317. uint64_t reserved_25_63:39;
  1318. #endif
  1319. } s;
  1320. struct cvmx_ipd_port_bp_counters_pairx_s cn30xx;
  1321. struct cvmx_ipd_port_bp_counters_pairx_s cn31xx;
  1322. struct cvmx_ipd_port_bp_counters_pairx_s cn38xx;
  1323. struct cvmx_ipd_port_bp_counters_pairx_s cn38xxp2;
  1324. struct cvmx_ipd_port_bp_counters_pairx_s cn50xx;
  1325. struct cvmx_ipd_port_bp_counters_pairx_s cn52xx;
  1326. struct cvmx_ipd_port_bp_counters_pairx_s cn52xxp1;
  1327. struct cvmx_ipd_port_bp_counters_pairx_s cn56xx;
  1328. struct cvmx_ipd_port_bp_counters_pairx_s cn56xxp1;
  1329. struct cvmx_ipd_port_bp_counters_pairx_s cn58xx;
  1330. struct cvmx_ipd_port_bp_counters_pairx_s cn58xxp1;
  1331. struct cvmx_ipd_port_bp_counters_pairx_s cn61xx;
  1332. struct cvmx_ipd_port_bp_counters_pairx_s cn63xx;
  1333. struct cvmx_ipd_port_bp_counters_pairx_s cn63xxp1;
  1334. struct cvmx_ipd_port_bp_counters_pairx_s cn66xx;
  1335. struct cvmx_ipd_port_bp_counters_pairx_s cnf71xx;
  1336. };
  1337. union cvmx_ipd_port_ptr_fifo_ctl {
  1338. uint64_t u64;
  1339. struct cvmx_ipd_port_ptr_fifo_ctl_s {
  1340. #ifdef __BIG_ENDIAN_BITFIELD
  1341. uint64_t reserved_48_63:16;
  1342. uint64_t ptr:33;
  1343. uint64_t max_pkt:7;
  1344. uint64_t cena:1;
  1345. uint64_t raddr:7;
  1346. #else
  1347. uint64_t raddr:7;
  1348. uint64_t cena:1;
  1349. uint64_t max_pkt:7;
  1350. uint64_t ptr:33;
  1351. uint64_t reserved_48_63:16;
  1352. #endif
  1353. } s;
  1354. struct cvmx_ipd_port_ptr_fifo_ctl_s cn68xx;
  1355. struct cvmx_ipd_port_ptr_fifo_ctl_s cn68xxp1;
  1356. };
  1357. union cvmx_ipd_port_qos_x_cnt {
  1358. uint64_t u64;
  1359. struct cvmx_ipd_port_qos_x_cnt_s {
  1360. #ifdef __BIG_ENDIAN_BITFIELD
  1361. uint64_t wmark:32;
  1362. uint64_t cnt:32;
  1363. #else
  1364. uint64_t cnt:32;
  1365. uint64_t wmark:32;
  1366. #endif
  1367. } s;
  1368. struct cvmx_ipd_port_qos_x_cnt_s cn52xx;
  1369. struct cvmx_ipd_port_qos_x_cnt_s cn52xxp1;
  1370. struct cvmx_ipd_port_qos_x_cnt_s cn56xx;
  1371. struct cvmx_ipd_port_qos_x_cnt_s cn56xxp1;
  1372. struct cvmx_ipd_port_qos_x_cnt_s cn61xx;
  1373. struct cvmx_ipd_port_qos_x_cnt_s cn63xx;
  1374. struct cvmx_ipd_port_qos_x_cnt_s cn63xxp1;
  1375. struct cvmx_ipd_port_qos_x_cnt_s cn66xx;
  1376. struct cvmx_ipd_port_qos_x_cnt_s cn68xx;
  1377. struct cvmx_ipd_port_qos_x_cnt_s cn68xxp1;
  1378. struct cvmx_ipd_port_qos_x_cnt_s cnf71xx;
  1379. };
  1380. union cvmx_ipd_port_qos_intx {
  1381. uint64_t u64;
  1382. struct cvmx_ipd_port_qos_intx_s {
  1383. #ifdef __BIG_ENDIAN_BITFIELD
  1384. uint64_t intr:64;
  1385. #else
  1386. uint64_t intr:64;
  1387. #endif
  1388. } s;
  1389. struct cvmx_ipd_port_qos_intx_s cn52xx;
  1390. struct cvmx_ipd_port_qos_intx_s cn52xxp1;
  1391. struct cvmx_ipd_port_qos_intx_s cn56xx;
  1392. struct cvmx_ipd_port_qos_intx_s cn56xxp1;
  1393. struct cvmx_ipd_port_qos_intx_s cn61xx;
  1394. struct cvmx_ipd_port_qos_intx_s cn63xx;
  1395. struct cvmx_ipd_port_qos_intx_s cn63xxp1;
  1396. struct cvmx_ipd_port_qos_intx_s cn66xx;
  1397. struct cvmx_ipd_port_qos_intx_s cn68xx;
  1398. struct cvmx_ipd_port_qos_intx_s cn68xxp1;
  1399. struct cvmx_ipd_port_qos_intx_s cnf71xx;
  1400. };
  1401. union cvmx_ipd_port_qos_int_enbx {
  1402. uint64_t u64;
  1403. struct cvmx_ipd_port_qos_int_enbx_s {
  1404. #ifdef __BIG_ENDIAN_BITFIELD
  1405. uint64_t enb:64;
  1406. #else
  1407. uint64_t enb:64;
  1408. #endif
  1409. } s;
  1410. struct cvmx_ipd_port_qos_int_enbx_s cn52xx;
  1411. struct cvmx_ipd_port_qos_int_enbx_s cn52xxp1;
  1412. struct cvmx_ipd_port_qos_int_enbx_s cn56xx;
  1413. struct cvmx_ipd_port_qos_int_enbx_s cn56xxp1;
  1414. struct cvmx_ipd_port_qos_int_enbx_s cn61xx;
  1415. struct cvmx_ipd_port_qos_int_enbx_s cn63xx;
  1416. struct cvmx_ipd_port_qos_int_enbx_s cn63xxp1;
  1417. struct cvmx_ipd_port_qos_int_enbx_s cn66xx;
  1418. struct cvmx_ipd_port_qos_int_enbx_s cn68xx;
  1419. struct cvmx_ipd_port_qos_int_enbx_s cn68xxp1;
  1420. struct cvmx_ipd_port_qos_int_enbx_s cnf71xx;
  1421. };
  1422. union cvmx_ipd_port_sopx {
  1423. uint64_t u64;
  1424. struct cvmx_ipd_port_sopx_s {
  1425. #ifdef __BIG_ENDIAN_BITFIELD
  1426. uint64_t sop:64;
  1427. #else
  1428. uint64_t sop:64;
  1429. #endif
  1430. } s;
  1431. struct cvmx_ipd_port_sopx_s cn68xx;
  1432. struct cvmx_ipd_port_sopx_s cn68xxp1;
  1433. };
  1434. union cvmx_ipd_prc_hold_ptr_fifo_ctl {
  1435. uint64_t u64;
  1436. struct cvmx_ipd_prc_hold_ptr_fifo_ctl_s {
  1437. #ifdef __BIG_ENDIAN_BITFIELD
  1438. uint64_t reserved_39_63:25;
  1439. uint64_t max_pkt:3;
  1440. uint64_t praddr:3;
  1441. uint64_t ptr:29;
  1442. uint64_t cena:1;
  1443. uint64_t raddr:3;
  1444. #else
  1445. uint64_t raddr:3;
  1446. uint64_t cena:1;
  1447. uint64_t ptr:29;
  1448. uint64_t praddr:3;
  1449. uint64_t max_pkt:3;
  1450. uint64_t reserved_39_63:25;
  1451. #endif
  1452. } s;
  1453. struct cvmx_ipd_prc_hold_ptr_fifo_ctl_s cn30xx;
  1454. struct cvmx_ipd_prc_hold_ptr_fifo_ctl_s cn31xx;
  1455. struct cvmx_ipd_prc_hold_ptr_fifo_ctl_s cn38xx;
  1456. struct cvmx_ipd_prc_hold_ptr_fifo_ctl_s cn50xx;
  1457. struct cvmx_ipd_prc_hold_ptr_fifo_ctl_s cn52xx;
  1458. struct cvmx_ipd_prc_hold_ptr_fifo_ctl_s cn52xxp1;
  1459. struct cvmx_ipd_prc_hold_ptr_fifo_ctl_s cn56xx;
  1460. struct cvmx_ipd_prc_hold_ptr_fifo_ctl_s cn56xxp1;
  1461. struct cvmx_ipd_prc_hold_ptr_fifo_ctl_s cn58xx;
  1462. struct cvmx_ipd_prc_hold_ptr_fifo_ctl_s cn58xxp1;
  1463. struct cvmx_ipd_prc_hold_ptr_fifo_ctl_s cn61xx;
  1464. struct cvmx_ipd_prc_hold_ptr_fifo_ctl_s cn63xx;
  1465. struct cvmx_ipd_prc_hold_ptr_fifo_ctl_s cn63xxp1;
  1466. struct cvmx_ipd_prc_hold_ptr_fifo_ctl_s cn66xx;
  1467. struct cvmx_ipd_prc_hold_ptr_fifo_ctl_s cnf71xx;
  1468. };
  1469. union cvmx_ipd_prc_port_ptr_fifo_ctl {
  1470. uint64_t u64;
  1471. struct cvmx_ipd_prc_port_ptr_fifo_ctl_s {
  1472. #ifdef __BIG_ENDIAN_BITFIELD
  1473. uint64_t reserved_44_63:20;
  1474. uint64_t max_pkt:7;
  1475. uint64_t ptr:29;
  1476. uint64_t cena:1;
  1477. uint64_t raddr:7;
  1478. #else
  1479. uint64_t raddr:7;
  1480. uint64_t cena:1;
  1481. uint64_t ptr:29;
  1482. uint64_t max_pkt:7;
  1483. uint64_t reserved_44_63:20;
  1484. #endif
  1485. } s;
  1486. struct cvmx_ipd_prc_port_ptr_fifo_ctl_s cn30xx;
  1487. struct cvmx_ipd_prc_port_ptr_fifo_ctl_s cn31xx;
  1488. struct cvmx_ipd_prc_port_ptr_fifo_ctl_s cn38xx;
  1489. struct cvmx_ipd_prc_port_ptr_fifo_ctl_s cn50xx;
  1490. struct cvmx_ipd_prc_port_ptr_fifo_ctl_s cn52xx;
  1491. struct cvmx_ipd_prc_port_ptr_fifo_ctl_s cn52xxp1;
  1492. struct cvmx_ipd_prc_port_ptr_fifo_ctl_s cn56xx;
  1493. struct cvmx_ipd_prc_port_ptr_fifo_ctl_s cn56xxp1;
  1494. struct cvmx_ipd_prc_port_ptr_fifo_ctl_s cn58xx;
  1495. struct cvmx_ipd_prc_port_ptr_fifo_ctl_s cn58xxp1;
  1496. struct cvmx_ipd_prc_port_ptr_fifo_ctl_s cn61xx;
  1497. struct cvmx_ipd_prc_port_ptr_fifo_ctl_s cn63xx;
  1498. struct cvmx_ipd_prc_port_ptr_fifo_ctl_s cn63xxp1;
  1499. struct cvmx_ipd_prc_port_ptr_fifo_ctl_s cn66xx;
  1500. struct cvmx_ipd_prc_port_ptr_fifo_ctl_s cnf71xx;
  1501. };
  1502. union cvmx_ipd_ptr_count {
  1503. uint64_t u64;
  1504. struct cvmx_ipd_ptr_count_s {
  1505. #ifdef __BIG_ENDIAN_BITFIELD
  1506. uint64_t reserved_19_63:45;
  1507. uint64_t pktv_cnt:1;
  1508. uint64_t wqev_cnt:1;
  1509. uint64_t pfif_cnt:3;
  1510. uint64_t pkt_pcnt:7;
  1511. uint64_t wqe_pcnt:7;
  1512. #else
  1513. uint64_t wqe_pcnt:7;
  1514. uint64_t pkt_pcnt:7;
  1515. uint64_t pfif_cnt:3;
  1516. uint64_t wqev_cnt:1;
  1517. uint64_t pktv_cnt:1;
  1518. uint64_t reserved_19_63:45;
  1519. #endif
  1520. } s;
  1521. struct cvmx_ipd_ptr_count_s cn30xx;
  1522. struct cvmx_ipd_ptr_count_s cn31xx;
  1523. struct cvmx_ipd_ptr_count_s cn38xx;
  1524. struct cvmx_ipd_ptr_count_s cn38xxp2;
  1525. struct cvmx_ipd_ptr_count_s cn50xx;
  1526. struct cvmx_ipd_ptr_count_s cn52xx;
  1527. struct cvmx_ipd_ptr_count_s cn52xxp1;
  1528. struct cvmx_ipd_ptr_count_s cn56xx;
  1529. struct cvmx_ipd_ptr_count_s cn56xxp1;
  1530. struct cvmx_ipd_ptr_count_s cn58xx;
  1531. struct cvmx_ipd_ptr_count_s cn58xxp1;
  1532. struct cvmx_ipd_ptr_count_s cn61xx;
  1533. struct cvmx_ipd_ptr_count_s cn63xx;
  1534. struct cvmx_ipd_ptr_count_s cn63xxp1;
  1535. struct cvmx_ipd_ptr_count_s cn66xx;
  1536. struct cvmx_ipd_ptr_count_s cn68xx;
  1537. struct cvmx_ipd_ptr_count_s cn68xxp1;
  1538. struct cvmx_ipd_ptr_count_s cnf71xx;
  1539. };
  1540. union cvmx_ipd_pwp_ptr_fifo_ctl {
  1541. uint64_t u64;
  1542. struct cvmx_ipd_pwp_ptr_fifo_ctl_s {
  1543. #ifdef __BIG_ENDIAN_BITFIELD
  1544. uint64_t reserved_61_63:3;
  1545. uint64_t max_cnts:7;
  1546. uint64_t wraddr:8;
  1547. uint64_t praddr:8;
  1548. uint64_t ptr:29;
  1549. uint64_t cena:1;
  1550. uint64_t raddr:8;
  1551. #else
  1552. uint64_t raddr:8;
  1553. uint64_t cena:1;
  1554. uint64_t ptr:29;
  1555. uint64_t praddr:8;
  1556. uint64_t wraddr:8;
  1557. uint64_t max_cnts:7;
  1558. uint64_t reserved_61_63:3;
  1559. #endif
  1560. } s;
  1561. struct cvmx_ipd_pwp_ptr_fifo_ctl_s cn30xx;
  1562. struct cvmx_ipd_pwp_ptr_fifo_ctl_s cn31xx;
  1563. struct cvmx_ipd_pwp_ptr_fifo_ctl_s cn38xx;
  1564. struct cvmx_ipd_pwp_ptr_fifo_ctl_s cn50xx;
  1565. struct cvmx_ipd_pwp_ptr_fifo_ctl_s cn52xx;
  1566. struct cvmx_ipd_pwp_ptr_fifo_ctl_s cn52xxp1;
  1567. struct cvmx_ipd_pwp_ptr_fifo_ctl_s cn56xx;
  1568. struct cvmx_ipd_pwp_ptr_fifo_ctl_s cn56xxp1;
  1569. struct cvmx_ipd_pwp_ptr_fifo_ctl_s cn58xx;
  1570. struct cvmx_ipd_pwp_ptr_fifo_ctl_s cn58xxp1;
  1571. struct cvmx_ipd_pwp_ptr_fifo_ctl_s cn61xx;
  1572. struct cvmx_ipd_pwp_ptr_fifo_ctl_s cn63xx;
  1573. struct cvmx_ipd_pwp_ptr_fifo_ctl_s cn63xxp1;
  1574. struct cvmx_ipd_pwp_ptr_fifo_ctl_s cn66xx;
  1575. struct cvmx_ipd_pwp_ptr_fifo_ctl_s cnf71xx;
  1576. };
  1577. union cvmx_ipd_qosx_red_marks {
  1578. uint64_t u64;
  1579. struct cvmx_ipd_qosx_red_marks_s {
  1580. #ifdef __BIG_ENDIAN_BITFIELD
  1581. uint64_t drop:32;
  1582. uint64_t pass:32;
  1583. #else
  1584. uint64_t pass:32;
  1585. uint64_t drop:32;
  1586. #endif
  1587. } s;
  1588. struct cvmx_ipd_qosx_red_marks_s cn30xx;
  1589. struct cvmx_ipd_qosx_red_marks_s cn31xx;
  1590. struct cvmx_ipd_qosx_red_marks_s cn38xx;
  1591. struct cvmx_ipd_qosx_red_marks_s cn38xxp2;
  1592. struct cvmx_ipd_qosx_red_marks_s cn50xx;
  1593. struct cvmx_ipd_qosx_red_marks_s cn52xx;
  1594. struct cvmx_ipd_qosx_red_marks_s cn52xxp1;
  1595. struct cvmx_ipd_qosx_red_marks_s cn56xx;
  1596. struct cvmx_ipd_qosx_red_marks_s cn56xxp1;
  1597. struct cvmx_ipd_qosx_red_marks_s cn58xx;
  1598. struct cvmx_ipd_qosx_red_marks_s cn58xxp1;
  1599. struct cvmx_ipd_qosx_red_marks_s cn61xx;
  1600. struct cvmx_ipd_qosx_red_marks_s cn63xx;
  1601. struct cvmx_ipd_qosx_red_marks_s cn63xxp1;
  1602. struct cvmx_ipd_qosx_red_marks_s cn66xx;
  1603. struct cvmx_ipd_qosx_red_marks_s cn68xx;
  1604. struct cvmx_ipd_qosx_red_marks_s cn68xxp1;
  1605. struct cvmx_ipd_qosx_red_marks_s cnf71xx;
  1606. };
  1607. union cvmx_ipd_que0_free_page_cnt {
  1608. uint64_t u64;
  1609. struct cvmx_ipd_que0_free_page_cnt_s {
  1610. #ifdef __BIG_ENDIAN_BITFIELD
  1611. uint64_t reserved_32_63:32;
  1612. uint64_t q0_pcnt:32;
  1613. #else
  1614. uint64_t q0_pcnt:32;
  1615. uint64_t reserved_32_63:32;
  1616. #endif
  1617. } s;
  1618. struct cvmx_ipd_que0_free_page_cnt_s cn30xx;
  1619. struct cvmx_ipd_que0_free_page_cnt_s cn31xx;
  1620. struct cvmx_ipd_que0_free_page_cnt_s cn38xx;
  1621. struct cvmx_ipd_que0_free_page_cnt_s cn38xxp2;
  1622. struct cvmx_ipd_que0_free_page_cnt_s cn50xx;
  1623. struct cvmx_ipd_que0_free_page_cnt_s cn52xx;
  1624. struct cvmx_ipd_que0_free_page_cnt_s cn52xxp1;
  1625. struct cvmx_ipd_que0_free_page_cnt_s cn56xx;
  1626. struct cvmx_ipd_que0_free_page_cnt_s cn56xxp1;
  1627. struct cvmx_ipd_que0_free_page_cnt_s cn58xx;
  1628. struct cvmx_ipd_que0_free_page_cnt_s cn58xxp1;
  1629. struct cvmx_ipd_que0_free_page_cnt_s cn61xx;
  1630. struct cvmx_ipd_que0_free_page_cnt_s cn63xx;
  1631. struct cvmx_ipd_que0_free_page_cnt_s cn63xxp1;
  1632. struct cvmx_ipd_que0_free_page_cnt_s cn66xx;
  1633. struct cvmx_ipd_que0_free_page_cnt_s cn68xx;
  1634. struct cvmx_ipd_que0_free_page_cnt_s cn68xxp1;
  1635. struct cvmx_ipd_que0_free_page_cnt_s cnf71xx;
  1636. };
  1637. union cvmx_ipd_red_bpid_enablex {
  1638. uint64_t u64;
  1639. struct cvmx_ipd_red_bpid_enablex_s {
  1640. #ifdef __BIG_ENDIAN_BITFIELD
  1641. uint64_t prt_enb:64;
  1642. #else
  1643. uint64_t prt_enb:64;
  1644. #endif
  1645. } s;
  1646. struct cvmx_ipd_red_bpid_enablex_s cn68xx;
  1647. struct cvmx_ipd_red_bpid_enablex_s cn68xxp1;
  1648. };
  1649. union cvmx_ipd_red_delay {
  1650. uint64_t u64;
  1651. struct cvmx_ipd_red_delay_s {
  1652. #ifdef __BIG_ENDIAN_BITFIELD
  1653. uint64_t reserved_28_63:36;
  1654. uint64_t prb_dly:14;
  1655. uint64_t avg_dly:14;
  1656. #else
  1657. uint64_t avg_dly:14;
  1658. uint64_t prb_dly:14;
  1659. uint64_t reserved_28_63:36;
  1660. #endif
  1661. } s;
  1662. struct cvmx_ipd_red_delay_s cn68xx;
  1663. struct cvmx_ipd_red_delay_s cn68xxp1;
  1664. };
  1665. union cvmx_ipd_red_port_enable {
  1666. uint64_t u64;
  1667. struct cvmx_ipd_red_port_enable_s {
  1668. #ifdef __BIG_ENDIAN_BITFIELD
  1669. uint64_t prb_dly:14;
  1670. uint64_t avg_dly:14;
  1671. uint64_t prt_enb:36;
  1672. #else
  1673. uint64_t prt_enb:36;
  1674. uint64_t avg_dly:14;
  1675. uint64_t prb_dly:14;
  1676. #endif
  1677. } s;
  1678. struct cvmx_ipd_red_port_enable_s cn30xx;
  1679. struct cvmx_ipd_red_port_enable_s cn31xx;
  1680. struct cvmx_ipd_red_port_enable_s cn38xx;
  1681. struct cvmx_ipd_red_port_enable_s cn38xxp2;
  1682. struct cvmx_ipd_red_port_enable_s cn50xx;
  1683. struct cvmx_ipd_red_port_enable_s cn52xx;
  1684. struct cvmx_ipd_red_port_enable_s cn52xxp1;
  1685. struct cvmx_ipd_red_port_enable_s cn56xx;
  1686. struct cvmx_ipd_red_port_enable_s cn56xxp1;
  1687. struct cvmx_ipd_red_port_enable_s cn58xx;
  1688. struct cvmx_ipd_red_port_enable_s cn58xxp1;
  1689. struct cvmx_ipd_red_port_enable_s cn61xx;
  1690. struct cvmx_ipd_red_port_enable_s cn63xx;
  1691. struct cvmx_ipd_red_port_enable_s cn63xxp1;
  1692. struct cvmx_ipd_red_port_enable_s cn66xx;
  1693. struct cvmx_ipd_red_port_enable_s cnf71xx;
  1694. };
  1695. union cvmx_ipd_red_port_enable2 {
  1696. uint64_t u64;
  1697. struct cvmx_ipd_red_port_enable2_s {
  1698. #ifdef __BIG_ENDIAN_BITFIELD
  1699. uint64_t reserved_12_63:52;
  1700. uint64_t prt_enb:12;
  1701. #else
  1702. uint64_t prt_enb:12;
  1703. uint64_t reserved_12_63:52;
  1704. #endif
  1705. } s;
  1706. struct cvmx_ipd_red_port_enable2_cn52xx {
  1707. #ifdef __BIG_ENDIAN_BITFIELD
  1708. uint64_t reserved_4_63:60;
  1709. uint64_t prt_enb:4;
  1710. #else
  1711. uint64_t prt_enb:4;
  1712. uint64_t reserved_4_63:60;
  1713. #endif
  1714. } cn52xx;
  1715. struct cvmx_ipd_red_port_enable2_cn52xx cn52xxp1;
  1716. struct cvmx_ipd_red_port_enable2_cn52xx cn56xx;
  1717. struct cvmx_ipd_red_port_enable2_cn52xx cn56xxp1;
  1718. struct cvmx_ipd_red_port_enable2_s cn61xx;
  1719. struct cvmx_ipd_red_port_enable2_cn63xx {
  1720. #ifdef __BIG_ENDIAN_BITFIELD
  1721. uint64_t reserved_8_63:56;
  1722. uint64_t prt_enb:8;
  1723. #else
  1724. uint64_t prt_enb:8;
  1725. uint64_t reserved_8_63:56;
  1726. #endif
  1727. } cn63xx;
  1728. struct cvmx_ipd_red_port_enable2_cn63xx cn63xxp1;
  1729. struct cvmx_ipd_red_port_enable2_s cn66xx;
  1730. struct cvmx_ipd_red_port_enable2_s cnf71xx;
  1731. };
  1732. union cvmx_ipd_red_quex_param {
  1733. uint64_t u64;
  1734. struct cvmx_ipd_red_quex_param_s {
  1735. #ifdef __BIG_ENDIAN_BITFIELD
  1736. uint64_t reserved_49_63:15;
  1737. uint64_t use_pcnt:1;
  1738. uint64_t new_con:8;
  1739. uint64_t avg_con:8;
  1740. uint64_t prb_con:32;
  1741. #else
  1742. uint64_t prb_con:32;
  1743. uint64_t avg_con:8;
  1744. uint64_t new_con:8;
  1745. uint64_t use_pcnt:1;
  1746. uint64_t reserved_49_63:15;
  1747. #endif
  1748. } s;
  1749. struct cvmx_ipd_red_quex_param_s cn30xx;
  1750. struct cvmx_ipd_red_quex_param_s cn31xx;
  1751. struct cvmx_ipd_red_quex_param_s cn38xx;
  1752. struct cvmx_ipd_red_quex_param_s cn38xxp2;
  1753. struct cvmx_ipd_red_quex_param_s cn50xx;
  1754. struct cvmx_ipd_red_quex_param_s cn52xx;
  1755. struct cvmx_ipd_red_quex_param_s cn52xxp1;
  1756. struct cvmx_ipd_red_quex_param_s cn56xx;
  1757. struct cvmx_ipd_red_quex_param_s cn56xxp1;
  1758. struct cvmx_ipd_red_quex_param_s cn58xx;
  1759. struct cvmx_ipd_red_quex_param_s cn58xxp1;
  1760. struct cvmx_ipd_red_quex_param_s cn61xx;
  1761. struct cvmx_ipd_red_quex_param_s cn63xx;
  1762. struct cvmx_ipd_red_quex_param_s cn63xxp1;
  1763. struct cvmx_ipd_red_quex_param_s cn66xx;
  1764. struct cvmx_ipd_red_quex_param_s cn68xx;
  1765. struct cvmx_ipd_red_quex_param_s cn68xxp1;
  1766. struct cvmx_ipd_red_quex_param_s cnf71xx;
  1767. };
  1768. union cvmx_ipd_req_wgt {
  1769. uint64_t u64;
  1770. struct cvmx_ipd_req_wgt_s {
  1771. #ifdef __BIG_ENDIAN_BITFIELD
  1772. uint64_t wgt7:8;
  1773. uint64_t wgt6:8;
  1774. uint64_t wgt5:8;
  1775. uint64_t wgt4:8;
  1776. uint64_t wgt3:8;
  1777. uint64_t wgt2:8;
  1778. uint64_t wgt1:8;
  1779. uint64_t wgt0:8;
  1780. #else
  1781. uint64_t wgt0:8;
  1782. uint64_t wgt1:8;
  1783. uint64_t wgt2:8;
  1784. uint64_t wgt3:8;
  1785. uint64_t wgt4:8;
  1786. uint64_t wgt5:8;
  1787. uint64_t wgt6:8;
  1788. uint64_t wgt7:8;
  1789. #endif
  1790. } s;
  1791. struct cvmx_ipd_req_wgt_s cn68xx;
  1792. };
  1793. union cvmx_ipd_sub_port_bp_page_cnt {
  1794. uint64_t u64;
  1795. struct cvmx_ipd_sub_port_bp_page_cnt_s {
  1796. #ifdef __BIG_ENDIAN_BITFIELD
  1797. uint64_t reserved_31_63:33;
  1798. uint64_t port:6;
  1799. uint64_t page_cnt:25;
  1800. #else
  1801. uint64_t page_cnt:25;
  1802. uint64_t port:6;
  1803. uint64_t reserved_31_63:33;
  1804. #endif
  1805. } s;
  1806. struct cvmx_ipd_sub_port_bp_page_cnt_s cn30xx;
  1807. struct cvmx_ipd_sub_port_bp_page_cnt_s cn31xx;
  1808. struct cvmx_ipd_sub_port_bp_page_cnt_s cn38xx;
  1809. struct cvmx_ipd_sub_port_bp_page_cnt_s cn38xxp2;
  1810. struct cvmx_ipd_sub_port_bp_page_cnt_s cn50xx;
  1811. struct cvmx_ipd_sub_port_bp_page_cnt_s cn52xx;
  1812. struct cvmx_ipd_sub_port_bp_page_cnt_s cn52xxp1;
  1813. struct cvmx_ipd_sub_port_bp_page_cnt_s cn56xx;
  1814. struct cvmx_ipd_sub_port_bp_page_cnt_s cn56xxp1;
  1815. struct cvmx_ipd_sub_port_bp_page_cnt_s cn58xx;
  1816. struct cvmx_ipd_sub_port_bp_page_cnt_s cn58xxp1;
  1817. struct cvmx_ipd_sub_port_bp_page_cnt_s cn61xx;
  1818. struct cvmx_ipd_sub_port_bp_page_cnt_s cn63xx;
  1819. struct cvmx_ipd_sub_port_bp_page_cnt_s cn63xxp1;
  1820. struct cvmx_ipd_sub_port_bp_page_cnt_s cn66xx;
  1821. struct cvmx_ipd_sub_port_bp_page_cnt_s cn68xx;
  1822. struct cvmx_ipd_sub_port_bp_page_cnt_s cn68xxp1;
  1823. struct cvmx_ipd_sub_port_bp_page_cnt_s cnf71xx;
  1824. };
  1825. union cvmx_ipd_sub_port_fcs {
  1826. uint64_t u64;
  1827. struct cvmx_ipd_sub_port_fcs_s {
  1828. #ifdef __BIG_ENDIAN_BITFIELD
  1829. uint64_t reserved_40_63:24;
  1830. uint64_t port_bit2:4;
  1831. uint64_t reserved_32_35:4;
  1832. uint64_t port_bit:32;
  1833. #else
  1834. uint64_t port_bit:32;
  1835. uint64_t reserved_32_35:4;
  1836. uint64_t port_bit2:4;
  1837. uint64_t reserved_40_63:24;
  1838. #endif
  1839. } s;
  1840. struct cvmx_ipd_sub_port_fcs_cn30xx {
  1841. #ifdef __BIG_ENDIAN_BITFIELD
  1842. uint64_t reserved_3_63:61;
  1843. uint64_t port_bit:3;
  1844. #else
  1845. uint64_t port_bit:3;
  1846. uint64_t reserved_3_63:61;
  1847. #endif
  1848. } cn30xx;
  1849. struct cvmx_ipd_sub_port_fcs_cn30xx cn31xx;
  1850. struct cvmx_ipd_sub_port_fcs_cn38xx {
  1851. #ifdef __BIG_ENDIAN_BITFIELD
  1852. uint64_t reserved_32_63:32;
  1853. uint64_t port_bit:32;
  1854. #else
  1855. uint64_t port_bit:32;
  1856. uint64_t reserved_32_63:32;
  1857. #endif
  1858. } cn38xx;
  1859. struct cvmx_ipd_sub_port_fcs_cn38xx cn38xxp2;
  1860. struct cvmx_ipd_sub_port_fcs_cn30xx cn50xx;
  1861. struct cvmx_ipd_sub_port_fcs_s cn52xx;
  1862. struct cvmx_ipd_sub_port_fcs_s cn52xxp1;
  1863. struct cvmx_ipd_sub_port_fcs_s cn56xx;
  1864. struct cvmx_ipd_sub_port_fcs_s cn56xxp1;
  1865. struct cvmx_ipd_sub_port_fcs_cn38xx cn58xx;
  1866. struct cvmx_ipd_sub_port_fcs_cn38xx cn58xxp1;
  1867. struct cvmx_ipd_sub_port_fcs_s cn61xx;
  1868. struct cvmx_ipd_sub_port_fcs_s cn63xx;
  1869. struct cvmx_ipd_sub_port_fcs_s cn63xxp1;
  1870. struct cvmx_ipd_sub_port_fcs_s cn66xx;
  1871. struct cvmx_ipd_sub_port_fcs_s cnf71xx;
  1872. };
  1873. union cvmx_ipd_sub_port_qos_cnt {
  1874. uint64_t u64;
  1875. struct cvmx_ipd_sub_port_qos_cnt_s {
  1876. #ifdef __BIG_ENDIAN_BITFIELD
  1877. uint64_t reserved_41_63:23;
  1878. uint64_t port_qos:9;
  1879. uint64_t cnt:32;
  1880. #else
  1881. uint64_t cnt:32;
  1882. uint64_t port_qos:9;
  1883. uint64_t reserved_41_63:23;
  1884. #endif
  1885. } s;
  1886. struct cvmx_ipd_sub_port_qos_cnt_s cn52xx;
  1887. struct cvmx_ipd_sub_port_qos_cnt_s cn52xxp1;
  1888. struct cvmx_ipd_sub_port_qos_cnt_s cn56xx;
  1889. struct cvmx_ipd_sub_port_qos_cnt_s cn56xxp1;
  1890. struct cvmx_ipd_sub_port_qos_cnt_s cn61xx;
  1891. struct cvmx_ipd_sub_port_qos_cnt_s cn63xx;
  1892. struct cvmx_ipd_sub_port_qos_cnt_s cn63xxp1;
  1893. struct cvmx_ipd_sub_port_qos_cnt_s cn66xx;
  1894. struct cvmx_ipd_sub_port_qos_cnt_s cn68xx;
  1895. struct cvmx_ipd_sub_port_qos_cnt_s cn68xxp1;
  1896. struct cvmx_ipd_sub_port_qos_cnt_s cnf71xx;
  1897. };
  1898. union cvmx_ipd_wqe_fpa_queue {
  1899. uint64_t u64;
  1900. struct cvmx_ipd_wqe_fpa_queue_s {
  1901. #ifdef __BIG_ENDIAN_BITFIELD
  1902. uint64_t reserved_3_63:61;
  1903. uint64_t wqe_pool:3;
  1904. #else
  1905. uint64_t wqe_pool:3;
  1906. uint64_t reserved_3_63:61;
  1907. #endif
  1908. } s;
  1909. struct cvmx_ipd_wqe_fpa_queue_s cn30xx;
  1910. struct cvmx_ipd_wqe_fpa_queue_s cn31xx;
  1911. struct cvmx_ipd_wqe_fpa_queue_s cn38xx;
  1912. struct cvmx_ipd_wqe_fpa_queue_s cn38xxp2;
  1913. struct cvmx_ipd_wqe_fpa_queue_s cn50xx;
  1914. struct cvmx_ipd_wqe_fpa_queue_s cn52xx;
  1915. struct cvmx_ipd_wqe_fpa_queue_s cn52xxp1;
  1916. struct cvmx_ipd_wqe_fpa_queue_s cn56xx;
  1917. struct cvmx_ipd_wqe_fpa_queue_s cn56xxp1;
  1918. struct cvmx_ipd_wqe_fpa_queue_s cn58xx;
  1919. struct cvmx_ipd_wqe_fpa_queue_s cn58xxp1;
  1920. struct cvmx_ipd_wqe_fpa_queue_s cn61xx;
  1921. struct cvmx_ipd_wqe_fpa_queue_s cn63xx;
  1922. struct cvmx_ipd_wqe_fpa_queue_s cn63xxp1;
  1923. struct cvmx_ipd_wqe_fpa_queue_s cn66xx;
  1924. struct cvmx_ipd_wqe_fpa_queue_s cn68xx;
  1925. struct cvmx_ipd_wqe_fpa_queue_s cn68xxp1;
  1926. struct cvmx_ipd_wqe_fpa_queue_s cnf71xx;
  1927. };
  1928. union cvmx_ipd_wqe_ptr_valid {
  1929. uint64_t u64;
  1930. struct cvmx_ipd_wqe_ptr_valid_s {
  1931. #ifdef __BIG_ENDIAN_BITFIELD
  1932. uint64_t reserved_29_63:35;
  1933. uint64_t ptr:29;
  1934. #else
  1935. uint64_t ptr:29;
  1936. uint64_t reserved_29_63:35;
  1937. #endif
  1938. } s;
  1939. struct cvmx_ipd_wqe_ptr_valid_s cn30xx;
  1940. struct cvmx_ipd_wqe_ptr_valid_s cn31xx;
  1941. struct cvmx_ipd_wqe_ptr_valid_s cn38xx;
  1942. struct cvmx_ipd_wqe_ptr_valid_s cn50xx;
  1943. struct cvmx_ipd_wqe_ptr_valid_s cn52xx;
  1944. struct cvmx_ipd_wqe_ptr_valid_s cn52xxp1;
  1945. struct cvmx_ipd_wqe_ptr_valid_s cn56xx;
  1946. struct cvmx_ipd_wqe_ptr_valid_s cn56xxp1;
  1947. struct cvmx_ipd_wqe_ptr_valid_s cn58xx;
  1948. struct cvmx_ipd_wqe_ptr_valid_s cn58xxp1;
  1949. struct cvmx_ipd_wqe_ptr_valid_s cn61xx;
  1950. struct cvmx_ipd_wqe_ptr_valid_s cn63xx;
  1951. struct cvmx_ipd_wqe_ptr_valid_s cn63xxp1;
  1952. struct cvmx_ipd_wqe_ptr_valid_s cn66xx;
  1953. struct cvmx_ipd_wqe_ptr_valid_s cnf71xx;
  1954. };
  1955. #endif