cvmx-gmxx-defs.h 77 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530
  1. /***********************license start***************
  2. * Author: Cavium Networks
  3. *
  4. * Contact: support@caviumnetworks.com
  5. * This file is part of the OCTEON SDK
  6. *
  7. * Copyright (c) 2003-2008 Cavium Networks
  8. *
  9. * This file is free software; you can redistribute it and/or modify
  10. * it under the terms of the GNU General Public License, Version 2, as
  11. * published by the Free Software Foundation.
  12. *
  13. * This file is distributed in the hope that it will be useful, but
  14. * AS-IS and WITHOUT ANY WARRANTY; without even the implied warranty
  15. * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE, TITLE, or
  16. * NONINFRINGEMENT. See the GNU General Public License for more
  17. * details.
  18. *
  19. * You should have received a copy of the GNU General Public License
  20. * along with this file; if not, write to the Free Software
  21. * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
  22. * or visit http://www.gnu.org/licenses/.
  23. *
  24. * This file may also be available under a different license from Cavium.
  25. * Contact Cavium Networks for more information
  26. ***********************license end**************************************/
  27. #ifndef __CVMX_GMXX_DEFS_H__
  28. #define __CVMX_GMXX_DEFS_H__
  29. #define CVMX_GMXX_BAD_REG(block_id) \
  30. CVMX_ADD_IO_SEG(0x0001180008000518ull + (((block_id) & 1) * 0x8000000ull))
  31. #define CVMX_GMXX_BIST(block_id) \
  32. CVMX_ADD_IO_SEG(0x0001180008000400ull + (((block_id) & 1) * 0x8000000ull))
  33. #define CVMX_GMXX_CLK_EN(block_id) \
  34. CVMX_ADD_IO_SEG(0x00011800080007F0ull + (((block_id) & 1) * 0x8000000ull))
  35. #define CVMX_GMXX_HG2_CONTROL(block_id) \
  36. CVMX_ADD_IO_SEG(0x0001180008000550ull + (((block_id) & 1) * 0x8000000ull))
  37. #define CVMX_GMXX_INF_MODE(block_id) \
  38. CVMX_ADD_IO_SEG(0x00011800080007F8ull + (((block_id) & 1) * 0x8000000ull))
  39. #define CVMX_GMXX_NXA_ADR(block_id) \
  40. CVMX_ADD_IO_SEG(0x0001180008000510ull + (((block_id) & 1) * 0x8000000ull))
  41. #define CVMX_GMXX_PRTX_CBFC_CTL(offset, block_id) \
  42. CVMX_ADD_IO_SEG(0x0001180008000580ull + (((offset) & 0) * 8) + (((block_id) & 1) * 0x8000000ull))
  43. #define CVMX_GMXX_PRTX_CFG(offset, block_id) \
  44. CVMX_ADD_IO_SEG(0x0001180008000010ull + (((offset) & 3) * 2048) + (((block_id) & 1) * 0x8000000ull))
  45. #define CVMX_GMXX_RXX_ADR_CAM0(offset, block_id) \
  46. CVMX_ADD_IO_SEG(0x0001180008000180ull + (((offset) & 3) * 2048) + (((block_id) & 1) * 0x8000000ull))
  47. #define CVMX_GMXX_RXX_ADR_CAM1(offset, block_id) \
  48. CVMX_ADD_IO_SEG(0x0001180008000188ull + (((offset) & 3) * 2048) + (((block_id) & 1) * 0x8000000ull))
  49. #define CVMX_GMXX_RXX_ADR_CAM2(offset, block_id) \
  50. CVMX_ADD_IO_SEG(0x0001180008000190ull + (((offset) & 3) * 2048) + (((block_id) & 1) * 0x8000000ull))
  51. #define CVMX_GMXX_RXX_ADR_CAM3(offset, block_id) \
  52. CVMX_ADD_IO_SEG(0x0001180008000198ull + (((offset) & 3) * 2048) + (((block_id) & 1) * 0x8000000ull))
  53. #define CVMX_GMXX_RXX_ADR_CAM4(offset, block_id) \
  54. CVMX_ADD_IO_SEG(0x00011800080001A0ull + (((offset) & 3) * 2048) + (((block_id) & 1) * 0x8000000ull))
  55. #define CVMX_GMXX_RXX_ADR_CAM5(offset, block_id) \
  56. CVMX_ADD_IO_SEG(0x00011800080001A8ull + (((offset) & 3) * 2048) + (((block_id) & 1) * 0x8000000ull))
  57. #define CVMX_GMXX_RXX_ADR_CAM_EN(offset, block_id) \
  58. CVMX_ADD_IO_SEG(0x0001180008000108ull + (((offset) & 3) * 2048) + (((block_id) & 1) * 0x8000000ull))
  59. #define CVMX_GMXX_RXX_ADR_CTL(offset, block_id) \
  60. CVMX_ADD_IO_SEG(0x0001180008000100ull + (((offset) & 3) * 2048) + (((block_id) & 1) * 0x8000000ull))
  61. #define CVMX_GMXX_RXX_DECISION(offset, block_id) \
  62. CVMX_ADD_IO_SEG(0x0001180008000040ull + (((offset) & 3) * 2048) + (((block_id) & 1) * 0x8000000ull))
  63. #define CVMX_GMXX_RXX_FRM_CHK(offset, block_id) \
  64. CVMX_ADD_IO_SEG(0x0001180008000020ull + (((offset) & 3) * 2048) + (((block_id) & 1) * 0x8000000ull))
  65. #define CVMX_GMXX_RXX_FRM_CTL(offset, block_id) \
  66. CVMX_ADD_IO_SEG(0x0001180008000018ull + (((offset) & 3) * 2048) + (((block_id) & 1) * 0x8000000ull))
  67. #define CVMX_GMXX_RXX_FRM_MAX(offset, block_id) \
  68. CVMX_ADD_IO_SEG(0x0001180008000030ull + (((offset) & 3) * 2048) + (((block_id) & 1) * 0x8000000ull))
  69. #define CVMX_GMXX_RXX_FRM_MIN(offset, block_id) \
  70. CVMX_ADD_IO_SEG(0x0001180008000028ull + (((offset) & 3) * 2048) + (((block_id) & 1) * 0x8000000ull))
  71. #define CVMX_GMXX_RXX_IFG(offset, block_id) \
  72. CVMX_ADD_IO_SEG(0x0001180008000058ull + (((offset) & 3) * 2048) + (((block_id) & 1) * 0x8000000ull))
  73. #define CVMX_GMXX_RXX_INT_EN(offset, block_id) \
  74. CVMX_ADD_IO_SEG(0x0001180008000008ull + (((offset) & 3) * 2048) + (((block_id) & 1) * 0x8000000ull))
  75. #define CVMX_GMXX_RXX_INT_REG(offset, block_id) \
  76. CVMX_ADD_IO_SEG(0x0001180008000000ull + (((offset) & 3) * 2048) + (((block_id) & 1) * 0x8000000ull))
  77. #define CVMX_GMXX_RXX_JABBER(offset, block_id) \
  78. CVMX_ADD_IO_SEG(0x0001180008000038ull + (((offset) & 3) * 2048) + (((block_id) & 1) * 0x8000000ull))
  79. #define CVMX_GMXX_RXX_PAUSE_DROP_TIME(offset, block_id) \
  80. CVMX_ADD_IO_SEG(0x0001180008000068ull + (((offset) & 3) * 2048) + (((block_id) & 1) * 0x8000000ull))
  81. #define CVMX_GMXX_RXX_RX_INBND(offset, block_id) \
  82. CVMX_ADD_IO_SEG(0x0001180008000060ull + (((offset) & 3) * 2048) + (((block_id) & 1) * 0x8000000ull))
  83. #define CVMX_GMXX_RXX_STATS_CTL(offset, block_id) \
  84. CVMX_ADD_IO_SEG(0x0001180008000050ull + (((offset) & 3) * 2048) + (((block_id) & 1) * 0x8000000ull))
  85. #define CVMX_GMXX_RXX_STATS_OCTS(offset, block_id) \
  86. CVMX_ADD_IO_SEG(0x0001180008000088ull + (((offset) & 3) * 2048) + (((block_id) & 1) * 0x8000000ull))
  87. #define CVMX_GMXX_RXX_STATS_OCTS_CTL(offset, block_id) \
  88. CVMX_ADD_IO_SEG(0x0001180008000098ull + (((offset) & 3) * 2048) + (((block_id) & 1) * 0x8000000ull))
  89. #define CVMX_GMXX_RXX_STATS_OCTS_DMAC(offset, block_id) \
  90. CVMX_ADD_IO_SEG(0x00011800080000A8ull + (((offset) & 3) * 2048) + (((block_id) & 1) * 0x8000000ull))
  91. #define CVMX_GMXX_RXX_STATS_OCTS_DRP(offset, block_id) \
  92. CVMX_ADD_IO_SEG(0x00011800080000B8ull + (((offset) & 3) * 2048) + (((block_id) & 1) * 0x8000000ull))
  93. #define CVMX_GMXX_RXX_STATS_PKTS(offset, block_id) \
  94. CVMX_ADD_IO_SEG(0x0001180008000080ull + (((offset) & 3) * 2048) + (((block_id) & 1) * 0x8000000ull))
  95. #define CVMX_GMXX_RXX_STATS_PKTS_BAD(offset, block_id) \
  96. CVMX_ADD_IO_SEG(0x00011800080000C0ull + (((offset) & 3) * 2048) + (((block_id) & 1) * 0x8000000ull))
  97. #define CVMX_GMXX_RXX_STATS_PKTS_CTL(offset, block_id) \
  98. CVMX_ADD_IO_SEG(0x0001180008000090ull + (((offset) & 3) * 2048) + (((block_id) & 1) * 0x8000000ull))
  99. #define CVMX_GMXX_RXX_STATS_PKTS_DMAC(offset, block_id) \
  100. CVMX_ADD_IO_SEG(0x00011800080000A0ull + (((offset) & 3) * 2048) + (((block_id) & 1) * 0x8000000ull))
  101. #define CVMX_GMXX_RXX_STATS_PKTS_DRP(offset, block_id) \
  102. CVMX_ADD_IO_SEG(0x00011800080000B0ull + (((offset) & 3) * 2048) + (((block_id) & 1) * 0x8000000ull))
  103. #define CVMX_GMXX_RXX_UDD_SKP(offset, block_id) \
  104. CVMX_ADD_IO_SEG(0x0001180008000048ull + (((offset) & 3) * 2048) + (((block_id) & 1) * 0x8000000ull))
  105. #define CVMX_GMXX_RX_BP_DROPX(offset, block_id) \
  106. CVMX_ADD_IO_SEG(0x0001180008000420ull + (((offset) & 3) * 8) + (((block_id) & 1) * 0x8000000ull))
  107. #define CVMX_GMXX_RX_BP_OFFX(offset, block_id) \
  108. CVMX_ADD_IO_SEG(0x0001180008000460ull + (((offset) & 3) * 8) + (((block_id) & 1) * 0x8000000ull))
  109. #define CVMX_GMXX_RX_BP_ONX(offset, block_id) \
  110. CVMX_ADD_IO_SEG(0x0001180008000440ull + (((offset) & 3) * 8) + (((block_id) & 1) * 0x8000000ull))
  111. #define CVMX_GMXX_RX_HG2_STATUS(block_id) \
  112. CVMX_ADD_IO_SEG(0x0001180008000548ull + (((block_id) & 1) * 0x8000000ull))
  113. #define CVMX_GMXX_RX_PASS_EN(block_id) \
  114. CVMX_ADD_IO_SEG(0x00011800080005F8ull + (((block_id) & 1) * 0x8000000ull))
  115. #define CVMX_GMXX_RX_PASS_MAPX(offset, block_id) \
  116. CVMX_ADD_IO_SEG(0x0001180008000600ull + (((offset) & 15) * 8) + (((block_id) & 1) * 0x8000000ull))
  117. #define CVMX_GMXX_RX_PRTS(block_id) \
  118. CVMX_ADD_IO_SEG(0x0001180008000410ull + (((block_id) & 1) * 0x8000000ull))
  119. #define CVMX_GMXX_RX_PRT_INFO(block_id) \
  120. CVMX_ADD_IO_SEG(0x00011800080004E8ull + (((block_id) & 1) * 0x8000000ull))
  121. #define CVMX_GMXX_RX_TX_STATUS(block_id) \
  122. CVMX_ADD_IO_SEG(0x00011800080007E8ull + (((block_id) & 0) * 0x8000000ull))
  123. #define CVMX_GMXX_RX_XAUI_BAD_COL(block_id) \
  124. CVMX_ADD_IO_SEG(0x0001180008000538ull + (((block_id) & 1) * 0x8000000ull))
  125. #define CVMX_GMXX_RX_XAUI_CTL(block_id) \
  126. CVMX_ADD_IO_SEG(0x0001180008000530ull + (((block_id) & 1) * 0x8000000ull))
  127. #define CVMX_GMXX_SMACX(offset, block_id) \
  128. CVMX_ADD_IO_SEG(0x0001180008000230ull + (((offset) & 3) * 2048) + (((block_id) & 1) * 0x8000000ull))
  129. #define CVMX_GMXX_STAT_BP(block_id) \
  130. CVMX_ADD_IO_SEG(0x0001180008000520ull + (((block_id) & 1) * 0x8000000ull))
  131. #define CVMX_GMXX_TXX_APPEND(offset, block_id) \
  132. CVMX_ADD_IO_SEG(0x0001180008000218ull + (((offset) & 3) * 2048) + (((block_id) & 1) * 0x8000000ull))
  133. #define CVMX_GMXX_TXX_BURST(offset, block_id) \
  134. CVMX_ADD_IO_SEG(0x0001180008000228ull + (((offset) & 3) * 2048) + (((block_id) & 1) * 0x8000000ull))
  135. #define CVMX_GMXX_TXX_CBFC_XOFF(offset, block_id) \
  136. CVMX_ADD_IO_SEG(0x00011800080005A0ull + (((offset) & 0) * 8) + (((block_id) & 1) * 0x8000000ull))
  137. #define CVMX_GMXX_TXX_CBFC_XON(offset, block_id) \
  138. CVMX_ADD_IO_SEG(0x00011800080005C0ull + (((offset) & 0) * 8) + (((block_id) & 1) * 0x8000000ull))
  139. #define CVMX_GMXX_TXX_CLK(offset, block_id) \
  140. CVMX_ADD_IO_SEG(0x0001180008000208ull + (((offset) & 3) * 2048) + (((block_id) & 1) * 0x8000000ull))
  141. #define CVMX_GMXX_TXX_CTL(offset, block_id) \
  142. CVMX_ADD_IO_SEG(0x0001180008000270ull + (((offset) & 3) * 2048) + (((block_id) & 1) * 0x8000000ull))
  143. #define CVMX_GMXX_TXX_MIN_PKT(offset, block_id) \
  144. CVMX_ADD_IO_SEG(0x0001180008000240ull + (((offset) & 3) * 2048) + (((block_id) & 1) * 0x8000000ull))
  145. #define CVMX_GMXX_TXX_PAUSE_PKT_INTERVAL(offset, block_id) \
  146. CVMX_ADD_IO_SEG(0x0001180008000248ull + (((offset) & 3) * 2048) + (((block_id) & 1) * 0x8000000ull))
  147. #define CVMX_GMXX_TXX_PAUSE_PKT_TIME(offset, block_id) \
  148. CVMX_ADD_IO_SEG(0x0001180008000238ull + (((offset) & 3) * 2048) + (((block_id) & 1) * 0x8000000ull))
  149. #define CVMX_GMXX_TXX_PAUSE_TOGO(offset, block_id) \
  150. CVMX_ADD_IO_SEG(0x0001180008000258ull + (((offset) & 3) * 2048) + (((block_id) & 1) * 0x8000000ull))
  151. #define CVMX_GMXX_TXX_PAUSE_ZERO(offset, block_id) \
  152. CVMX_ADD_IO_SEG(0x0001180008000260ull + (((offset) & 3) * 2048) + (((block_id) & 1) * 0x8000000ull))
  153. #define CVMX_GMXX_TXX_SGMII_CTL(offset, block_id) \
  154. CVMX_ADD_IO_SEG(0x0001180008000300ull + (((offset) & 3) * 2048) + (((block_id) & 1) * 0x8000000ull))
  155. #define CVMX_GMXX_TXX_SLOT(offset, block_id) \
  156. CVMX_ADD_IO_SEG(0x0001180008000220ull + (((offset) & 3) * 2048) + (((block_id) & 1) * 0x8000000ull))
  157. #define CVMX_GMXX_TXX_SOFT_PAUSE(offset, block_id) \
  158. CVMX_ADD_IO_SEG(0x0001180008000250ull + (((offset) & 3) * 2048) + (((block_id) & 1) * 0x8000000ull))
  159. #define CVMX_GMXX_TXX_STAT0(offset, block_id) \
  160. CVMX_ADD_IO_SEG(0x0001180008000280ull + (((offset) & 3) * 2048) + (((block_id) & 1) * 0x8000000ull))
  161. #define CVMX_GMXX_TXX_STAT1(offset, block_id) \
  162. CVMX_ADD_IO_SEG(0x0001180008000288ull + (((offset) & 3) * 2048) + (((block_id) & 1) * 0x8000000ull))
  163. #define CVMX_GMXX_TXX_STAT2(offset, block_id) \
  164. CVMX_ADD_IO_SEG(0x0001180008000290ull + (((offset) & 3) * 2048) + (((block_id) & 1) * 0x8000000ull))
  165. #define CVMX_GMXX_TXX_STAT3(offset, block_id) \
  166. CVMX_ADD_IO_SEG(0x0001180008000298ull + (((offset) & 3) * 2048) + (((block_id) & 1) * 0x8000000ull))
  167. #define CVMX_GMXX_TXX_STAT4(offset, block_id) \
  168. CVMX_ADD_IO_SEG(0x00011800080002A0ull + (((offset) & 3) * 2048) + (((block_id) & 1) * 0x8000000ull))
  169. #define CVMX_GMXX_TXX_STAT5(offset, block_id) \
  170. CVMX_ADD_IO_SEG(0x00011800080002A8ull + (((offset) & 3) * 2048) + (((block_id) & 1) * 0x8000000ull))
  171. #define CVMX_GMXX_TXX_STAT6(offset, block_id) \
  172. CVMX_ADD_IO_SEG(0x00011800080002B0ull + (((offset) & 3) * 2048) + (((block_id) & 1) * 0x8000000ull))
  173. #define CVMX_GMXX_TXX_STAT7(offset, block_id) \
  174. CVMX_ADD_IO_SEG(0x00011800080002B8ull + (((offset) & 3) * 2048) + (((block_id) & 1) * 0x8000000ull))
  175. #define CVMX_GMXX_TXX_STAT8(offset, block_id) \
  176. CVMX_ADD_IO_SEG(0x00011800080002C0ull + (((offset) & 3) * 2048) + (((block_id) & 1) * 0x8000000ull))
  177. #define CVMX_GMXX_TXX_STAT9(offset, block_id) \
  178. CVMX_ADD_IO_SEG(0x00011800080002C8ull + (((offset) & 3) * 2048) + (((block_id) & 1) * 0x8000000ull))
  179. #define CVMX_GMXX_TXX_STATS_CTL(offset, block_id) \
  180. CVMX_ADD_IO_SEG(0x0001180008000268ull + (((offset) & 3) * 2048) + (((block_id) & 1) * 0x8000000ull))
  181. #define CVMX_GMXX_TXX_THRESH(offset, block_id) \
  182. CVMX_ADD_IO_SEG(0x0001180008000210ull + (((offset) & 3) * 2048) + (((block_id) & 1) * 0x8000000ull))
  183. #define CVMX_GMXX_TX_BP(block_id) \
  184. CVMX_ADD_IO_SEG(0x00011800080004D0ull + (((block_id) & 1) * 0x8000000ull))
  185. #define CVMX_GMXX_TX_CLK_MSKX(offset, block_id) \
  186. CVMX_ADD_IO_SEG(0x0001180008000780ull + (((offset) & 1) * 8) + (((block_id) & 0) * 0x0ull))
  187. #define CVMX_GMXX_TX_COL_ATTEMPT(block_id) \
  188. CVMX_ADD_IO_SEG(0x0001180008000498ull + (((block_id) & 1) * 0x8000000ull))
  189. #define CVMX_GMXX_TX_CORRUPT(block_id) \
  190. CVMX_ADD_IO_SEG(0x00011800080004D8ull + (((block_id) & 1) * 0x8000000ull))
  191. #define CVMX_GMXX_TX_HG2_REG1(block_id) \
  192. CVMX_ADD_IO_SEG(0x0001180008000558ull + (((block_id) & 1) * 0x8000000ull))
  193. #define CVMX_GMXX_TX_HG2_REG2(block_id) \
  194. CVMX_ADD_IO_SEG(0x0001180008000560ull + (((block_id) & 1) * 0x8000000ull))
  195. #define CVMX_GMXX_TX_IFG(block_id) \
  196. CVMX_ADD_IO_SEG(0x0001180008000488ull + (((block_id) & 1) * 0x8000000ull))
  197. #define CVMX_GMXX_TX_INT_EN(block_id) \
  198. CVMX_ADD_IO_SEG(0x0001180008000508ull + (((block_id) & 1) * 0x8000000ull))
  199. #define CVMX_GMXX_TX_INT_REG(block_id) \
  200. CVMX_ADD_IO_SEG(0x0001180008000500ull + (((block_id) & 1) * 0x8000000ull))
  201. #define CVMX_GMXX_TX_JAM(block_id) \
  202. CVMX_ADD_IO_SEG(0x0001180008000490ull + (((block_id) & 1) * 0x8000000ull))
  203. #define CVMX_GMXX_TX_LFSR(block_id) \
  204. CVMX_ADD_IO_SEG(0x00011800080004F8ull + (((block_id) & 1) * 0x8000000ull))
  205. #define CVMX_GMXX_TX_OVR_BP(block_id) \
  206. CVMX_ADD_IO_SEG(0x00011800080004C8ull + (((block_id) & 1) * 0x8000000ull))
  207. #define CVMX_GMXX_TX_PAUSE_PKT_DMAC(block_id) \
  208. CVMX_ADD_IO_SEG(0x00011800080004A0ull + (((block_id) & 1) * 0x8000000ull))
  209. #define CVMX_GMXX_TX_PAUSE_PKT_TYPE(block_id) \
  210. CVMX_ADD_IO_SEG(0x00011800080004A8ull + (((block_id) & 1) * 0x8000000ull))
  211. #define CVMX_GMXX_TX_PRTS(block_id) \
  212. CVMX_ADD_IO_SEG(0x0001180008000480ull + (((block_id) & 1) * 0x8000000ull))
  213. #define CVMX_GMXX_TX_SPI_CTL(block_id) \
  214. CVMX_ADD_IO_SEG(0x00011800080004C0ull + (((block_id) & 1) * 0x8000000ull))
  215. #define CVMX_GMXX_TX_SPI_DRAIN(block_id) \
  216. CVMX_ADD_IO_SEG(0x00011800080004E0ull + (((block_id) & 1) * 0x8000000ull))
  217. #define CVMX_GMXX_TX_SPI_MAX(block_id) \
  218. CVMX_ADD_IO_SEG(0x00011800080004B0ull + (((block_id) & 1) * 0x8000000ull))
  219. #define CVMX_GMXX_TX_SPI_ROUNDX(offset, block_id) \
  220. CVMX_ADD_IO_SEG(0x0001180008000680ull + (((offset) & 31) * 8) + (((block_id) & 1) * 0x8000000ull))
  221. #define CVMX_GMXX_TX_SPI_THRESH(block_id) \
  222. CVMX_ADD_IO_SEG(0x00011800080004B8ull + (((block_id) & 1) * 0x8000000ull))
  223. #define CVMX_GMXX_TX_XAUI_CTL(block_id) \
  224. CVMX_ADD_IO_SEG(0x0001180008000528ull + (((block_id) & 1) * 0x8000000ull))
  225. #define CVMX_GMXX_XAUI_EXT_LOOPBACK(block_id) \
  226. CVMX_ADD_IO_SEG(0x0001180008000540ull + (((block_id) & 1) * 0x8000000ull))
  227. union cvmx_gmxx_bad_reg {
  228. uint64_t u64;
  229. struct cvmx_gmxx_bad_reg_s {
  230. uint64_t reserved_31_63:33;
  231. uint64_t inb_nxa:4;
  232. uint64_t statovr:1;
  233. uint64_t loststat:4;
  234. uint64_t reserved_18_21:4;
  235. uint64_t out_ovr:16;
  236. uint64_t ncb_ovr:1;
  237. uint64_t out_col:1;
  238. } s;
  239. struct cvmx_gmxx_bad_reg_cn30xx {
  240. uint64_t reserved_31_63:33;
  241. uint64_t inb_nxa:4;
  242. uint64_t statovr:1;
  243. uint64_t reserved_25_25:1;
  244. uint64_t loststat:3;
  245. uint64_t reserved_5_21:17;
  246. uint64_t out_ovr:3;
  247. uint64_t reserved_0_1:2;
  248. } cn30xx;
  249. struct cvmx_gmxx_bad_reg_cn30xx cn31xx;
  250. struct cvmx_gmxx_bad_reg_s cn38xx;
  251. struct cvmx_gmxx_bad_reg_s cn38xxp2;
  252. struct cvmx_gmxx_bad_reg_cn30xx cn50xx;
  253. struct cvmx_gmxx_bad_reg_cn52xx {
  254. uint64_t reserved_31_63:33;
  255. uint64_t inb_nxa:4;
  256. uint64_t statovr:1;
  257. uint64_t loststat:4;
  258. uint64_t reserved_6_21:16;
  259. uint64_t out_ovr:4;
  260. uint64_t reserved_0_1:2;
  261. } cn52xx;
  262. struct cvmx_gmxx_bad_reg_cn52xx cn52xxp1;
  263. struct cvmx_gmxx_bad_reg_cn52xx cn56xx;
  264. struct cvmx_gmxx_bad_reg_cn52xx cn56xxp1;
  265. struct cvmx_gmxx_bad_reg_s cn58xx;
  266. struct cvmx_gmxx_bad_reg_s cn58xxp1;
  267. };
  268. union cvmx_gmxx_bist {
  269. uint64_t u64;
  270. struct cvmx_gmxx_bist_s {
  271. uint64_t reserved_17_63:47;
  272. uint64_t status:17;
  273. } s;
  274. struct cvmx_gmxx_bist_cn30xx {
  275. uint64_t reserved_10_63:54;
  276. uint64_t status:10;
  277. } cn30xx;
  278. struct cvmx_gmxx_bist_cn30xx cn31xx;
  279. struct cvmx_gmxx_bist_cn30xx cn38xx;
  280. struct cvmx_gmxx_bist_cn30xx cn38xxp2;
  281. struct cvmx_gmxx_bist_cn50xx {
  282. uint64_t reserved_12_63:52;
  283. uint64_t status:12;
  284. } cn50xx;
  285. struct cvmx_gmxx_bist_cn52xx {
  286. uint64_t reserved_16_63:48;
  287. uint64_t status:16;
  288. } cn52xx;
  289. struct cvmx_gmxx_bist_cn52xx cn52xxp1;
  290. struct cvmx_gmxx_bist_cn52xx cn56xx;
  291. struct cvmx_gmxx_bist_cn52xx cn56xxp1;
  292. struct cvmx_gmxx_bist_s cn58xx;
  293. struct cvmx_gmxx_bist_s cn58xxp1;
  294. };
  295. union cvmx_gmxx_clk_en {
  296. uint64_t u64;
  297. struct cvmx_gmxx_clk_en_s {
  298. uint64_t reserved_1_63:63;
  299. uint64_t clk_en:1;
  300. } s;
  301. struct cvmx_gmxx_clk_en_s cn52xx;
  302. struct cvmx_gmxx_clk_en_s cn52xxp1;
  303. struct cvmx_gmxx_clk_en_s cn56xx;
  304. struct cvmx_gmxx_clk_en_s cn56xxp1;
  305. };
  306. union cvmx_gmxx_hg2_control {
  307. uint64_t u64;
  308. struct cvmx_gmxx_hg2_control_s {
  309. uint64_t reserved_19_63:45;
  310. uint64_t hg2tx_en:1;
  311. uint64_t hg2rx_en:1;
  312. uint64_t phys_en:1;
  313. uint64_t logl_en:16;
  314. } s;
  315. struct cvmx_gmxx_hg2_control_s cn52xx;
  316. struct cvmx_gmxx_hg2_control_s cn52xxp1;
  317. struct cvmx_gmxx_hg2_control_s cn56xx;
  318. };
  319. union cvmx_gmxx_inf_mode {
  320. uint64_t u64;
  321. struct cvmx_gmxx_inf_mode_s {
  322. uint64_t reserved_10_63:54;
  323. uint64_t speed:2;
  324. uint64_t reserved_6_7:2;
  325. uint64_t mode:2;
  326. uint64_t reserved_3_3:1;
  327. uint64_t p0mii:1;
  328. uint64_t en:1;
  329. uint64_t type:1;
  330. } s;
  331. struct cvmx_gmxx_inf_mode_cn30xx {
  332. uint64_t reserved_3_63:61;
  333. uint64_t p0mii:1;
  334. uint64_t en:1;
  335. uint64_t type:1;
  336. } cn30xx;
  337. struct cvmx_gmxx_inf_mode_cn31xx {
  338. uint64_t reserved_2_63:62;
  339. uint64_t en:1;
  340. uint64_t type:1;
  341. } cn31xx;
  342. struct cvmx_gmxx_inf_mode_cn31xx cn38xx;
  343. struct cvmx_gmxx_inf_mode_cn31xx cn38xxp2;
  344. struct cvmx_gmxx_inf_mode_cn30xx cn50xx;
  345. struct cvmx_gmxx_inf_mode_cn52xx {
  346. uint64_t reserved_10_63:54;
  347. uint64_t speed:2;
  348. uint64_t reserved_6_7:2;
  349. uint64_t mode:2;
  350. uint64_t reserved_2_3:2;
  351. uint64_t en:1;
  352. uint64_t type:1;
  353. } cn52xx;
  354. struct cvmx_gmxx_inf_mode_cn52xx cn52xxp1;
  355. struct cvmx_gmxx_inf_mode_cn52xx cn56xx;
  356. struct cvmx_gmxx_inf_mode_cn52xx cn56xxp1;
  357. struct cvmx_gmxx_inf_mode_cn31xx cn58xx;
  358. struct cvmx_gmxx_inf_mode_cn31xx cn58xxp1;
  359. };
  360. union cvmx_gmxx_nxa_adr {
  361. uint64_t u64;
  362. struct cvmx_gmxx_nxa_adr_s {
  363. uint64_t reserved_6_63:58;
  364. uint64_t prt:6;
  365. } s;
  366. struct cvmx_gmxx_nxa_adr_s cn30xx;
  367. struct cvmx_gmxx_nxa_adr_s cn31xx;
  368. struct cvmx_gmxx_nxa_adr_s cn38xx;
  369. struct cvmx_gmxx_nxa_adr_s cn38xxp2;
  370. struct cvmx_gmxx_nxa_adr_s cn50xx;
  371. struct cvmx_gmxx_nxa_adr_s cn52xx;
  372. struct cvmx_gmxx_nxa_adr_s cn52xxp1;
  373. struct cvmx_gmxx_nxa_adr_s cn56xx;
  374. struct cvmx_gmxx_nxa_adr_s cn56xxp1;
  375. struct cvmx_gmxx_nxa_adr_s cn58xx;
  376. struct cvmx_gmxx_nxa_adr_s cn58xxp1;
  377. };
  378. union cvmx_gmxx_prtx_cbfc_ctl {
  379. uint64_t u64;
  380. struct cvmx_gmxx_prtx_cbfc_ctl_s {
  381. uint64_t phys_en:16;
  382. uint64_t logl_en:16;
  383. uint64_t phys_bp:16;
  384. uint64_t reserved_4_15:12;
  385. uint64_t bck_en:1;
  386. uint64_t drp_en:1;
  387. uint64_t tx_en:1;
  388. uint64_t rx_en:1;
  389. } s;
  390. struct cvmx_gmxx_prtx_cbfc_ctl_s cn52xx;
  391. struct cvmx_gmxx_prtx_cbfc_ctl_s cn56xx;
  392. };
  393. union cvmx_gmxx_prtx_cfg {
  394. uint64_t u64;
  395. struct cvmx_gmxx_prtx_cfg_s {
  396. uint64_t reserved_14_63:50;
  397. uint64_t tx_idle:1;
  398. uint64_t rx_idle:1;
  399. uint64_t reserved_9_11:3;
  400. uint64_t speed_msb:1;
  401. uint64_t reserved_4_7:4;
  402. uint64_t slottime:1;
  403. uint64_t duplex:1;
  404. uint64_t speed:1;
  405. uint64_t en:1;
  406. } s;
  407. struct cvmx_gmxx_prtx_cfg_cn30xx {
  408. uint64_t reserved_4_63:60;
  409. uint64_t slottime:1;
  410. uint64_t duplex:1;
  411. uint64_t speed:1;
  412. uint64_t en:1;
  413. } cn30xx;
  414. struct cvmx_gmxx_prtx_cfg_cn30xx cn31xx;
  415. struct cvmx_gmxx_prtx_cfg_cn30xx cn38xx;
  416. struct cvmx_gmxx_prtx_cfg_cn30xx cn38xxp2;
  417. struct cvmx_gmxx_prtx_cfg_cn30xx cn50xx;
  418. struct cvmx_gmxx_prtx_cfg_s cn52xx;
  419. struct cvmx_gmxx_prtx_cfg_s cn52xxp1;
  420. struct cvmx_gmxx_prtx_cfg_s cn56xx;
  421. struct cvmx_gmxx_prtx_cfg_s cn56xxp1;
  422. struct cvmx_gmxx_prtx_cfg_cn30xx cn58xx;
  423. struct cvmx_gmxx_prtx_cfg_cn30xx cn58xxp1;
  424. };
  425. union cvmx_gmxx_rxx_adr_cam0 {
  426. uint64_t u64;
  427. struct cvmx_gmxx_rxx_adr_cam0_s {
  428. uint64_t adr:64;
  429. } s;
  430. struct cvmx_gmxx_rxx_adr_cam0_s cn30xx;
  431. struct cvmx_gmxx_rxx_adr_cam0_s cn31xx;
  432. struct cvmx_gmxx_rxx_adr_cam0_s cn38xx;
  433. struct cvmx_gmxx_rxx_adr_cam0_s cn38xxp2;
  434. struct cvmx_gmxx_rxx_adr_cam0_s cn50xx;
  435. struct cvmx_gmxx_rxx_adr_cam0_s cn52xx;
  436. struct cvmx_gmxx_rxx_adr_cam0_s cn52xxp1;
  437. struct cvmx_gmxx_rxx_adr_cam0_s cn56xx;
  438. struct cvmx_gmxx_rxx_adr_cam0_s cn56xxp1;
  439. struct cvmx_gmxx_rxx_adr_cam0_s cn58xx;
  440. struct cvmx_gmxx_rxx_adr_cam0_s cn58xxp1;
  441. };
  442. union cvmx_gmxx_rxx_adr_cam1 {
  443. uint64_t u64;
  444. struct cvmx_gmxx_rxx_adr_cam1_s {
  445. uint64_t adr:64;
  446. } s;
  447. struct cvmx_gmxx_rxx_adr_cam1_s cn30xx;
  448. struct cvmx_gmxx_rxx_adr_cam1_s cn31xx;
  449. struct cvmx_gmxx_rxx_adr_cam1_s cn38xx;
  450. struct cvmx_gmxx_rxx_adr_cam1_s cn38xxp2;
  451. struct cvmx_gmxx_rxx_adr_cam1_s cn50xx;
  452. struct cvmx_gmxx_rxx_adr_cam1_s cn52xx;
  453. struct cvmx_gmxx_rxx_adr_cam1_s cn52xxp1;
  454. struct cvmx_gmxx_rxx_adr_cam1_s cn56xx;
  455. struct cvmx_gmxx_rxx_adr_cam1_s cn56xxp1;
  456. struct cvmx_gmxx_rxx_adr_cam1_s cn58xx;
  457. struct cvmx_gmxx_rxx_adr_cam1_s cn58xxp1;
  458. };
  459. union cvmx_gmxx_rxx_adr_cam2 {
  460. uint64_t u64;
  461. struct cvmx_gmxx_rxx_adr_cam2_s {
  462. uint64_t adr:64;
  463. } s;
  464. struct cvmx_gmxx_rxx_adr_cam2_s cn30xx;
  465. struct cvmx_gmxx_rxx_adr_cam2_s cn31xx;
  466. struct cvmx_gmxx_rxx_adr_cam2_s cn38xx;
  467. struct cvmx_gmxx_rxx_adr_cam2_s cn38xxp2;
  468. struct cvmx_gmxx_rxx_adr_cam2_s cn50xx;
  469. struct cvmx_gmxx_rxx_adr_cam2_s cn52xx;
  470. struct cvmx_gmxx_rxx_adr_cam2_s cn52xxp1;
  471. struct cvmx_gmxx_rxx_adr_cam2_s cn56xx;
  472. struct cvmx_gmxx_rxx_adr_cam2_s cn56xxp1;
  473. struct cvmx_gmxx_rxx_adr_cam2_s cn58xx;
  474. struct cvmx_gmxx_rxx_adr_cam2_s cn58xxp1;
  475. };
  476. union cvmx_gmxx_rxx_adr_cam3 {
  477. uint64_t u64;
  478. struct cvmx_gmxx_rxx_adr_cam3_s {
  479. uint64_t adr:64;
  480. } s;
  481. struct cvmx_gmxx_rxx_adr_cam3_s cn30xx;
  482. struct cvmx_gmxx_rxx_adr_cam3_s cn31xx;
  483. struct cvmx_gmxx_rxx_adr_cam3_s cn38xx;
  484. struct cvmx_gmxx_rxx_adr_cam3_s cn38xxp2;
  485. struct cvmx_gmxx_rxx_adr_cam3_s cn50xx;
  486. struct cvmx_gmxx_rxx_adr_cam3_s cn52xx;
  487. struct cvmx_gmxx_rxx_adr_cam3_s cn52xxp1;
  488. struct cvmx_gmxx_rxx_adr_cam3_s cn56xx;
  489. struct cvmx_gmxx_rxx_adr_cam3_s cn56xxp1;
  490. struct cvmx_gmxx_rxx_adr_cam3_s cn58xx;
  491. struct cvmx_gmxx_rxx_adr_cam3_s cn58xxp1;
  492. };
  493. union cvmx_gmxx_rxx_adr_cam4 {
  494. uint64_t u64;
  495. struct cvmx_gmxx_rxx_adr_cam4_s {
  496. uint64_t adr:64;
  497. } s;
  498. struct cvmx_gmxx_rxx_adr_cam4_s cn30xx;
  499. struct cvmx_gmxx_rxx_adr_cam4_s cn31xx;
  500. struct cvmx_gmxx_rxx_adr_cam4_s cn38xx;
  501. struct cvmx_gmxx_rxx_adr_cam4_s cn38xxp2;
  502. struct cvmx_gmxx_rxx_adr_cam4_s cn50xx;
  503. struct cvmx_gmxx_rxx_adr_cam4_s cn52xx;
  504. struct cvmx_gmxx_rxx_adr_cam4_s cn52xxp1;
  505. struct cvmx_gmxx_rxx_adr_cam4_s cn56xx;
  506. struct cvmx_gmxx_rxx_adr_cam4_s cn56xxp1;
  507. struct cvmx_gmxx_rxx_adr_cam4_s cn58xx;
  508. struct cvmx_gmxx_rxx_adr_cam4_s cn58xxp1;
  509. };
  510. union cvmx_gmxx_rxx_adr_cam5 {
  511. uint64_t u64;
  512. struct cvmx_gmxx_rxx_adr_cam5_s {
  513. uint64_t adr:64;
  514. } s;
  515. struct cvmx_gmxx_rxx_adr_cam5_s cn30xx;
  516. struct cvmx_gmxx_rxx_adr_cam5_s cn31xx;
  517. struct cvmx_gmxx_rxx_adr_cam5_s cn38xx;
  518. struct cvmx_gmxx_rxx_adr_cam5_s cn38xxp2;
  519. struct cvmx_gmxx_rxx_adr_cam5_s cn50xx;
  520. struct cvmx_gmxx_rxx_adr_cam5_s cn52xx;
  521. struct cvmx_gmxx_rxx_adr_cam5_s cn52xxp1;
  522. struct cvmx_gmxx_rxx_adr_cam5_s cn56xx;
  523. struct cvmx_gmxx_rxx_adr_cam5_s cn56xxp1;
  524. struct cvmx_gmxx_rxx_adr_cam5_s cn58xx;
  525. struct cvmx_gmxx_rxx_adr_cam5_s cn58xxp1;
  526. };
  527. union cvmx_gmxx_rxx_adr_cam_en {
  528. uint64_t u64;
  529. struct cvmx_gmxx_rxx_adr_cam_en_s {
  530. uint64_t reserved_8_63:56;
  531. uint64_t en:8;
  532. } s;
  533. struct cvmx_gmxx_rxx_adr_cam_en_s cn30xx;
  534. struct cvmx_gmxx_rxx_adr_cam_en_s cn31xx;
  535. struct cvmx_gmxx_rxx_adr_cam_en_s cn38xx;
  536. struct cvmx_gmxx_rxx_adr_cam_en_s cn38xxp2;
  537. struct cvmx_gmxx_rxx_adr_cam_en_s cn50xx;
  538. struct cvmx_gmxx_rxx_adr_cam_en_s cn52xx;
  539. struct cvmx_gmxx_rxx_adr_cam_en_s cn52xxp1;
  540. struct cvmx_gmxx_rxx_adr_cam_en_s cn56xx;
  541. struct cvmx_gmxx_rxx_adr_cam_en_s cn56xxp1;
  542. struct cvmx_gmxx_rxx_adr_cam_en_s cn58xx;
  543. struct cvmx_gmxx_rxx_adr_cam_en_s cn58xxp1;
  544. };
  545. union cvmx_gmxx_rxx_adr_ctl {
  546. uint64_t u64;
  547. struct cvmx_gmxx_rxx_adr_ctl_s {
  548. uint64_t reserved_4_63:60;
  549. uint64_t cam_mode:1;
  550. uint64_t mcst:2;
  551. uint64_t bcst:1;
  552. } s;
  553. struct cvmx_gmxx_rxx_adr_ctl_s cn30xx;
  554. struct cvmx_gmxx_rxx_adr_ctl_s cn31xx;
  555. struct cvmx_gmxx_rxx_adr_ctl_s cn38xx;
  556. struct cvmx_gmxx_rxx_adr_ctl_s cn38xxp2;
  557. struct cvmx_gmxx_rxx_adr_ctl_s cn50xx;
  558. struct cvmx_gmxx_rxx_adr_ctl_s cn52xx;
  559. struct cvmx_gmxx_rxx_adr_ctl_s cn52xxp1;
  560. struct cvmx_gmxx_rxx_adr_ctl_s cn56xx;
  561. struct cvmx_gmxx_rxx_adr_ctl_s cn56xxp1;
  562. struct cvmx_gmxx_rxx_adr_ctl_s cn58xx;
  563. struct cvmx_gmxx_rxx_adr_ctl_s cn58xxp1;
  564. };
  565. union cvmx_gmxx_rxx_decision {
  566. uint64_t u64;
  567. struct cvmx_gmxx_rxx_decision_s {
  568. uint64_t reserved_5_63:59;
  569. uint64_t cnt:5;
  570. } s;
  571. struct cvmx_gmxx_rxx_decision_s cn30xx;
  572. struct cvmx_gmxx_rxx_decision_s cn31xx;
  573. struct cvmx_gmxx_rxx_decision_s cn38xx;
  574. struct cvmx_gmxx_rxx_decision_s cn38xxp2;
  575. struct cvmx_gmxx_rxx_decision_s cn50xx;
  576. struct cvmx_gmxx_rxx_decision_s cn52xx;
  577. struct cvmx_gmxx_rxx_decision_s cn52xxp1;
  578. struct cvmx_gmxx_rxx_decision_s cn56xx;
  579. struct cvmx_gmxx_rxx_decision_s cn56xxp1;
  580. struct cvmx_gmxx_rxx_decision_s cn58xx;
  581. struct cvmx_gmxx_rxx_decision_s cn58xxp1;
  582. };
  583. union cvmx_gmxx_rxx_frm_chk {
  584. uint64_t u64;
  585. struct cvmx_gmxx_rxx_frm_chk_s {
  586. uint64_t reserved_10_63:54;
  587. uint64_t niberr:1;
  588. uint64_t skperr:1;
  589. uint64_t rcverr:1;
  590. uint64_t lenerr:1;
  591. uint64_t alnerr:1;
  592. uint64_t fcserr:1;
  593. uint64_t jabber:1;
  594. uint64_t maxerr:1;
  595. uint64_t carext:1;
  596. uint64_t minerr:1;
  597. } s;
  598. struct cvmx_gmxx_rxx_frm_chk_s cn30xx;
  599. struct cvmx_gmxx_rxx_frm_chk_s cn31xx;
  600. struct cvmx_gmxx_rxx_frm_chk_s cn38xx;
  601. struct cvmx_gmxx_rxx_frm_chk_s cn38xxp2;
  602. struct cvmx_gmxx_rxx_frm_chk_cn50xx {
  603. uint64_t reserved_10_63:54;
  604. uint64_t niberr:1;
  605. uint64_t skperr:1;
  606. uint64_t rcverr:1;
  607. uint64_t reserved_6_6:1;
  608. uint64_t alnerr:1;
  609. uint64_t fcserr:1;
  610. uint64_t jabber:1;
  611. uint64_t reserved_2_2:1;
  612. uint64_t carext:1;
  613. uint64_t reserved_0_0:1;
  614. } cn50xx;
  615. struct cvmx_gmxx_rxx_frm_chk_cn52xx {
  616. uint64_t reserved_9_63:55;
  617. uint64_t skperr:1;
  618. uint64_t rcverr:1;
  619. uint64_t reserved_5_6:2;
  620. uint64_t fcserr:1;
  621. uint64_t jabber:1;
  622. uint64_t reserved_2_2:1;
  623. uint64_t carext:1;
  624. uint64_t reserved_0_0:1;
  625. } cn52xx;
  626. struct cvmx_gmxx_rxx_frm_chk_cn52xx cn52xxp1;
  627. struct cvmx_gmxx_rxx_frm_chk_cn52xx cn56xx;
  628. struct cvmx_gmxx_rxx_frm_chk_cn52xx cn56xxp1;
  629. struct cvmx_gmxx_rxx_frm_chk_s cn58xx;
  630. struct cvmx_gmxx_rxx_frm_chk_s cn58xxp1;
  631. };
  632. union cvmx_gmxx_rxx_frm_ctl {
  633. uint64_t u64;
  634. struct cvmx_gmxx_rxx_frm_ctl_s {
  635. uint64_t reserved_11_63:53;
  636. uint64_t null_dis:1;
  637. uint64_t pre_align:1;
  638. uint64_t pad_len:1;
  639. uint64_t vlan_len:1;
  640. uint64_t pre_free:1;
  641. uint64_t ctl_smac:1;
  642. uint64_t ctl_mcst:1;
  643. uint64_t ctl_bck:1;
  644. uint64_t ctl_drp:1;
  645. uint64_t pre_strp:1;
  646. uint64_t pre_chk:1;
  647. } s;
  648. struct cvmx_gmxx_rxx_frm_ctl_cn30xx {
  649. uint64_t reserved_9_63:55;
  650. uint64_t pad_len:1;
  651. uint64_t vlan_len:1;
  652. uint64_t pre_free:1;
  653. uint64_t ctl_smac:1;
  654. uint64_t ctl_mcst:1;
  655. uint64_t ctl_bck:1;
  656. uint64_t ctl_drp:1;
  657. uint64_t pre_strp:1;
  658. uint64_t pre_chk:1;
  659. } cn30xx;
  660. struct cvmx_gmxx_rxx_frm_ctl_cn31xx {
  661. uint64_t reserved_8_63:56;
  662. uint64_t vlan_len:1;
  663. uint64_t pre_free:1;
  664. uint64_t ctl_smac:1;
  665. uint64_t ctl_mcst:1;
  666. uint64_t ctl_bck:1;
  667. uint64_t ctl_drp:1;
  668. uint64_t pre_strp:1;
  669. uint64_t pre_chk:1;
  670. } cn31xx;
  671. struct cvmx_gmxx_rxx_frm_ctl_cn30xx cn38xx;
  672. struct cvmx_gmxx_rxx_frm_ctl_cn31xx cn38xxp2;
  673. struct cvmx_gmxx_rxx_frm_ctl_cn50xx {
  674. uint64_t reserved_11_63:53;
  675. uint64_t null_dis:1;
  676. uint64_t pre_align:1;
  677. uint64_t reserved_7_8:2;
  678. uint64_t pre_free:1;
  679. uint64_t ctl_smac:1;
  680. uint64_t ctl_mcst:1;
  681. uint64_t ctl_bck:1;
  682. uint64_t ctl_drp:1;
  683. uint64_t pre_strp:1;
  684. uint64_t pre_chk:1;
  685. } cn50xx;
  686. struct cvmx_gmxx_rxx_frm_ctl_cn50xx cn52xx;
  687. struct cvmx_gmxx_rxx_frm_ctl_cn50xx cn52xxp1;
  688. struct cvmx_gmxx_rxx_frm_ctl_cn50xx cn56xx;
  689. struct cvmx_gmxx_rxx_frm_ctl_cn56xxp1 {
  690. uint64_t reserved_10_63:54;
  691. uint64_t pre_align:1;
  692. uint64_t reserved_7_8:2;
  693. uint64_t pre_free:1;
  694. uint64_t ctl_smac:1;
  695. uint64_t ctl_mcst:1;
  696. uint64_t ctl_bck:1;
  697. uint64_t ctl_drp:1;
  698. uint64_t pre_strp:1;
  699. uint64_t pre_chk:1;
  700. } cn56xxp1;
  701. struct cvmx_gmxx_rxx_frm_ctl_s cn58xx;
  702. struct cvmx_gmxx_rxx_frm_ctl_cn30xx cn58xxp1;
  703. };
  704. union cvmx_gmxx_rxx_frm_max {
  705. uint64_t u64;
  706. struct cvmx_gmxx_rxx_frm_max_s {
  707. uint64_t reserved_16_63:48;
  708. uint64_t len:16;
  709. } s;
  710. struct cvmx_gmxx_rxx_frm_max_s cn30xx;
  711. struct cvmx_gmxx_rxx_frm_max_s cn31xx;
  712. struct cvmx_gmxx_rxx_frm_max_s cn38xx;
  713. struct cvmx_gmxx_rxx_frm_max_s cn38xxp2;
  714. struct cvmx_gmxx_rxx_frm_max_s cn58xx;
  715. struct cvmx_gmxx_rxx_frm_max_s cn58xxp1;
  716. };
  717. union cvmx_gmxx_rxx_frm_min {
  718. uint64_t u64;
  719. struct cvmx_gmxx_rxx_frm_min_s {
  720. uint64_t reserved_16_63:48;
  721. uint64_t len:16;
  722. } s;
  723. struct cvmx_gmxx_rxx_frm_min_s cn30xx;
  724. struct cvmx_gmxx_rxx_frm_min_s cn31xx;
  725. struct cvmx_gmxx_rxx_frm_min_s cn38xx;
  726. struct cvmx_gmxx_rxx_frm_min_s cn38xxp2;
  727. struct cvmx_gmxx_rxx_frm_min_s cn58xx;
  728. struct cvmx_gmxx_rxx_frm_min_s cn58xxp1;
  729. };
  730. union cvmx_gmxx_rxx_ifg {
  731. uint64_t u64;
  732. struct cvmx_gmxx_rxx_ifg_s {
  733. uint64_t reserved_4_63:60;
  734. uint64_t ifg:4;
  735. } s;
  736. struct cvmx_gmxx_rxx_ifg_s cn30xx;
  737. struct cvmx_gmxx_rxx_ifg_s cn31xx;
  738. struct cvmx_gmxx_rxx_ifg_s cn38xx;
  739. struct cvmx_gmxx_rxx_ifg_s cn38xxp2;
  740. struct cvmx_gmxx_rxx_ifg_s cn50xx;
  741. struct cvmx_gmxx_rxx_ifg_s cn52xx;
  742. struct cvmx_gmxx_rxx_ifg_s cn52xxp1;
  743. struct cvmx_gmxx_rxx_ifg_s cn56xx;
  744. struct cvmx_gmxx_rxx_ifg_s cn56xxp1;
  745. struct cvmx_gmxx_rxx_ifg_s cn58xx;
  746. struct cvmx_gmxx_rxx_ifg_s cn58xxp1;
  747. };
  748. union cvmx_gmxx_rxx_int_en {
  749. uint64_t u64;
  750. struct cvmx_gmxx_rxx_int_en_s {
  751. uint64_t reserved_29_63:35;
  752. uint64_t hg2cc:1;
  753. uint64_t hg2fld:1;
  754. uint64_t undat:1;
  755. uint64_t uneop:1;
  756. uint64_t unsop:1;
  757. uint64_t bad_term:1;
  758. uint64_t bad_seq:1;
  759. uint64_t rem_fault:1;
  760. uint64_t loc_fault:1;
  761. uint64_t pause_drp:1;
  762. uint64_t phy_dupx:1;
  763. uint64_t phy_spd:1;
  764. uint64_t phy_link:1;
  765. uint64_t ifgerr:1;
  766. uint64_t coldet:1;
  767. uint64_t falerr:1;
  768. uint64_t rsverr:1;
  769. uint64_t pcterr:1;
  770. uint64_t ovrerr:1;
  771. uint64_t niberr:1;
  772. uint64_t skperr:1;
  773. uint64_t rcverr:1;
  774. uint64_t lenerr:1;
  775. uint64_t alnerr:1;
  776. uint64_t fcserr:1;
  777. uint64_t jabber:1;
  778. uint64_t maxerr:1;
  779. uint64_t carext:1;
  780. uint64_t minerr:1;
  781. } s;
  782. struct cvmx_gmxx_rxx_int_en_cn30xx {
  783. uint64_t reserved_19_63:45;
  784. uint64_t phy_dupx:1;
  785. uint64_t phy_spd:1;
  786. uint64_t phy_link:1;
  787. uint64_t ifgerr:1;
  788. uint64_t coldet:1;
  789. uint64_t falerr:1;
  790. uint64_t rsverr:1;
  791. uint64_t pcterr:1;
  792. uint64_t ovrerr:1;
  793. uint64_t niberr:1;
  794. uint64_t skperr:1;
  795. uint64_t rcverr:1;
  796. uint64_t lenerr:1;
  797. uint64_t alnerr:1;
  798. uint64_t fcserr:1;
  799. uint64_t jabber:1;
  800. uint64_t maxerr:1;
  801. uint64_t carext:1;
  802. uint64_t minerr:1;
  803. } cn30xx;
  804. struct cvmx_gmxx_rxx_int_en_cn30xx cn31xx;
  805. struct cvmx_gmxx_rxx_int_en_cn30xx cn38xx;
  806. struct cvmx_gmxx_rxx_int_en_cn30xx cn38xxp2;
  807. struct cvmx_gmxx_rxx_int_en_cn50xx {
  808. uint64_t reserved_20_63:44;
  809. uint64_t pause_drp:1;
  810. uint64_t phy_dupx:1;
  811. uint64_t phy_spd:1;
  812. uint64_t phy_link:1;
  813. uint64_t ifgerr:1;
  814. uint64_t coldet:1;
  815. uint64_t falerr:1;
  816. uint64_t rsverr:1;
  817. uint64_t pcterr:1;
  818. uint64_t ovrerr:1;
  819. uint64_t niberr:1;
  820. uint64_t skperr:1;
  821. uint64_t rcverr:1;
  822. uint64_t reserved_6_6:1;
  823. uint64_t alnerr:1;
  824. uint64_t fcserr:1;
  825. uint64_t jabber:1;
  826. uint64_t reserved_2_2:1;
  827. uint64_t carext:1;
  828. uint64_t reserved_0_0:1;
  829. } cn50xx;
  830. struct cvmx_gmxx_rxx_int_en_cn52xx {
  831. uint64_t reserved_29_63:35;
  832. uint64_t hg2cc:1;
  833. uint64_t hg2fld:1;
  834. uint64_t undat:1;
  835. uint64_t uneop:1;
  836. uint64_t unsop:1;
  837. uint64_t bad_term:1;
  838. uint64_t bad_seq:1;
  839. uint64_t rem_fault:1;
  840. uint64_t loc_fault:1;
  841. uint64_t pause_drp:1;
  842. uint64_t reserved_16_18:3;
  843. uint64_t ifgerr:1;
  844. uint64_t coldet:1;
  845. uint64_t falerr:1;
  846. uint64_t rsverr:1;
  847. uint64_t pcterr:1;
  848. uint64_t ovrerr:1;
  849. uint64_t reserved_9_9:1;
  850. uint64_t skperr:1;
  851. uint64_t rcverr:1;
  852. uint64_t reserved_5_6:2;
  853. uint64_t fcserr:1;
  854. uint64_t jabber:1;
  855. uint64_t reserved_2_2:1;
  856. uint64_t carext:1;
  857. uint64_t reserved_0_0:1;
  858. } cn52xx;
  859. struct cvmx_gmxx_rxx_int_en_cn52xx cn52xxp1;
  860. struct cvmx_gmxx_rxx_int_en_cn52xx cn56xx;
  861. struct cvmx_gmxx_rxx_int_en_cn56xxp1 {
  862. uint64_t reserved_27_63:37;
  863. uint64_t undat:1;
  864. uint64_t uneop:1;
  865. uint64_t unsop:1;
  866. uint64_t bad_term:1;
  867. uint64_t bad_seq:1;
  868. uint64_t rem_fault:1;
  869. uint64_t loc_fault:1;
  870. uint64_t pause_drp:1;
  871. uint64_t reserved_16_18:3;
  872. uint64_t ifgerr:1;
  873. uint64_t coldet:1;
  874. uint64_t falerr:1;
  875. uint64_t rsverr:1;
  876. uint64_t pcterr:1;
  877. uint64_t ovrerr:1;
  878. uint64_t reserved_9_9:1;
  879. uint64_t skperr:1;
  880. uint64_t rcverr:1;
  881. uint64_t reserved_5_6:2;
  882. uint64_t fcserr:1;
  883. uint64_t jabber:1;
  884. uint64_t reserved_2_2:1;
  885. uint64_t carext:1;
  886. uint64_t reserved_0_0:1;
  887. } cn56xxp1;
  888. struct cvmx_gmxx_rxx_int_en_cn58xx {
  889. uint64_t reserved_20_63:44;
  890. uint64_t pause_drp:1;
  891. uint64_t phy_dupx:1;
  892. uint64_t phy_spd:1;
  893. uint64_t phy_link:1;
  894. uint64_t ifgerr:1;
  895. uint64_t coldet:1;
  896. uint64_t falerr:1;
  897. uint64_t rsverr:1;
  898. uint64_t pcterr:1;
  899. uint64_t ovrerr:1;
  900. uint64_t niberr:1;
  901. uint64_t skperr:1;
  902. uint64_t rcverr:1;
  903. uint64_t lenerr:1;
  904. uint64_t alnerr:1;
  905. uint64_t fcserr:1;
  906. uint64_t jabber:1;
  907. uint64_t maxerr:1;
  908. uint64_t carext:1;
  909. uint64_t minerr:1;
  910. } cn58xx;
  911. struct cvmx_gmxx_rxx_int_en_cn58xx cn58xxp1;
  912. };
  913. union cvmx_gmxx_rxx_int_reg {
  914. uint64_t u64;
  915. struct cvmx_gmxx_rxx_int_reg_s {
  916. uint64_t reserved_29_63:35;
  917. uint64_t hg2cc:1;
  918. uint64_t hg2fld:1;
  919. uint64_t undat:1;
  920. uint64_t uneop:1;
  921. uint64_t unsop:1;
  922. uint64_t bad_term:1;
  923. uint64_t bad_seq:1;
  924. uint64_t rem_fault:1;
  925. uint64_t loc_fault:1;
  926. uint64_t pause_drp:1;
  927. uint64_t phy_dupx:1;
  928. uint64_t phy_spd:1;
  929. uint64_t phy_link:1;
  930. uint64_t ifgerr:1;
  931. uint64_t coldet:1;
  932. uint64_t falerr:1;
  933. uint64_t rsverr:1;
  934. uint64_t pcterr:1;
  935. uint64_t ovrerr:1;
  936. uint64_t niberr:1;
  937. uint64_t skperr:1;
  938. uint64_t rcverr:1;
  939. uint64_t lenerr:1;
  940. uint64_t alnerr:1;
  941. uint64_t fcserr:1;
  942. uint64_t jabber:1;
  943. uint64_t maxerr:1;
  944. uint64_t carext:1;
  945. uint64_t minerr:1;
  946. } s;
  947. struct cvmx_gmxx_rxx_int_reg_cn30xx {
  948. uint64_t reserved_19_63:45;
  949. uint64_t phy_dupx:1;
  950. uint64_t phy_spd:1;
  951. uint64_t phy_link:1;
  952. uint64_t ifgerr:1;
  953. uint64_t coldet:1;
  954. uint64_t falerr:1;
  955. uint64_t rsverr:1;
  956. uint64_t pcterr:1;
  957. uint64_t ovrerr:1;
  958. uint64_t niberr:1;
  959. uint64_t skperr:1;
  960. uint64_t rcverr:1;
  961. uint64_t lenerr:1;
  962. uint64_t alnerr:1;
  963. uint64_t fcserr:1;
  964. uint64_t jabber:1;
  965. uint64_t maxerr:1;
  966. uint64_t carext:1;
  967. uint64_t minerr:1;
  968. } cn30xx;
  969. struct cvmx_gmxx_rxx_int_reg_cn30xx cn31xx;
  970. struct cvmx_gmxx_rxx_int_reg_cn30xx cn38xx;
  971. struct cvmx_gmxx_rxx_int_reg_cn30xx cn38xxp2;
  972. struct cvmx_gmxx_rxx_int_reg_cn50xx {
  973. uint64_t reserved_20_63:44;
  974. uint64_t pause_drp:1;
  975. uint64_t phy_dupx:1;
  976. uint64_t phy_spd:1;
  977. uint64_t phy_link:1;
  978. uint64_t ifgerr:1;
  979. uint64_t coldet:1;
  980. uint64_t falerr:1;
  981. uint64_t rsverr:1;
  982. uint64_t pcterr:1;
  983. uint64_t ovrerr:1;
  984. uint64_t niberr:1;
  985. uint64_t skperr:1;
  986. uint64_t rcverr:1;
  987. uint64_t reserved_6_6:1;
  988. uint64_t alnerr:1;
  989. uint64_t fcserr:1;
  990. uint64_t jabber:1;
  991. uint64_t reserved_2_2:1;
  992. uint64_t carext:1;
  993. uint64_t reserved_0_0:1;
  994. } cn50xx;
  995. struct cvmx_gmxx_rxx_int_reg_cn52xx {
  996. uint64_t reserved_29_63:35;
  997. uint64_t hg2cc:1;
  998. uint64_t hg2fld:1;
  999. uint64_t undat:1;
  1000. uint64_t uneop:1;
  1001. uint64_t unsop:1;
  1002. uint64_t bad_term:1;
  1003. uint64_t bad_seq:1;
  1004. uint64_t rem_fault:1;
  1005. uint64_t loc_fault:1;
  1006. uint64_t pause_drp:1;
  1007. uint64_t reserved_16_18:3;
  1008. uint64_t ifgerr:1;
  1009. uint64_t coldet:1;
  1010. uint64_t falerr:1;
  1011. uint64_t rsverr:1;
  1012. uint64_t pcterr:1;
  1013. uint64_t ovrerr:1;
  1014. uint64_t reserved_9_9:1;
  1015. uint64_t skperr:1;
  1016. uint64_t rcverr:1;
  1017. uint64_t reserved_5_6:2;
  1018. uint64_t fcserr:1;
  1019. uint64_t jabber:1;
  1020. uint64_t reserved_2_2:1;
  1021. uint64_t carext:1;
  1022. uint64_t reserved_0_0:1;
  1023. } cn52xx;
  1024. struct cvmx_gmxx_rxx_int_reg_cn52xx cn52xxp1;
  1025. struct cvmx_gmxx_rxx_int_reg_cn52xx cn56xx;
  1026. struct cvmx_gmxx_rxx_int_reg_cn56xxp1 {
  1027. uint64_t reserved_27_63:37;
  1028. uint64_t undat:1;
  1029. uint64_t uneop:1;
  1030. uint64_t unsop:1;
  1031. uint64_t bad_term:1;
  1032. uint64_t bad_seq:1;
  1033. uint64_t rem_fault:1;
  1034. uint64_t loc_fault:1;
  1035. uint64_t pause_drp:1;
  1036. uint64_t reserved_16_18:3;
  1037. uint64_t ifgerr:1;
  1038. uint64_t coldet:1;
  1039. uint64_t falerr:1;
  1040. uint64_t rsverr:1;
  1041. uint64_t pcterr:1;
  1042. uint64_t ovrerr:1;
  1043. uint64_t reserved_9_9:1;
  1044. uint64_t skperr:1;
  1045. uint64_t rcverr:1;
  1046. uint64_t reserved_5_6:2;
  1047. uint64_t fcserr:1;
  1048. uint64_t jabber:1;
  1049. uint64_t reserved_2_2:1;
  1050. uint64_t carext:1;
  1051. uint64_t reserved_0_0:1;
  1052. } cn56xxp1;
  1053. struct cvmx_gmxx_rxx_int_reg_cn58xx {
  1054. uint64_t reserved_20_63:44;
  1055. uint64_t pause_drp:1;
  1056. uint64_t phy_dupx:1;
  1057. uint64_t phy_spd:1;
  1058. uint64_t phy_link:1;
  1059. uint64_t ifgerr:1;
  1060. uint64_t coldet:1;
  1061. uint64_t falerr:1;
  1062. uint64_t rsverr:1;
  1063. uint64_t pcterr:1;
  1064. uint64_t ovrerr:1;
  1065. uint64_t niberr:1;
  1066. uint64_t skperr:1;
  1067. uint64_t rcverr:1;
  1068. uint64_t lenerr:1;
  1069. uint64_t alnerr:1;
  1070. uint64_t fcserr:1;
  1071. uint64_t jabber:1;
  1072. uint64_t maxerr:1;
  1073. uint64_t carext:1;
  1074. uint64_t minerr:1;
  1075. } cn58xx;
  1076. struct cvmx_gmxx_rxx_int_reg_cn58xx cn58xxp1;
  1077. };
  1078. union cvmx_gmxx_rxx_jabber {
  1079. uint64_t u64;
  1080. struct cvmx_gmxx_rxx_jabber_s {
  1081. uint64_t reserved_16_63:48;
  1082. uint64_t cnt:16;
  1083. } s;
  1084. struct cvmx_gmxx_rxx_jabber_s cn30xx;
  1085. struct cvmx_gmxx_rxx_jabber_s cn31xx;
  1086. struct cvmx_gmxx_rxx_jabber_s cn38xx;
  1087. struct cvmx_gmxx_rxx_jabber_s cn38xxp2;
  1088. struct cvmx_gmxx_rxx_jabber_s cn50xx;
  1089. struct cvmx_gmxx_rxx_jabber_s cn52xx;
  1090. struct cvmx_gmxx_rxx_jabber_s cn52xxp1;
  1091. struct cvmx_gmxx_rxx_jabber_s cn56xx;
  1092. struct cvmx_gmxx_rxx_jabber_s cn56xxp1;
  1093. struct cvmx_gmxx_rxx_jabber_s cn58xx;
  1094. struct cvmx_gmxx_rxx_jabber_s cn58xxp1;
  1095. };
  1096. union cvmx_gmxx_rxx_pause_drop_time {
  1097. uint64_t u64;
  1098. struct cvmx_gmxx_rxx_pause_drop_time_s {
  1099. uint64_t reserved_16_63:48;
  1100. uint64_t status:16;
  1101. } s;
  1102. struct cvmx_gmxx_rxx_pause_drop_time_s cn50xx;
  1103. struct cvmx_gmxx_rxx_pause_drop_time_s cn52xx;
  1104. struct cvmx_gmxx_rxx_pause_drop_time_s cn52xxp1;
  1105. struct cvmx_gmxx_rxx_pause_drop_time_s cn56xx;
  1106. struct cvmx_gmxx_rxx_pause_drop_time_s cn56xxp1;
  1107. struct cvmx_gmxx_rxx_pause_drop_time_s cn58xx;
  1108. struct cvmx_gmxx_rxx_pause_drop_time_s cn58xxp1;
  1109. };
  1110. union cvmx_gmxx_rxx_rx_inbnd {
  1111. uint64_t u64;
  1112. struct cvmx_gmxx_rxx_rx_inbnd_s {
  1113. uint64_t reserved_4_63:60;
  1114. uint64_t duplex:1;
  1115. uint64_t speed:2;
  1116. uint64_t status:1;
  1117. } s;
  1118. struct cvmx_gmxx_rxx_rx_inbnd_s cn30xx;
  1119. struct cvmx_gmxx_rxx_rx_inbnd_s cn31xx;
  1120. struct cvmx_gmxx_rxx_rx_inbnd_s cn38xx;
  1121. struct cvmx_gmxx_rxx_rx_inbnd_s cn38xxp2;
  1122. struct cvmx_gmxx_rxx_rx_inbnd_s cn50xx;
  1123. struct cvmx_gmxx_rxx_rx_inbnd_s cn58xx;
  1124. struct cvmx_gmxx_rxx_rx_inbnd_s cn58xxp1;
  1125. };
  1126. union cvmx_gmxx_rxx_stats_ctl {
  1127. uint64_t u64;
  1128. struct cvmx_gmxx_rxx_stats_ctl_s {
  1129. uint64_t reserved_1_63:63;
  1130. uint64_t rd_clr:1;
  1131. } s;
  1132. struct cvmx_gmxx_rxx_stats_ctl_s cn30xx;
  1133. struct cvmx_gmxx_rxx_stats_ctl_s cn31xx;
  1134. struct cvmx_gmxx_rxx_stats_ctl_s cn38xx;
  1135. struct cvmx_gmxx_rxx_stats_ctl_s cn38xxp2;
  1136. struct cvmx_gmxx_rxx_stats_ctl_s cn50xx;
  1137. struct cvmx_gmxx_rxx_stats_ctl_s cn52xx;
  1138. struct cvmx_gmxx_rxx_stats_ctl_s cn52xxp1;
  1139. struct cvmx_gmxx_rxx_stats_ctl_s cn56xx;
  1140. struct cvmx_gmxx_rxx_stats_ctl_s cn56xxp1;
  1141. struct cvmx_gmxx_rxx_stats_ctl_s cn58xx;
  1142. struct cvmx_gmxx_rxx_stats_ctl_s cn58xxp1;
  1143. };
  1144. union cvmx_gmxx_rxx_stats_octs {
  1145. uint64_t u64;
  1146. struct cvmx_gmxx_rxx_stats_octs_s {
  1147. uint64_t reserved_48_63:16;
  1148. uint64_t cnt:48;
  1149. } s;
  1150. struct cvmx_gmxx_rxx_stats_octs_s cn30xx;
  1151. struct cvmx_gmxx_rxx_stats_octs_s cn31xx;
  1152. struct cvmx_gmxx_rxx_stats_octs_s cn38xx;
  1153. struct cvmx_gmxx_rxx_stats_octs_s cn38xxp2;
  1154. struct cvmx_gmxx_rxx_stats_octs_s cn50xx;
  1155. struct cvmx_gmxx_rxx_stats_octs_s cn52xx;
  1156. struct cvmx_gmxx_rxx_stats_octs_s cn52xxp1;
  1157. struct cvmx_gmxx_rxx_stats_octs_s cn56xx;
  1158. struct cvmx_gmxx_rxx_stats_octs_s cn56xxp1;
  1159. struct cvmx_gmxx_rxx_stats_octs_s cn58xx;
  1160. struct cvmx_gmxx_rxx_stats_octs_s cn58xxp1;
  1161. };
  1162. union cvmx_gmxx_rxx_stats_octs_ctl {
  1163. uint64_t u64;
  1164. struct cvmx_gmxx_rxx_stats_octs_ctl_s {
  1165. uint64_t reserved_48_63:16;
  1166. uint64_t cnt:48;
  1167. } s;
  1168. struct cvmx_gmxx_rxx_stats_octs_ctl_s cn30xx;
  1169. struct cvmx_gmxx_rxx_stats_octs_ctl_s cn31xx;
  1170. struct cvmx_gmxx_rxx_stats_octs_ctl_s cn38xx;
  1171. struct cvmx_gmxx_rxx_stats_octs_ctl_s cn38xxp2;
  1172. struct cvmx_gmxx_rxx_stats_octs_ctl_s cn50xx;
  1173. struct cvmx_gmxx_rxx_stats_octs_ctl_s cn52xx;
  1174. struct cvmx_gmxx_rxx_stats_octs_ctl_s cn52xxp1;
  1175. struct cvmx_gmxx_rxx_stats_octs_ctl_s cn56xx;
  1176. struct cvmx_gmxx_rxx_stats_octs_ctl_s cn56xxp1;
  1177. struct cvmx_gmxx_rxx_stats_octs_ctl_s cn58xx;
  1178. struct cvmx_gmxx_rxx_stats_octs_ctl_s cn58xxp1;
  1179. };
  1180. union cvmx_gmxx_rxx_stats_octs_dmac {
  1181. uint64_t u64;
  1182. struct cvmx_gmxx_rxx_stats_octs_dmac_s {
  1183. uint64_t reserved_48_63:16;
  1184. uint64_t cnt:48;
  1185. } s;
  1186. struct cvmx_gmxx_rxx_stats_octs_dmac_s cn30xx;
  1187. struct cvmx_gmxx_rxx_stats_octs_dmac_s cn31xx;
  1188. struct cvmx_gmxx_rxx_stats_octs_dmac_s cn38xx;
  1189. struct cvmx_gmxx_rxx_stats_octs_dmac_s cn38xxp2;
  1190. struct cvmx_gmxx_rxx_stats_octs_dmac_s cn50xx;
  1191. struct cvmx_gmxx_rxx_stats_octs_dmac_s cn52xx;
  1192. struct cvmx_gmxx_rxx_stats_octs_dmac_s cn52xxp1;
  1193. struct cvmx_gmxx_rxx_stats_octs_dmac_s cn56xx;
  1194. struct cvmx_gmxx_rxx_stats_octs_dmac_s cn56xxp1;
  1195. struct cvmx_gmxx_rxx_stats_octs_dmac_s cn58xx;
  1196. struct cvmx_gmxx_rxx_stats_octs_dmac_s cn58xxp1;
  1197. };
  1198. union cvmx_gmxx_rxx_stats_octs_drp {
  1199. uint64_t u64;
  1200. struct cvmx_gmxx_rxx_stats_octs_drp_s {
  1201. uint64_t reserved_48_63:16;
  1202. uint64_t cnt:48;
  1203. } s;
  1204. struct cvmx_gmxx_rxx_stats_octs_drp_s cn30xx;
  1205. struct cvmx_gmxx_rxx_stats_octs_drp_s cn31xx;
  1206. struct cvmx_gmxx_rxx_stats_octs_drp_s cn38xx;
  1207. struct cvmx_gmxx_rxx_stats_octs_drp_s cn38xxp2;
  1208. struct cvmx_gmxx_rxx_stats_octs_drp_s cn50xx;
  1209. struct cvmx_gmxx_rxx_stats_octs_drp_s cn52xx;
  1210. struct cvmx_gmxx_rxx_stats_octs_drp_s cn52xxp1;
  1211. struct cvmx_gmxx_rxx_stats_octs_drp_s cn56xx;
  1212. struct cvmx_gmxx_rxx_stats_octs_drp_s cn56xxp1;
  1213. struct cvmx_gmxx_rxx_stats_octs_drp_s cn58xx;
  1214. struct cvmx_gmxx_rxx_stats_octs_drp_s cn58xxp1;
  1215. };
  1216. union cvmx_gmxx_rxx_stats_pkts {
  1217. uint64_t u64;
  1218. struct cvmx_gmxx_rxx_stats_pkts_s {
  1219. uint64_t reserved_32_63:32;
  1220. uint64_t cnt:32;
  1221. } s;
  1222. struct cvmx_gmxx_rxx_stats_pkts_s cn30xx;
  1223. struct cvmx_gmxx_rxx_stats_pkts_s cn31xx;
  1224. struct cvmx_gmxx_rxx_stats_pkts_s cn38xx;
  1225. struct cvmx_gmxx_rxx_stats_pkts_s cn38xxp2;
  1226. struct cvmx_gmxx_rxx_stats_pkts_s cn50xx;
  1227. struct cvmx_gmxx_rxx_stats_pkts_s cn52xx;
  1228. struct cvmx_gmxx_rxx_stats_pkts_s cn52xxp1;
  1229. struct cvmx_gmxx_rxx_stats_pkts_s cn56xx;
  1230. struct cvmx_gmxx_rxx_stats_pkts_s cn56xxp1;
  1231. struct cvmx_gmxx_rxx_stats_pkts_s cn58xx;
  1232. struct cvmx_gmxx_rxx_stats_pkts_s cn58xxp1;
  1233. };
  1234. union cvmx_gmxx_rxx_stats_pkts_bad {
  1235. uint64_t u64;
  1236. struct cvmx_gmxx_rxx_stats_pkts_bad_s {
  1237. uint64_t reserved_32_63:32;
  1238. uint64_t cnt:32;
  1239. } s;
  1240. struct cvmx_gmxx_rxx_stats_pkts_bad_s cn30xx;
  1241. struct cvmx_gmxx_rxx_stats_pkts_bad_s cn31xx;
  1242. struct cvmx_gmxx_rxx_stats_pkts_bad_s cn38xx;
  1243. struct cvmx_gmxx_rxx_stats_pkts_bad_s cn38xxp2;
  1244. struct cvmx_gmxx_rxx_stats_pkts_bad_s cn50xx;
  1245. struct cvmx_gmxx_rxx_stats_pkts_bad_s cn52xx;
  1246. struct cvmx_gmxx_rxx_stats_pkts_bad_s cn52xxp1;
  1247. struct cvmx_gmxx_rxx_stats_pkts_bad_s cn56xx;
  1248. struct cvmx_gmxx_rxx_stats_pkts_bad_s cn56xxp1;
  1249. struct cvmx_gmxx_rxx_stats_pkts_bad_s cn58xx;
  1250. struct cvmx_gmxx_rxx_stats_pkts_bad_s cn58xxp1;
  1251. };
  1252. union cvmx_gmxx_rxx_stats_pkts_ctl {
  1253. uint64_t u64;
  1254. struct cvmx_gmxx_rxx_stats_pkts_ctl_s {
  1255. uint64_t reserved_32_63:32;
  1256. uint64_t cnt:32;
  1257. } s;
  1258. struct cvmx_gmxx_rxx_stats_pkts_ctl_s cn30xx;
  1259. struct cvmx_gmxx_rxx_stats_pkts_ctl_s cn31xx;
  1260. struct cvmx_gmxx_rxx_stats_pkts_ctl_s cn38xx;
  1261. struct cvmx_gmxx_rxx_stats_pkts_ctl_s cn38xxp2;
  1262. struct cvmx_gmxx_rxx_stats_pkts_ctl_s cn50xx;
  1263. struct cvmx_gmxx_rxx_stats_pkts_ctl_s cn52xx;
  1264. struct cvmx_gmxx_rxx_stats_pkts_ctl_s cn52xxp1;
  1265. struct cvmx_gmxx_rxx_stats_pkts_ctl_s cn56xx;
  1266. struct cvmx_gmxx_rxx_stats_pkts_ctl_s cn56xxp1;
  1267. struct cvmx_gmxx_rxx_stats_pkts_ctl_s cn58xx;
  1268. struct cvmx_gmxx_rxx_stats_pkts_ctl_s cn58xxp1;
  1269. };
  1270. union cvmx_gmxx_rxx_stats_pkts_dmac {
  1271. uint64_t u64;
  1272. struct cvmx_gmxx_rxx_stats_pkts_dmac_s {
  1273. uint64_t reserved_32_63:32;
  1274. uint64_t cnt:32;
  1275. } s;
  1276. struct cvmx_gmxx_rxx_stats_pkts_dmac_s cn30xx;
  1277. struct cvmx_gmxx_rxx_stats_pkts_dmac_s cn31xx;
  1278. struct cvmx_gmxx_rxx_stats_pkts_dmac_s cn38xx;
  1279. struct cvmx_gmxx_rxx_stats_pkts_dmac_s cn38xxp2;
  1280. struct cvmx_gmxx_rxx_stats_pkts_dmac_s cn50xx;
  1281. struct cvmx_gmxx_rxx_stats_pkts_dmac_s cn52xx;
  1282. struct cvmx_gmxx_rxx_stats_pkts_dmac_s cn52xxp1;
  1283. struct cvmx_gmxx_rxx_stats_pkts_dmac_s cn56xx;
  1284. struct cvmx_gmxx_rxx_stats_pkts_dmac_s cn56xxp1;
  1285. struct cvmx_gmxx_rxx_stats_pkts_dmac_s cn58xx;
  1286. struct cvmx_gmxx_rxx_stats_pkts_dmac_s cn58xxp1;
  1287. };
  1288. union cvmx_gmxx_rxx_stats_pkts_drp {
  1289. uint64_t u64;
  1290. struct cvmx_gmxx_rxx_stats_pkts_drp_s {
  1291. uint64_t reserved_32_63:32;
  1292. uint64_t cnt:32;
  1293. } s;
  1294. struct cvmx_gmxx_rxx_stats_pkts_drp_s cn30xx;
  1295. struct cvmx_gmxx_rxx_stats_pkts_drp_s cn31xx;
  1296. struct cvmx_gmxx_rxx_stats_pkts_drp_s cn38xx;
  1297. struct cvmx_gmxx_rxx_stats_pkts_drp_s cn38xxp2;
  1298. struct cvmx_gmxx_rxx_stats_pkts_drp_s cn50xx;
  1299. struct cvmx_gmxx_rxx_stats_pkts_drp_s cn52xx;
  1300. struct cvmx_gmxx_rxx_stats_pkts_drp_s cn52xxp1;
  1301. struct cvmx_gmxx_rxx_stats_pkts_drp_s cn56xx;
  1302. struct cvmx_gmxx_rxx_stats_pkts_drp_s cn56xxp1;
  1303. struct cvmx_gmxx_rxx_stats_pkts_drp_s cn58xx;
  1304. struct cvmx_gmxx_rxx_stats_pkts_drp_s cn58xxp1;
  1305. };
  1306. union cvmx_gmxx_rxx_udd_skp {
  1307. uint64_t u64;
  1308. struct cvmx_gmxx_rxx_udd_skp_s {
  1309. uint64_t reserved_9_63:55;
  1310. uint64_t fcssel:1;
  1311. uint64_t reserved_7_7:1;
  1312. uint64_t len:7;
  1313. } s;
  1314. struct cvmx_gmxx_rxx_udd_skp_s cn30xx;
  1315. struct cvmx_gmxx_rxx_udd_skp_s cn31xx;
  1316. struct cvmx_gmxx_rxx_udd_skp_s cn38xx;
  1317. struct cvmx_gmxx_rxx_udd_skp_s cn38xxp2;
  1318. struct cvmx_gmxx_rxx_udd_skp_s cn50xx;
  1319. struct cvmx_gmxx_rxx_udd_skp_s cn52xx;
  1320. struct cvmx_gmxx_rxx_udd_skp_s cn52xxp1;
  1321. struct cvmx_gmxx_rxx_udd_skp_s cn56xx;
  1322. struct cvmx_gmxx_rxx_udd_skp_s cn56xxp1;
  1323. struct cvmx_gmxx_rxx_udd_skp_s cn58xx;
  1324. struct cvmx_gmxx_rxx_udd_skp_s cn58xxp1;
  1325. };
  1326. union cvmx_gmxx_rx_bp_dropx {
  1327. uint64_t u64;
  1328. struct cvmx_gmxx_rx_bp_dropx_s {
  1329. uint64_t reserved_6_63:58;
  1330. uint64_t mark:6;
  1331. } s;
  1332. struct cvmx_gmxx_rx_bp_dropx_s cn30xx;
  1333. struct cvmx_gmxx_rx_bp_dropx_s cn31xx;
  1334. struct cvmx_gmxx_rx_bp_dropx_s cn38xx;
  1335. struct cvmx_gmxx_rx_bp_dropx_s cn38xxp2;
  1336. struct cvmx_gmxx_rx_bp_dropx_s cn50xx;
  1337. struct cvmx_gmxx_rx_bp_dropx_s cn52xx;
  1338. struct cvmx_gmxx_rx_bp_dropx_s cn52xxp1;
  1339. struct cvmx_gmxx_rx_bp_dropx_s cn56xx;
  1340. struct cvmx_gmxx_rx_bp_dropx_s cn56xxp1;
  1341. struct cvmx_gmxx_rx_bp_dropx_s cn58xx;
  1342. struct cvmx_gmxx_rx_bp_dropx_s cn58xxp1;
  1343. };
  1344. union cvmx_gmxx_rx_bp_offx {
  1345. uint64_t u64;
  1346. struct cvmx_gmxx_rx_bp_offx_s {
  1347. uint64_t reserved_6_63:58;
  1348. uint64_t mark:6;
  1349. } s;
  1350. struct cvmx_gmxx_rx_bp_offx_s cn30xx;
  1351. struct cvmx_gmxx_rx_bp_offx_s cn31xx;
  1352. struct cvmx_gmxx_rx_bp_offx_s cn38xx;
  1353. struct cvmx_gmxx_rx_bp_offx_s cn38xxp2;
  1354. struct cvmx_gmxx_rx_bp_offx_s cn50xx;
  1355. struct cvmx_gmxx_rx_bp_offx_s cn52xx;
  1356. struct cvmx_gmxx_rx_bp_offx_s cn52xxp1;
  1357. struct cvmx_gmxx_rx_bp_offx_s cn56xx;
  1358. struct cvmx_gmxx_rx_bp_offx_s cn56xxp1;
  1359. struct cvmx_gmxx_rx_bp_offx_s cn58xx;
  1360. struct cvmx_gmxx_rx_bp_offx_s cn58xxp1;
  1361. };
  1362. union cvmx_gmxx_rx_bp_onx {
  1363. uint64_t u64;
  1364. struct cvmx_gmxx_rx_bp_onx_s {
  1365. uint64_t reserved_9_63:55;
  1366. uint64_t mark:9;
  1367. } s;
  1368. struct cvmx_gmxx_rx_bp_onx_s cn30xx;
  1369. struct cvmx_gmxx_rx_bp_onx_s cn31xx;
  1370. struct cvmx_gmxx_rx_bp_onx_s cn38xx;
  1371. struct cvmx_gmxx_rx_bp_onx_s cn38xxp2;
  1372. struct cvmx_gmxx_rx_bp_onx_s cn50xx;
  1373. struct cvmx_gmxx_rx_bp_onx_s cn52xx;
  1374. struct cvmx_gmxx_rx_bp_onx_s cn52xxp1;
  1375. struct cvmx_gmxx_rx_bp_onx_s cn56xx;
  1376. struct cvmx_gmxx_rx_bp_onx_s cn56xxp1;
  1377. struct cvmx_gmxx_rx_bp_onx_s cn58xx;
  1378. struct cvmx_gmxx_rx_bp_onx_s cn58xxp1;
  1379. };
  1380. union cvmx_gmxx_rx_hg2_status {
  1381. uint64_t u64;
  1382. struct cvmx_gmxx_rx_hg2_status_s {
  1383. uint64_t reserved_48_63:16;
  1384. uint64_t phtim2go:16;
  1385. uint64_t xof:16;
  1386. uint64_t lgtim2go:16;
  1387. } s;
  1388. struct cvmx_gmxx_rx_hg2_status_s cn52xx;
  1389. struct cvmx_gmxx_rx_hg2_status_s cn52xxp1;
  1390. struct cvmx_gmxx_rx_hg2_status_s cn56xx;
  1391. };
  1392. union cvmx_gmxx_rx_pass_en {
  1393. uint64_t u64;
  1394. struct cvmx_gmxx_rx_pass_en_s {
  1395. uint64_t reserved_16_63:48;
  1396. uint64_t en:16;
  1397. } s;
  1398. struct cvmx_gmxx_rx_pass_en_s cn38xx;
  1399. struct cvmx_gmxx_rx_pass_en_s cn38xxp2;
  1400. struct cvmx_gmxx_rx_pass_en_s cn58xx;
  1401. struct cvmx_gmxx_rx_pass_en_s cn58xxp1;
  1402. };
  1403. union cvmx_gmxx_rx_pass_mapx {
  1404. uint64_t u64;
  1405. struct cvmx_gmxx_rx_pass_mapx_s {
  1406. uint64_t reserved_4_63:60;
  1407. uint64_t dprt:4;
  1408. } s;
  1409. struct cvmx_gmxx_rx_pass_mapx_s cn38xx;
  1410. struct cvmx_gmxx_rx_pass_mapx_s cn38xxp2;
  1411. struct cvmx_gmxx_rx_pass_mapx_s cn58xx;
  1412. struct cvmx_gmxx_rx_pass_mapx_s cn58xxp1;
  1413. };
  1414. union cvmx_gmxx_rx_prt_info {
  1415. uint64_t u64;
  1416. struct cvmx_gmxx_rx_prt_info_s {
  1417. uint64_t reserved_32_63:32;
  1418. uint64_t drop:16;
  1419. uint64_t commit:16;
  1420. } s;
  1421. struct cvmx_gmxx_rx_prt_info_cn30xx {
  1422. uint64_t reserved_19_63:45;
  1423. uint64_t drop:3;
  1424. uint64_t reserved_3_15:13;
  1425. uint64_t commit:3;
  1426. } cn30xx;
  1427. struct cvmx_gmxx_rx_prt_info_cn30xx cn31xx;
  1428. struct cvmx_gmxx_rx_prt_info_s cn38xx;
  1429. struct cvmx_gmxx_rx_prt_info_cn30xx cn50xx;
  1430. struct cvmx_gmxx_rx_prt_info_cn52xx {
  1431. uint64_t reserved_20_63:44;
  1432. uint64_t drop:4;
  1433. uint64_t reserved_4_15:12;
  1434. uint64_t commit:4;
  1435. } cn52xx;
  1436. struct cvmx_gmxx_rx_prt_info_cn52xx cn52xxp1;
  1437. struct cvmx_gmxx_rx_prt_info_cn52xx cn56xx;
  1438. struct cvmx_gmxx_rx_prt_info_cn52xx cn56xxp1;
  1439. struct cvmx_gmxx_rx_prt_info_s cn58xx;
  1440. struct cvmx_gmxx_rx_prt_info_s cn58xxp1;
  1441. };
  1442. union cvmx_gmxx_rx_prts {
  1443. uint64_t u64;
  1444. struct cvmx_gmxx_rx_prts_s {
  1445. uint64_t reserved_3_63:61;
  1446. uint64_t prts:3;
  1447. } s;
  1448. struct cvmx_gmxx_rx_prts_s cn30xx;
  1449. struct cvmx_gmxx_rx_prts_s cn31xx;
  1450. struct cvmx_gmxx_rx_prts_s cn38xx;
  1451. struct cvmx_gmxx_rx_prts_s cn38xxp2;
  1452. struct cvmx_gmxx_rx_prts_s cn50xx;
  1453. struct cvmx_gmxx_rx_prts_s cn52xx;
  1454. struct cvmx_gmxx_rx_prts_s cn52xxp1;
  1455. struct cvmx_gmxx_rx_prts_s cn56xx;
  1456. struct cvmx_gmxx_rx_prts_s cn56xxp1;
  1457. struct cvmx_gmxx_rx_prts_s cn58xx;
  1458. struct cvmx_gmxx_rx_prts_s cn58xxp1;
  1459. };
  1460. union cvmx_gmxx_rx_tx_status {
  1461. uint64_t u64;
  1462. struct cvmx_gmxx_rx_tx_status_s {
  1463. uint64_t reserved_7_63:57;
  1464. uint64_t tx:3;
  1465. uint64_t reserved_3_3:1;
  1466. uint64_t rx:3;
  1467. } s;
  1468. struct cvmx_gmxx_rx_tx_status_s cn30xx;
  1469. struct cvmx_gmxx_rx_tx_status_s cn31xx;
  1470. struct cvmx_gmxx_rx_tx_status_s cn50xx;
  1471. };
  1472. union cvmx_gmxx_rx_xaui_bad_col {
  1473. uint64_t u64;
  1474. struct cvmx_gmxx_rx_xaui_bad_col_s {
  1475. uint64_t reserved_40_63:24;
  1476. uint64_t val:1;
  1477. uint64_t state:3;
  1478. uint64_t lane_rxc:4;
  1479. uint64_t lane_rxd:32;
  1480. } s;
  1481. struct cvmx_gmxx_rx_xaui_bad_col_s cn52xx;
  1482. struct cvmx_gmxx_rx_xaui_bad_col_s cn52xxp1;
  1483. struct cvmx_gmxx_rx_xaui_bad_col_s cn56xx;
  1484. struct cvmx_gmxx_rx_xaui_bad_col_s cn56xxp1;
  1485. };
  1486. union cvmx_gmxx_rx_xaui_ctl {
  1487. uint64_t u64;
  1488. struct cvmx_gmxx_rx_xaui_ctl_s {
  1489. uint64_t reserved_2_63:62;
  1490. uint64_t status:2;
  1491. } s;
  1492. struct cvmx_gmxx_rx_xaui_ctl_s cn52xx;
  1493. struct cvmx_gmxx_rx_xaui_ctl_s cn52xxp1;
  1494. struct cvmx_gmxx_rx_xaui_ctl_s cn56xx;
  1495. struct cvmx_gmxx_rx_xaui_ctl_s cn56xxp1;
  1496. };
  1497. union cvmx_gmxx_smacx {
  1498. uint64_t u64;
  1499. struct cvmx_gmxx_smacx_s {
  1500. uint64_t reserved_48_63:16;
  1501. uint64_t smac:48;
  1502. } s;
  1503. struct cvmx_gmxx_smacx_s cn30xx;
  1504. struct cvmx_gmxx_smacx_s cn31xx;
  1505. struct cvmx_gmxx_smacx_s cn38xx;
  1506. struct cvmx_gmxx_smacx_s cn38xxp2;
  1507. struct cvmx_gmxx_smacx_s cn50xx;
  1508. struct cvmx_gmxx_smacx_s cn52xx;
  1509. struct cvmx_gmxx_smacx_s cn52xxp1;
  1510. struct cvmx_gmxx_smacx_s cn56xx;
  1511. struct cvmx_gmxx_smacx_s cn56xxp1;
  1512. struct cvmx_gmxx_smacx_s cn58xx;
  1513. struct cvmx_gmxx_smacx_s cn58xxp1;
  1514. };
  1515. union cvmx_gmxx_stat_bp {
  1516. uint64_t u64;
  1517. struct cvmx_gmxx_stat_bp_s {
  1518. uint64_t reserved_17_63:47;
  1519. uint64_t bp:1;
  1520. uint64_t cnt:16;
  1521. } s;
  1522. struct cvmx_gmxx_stat_bp_s cn30xx;
  1523. struct cvmx_gmxx_stat_bp_s cn31xx;
  1524. struct cvmx_gmxx_stat_bp_s cn38xx;
  1525. struct cvmx_gmxx_stat_bp_s cn38xxp2;
  1526. struct cvmx_gmxx_stat_bp_s cn50xx;
  1527. struct cvmx_gmxx_stat_bp_s cn52xx;
  1528. struct cvmx_gmxx_stat_bp_s cn52xxp1;
  1529. struct cvmx_gmxx_stat_bp_s cn56xx;
  1530. struct cvmx_gmxx_stat_bp_s cn56xxp1;
  1531. struct cvmx_gmxx_stat_bp_s cn58xx;
  1532. struct cvmx_gmxx_stat_bp_s cn58xxp1;
  1533. };
  1534. union cvmx_gmxx_txx_append {
  1535. uint64_t u64;
  1536. struct cvmx_gmxx_txx_append_s {
  1537. uint64_t reserved_4_63:60;
  1538. uint64_t force_fcs:1;
  1539. uint64_t fcs:1;
  1540. uint64_t pad:1;
  1541. uint64_t preamble:1;
  1542. } s;
  1543. struct cvmx_gmxx_txx_append_s cn30xx;
  1544. struct cvmx_gmxx_txx_append_s cn31xx;
  1545. struct cvmx_gmxx_txx_append_s cn38xx;
  1546. struct cvmx_gmxx_txx_append_s cn38xxp2;
  1547. struct cvmx_gmxx_txx_append_s cn50xx;
  1548. struct cvmx_gmxx_txx_append_s cn52xx;
  1549. struct cvmx_gmxx_txx_append_s cn52xxp1;
  1550. struct cvmx_gmxx_txx_append_s cn56xx;
  1551. struct cvmx_gmxx_txx_append_s cn56xxp1;
  1552. struct cvmx_gmxx_txx_append_s cn58xx;
  1553. struct cvmx_gmxx_txx_append_s cn58xxp1;
  1554. };
  1555. union cvmx_gmxx_txx_burst {
  1556. uint64_t u64;
  1557. struct cvmx_gmxx_txx_burst_s {
  1558. uint64_t reserved_16_63:48;
  1559. uint64_t burst:16;
  1560. } s;
  1561. struct cvmx_gmxx_txx_burst_s cn30xx;
  1562. struct cvmx_gmxx_txx_burst_s cn31xx;
  1563. struct cvmx_gmxx_txx_burst_s cn38xx;
  1564. struct cvmx_gmxx_txx_burst_s cn38xxp2;
  1565. struct cvmx_gmxx_txx_burst_s cn50xx;
  1566. struct cvmx_gmxx_txx_burst_s cn52xx;
  1567. struct cvmx_gmxx_txx_burst_s cn52xxp1;
  1568. struct cvmx_gmxx_txx_burst_s cn56xx;
  1569. struct cvmx_gmxx_txx_burst_s cn56xxp1;
  1570. struct cvmx_gmxx_txx_burst_s cn58xx;
  1571. struct cvmx_gmxx_txx_burst_s cn58xxp1;
  1572. };
  1573. union cvmx_gmxx_txx_cbfc_xoff {
  1574. uint64_t u64;
  1575. struct cvmx_gmxx_txx_cbfc_xoff_s {
  1576. uint64_t reserved_16_63:48;
  1577. uint64_t xoff:16;
  1578. } s;
  1579. struct cvmx_gmxx_txx_cbfc_xoff_s cn52xx;
  1580. struct cvmx_gmxx_txx_cbfc_xoff_s cn56xx;
  1581. };
  1582. union cvmx_gmxx_txx_cbfc_xon {
  1583. uint64_t u64;
  1584. struct cvmx_gmxx_txx_cbfc_xon_s {
  1585. uint64_t reserved_16_63:48;
  1586. uint64_t xon:16;
  1587. } s;
  1588. struct cvmx_gmxx_txx_cbfc_xon_s cn52xx;
  1589. struct cvmx_gmxx_txx_cbfc_xon_s cn56xx;
  1590. };
  1591. union cvmx_gmxx_txx_clk {
  1592. uint64_t u64;
  1593. struct cvmx_gmxx_txx_clk_s {
  1594. uint64_t reserved_6_63:58;
  1595. uint64_t clk_cnt:6;
  1596. } s;
  1597. struct cvmx_gmxx_txx_clk_s cn30xx;
  1598. struct cvmx_gmxx_txx_clk_s cn31xx;
  1599. struct cvmx_gmxx_txx_clk_s cn38xx;
  1600. struct cvmx_gmxx_txx_clk_s cn38xxp2;
  1601. struct cvmx_gmxx_txx_clk_s cn50xx;
  1602. struct cvmx_gmxx_txx_clk_s cn58xx;
  1603. struct cvmx_gmxx_txx_clk_s cn58xxp1;
  1604. };
  1605. union cvmx_gmxx_txx_ctl {
  1606. uint64_t u64;
  1607. struct cvmx_gmxx_txx_ctl_s {
  1608. uint64_t reserved_2_63:62;
  1609. uint64_t xsdef_en:1;
  1610. uint64_t xscol_en:1;
  1611. } s;
  1612. struct cvmx_gmxx_txx_ctl_s cn30xx;
  1613. struct cvmx_gmxx_txx_ctl_s cn31xx;
  1614. struct cvmx_gmxx_txx_ctl_s cn38xx;
  1615. struct cvmx_gmxx_txx_ctl_s cn38xxp2;
  1616. struct cvmx_gmxx_txx_ctl_s cn50xx;
  1617. struct cvmx_gmxx_txx_ctl_s cn52xx;
  1618. struct cvmx_gmxx_txx_ctl_s cn52xxp1;
  1619. struct cvmx_gmxx_txx_ctl_s cn56xx;
  1620. struct cvmx_gmxx_txx_ctl_s cn56xxp1;
  1621. struct cvmx_gmxx_txx_ctl_s cn58xx;
  1622. struct cvmx_gmxx_txx_ctl_s cn58xxp1;
  1623. };
  1624. union cvmx_gmxx_txx_min_pkt {
  1625. uint64_t u64;
  1626. struct cvmx_gmxx_txx_min_pkt_s {
  1627. uint64_t reserved_8_63:56;
  1628. uint64_t min_size:8;
  1629. } s;
  1630. struct cvmx_gmxx_txx_min_pkt_s cn30xx;
  1631. struct cvmx_gmxx_txx_min_pkt_s cn31xx;
  1632. struct cvmx_gmxx_txx_min_pkt_s cn38xx;
  1633. struct cvmx_gmxx_txx_min_pkt_s cn38xxp2;
  1634. struct cvmx_gmxx_txx_min_pkt_s cn50xx;
  1635. struct cvmx_gmxx_txx_min_pkt_s cn52xx;
  1636. struct cvmx_gmxx_txx_min_pkt_s cn52xxp1;
  1637. struct cvmx_gmxx_txx_min_pkt_s cn56xx;
  1638. struct cvmx_gmxx_txx_min_pkt_s cn56xxp1;
  1639. struct cvmx_gmxx_txx_min_pkt_s cn58xx;
  1640. struct cvmx_gmxx_txx_min_pkt_s cn58xxp1;
  1641. };
  1642. union cvmx_gmxx_txx_pause_pkt_interval {
  1643. uint64_t u64;
  1644. struct cvmx_gmxx_txx_pause_pkt_interval_s {
  1645. uint64_t reserved_16_63:48;
  1646. uint64_t interval:16;
  1647. } s;
  1648. struct cvmx_gmxx_txx_pause_pkt_interval_s cn30xx;
  1649. struct cvmx_gmxx_txx_pause_pkt_interval_s cn31xx;
  1650. struct cvmx_gmxx_txx_pause_pkt_interval_s cn38xx;
  1651. struct cvmx_gmxx_txx_pause_pkt_interval_s cn38xxp2;
  1652. struct cvmx_gmxx_txx_pause_pkt_interval_s cn50xx;
  1653. struct cvmx_gmxx_txx_pause_pkt_interval_s cn52xx;
  1654. struct cvmx_gmxx_txx_pause_pkt_interval_s cn52xxp1;
  1655. struct cvmx_gmxx_txx_pause_pkt_interval_s cn56xx;
  1656. struct cvmx_gmxx_txx_pause_pkt_interval_s cn56xxp1;
  1657. struct cvmx_gmxx_txx_pause_pkt_interval_s cn58xx;
  1658. struct cvmx_gmxx_txx_pause_pkt_interval_s cn58xxp1;
  1659. };
  1660. union cvmx_gmxx_txx_pause_pkt_time {
  1661. uint64_t u64;
  1662. struct cvmx_gmxx_txx_pause_pkt_time_s {
  1663. uint64_t reserved_16_63:48;
  1664. uint64_t time:16;
  1665. } s;
  1666. struct cvmx_gmxx_txx_pause_pkt_time_s cn30xx;
  1667. struct cvmx_gmxx_txx_pause_pkt_time_s cn31xx;
  1668. struct cvmx_gmxx_txx_pause_pkt_time_s cn38xx;
  1669. struct cvmx_gmxx_txx_pause_pkt_time_s cn38xxp2;
  1670. struct cvmx_gmxx_txx_pause_pkt_time_s cn50xx;
  1671. struct cvmx_gmxx_txx_pause_pkt_time_s cn52xx;
  1672. struct cvmx_gmxx_txx_pause_pkt_time_s cn52xxp1;
  1673. struct cvmx_gmxx_txx_pause_pkt_time_s cn56xx;
  1674. struct cvmx_gmxx_txx_pause_pkt_time_s cn56xxp1;
  1675. struct cvmx_gmxx_txx_pause_pkt_time_s cn58xx;
  1676. struct cvmx_gmxx_txx_pause_pkt_time_s cn58xxp1;
  1677. };
  1678. union cvmx_gmxx_txx_pause_togo {
  1679. uint64_t u64;
  1680. struct cvmx_gmxx_txx_pause_togo_s {
  1681. uint64_t reserved_32_63:32;
  1682. uint64_t msg_time:16;
  1683. uint64_t time:16;
  1684. } s;
  1685. struct cvmx_gmxx_txx_pause_togo_cn30xx {
  1686. uint64_t reserved_16_63:48;
  1687. uint64_t time:16;
  1688. } cn30xx;
  1689. struct cvmx_gmxx_txx_pause_togo_cn30xx cn31xx;
  1690. struct cvmx_gmxx_txx_pause_togo_cn30xx cn38xx;
  1691. struct cvmx_gmxx_txx_pause_togo_cn30xx cn38xxp2;
  1692. struct cvmx_gmxx_txx_pause_togo_cn30xx cn50xx;
  1693. struct cvmx_gmxx_txx_pause_togo_s cn52xx;
  1694. struct cvmx_gmxx_txx_pause_togo_s cn52xxp1;
  1695. struct cvmx_gmxx_txx_pause_togo_s cn56xx;
  1696. struct cvmx_gmxx_txx_pause_togo_cn30xx cn56xxp1;
  1697. struct cvmx_gmxx_txx_pause_togo_cn30xx cn58xx;
  1698. struct cvmx_gmxx_txx_pause_togo_cn30xx cn58xxp1;
  1699. };
  1700. union cvmx_gmxx_txx_pause_zero {
  1701. uint64_t u64;
  1702. struct cvmx_gmxx_txx_pause_zero_s {
  1703. uint64_t reserved_1_63:63;
  1704. uint64_t send:1;
  1705. } s;
  1706. struct cvmx_gmxx_txx_pause_zero_s cn30xx;
  1707. struct cvmx_gmxx_txx_pause_zero_s cn31xx;
  1708. struct cvmx_gmxx_txx_pause_zero_s cn38xx;
  1709. struct cvmx_gmxx_txx_pause_zero_s cn38xxp2;
  1710. struct cvmx_gmxx_txx_pause_zero_s cn50xx;
  1711. struct cvmx_gmxx_txx_pause_zero_s cn52xx;
  1712. struct cvmx_gmxx_txx_pause_zero_s cn52xxp1;
  1713. struct cvmx_gmxx_txx_pause_zero_s cn56xx;
  1714. struct cvmx_gmxx_txx_pause_zero_s cn56xxp1;
  1715. struct cvmx_gmxx_txx_pause_zero_s cn58xx;
  1716. struct cvmx_gmxx_txx_pause_zero_s cn58xxp1;
  1717. };
  1718. union cvmx_gmxx_txx_sgmii_ctl {
  1719. uint64_t u64;
  1720. struct cvmx_gmxx_txx_sgmii_ctl_s {
  1721. uint64_t reserved_1_63:63;
  1722. uint64_t align:1;
  1723. } s;
  1724. struct cvmx_gmxx_txx_sgmii_ctl_s cn52xx;
  1725. struct cvmx_gmxx_txx_sgmii_ctl_s cn52xxp1;
  1726. struct cvmx_gmxx_txx_sgmii_ctl_s cn56xx;
  1727. struct cvmx_gmxx_txx_sgmii_ctl_s cn56xxp1;
  1728. };
  1729. union cvmx_gmxx_txx_slot {
  1730. uint64_t u64;
  1731. struct cvmx_gmxx_txx_slot_s {
  1732. uint64_t reserved_10_63:54;
  1733. uint64_t slot:10;
  1734. } s;
  1735. struct cvmx_gmxx_txx_slot_s cn30xx;
  1736. struct cvmx_gmxx_txx_slot_s cn31xx;
  1737. struct cvmx_gmxx_txx_slot_s cn38xx;
  1738. struct cvmx_gmxx_txx_slot_s cn38xxp2;
  1739. struct cvmx_gmxx_txx_slot_s cn50xx;
  1740. struct cvmx_gmxx_txx_slot_s cn52xx;
  1741. struct cvmx_gmxx_txx_slot_s cn52xxp1;
  1742. struct cvmx_gmxx_txx_slot_s cn56xx;
  1743. struct cvmx_gmxx_txx_slot_s cn56xxp1;
  1744. struct cvmx_gmxx_txx_slot_s cn58xx;
  1745. struct cvmx_gmxx_txx_slot_s cn58xxp1;
  1746. };
  1747. union cvmx_gmxx_txx_soft_pause {
  1748. uint64_t u64;
  1749. struct cvmx_gmxx_txx_soft_pause_s {
  1750. uint64_t reserved_16_63:48;
  1751. uint64_t time:16;
  1752. } s;
  1753. struct cvmx_gmxx_txx_soft_pause_s cn30xx;
  1754. struct cvmx_gmxx_txx_soft_pause_s cn31xx;
  1755. struct cvmx_gmxx_txx_soft_pause_s cn38xx;
  1756. struct cvmx_gmxx_txx_soft_pause_s cn38xxp2;
  1757. struct cvmx_gmxx_txx_soft_pause_s cn50xx;
  1758. struct cvmx_gmxx_txx_soft_pause_s cn52xx;
  1759. struct cvmx_gmxx_txx_soft_pause_s cn52xxp1;
  1760. struct cvmx_gmxx_txx_soft_pause_s cn56xx;
  1761. struct cvmx_gmxx_txx_soft_pause_s cn56xxp1;
  1762. struct cvmx_gmxx_txx_soft_pause_s cn58xx;
  1763. struct cvmx_gmxx_txx_soft_pause_s cn58xxp1;
  1764. };
  1765. union cvmx_gmxx_txx_stat0 {
  1766. uint64_t u64;
  1767. struct cvmx_gmxx_txx_stat0_s {
  1768. uint64_t xsdef:32;
  1769. uint64_t xscol:32;
  1770. } s;
  1771. struct cvmx_gmxx_txx_stat0_s cn30xx;
  1772. struct cvmx_gmxx_txx_stat0_s cn31xx;
  1773. struct cvmx_gmxx_txx_stat0_s cn38xx;
  1774. struct cvmx_gmxx_txx_stat0_s cn38xxp2;
  1775. struct cvmx_gmxx_txx_stat0_s cn50xx;
  1776. struct cvmx_gmxx_txx_stat0_s cn52xx;
  1777. struct cvmx_gmxx_txx_stat0_s cn52xxp1;
  1778. struct cvmx_gmxx_txx_stat0_s cn56xx;
  1779. struct cvmx_gmxx_txx_stat0_s cn56xxp1;
  1780. struct cvmx_gmxx_txx_stat0_s cn58xx;
  1781. struct cvmx_gmxx_txx_stat0_s cn58xxp1;
  1782. };
  1783. union cvmx_gmxx_txx_stat1 {
  1784. uint64_t u64;
  1785. struct cvmx_gmxx_txx_stat1_s {
  1786. uint64_t scol:32;
  1787. uint64_t mcol:32;
  1788. } s;
  1789. struct cvmx_gmxx_txx_stat1_s cn30xx;
  1790. struct cvmx_gmxx_txx_stat1_s cn31xx;
  1791. struct cvmx_gmxx_txx_stat1_s cn38xx;
  1792. struct cvmx_gmxx_txx_stat1_s cn38xxp2;
  1793. struct cvmx_gmxx_txx_stat1_s cn50xx;
  1794. struct cvmx_gmxx_txx_stat1_s cn52xx;
  1795. struct cvmx_gmxx_txx_stat1_s cn52xxp1;
  1796. struct cvmx_gmxx_txx_stat1_s cn56xx;
  1797. struct cvmx_gmxx_txx_stat1_s cn56xxp1;
  1798. struct cvmx_gmxx_txx_stat1_s cn58xx;
  1799. struct cvmx_gmxx_txx_stat1_s cn58xxp1;
  1800. };
  1801. union cvmx_gmxx_txx_stat2 {
  1802. uint64_t u64;
  1803. struct cvmx_gmxx_txx_stat2_s {
  1804. uint64_t reserved_48_63:16;
  1805. uint64_t octs:48;
  1806. } s;
  1807. struct cvmx_gmxx_txx_stat2_s cn30xx;
  1808. struct cvmx_gmxx_txx_stat2_s cn31xx;
  1809. struct cvmx_gmxx_txx_stat2_s cn38xx;
  1810. struct cvmx_gmxx_txx_stat2_s cn38xxp2;
  1811. struct cvmx_gmxx_txx_stat2_s cn50xx;
  1812. struct cvmx_gmxx_txx_stat2_s cn52xx;
  1813. struct cvmx_gmxx_txx_stat2_s cn52xxp1;
  1814. struct cvmx_gmxx_txx_stat2_s cn56xx;
  1815. struct cvmx_gmxx_txx_stat2_s cn56xxp1;
  1816. struct cvmx_gmxx_txx_stat2_s cn58xx;
  1817. struct cvmx_gmxx_txx_stat2_s cn58xxp1;
  1818. };
  1819. union cvmx_gmxx_txx_stat3 {
  1820. uint64_t u64;
  1821. struct cvmx_gmxx_txx_stat3_s {
  1822. uint64_t reserved_32_63:32;
  1823. uint64_t pkts:32;
  1824. } s;
  1825. struct cvmx_gmxx_txx_stat3_s cn30xx;
  1826. struct cvmx_gmxx_txx_stat3_s cn31xx;
  1827. struct cvmx_gmxx_txx_stat3_s cn38xx;
  1828. struct cvmx_gmxx_txx_stat3_s cn38xxp2;
  1829. struct cvmx_gmxx_txx_stat3_s cn50xx;
  1830. struct cvmx_gmxx_txx_stat3_s cn52xx;
  1831. struct cvmx_gmxx_txx_stat3_s cn52xxp1;
  1832. struct cvmx_gmxx_txx_stat3_s cn56xx;
  1833. struct cvmx_gmxx_txx_stat3_s cn56xxp1;
  1834. struct cvmx_gmxx_txx_stat3_s cn58xx;
  1835. struct cvmx_gmxx_txx_stat3_s cn58xxp1;
  1836. };
  1837. union cvmx_gmxx_txx_stat4 {
  1838. uint64_t u64;
  1839. struct cvmx_gmxx_txx_stat4_s {
  1840. uint64_t hist1:32;
  1841. uint64_t hist0:32;
  1842. } s;
  1843. struct cvmx_gmxx_txx_stat4_s cn30xx;
  1844. struct cvmx_gmxx_txx_stat4_s cn31xx;
  1845. struct cvmx_gmxx_txx_stat4_s cn38xx;
  1846. struct cvmx_gmxx_txx_stat4_s cn38xxp2;
  1847. struct cvmx_gmxx_txx_stat4_s cn50xx;
  1848. struct cvmx_gmxx_txx_stat4_s cn52xx;
  1849. struct cvmx_gmxx_txx_stat4_s cn52xxp1;
  1850. struct cvmx_gmxx_txx_stat4_s cn56xx;
  1851. struct cvmx_gmxx_txx_stat4_s cn56xxp1;
  1852. struct cvmx_gmxx_txx_stat4_s cn58xx;
  1853. struct cvmx_gmxx_txx_stat4_s cn58xxp1;
  1854. };
  1855. union cvmx_gmxx_txx_stat5 {
  1856. uint64_t u64;
  1857. struct cvmx_gmxx_txx_stat5_s {
  1858. uint64_t hist3:32;
  1859. uint64_t hist2:32;
  1860. } s;
  1861. struct cvmx_gmxx_txx_stat5_s cn30xx;
  1862. struct cvmx_gmxx_txx_stat5_s cn31xx;
  1863. struct cvmx_gmxx_txx_stat5_s cn38xx;
  1864. struct cvmx_gmxx_txx_stat5_s cn38xxp2;
  1865. struct cvmx_gmxx_txx_stat5_s cn50xx;
  1866. struct cvmx_gmxx_txx_stat5_s cn52xx;
  1867. struct cvmx_gmxx_txx_stat5_s cn52xxp1;
  1868. struct cvmx_gmxx_txx_stat5_s cn56xx;
  1869. struct cvmx_gmxx_txx_stat5_s cn56xxp1;
  1870. struct cvmx_gmxx_txx_stat5_s cn58xx;
  1871. struct cvmx_gmxx_txx_stat5_s cn58xxp1;
  1872. };
  1873. union cvmx_gmxx_txx_stat6 {
  1874. uint64_t u64;
  1875. struct cvmx_gmxx_txx_stat6_s {
  1876. uint64_t hist5:32;
  1877. uint64_t hist4:32;
  1878. } s;
  1879. struct cvmx_gmxx_txx_stat6_s cn30xx;
  1880. struct cvmx_gmxx_txx_stat6_s cn31xx;
  1881. struct cvmx_gmxx_txx_stat6_s cn38xx;
  1882. struct cvmx_gmxx_txx_stat6_s cn38xxp2;
  1883. struct cvmx_gmxx_txx_stat6_s cn50xx;
  1884. struct cvmx_gmxx_txx_stat6_s cn52xx;
  1885. struct cvmx_gmxx_txx_stat6_s cn52xxp1;
  1886. struct cvmx_gmxx_txx_stat6_s cn56xx;
  1887. struct cvmx_gmxx_txx_stat6_s cn56xxp1;
  1888. struct cvmx_gmxx_txx_stat6_s cn58xx;
  1889. struct cvmx_gmxx_txx_stat6_s cn58xxp1;
  1890. };
  1891. union cvmx_gmxx_txx_stat7 {
  1892. uint64_t u64;
  1893. struct cvmx_gmxx_txx_stat7_s {
  1894. uint64_t hist7:32;
  1895. uint64_t hist6:32;
  1896. } s;
  1897. struct cvmx_gmxx_txx_stat7_s cn30xx;
  1898. struct cvmx_gmxx_txx_stat7_s cn31xx;
  1899. struct cvmx_gmxx_txx_stat7_s cn38xx;
  1900. struct cvmx_gmxx_txx_stat7_s cn38xxp2;
  1901. struct cvmx_gmxx_txx_stat7_s cn50xx;
  1902. struct cvmx_gmxx_txx_stat7_s cn52xx;
  1903. struct cvmx_gmxx_txx_stat7_s cn52xxp1;
  1904. struct cvmx_gmxx_txx_stat7_s cn56xx;
  1905. struct cvmx_gmxx_txx_stat7_s cn56xxp1;
  1906. struct cvmx_gmxx_txx_stat7_s cn58xx;
  1907. struct cvmx_gmxx_txx_stat7_s cn58xxp1;
  1908. };
  1909. union cvmx_gmxx_txx_stat8 {
  1910. uint64_t u64;
  1911. struct cvmx_gmxx_txx_stat8_s {
  1912. uint64_t mcst:32;
  1913. uint64_t bcst:32;
  1914. } s;
  1915. struct cvmx_gmxx_txx_stat8_s cn30xx;
  1916. struct cvmx_gmxx_txx_stat8_s cn31xx;
  1917. struct cvmx_gmxx_txx_stat8_s cn38xx;
  1918. struct cvmx_gmxx_txx_stat8_s cn38xxp2;
  1919. struct cvmx_gmxx_txx_stat8_s cn50xx;
  1920. struct cvmx_gmxx_txx_stat8_s cn52xx;
  1921. struct cvmx_gmxx_txx_stat8_s cn52xxp1;
  1922. struct cvmx_gmxx_txx_stat8_s cn56xx;
  1923. struct cvmx_gmxx_txx_stat8_s cn56xxp1;
  1924. struct cvmx_gmxx_txx_stat8_s cn58xx;
  1925. struct cvmx_gmxx_txx_stat8_s cn58xxp1;
  1926. };
  1927. union cvmx_gmxx_txx_stat9 {
  1928. uint64_t u64;
  1929. struct cvmx_gmxx_txx_stat9_s {
  1930. uint64_t undflw:32;
  1931. uint64_t ctl:32;
  1932. } s;
  1933. struct cvmx_gmxx_txx_stat9_s cn30xx;
  1934. struct cvmx_gmxx_txx_stat9_s cn31xx;
  1935. struct cvmx_gmxx_txx_stat9_s cn38xx;
  1936. struct cvmx_gmxx_txx_stat9_s cn38xxp2;
  1937. struct cvmx_gmxx_txx_stat9_s cn50xx;
  1938. struct cvmx_gmxx_txx_stat9_s cn52xx;
  1939. struct cvmx_gmxx_txx_stat9_s cn52xxp1;
  1940. struct cvmx_gmxx_txx_stat9_s cn56xx;
  1941. struct cvmx_gmxx_txx_stat9_s cn56xxp1;
  1942. struct cvmx_gmxx_txx_stat9_s cn58xx;
  1943. struct cvmx_gmxx_txx_stat9_s cn58xxp1;
  1944. };
  1945. union cvmx_gmxx_txx_stats_ctl {
  1946. uint64_t u64;
  1947. struct cvmx_gmxx_txx_stats_ctl_s {
  1948. uint64_t reserved_1_63:63;
  1949. uint64_t rd_clr:1;
  1950. } s;
  1951. struct cvmx_gmxx_txx_stats_ctl_s cn30xx;
  1952. struct cvmx_gmxx_txx_stats_ctl_s cn31xx;
  1953. struct cvmx_gmxx_txx_stats_ctl_s cn38xx;
  1954. struct cvmx_gmxx_txx_stats_ctl_s cn38xxp2;
  1955. struct cvmx_gmxx_txx_stats_ctl_s cn50xx;
  1956. struct cvmx_gmxx_txx_stats_ctl_s cn52xx;
  1957. struct cvmx_gmxx_txx_stats_ctl_s cn52xxp1;
  1958. struct cvmx_gmxx_txx_stats_ctl_s cn56xx;
  1959. struct cvmx_gmxx_txx_stats_ctl_s cn56xxp1;
  1960. struct cvmx_gmxx_txx_stats_ctl_s cn58xx;
  1961. struct cvmx_gmxx_txx_stats_ctl_s cn58xxp1;
  1962. };
  1963. union cvmx_gmxx_txx_thresh {
  1964. uint64_t u64;
  1965. struct cvmx_gmxx_txx_thresh_s {
  1966. uint64_t reserved_9_63:55;
  1967. uint64_t cnt:9;
  1968. } s;
  1969. struct cvmx_gmxx_txx_thresh_cn30xx {
  1970. uint64_t reserved_7_63:57;
  1971. uint64_t cnt:7;
  1972. } cn30xx;
  1973. struct cvmx_gmxx_txx_thresh_cn30xx cn31xx;
  1974. struct cvmx_gmxx_txx_thresh_s cn38xx;
  1975. struct cvmx_gmxx_txx_thresh_s cn38xxp2;
  1976. struct cvmx_gmxx_txx_thresh_cn30xx cn50xx;
  1977. struct cvmx_gmxx_txx_thresh_s cn52xx;
  1978. struct cvmx_gmxx_txx_thresh_s cn52xxp1;
  1979. struct cvmx_gmxx_txx_thresh_s cn56xx;
  1980. struct cvmx_gmxx_txx_thresh_s cn56xxp1;
  1981. struct cvmx_gmxx_txx_thresh_s cn58xx;
  1982. struct cvmx_gmxx_txx_thresh_s cn58xxp1;
  1983. };
  1984. union cvmx_gmxx_tx_bp {
  1985. uint64_t u64;
  1986. struct cvmx_gmxx_tx_bp_s {
  1987. uint64_t reserved_4_63:60;
  1988. uint64_t bp:4;
  1989. } s;
  1990. struct cvmx_gmxx_tx_bp_cn30xx {
  1991. uint64_t reserved_3_63:61;
  1992. uint64_t bp:3;
  1993. } cn30xx;
  1994. struct cvmx_gmxx_tx_bp_cn30xx cn31xx;
  1995. struct cvmx_gmxx_tx_bp_s cn38xx;
  1996. struct cvmx_gmxx_tx_bp_s cn38xxp2;
  1997. struct cvmx_gmxx_tx_bp_cn30xx cn50xx;
  1998. struct cvmx_gmxx_tx_bp_s cn52xx;
  1999. struct cvmx_gmxx_tx_bp_s cn52xxp1;
  2000. struct cvmx_gmxx_tx_bp_s cn56xx;
  2001. struct cvmx_gmxx_tx_bp_s cn56xxp1;
  2002. struct cvmx_gmxx_tx_bp_s cn58xx;
  2003. struct cvmx_gmxx_tx_bp_s cn58xxp1;
  2004. };
  2005. union cvmx_gmxx_tx_clk_mskx {
  2006. uint64_t u64;
  2007. struct cvmx_gmxx_tx_clk_mskx_s {
  2008. uint64_t reserved_1_63:63;
  2009. uint64_t msk:1;
  2010. } s;
  2011. struct cvmx_gmxx_tx_clk_mskx_s cn30xx;
  2012. struct cvmx_gmxx_tx_clk_mskx_s cn50xx;
  2013. };
  2014. union cvmx_gmxx_tx_col_attempt {
  2015. uint64_t u64;
  2016. struct cvmx_gmxx_tx_col_attempt_s {
  2017. uint64_t reserved_5_63:59;
  2018. uint64_t limit:5;
  2019. } s;
  2020. struct cvmx_gmxx_tx_col_attempt_s cn30xx;
  2021. struct cvmx_gmxx_tx_col_attempt_s cn31xx;
  2022. struct cvmx_gmxx_tx_col_attempt_s cn38xx;
  2023. struct cvmx_gmxx_tx_col_attempt_s cn38xxp2;
  2024. struct cvmx_gmxx_tx_col_attempt_s cn50xx;
  2025. struct cvmx_gmxx_tx_col_attempt_s cn52xx;
  2026. struct cvmx_gmxx_tx_col_attempt_s cn52xxp1;
  2027. struct cvmx_gmxx_tx_col_attempt_s cn56xx;
  2028. struct cvmx_gmxx_tx_col_attempt_s cn56xxp1;
  2029. struct cvmx_gmxx_tx_col_attempt_s cn58xx;
  2030. struct cvmx_gmxx_tx_col_attempt_s cn58xxp1;
  2031. };
  2032. union cvmx_gmxx_tx_corrupt {
  2033. uint64_t u64;
  2034. struct cvmx_gmxx_tx_corrupt_s {
  2035. uint64_t reserved_4_63:60;
  2036. uint64_t corrupt:4;
  2037. } s;
  2038. struct cvmx_gmxx_tx_corrupt_cn30xx {
  2039. uint64_t reserved_3_63:61;
  2040. uint64_t corrupt:3;
  2041. } cn30xx;
  2042. struct cvmx_gmxx_tx_corrupt_cn30xx cn31xx;
  2043. struct cvmx_gmxx_tx_corrupt_s cn38xx;
  2044. struct cvmx_gmxx_tx_corrupt_s cn38xxp2;
  2045. struct cvmx_gmxx_tx_corrupt_cn30xx cn50xx;
  2046. struct cvmx_gmxx_tx_corrupt_s cn52xx;
  2047. struct cvmx_gmxx_tx_corrupt_s cn52xxp1;
  2048. struct cvmx_gmxx_tx_corrupt_s cn56xx;
  2049. struct cvmx_gmxx_tx_corrupt_s cn56xxp1;
  2050. struct cvmx_gmxx_tx_corrupt_s cn58xx;
  2051. struct cvmx_gmxx_tx_corrupt_s cn58xxp1;
  2052. };
  2053. union cvmx_gmxx_tx_hg2_reg1 {
  2054. uint64_t u64;
  2055. struct cvmx_gmxx_tx_hg2_reg1_s {
  2056. uint64_t reserved_16_63:48;
  2057. uint64_t tx_xof:16;
  2058. } s;
  2059. struct cvmx_gmxx_tx_hg2_reg1_s cn52xx;
  2060. struct cvmx_gmxx_tx_hg2_reg1_s cn52xxp1;
  2061. struct cvmx_gmxx_tx_hg2_reg1_s cn56xx;
  2062. };
  2063. union cvmx_gmxx_tx_hg2_reg2 {
  2064. uint64_t u64;
  2065. struct cvmx_gmxx_tx_hg2_reg2_s {
  2066. uint64_t reserved_16_63:48;
  2067. uint64_t tx_xon:16;
  2068. } s;
  2069. struct cvmx_gmxx_tx_hg2_reg2_s cn52xx;
  2070. struct cvmx_gmxx_tx_hg2_reg2_s cn52xxp1;
  2071. struct cvmx_gmxx_tx_hg2_reg2_s cn56xx;
  2072. };
  2073. union cvmx_gmxx_tx_ifg {
  2074. uint64_t u64;
  2075. struct cvmx_gmxx_tx_ifg_s {
  2076. uint64_t reserved_8_63:56;
  2077. uint64_t ifg2:4;
  2078. uint64_t ifg1:4;
  2079. } s;
  2080. struct cvmx_gmxx_tx_ifg_s cn30xx;
  2081. struct cvmx_gmxx_tx_ifg_s cn31xx;
  2082. struct cvmx_gmxx_tx_ifg_s cn38xx;
  2083. struct cvmx_gmxx_tx_ifg_s cn38xxp2;
  2084. struct cvmx_gmxx_tx_ifg_s cn50xx;
  2085. struct cvmx_gmxx_tx_ifg_s cn52xx;
  2086. struct cvmx_gmxx_tx_ifg_s cn52xxp1;
  2087. struct cvmx_gmxx_tx_ifg_s cn56xx;
  2088. struct cvmx_gmxx_tx_ifg_s cn56xxp1;
  2089. struct cvmx_gmxx_tx_ifg_s cn58xx;
  2090. struct cvmx_gmxx_tx_ifg_s cn58xxp1;
  2091. };
  2092. union cvmx_gmxx_tx_int_en {
  2093. uint64_t u64;
  2094. struct cvmx_gmxx_tx_int_en_s {
  2095. uint64_t reserved_20_63:44;
  2096. uint64_t late_col:4;
  2097. uint64_t xsdef:4;
  2098. uint64_t xscol:4;
  2099. uint64_t reserved_6_7:2;
  2100. uint64_t undflw:4;
  2101. uint64_t ncb_nxa:1;
  2102. uint64_t pko_nxa:1;
  2103. } s;
  2104. struct cvmx_gmxx_tx_int_en_cn30xx {
  2105. uint64_t reserved_19_63:45;
  2106. uint64_t late_col:3;
  2107. uint64_t reserved_15_15:1;
  2108. uint64_t xsdef:3;
  2109. uint64_t reserved_11_11:1;
  2110. uint64_t xscol:3;
  2111. uint64_t reserved_5_7:3;
  2112. uint64_t undflw:3;
  2113. uint64_t reserved_1_1:1;
  2114. uint64_t pko_nxa:1;
  2115. } cn30xx;
  2116. struct cvmx_gmxx_tx_int_en_cn31xx {
  2117. uint64_t reserved_15_63:49;
  2118. uint64_t xsdef:3;
  2119. uint64_t reserved_11_11:1;
  2120. uint64_t xscol:3;
  2121. uint64_t reserved_5_7:3;
  2122. uint64_t undflw:3;
  2123. uint64_t reserved_1_1:1;
  2124. uint64_t pko_nxa:1;
  2125. } cn31xx;
  2126. struct cvmx_gmxx_tx_int_en_s cn38xx;
  2127. struct cvmx_gmxx_tx_int_en_cn38xxp2 {
  2128. uint64_t reserved_16_63:48;
  2129. uint64_t xsdef:4;
  2130. uint64_t xscol:4;
  2131. uint64_t reserved_6_7:2;
  2132. uint64_t undflw:4;
  2133. uint64_t ncb_nxa:1;
  2134. uint64_t pko_nxa:1;
  2135. } cn38xxp2;
  2136. struct cvmx_gmxx_tx_int_en_cn30xx cn50xx;
  2137. struct cvmx_gmxx_tx_int_en_cn52xx {
  2138. uint64_t reserved_20_63:44;
  2139. uint64_t late_col:4;
  2140. uint64_t xsdef:4;
  2141. uint64_t xscol:4;
  2142. uint64_t reserved_6_7:2;
  2143. uint64_t undflw:4;
  2144. uint64_t reserved_1_1:1;
  2145. uint64_t pko_nxa:1;
  2146. } cn52xx;
  2147. struct cvmx_gmxx_tx_int_en_cn52xx cn52xxp1;
  2148. struct cvmx_gmxx_tx_int_en_cn52xx cn56xx;
  2149. struct cvmx_gmxx_tx_int_en_cn52xx cn56xxp1;
  2150. struct cvmx_gmxx_tx_int_en_s cn58xx;
  2151. struct cvmx_gmxx_tx_int_en_s cn58xxp1;
  2152. };
  2153. union cvmx_gmxx_tx_int_reg {
  2154. uint64_t u64;
  2155. struct cvmx_gmxx_tx_int_reg_s {
  2156. uint64_t reserved_20_63:44;
  2157. uint64_t late_col:4;
  2158. uint64_t xsdef:4;
  2159. uint64_t xscol:4;
  2160. uint64_t reserved_6_7:2;
  2161. uint64_t undflw:4;
  2162. uint64_t ncb_nxa:1;
  2163. uint64_t pko_nxa:1;
  2164. } s;
  2165. struct cvmx_gmxx_tx_int_reg_cn30xx {
  2166. uint64_t reserved_19_63:45;
  2167. uint64_t late_col:3;
  2168. uint64_t reserved_15_15:1;
  2169. uint64_t xsdef:3;
  2170. uint64_t reserved_11_11:1;
  2171. uint64_t xscol:3;
  2172. uint64_t reserved_5_7:3;
  2173. uint64_t undflw:3;
  2174. uint64_t reserved_1_1:1;
  2175. uint64_t pko_nxa:1;
  2176. } cn30xx;
  2177. struct cvmx_gmxx_tx_int_reg_cn31xx {
  2178. uint64_t reserved_15_63:49;
  2179. uint64_t xsdef:3;
  2180. uint64_t reserved_11_11:1;
  2181. uint64_t xscol:3;
  2182. uint64_t reserved_5_7:3;
  2183. uint64_t undflw:3;
  2184. uint64_t reserved_1_1:1;
  2185. uint64_t pko_nxa:1;
  2186. } cn31xx;
  2187. struct cvmx_gmxx_tx_int_reg_s cn38xx;
  2188. struct cvmx_gmxx_tx_int_reg_cn38xxp2 {
  2189. uint64_t reserved_16_63:48;
  2190. uint64_t xsdef:4;
  2191. uint64_t xscol:4;
  2192. uint64_t reserved_6_7:2;
  2193. uint64_t undflw:4;
  2194. uint64_t ncb_nxa:1;
  2195. uint64_t pko_nxa:1;
  2196. } cn38xxp2;
  2197. struct cvmx_gmxx_tx_int_reg_cn30xx cn50xx;
  2198. struct cvmx_gmxx_tx_int_reg_cn52xx {
  2199. uint64_t reserved_20_63:44;
  2200. uint64_t late_col:4;
  2201. uint64_t xsdef:4;
  2202. uint64_t xscol:4;
  2203. uint64_t reserved_6_7:2;
  2204. uint64_t undflw:4;
  2205. uint64_t reserved_1_1:1;
  2206. uint64_t pko_nxa:1;
  2207. } cn52xx;
  2208. struct cvmx_gmxx_tx_int_reg_cn52xx cn52xxp1;
  2209. struct cvmx_gmxx_tx_int_reg_cn52xx cn56xx;
  2210. struct cvmx_gmxx_tx_int_reg_cn52xx cn56xxp1;
  2211. struct cvmx_gmxx_tx_int_reg_s cn58xx;
  2212. struct cvmx_gmxx_tx_int_reg_s cn58xxp1;
  2213. };
  2214. union cvmx_gmxx_tx_jam {
  2215. uint64_t u64;
  2216. struct cvmx_gmxx_tx_jam_s {
  2217. uint64_t reserved_8_63:56;
  2218. uint64_t jam:8;
  2219. } s;
  2220. struct cvmx_gmxx_tx_jam_s cn30xx;
  2221. struct cvmx_gmxx_tx_jam_s cn31xx;
  2222. struct cvmx_gmxx_tx_jam_s cn38xx;
  2223. struct cvmx_gmxx_tx_jam_s cn38xxp2;
  2224. struct cvmx_gmxx_tx_jam_s cn50xx;
  2225. struct cvmx_gmxx_tx_jam_s cn52xx;
  2226. struct cvmx_gmxx_tx_jam_s cn52xxp1;
  2227. struct cvmx_gmxx_tx_jam_s cn56xx;
  2228. struct cvmx_gmxx_tx_jam_s cn56xxp1;
  2229. struct cvmx_gmxx_tx_jam_s cn58xx;
  2230. struct cvmx_gmxx_tx_jam_s cn58xxp1;
  2231. };
  2232. union cvmx_gmxx_tx_lfsr {
  2233. uint64_t u64;
  2234. struct cvmx_gmxx_tx_lfsr_s {
  2235. uint64_t reserved_16_63:48;
  2236. uint64_t lfsr:16;
  2237. } s;
  2238. struct cvmx_gmxx_tx_lfsr_s cn30xx;
  2239. struct cvmx_gmxx_tx_lfsr_s cn31xx;
  2240. struct cvmx_gmxx_tx_lfsr_s cn38xx;
  2241. struct cvmx_gmxx_tx_lfsr_s cn38xxp2;
  2242. struct cvmx_gmxx_tx_lfsr_s cn50xx;
  2243. struct cvmx_gmxx_tx_lfsr_s cn52xx;
  2244. struct cvmx_gmxx_tx_lfsr_s cn52xxp1;
  2245. struct cvmx_gmxx_tx_lfsr_s cn56xx;
  2246. struct cvmx_gmxx_tx_lfsr_s cn56xxp1;
  2247. struct cvmx_gmxx_tx_lfsr_s cn58xx;
  2248. struct cvmx_gmxx_tx_lfsr_s cn58xxp1;
  2249. };
  2250. union cvmx_gmxx_tx_ovr_bp {
  2251. uint64_t u64;
  2252. struct cvmx_gmxx_tx_ovr_bp_s {
  2253. uint64_t reserved_48_63:16;
  2254. uint64_t tx_prt_bp:16;
  2255. uint64_t reserved_12_31:20;
  2256. uint64_t en:4;
  2257. uint64_t bp:4;
  2258. uint64_t ign_full:4;
  2259. } s;
  2260. struct cvmx_gmxx_tx_ovr_bp_cn30xx {
  2261. uint64_t reserved_11_63:53;
  2262. uint64_t en:3;
  2263. uint64_t reserved_7_7:1;
  2264. uint64_t bp:3;
  2265. uint64_t reserved_3_3:1;
  2266. uint64_t ign_full:3;
  2267. } cn30xx;
  2268. struct cvmx_gmxx_tx_ovr_bp_cn30xx cn31xx;
  2269. struct cvmx_gmxx_tx_ovr_bp_cn38xx {
  2270. uint64_t reserved_12_63:52;
  2271. uint64_t en:4;
  2272. uint64_t bp:4;
  2273. uint64_t ign_full:4;
  2274. } cn38xx;
  2275. struct cvmx_gmxx_tx_ovr_bp_cn38xx cn38xxp2;
  2276. struct cvmx_gmxx_tx_ovr_bp_cn30xx cn50xx;
  2277. struct cvmx_gmxx_tx_ovr_bp_s cn52xx;
  2278. struct cvmx_gmxx_tx_ovr_bp_s cn52xxp1;
  2279. struct cvmx_gmxx_tx_ovr_bp_s cn56xx;
  2280. struct cvmx_gmxx_tx_ovr_bp_s cn56xxp1;
  2281. struct cvmx_gmxx_tx_ovr_bp_cn38xx cn58xx;
  2282. struct cvmx_gmxx_tx_ovr_bp_cn38xx cn58xxp1;
  2283. };
  2284. union cvmx_gmxx_tx_pause_pkt_dmac {
  2285. uint64_t u64;
  2286. struct cvmx_gmxx_tx_pause_pkt_dmac_s {
  2287. uint64_t reserved_48_63:16;
  2288. uint64_t dmac:48;
  2289. } s;
  2290. struct cvmx_gmxx_tx_pause_pkt_dmac_s cn30xx;
  2291. struct cvmx_gmxx_tx_pause_pkt_dmac_s cn31xx;
  2292. struct cvmx_gmxx_tx_pause_pkt_dmac_s cn38xx;
  2293. struct cvmx_gmxx_tx_pause_pkt_dmac_s cn38xxp2;
  2294. struct cvmx_gmxx_tx_pause_pkt_dmac_s cn50xx;
  2295. struct cvmx_gmxx_tx_pause_pkt_dmac_s cn52xx;
  2296. struct cvmx_gmxx_tx_pause_pkt_dmac_s cn52xxp1;
  2297. struct cvmx_gmxx_tx_pause_pkt_dmac_s cn56xx;
  2298. struct cvmx_gmxx_tx_pause_pkt_dmac_s cn56xxp1;
  2299. struct cvmx_gmxx_tx_pause_pkt_dmac_s cn58xx;
  2300. struct cvmx_gmxx_tx_pause_pkt_dmac_s cn58xxp1;
  2301. };
  2302. union cvmx_gmxx_tx_pause_pkt_type {
  2303. uint64_t u64;
  2304. struct cvmx_gmxx_tx_pause_pkt_type_s {
  2305. uint64_t reserved_16_63:48;
  2306. uint64_t type:16;
  2307. } s;
  2308. struct cvmx_gmxx_tx_pause_pkt_type_s cn30xx;
  2309. struct cvmx_gmxx_tx_pause_pkt_type_s cn31xx;
  2310. struct cvmx_gmxx_tx_pause_pkt_type_s cn38xx;
  2311. struct cvmx_gmxx_tx_pause_pkt_type_s cn38xxp2;
  2312. struct cvmx_gmxx_tx_pause_pkt_type_s cn50xx;
  2313. struct cvmx_gmxx_tx_pause_pkt_type_s cn52xx;
  2314. struct cvmx_gmxx_tx_pause_pkt_type_s cn52xxp1;
  2315. struct cvmx_gmxx_tx_pause_pkt_type_s cn56xx;
  2316. struct cvmx_gmxx_tx_pause_pkt_type_s cn56xxp1;
  2317. struct cvmx_gmxx_tx_pause_pkt_type_s cn58xx;
  2318. struct cvmx_gmxx_tx_pause_pkt_type_s cn58xxp1;
  2319. };
  2320. union cvmx_gmxx_tx_prts {
  2321. uint64_t u64;
  2322. struct cvmx_gmxx_tx_prts_s {
  2323. uint64_t reserved_5_63:59;
  2324. uint64_t prts:5;
  2325. } s;
  2326. struct cvmx_gmxx_tx_prts_s cn30xx;
  2327. struct cvmx_gmxx_tx_prts_s cn31xx;
  2328. struct cvmx_gmxx_tx_prts_s cn38xx;
  2329. struct cvmx_gmxx_tx_prts_s cn38xxp2;
  2330. struct cvmx_gmxx_tx_prts_s cn50xx;
  2331. struct cvmx_gmxx_tx_prts_s cn52xx;
  2332. struct cvmx_gmxx_tx_prts_s cn52xxp1;
  2333. struct cvmx_gmxx_tx_prts_s cn56xx;
  2334. struct cvmx_gmxx_tx_prts_s cn56xxp1;
  2335. struct cvmx_gmxx_tx_prts_s cn58xx;
  2336. struct cvmx_gmxx_tx_prts_s cn58xxp1;
  2337. };
  2338. union cvmx_gmxx_tx_spi_ctl {
  2339. uint64_t u64;
  2340. struct cvmx_gmxx_tx_spi_ctl_s {
  2341. uint64_t reserved_2_63:62;
  2342. uint64_t tpa_clr:1;
  2343. uint64_t cont_pkt:1;
  2344. } s;
  2345. struct cvmx_gmxx_tx_spi_ctl_s cn38xx;
  2346. struct cvmx_gmxx_tx_spi_ctl_s cn38xxp2;
  2347. struct cvmx_gmxx_tx_spi_ctl_s cn58xx;
  2348. struct cvmx_gmxx_tx_spi_ctl_s cn58xxp1;
  2349. };
  2350. union cvmx_gmxx_tx_spi_drain {
  2351. uint64_t u64;
  2352. struct cvmx_gmxx_tx_spi_drain_s {
  2353. uint64_t reserved_16_63:48;
  2354. uint64_t drain:16;
  2355. } s;
  2356. struct cvmx_gmxx_tx_spi_drain_s cn38xx;
  2357. struct cvmx_gmxx_tx_spi_drain_s cn58xx;
  2358. struct cvmx_gmxx_tx_spi_drain_s cn58xxp1;
  2359. };
  2360. union cvmx_gmxx_tx_spi_max {
  2361. uint64_t u64;
  2362. struct cvmx_gmxx_tx_spi_max_s {
  2363. uint64_t reserved_23_63:41;
  2364. uint64_t slice:7;
  2365. uint64_t max2:8;
  2366. uint64_t max1:8;
  2367. } s;
  2368. struct cvmx_gmxx_tx_spi_max_cn38xx {
  2369. uint64_t reserved_16_63:48;
  2370. uint64_t max2:8;
  2371. uint64_t max1:8;
  2372. } cn38xx;
  2373. struct cvmx_gmxx_tx_spi_max_cn38xx cn38xxp2;
  2374. struct cvmx_gmxx_tx_spi_max_s cn58xx;
  2375. struct cvmx_gmxx_tx_spi_max_s cn58xxp1;
  2376. };
  2377. union cvmx_gmxx_tx_spi_roundx {
  2378. uint64_t u64;
  2379. struct cvmx_gmxx_tx_spi_roundx_s {
  2380. uint64_t reserved_16_63:48;
  2381. uint64_t round:16;
  2382. } s;
  2383. struct cvmx_gmxx_tx_spi_roundx_s cn58xx;
  2384. struct cvmx_gmxx_tx_spi_roundx_s cn58xxp1;
  2385. };
  2386. union cvmx_gmxx_tx_spi_thresh {
  2387. uint64_t u64;
  2388. struct cvmx_gmxx_tx_spi_thresh_s {
  2389. uint64_t reserved_6_63:58;
  2390. uint64_t thresh:6;
  2391. } s;
  2392. struct cvmx_gmxx_tx_spi_thresh_s cn38xx;
  2393. struct cvmx_gmxx_tx_spi_thresh_s cn38xxp2;
  2394. struct cvmx_gmxx_tx_spi_thresh_s cn58xx;
  2395. struct cvmx_gmxx_tx_spi_thresh_s cn58xxp1;
  2396. };
  2397. union cvmx_gmxx_tx_xaui_ctl {
  2398. uint64_t u64;
  2399. struct cvmx_gmxx_tx_xaui_ctl_s {
  2400. uint64_t reserved_11_63:53;
  2401. uint64_t hg_pause_hgi:2;
  2402. uint64_t hg_en:1;
  2403. uint64_t reserved_7_7:1;
  2404. uint64_t ls_byp:1;
  2405. uint64_t ls:2;
  2406. uint64_t reserved_2_3:2;
  2407. uint64_t uni_en:1;
  2408. uint64_t dic_en:1;
  2409. } s;
  2410. struct cvmx_gmxx_tx_xaui_ctl_s cn52xx;
  2411. struct cvmx_gmxx_tx_xaui_ctl_s cn52xxp1;
  2412. struct cvmx_gmxx_tx_xaui_ctl_s cn56xx;
  2413. struct cvmx_gmxx_tx_xaui_ctl_s cn56xxp1;
  2414. };
  2415. union cvmx_gmxx_xaui_ext_loopback {
  2416. uint64_t u64;
  2417. struct cvmx_gmxx_xaui_ext_loopback_s {
  2418. uint64_t reserved_5_63:59;
  2419. uint64_t en:1;
  2420. uint64_t thresh:4;
  2421. } s;
  2422. struct cvmx_gmxx_xaui_ext_loopback_s cn52xx;
  2423. struct cvmx_gmxx_xaui_ext_loopback_s cn52xxp1;
  2424. struct cvmx_gmxx_xaui_ext_loopback_s cn56xx;
  2425. struct cvmx_gmxx_xaui_ext_loopback_s cn56xxp1;
  2426. };
  2427. #endif