cvmx-sriox-defs.h 42 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738
  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_SRIOX_DEFS_H__
  28. #define __CVMX_SRIOX_DEFS_H__
  29. #define CVMX_SRIOX_ACC_CTRL(block_id) (CVMX_ADD_IO_SEG(0x00011800C8000148ull) + ((block_id) & 3) * 0x1000000ull)
  30. #define CVMX_SRIOX_ASMBLY_ID(block_id) (CVMX_ADD_IO_SEG(0x00011800C8000200ull) + ((block_id) & 3) * 0x1000000ull)
  31. #define CVMX_SRIOX_ASMBLY_INFO(block_id) (CVMX_ADD_IO_SEG(0x00011800C8000208ull) + ((block_id) & 3) * 0x1000000ull)
  32. #define CVMX_SRIOX_BELL_RESP_CTRL(block_id) (CVMX_ADD_IO_SEG(0x00011800C8000310ull) + ((block_id) & 3) * 0x1000000ull)
  33. #define CVMX_SRIOX_BIST_STATUS(block_id) (CVMX_ADD_IO_SEG(0x00011800C8000108ull) + ((block_id) & 3) * 0x1000000ull)
  34. #define CVMX_SRIOX_IMSG_CTRL(block_id) (CVMX_ADD_IO_SEG(0x00011800C8000508ull) + ((block_id) & 3) * 0x1000000ull)
  35. #define CVMX_SRIOX_IMSG_INST_HDRX(offset, block_id) (CVMX_ADD_IO_SEG(0x00011800C8000510ull) + (((offset) & 1) + ((block_id) & 3) * 0x200000ull) * 8)
  36. #define CVMX_SRIOX_IMSG_QOS_GRPX(offset, block_id) (CVMX_ADD_IO_SEG(0x00011800C8000600ull) + (((offset) & 31) + ((block_id) & 3) * 0x200000ull) * 8)
  37. #define CVMX_SRIOX_IMSG_STATUSX(offset, block_id) (CVMX_ADD_IO_SEG(0x00011800C8000700ull) + (((offset) & 31) + ((block_id) & 3) * 0x200000ull) * 8)
  38. #define CVMX_SRIOX_IMSG_VPORT_THR(block_id) (CVMX_ADD_IO_SEG(0x00011800C8000500ull) + ((block_id) & 3) * 0x1000000ull)
  39. #define CVMX_SRIOX_IMSG_VPORT_THR2(block_id) (CVMX_ADD_IO_SEG(0x00011800C8000528ull) + ((block_id) & 3) * 0x1000000ull)
  40. #define CVMX_SRIOX_INT2_ENABLE(block_id) (CVMX_ADD_IO_SEG(0x00011800C80003E0ull) + ((block_id) & 3) * 0x1000000ull)
  41. #define CVMX_SRIOX_INT2_REG(block_id) (CVMX_ADD_IO_SEG(0x00011800C80003E8ull) + ((block_id) & 3) * 0x1000000ull)
  42. #define CVMX_SRIOX_INT_ENABLE(block_id) (CVMX_ADD_IO_SEG(0x00011800C8000110ull) + ((block_id) & 3) * 0x1000000ull)
  43. #define CVMX_SRIOX_INT_INFO0(block_id) (CVMX_ADD_IO_SEG(0x00011800C8000120ull) + ((block_id) & 3) * 0x1000000ull)
  44. #define CVMX_SRIOX_INT_INFO1(block_id) (CVMX_ADD_IO_SEG(0x00011800C8000128ull) + ((block_id) & 3) * 0x1000000ull)
  45. #define CVMX_SRIOX_INT_INFO2(block_id) (CVMX_ADD_IO_SEG(0x00011800C8000130ull) + ((block_id) & 3) * 0x1000000ull)
  46. #define CVMX_SRIOX_INT_INFO3(block_id) (CVMX_ADD_IO_SEG(0x00011800C8000138ull) + ((block_id) & 3) * 0x1000000ull)
  47. #define CVMX_SRIOX_INT_REG(block_id) (CVMX_ADD_IO_SEG(0x00011800C8000118ull) + ((block_id) & 3) * 0x1000000ull)
  48. #define CVMX_SRIOX_IP_FEATURE(block_id) (CVMX_ADD_IO_SEG(0x00011800C80003F8ull) + ((block_id) & 3) * 0x1000000ull)
  49. #define CVMX_SRIOX_MAC_BUFFERS(block_id) (CVMX_ADD_IO_SEG(0x00011800C8000390ull) + ((block_id) & 3) * 0x1000000ull)
  50. #define CVMX_SRIOX_MAINT_OP(block_id) (CVMX_ADD_IO_SEG(0x00011800C8000158ull) + ((block_id) & 3) * 0x1000000ull)
  51. #define CVMX_SRIOX_MAINT_RD_DATA(block_id) (CVMX_ADD_IO_SEG(0x00011800C8000160ull) + ((block_id) & 3) * 0x1000000ull)
  52. #define CVMX_SRIOX_MCE_TX_CTL(block_id) (CVMX_ADD_IO_SEG(0x00011800C8000240ull) + ((block_id) & 3) * 0x1000000ull)
  53. #define CVMX_SRIOX_MEM_OP_CTRL(block_id) (CVMX_ADD_IO_SEG(0x00011800C8000168ull) + ((block_id) & 3) * 0x1000000ull)
  54. #define CVMX_SRIOX_OMSG_CTRLX(offset, block_id) (CVMX_ADD_IO_SEG(0x00011800C8000488ull) + (((offset) & 1) + ((block_id) & 3) * 0x40000ull) * 64)
  55. #define CVMX_SRIOX_OMSG_DONE_COUNTSX(offset, block_id) (CVMX_ADD_IO_SEG(0x00011800C80004B0ull) + (((offset) & 1) + ((block_id) & 3) * 0x40000ull) * 64)
  56. #define CVMX_SRIOX_OMSG_FMP_MRX(offset, block_id) (CVMX_ADD_IO_SEG(0x00011800C8000498ull) + (((offset) & 1) + ((block_id) & 3) * 0x40000ull) * 64)
  57. #define CVMX_SRIOX_OMSG_NMP_MRX(offset, block_id) (CVMX_ADD_IO_SEG(0x00011800C80004A0ull) + (((offset) & 1) + ((block_id) & 3) * 0x40000ull) * 64)
  58. #define CVMX_SRIOX_OMSG_PORTX(offset, block_id) (CVMX_ADD_IO_SEG(0x00011800C8000480ull) + (((offset) & 1) + ((block_id) & 3) * 0x40000ull) * 64)
  59. #define CVMX_SRIOX_OMSG_SILO_THR(block_id) (CVMX_ADD_IO_SEG(0x00011800C80004F8ull) + ((block_id) & 3) * 0x1000000ull)
  60. #define CVMX_SRIOX_OMSG_SP_MRX(offset, block_id) (CVMX_ADD_IO_SEG(0x00011800C8000490ull) + (((offset) & 1) + ((block_id) & 3) * 0x40000ull) * 64)
  61. #define CVMX_SRIOX_PRIOX_IN_USE(offset, block_id) (CVMX_ADD_IO_SEG(0x00011800C80003C0ull) + (((offset) & 3) + ((block_id) & 3) * 0x200000ull) * 8)
  62. #define CVMX_SRIOX_RX_BELL(block_id) (CVMX_ADD_IO_SEG(0x00011800C8000308ull) + ((block_id) & 3) * 0x1000000ull)
  63. #define CVMX_SRIOX_RX_BELL_SEQ(block_id) (CVMX_ADD_IO_SEG(0x00011800C8000300ull) + ((block_id) & 3) * 0x1000000ull)
  64. #define CVMX_SRIOX_RX_STATUS(block_id) (CVMX_ADD_IO_SEG(0x00011800C8000380ull) + ((block_id) & 3) * 0x1000000ull)
  65. #define CVMX_SRIOX_S2M_TYPEX(offset, block_id) (CVMX_ADD_IO_SEG(0x00011800C8000180ull) + (((offset) & 15) + ((block_id) & 3) * 0x200000ull) * 8)
  66. #define CVMX_SRIOX_SEQ(block_id) (CVMX_ADD_IO_SEG(0x00011800C8000278ull) + ((block_id) & 3) * 0x1000000ull)
  67. #define CVMX_SRIOX_STATUS_REG(block_id) (CVMX_ADD_IO_SEG(0x00011800C8000100ull) + ((block_id) & 3) * 0x1000000ull)
  68. #define CVMX_SRIOX_TAG_CTRL(block_id) (CVMX_ADD_IO_SEG(0x00011800C8000178ull) + ((block_id) & 3) * 0x1000000ull)
  69. #define CVMX_SRIOX_TLP_CREDITS(block_id) (CVMX_ADD_IO_SEG(0x00011800C8000150ull) + ((block_id) & 3) * 0x1000000ull)
  70. #define CVMX_SRIOX_TX_BELL(block_id) (CVMX_ADD_IO_SEG(0x00011800C8000280ull) + ((block_id) & 3) * 0x1000000ull)
  71. #define CVMX_SRIOX_TX_BELL_INFO(block_id) (CVMX_ADD_IO_SEG(0x00011800C8000288ull) + ((block_id) & 3) * 0x1000000ull)
  72. #define CVMX_SRIOX_TX_CTRL(block_id) (CVMX_ADD_IO_SEG(0x00011800C8000170ull) + ((block_id) & 3) * 0x1000000ull)
  73. #define CVMX_SRIOX_TX_EMPHASIS(block_id) (CVMX_ADD_IO_SEG(0x00011800C80003F0ull) + ((block_id) & 3) * 0x1000000ull)
  74. #define CVMX_SRIOX_TX_STATUS(block_id) (CVMX_ADD_IO_SEG(0x00011800C8000388ull) + ((block_id) & 3) * 0x1000000ull)
  75. #define CVMX_SRIOX_WR_DONE_COUNTS(block_id) (CVMX_ADD_IO_SEG(0x00011800C8000340ull) + ((block_id) & 3) * 0x1000000ull)
  76. union cvmx_sriox_acc_ctrl {
  77. uint64_t u64;
  78. struct cvmx_sriox_acc_ctrl_s {
  79. #ifdef __BIG_ENDIAN_BITFIELD
  80. uint64_t reserved_7_63:57;
  81. uint64_t deny_adr2:1;
  82. uint64_t deny_adr1:1;
  83. uint64_t deny_adr0:1;
  84. uint64_t reserved_3_3:1;
  85. uint64_t deny_bar2:1;
  86. uint64_t deny_bar1:1;
  87. uint64_t deny_bar0:1;
  88. #else
  89. uint64_t deny_bar0:1;
  90. uint64_t deny_bar1:1;
  91. uint64_t deny_bar2:1;
  92. uint64_t reserved_3_3:1;
  93. uint64_t deny_adr0:1;
  94. uint64_t deny_adr1:1;
  95. uint64_t deny_adr2:1;
  96. uint64_t reserved_7_63:57;
  97. #endif
  98. } s;
  99. struct cvmx_sriox_acc_ctrl_cn63xx {
  100. #ifdef __BIG_ENDIAN_BITFIELD
  101. uint64_t reserved_3_63:61;
  102. uint64_t deny_bar2:1;
  103. uint64_t deny_bar1:1;
  104. uint64_t deny_bar0:1;
  105. #else
  106. uint64_t deny_bar0:1;
  107. uint64_t deny_bar1:1;
  108. uint64_t deny_bar2:1;
  109. uint64_t reserved_3_63:61;
  110. #endif
  111. } cn63xx;
  112. struct cvmx_sriox_acc_ctrl_cn63xx cn63xxp1;
  113. struct cvmx_sriox_acc_ctrl_s cn66xx;
  114. };
  115. union cvmx_sriox_asmbly_id {
  116. uint64_t u64;
  117. struct cvmx_sriox_asmbly_id_s {
  118. #ifdef __BIG_ENDIAN_BITFIELD
  119. uint64_t reserved_32_63:32;
  120. uint64_t assy_id:16;
  121. uint64_t assy_ven:16;
  122. #else
  123. uint64_t assy_ven:16;
  124. uint64_t assy_id:16;
  125. uint64_t reserved_32_63:32;
  126. #endif
  127. } s;
  128. struct cvmx_sriox_asmbly_id_s cn63xx;
  129. struct cvmx_sriox_asmbly_id_s cn63xxp1;
  130. struct cvmx_sriox_asmbly_id_s cn66xx;
  131. };
  132. union cvmx_sriox_asmbly_info {
  133. uint64_t u64;
  134. struct cvmx_sriox_asmbly_info_s {
  135. #ifdef __BIG_ENDIAN_BITFIELD
  136. uint64_t reserved_32_63:32;
  137. uint64_t assy_rev:16;
  138. uint64_t reserved_0_15:16;
  139. #else
  140. uint64_t reserved_0_15:16;
  141. uint64_t assy_rev:16;
  142. uint64_t reserved_32_63:32;
  143. #endif
  144. } s;
  145. struct cvmx_sriox_asmbly_info_s cn63xx;
  146. struct cvmx_sriox_asmbly_info_s cn63xxp1;
  147. struct cvmx_sriox_asmbly_info_s cn66xx;
  148. };
  149. union cvmx_sriox_bell_resp_ctrl {
  150. uint64_t u64;
  151. struct cvmx_sriox_bell_resp_ctrl_s {
  152. #ifdef __BIG_ENDIAN_BITFIELD
  153. uint64_t reserved_6_63:58;
  154. uint64_t rp1_sid:1;
  155. uint64_t rp0_sid:2;
  156. uint64_t rp1_pid:1;
  157. uint64_t rp0_pid:2;
  158. #else
  159. uint64_t rp0_pid:2;
  160. uint64_t rp1_pid:1;
  161. uint64_t rp0_sid:2;
  162. uint64_t rp1_sid:1;
  163. uint64_t reserved_6_63:58;
  164. #endif
  165. } s;
  166. struct cvmx_sriox_bell_resp_ctrl_s cn63xx;
  167. struct cvmx_sriox_bell_resp_ctrl_s cn63xxp1;
  168. struct cvmx_sriox_bell_resp_ctrl_s cn66xx;
  169. };
  170. union cvmx_sriox_bist_status {
  171. uint64_t u64;
  172. struct cvmx_sriox_bist_status_s {
  173. #ifdef __BIG_ENDIAN_BITFIELD
  174. uint64_t reserved_45_63:19;
  175. uint64_t lram:1;
  176. uint64_t mram:2;
  177. uint64_t cram:2;
  178. uint64_t bell:2;
  179. uint64_t otag:2;
  180. uint64_t itag:1;
  181. uint64_t ofree:1;
  182. uint64_t rtn:2;
  183. uint64_t obulk:4;
  184. uint64_t optrs:4;
  185. uint64_t oarb2:2;
  186. uint64_t rxbuf2:2;
  187. uint64_t oarb:2;
  188. uint64_t ispf:1;
  189. uint64_t ospf:1;
  190. uint64_t txbuf:2;
  191. uint64_t rxbuf:2;
  192. uint64_t imsg:5;
  193. uint64_t omsg:7;
  194. #else
  195. uint64_t omsg:7;
  196. uint64_t imsg:5;
  197. uint64_t rxbuf:2;
  198. uint64_t txbuf:2;
  199. uint64_t ospf:1;
  200. uint64_t ispf:1;
  201. uint64_t oarb:2;
  202. uint64_t rxbuf2:2;
  203. uint64_t oarb2:2;
  204. uint64_t optrs:4;
  205. uint64_t obulk:4;
  206. uint64_t rtn:2;
  207. uint64_t ofree:1;
  208. uint64_t itag:1;
  209. uint64_t otag:2;
  210. uint64_t bell:2;
  211. uint64_t cram:2;
  212. uint64_t mram:2;
  213. uint64_t lram:1;
  214. uint64_t reserved_45_63:19;
  215. #endif
  216. } s;
  217. struct cvmx_sriox_bist_status_cn63xx {
  218. #ifdef __BIG_ENDIAN_BITFIELD
  219. uint64_t reserved_44_63:20;
  220. uint64_t mram:2;
  221. uint64_t cram:2;
  222. uint64_t bell:2;
  223. uint64_t otag:2;
  224. uint64_t itag:1;
  225. uint64_t ofree:1;
  226. uint64_t rtn:2;
  227. uint64_t obulk:4;
  228. uint64_t optrs:4;
  229. uint64_t oarb2:2;
  230. uint64_t rxbuf2:2;
  231. uint64_t oarb:2;
  232. uint64_t ispf:1;
  233. uint64_t ospf:1;
  234. uint64_t txbuf:2;
  235. uint64_t rxbuf:2;
  236. uint64_t imsg:5;
  237. uint64_t omsg:7;
  238. #else
  239. uint64_t omsg:7;
  240. uint64_t imsg:5;
  241. uint64_t rxbuf:2;
  242. uint64_t txbuf:2;
  243. uint64_t ospf:1;
  244. uint64_t ispf:1;
  245. uint64_t oarb:2;
  246. uint64_t rxbuf2:2;
  247. uint64_t oarb2:2;
  248. uint64_t optrs:4;
  249. uint64_t obulk:4;
  250. uint64_t rtn:2;
  251. uint64_t ofree:1;
  252. uint64_t itag:1;
  253. uint64_t otag:2;
  254. uint64_t bell:2;
  255. uint64_t cram:2;
  256. uint64_t mram:2;
  257. uint64_t reserved_44_63:20;
  258. #endif
  259. } cn63xx;
  260. struct cvmx_sriox_bist_status_cn63xxp1 {
  261. #ifdef __BIG_ENDIAN_BITFIELD
  262. uint64_t reserved_44_63:20;
  263. uint64_t mram:2;
  264. uint64_t cram:2;
  265. uint64_t bell:2;
  266. uint64_t otag:2;
  267. uint64_t itag:1;
  268. uint64_t ofree:1;
  269. uint64_t rtn:2;
  270. uint64_t obulk:4;
  271. uint64_t optrs:4;
  272. uint64_t reserved_20_23:4;
  273. uint64_t oarb:2;
  274. uint64_t ispf:1;
  275. uint64_t ospf:1;
  276. uint64_t txbuf:2;
  277. uint64_t rxbuf:2;
  278. uint64_t imsg:5;
  279. uint64_t omsg:7;
  280. #else
  281. uint64_t omsg:7;
  282. uint64_t imsg:5;
  283. uint64_t rxbuf:2;
  284. uint64_t txbuf:2;
  285. uint64_t ospf:1;
  286. uint64_t ispf:1;
  287. uint64_t oarb:2;
  288. uint64_t reserved_20_23:4;
  289. uint64_t optrs:4;
  290. uint64_t obulk:4;
  291. uint64_t rtn:2;
  292. uint64_t ofree:1;
  293. uint64_t itag:1;
  294. uint64_t otag:2;
  295. uint64_t bell:2;
  296. uint64_t cram:2;
  297. uint64_t mram:2;
  298. uint64_t reserved_44_63:20;
  299. #endif
  300. } cn63xxp1;
  301. struct cvmx_sriox_bist_status_s cn66xx;
  302. };
  303. union cvmx_sriox_imsg_ctrl {
  304. uint64_t u64;
  305. struct cvmx_sriox_imsg_ctrl_s {
  306. #ifdef __BIG_ENDIAN_BITFIELD
  307. uint64_t reserved_32_63:32;
  308. uint64_t to_mode:1;
  309. uint64_t reserved_30_30:1;
  310. uint64_t rsp_thr:6;
  311. uint64_t reserved_22_23:2;
  312. uint64_t rp1_sid:1;
  313. uint64_t rp0_sid:2;
  314. uint64_t rp1_pid:1;
  315. uint64_t rp0_pid:2;
  316. uint64_t reserved_15_15:1;
  317. uint64_t prt_sel:3;
  318. uint64_t lttr:4;
  319. uint64_t prio:4;
  320. uint64_t mbox:4;
  321. #else
  322. uint64_t mbox:4;
  323. uint64_t prio:4;
  324. uint64_t lttr:4;
  325. uint64_t prt_sel:3;
  326. uint64_t reserved_15_15:1;
  327. uint64_t rp0_pid:2;
  328. uint64_t rp1_pid:1;
  329. uint64_t rp0_sid:2;
  330. uint64_t rp1_sid:1;
  331. uint64_t reserved_22_23:2;
  332. uint64_t rsp_thr:6;
  333. uint64_t reserved_30_30:1;
  334. uint64_t to_mode:1;
  335. uint64_t reserved_32_63:32;
  336. #endif
  337. } s;
  338. struct cvmx_sriox_imsg_ctrl_s cn63xx;
  339. struct cvmx_sriox_imsg_ctrl_s cn63xxp1;
  340. struct cvmx_sriox_imsg_ctrl_s cn66xx;
  341. };
  342. union cvmx_sriox_imsg_inst_hdrx {
  343. uint64_t u64;
  344. struct cvmx_sriox_imsg_inst_hdrx_s {
  345. #ifdef __BIG_ENDIAN_BITFIELD
  346. uint64_t r:1;
  347. uint64_t reserved_58_62:5;
  348. uint64_t pm:2;
  349. uint64_t reserved_55_55:1;
  350. uint64_t sl:7;
  351. uint64_t reserved_46_47:2;
  352. uint64_t nqos:1;
  353. uint64_t ngrp:1;
  354. uint64_t ntt:1;
  355. uint64_t ntag:1;
  356. uint64_t reserved_35_41:7;
  357. uint64_t rs:1;
  358. uint64_t tt:2;
  359. uint64_t tag:32;
  360. #else
  361. uint64_t tag:32;
  362. uint64_t tt:2;
  363. uint64_t rs:1;
  364. uint64_t reserved_35_41:7;
  365. uint64_t ntag:1;
  366. uint64_t ntt:1;
  367. uint64_t ngrp:1;
  368. uint64_t nqos:1;
  369. uint64_t reserved_46_47:2;
  370. uint64_t sl:7;
  371. uint64_t reserved_55_55:1;
  372. uint64_t pm:2;
  373. uint64_t reserved_58_62:5;
  374. uint64_t r:1;
  375. #endif
  376. } s;
  377. struct cvmx_sriox_imsg_inst_hdrx_s cn63xx;
  378. struct cvmx_sriox_imsg_inst_hdrx_s cn63xxp1;
  379. struct cvmx_sriox_imsg_inst_hdrx_s cn66xx;
  380. };
  381. union cvmx_sriox_imsg_qos_grpx {
  382. uint64_t u64;
  383. struct cvmx_sriox_imsg_qos_grpx_s {
  384. #ifdef __BIG_ENDIAN_BITFIELD
  385. uint64_t reserved_63_63:1;
  386. uint64_t qos7:3;
  387. uint64_t grp7:4;
  388. uint64_t reserved_55_55:1;
  389. uint64_t qos6:3;
  390. uint64_t grp6:4;
  391. uint64_t reserved_47_47:1;
  392. uint64_t qos5:3;
  393. uint64_t grp5:4;
  394. uint64_t reserved_39_39:1;
  395. uint64_t qos4:3;
  396. uint64_t grp4:4;
  397. uint64_t reserved_31_31:1;
  398. uint64_t qos3:3;
  399. uint64_t grp3:4;
  400. uint64_t reserved_23_23:1;
  401. uint64_t qos2:3;
  402. uint64_t grp2:4;
  403. uint64_t reserved_15_15:1;
  404. uint64_t qos1:3;
  405. uint64_t grp1:4;
  406. uint64_t reserved_7_7:1;
  407. uint64_t qos0:3;
  408. uint64_t grp0:4;
  409. #else
  410. uint64_t grp0:4;
  411. uint64_t qos0:3;
  412. uint64_t reserved_7_7:1;
  413. uint64_t grp1:4;
  414. uint64_t qos1:3;
  415. uint64_t reserved_15_15:1;
  416. uint64_t grp2:4;
  417. uint64_t qos2:3;
  418. uint64_t reserved_23_23:1;
  419. uint64_t grp3:4;
  420. uint64_t qos3:3;
  421. uint64_t reserved_31_31:1;
  422. uint64_t grp4:4;
  423. uint64_t qos4:3;
  424. uint64_t reserved_39_39:1;
  425. uint64_t grp5:4;
  426. uint64_t qos5:3;
  427. uint64_t reserved_47_47:1;
  428. uint64_t grp6:4;
  429. uint64_t qos6:3;
  430. uint64_t reserved_55_55:1;
  431. uint64_t grp7:4;
  432. uint64_t qos7:3;
  433. uint64_t reserved_63_63:1;
  434. #endif
  435. } s;
  436. struct cvmx_sriox_imsg_qos_grpx_s cn63xx;
  437. struct cvmx_sriox_imsg_qos_grpx_s cn63xxp1;
  438. struct cvmx_sriox_imsg_qos_grpx_s cn66xx;
  439. };
  440. union cvmx_sriox_imsg_statusx {
  441. uint64_t u64;
  442. struct cvmx_sriox_imsg_statusx_s {
  443. #ifdef __BIG_ENDIAN_BITFIELD
  444. uint64_t val1:1;
  445. uint64_t err1:1;
  446. uint64_t toe1:1;
  447. uint64_t toc1:1;
  448. uint64_t prt1:1;
  449. uint64_t reserved_58_58:1;
  450. uint64_t tt1:1;
  451. uint64_t dis1:1;
  452. uint64_t seg1:4;
  453. uint64_t mbox1:2;
  454. uint64_t lttr1:2;
  455. uint64_t sid1:16;
  456. uint64_t val0:1;
  457. uint64_t err0:1;
  458. uint64_t toe0:1;
  459. uint64_t toc0:1;
  460. uint64_t prt0:1;
  461. uint64_t reserved_26_26:1;
  462. uint64_t tt0:1;
  463. uint64_t dis0:1;
  464. uint64_t seg0:4;
  465. uint64_t mbox0:2;
  466. uint64_t lttr0:2;
  467. uint64_t sid0:16;
  468. #else
  469. uint64_t sid0:16;
  470. uint64_t lttr0:2;
  471. uint64_t mbox0:2;
  472. uint64_t seg0:4;
  473. uint64_t dis0:1;
  474. uint64_t tt0:1;
  475. uint64_t reserved_26_26:1;
  476. uint64_t prt0:1;
  477. uint64_t toc0:1;
  478. uint64_t toe0:1;
  479. uint64_t err0:1;
  480. uint64_t val0:1;
  481. uint64_t sid1:16;
  482. uint64_t lttr1:2;
  483. uint64_t mbox1:2;
  484. uint64_t seg1:4;
  485. uint64_t dis1:1;
  486. uint64_t tt1:1;
  487. uint64_t reserved_58_58:1;
  488. uint64_t prt1:1;
  489. uint64_t toc1:1;
  490. uint64_t toe1:1;
  491. uint64_t err1:1;
  492. uint64_t val1:1;
  493. #endif
  494. } s;
  495. struct cvmx_sriox_imsg_statusx_s cn63xx;
  496. struct cvmx_sriox_imsg_statusx_s cn63xxp1;
  497. struct cvmx_sriox_imsg_statusx_s cn66xx;
  498. };
  499. union cvmx_sriox_imsg_vport_thr {
  500. uint64_t u64;
  501. struct cvmx_sriox_imsg_vport_thr_s {
  502. #ifdef __BIG_ENDIAN_BITFIELD
  503. uint64_t reserved_54_63:10;
  504. uint64_t max_tot:6;
  505. uint64_t reserved_46_47:2;
  506. uint64_t max_s1:6;
  507. uint64_t reserved_38_39:2;
  508. uint64_t max_s0:6;
  509. uint64_t sp_vport:1;
  510. uint64_t reserved_20_30:11;
  511. uint64_t buf_thr:4;
  512. uint64_t reserved_14_15:2;
  513. uint64_t max_p1:6;
  514. uint64_t reserved_6_7:2;
  515. uint64_t max_p0:6;
  516. #else
  517. uint64_t max_p0:6;
  518. uint64_t reserved_6_7:2;
  519. uint64_t max_p1:6;
  520. uint64_t reserved_14_15:2;
  521. uint64_t buf_thr:4;
  522. uint64_t reserved_20_30:11;
  523. uint64_t sp_vport:1;
  524. uint64_t max_s0:6;
  525. uint64_t reserved_38_39:2;
  526. uint64_t max_s1:6;
  527. uint64_t reserved_46_47:2;
  528. uint64_t max_tot:6;
  529. uint64_t reserved_54_63:10;
  530. #endif
  531. } s;
  532. struct cvmx_sriox_imsg_vport_thr_s cn63xx;
  533. struct cvmx_sriox_imsg_vport_thr_s cn63xxp1;
  534. struct cvmx_sriox_imsg_vport_thr_s cn66xx;
  535. };
  536. union cvmx_sriox_imsg_vport_thr2 {
  537. uint64_t u64;
  538. struct cvmx_sriox_imsg_vport_thr2_s {
  539. #ifdef __BIG_ENDIAN_BITFIELD
  540. uint64_t reserved_46_63:18;
  541. uint64_t max_s3:6;
  542. uint64_t reserved_38_39:2;
  543. uint64_t max_s2:6;
  544. uint64_t reserved_0_31:32;
  545. #else
  546. uint64_t reserved_0_31:32;
  547. uint64_t max_s2:6;
  548. uint64_t reserved_38_39:2;
  549. uint64_t max_s3:6;
  550. uint64_t reserved_46_63:18;
  551. #endif
  552. } s;
  553. struct cvmx_sriox_imsg_vport_thr2_s cn66xx;
  554. };
  555. union cvmx_sriox_int2_enable {
  556. uint64_t u64;
  557. struct cvmx_sriox_int2_enable_s {
  558. #ifdef __BIG_ENDIAN_BITFIELD
  559. uint64_t reserved_1_63:63;
  560. uint64_t pko_rst:1;
  561. #else
  562. uint64_t pko_rst:1;
  563. uint64_t reserved_1_63:63;
  564. #endif
  565. } s;
  566. struct cvmx_sriox_int2_enable_s cn63xx;
  567. struct cvmx_sriox_int2_enable_s cn66xx;
  568. };
  569. union cvmx_sriox_int2_reg {
  570. uint64_t u64;
  571. struct cvmx_sriox_int2_reg_s {
  572. #ifdef __BIG_ENDIAN_BITFIELD
  573. uint64_t reserved_32_63:32;
  574. uint64_t int_sum:1;
  575. uint64_t reserved_1_30:30;
  576. uint64_t pko_rst:1;
  577. #else
  578. uint64_t pko_rst:1;
  579. uint64_t reserved_1_30:30;
  580. uint64_t int_sum:1;
  581. uint64_t reserved_32_63:32;
  582. #endif
  583. } s;
  584. struct cvmx_sriox_int2_reg_s cn63xx;
  585. struct cvmx_sriox_int2_reg_s cn66xx;
  586. };
  587. union cvmx_sriox_int_enable {
  588. uint64_t u64;
  589. struct cvmx_sriox_int_enable_s {
  590. #ifdef __BIG_ENDIAN_BITFIELD
  591. uint64_t reserved_27_63:37;
  592. uint64_t zero_pkt:1;
  593. uint64_t ttl_tout:1;
  594. uint64_t fail:1;
  595. uint64_t degrade:1;
  596. uint64_t mac_buf:1;
  597. uint64_t f_error:1;
  598. uint64_t rtry_err:1;
  599. uint64_t pko_err:1;
  600. uint64_t omsg_err:1;
  601. uint64_t omsg1:1;
  602. uint64_t omsg0:1;
  603. uint64_t link_up:1;
  604. uint64_t link_dwn:1;
  605. uint64_t phy_erb:1;
  606. uint64_t log_erb:1;
  607. uint64_t soft_rx:1;
  608. uint64_t soft_tx:1;
  609. uint64_t mce_rx:1;
  610. uint64_t mce_tx:1;
  611. uint64_t wr_done:1;
  612. uint64_t sli_err:1;
  613. uint64_t deny_wr:1;
  614. uint64_t bar_err:1;
  615. uint64_t maint_op:1;
  616. uint64_t rxbell:1;
  617. uint64_t bell_err:1;
  618. uint64_t txbell:1;
  619. #else
  620. uint64_t txbell:1;
  621. uint64_t bell_err:1;
  622. uint64_t rxbell:1;
  623. uint64_t maint_op:1;
  624. uint64_t bar_err:1;
  625. uint64_t deny_wr:1;
  626. uint64_t sli_err:1;
  627. uint64_t wr_done:1;
  628. uint64_t mce_tx:1;
  629. uint64_t mce_rx:1;
  630. uint64_t soft_tx:1;
  631. uint64_t soft_rx:1;
  632. uint64_t log_erb:1;
  633. uint64_t phy_erb:1;
  634. uint64_t link_dwn:1;
  635. uint64_t link_up:1;
  636. uint64_t omsg0:1;
  637. uint64_t omsg1:1;
  638. uint64_t omsg_err:1;
  639. uint64_t pko_err:1;
  640. uint64_t rtry_err:1;
  641. uint64_t f_error:1;
  642. uint64_t mac_buf:1;
  643. uint64_t degrade:1;
  644. uint64_t fail:1;
  645. uint64_t ttl_tout:1;
  646. uint64_t zero_pkt:1;
  647. uint64_t reserved_27_63:37;
  648. #endif
  649. } s;
  650. struct cvmx_sriox_int_enable_s cn63xx;
  651. struct cvmx_sriox_int_enable_cn63xxp1 {
  652. #ifdef __BIG_ENDIAN_BITFIELD
  653. uint64_t reserved_22_63:42;
  654. uint64_t f_error:1;
  655. uint64_t rtry_err:1;
  656. uint64_t pko_err:1;
  657. uint64_t omsg_err:1;
  658. uint64_t omsg1:1;
  659. uint64_t omsg0:1;
  660. uint64_t link_up:1;
  661. uint64_t link_dwn:1;
  662. uint64_t phy_erb:1;
  663. uint64_t log_erb:1;
  664. uint64_t soft_rx:1;
  665. uint64_t soft_tx:1;
  666. uint64_t mce_rx:1;
  667. uint64_t mce_tx:1;
  668. uint64_t wr_done:1;
  669. uint64_t sli_err:1;
  670. uint64_t deny_wr:1;
  671. uint64_t bar_err:1;
  672. uint64_t maint_op:1;
  673. uint64_t rxbell:1;
  674. uint64_t bell_err:1;
  675. uint64_t txbell:1;
  676. #else
  677. uint64_t txbell:1;
  678. uint64_t bell_err:1;
  679. uint64_t rxbell:1;
  680. uint64_t maint_op:1;
  681. uint64_t bar_err:1;
  682. uint64_t deny_wr:1;
  683. uint64_t sli_err:1;
  684. uint64_t wr_done:1;
  685. uint64_t mce_tx:1;
  686. uint64_t mce_rx:1;
  687. uint64_t soft_tx:1;
  688. uint64_t soft_rx:1;
  689. uint64_t log_erb:1;
  690. uint64_t phy_erb:1;
  691. uint64_t link_dwn:1;
  692. uint64_t link_up:1;
  693. uint64_t omsg0:1;
  694. uint64_t omsg1:1;
  695. uint64_t omsg_err:1;
  696. uint64_t pko_err:1;
  697. uint64_t rtry_err:1;
  698. uint64_t f_error:1;
  699. uint64_t reserved_22_63:42;
  700. #endif
  701. } cn63xxp1;
  702. struct cvmx_sriox_int_enable_s cn66xx;
  703. };
  704. union cvmx_sriox_int_info0 {
  705. uint64_t u64;
  706. struct cvmx_sriox_int_info0_s {
  707. #ifdef __BIG_ENDIAN_BITFIELD
  708. uint64_t cmd:4;
  709. uint64_t type:4;
  710. uint64_t tag:8;
  711. uint64_t reserved_42_47:6;
  712. uint64_t length:10;
  713. uint64_t status:3;
  714. uint64_t reserved_16_28:13;
  715. uint64_t be0:8;
  716. uint64_t be1:8;
  717. #else
  718. uint64_t be1:8;
  719. uint64_t be0:8;
  720. uint64_t reserved_16_28:13;
  721. uint64_t status:3;
  722. uint64_t length:10;
  723. uint64_t reserved_42_47:6;
  724. uint64_t tag:8;
  725. uint64_t type:4;
  726. uint64_t cmd:4;
  727. #endif
  728. } s;
  729. struct cvmx_sriox_int_info0_s cn63xx;
  730. struct cvmx_sriox_int_info0_s cn63xxp1;
  731. struct cvmx_sriox_int_info0_s cn66xx;
  732. };
  733. union cvmx_sriox_int_info1 {
  734. uint64_t u64;
  735. struct cvmx_sriox_int_info1_s {
  736. #ifdef __BIG_ENDIAN_BITFIELD
  737. uint64_t info1:64;
  738. #else
  739. uint64_t info1:64;
  740. #endif
  741. } s;
  742. struct cvmx_sriox_int_info1_s cn63xx;
  743. struct cvmx_sriox_int_info1_s cn63xxp1;
  744. struct cvmx_sriox_int_info1_s cn66xx;
  745. };
  746. union cvmx_sriox_int_info2 {
  747. uint64_t u64;
  748. struct cvmx_sriox_int_info2_s {
  749. #ifdef __BIG_ENDIAN_BITFIELD
  750. uint64_t prio:2;
  751. uint64_t tt:1;
  752. uint64_t sis:1;
  753. uint64_t ssize:4;
  754. uint64_t did:16;
  755. uint64_t xmbox:4;
  756. uint64_t mbox:2;
  757. uint64_t letter:2;
  758. uint64_t rsrvd:30;
  759. uint64_t lns:1;
  760. uint64_t intr:1;
  761. #else
  762. uint64_t intr:1;
  763. uint64_t lns:1;
  764. uint64_t rsrvd:30;
  765. uint64_t letter:2;
  766. uint64_t mbox:2;
  767. uint64_t xmbox:4;
  768. uint64_t did:16;
  769. uint64_t ssize:4;
  770. uint64_t sis:1;
  771. uint64_t tt:1;
  772. uint64_t prio:2;
  773. #endif
  774. } s;
  775. struct cvmx_sriox_int_info2_s cn63xx;
  776. struct cvmx_sriox_int_info2_s cn63xxp1;
  777. struct cvmx_sriox_int_info2_s cn66xx;
  778. };
  779. union cvmx_sriox_int_info3 {
  780. uint64_t u64;
  781. struct cvmx_sriox_int_info3_s {
  782. #ifdef __BIG_ENDIAN_BITFIELD
  783. uint64_t prio:2;
  784. uint64_t tt:2;
  785. uint64_t type:4;
  786. uint64_t other:48;
  787. uint64_t reserved_0_7:8;
  788. #else
  789. uint64_t reserved_0_7:8;
  790. uint64_t other:48;
  791. uint64_t type:4;
  792. uint64_t tt:2;
  793. uint64_t prio:2;
  794. #endif
  795. } s;
  796. struct cvmx_sriox_int_info3_s cn63xx;
  797. struct cvmx_sriox_int_info3_s cn63xxp1;
  798. struct cvmx_sriox_int_info3_s cn66xx;
  799. };
  800. union cvmx_sriox_int_reg {
  801. uint64_t u64;
  802. struct cvmx_sriox_int_reg_s {
  803. #ifdef __BIG_ENDIAN_BITFIELD
  804. uint64_t reserved_32_63:32;
  805. uint64_t int2_sum:1;
  806. uint64_t reserved_27_30:4;
  807. uint64_t zero_pkt:1;
  808. uint64_t ttl_tout:1;
  809. uint64_t fail:1;
  810. uint64_t degrad:1;
  811. uint64_t mac_buf:1;
  812. uint64_t f_error:1;
  813. uint64_t rtry_err:1;
  814. uint64_t pko_err:1;
  815. uint64_t omsg_err:1;
  816. uint64_t omsg1:1;
  817. uint64_t omsg0:1;
  818. uint64_t link_up:1;
  819. uint64_t link_dwn:1;
  820. uint64_t phy_erb:1;
  821. uint64_t log_erb:1;
  822. uint64_t soft_rx:1;
  823. uint64_t soft_tx:1;
  824. uint64_t mce_rx:1;
  825. uint64_t mce_tx:1;
  826. uint64_t wr_done:1;
  827. uint64_t sli_err:1;
  828. uint64_t deny_wr:1;
  829. uint64_t bar_err:1;
  830. uint64_t maint_op:1;
  831. uint64_t rxbell:1;
  832. uint64_t bell_err:1;
  833. uint64_t txbell:1;
  834. #else
  835. uint64_t txbell:1;
  836. uint64_t bell_err:1;
  837. uint64_t rxbell:1;
  838. uint64_t maint_op:1;
  839. uint64_t bar_err:1;
  840. uint64_t deny_wr:1;
  841. uint64_t sli_err:1;
  842. uint64_t wr_done:1;
  843. uint64_t mce_tx:1;
  844. uint64_t mce_rx:1;
  845. uint64_t soft_tx:1;
  846. uint64_t soft_rx:1;
  847. uint64_t log_erb:1;
  848. uint64_t phy_erb:1;
  849. uint64_t link_dwn:1;
  850. uint64_t link_up:1;
  851. uint64_t omsg0:1;
  852. uint64_t omsg1:1;
  853. uint64_t omsg_err:1;
  854. uint64_t pko_err:1;
  855. uint64_t rtry_err:1;
  856. uint64_t f_error:1;
  857. uint64_t mac_buf:1;
  858. uint64_t degrad:1;
  859. uint64_t fail:1;
  860. uint64_t ttl_tout:1;
  861. uint64_t zero_pkt:1;
  862. uint64_t reserved_27_30:4;
  863. uint64_t int2_sum:1;
  864. uint64_t reserved_32_63:32;
  865. #endif
  866. } s;
  867. struct cvmx_sriox_int_reg_s cn63xx;
  868. struct cvmx_sriox_int_reg_cn63xxp1 {
  869. #ifdef __BIG_ENDIAN_BITFIELD
  870. uint64_t reserved_22_63:42;
  871. uint64_t f_error:1;
  872. uint64_t rtry_err:1;
  873. uint64_t pko_err:1;
  874. uint64_t omsg_err:1;
  875. uint64_t omsg1:1;
  876. uint64_t omsg0:1;
  877. uint64_t link_up:1;
  878. uint64_t link_dwn:1;
  879. uint64_t phy_erb:1;
  880. uint64_t log_erb:1;
  881. uint64_t soft_rx:1;
  882. uint64_t soft_tx:1;
  883. uint64_t mce_rx:1;
  884. uint64_t mce_tx:1;
  885. uint64_t wr_done:1;
  886. uint64_t sli_err:1;
  887. uint64_t deny_wr:1;
  888. uint64_t bar_err:1;
  889. uint64_t maint_op:1;
  890. uint64_t rxbell:1;
  891. uint64_t bell_err:1;
  892. uint64_t txbell:1;
  893. #else
  894. uint64_t txbell:1;
  895. uint64_t bell_err:1;
  896. uint64_t rxbell:1;
  897. uint64_t maint_op:1;
  898. uint64_t bar_err:1;
  899. uint64_t deny_wr:1;
  900. uint64_t sli_err:1;
  901. uint64_t wr_done:1;
  902. uint64_t mce_tx:1;
  903. uint64_t mce_rx:1;
  904. uint64_t soft_tx:1;
  905. uint64_t soft_rx:1;
  906. uint64_t log_erb:1;
  907. uint64_t phy_erb:1;
  908. uint64_t link_dwn:1;
  909. uint64_t link_up:1;
  910. uint64_t omsg0:1;
  911. uint64_t omsg1:1;
  912. uint64_t omsg_err:1;
  913. uint64_t pko_err:1;
  914. uint64_t rtry_err:1;
  915. uint64_t f_error:1;
  916. uint64_t reserved_22_63:42;
  917. #endif
  918. } cn63xxp1;
  919. struct cvmx_sriox_int_reg_s cn66xx;
  920. };
  921. union cvmx_sriox_ip_feature {
  922. uint64_t u64;
  923. struct cvmx_sriox_ip_feature_s {
  924. #ifdef __BIG_ENDIAN_BITFIELD
  925. uint64_t ops:32;
  926. uint64_t reserved_15_31:17;
  927. uint64_t no_vmin:1;
  928. uint64_t a66:1;
  929. uint64_t a50:1;
  930. uint64_t reserved_11_11:1;
  931. uint64_t tx_flow:1;
  932. uint64_t pt_width:2;
  933. uint64_t tx_pol:4;
  934. uint64_t rx_pol:4;
  935. #else
  936. uint64_t rx_pol:4;
  937. uint64_t tx_pol:4;
  938. uint64_t pt_width:2;
  939. uint64_t tx_flow:1;
  940. uint64_t reserved_11_11:1;
  941. uint64_t a50:1;
  942. uint64_t a66:1;
  943. uint64_t no_vmin:1;
  944. uint64_t reserved_15_31:17;
  945. uint64_t ops:32;
  946. #endif
  947. } s;
  948. struct cvmx_sriox_ip_feature_cn63xx {
  949. #ifdef __BIG_ENDIAN_BITFIELD
  950. uint64_t ops:32;
  951. uint64_t reserved_14_31:18;
  952. uint64_t a66:1;
  953. uint64_t a50:1;
  954. uint64_t reserved_11_11:1;
  955. uint64_t tx_flow:1;
  956. uint64_t pt_width:2;
  957. uint64_t tx_pol:4;
  958. uint64_t rx_pol:4;
  959. #else
  960. uint64_t rx_pol:4;
  961. uint64_t tx_pol:4;
  962. uint64_t pt_width:2;
  963. uint64_t tx_flow:1;
  964. uint64_t reserved_11_11:1;
  965. uint64_t a50:1;
  966. uint64_t a66:1;
  967. uint64_t reserved_14_31:18;
  968. uint64_t ops:32;
  969. #endif
  970. } cn63xx;
  971. struct cvmx_sriox_ip_feature_cn63xx cn63xxp1;
  972. struct cvmx_sriox_ip_feature_s cn66xx;
  973. };
  974. union cvmx_sriox_mac_buffers {
  975. uint64_t u64;
  976. struct cvmx_sriox_mac_buffers_s {
  977. #ifdef __BIG_ENDIAN_BITFIELD
  978. uint64_t reserved_56_63:8;
  979. uint64_t tx_enb:8;
  980. uint64_t reserved_44_47:4;
  981. uint64_t tx_inuse:4;
  982. uint64_t tx_stat:8;
  983. uint64_t reserved_24_31:8;
  984. uint64_t rx_enb:8;
  985. uint64_t reserved_12_15:4;
  986. uint64_t rx_inuse:4;
  987. uint64_t rx_stat:8;
  988. #else
  989. uint64_t rx_stat:8;
  990. uint64_t rx_inuse:4;
  991. uint64_t reserved_12_15:4;
  992. uint64_t rx_enb:8;
  993. uint64_t reserved_24_31:8;
  994. uint64_t tx_stat:8;
  995. uint64_t tx_inuse:4;
  996. uint64_t reserved_44_47:4;
  997. uint64_t tx_enb:8;
  998. uint64_t reserved_56_63:8;
  999. #endif
  1000. } s;
  1001. struct cvmx_sriox_mac_buffers_s cn63xx;
  1002. struct cvmx_sriox_mac_buffers_s cn66xx;
  1003. };
  1004. union cvmx_sriox_maint_op {
  1005. uint64_t u64;
  1006. struct cvmx_sriox_maint_op_s {
  1007. #ifdef __BIG_ENDIAN_BITFIELD
  1008. uint64_t wr_data:32;
  1009. uint64_t reserved_27_31:5;
  1010. uint64_t fail:1;
  1011. uint64_t pending:1;
  1012. uint64_t op:1;
  1013. uint64_t addr:24;
  1014. #else
  1015. uint64_t addr:24;
  1016. uint64_t op:1;
  1017. uint64_t pending:1;
  1018. uint64_t fail:1;
  1019. uint64_t reserved_27_31:5;
  1020. uint64_t wr_data:32;
  1021. #endif
  1022. } s;
  1023. struct cvmx_sriox_maint_op_s cn63xx;
  1024. struct cvmx_sriox_maint_op_s cn63xxp1;
  1025. struct cvmx_sriox_maint_op_s cn66xx;
  1026. };
  1027. union cvmx_sriox_maint_rd_data {
  1028. uint64_t u64;
  1029. struct cvmx_sriox_maint_rd_data_s {
  1030. #ifdef __BIG_ENDIAN_BITFIELD
  1031. uint64_t reserved_33_63:31;
  1032. uint64_t valid:1;
  1033. uint64_t rd_data:32;
  1034. #else
  1035. uint64_t rd_data:32;
  1036. uint64_t valid:1;
  1037. uint64_t reserved_33_63:31;
  1038. #endif
  1039. } s;
  1040. struct cvmx_sriox_maint_rd_data_s cn63xx;
  1041. struct cvmx_sriox_maint_rd_data_s cn63xxp1;
  1042. struct cvmx_sriox_maint_rd_data_s cn66xx;
  1043. };
  1044. union cvmx_sriox_mce_tx_ctl {
  1045. uint64_t u64;
  1046. struct cvmx_sriox_mce_tx_ctl_s {
  1047. #ifdef __BIG_ENDIAN_BITFIELD
  1048. uint64_t reserved_1_63:63;
  1049. uint64_t mce:1;
  1050. #else
  1051. uint64_t mce:1;
  1052. uint64_t reserved_1_63:63;
  1053. #endif
  1054. } s;
  1055. struct cvmx_sriox_mce_tx_ctl_s cn63xx;
  1056. struct cvmx_sriox_mce_tx_ctl_s cn63xxp1;
  1057. struct cvmx_sriox_mce_tx_ctl_s cn66xx;
  1058. };
  1059. union cvmx_sriox_mem_op_ctrl {
  1060. uint64_t u64;
  1061. struct cvmx_sriox_mem_op_ctrl_s {
  1062. #ifdef __BIG_ENDIAN_BITFIELD
  1063. uint64_t reserved_10_63:54;
  1064. uint64_t rr_ro:1;
  1065. uint64_t w_ro:1;
  1066. uint64_t reserved_6_7:2;
  1067. uint64_t rp1_sid:1;
  1068. uint64_t rp0_sid:2;
  1069. uint64_t rp1_pid:1;
  1070. uint64_t rp0_pid:2;
  1071. #else
  1072. uint64_t rp0_pid:2;
  1073. uint64_t rp1_pid:1;
  1074. uint64_t rp0_sid:2;
  1075. uint64_t rp1_sid:1;
  1076. uint64_t reserved_6_7:2;
  1077. uint64_t w_ro:1;
  1078. uint64_t rr_ro:1;
  1079. uint64_t reserved_10_63:54;
  1080. #endif
  1081. } s;
  1082. struct cvmx_sriox_mem_op_ctrl_s cn63xx;
  1083. struct cvmx_sriox_mem_op_ctrl_s cn63xxp1;
  1084. struct cvmx_sriox_mem_op_ctrl_s cn66xx;
  1085. };
  1086. union cvmx_sriox_omsg_ctrlx {
  1087. uint64_t u64;
  1088. struct cvmx_sriox_omsg_ctrlx_s {
  1089. #ifdef __BIG_ENDIAN_BITFIELD
  1090. uint64_t testmode:1;
  1091. uint64_t reserved_37_62:26;
  1092. uint64_t silo_max:5;
  1093. uint64_t rtry_thr:16;
  1094. uint64_t rtry_en:1;
  1095. uint64_t reserved_11_14:4;
  1096. uint64_t idm_tt:1;
  1097. uint64_t idm_sis:1;
  1098. uint64_t idm_did:1;
  1099. uint64_t lttr_sp:4;
  1100. uint64_t lttr_mp:4;
  1101. #else
  1102. uint64_t lttr_mp:4;
  1103. uint64_t lttr_sp:4;
  1104. uint64_t idm_did:1;
  1105. uint64_t idm_sis:1;
  1106. uint64_t idm_tt:1;
  1107. uint64_t reserved_11_14:4;
  1108. uint64_t rtry_en:1;
  1109. uint64_t rtry_thr:16;
  1110. uint64_t silo_max:5;
  1111. uint64_t reserved_37_62:26;
  1112. uint64_t testmode:1;
  1113. #endif
  1114. } s;
  1115. struct cvmx_sriox_omsg_ctrlx_s cn63xx;
  1116. struct cvmx_sriox_omsg_ctrlx_cn63xxp1 {
  1117. #ifdef __BIG_ENDIAN_BITFIELD
  1118. uint64_t testmode:1;
  1119. uint64_t reserved_32_62:31;
  1120. uint64_t rtry_thr:16;
  1121. uint64_t rtry_en:1;
  1122. uint64_t reserved_11_14:4;
  1123. uint64_t idm_tt:1;
  1124. uint64_t idm_sis:1;
  1125. uint64_t idm_did:1;
  1126. uint64_t lttr_sp:4;
  1127. uint64_t lttr_mp:4;
  1128. #else
  1129. uint64_t lttr_mp:4;
  1130. uint64_t lttr_sp:4;
  1131. uint64_t idm_did:1;
  1132. uint64_t idm_sis:1;
  1133. uint64_t idm_tt:1;
  1134. uint64_t reserved_11_14:4;
  1135. uint64_t rtry_en:1;
  1136. uint64_t rtry_thr:16;
  1137. uint64_t reserved_32_62:31;
  1138. uint64_t testmode:1;
  1139. #endif
  1140. } cn63xxp1;
  1141. struct cvmx_sriox_omsg_ctrlx_s cn66xx;
  1142. };
  1143. union cvmx_sriox_omsg_done_countsx {
  1144. uint64_t u64;
  1145. struct cvmx_sriox_omsg_done_countsx_s {
  1146. #ifdef __BIG_ENDIAN_BITFIELD
  1147. uint64_t reserved_32_63:32;
  1148. uint64_t bad:16;
  1149. uint64_t good:16;
  1150. #else
  1151. uint64_t good:16;
  1152. uint64_t bad:16;
  1153. uint64_t reserved_32_63:32;
  1154. #endif
  1155. } s;
  1156. struct cvmx_sriox_omsg_done_countsx_s cn63xx;
  1157. struct cvmx_sriox_omsg_done_countsx_s cn66xx;
  1158. };
  1159. union cvmx_sriox_omsg_fmp_mrx {
  1160. uint64_t u64;
  1161. struct cvmx_sriox_omsg_fmp_mrx_s {
  1162. #ifdef __BIG_ENDIAN_BITFIELD
  1163. uint64_t reserved_15_63:49;
  1164. uint64_t ctlr_sp:1;
  1165. uint64_t ctlr_fmp:1;
  1166. uint64_t ctlr_nmp:1;
  1167. uint64_t id_sp:1;
  1168. uint64_t id_fmp:1;
  1169. uint64_t id_nmp:1;
  1170. uint64_t id_psd:1;
  1171. uint64_t mbox_sp:1;
  1172. uint64_t mbox_fmp:1;
  1173. uint64_t mbox_nmp:1;
  1174. uint64_t mbox_psd:1;
  1175. uint64_t all_sp:1;
  1176. uint64_t all_fmp:1;
  1177. uint64_t all_nmp:1;
  1178. uint64_t all_psd:1;
  1179. #else
  1180. uint64_t all_psd:1;
  1181. uint64_t all_nmp:1;
  1182. uint64_t all_fmp:1;
  1183. uint64_t all_sp:1;
  1184. uint64_t mbox_psd:1;
  1185. uint64_t mbox_nmp:1;
  1186. uint64_t mbox_fmp:1;
  1187. uint64_t mbox_sp:1;
  1188. uint64_t id_psd:1;
  1189. uint64_t id_nmp:1;
  1190. uint64_t id_fmp:1;
  1191. uint64_t id_sp:1;
  1192. uint64_t ctlr_nmp:1;
  1193. uint64_t ctlr_fmp:1;
  1194. uint64_t ctlr_sp:1;
  1195. uint64_t reserved_15_63:49;
  1196. #endif
  1197. } s;
  1198. struct cvmx_sriox_omsg_fmp_mrx_s cn63xx;
  1199. struct cvmx_sriox_omsg_fmp_mrx_s cn63xxp1;
  1200. struct cvmx_sriox_omsg_fmp_mrx_s cn66xx;
  1201. };
  1202. union cvmx_sriox_omsg_nmp_mrx {
  1203. uint64_t u64;
  1204. struct cvmx_sriox_omsg_nmp_mrx_s {
  1205. #ifdef __BIG_ENDIAN_BITFIELD
  1206. uint64_t reserved_15_63:49;
  1207. uint64_t ctlr_sp:1;
  1208. uint64_t ctlr_fmp:1;
  1209. uint64_t ctlr_nmp:1;
  1210. uint64_t id_sp:1;
  1211. uint64_t id_fmp:1;
  1212. uint64_t id_nmp:1;
  1213. uint64_t reserved_8_8:1;
  1214. uint64_t mbox_sp:1;
  1215. uint64_t mbox_fmp:1;
  1216. uint64_t mbox_nmp:1;
  1217. uint64_t reserved_4_4:1;
  1218. uint64_t all_sp:1;
  1219. uint64_t all_fmp:1;
  1220. uint64_t all_nmp:1;
  1221. uint64_t reserved_0_0:1;
  1222. #else
  1223. uint64_t reserved_0_0:1;
  1224. uint64_t all_nmp:1;
  1225. uint64_t all_fmp:1;
  1226. uint64_t all_sp:1;
  1227. uint64_t reserved_4_4:1;
  1228. uint64_t mbox_nmp:1;
  1229. uint64_t mbox_fmp:1;
  1230. uint64_t mbox_sp:1;
  1231. uint64_t reserved_8_8:1;
  1232. uint64_t id_nmp:1;
  1233. uint64_t id_fmp:1;
  1234. uint64_t id_sp:1;
  1235. uint64_t ctlr_nmp:1;
  1236. uint64_t ctlr_fmp:1;
  1237. uint64_t ctlr_sp:1;
  1238. uint64_t reserved_15_63:49;
  1239. #endif
  1240. } s;
  1241. struct cvmx_sriox_omsg_nmp_mrx_s cn63xx;
  1242. struct cvmx_sriox_omsg_nmp_mrx_s cn63xxp1;
  1243. struct cvmx_sriox_omsg_nmp_mrx_s cn66xx;
  1244. };
  1245. union cvmx_sriox_omsg_portx {
  1246. uint64_t u64;
  1247. struct cvmx_sriox_omsg_portx_s {
  1248. #ifdef __BIG_ENDIAN_BITFIELD
  1249. uint64_t reserved_32_63:32;
  1250. uint64_t enable:1;
  1251. uint64_t reserved_3_30:28;
  1252. uint64_t port:3;
  1253. #else
  1254. uint64_t port:3;
  1255. uint64_t reserved_3_30:28;
  1256. uint64_t enable:1;
  1257. uint64_t reserved_32_63:32;
  1258. #endif
  1259. } s;
  1260. struct cvmx_sriox_omsg_portx_cn63xx {
  1261. #ifdef __BIG_ENDIAN_BITFIELD
  1262. uint64_t reserved_32_63:32;
  1263. uint64_t enable:1;
  1264. uint64_t reserved_2_30:29;
  1265. uint64_t port:2;
  1266. #else
  1267. uint64_t port:2;
  1268. uint64_t reserved_2_30:29;
  1269. uint64_t enable:1;
  1270. uint64_t reserved_32_63:32;
  1271. #endif
  1272. } cn63xx;
  1273. struct cvmx_sriox_omsg_portx_cn63xx cn63xxp1;
  1274. struct cvmx_sriox_omsg_portx_s cn66xx;
  1275. };
  1276. union cvmx_sriox_omsg_silo_thr {
  1277. uint64_t u64;
  1278. struct cvmx_sriox_omsg_silo_thr_s {
  1279. #ifdef __BIG_ENDIAN_BITFIELD
  1280. uint64_t reserved_5_63:59;
  1281. uint64_t tot_silo:5;
  1282. #else
  1283. uint64_t tot_silo:5;
  1284. uint64_t reserved_5_63:59;
  1285. #endif
  1286. } s;
  1287. struct cvmx_sriox_omsg_silo_thr_s cn63xx;
  1288. struct cvmx_sriox_omsg_silo_thr_s cn66xx;
  1289. };
  1290. union cvmx_sriox_omsg_sp_mrx {
  1291. uint64_t u64;
  1292. struct cvmx_sriox_omsg_sp_mrx_s {
  1293. #ifdef __BIG_ENDIAN_BITFIELD
  1294. uint64_t reserved_16_63:48;
  1295. uint64_t xmbox_sp:1;
  1296. uint64_t ctlr_sp:1;
  1297. uint64_t ctlr_fmp:1;
  1298. uint64_t ctlr_nmp:1;
  1299. uint64_t id_sp:1;
  1300. uint64_t id_fmp:1;
  1301. uint64_t id_nmp:1;
  1302. uint64_t id_psd:1;
  1303. uint64_t mbox_sp:1;
  1304. uint64_t mbox_fmp:1;
  1305. uint64_t mbox_nmp:1;
  1306. uint64_t mbox_psd:1;
  1307. uint64_t all_sp:1;
  1308. uint64_t all_fmp:1;
  1309. uint64_t all_nmp:1;
  1310. uint64_t all_psd:1;
  1311. #else
  1312. uint64_t all_psd:1;
  1313. uint64_t all_nmp:1;
  1314. uint64_t all_fmp:1;
  1315. uint64_t all_sp:1;
  1316. uint64_t mbox_psd:1;
  1317. uint64_t mbox_nmp:1;
  1318. uint64_t mbox_fmp:1;
  1319. uint64_t mbox_sp:1;
  1320. uint64_t id_psd:1;
  1321. uint64_t id_nmp:1;
  1322. uint64_t id_fmp:1;
  1323. uint64_t id_sp:1;
  1324. uint64_t ctlr_nmp:1;
  1325. uint64_t ctlr_fmp:1;
  1326. uint64_t ctlr_sp:1;
  1327. uint64_t xmbox_sp:1;
  1328. uint64_t reserved_16_63:48;
  1329. #endif
  1330. } s;
  1331. struct cvmx_sriox_omsg_sp_mrx_s cn63xx;
  1332. struct cvmx_sriox_omsg_sp_mrx_s cn63xxp1;
  1333. struct cvmx_sriox_omsg_sp_mrx_s cn66xx;
  1334. };
  1335. union cvmx_sriox_priox_in_use {
  1336. uint64_t u64;
  1337. struct cvmx_sriox_priox_in_use_s {
  1338. #ifdef __BIG_ENDIAN_BITFIELD
  1339. uint64_t reserved_32_63:32;
  1340. uint64_t end_cnt:16;
  1341. uint64_t start_cnt:16;
  1342. #else
  1343. uint64_t start_cnt:16;
  1344. uint64_t end_cnt:16;
  1345. uint64_t reserved_32_63:32;
  1346. #endif
  1347. } s;
  1348. struct cvmx_sriox_priox_in_use_s cn63xx;
  1349. struct cvmx_sriox_priox_in_use_s cn66xx;
  1350. };
  1351. union cvmx_sriox_rx_bell {
  1352. uint64_t u64;
  1353. struct cvmx_sriox_rx_bell_s {
  1354. #ifdef __BIG_ENDIAN_BITFIELD
  1355. uint64_t reserved_48_63:16;
  1356. uint64_t data:16;
  1357. uint64_t src_id:16;
  1358. uint64_t count:8;
  1359. uint64_t reserved_5_7:3;
  1360. uint64_t dest_id:1;
  1361. uint64_t id16:1;
  1362. uint64_t reserved_2_2:1;
  1363. uint64_t priority:2;
  1364. #else
  1365. uint64_t priority:2;
  1366. uint64_t reserved_2_2:1;
  1367. uint64_t id16:1;
  1368. uint64_t dest_id:1;
  1369. uint64_t reserved_5_7:3;
  1370. uint64_t count:8;
  1371. uint64_t src_id:16;
  1372. uint64_t data:16;
  1373. uint64_t reserved_48_63:16;
  1374. #endif
  1375. } s;
  1376. struct cvmx_sriox_rx_bell_s cn63xx;
  1377. struct cvmx_sriox_rx_bell_s cn63xxp1;
  1378. struct cvmx_sriox_rx_bell_s cn66xx;
  1379. };
  1380. union cvmx_sriox_rx_bell_seq {
  1381. uint64_t u64;
  1382. struct cvmx_sriox_rx_bell_seq_s {
  1383. #ifdef __BIG_ENDIAN_BITFIELD
  1384. uint64_t reserved_40_63:24;
  1385. uint64_t count:8;
  1386. uint64_t seq:32;
  1387. #else
  1388. uint64_t seq:32;
  1389. uint64_t count:8;
  1390. uint64_t reserved_40_63:24;
  1391. #endif
  1392. } s;
  1393. struct cvmx_sriox_rx_bell_seq_s cn63xx;
  1394. struct cvmx_sriox_rx_bell_seq_s cn63xxp1;
  1395. struct cvmx_sriox_rx_bell_seq_s cn66xx;
  1396. };
  1397. union cvmx_sriox_rx_status {
  1398. uint64_t u64;
  1399. struct cvmx_sriox_rx_status_s {
  1400. #ifdef __BIG_ENDIAN_BITFIELD
  1401. uint64_t rtn_pr3:8;
  1402. uint64_t rtn_pr2:8;
  1403. uint64_t rtn_pr1:8;
  1404. uint64_t reserved_28_39:12;
  1405. uint64_t mbox:4;
  1406. uint64_t comp:8;
  1407. uint64_t reserved_13_15:3;
  1408. uint64_t n_post:5;
  1409. uint64_t post:8;
  1410. #else
  1411. uint64_t post:8;
  1412. uint64_t n_post:5;
  1413. uint64_t reserved_13_15:3;
  1414. uint64_t comp:8;
  1415. uint64_t mbox:4;
  1416. uint64_t reserved_28_39:12;
  1417. uint64_t rtn_pr1:8;
  1418. uint64_t rtn_pr2:8;
  1419. uint64_t rtn_pr3:8;
  1420. #endif
  1421. } s;
  1422. struct cvmx_sriox_rx_status_s cn63xx;
  1423. struct cvmx_sriox_rx_status_s cn63xxp1;
  1424. struct cvmx_sriox_rx_status_s cn66xx;
  1425. };
  1426. union cvmx_sriox_s2m_typex {
  1427. uint64_t u64;
  1428. struct cvmx_sriox_s2m_typex_s {
  1429. #ifdef __BIG_ENDIAN_BITFIELD
  1430. uint64_t reserved_19_63:45;
  1431. uint64_t wr_op:3;
  1432. uint64_t reserved_15_15:1;
  1433. uint64_t rd_op:3;
  1434. uint64_t wr_prior:2;
  1435. uint64_t rd_prior:2;
  1436. uint64_t reserved_6_7:2;
  1437. uint64_t src_id:1;
  1438. uint64_t id16:1;
  1439. uint64_t reserved_2_3:2;
  1440. uint64_t iaow_sel:2;
  1441. #else
  1442. uint64_t iaow_sel:2;
  1443. uint64_t reserved_2_3:2;
  1444. uint64_t id16:1;
  1445. uint64_t src_id:1;
  1446. uint64_t reserved_6_7:2;
  1447. uint64_t rd_prior:2;
  1448. uint64_t wr_prior:2;
  1449. uint64_t rd_op:3;
  1450. uint64_t reserved_15_15:1;
  1451. uint64_t wr_op:3;
  1452. uint64_t reserved_19_63:45;
  1453. #endif
  1454. } s;
  1455. struct cvmx_sriox_s2m_typex_s cn63xx;
  1456. struct cvmx_sriox_s2m_typex_s cn63xxp1;
  1457. struct cvmx_sriox_s2m_typex_s cn66xx;
  1458. };
  1459. union cvmx_sriox_seq {
  1460. uint64_t u64;
  1461. struct cvmx_sriox_seq_s {
  1462. #ifdef __BIG_ENDIAN_BITFIELD
  1463. uint64_t reserved_32_63:32;
  1464. uint64_t seq:32;
  1465. #else
  1466. uint64_t seq:32;
  1467. uint64_t reserved_32_63:32;
  1468. #endif
  1469. } s;
  1470. struct cvmx_sriox_seq_s cn63xx;
  1471. struct cvmx_sriox_seq_s cn63xxp1;
  1472. struct cvmx_sriox_seq_s cn66xx;
  1473. };
  1474. union cvmx_sriox_status_reg {
  1475. uint64_t u64;
  1476. struct cvmx_sriox_status_reg_s {
  1477. #ifdef __BIG_ENDIAN_BITFIELD
  1478. uint64_t reserved_2_63:62;
  1479. uint64_t access:1;
  1480. uint64_t srio:1;
  1481. #else
  1482. uint64_t srio:1;
  1483. uint64_t access:1;
  1484. uint64_t reserved_2_63:62;
  1485. #endif
  1486. } s;
  1487. struct cvmx_sriox_status_reg_s cn63xx;
  1488. struct cvmx_sriox_status_reg_s cn63xxp1;
  1489. struct cvmx_sriox_status_reg_s cn66xx;
  1490. };
  1491. union cvmx_sriox_tag_ctrl {
  1492. uint64_t u64;
  1493. struct cvmx_sriox_tag_ctrl_s {
  1494. #ifdef __BIG_ENDIAN_BITFIELD
  1495. uint64_t reserved_17_63:47;
  1496. uint64_t o_clr:1;
  1497. uint64_t reserved_13_15:3;
  1498. uint64_t otag:5;
  1499. uint64_t reserved_5_7:3;
  1500. uint64_t itag:5;
  1501. #else
  1502. uint64_t itag:5;
  1503. uint64_t reserved_5_7:3;
  1504. uint64_t otag:5;
  1505. uint64_t reserved_13_15:3;
  1506. uint64_t o_clr:1;
  1507. uint64_t reserved_17_63:47;
  1508. #endif
  1509. } s;
  1510. struct cvmx_sriox_tag_ctrl_s cn63xx;
  1511. struct cvmx_sriox_tag_ctrl_s cn63xxp1;
  1512. struct cvmx_sriox_tag_ctrl_s cn66xx;
  1513. };
  1514. union cvmx_sriox_tlp_credits {
  1515. uint64_t u64;
  1516. struct cvmx_sriox_tlp_credits_s {
  1517. #ifdef __BIG_ENDIAN_BITFIELD
  1518. uint64_t reserved_28_63:36;
  1519. uint64_t mbox:4;
  1520. uint64_t comp:8;
  1521. uint64_t reserved_13_15:3;
  1522. uint64_t n_post:5;
  1523. uint64_t post:8;
  1524. #else
  1525. uint64_t post:8;
  1526. uint64_t n_post:5;
  1527. uint64_t reserved_13_15:3;
  1528. uint64_t comp:8;
  1529. uint64_t mbox:4;
  1530. uint64_t reserved_28_63:36;
  1531. #endif
  1532. } s;
  1533. struct cvmx_sriox_tlp_credits_s cn63xx;
  1534. struct cvmx_sriox_tlp_credits_s cn63xxp1;
  1535. struct cvmx_sriox_tlp_credits_s cn66xx;
  1536. };
  1537. union cvmx_sriox_tx_bell {
  1538. uint64_t u64;
  1539. struct cvmx_sriox_tx_bell_s {
  1540. #ifdef __BIG_ENDIAN_BITFIELD
  1541. uint64_t reserved_48_63:16;
  1542. uint64_t data:16;
  1543. uint64_t dest_id:16;
  1544. uint64_t reserved_9_15:7;
  1545. uint64_t pending:1;
  1546. uint64_t reserved_5_7:3;
  1547. uint64_t src_id:1;
  1548. uint64_t id16:1;
  1549. uint64_t reserved_2_2:1;
  1550. uint64_t priority:2;
  1551. #else
  1552. uint64_t priority:2;
  1553. uint64_t reserved_2_2:1;
  1554. uint64_t id16:1;
  1555. uint64_t src_id:1;
  1556. uint64_t reserved_5_7:3;
  1557. uint64_t pending:1;
  1558. uint64_t reserved_9_15:7;
  1559. uint64_t dest_id:16;
  1560. uint64_t data:16;
  1561. uint64_t reserved_48_63:16;
  1562. #endif
  1563. } s;
  1564. struct cvmx_sriox_tx_bell_s cn63xx;
  1565. struct cvmx_sriox_tx_bell_s cn63xxp1;
  1566. struct cvmx_sriox_tx_bell_s cn66xx;
  1567. };
  1568. union cvmx_sriox_tx_bell_info {
  1569. uint64_t u64;
  1570. struct cvmx_sriox_tx_bell_info_s {
  1571. #ifdef __BIG_ENDIAN_BITFIELD
  1572. uint64_t reserved_48_63:16;
  1573. uint64_t data:16;
  1574. uint64_t dest_id:16;
  1575. uint64_t reserved_8_15:8;
  1576. uint64_t timeout:1;
  1577. uint64_t error:1;
  1578. uint64_t retry:1;
  1579. uint64_t src_id:1;
  1580. uint64_t id16:1;
  1581. uint64_t reserved_2_2:1;
  1582. uint64_t priority:2;
  1583. #else
  1584. uint64_t priority:2;
  1585. uint64_t reserved_2_2:1;
  1586. uint64_t id16:1;
  1587. uint64_t src_id:1;
  1588. uint64_t retry:1;
  1589. uint64_t error:1;
  1590. uint64_t timeout:1;
  1591. uint64_t reserved_8_15:8;
  1592. uint64_t dest_id:16;
  1593. uint64_t data:16;
  1594. uint64_t reserved_48_63:16;
  1595. #endif
  1596. } s;
  1597. struct cvmx_sriox_tx_bell_info_s cn63xx;
  1598. struct cvmx_sriox_tx_bell_info_s cn63xxp1;
  1599. struct cvmx_sriox_tx_bell_info_s cn66xx;
  1600. };
  1601. union cvmx_sriox_tx_ctrl {
  1602. uint64_t u64;
  1603. struct cvmx_sriox_tx_ctrl_s {
  1604. #ifdef __BIG_ENDIAN_BITFIELD
  1605. uint64_t reserved_53_63:11;
  1606. uint64_t tag_th2:5;
  1607. uint64_t reserved_45_47:3;
  1608. uint64_t tag_th1:5;
  1609. uint64_t reserved_37_39:3;
  1610. uint64_t tag_th0:5;
  1611. uint64_t reserved_20_31:12;
  1612. uint64_t tx_th2:4;
  1613. uint64_t reserved_12_15:4;
  1614. uint64_t tx_th1:4;
  1615. uint64_t reserved_4_7:4;
  1616. uint64_t tx_th0:4;
  1617. #else
  1618. uint64_t tx_th0:4;
  1619. uint64_t reserved_4_7:4;
  1620. uint64_t tx_th1:4;
  1621. uint64_t reserved_12_15:4;
  1622. uint64_t tx_th2:4;
  1623. uint64_t reserved_20_31:12;
  1624. uint64_t tag_th0:5;
  1625. uint64_t reserved_37_39:3;
  1626. uint64_t tag_th1:5;
  1627. uint64_t reserved_45_47:3;
  1628. uint64_t tag_th2:5;
  1629. uint64_t reserved_53_63:11;
  1630. #endif
  1631. } s;
  1632. struct cvmx_sriox_tx_ctrl_s cn63xx;
  1633. struct cvmx_sriox_tx_ctrl_s cn63xxp1;
  1634. struct cvmx_sriox_tx_ctrl_s cn66xx;
  1635. };
  1636. union cvmx_sriox_tx_emphasis {
  1637. uint64_t u64;
  1638. struct cvmx_sriox_tx_emphasis_s {
  1639. #ifdef __BIG_ENDIAN_BITFIELD
  1640. uint64_t reserved_4_63:60;
  1641. uint64_t emph:4;
  1642. #else
  1643. uint64_t emph:4;
  1644. uint64_t reserved_4_63:60;
  1645. #endif
  1646. } s;
  1647. struct cvmx_sriox_tx_emphasis_s cn63xx;
  1648. struct cvmx_sriox_tx_emphasis_s cn66xx;
  1649. };
  1650. union cvmx_sriox_tx_status {
  1651. uint64_t u64;
  1652. struct cvmx_sriox_tx_status_s {
  1653. #ifdef __BIG_ENDIAN_BITFIELD
  1654. uint64_t reserved_32_63:32;
  1655. uint64_t s2m_pr3:8;
  1656. uint64_t s2m_pr2:8;
  1657. uint64_t s2m_pr1:8;
  1658. uint64_t s2m_pr0:8;
  1659. #else
  1660. uint64_t s2m_pr0:8;
  1661. uint64_t s2m_pr1:8;
  1662. uint64_t s2m_pr2:8;
  1663. uint64_t s2m_pr3:8;
  1664. uint64_t reserved_32_63:32;
  1665. #endif
  1666. } s;
  1667. struct cvmx_sriox_tx_status_s cn63xx;
  1668. struct cvmx_sriox_tx_status_s cn63xxp1;
  1669. struct cvmx_sriox_tx_status_s cn66xx;
  1670. };
  1671. union cvmx_sriox_wr_done_counts {
  1672. uint64_t u64;
  1673. struct cvmx_sriox_wr_done_counts_s {
  1674. #ifdef __BIG_ENDIAN_BITFIELD
  1675. uint64_t reserved_32_63:32;
  1676. uint64_t bad:16;
  1677. uint64_t good:16;
  1678. #else
  1679. uint64_t good:16;
  1680. uint64_t bad:16;
  1681. uint64_t reserved_32_63:32;
  1682. #endif
  1683. } s;
  1684. struct cvmx_sriox_wr_done_counts_s cn63xx;
  1685. struct cvmx_sriox_wr_done_counts_s cn66xx;
  1686. };
  1687. #endif