cvmx-npi-defs.h 68 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750
  1. /***********************license start***************
  2. * Author: Cavium Networks
  3. *
  4. * Contact: support@caviumnetworks.com
  5. * This file is part of the OCTEON SDK
  6. *
  7. * Copyright (c) 2003-2012 Cavium Networks
  8. *
  9. * This file is free software; you can redistribute it and/or modify
  10. * it under the terms of the GNU General Public License, Version 2, as
  11. * published by the Free Software Foundation.
  12. *
  13. * This file is distributed in the hope that it will be useful, but
  14. * AS-IS and WITHOUT ANY WARRANTY; without even the implied warranty
  15. * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE, TITLE, or
  16. * NONINFRINGEMENT. See the GNU General Public License for more
  17. * details.
  18. *
  19. * You should have received a copy of the GNU General Public License
  20. * along with this file; if not, write to the Free Software
  21. * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
  22. * or visit http://www.gnu.org/licenses/.
  23. *
  24. * This file may also be available under a different license from Cavium.
  25. * Contact Cavium Networks for more information
  26. ***********************license end**************************************/
  27. #ifndef __CVMX_NPI_DEFS_H__
  28. #define __CVMX_NPI_DEFS_H__
  29. #define CVMX_NPI_BASE_ADDR_INPUT0 CVMX_NPI_BASE_ADDR_INPUTX(0)
  30. #define CVMX_NPI_BASE_ADDR_INPUT1 CVMX_NPI_BASE_ADDR_INPUTX(1)
  31. #define CVMX_NPI_BASE_ADDR_INPUT2 CVMX_NPI_BASE_ADDR_INPUTX(2)
  32. #define CVMX_NPI_BASE_ADDR_INPUT3 CVMX_NPI_BASE_ADDR_INPUTX(3)
  33. #define CVMX_NPI_BASE_ADDR_INPUTX(offset) (CVMX_ADD_IO_SEG(0x00011F0000000070ull) + ((offset) & 3) * 16)
  34. #define CVMX_NPI_BASE_ADDR_OUTPUT0 CVMX_NPI_BASE_ADDR_OUTPUTX(0)
  35. #define CVMX_NPI_BASE_ADDR_OUTPUT1 CVMX_NPI_BASE_ADDR_OUTPUTX(1)
  36. #define CVMX_NPI_BASE_ADDR_OUTPUT2 CVMX_NPI_BASE_ADDR_OUTPUTX(2)
  37. #define CVMX_NPI_BASE_ADDR_OUTPUT3 CVMX_NPI_BASE_ADDR_OUTPUTX(3)
  38. #define CVMX_NPI_BASE_ADDR_OUTPUTX(offset) (CVMX_ADD_IO_SEG(0x00011F00000000B8ull) + ((offset) & 3) * 8)
  39. #define CVMX_NPI_BIST_STATUS (CVMX_ADD_IO_SEG(0x00011F00000003F8ull))
  40. #define CVMX_NPI_BUFF_SIZE_OUTPUT0 CVMX_NPI_BUFF_SIZE_OUTPUTX(0)
  41. #define CVMX_NPI_BUFF_SIZE_OUTPUT1 CVMX_NPI_BUFF_SIZE_OUTPUTX(1)
  42. #define CVMX_NPI_BUFF_SIZE_OUTPUT2 CVMX_NPI_BUFF_SIZE_OUTPUTX(2)
  43. #define CVMX_NPI_BUFF_SIZE_OUTPUT3 CVMX_NPI_BUFF_SIZE_OUTPUTX(3)
  44. #define CVMX_NPI_BUFF_SIZE_OUTPUTX(offset) (CVMX_ADD_IO_SEG(0x00011F00000000E0ull) + ((offset) & 3) * 8)
  45. #define CVMX_NPI_COMP_CTL (CVMX_ADD_IO_SEG(0x00011F0000000218ull))
  46. #define CVMX_NPI_CTL_STATUS (CVMX_ADD_IO_SEG(0x00011F0000000010ull))
  47. #define CVMX_NPI_DBG_SELECT (CVMX_ADD_IO_SEG(0x00011F0000000008ull))
  48. #define CVMX_NPI_DMA_CONTROL (CVMX_ADD_IO_SEG(0x00011F0000000128ull))
  49. #define CVMX_NPI_DMA_HIGHP_COUNTS (CVMX_ADD_IO_SEG(0x00011F0000000148ull))
  50. #define CVMX_NPI_DMA_HIGHP_NADDR (CVMX_ADD_IO_SEG(0x00011F0000000158ull))
  51. #define CVMX_NPI_DMA_LOWP_COUNTS (CVMX_ADD_IO_SEG(0x00011F0000000140ull))
  52. #define CVMX_NPI_DMA_LOWP_NADDR (CVMX_ADD_IO_SEG(0x00011F0000000150ull))
  53. #define CVMX_NPI_HIGHP_DBELL (CVMX_ADD_IO_SEG(0x00011F0000000120ull))
  54. #define CVMX_NPI_HIGHP_IBUFF_SADDR (CVMX_ADD_IO_SEG(0x00011F0000000110ull))
  55. #define CVMX_NPI_INPUT_CONTROL (CVMX_ADD_IO_SEG(0x00011F0000000138ull))
  56. #define CVMX_NPI_INT_ENB (CVMX_ADD_IO_SEG(0x00011F0000000020ull))
  57. #define CVMX_NPI_INT_SUM (CVMX_ADD_IO_SEG(0x00011F0000000018ull))
  58. #define CVMX_NPI_LOWP_DBELL (CVMX_ADD_IO_SEG(0x00011F0000000118ull))
  59. #define CVMX_NPI_LOWP_IBUFF_SADDR (CVMX_ADD_IO_SEG(0x00011F0000000108ull))
  60. #define CVMX_NPI_MEM_ACCESS_SUBID3 CVMX_NPI_MEM_ACCESS_SUBIDX(3)
  61. #define CVMX_NPI_MEM_ACCESS_SUBID4 CVMX_NPI_MEM_ACCESS_SUBIDX(4)
  62. #define CVMX_NPI_MEM_ACCESS_SUBID5 CVMX_NPI_MEM_ACCESS_SUBIDX(5)
  63. #define CVMX_NPI_MEM_ACCESS_SUBID6 CVMX_NPI_MEM_ACCESS_SUBIDX(6)
  64. #define CVMX_NPI_MEM_ACCESS_SUBIDX(offset) (CVMX_ADD_IO_SEG(0x00011F0000000028ull) + ((offset) & 7) * 8 - 8*3)
  65. #define CVMX_NPI_MSI_RCV (0x0000000000000190ull)
  66. #define CVMX_NPI_NPI_MSI_RCV (CVMX_ADD_IO_SEG(0x00011F0000001190ull))
  67. #define CVMX_NPI_NUM_DESC_OUTPUT0 CVMX_NPI_NUM_DESC_OUTPUTX(0)
  68. #define CVMX_NPI_NUM_DESC_OUTPUT1 CVMX_NPI_NUM_DESC_OUTPUTX(1)
  69. #define CVMX_NPI_NUM_DESC_OUTPUT2 CVMX_NPI_NUM_DESC_OUTPUTX(2)
  70. #define CVMX_NPI_NUM_DESC_OUTPUT3 CVMX_NPI_NUM_DESC_OUTPUTX(3)
  71. #define CVMX_NPI_NUM_DESC_OUTPUTX(offset) (CVMX_ADD_IO_SEG(0x00011F0000000050ull) + ((offset) & 3) * 8)
  72. #define CVMX_NPI_OUTPUT_CONTROL (CVMX_ADD_IO_SEG(0x00011F0000000100ull))
  73. #define CVMX_NPI_P0_DBPAIR_ADDR CVMX_NPI_PX_DBPAIR_ADDR(0)
  74. #define CVMX_NPI_P0_INSTR_ADDR CVMX_NPI_PX_INSTR_ADDR(0)
  75. #define CVMX_NPI_P0_INSTR_CNTS CVMX_NPI_PX_INSTR_CNTS(0)
  76. #define CVMX_NPI_P0_PAIR_CNTS CVMX_NPI_PX_PAIR_CNTS(0)
  77. #define CVMX_NPI_P1_DBPAIR_ADDR CVMX_NPI_PX_DBPAIR_ADDR(1)
  78. #define CVMX_NPI_P1_INSTR_ADDR CVMX_NPI_PX_INSTR_ADDR(1)
  79. #define CVMX_NPI_P1_INSTR_CNTS CVMX_NPI_PX_INSTR_CNTS(1)
  80. #define CVMX_NPI_P1_PAIR_CNTS CVMX_NPI_PX_PAIR_CNTS(1)
  81. #define CVMX_NPI_P2_DBPAIR_ADDR CVMX_NPI_PX_DBPAIR_ADDR(2)
  82. #define CVMX_NPI_P2_INSTR_ADDR CVMX_NPI_PX_INSTR_ADDR(2)
  83. #define CVMX_NPI_P2_INSTR_CNTS CVMX_NPI_PX_INSTR_CNTS(2)
  84. #define CVMX_NPI_P2_PAIR_CNTS CVMX_NPI_PX_PAIR_CNTS(2)
  85. #define CVMX_NPI_P3_DBPAIR_ADDR CVMX_NPI_PX_DBPAIR_ADDR(3)
  86. #define CVMX_NPI_P3_INSTR_ADDR CVMX_NPI_PX_INSTR_ADDR(3)
  87. #define CVMX_NPI_P3_INSTR_CNTS CVMX_NPI_PX_INSTR_CNTS(3)
  88. #define CVMX_NPI_P3_PAIR_CNTS CVMX_NPI_PX_PAIR_CNTS(3)
  89. #define CVMX_NPI_PCI_BAR1_INDEXX(offset) (CVMX_ADD_IO_SEG(0x00011F0000001100ull) + ((offset) & 31) * 4)
  90. #define CVMX_NPI_PCI_BIST_REG (CVMX_ADD_IO_SEG(0x00011F00000011C0ull))
  91. #define CVMX_NPI_PCI_BURST_SIZE (CVMX_ADD_IO_SEG(0x00011F00000000D8ull))
  92. #define CVMX_NPI_PCI_CFG00 (CVMX_ADD_IO_SEG(0x00011F0000001800ull))
  93. #define CVMX_NPI_PCI_CFG01 (CVMX_ADD_IO_SEG(0x00011F0000001804ull))
  94. #define CVMX_NPI_PCI_CFG02 (CVMX_ADD_IO_SEG(0x00011F0000001808ull))
  95. #define CVMX_NPI_PCI_CFG03 (CVMX_ADD_IO_SEG(0x00011F000000180Cull))
  96. #define CVMX_NPI_PCI_CFG04 (CVMX_ADD_IO_SEG(0x00011F0000001810ull))
  97. #define CVMX_NPI_PCI_CFG05 (CVMX_ADD_IO_SEG(0x00011F0000001814ull))
  98. #define CVMX_NPI_PCI_CFG06 (CVMX_ADD_IO_SEG(0x00011F0000001818ull))
  99. #define CVMX_NPI_PCI_CFG07 (CVMX_ADD_IO_SEG(0x00011F000000181Cull))
  100. #define CVMX_NPI_PCI_CFG08 (CVMX_ADD_IO_SEG(0x00011F0000001820ull))
  101. #define CVMX_NPI_PCI_CFG09 (CVMX_ADD_IO_SEG(0x00011F0000001824ull))
  102. #define CVMX_NPI_PCI_CFG10 (CVMX_ADD_IO_SEG(0x00011F0000001828ull))
  103. #define CVMX_NPI_PCI_CFG11 (CVMX_ADD_IO_SEG(0x00011F000000182Cull))
  104. #define CVMX_NPI_PCI_CFG12 (CVMX_ADD_IO_SEG(0x00011F0000001830ull))
  105. #define CVMX_NPI_PCI_CFG13 (CVMX_ADD_IO_SEG(0x00011F0000001834ull))
  106. #define CVMX_NPI_PCI_CFG15 (CVMX_ADD_IO_SEG(0x00011F000000183Cull))
  107. #define CVMX_NPI_PCI_CFG16 (CVMX_ADD_IO_SEG(0x00011F0000001840ull))
  108. #define CVMX_NPI_PCI_CFG17 (CVMX_ADD_IO_SEG(0x00011F0000001844ull))
  109. #define CVMX_NPI_PCI_CFG18 (CVMX_ADD_IO_SEG(0x00011F0000001848ull))
  110. #define CVMX_NPI_PCI_CFG19 (CVMX_ADD_IO_SEG(0x00011F000000184Cull))
  111. #define CVMX_NPI_PCI_CFG20 (CVMX_ADD_IO_SEG(0x00011F0000001850ull))
  112. #define CVMX_NPI_PCI_CFG21 (CVMX_ADD_IO_SEG(0x00011F0000001854ull))
  113. #define CVMX_NPI_PCI_CFG22 (CVMX_ADD_IO_SEG(0x00011F0000001858ull))
  114. #define CVMX_NPI_PCI_CFG56 (CVMX_ADD_IO_SEG(0x00011F00000018E0ull))
  115. #define CVMX_NPI_PCI_CFG57 (CVMX_ADD_IO_SEG(0x00011F00000018E4ull))
  116. #define CVMX_NPI_PCI_CFG58 (CVMX_ADD_IO_SEG(0x00011F00000018E8ull))
  117. #define CVMX_NPI_PCI_CFG59 (CVMX_ADD_IO_SEG(0x00011F00000018ECull))
  118. #define CVMX_NPI_PCI_CFG60 (CVMX_ADD_IO_SEG(0x00011F00000018F0ull))
  119. #define CVMX_NPI_PCI_CFG61 (CVMX_ADD_IO_SEG(0x00011F00000018F4ull))
  120. #define CVMX_NPI_PCI_CFG62 (CVMX_ADD_IO_SEG(0x00011F00000018F8ull))
  121. #define CVMX_NPI_PCI_CFG63 (CVMX_ADD_IO_SEG(0x00011F00000018FCull))
  122. #define CVMX_NPI_PCI_CNT_REG (CVMX_ADD_IO_SEG(0x00011F00000011B8ull))
  123. #define CVMX_NPI_PCI_CTL_STATUS_2 (CVMX_ADD_IO_SEG(0x00011F000000118Cull))
  124. #define CVMX_NPI_PCI_INT_ARB_CFG (CVMX_ADD_IO_SEG(0x00011F0000000130ull))
  125. #define CVMX_NPI_PCI_INT_ENB2 (CVMX_ADD_IO_SEG(0x00011F00000011A0ull))
  126. #define CVMX_NPI_PCI_INT_SUM2 (CVMX_ADD_IO_SEG(0x00011F0000001198ull))
  127. #define CVMX_NPI_PCI_READ_CMD (CVMX_ADD_IO_SEG(0x00011F0000000048ull))
  128. #define CVMX_NPI_PCI_READ_CMD_6 (CVMX_ADD_IO_SEG(0x00011F0000001180ull))
  129. #define CVMX_NPI_PCI_READ_CMD_C (CVMX_ADD_IO_SEG(0x00011F0000001184ull))
  130. #define CVMX_NPI_PCI_READ_CMD_E (CVMX_ADD_IO_SEG(0x00011F0000001188ull))
  131. #define CVMX_NPI_PCI_SCM_REG (CVMX_ADD_IO_SEG(0x00011F00000011A8ull))
  132. #define CVMX_NPI_PCI_TSR_REG (CVMX_ADD_IO_SEG(0x00011F00000011B0ull))
  133. #define CVMX_NPI_PORT32_INSTR_HDR (CVMX_ADD_IO_SEG(0x00011F00000001F8ull))
  134. #define CVMX_NPI_PORT33_INSTR_HDR (CVMX_ADD_IO_SEG(0x00011F0000000200ull))
  135. #define CVMX_NPI_PORT34_INSTR_HDR (CVMX_ADD_IO_SEG(0x00011F0000000208ull))
  136. #define CVMX_NPI_PORT35_INSTR_HDR (CVMX_ADD_IO_SEG(0x00011F0000000210ull))
  137. #define CVMX_NPI_PORT_BP_CONTROL (CVMX_ADD_IO_SEG(0x00011F00000001F0ull))
  138. #define CVMX_NPI_PX_DBPAIR_ADDR(offset) (CVMX_ADD_IO_SEG(0x00011F0000000180ull) + ((offset) & 3) * 8)
  139. #define CVMX_NPI_PX_INSTR_ADDR(offset) (CVMX_ADD_IO_SEG(0x00011F00000001C0ull) + ((offset) & 3) * 8)
  140. #define CVMX_NPI_PX_INSTR_CNTS(offset) (CVMX_ADD_IO_SEG(0x00011F00000001A0ull) + ((offset) & 3) * 8)
  141. #define CVMX_NPI_PX_PAIR_CNTS(offset) (CVMX_ADD_IO_SEG(0x00011F0000000160ull) + ((offset) & 3) * 8)
  142. #define CVMX_NPI_RSL_INT_BLOCKS (CVMX_ADD_IO_SEG(0x00011F0000000000ull))
  143. #define CVMX_NPI_SIZE_INPUT0 CVMX_NPI_SIZE_INPUTX(0)
  144. #define CVMX_NPI_SIZE_INPUT1 CVMX_NPI_SIZE_INPUTX(1)
  145. #define CVMX_NPI_SIZE_INPUT2 CVMX_NPI_SIZE_INPUTX(2)
  146. #define CVMX_NPI_SIZE_INPUT3 CVMX_NPI_SIZE_INPUTX(3)
  147. #define CVMX_NPI_SIZE_INPUTX(offset) (CVMX_ADD_IO_SEG(0x00011F0000000078ull) + ((offset) & 3) * 16)
  148. #define CVMX_NPI_WIN_READ_TO (CVMX_ADD_IO_SEG(0x00011F00000001E0ull))
  149. union cvmx_npi_base_addr_inputx {
  150. uint64_t u64;
  151. struct cvmx_npi_base_addr_inputx_s {
  152. #ifdef __BIG_ENDIAN_BITFIELD
  153. uint64_t baddr:61;
  154. uint64_t reserved_0_2:3;
  155. #else
  156. uint64_t reserved_0_2:3;
  157. uint64_t baddr:61;
  158. #endif
  159. } s;
  160. struct cvmx_npi_base_addr_inputx_s cn30xx;
  161. struct cvmx_npi_base_addr_inputx_s cn31xx;
  162. struct cvmx_npi_base_addr_inputx_s cn38xx;
  163. struct cvmx_npi_base_addr_inputx_s cn38xxp2;
  164. struct cvmx_npi_base_addr_inputx_s cn50xx;
  165. struct cvmx_npi_base_addr_inputx_s cn58xx;
  166. struct cvmx_npi_base_addr_inputx_s cn58xxp1;
  167. };
  168. union cvmx_npi_base_addr_outputx {
  169. uint64_t u64;
  170. struct cvmx_npi_base_addr_outputx_s {
  171. #ifdef __BIG_ENDIAN_BITFIELD
  172. uint64_t baddr:61;
  173. uint64_t reserved_0_2:3;
  174. #else
  175. uint64_t reserved_0_2:3;
  176. uint64_t baddr:61;
  177. #endif
  178. } s;
  179. struct cvmx_npi_base_addr_outputx_s cn30xx;
  180. struct cvmx_npi_base_addr_outputx_s cn31xx;
  181. struct cvmx_npi_base_addr_outputx_s cn38xx;
  182. struct cvmx_npi_base_addr_outputx_s cn38xxp2;
  183. struct cvmx_npi_base_addr_outputx_s cn50xx;
  184. struct cvmx_npi_base_addr_outputx_s cn58xx;
  185. struct cvmx_npi_base_addr_outputx_s cn58xxp1;
  186. };
  187. union cvmx_npi_bist_status {
  188. uint64_t u64;
  189. struct cvmx_npi_bist_status_s {
  190. #ifdef __BIG_ENDIAN_BITFIELD
  191. uint64_t reserved_20_63:44;
  192. uint64_t csr_bs:1;
  193. uint64_t dif_bs:1;
  194. uint64_t rdp_bs:1;
  195. uint64_t pcnc_bs:1;
  196. uint64_t pcn_bs:1;
  197. uint64_t rdn_bs:1;
  198. uint64_t pcac_bs:1;
  199. uint64_t pcad_bs:1;
  200. uint64_t rdnl_bs:1;
  201. uint64_t pgf_bs:1;
  202. uint64_t pig_bs:1;
  203. uint64_t pof0_bs:1;
  204. uint64_t pof1_bs:1;
  205. uint64_t pof2_bs:1;
  206. uint64_t pof3_bs:1;
  207. uint64_t pos_bs:1;
  208. uint64_t nus_bs:1;
  209. uint64_t dob_bs:1;
  210. uint64_t pdf_bs:1;
  211. uint64_t dpi_bs:1;
  212. #else
  213. uint64_t dpi_bs:1;
  214. uint64_t pdf_bs:1;
  215. uint64_t dob_bs:1;
  216. uint64_t nus_bs:1;
  217. uint64_t pos_bs:1;
  218. uint64_t pof3_bs:1;
  219. uint64_t pof2_bs:1;
  220. uint64_t pof1_bs:1;
  221. uint64_t pof0_bs:1;
  222. uint64_t pig_bs:1;
  223. uint64_t pgf_bs:1;
  224. uint64_t rdnl_bs:1;
  225. uint64_t pcad_bs:1;
  226. uint64_t pcac_bs:1;
  227. uint64_t rdn_bs:1;
  228. uint64_t pcn_bs:1;
  229. uint64_t pcnc_bs:1;
  230. uint64_t rdp_bs:1;
  231. uint64_t dif_bs:1;
  232. uint64_t csr_bs:1;
  233. uint64_t reserved_20_63:44;
  234. #endif
  235. } s;
  236. struct cvmx_npi_bist_status_cn30xx {
  237. #ifdef __BIG_ENDIAN_BITFIELD
  238. uint64_t reserved_20_63:44;
  239. uint64_t csr_bs:1;
  240. uint64_t dif_bs:1;
  241. uint64_t rdp_bs:1;
  242. uint64_t pcnc_bs:1;
  243. uint64_t pcn_bs:1;
  244. uint64_t rdn_bs:1;
  245. uint64_t pcac_bs:1;
  246. uint64_t pcad_bs:1;
  247. uint64_t rdnl_bs:1;
  248. uint64_t pgf_bs:1;
  249. uint64_t pig_bs:1;
  250. uint64_t pof0_bs:1;
  251. uint64_t reserved_5_7:3;
  252. uint64_t pos_bs:1;
  253. uint64_t nus_bs:1;
  254. uint64_t dob_bs:1;
  255. uint64_t pdf_bs:1;
  256. uint64_t dpi_bs:1;
  257. #else
  258. uint64_t dpi_bs:1;
  259. uint64_t pdf_bs:1;
  260. uint64_t dob_bs:1;
  261. uint64_t nus_bs:1;
  262. uint64_t pos_bs:1;
  263. uint64_t reserved_5_7:3;
  264. uint64_t pof0_bs:1;
  265. uint64_t pig_bs:1;
  266. uint64_t pgf_bs:1;
  267. uint64_t rdnl_bs:1;
  268. uint64_t pcad_bs:1;
  269. uint64_t pcac_bs:1;
  270. uint64_t rdn_bs:1;
  271. uint64_t pcn_bs:1;
  272. uint64_t pcnc_bs:1;
  273. uint64_t rdp_bs:1;
  274. uint64_t dif_bs:1;
  275. uint64_t csr_bs:1;
  276. uint64_t reserved_20_63:44;
  277. #endif
  278. } cn30xx;
  279. struct cvmx_npi_bist_status_s cn31xx;
  280. struct cvmx_npi_bist_status_s cn38xx;
  281. struct cvmx_npi_bist_status_s cn38xxp2;
  282. struct cvmx_npi_bist_status_cn50xx {
  283. #ifdef __BIG_ENDIAN_BITFIELD
  284. uint64_t reserved_20_63:44;
  285. uint64_t csr_bs:1;
  286. uint64_t dif_bs:1;
  287. uint64_t rdp_bs:1;
  288. uint64_t pcnc_bs:1;
  289. uint64_t pcn_bs:1;
  290. uint64_t rdn_bs:1;
  291. uint64_t pcac_bs:1;
  292. uint64_t pcad_bs:1;
  293. uint64_t rdnl_bs:1;
  294. uint64_t pgf_bs:1;
  295. uint64_t pig_bs:1;
  296. uint64_t pof0_bs:1;
  297. uint64_t pof1_bs:1;
  298. uint64_t reserved_5_6:2;
  299. uint64_t pos_bs:1;
  300. uint64_t nus_bs:1;
  301. uint64_t dob_bs:1;
  302. uint64_t pdf_bs:1;
  303. uint64_t dpi_bs:1;
  304. #else
  305. uint64_t dpi_bs:1;
  306. uint64_t pdf_bs:1;
  307. uint64_t dob_bs:1;
  308. uint64_t nus_bs:1;
  309. uint64_t pos_bs:1;
  310. uint64_t reserved_5_6:2;
  311. uint64_t pof1_bs:1;
  312. uint64_t pof0_bs:1;
  313. uint64_t pig_bs:1;
  314. uint64_t pgf_bs:1;
  315. uint64_t rdnl_bs:1;
  316. uint64_t pcad_bs:1;
  317. uint64_t pcac_bs:1;
  318. uint64_t rdn_bs:1;
  319. uint64_t pcn_bs:1;
  320. uint64_t pcnc_bs:1;
  321. uint64_t rdp_bs:1;
  322. uint64_t dif_bs:1;
  323. uint64_t csr_bs:1;
  324. uint64_t reserved_20_63:44;
  325. #endif
  326. } cn50xx;
  327. struct cvmx_npi_bist_status_s cn58xx;
  328. struct cvmx_npi_bist_status_s cn58xxp1;
  329. };
  330. union cvmx_npi_buff_size_outputx {
  331. uint64_t u64;
  332. struct cvmx_npi_buff_size_outputx_s {
  333. #ifdef __BIG_ENDIAN_BITFIELD
  334. uint64_t reserved_23_63:41;
  335. uint64_t isize:7;
  336. uint64_t bsize:16;
  337. #else
  338. uint64_t bsize:16;
  339. uint64_t isize:7;
  340. uint64_t reserved_23_63:41;
  341. #endif
  342. } s;
  343. struct cvmx_npi_buff_size_outputx_s cn30xx;
  344. struct cvmx_npi_buff_size_outputx_s cn31xx;
  345. struct cvmx_npi_buff_size_outputx_s cn38xx;
  346. struct cvmx_npi_buff_size_outputx_s cn38xxp2;
  347. struct cvmx_npi_buff_size_outputx_s cn50xx;
  348. struct cvmx_npi_buff_size_outputx_s cn58xx;
  349. struct cvmx_npi_buff_size_outputx_s cn58xxp1;
  350. };
  351. union cvmx_npi_comp_ctl {
  352. uint64_t u64;
  353. struct cvmx_npi_comp_ctl_s {
  354. #ifdef __BIG_ENDIAN_BITFIELD
  355. uint64_t reserved_10_63:54;
  356. uint64_t pctl:5;
  357. uint64_t nctl:5;
  358. #else
  359. uint64_t nctl:5;
  360. uint64_t pctl:5;
  361. uint64_t reserved_10_63:54;
  362. #endif
  363. } s;
  364. struct cvmx_npi_comp_ctl_s cn50xx;
  365. struct cvmx_npi_comp_ctl_s cn58xx;
  366. struct cvmx_npi_comp_ctl_s cn58xxp1;
  367. };
  368. union cvmx_npi_ctl_status {
  369. uint64_t u64;
  370. struct cvmx_npi_ctl_status_s {
  371. #ifdef __BIG_ENDIAN_BITFIELD
  372. uint64_t reserved_63_63:1;
  373. uint64_t chip_rev:8;
  374. uint64_t dis_pniw:1;
  375. uint64_t out3_enb:1;
  376. uint64_t out2_enb:1;
  377. uint64_t out1_enb:1;
  378. uint64_t out0_enb:1;
  379. uint64_t ins3_enb:1;
  380. uint64_t ins2_enb:1;
  381. uint64_t ins1_enb:1;
  382. uint64_t ins0_enb:1;
  383. uint64_t ins3_64b:1;
  384. uint64_t ins2_64b:1;
  385. uint64_t ins1_64b:1;
  386. uint64_t ins0_64b:1;
  387. uint64_t pci_wdis:1;
  388. uint64_t wait_com:1;
  389. uint64_t reserved_37_39:3;
  390. uint64_t max_word:5;
  391. uint64_t reserved_10_31:22;
  392. uint64_t timer:10;
  393. #else
  394. uint64_t timer:10;
  395. uint64_t reserved_10_31:22;
  396. uint64_t max_word:5;
  397. uint64_t reserved_37_39:3;
  398. uint64_t wait_com:1;
  399. uint64_t pci_wdis:1;
  400. uint64_t ins0_64b:1;
  401. uint64_t ins1_64b:1;
  402. uint64_t ins2_64b:1;
  403. uint64_t ins3_64b:1;
  404. uint64_t ins0_enb:1;
  405. uint64_t ins1_enb:1;
  406. uint64_t ins2_enb:1;
  407. uint64_t ins3_enb:1;
  408. uint64_t out0_enb:1;
  409. uint64_t out1_enb:1;
  410. uint64_t out2_enb:1;
  411. uint64_t out3_enb:1;
  412. uint64_t dis_pniw:1;
  413. uint64_t chip_rev:8;
  414. uint64_t reserved_63_63:1;
  415. #endif
  416. } s;
  417. struct cvmx_npi_ctl_status_cn30xx {
  418. #ifdef __BIG_ENDIAN_BITFIELD
  419. uint64_t reserved_63_63:1;
  420. uint64_t chip_rev:8;
  421. uint64_t dis_pniw:1;
  422. uint64_t reserved_51_53:3;
  423. uint64_t out0_enb:1;
  424. uint64_t reserved_47_49:3;
  425. uint64_t ins0_enb:1;
  426. uint64_t reserved_43_45:3;
  427. uint64_t ins0_64b:1;
  428. uint64_t pci_wdis:1;
  429. uint64_t wait_com:1;
  430. uint64_t reserved_37_39:3;
  431. uint64_t max_word:5;
  432. uint64_t reserved_10_31:22;
  433. uint64_t timer:10;
  434. #else
  435. uint64_t timer:10;
  436. uint64_t reserved_10_31:22;
  437. uint64_t max_word:5;
  438. uint64_t reserved_37_39:3;
  439. uint64_t wait_com:1;
  440. uint64_t pci_wdis:1;
  441. uint64_t ins0_64b:1;
  442. uint64_t reserved_43_45:3;
  443. uint64_t ins0_enb:1;
  444. uint64_t reserved_47_49:3;
  445. uint64_t out0_enb:1;
  446. uint64_t reserved_51_53:3;
  447. uint64_t dis_pniw:1;
  448. uint64_t chip_rev:8;
  449. uint64_t reserved_63_63:1;
  450. #endif
  451. } cn30xx;
  452. struct cvmx_npi_ctl_status_cn31xx {
  453. #ifdef __BIG_ENDIAN_BITFIELD
  454. uint64_t reserved_63_63:1;
  455. uint64_t chip_rev:8;
  456. uint64_t dis_pniw:1;
  457. uint64_t reserved_52_53:2;
  458. uint64_t out1_enb:1;
  459. uint64_t out0_enb:1;
  460. uint64_t reserved_48_49:2;
  461. uint64_t ins1_enb:1;
  462. uint64_t ins0_enb:1;
  463. uint64_t reserved_44_45:2;
  464. uint64_t ins1_64b:1;
  465. uint64_t ins0_64b:1;
  466. uint64_t pci_wdis:1;
  467. uint64_t wait_com:1;
  468. uint64_t reserved_37_39:3;
  469. uint64_t max_word:5;
  470. uint64_t reserved_10_31:22;
  471. uint64_t timer:10;
  472. #else
  473. uint64_t timer:10;
  474. uint64_t reserved_10_31:22;
  475. uint64_t max_word:5;
  476. uint64_t reserved_37_39:3;
  477. uint64_t wait_com:1;
  478. uint64_t pci_wdis:1;
  479. uint64_t ins0_64b:1;
  480. uint64_t ins1_64b:1;
  481. uint64_t reserved_44_45:2;
  482. uint64_t ins0_enb:1;
  483. uint64_t ins1_enb:1;
  484. uint64_t reserved_48_49:2;
  485. uint64_t out0_enb:1;
  486. uint64_t out1_enb:1;
  487. uint64_t reserved_52_53:2;
  488. uint64_t dis_pniw:1;
  489. uint64_t chip_rev:8;
  490. uint64_t reserved_63_63:1;
  491. #endif
  492. } cn31xx;
  493. struct cvmx_npi_ctl_status_s cn38xx;
  494. struct cvmx_npi_ctl_status_s cn38xxp2;
  495. struct cvmx_npi_ctl_status_cn31xx cn50xx;
  496. struct cvmx_npi_ctl_status_s cn58xx;
  497. struct cvmx_npi_ctl_status_s cn58xxp1;
  498. };
  499. union cvmx_npi_dbg_select {
  500. uint64_t u64;
  501. struct cvmx_npi_dbg_select_s {
  502. #ifdef __BIG_ENDIAN_BITFIELD
  503. uint64_t reserved_16_63:48;
  504. uint64_t dbg_sel:16;
  505. #else
  506. uint64_t dbg_sel:16;
  507. uint64_t reserved_16_63:48;
  508. #endif
  509. } s;
  510. struct cvmx_npi_dbg_select_s cn30xx;
  511. struct cvmx_npi_dbg_select_s cn31xx;
  512. struct cvmx_npi_dbg_select_s cn38xx;
  513. struct cvmx_npi_dbg_select_s cn38xxp2;
  514. struct cvmx_npi_dbg_select_s cn50xx;
  515. struct cvmx_npi_dbg_select_s cn58xx;
  516. struct cvmx_npi_dbg_select_s cn58xxp1;
  517. };
  518. union cvmx_npi_dma_control {
  519. uint64_t u64;
  520. struct cvmx_npi_dma_control_s {
  521. #ifdef __BIG_ENDIAN_BITFIELD
  522. uint64_t reserved_36_63:28;
  523. uint64_t b0_lend:1;
  524. uint64_t dwb_denb:1;
  525. uint64_t dwb_ichk:9;
  526. uint64_t fpa_que:3;
  527. uint64_t o_add1:1;
  528. uint64_t o_ro:1;
  529. uint64_t o_ns:1;
  530. uint64_t o_es:2;
  531. uint64_t o_mode:1;
  532. uint64_t hp_enb:1;
  533. uint64_t lp_enb:1;
  534. uint64_t csize:14;
  535. #else
  536. uint64_t csize:14;
  537. uint64_t lp_enb:1;
  538. uint64_t hp_enb:1;
  539. uint64_t o_mode:1;
  540. uint64_t o_es:2;
  541. uint64_t o_ns:1;
  542. uint64_t o_ro:1;
  543. uint64_t o_add1:1;
  544. uint64_t fpa_que:3;
  545. uint64_t dwb_ichk:9;
  546. uint64_t dwb_denb:1;
  547. uint64_t b0_lend:1;
  548. uint64_t reserved_36_63:28;
  549. #endif
  550. } s;
  551. struct cvmx_npi_dma_control_s cn30xx;
  552. struct cvmx_npi_dma_control_s cn31xx;
  553. struct cvmx_npi_dma_control_s cn38xx;
  554. struct cvmx_npi_dma_control_s cn38xxp2;
  555. struct cvmx_npi_dma_control_s cn50xx;
  556. struct cvmx_npi_dma_control_s cn58xx;
  557. struct cvmx_npi_dma_control_s cn58xxp1;
  558. };
  559. union cvmx_npi_dma_highp_counts {
  560. uint64_t u64;
  561. struct cvmx_npi_dma_highp_counts_s {
  562. #ifdef __BIG_ENDIAN_BITFIELD
  563. uint64_t reserved_39_63:25;
  564. uint64_t fcnt:7;
  565. uint64_t dbell:32;
  566. #else
  567. uint64_t dbell:32;
  568. uint64_t fcnt:7;
  569. uint64_t reserved_39_63:25;
  570. #endif
  571. } s;
  572. struct cvmx_npi_dma_highp_counts_s cn30xx;
  573. struct cvmx_npi_dma_highp_counts_s cn31xx;
  574. struct cvmx_npi_dma_highp_counts_s cn38xx;
  575. struct cvmx_npi_dma_highp_counts_s cn38xxp2;
  576. struct cvmx_npi_dma_highp_counts_s cn50xx;
  577. struct cvmx_npi_dma_highp_counts_s cn58xx;
  578. struct cvmx_npi_dma_highp_counts_s cn58xxp1;
  579. };
  580. union cvmx_npi_dma_highp_naddr {
  581. uint64_t u64;
  582. struct cvmx_npi_dma_highp_naddr_s {
  583. #ifdef __BIG_ENDIAN_BITFIELD
  584. uint64_t reserved_40_63:24;
  585. uint64_t state:4;
  586. uint64_t addr:36;
  587. #else
  588. uint64_t addr:36;
  589. uint64_t state:4;
  590. uint64_t reserved_40_63:24;
  591. #endif
  592. } s;
  593. struct cvmx_npi_dma_highp_naddr_s cn30xx;
  594. struct cvmx_npi_dma_highp_naddr_s cn31xx;
  595. struct cvmx_npi_dma_highp_naddr_s cn38xx;
  596. struct cvmx_npi_dma_highp_naddr_s cn38xxp2;
  597. struct cvmx_npi_dma_highp_naddr_s cn50xx;
  598. struct cvmx_npi_dma_highp_naddr_s cn58xx;
  599. struct cvmx_npi_dma_highp_naddr_s cn58xxp1;
  600. };
  601. union cvmx_npi_dma_lowp_counts {
  602. uint64_t u64;
  603. struct cvmx_npi_dma_lowp_counts_s {
  604. #ifdef __BIG_ENDIAN_BITFIELD
  605. uint64_t reserved_39_63:25;
  606. uint64_t fcnt:7;
  607. uint64_t dbell:32;
  608. #else
  609. uint64_t dbell:32;
  610. uint64_t fcnt:7;
  611. uint64_t reserved_39_63:25;
  612. #endif
  613. } s;
  614. struct cvmx_npi_dma_lowp_counts_s cn30xx;
  615. struct cvmx_npi_dma_lowp_counts_s cn31xx;
  616. struct cvmx_npi_dma_lowp_counts_s cn38xx;
  617. struct cvmx_npi_dma_lowp_counts_s cn38xxp2;
  618. struct cvmx_npi_dma_lowp_counts_s cn50xx;
  619. struct cvmx_npi_dma_lowp_counts_s cn58xx;
  620. struct cvmx_npi_dma_lowp_counts_s cn58xxp1;
  621. };
  622. union cvmx_npi_dma_lowp_naddr {
  623. uint64_t u64;
  624. struct cvmx_npi_dma_lowp_naddr_s {
  625. #ifdef __BIG_ENDIAN_BITFIELD
  626. uint64_t reserved_40_63:24;
  627. uint64_t state:4;
  628. uint64_t addr:36;
  629. #else
  630. uint64_t addr:36;
  631. uint64_t state:4;
  632. uint64_t reserved_40_63:24;
  633. #endif
  634. } s;
  635. struct cvmx_npi_dma_lowp_naddr_s cn30xx;
  636. struct cvmx_npi_dma_lowp_naddr_s cn31xx;
  637. struct cvmx_npi_dma_lowp_naddr_s cn38xx;
  638. struct cvmx_npi_dma_lowp_naddr_s cn38xxp2;
  639. struct cvmx_npi_dma_lowp_naddr_s cn50xx;
  640. struct cvmx_npi_dma_lowp_naddr_s cn58xx;
  641. struct cvmx_npi_dma_lowp_naddr_s cn58xxp1;
  642. };
  643. union cvmx_npi_highp_dbell {
  644. uint64_t u64;
  645. struct cvmx_npi_highp_dbell_s {
  646. #ifdef __BIG_ENDIAN_BITFIELD
  647. uint64_t reserved_16_63:48;
  648. uint64_t dbell:16;
  649. #else
  650. uint64_t dbell:16;
  651. uint64_t reserved_16_63:48;
  652. #endif
  653. } s;
  654. struct cvmx_npi_highp_dbell_s cn30xx;
  655. struct cvmx_npi_highp_dbell_s cn31xx;
  656. struct cvmx_npi_highp_dbell_s cn38xx;
  657. struct cvmx_npi_highp_dbell_s cn38xxp2;
  658. struct cvmx_npi_highp_dbell_s cn50xx;
  659. struct cvmx_npi_highp_dbell_s cn58xx;
  660. struct cvmx_npi_highp_dbell_s cn58xxp1;
  661. };
  662. union cvmx_npi_highp_ibuff_saddr {
  663. uint64_t u64;
  664. struct cvmx_npi_highp_ibuff_saddr_s {
  665. #ifdef __BIG_ENDIAN_BITFIELD
  666. uint64_t reserved_36_63:28;
  667. uint64_t saddr:36;
  668. #else
  669. uint64_t saddr:36;
  670. uint64_t reserved_36_63:28;
  671. #endif
  672. } s;
  673. struct cvmx_npi_highp_ibuff_saddr_s cn30xx;
  674. struct cvmx_npi_highp_ibuff_saddr_s cn31xx;
  675. struct cvmx_npi_highp_ibuff_saddr_s cn38xx;
  676. struct cvmx_npi_highp_ibuff_saddr_s cn38xxp2;
  677. struct cvmx_npi_highp_ibuff_saddr_s cn50xx;
  678. struct cvmx_npi_highp_ibuff_saddr_s cn58xx;
  679. struct cvmx_npi_highp_ibuff_saddr_s cn58xxp1;
  680. };
  681. union cvmx_npi_input_control {
  682. uint64_t u64;
  683. struct cvmx_npi_input_control_s {
  684. #ifdef __BIG_ENDIAN_BITFIELD
  685. uint64_t reserved_23_63:41;
  686. uint64_t pkt_rr:1;
  687. uint64_t pbp_dhi:13;
  688. uint64_t d_nsr:1;
  689. uint64_t d_esr:2;
  690. uint64_t d_ror:1;
  691. uint64_t use_csr:1;
  692. uint64_t nsr:1;
  693. uint64_t esr:2;
  694. uint64_t ror:1;
  695. #else
  696. uint64_t ror:1;
  697. uint64_t esr:2;
  698. uint64_t nsr:1;
  699. uint64_t use_csr:1;
  700. uint64_t d_ror:1;
  701. uint64_t d_esr:2;
  702. uint64_t d_nsr:1;
  703. uint64_t pbp_dhi:13;
  704. uint64_t pkt_rr:1;
  705. uint64_t reserved_23_63:41;
  706. #endif
  707. } s;
  708. struct cvmx_npi_input_control_cn30xx {
  709. #ifdef __BIG_ENDIAN_BITFIELD
  710. uint64_t reserved_22_63:42;
  711. uint64_t pbp_dhi:13;
  712. uint64_t d_nsr:1;
  713. uint64_t d_esr:2;
  714. uint64_t d_ror:1;
  715. uint64_t use_csr:1;
  716. uint64_t nsr:1;
  717. uint64_t esr:2;
  718. uint64_t ror:1;
  719. #else
  720. uint64_t ror:1;
  721. uint64_t esr:2;
  722. uint64_t nsr:1;
  723. uint64_t use_csr:1;
  724. uint64_t d_ror:1;
  725. uint64_t d_esr:2;
  726. uint64_t d_nsr:1;
  727. uint64_t pbp_dhi:13;
  728. uint64_t reserved_22_63:42;
  729. #endif
  730. } cn30xx;
  731. struct cvmx_npi_input_control_cn30xx cn31xx;
  732. struct cvmx_npi_input_control_s cn38xx;
  733. struct cvmx_npi_input_control_cn30xx cn38xxp2;
  734. struct cvmx_npi_input_control_s cn50xx;
  735. struct cvmx_npi_input_control_s cn58xx;
  736. struct cvmx_npi_input_control_s cn58xxp1;
  737. };
  738. union cvmx_npi_int_enb {
  739. uint64_t u64;
  740. struct cvmx_npi_int_enb_s {
  741. #ifdef __BIG_ENDIAN_BITFIELD
  742. uint64_t reserved_62_63:2;
  743. uint64_t q1_a_f:1;
  744. uint64_t q1_s_e:1;
  745. uint64_t pdf_p_f:1;
  746. uint64_t pdf_p_e:1;
  747. uint64_t pcf_p_f:1;
  748. uint64_t pcf_p_e:1;
  749. uint64_t rdx_s_e:1;
  750. uint64_t rwx_s_e:1;
  751. uint64_t pnc_a_f:1;
  752. uint64_t pnc_s_e:1;
  753. uint64_t com_a_f:1;
  754. uint64_t com_s_e:1;
  755. uint64_t q3_a_f:1;
  756. uint64_t q3_s_e:1;
  757. uint64_t q2_a_f:1;
  758. uint64_t q2_s_e:1;
  759. uint64_t pcr_a_f:1;
  760. uint64_t pcr_s_e:1;
  761. uint64_t fcr_a_f:1;
  762. uint64_t fcr_s_e:1;
  763. uint64_t iobdma:1;
  764. uint64_t p_dperr:1;
  765. uint64_t win_rto:1;
  766. uint64_t i3_pperr:1;
  767. uint64_t i2_pperr:1;
  768. uint64_t i1_pperr:1;
  769. uint64_t i0_pperr:1;
  770. uint64_t p3_ptout:1;
  771. uint64_t p2_ptout:1;
  772. uint64_t p1_ptout:1;
  773. uint64_t p0_ptout:1;
  774. uint64_t p3_pperr:1;
  775. uint64_t p2_pperr:1;
  776. uint64_t p1_pperr:1;
  777. uint64_t p0_pperr:1;
  778. uint64_t g3_rtout:1;
  779. uint64_t g2_rtout:1;
  780. uint64_t g1_rtout:1;
  781. uint64_t g0_rtout:1;
  782. uint64_t p3_perr:1;
  783. uint64_t p2_perr:1;
  784. uint64_t p1_perr:1;
  785. uint64_t p0_perr:1;
  786. uint64_t p3_rtout:1;
  787. uint64_t p2_rtout:1;
  788. uint64_t p1_rtout:1;
  789. uint64_t p0_rtout:1;
  790. uint64_t i3_overf:1;
  791. uint64_t i2_overf:1;
  792. uint64_t i1_overf:1;
  793. uint64_t i0_overf:1;
  794. uint64_t i3_rtout:1;
  795. uint64_t i2_rtout:1;
  796. uint64_t i1_rtout:1;
  797. uint64_t i0_rtout:1;
  798. uint64_t po3_2sml:1;
  799. uint64_t po2_2sml:1;
  800. uint64_t po1_2sml:1;
  801. uint64_t po0_2sml:1;
  802. uint64_t pci_rsl:1;
  803. uint64_t rml_wto:1;
  804. uint64_t rml_rto:1;
  805. #else
  806. uint64_t rml_rto:1;
  807. uint64_t rml_wto:1;
  808. uint64_t pci_rsl:1;
  809. uint64_t po0_2sml:1;
  810. uint64_t po1_2sml:1;
  811. uint64_t po2_2sml:1;
  812. uint64_t po3_2sml:1;
  813. uint64_t i0_rtout:1;
  814. uint64_t i1_rtout:1;
  815. uint64_t i2_rtout:1;
  816. uint64_t i3_rtout:1;
  817. uint64_t i0_overf:1;
  818. uint64_t i1_overf:1;
  819. uint64_t i2_overf:1;
  820. uint64_t i3_overf:1;
  821. uint64_t p0_rtout:1;
  822. uint64_t p1_rtout:1;
  823. uint64_t p2_rtout:1;
  824. uint64_t p3_rtout:1;
  825. uint64_t p0_perr:1;
  826. uint64_t p1_perr:1;
  827. uint64_t p2_perr:1;
  828. uint64_t p3_perr:1;
  829. uint64_t g0_rtout:1;
  830. uint64_t g1_rtout:1;
  831. uint64_t g2_rtout:1;
  832. uint64_t g3_rtout:1;
  833. uint64_t p0_pperr:1;
  834. uint64_t p1_pperr:1;
  835. uint64_t p2_pperr:1;
  836. uint64_t p3_pperr:1;
  837. uint64_t p0_ptout:1;
  838. uint64_t p1_ptout:1;
  839. uint64_t p2_ptout:1;
  840. uint64_t p3_ptout:1;
  841. uint64_t i0_pperr:1;
  842. uint64_t i1_pperr:1;
  843. uint64_t i2_pperr:1;
  844. uint64_t i3_pperr:1;
  845. uint64_t win_rto:1;
  846. uint64_t p_dperr:1;
  847. uint64_t iobdma:1;
  848. uint64_t fcr_s_e:1;
  849. uint64_t fcr_a_f:1;
  850. uint64_t pcr_s_e:1;
  851. uint64_t pcr_a_f:1;
  852. uint64_t q2_s_e:1;
  853. uint64_t q2_a_f:1;
  854. uint64_t q3_s_e:1;
  855. uint64_t q3_a_f:1;
  856. uint64_t com_s_e:1;
  857. uint64_t com_a_f:1;
  858. uint64_t pnc_s_e:1;
  859. uint64_t pnc_a_f:1;
  860. uint64_t rwx_s_e:1;
  861. uint64_t rdx_s_e:1;
  862. uint64_t pcf_p_e:1;
  863. uint64_t pcf_p_f:1;
  864. uint64_t pdf_p_e:1;
  865. uint64_t pdf_p_f:1;
  866. uint64_t q1_s_e:1;
  867. uint64_t q1_a_f:1;
  868. uint64_t reserved_62_63:2;
  869. #endif
  870. } s;
  871. struct cvmx_npi_int_enb_cn30xx {
  872. #ifdef __BIG_ENDIAN_BITFIELD
  873. uint64_t reserved_62_63:2;
  874. uint64_t q1_a_f:1;
  875. uint64_t q1_s_e:1;
  876. uint64_t pdf_p_f:1;
  877. uint64_t pdf_p_e:1;
  878. uint64_t pcf_p_f:1;
  879. uint64_t pcf_p_e:1;
  880. uint64_t rdx_s_e:1;
  881. uint64_t rwx_s_e:1;
  882. uint64_t pnc_a_f:1;
  883. uint64_t pnc_s_e:1;
  884. uint64_t com_a_f:1;
  885. uint64_t com_s_e:1;
  886. uint64_t q3_a_f:1;
  887. uint64_t q3_s_e:1;
  888. uint64_t q2_a_f:1;
  889. uint64_t q2_s_e:1;
  890. uint64_t pcr_a_f:1;
  891. uint64_t pcr_s_e:1;
  892. uint64_t fcr_a_f:1;
  893. uint64_t fcr_s_e:1;
  894. uint64_t iobdma:1;
  895. uint64_t p_dperr:1;
  896. uint64_t win_rto:1;
  897. uint64_t reserved_36_38:3;
  898. uint64_t i0_pperr:1;
  899. uint64_t reserved_32_34:3;
  900. uint64_t p0_ptout:1;
  901. uint64_t reserved_28_30:3;
  902. uint64_t p0_pperr:1;
  903. uint64_t reserved_24_26:3;
  904. uint64_t g0_rtout:1;
  905. uint64_t reserved_20_22:3;
  906. uint64_t p0_perr:1;
  907. uint64_t reserved_16_18:3;
  908. uint64_t p0_rtout:1;
  909. uint64_t reserved_12_14:3;
  910. uint64_t i0_overf:1;
  911. uint64_t reserved_8_10:3;
  912. uint64_t i0_rtout:1;
  913. uint64_t reserved_4_6:3;
  914. uint64_t po0_2sml:1;
  915. uint64_t pci_rsl:1;
  916. uint64_t rml_wto:1;
  917. uint64_t rml_rto:1;
  918. #else
  919. uint64_t rml_rto:1;
  920. uint64_t rml_wto:1;
  921. uint64_t pci_rsl:1;
  922. uint64_t po0_2sml:1;
  923. uint64_t reserved_4_6:3;
  924. uint64_t i0_rtout:1;
  925. uint64_t reserved_8_10:3;
  926. uint64_t i0_overf:1;
  927. uint64_t reserved_12_14:3;
  928. uint64_t p0_rtout:1;
  929. uint64_t reserved_16_18:3;
  930. uint64_t p0_perr:1;
  931. uint64_t reserved_20_22:3;
  932. uint64_t g0_rtout:1;
  933. uint64_t reserved_24_26:3;
  934. uint64_t p0_pperr:1;
  935. uint64_t reserved_28_30:3;
  936. uint64_t p0_ptout:1;
  937. uint64_t reserved_32_34:3;
  938. uint64_t i0_pperr:1;
  939. uint64_t reserved_36_38:3;
  940. uint64_t win_rto:1;
  941. uint64_t p_dperr:1;
  942. uint64_t iobdma:1;
  943. uint64_t fcr_s_e:1;
  944. uint64_t fcr_a_f:1;
  945. uint64_t pcr_s_e:1;
  946. uint64_t pcr_a_f:1;
  947. uint64_t q2_s_e:1;
  948. uint64_t q2_a_f:1;
  949. uint64_t q3_s_e:1;
  950. uint64_t q3_a_f:1;
  951. uint64_t com_s_e:1;
  952. uint64_t com_a_f:1;
  953. uint64_t pnc_s_e:1;
  954. uint64_t pnc_a_f:1;
  955. uint64_t rwx_s_e:1;
  956. uint64_t rdx_s_e:1;
  957. uint64_t pcf_p_e:1;
  958. uint64_t pcf_p_f:1;
  959. uint64_t pdf_p_e:1;
  960. uint64_t pdf_p_f:1;
  961. uint64_t q1_s_e:1;
  962. uint64_t q1_a_f:1;
  963. uint64_t reserved_62_63:2;
  964. #endif
  965. } cn30xx;
  966. struct cvmx_npi_int_enb_cn31xx {
  967. #ifdef __BIG_ENDIAN_BITFIELD
  968. uint64_t reserved_62_63:2;
  969. uint64_t q1_a_f:1;
  970. uint64_t q1_s_e:1;
  971. uint64_t pdf_p_f:1;
  972. uint64_t pdf_p_e:1;
  973. uint64_t pcf_p_f:1;
  974. uint64_t pcf_p_e:1;
  975. uint64_t rdx_s_e:1;
  976. uint64_t rwx_s_e:1;
  977. uint64_t pnc_a_f:1;
  978. uint64_t pnc_s_e:1;
  979. uint64_t com_a_f:1;
  980. uint64_t com_s_e:1;
  981. uint64_t q3_a_f:1;
  982. uint64_t q3_s_e:1;
  983. uint64_t q2_a_f:1;
  984. uint64_t q2_s_e:1;
  985. uint64_t pcr_a_f:1;
  986. uint64_t pcr_s_e:1;
  987. uint64_t fcr_a_f:1;
  988. uint64_t fcr_s_e:1;
  989. uint64_t iobdma:1;
  990. uint64_t p_dperr:1;
  991. uint64_t win_rto:1;
  992. uint64_t reserved_37_38:2;
  993. uint64_t i1_pperr:1;
  994. uint64_t i0_pperr:1;
  995. uint64_t reserved_33_34:2;
  996. uint64_t p1_ptout:1;
  997. uint64_t p0_ptout:1;
  998. uint64_t reserved_29_30:2;
  999. uint64_t p1_pperr:1;
  1000. uint64_t p0_pperr:1;
  1001. uint64_t reserved_25_26:2;
  1002. uint64_t g1_rtout:1;
  1003. uint64_t g0_rtout:1;
  1004. uint64_t reserved_21_22:2;
  1005. uint64_t p1_perr:1;
  1006. uint64_t p0_perr:1;
  1007. uint64_t reserved_17_18:2;
  1008. uint64_t p1_rtout:1;
  1009. uint64_t p0_rtout:1;
  1010. uint64_t reserved_13_14:2;
  1011. uint64_t i1_overf:1;
  1012. uint64_t i0_overf:1;
  1013. uint64_t reserved_9_10:2;
  1014. uint64_t i1_rtout:1;
  1015. uint64_t i0_rtout:1;
  1016. uint64_t reserved_5_6:2;
  1017. uint64_t po1_2sml:1;
  1018. uint64_t po0_2sml:1;
  1019. uint64_t pci_rsl:1;
  1020. uint64_t rml_wto:1;
  1021. uint64_t rml_rto:1;
  1022. #else
  1023. uint64_t rml_rto:1;
  1024. uint64_t rml_wto:1;
  1025. uint64_t pci_rsl:1;
  1026. uint64_t po0_2sml:1;
  1027. uint64_t po1_2sml:1;
  1028. uint64_t reserved_5_6:2;
  1029. uint64_t i0_rtout:1;
  1030. uint64_t i1_rtout:1;
  1031. uint64_t reserved_9_10:2;
  1032. uint64_t i0_overf:1;
  1033. uint64_t i1_overf:1;
  1034. uint64_t reserved_13_14:2;
  1035. uint64_t p0_rtout:1;
  1036. uint64_t p1_rtout:1;
  1037. uint64_t reserved_17_18:2;
  1038. uint64_t p0_perr:1;
  1039. uint64_t p1_perr:1;
  1040. uint64_t reserved_21_22:2;
  1041. uint64_t g0_rtout:1;
  1042. uint64_t g1_rtout:1;
  1043. uint64_t reserved_25_26:2;
  1044. uint64_t p0_pperr:1;
  1045. uint64_t p1_pperr:1;
  1046. uint64_t reserved_29_30:2;
  1047. uint64_t p0_ptout:1;
  1048. uint64_t p1_ptout:1;
  1049. uint64_t reserved_33_34:2;
  1050. uint64_t i0_pperr:1;
  1051. uint64_t i1_pperr:1;
  1052. uint64_t reserved_37_38:2;
  1053. uint64_t win_rto:1;
  1054. uint64_t p_dperr:1;
  1055. uint64_t iobdma:1;
  1056. uint64_t fcr_s_e:1;
  1057. uint64_t fcr_a_f:1;
  1058. uint64_t pcr_s_e:1;
  1059. uint64_t pcr_a_f:1;
  1060. uint64_t q2_s_e:1;
  1061. uint64_t q2_a_f:1;
  1062. uint64_t q3_s_e:1;
  1063. uint64_t q3_a_f:1;
  1064. uint64_t com_s_e:1;
  1065. uint64_t com_a_f:1;
  1066. uint64_t pnc_s_e:1;
  1067. uint64_t pnc_a_f:1;
  1068. uint64_t rwx_s_e:1;
  1069. uint64_t rdx_s_e:1;
  1070. uint64_t pcf_p_e:1;
  1071. uint64_t pcf_p_f:1;
  1072. uint64_t pdf_p_e:1;
  1073. uint64_t pdf_p_f:1;
  1074. uint64_t q1_s_e:1;
  1075. uint64_t q1_a_f:1;
  1076. uint64_t reserved_62_63:2;
  1077. #endif
  1078. } cn31xx;
  1079. struct cvmx_npi_int_enb_s cn38xx;
  1080. struct cvmx_npi_int_enb_cn38xxp2 {
  1081. #ifdef __BIG_ENDIAN_BITFIELD
  1082. uint64_t reserved_42_63:22;
  1083. uint64_t iobdma:1;
  1084. uint64_t p_dperr:1;
  1085. uint64_t win_rto:1;
  1086. uint64_t i3_pperr:1;
  1087. uint64_t i2_pperr:1;
  1088. uint64_t i1_pperr:1;
  1089. uint64_t i0_pperr:1;
  1090. uint64_t p3_ptout:1;
  1091. uint64_t p2_ptout:1;
  1092. uint64_t p1_ptout:1;
  1093. uint64_t p0_ptout:1;
  1094. uint64_t p3_pperr:1;
  1095. uint64_t p2_pperr:1;
  1096. uint64_t p1_pperr:1;
  1097. uint64_t p0_pperr:1;
  1098. uint64_t g3_rtout:1;
  1099. uint64_t g2_rtout:1;
  1100. uint64_t g1_rtout:1;
  1101. uint64_t g0_rtout:1;
  1102. uint64_t p3_perr:1;
  1103. uint64_t p2_perr:1;
  1104. uint64_t p1_perr:1;
  1105. uint64_t p0_perr:1;
  1106. uint64_t p3_rtout:1;
  1107. uint64_t p2_rtout:1;
  1108. uint64_t p1_rtout:1;
  1109. uint64_t p0_rtout:1;
  1110. uint64_t i3_overf:1;
  1111. uint64_t i2_overf:1;
  1112. uint64_t i1_overf:1;
  1113. uint64_t i0_overf:1;
  1114. uint64_t i3_rtout:1;
  1115. uint64_t i2_rtout:1;
  1116. uint64_t i1_rtout:1;
  1117. uint64_t i0_rtout:1;
  1118. uint64_t po3_2sml:1;
  1119. uint64_t po2_2sml:1;
  1120. uint64_t po1_2sml:1;
  1121. uint64_t po0_2sml:1;
  1122. uint64_t pci_rsl:1;
  1123. uint64_t rml_wto:1;
  1124. uint64_t rml_rto:1;
  1125. #else
  1126. uint64_t rml_rto:1;
  1127. uint64_t rml_wto:1;
  1128. uint64_t pci_rsl:1;
  1129. uint64_t po0_2sml:1;
  1130. uint64_t po1_2sml:1;
  1131. uint64_t po2_2sml:1;
  1132. uint64_t po3_2sml:1;
  1133. uint64_t i0_rtout:1;
  1134. uint64_t i1_rtout:1;
  1135. uint64_t i2_rtout:1;
  1136. uint64_t i3_rtout:1;
  1137. uint64_t i0_overf:1;
  1138. uint64_t i1_overf:1;
  1139. uint64_t i2_overf:1;
  1140. uint64_t i3_overf:1;
  1141. uint64_t p0_rtout:1;
  1142. uint64_t p1_rtout:1;
  1143. uint64_t p2_rtout:1;
  1144. uint64_t p3_rtout:1;
  1145. uint64_t p0_perr:1;
  1146. uint64_t p1_perr:1;
  1147. uint64_t p2_perr:1;
  1148. uint64_t p3_perr:1;
  1149. uint64_t g0_rtout:1;
  1150. uint64_t g1_rtout:1;
  1151. uint64_t g2_rtout:1;
  1152. uint64_t g3_rtout:1;
  1153. uint64_t p0_pperr:1;
  1154. uint64_t p1_pperr:1;
  1155. uint64_t p2_pperr:1;
  1156. uint64_t p3_pperr:1;
  1157. uint64_t p0_ptout:1;
  1158. uint64_t p1_ptout:1;
  1159. uint64_t p2_ptout:1;
  1160. uint64_t p3_ptout:1;
  1161. uint64_t i0_pperr:1;
  1162. uint64_t i1_pperr:1;
  1163. uint64_t i2_pperr:1;
  1164. uint64_t i3_pperr:1;
  1165. uint64_t win_rto:1;
  1166. uint64_t p_dperr:1;
  1167. uint64_t iobdma:1;
  1168. uint64_t reserved_42_63:22;
  1169. #endif
  1170. } cn38xxp2;
  1171. struct cvmx_npi_int_enb_cn31xx cn50xx;
  1172. struct cvmx_npi_int_enb_s cn58xx;
  1173. struct cvmx_npi_int_enb_s cn58xxp1;
  1174. };
  1175. union cvmx_npi_int_sum {
  1176. uint64_t u64;
  1177. struct cvmx_npi_int_sum_s {
  1178. #ifdef __BIG_ENDIAN_BITFIELD
  1179. uint64_t reserved_62_63:2;
  1180. uint64_t q1_a_f:1;
  1181. uint64_t q1_s_e:1;
  1182. uint64_t pdf_p_f:1;
  1183. uint64_t pdf_p_e:1;
  1184. uint64_t pcf_p_f:1;
  1185. uint64_t pcf_p_e:1;
  1186. uint64_t rdx_s_e:1;
  1187. uint64_t rwx_s_e:1;
  1188. uint64_t pnc_a_f:1;
  1189. uint64_t pnc_s_e:1;
  1190. uint64_t com_a_f:1;
  1191. uint64_t com_s_e:1;
  1192. uint64_t q3_a_f:1;
  1193. uint64_t q3_s_e:1;
  1194. uint64_t q2_a_f:1;
  1195. uint64_t q2_s_e:1;
  1196. uint64_t pcr_a_f:1;
  1197. uint64_t pcr_s_e:1;
  1198. uint64_t fcr_a_f:1;
  1199. uint64_t fcr_s_e:1;
  1200. uint64_t iobdma:1;
  1201. uint64_t p_dperr:1;
  1202. uint64_t win_rto:1;
  1203. uint64_t i3_pperr:1;
  1204. uint64_t i2_pperr:1;
  1205. uint64_t i1_pperr:1;
  1206. uint64_t i0_pperr:1;
  1207. uint64_t p3_ptout:1;
  1208. uint64_t p2_ptout:1;
  1209. uint64_t p1_ptout:1;
  1210. uint64_t p0_ptout:1;
  1211. uint64_t p3_pperr:1;
  1212. uint64_t p2_pperr:1;
  1213. uint64_t p1_pperr:1;
  1214. uint64_t p0_pperr:1;
  1215. uint64_t g3_rtout:1;
  1216. uint64_t g2_rtout:1;
  1217. uint64_t g1_rtout:1;
  1218. uint64_t g0_rtout:1;
  1219. uint64_t p3_perr:1;
  1220. uint64_t p2_perr:1;
  1221. uint64_t p1_perr:1;
  1222. uint64_t p0_perr:1;
  1223. uint64_t p3_rtout:1;
  1224. uint64_t p2_rtout:1;
  1225. uint64_t p1_rtout:1;
  1226. uint64_t p0_rtout:1;
  1227. uint64_t i3_overf:1;
  1228. uint64_t i2_overf:1;
  1229. uint64_t i1_overf:1;
  1230. uint64_t i0_overf:1;
  1231. uint64_t i3_rtout:1;
  1232. uint64_t i2_rtout:1;
  1233. uint64_t i1_rtout:1;
  1234. uint64_t i0_rtout:1;
  1235. uint64_t po3_2sml:1;
  1236. uint64_t po2_2sml:1;
  1237. uint64_t po1_2sml:1;
  1238. uint64_t po0_2sml:1;
  1239. uint64_t pci_rsl:1;
  1240. uint64_t rml_wto:1;
  1241. uint64_t rml_rto:1;
  1242. #else
  1243. uint64_t rml_rto:1;
  1244. uint64_t rml_wto:1;
  1245. uint64_t pci_rsl:1;
  1246. uint64_t po0_2sml:1;
  1247. uint64_t po1_2sml:1;
  1248. uint64_t po2_2sml:1;
  1249. uint64_t po3_2sml:1;
  1250. uint64_t i0_rtout:1;
  1251. uint64_t i1_rtout:1;
  1252. uint64_t i2_rtout:1;
  1253. uint64_t i3_rtout:1;
  1254. uint64_t i0_overf:1;
  1255. uint64_t i1_overf:1;
  1256. uint64_t i2_overf:1;
  1257. uint64_t i3_overf:1;
  1258. uint64_t p0_rtout:1;
  1259. uint64_t p1_rtout:1;
  1260. uint64_t p2_rtout:1;
  1261. uint64_t p3_rtout:1;
  1262. uint64_t p0_perr:1;
  1263. uint64_t p1_perr:1;
  1264. uint64_t p2_perr:1;
  1265. uint64_t p3_perr:1;
  1266. uint64_t g0_rtout:1;
  1267. uint64_t g1_rtout:1;
  1268. uint64_t g2_rtout:1;
  1269. uint64_t g3_rtout:1;
  1270. uint64_t p0_pperr:1;
  1271. uint64_t p1_pperr:1;
  1272. uint64_t p2_pperr:1;
  1273. uint64_t p3_pperr:1;
  1274. uint64_t p0_ptout:1;
  1275. uint64_t p1_ptout:1;
  1276. uint64_t p2_ptout:1;
  1277. uint64_t p3_ptout:1;
  1278. uint64_t i0_pperr:1;
  1279. uint64_t i1_pperr:1;
  1280. uint64_t i2_pperr:1;
  1281. uint64_t i3_pperr:1;
  1282. uint64_t win_rto:1;
  1283. uint64_t p_dperr:1;
  1284. uint64_t iobdma:1;
  1285. uint64_t fcr_s_e:1;
  1286. uint64_t fcr_a_f:1;
  1287. uint64_t pcr_s_e:1;
  1288. uint64_t pcr_a_f:1;
  1289. uint64_t q2_s_e:1;
  1290. uint64_t q2_a_f:1;
  1291. uint64_t q3_s_e:1;
  1292. uint64_t q3_a_f:1;
  1293. uint64_t com_s_e:1;
  1294. uint64_t com_a_f:1;
  1295. uint64_t pnc_s_e:1;
  1296. uint64_t pnc_a_f:1;
  1297. uint64_t rwx_s_e:1;
  1298. uint64_t rdx_s_e:1;
  1299. uint64_t pcf_p_e:1;
  1300. uint64_t pcf_p_f:1;
  1301. uint64_t pdf_p_e:1;
  1302. uint64_t pdf_p_f:1;
  1303. uint64_t q1_s_e:1;
  1304. uint64_t q1_a_f:1;
  1305. uint64_t reserved_62_63:2;
  1306. #endif
  1307. } s;
  1308. struct cvmx_npi_int_sum_cn30xx {
  1309. #ifdef __BIG_ENDIAN_BITFIELD
  1310. uint64_t reserved_62_63:2;
  1311. uint64_t q1_a_f:1;
  1312. uint64_t q1_s_e:1;
  1313. uint64_t pdf_p_f:1;
  1314. uint64_t pdf_p_e:1;
  1315. uint64_t pcf_p_f:1;
  1316. uint64_t pcf_p_e:1;
  1317. uint64_t rdx_s_e:1;
  1318. uint64_t rwx_s_e:1;
  1319. uint64_t pnc_a_f:1;
  1320. uint64_t pnc_s_e:1;
  1321. uint64_t com_a_f:1;
  1322. uint64_t com_s_e:1;
  1323. uint64_t q3_a_f:1;
  1324. uint64_t q3_s_e:1;
  1325. uint64_t q2_a_f:1;
  1326. uint64_t q2_s_e:1;
  1327. uint64_t pcr_a_f:1;
  1328. uint64_t pcr_s_e:1;
  1329. uint64_t fcr_a_f:1;
  1330. uint64_t fcr_s_e:1;
  1331. uint64_t iobdma:1;
  1332. uint64_t p_dperr:1;
  1333. uint64_t win_rto:1;
  1334. uint64_t reserved_36_38:3;
  1335. uint64_t i0_pperr:1;
  1336. uint64_t reserved_32_34:3;
  1337. uint64_t p0_ptout:1;
  1338. uint64_t reserved_28_30:3;
  1339. uint64_t p0_pperr:1;
  1340. uint64_t reserved_24_26:3;
  1341. uint64_t g0_rtout:1;
  1342. uint64_t reserved_20_22:3;
  1343. uint64_t p0_perr:1;
  1344. uint64_t reserved_16_18:3;
  1345. uint64_t p0_rtout:1;
  1346. uint64_t reserved_12_14:3;
  1347. uint64_t i0_overf:1;
  1348. uint64_t reserved_8_10:3;
  1349. uint64_t i0_rtout:1;
  1350. uint64_t reserved_4_6:3;
  1351. uint64_t po0_2sml:1;
  1352. uint64_t pci_rsl:1;
  1353. uint64_t rml_wto:1;
  1354. uint64_t rml_rto:1;
  1355. #else
  1356. uint64_t rml_rto:1;
  1357. uint64_t rml_wto:1;
  1358. uint64_t pci_rsl:1;
  1359. uint64_t po0_2sml:1;
  1360. uint64_t reserved_4_6:3;
  1361. uint64_t i0_rtout:1;
  1362. uint64_t reserved_8_10:3;
  1363. uint64_t i0_overf:1;
  1364. uint64_t reserved_12_14:3;
  1365. uint64_t p0_rtout:1;
  1366. uint64_t reserved_16_18:3;
  1367. uint64_t p0_perr:1;
  1368. uint64_t reserved_20_22:3;
  1369. uint64_t g0_rtout:1;
  1370. uint64_t reserved_24_26:3;
  1371. uint64_t p0_pperr:1;
  1372. uint64_t reserved_28_30:3;
  1373. uint64_t p0_ptout:1;
  1374. uint64_t reserved_32_34:3;
  1375. uint64_t i0_pperr:1;
  1376. uint64_t reserved_36_38:3;
  1377. uint64_t win_rto:1;
  1378. uint64_t p_dperr:1;
  1379. uint64_t iobdma:1;
  1380. uint64_t fcr_s_e:1;
  1381. uint64_t fcr_a_f:1;
  1382. uint64_t pcr_s_e:1;
  1383. uint64_t pcr_a_f:1;
  1384. uint64_t q2_s_e:1;
  1385. uint64_t q2_a_f:1;
  1386. uint64_t q3_s_e:1;
  1387. uint64_t q3_a_f:1;
  1388. uint64_t com_s_e:1;
  1389. uint64_t com_a_f:1;
  1390. uint64_t pnc_s_e:1;
  1391. uint64_t pnc_a_f:1;
  1392. uint64_t rwx_s_e:1;
  1393. uint64_t rdx_s_e:1;
  1394. uint64_t pcf_p_e:1;
  1395. uint64_t pcf_p_f:1;
  1396. uint64_t pdf_p_e:1;
  1397. uint64_t pdf_p_f:1;
  1398. uint64_t q1_s_e:1;
  1399. uint64_t q1_a_f:1;
  1400. uint64_t reserved_62_63:2;
  1401. #endif
  1402. } cn30xx;
  1403. struct cvmx_npi_int_sum_cn31xx {
  1404. #ifdef __BIG_ENDIAN_BITFIELD
  1405. uint64_t reserved_62_63:2;
  1406. uint64_t q1_a_f:1;
  1407. uint64_t q1_s_e:1;
  1408. uint64_t pdf_p_f:1;
  1409. uint64_t pdf_p_e:1;
  1410. uint64_t pcf_p_f:1;
  1411. uint64_t pcf_p_e:1;
  1412. uint64_t rdx_s_e:1;
  1413. uint64_t rwx_s_e:1;
  1414. uint64_t pnc_a_f:1;
  1415. uint64_t pnc_s_e:1;
  1416. uint64_t com_a_f:1;
  1417. uint64_t com_s_e:1;
  1418. uint64_t q3_a_f:1;
  1419. uint64_t q3_s_e:1;
  1420. uint64_t q2_a_f:1;
  1421. uint64_t q2_s_e:1;
  1422. uint64_t pcr_a_f:1;
  1423. uint64_t pcr_s_e:1;
  1424. uint64_t fcr_a_f:1;
  1425. uint64_t fcr_s_e:1;
  1426. uint64_t iobdma:1;
  1427. uint64_t p_dperr:1;
  1428. uint64_t win_rto:1;
  1429. uint64_t reserved_37_38:2;
  1430. uint64_t i1_pperr:1;
  1431. uint64_t i0_pperr:1;
  1432. uint64_t reserved_33_34:2;
  1433. uint64_t p1_ptout:1;
  1434. uint64_t p0_ptout:1;
  1435. uint64_t reserved_29_30:2;
  1436. uint64_t p1_pperr:1;
  1437. uint64_t p0_pperr:1;
  1438. uint64_t reserved_25_26:2;
  1439. uint64_t g1_rtout:1;
  1440. uint64_t g0_rtout:1;
  1441. uint64_t reserved_21_22:2;
  1442. uint64_t p1_perr:1;
  1443. uint64_t p0_perr:1;
  1444. uint64_t reserved_17_18:2;
  1445. uint64_t p1_rtout:1;
  1446. uint64_t p0_rtout:1;
  1447. uint64_t reserved_13_14:2;
  1448. uint64_t i1_overf:1;
  1449. uint64_t i0_overf:1;
  1450. uint64_t reserved_9_10:2;
  1451. uint64_t i1_rtout:1;
  1452. uint64_t i0_rtout:1;
  1453. uint64_t reserved_5_6:2;
  1454. uint64_t po1_2sml:1;
  1455. uint64_t po0_2sml:1;
  1456. uint64_t pci_rsl:1;
  1457. uint64_t rml_wto:1;
  1458. uint64_t rml_rto:1;
  1459. #else
  1460. uint64_t rml_rto:1;
  1461. uint64_t rml_wto:1;
  1462. uint64_t pci_rsl:1;
  1463. uint64_t po0_2sml:1;
  1464. uint64_t po1_2sml:1;
  1465. uint64_t reserved_5_6:2;
  1466. uint64_t i0_rtout:1;
  1467. uint64_t i1_rtout:1;
  1468. uint64_t reserved_9_10:2;
  1469. uint64_t i0_overf:1;
  1470. uint64_t i1_overf:1;
  1471. uint64_t reserved_13_14:2;
  1472. uint64_t p0_rtout:1;
  1473. uint64_t p1_rtout:1;
  1474. uint64_t reserved_17_18:2;
  1475. uint64_t p0_perr:1;
  1476. uint64_t p1_perr:1;
  1477. uint64_t reserved_21_22:2;
  1478. uint64_t g0_rtout:1;
  1479. uint64_t g1_rtout:1;
  1480. uint64_t reserved_25_26:2;
  1481. uint64_t p0_pperr:1;
  1482. uint64_t p1_pperr:1;
  1483. uint64_t reserved_29_30:2;
  1484. uint64_t p0_ptout:1;
  1485. uint64_t p1_ptout:1;
  1486. uint64_t reserved_33_34:2;
  1487. uint64_t i0_pperr:1;
  1488. uint64_t i1_pperr:1;
  1489. uint64_t reserved_37_38:2;
  1490. uint64_t win_rto:1;
  1491. uint64_t p_dperr:1;
  1492. uint64_t iobdma:1;
  1493. uint64_t fcr_s_e:1;
  1494. uint64_t fcr_a_f:1;
  1495. uint64_t pcr_s_e:1;
  1496. uint64_t pcr_a_f:1;
  1497. uint64_t q2_s_e:1;
  1498. uint64_t q2_a_f:1;
  1499. uint64_t q3_s_e:1;
  1500. uint64_t q3_a_f:1;
  1501. uint64_t com_s_e:1;
  1502. uint64_t com_a_f:1;
  1503. uint64_t pnc_s_e:1;
  1504. uint64_t pnc_a_f:1;
  1505. uint64_t rwx_s_e:1;
  1506. uint64_t rdx_s_e:1;
  1507. uint64_t pcf_p_e:1;
  1508. uint64_t pcf_p_f:1;
  1509. uint64_t pdf_p_e:1;
  1510. uint64_t pdf_p_f:1;
  1511. uint64_t q1_s_e:1;
  1512. uint64_t q1_a_f:1;
  1513. uint64_t reserved_62_63:2;
  1514. #endif
  1515. } cn31xx;
  1516. struct cvmx_npi_int_sum_s cn38xx;
  1517. struct cvmx_npi_int_sum_cn38xxp2 {
  1518. #ifdef __BIG_ENDIAN_BITFIELD
  1519. uint64_t reserved_42_63:22;
  1520. uint64_t iobdma:1;
  1521. uint64_t p_dperr:1;
  1522. uint64_t win_rto:1;
  1523. uint64_t i3_pperr:1;
  1524. uint64_t i2_pperr:1;
  1525. uint64_t i1_pperr:1;
  1526. uint64_t i0_pperr:1;
  1527. uint64_t p3_ptout:1;
  1528. uint64_t p2_ptout:1;
  1529. uint64_t p1_ptout:1;
  1530. uint64_t p0_ptout:1;
  1531. uint64_t p3_pperr:1;
  1532. uint64_t p2_pperr:1;
  1533. uint64_t p1_pperr:1;
  1534. uint64_t p0_pperr:1;
  1535. uint64_t g3_rtout:1;
  1536. uint64_t g2_rtout:1;
  1537. uint64_t g1_rtout:1;
  1538. uint64_t g0_rtout:1;
  1539. uint64_t p3_perr:1;
  1540. uint64_t p2_perr:1;
  1541. uint64_t p1_perr:1;
  1542. uint64_t p0_perr:1;
  1543. uint64_t p3_rtout:1;
  1544. uint64_t p2_rtout:1;
  1545. uint64_t p1_rtout:1;
  1546. uint64_t p0_rtout:1;
  1547. uint64_t i3_overf:1;
  1548. uint64_t i2_overf:1;
  1549. uint64_t i1_overf:1;
  1550. uint64_t i0_overf:1;
  1551. uint64_t i3_rtout:1;
  1552. uint64_t i2_rtout:1;
  1553. uint64_t i1_rtout:1;
  1554. uint64_t i0_rtout:1;
  1555. uint64_t po3_2sml:1;
  1556. uint64_t po2_2sml:1;
  1557. uint64_t po1_2sml:1;
  1558. uint64_t po0_2sml:1;
  1559. uint64_t pci_rsl:1;
  1560. uint64_t rml_wto:1;
  1561. uint64_t rml_rto:1;
  1562. #else
  1563. uint64_t rml_rto:1;
  1564. uint64_t rml_wto:1;
  1565. uint64_t pci_rsl:1;
  1566. uint64_t po0_2sml:1;
  1567. uint64_t po1_2sml:1;
  1568. uint64_t po2_2sml:1;
  1569. uint64_t po3_2sml:1;
  1570. uint64_t i0_rtout:1;
  1571. uint64_t i1_rtout:1;
  1572. uint64_t i2_rtout:1;
  1573. uint64_t i3_rtout:1;
  1574. uint64_t i0_overf:1;
  1575. uint64_t i1_overf:1;
  1576. uint64_t i2_overf:1;
  1577. uint64_t i3_overf:1;
  1578. uint64_t p0_rtout:1;
  1579. uint64_t p1_rtout:1;
  1580. uint64_t p2_rtout:1;
  1581. uint64_t p3_rtout:1;
  1582. uint64_t p0_perr:1;
  1583. uint64_t p1_perr:1;
  1584. uint64_t p2_perr:1;
  1585. uint64_t p3_perr:1;
  1586. uint64_t g0_rtout:1;
  1587. uint64_t g1_rtout:1;
  1588. uint64_t g2_rtout:1;
  1589. uint64_t g3_rtout:1;
  1590. uint64_t p0_pperr:1;
  1591. uint64_t p1_pperr:1;
  1592. uint64_t p2_pperr:1;
  1593. uint64_t p3_pperr:1;
  1594. uint64_t p0_ptout:1;
  1595. uint64_t p1_ptout:1;
  1596. uint64_t p2_ptout:1;
  1597. uint64_t p3_ptout:1;
  1598. uint64_t i0_pperr:1;
  1599. uint64_t i1_pperr:1;
  1600. uint64_t i2_pperr:1;
  1601. uint64_t i3_pperr:1;
  1602. uint64_t win_rto:1;
  1603. uint64_t p_dperr:1;
  1604. uint64_t iobdma:1;
  1605. uint64_t reserved_42_63:22;
  1606. #endif
  1607. } cn38xxp2;
  1608. struct cvmx_npi_int_sum_cn31xx cn50xx;
  1609. struct cvmx_npi_int_sum_s cn58xx;
  1610. struct cvmx_npi_int_sum_s cn58xxp1;
  1611. };
  1612. union cvmx_npi_lowp_dbell {
  1613. uint64_t u64;
  1614. struct cvmx_npi_lowp_dbell_s {
  1615. #ifdef __BIG_ENDIAN_BITFIELD
  1616. uint64_t reserved_16_63:48;
  1617. uint64_t dbell:16;
  1618. #else
  1619. uint64_t dbell:16;
  1620. uint64_t reserved_16_63:48;
  1621. #endif
  1622. } s;
  1623. struct cvmx_npi_lowp_dbell_s cn30xx;
  1624. struct cvmx_npi_lowp_dbell_s cn31xx;
  1625. struct cvmx_npi_lowp_dbell_s cn38xx;
  1626. struct cvmx_npi_lowp_dbell_s cn38xxp2;
  1627. struct cvmx_npi_lowp_dbell_s cn50xx;
  1628. struct cvmx_npi_lowp_dbell_s cn58xx;
  1629. struct cvmx_npi_lowp_dbell_s cn58xxp1;
  1630. };
  1631. union cvmx_npi_lowp_ibuff_saddr {
  1632. uint64_t u64;
  1633. struct cvmx_npi_lowp_ibuff_saddr_s {
  1634. #ifdef __BIG_ENDIAN_BITFIELD
  1635. uint64_t reserved_36_63:28;
  1636. uint64_t saddr:36;
  1637. #else
  1638. uint64_t saddr:36;
  1639. uint64_t reserved_36_63:28;
  1640. #endif
  1641. } s;
  1642. struct cvmx_npi_lowp_ibuff_saddr_s cn30xx;
  1643. struct cvmx_npi_lowp_ibuff_saddr_s cn31xx;
  1644. struct cvmx_npi_lowp_ibuff_saddr_s cn38xx;
  1645. struct cvmx_npi_lowp_ibuff_saddr_s cn38xxp2;
  1646. struct cvmx_npi_lowp_ibuff_saddr_s cn50xx;
  1647. struct cvmx_npi_lowp_ibuff_saddr_s cn58xx;
  1648. struct cvmx_npi_lowp_ibuff_saddr_s cn58xxp1;
  1649. };
  1650. union cvmx_npi_mem_access_subidx {
  1651. uint64_t u64;
  1652. struct cvmx_npi_mem_access_subidx_s {
  1653. #ifdef __BIG_ENDIAN_BITFIELD
  1654. uint64_t reserved_38_63:26;
  1655. uint64_t shortl:1;
  1656. uint64_t nmerge:1;
  1657. uint64_t esr:2;
  1658. uint64_t esw:2;
  1659. uint64_t nsr:1;
  1660. uint64_t nsw:1;
  1661. uint64_t ror:1;
  1662. uint64_t row:1;
  1663. uint64_t ba:28;
  1664. #else
  1665. uint64_t ba:28;
  1666. uint64_t row:1;
  1667. uint64_t ror:1;
  1668. uint64_t nsw:1;
  1669. uint64_t nsr:1;
  1670. uint64_t esw:2;
  1671. uint64_t esr:2;
  1672. uint64_t nmerge:1;
  1673. uint64_t shortl:1;
  1674. uint64_t reserved_38_63:26;
  1675. #endif
  1676. } s;
  1677. struct cvmx_npi_mem_access_subidx_s cn30xx;
  1678. struct cvmx_npi_mem_access_subidx_cn31xx {
  1679. #ifdef __BIG_ENDIAN_BITFIELD
  1680. uint64_t reserved_36_63:28;
  1681. uint64_t esr:2;
  1682. uint64_t esw:2;
  1683. uint64_t nsr:1;
  1684. uint64_t nsw:1;
  1685. uint64_t ror:1;
  1686. uint64_t row:1;
  1687. uint64_t ba:28;
  1688. #else
  1689. uint64_t ba:28;
  1690. uint64_t row:1;
  1691. uint64_t ror:1;
  1692. uint64_t nsw:1;
  1693. uint64_t nsr:1;
  1694. uint64_t esw:2;
  1695. uint64_t esr:2;
  1696. uint64_t reserved_36_63:28;
  1697. #endif
  1698. } cn31xx;
  1699. struct cvmx_npi_mem_access_subidx_s cn38xx;
  1700. struct cvmx_npi_mem_access_subidx_cn31xx cn38xxp2;
  1701. struct cvmx_npi_mem_access_subidx_s cn50xx;
  1702. struct cvmx_npi_mem_access_subidx_s cn58xx;
  1703. struct cvmx_npi_mem_access_subidx_s cn58xxp1;
  1704. };
  1705. union cvmx_npi_msi_rcv {
  1706. uint64_t u64;
  1707. struct cvmx_npi_msi_rcv_s {
  1708. #ifdef __BIG_ENDIAN_BITFIELD
  1709. uint64_t int_vec:64;
  1710. #else
  1711. uint64_t int_vec:64;
  1712. #endif
  1713. } s;
  1714. struct cvmx_npi_msi_rcv_s cn30xx;
  1715. struct cvmx_npi_msi_rcv_s cn31xx;
  1716. struct cvmx_npi_msi_rcv_s cn38xx;
  1717. struct cvmx_npi_msi_rcv_s cn38xxp2;
  1718. struct cvmx_npi_msi_rcv_s cn50xx;
  1719. struct cvmx_npi_msi_rcv_s cn58xx;
  1720. struct cvmx_npi_msi_rcv_s cn58xxp1;
  1721. };
  1722. union cvmx_npi_num_desc_outputx {
  1723. uint64_t u64;
  1724. struct cvmx_npi_num_desc_outputx_s {
  1725. #ifdef __BIG_ENDIAN_BITFIELD
  1726. uint64_t reserved_32_63:32;
  1727. uint64_t size:32;
  1728. #else
  1729. uint64_t size:32;
  1730. uint64_t reserved_32_63:32;
  1731. #endif
  1732. } s;
  1733. struct cvmx_npi_num_desc_outputx_s cn30xx;
  1734. struct cvmx_npi_num_desc_outputx_s cn31xx;
  1735. struct cvmx_npi_num_desc_outputx_s cn38xx;
  1736. struct cvmx_npi_num_desc_outputx_s cn38xxp2;
  1737. struct cvmx_npi_num_desc_outputx_s cn50xx;
  1738. struct cvmx_npi_num_desc_outputx_s cn58xx;
  1739. struct cvmx_npi_num_desc_outputx_s cn58xxp1;
  1740. };
  1741. union cvmx_npi_output_control {
  1742. uint64_t u64;
  1743. struct cvmx_npi_output_control_s {
  1744. #ifdef __BIG_ENDIAN_BITFIELD
  1745. uint64_t reserved_49_63:15;
  1746. uint64_t pkt_rr:1;
  1747. uint64_t p3_bmode:1;
  1748. uint64_t p2_bmode:1;
  1749. uint64_t p1_bmode:1;
  1750. uint64_t p0_bmode:1;
  1751. uint64_t o3_es:2;
  1752. uint64_t o3_ns:1;
  1753. uint64_t o3_ro:1;
  1754. uint64_t o2_es:2;
  1755. uint64_t o2_ns:1;
  1756. uint64_t o2_ro:1;
  1757. uint64_t o1_es:2;
  1758. uint64_t o1_ns:1;
  1759. uint64_t o1_ro:1;
  1760. uint64_t o0_es:2;
  1761. uint64_t o0_ns:1;
  1762. uint64_t o0_ro:1;
  1763. uint64_t o3_csrm:1;
  1764. uint64_t o2_csrm:1;
  1765. uint64_t o1_csrm:1;
  1766. uint64_t o0_csrm:1;
  1767. uint64_t reserved_20_23:4;
  1768. uint64_t iptr_o3:1;
  1769. uint64_t iptr_o2:1;
  1770. uint64_t iptr_o1:1;
  1771. uint64_t iptr_o0:1;
  1772. uint64_t esr_sl3:2;
  1773. uint64_t nsr_sl3:1;
  1774. uint64_t ror_sl3:1;
  1775. uint64_t esr_sl2:2;
  1776. uint64_t nsr_sl2:1;
  1777. uint64_t ror_sl2:1;
  1778. uint64_t esr_sl1:2;
  1779. uint64_t nsr_sl1:1;
  1780. uint64_t ror_sl1:1;
  1781. uint64_t esr_sl0:2;
  1782. uint64_t nsr_sl0:1;
  1783. uint64_t ror_sl0:1;
  1784. #else
  1785. uint64_t ror_sl0:1;
  1786. uint64_t nsr_sl0:1;
  1787. uint64_t esr_sl0:2;
  1788. uint64_t ror_sl1:1;
  1789. uint64_t nsr_sl1:1;
  1790. uint64_t esr_sl1:2;
  1791. uint64_t ror_sl2:1;
  1792. uint64_t nsr_sl2:1;
  1793. uint64_t esr_sl2:2;
  1794. uint64_t ror_sl3:1;
  1795. uint64_t nsr_sl3:1;
  1796. uint64_t esr_sl3:2;
  1797. uint64_t iptr_o0:1;
  1798. uint64_t iptr_o1:1;
  1799. uint64_t iptr_o2:1;
  1800. uint64_t iptr_o3:1;
  1801. uint64_t reserved_20_23:4;
  1802. uint64_t o0_csrm:1;
  1803. uint64_t o1_csrm:1;
  1804. uint64_t o2_csrm:1;
  1805. uint64_t o3_csrm:1;
  1806. uint64_t o0_ro:1;
  1807. uint64_t o0_ns:1;
  1808. uint64_t o0_es:2;
  1809. uint64_t o1_ro:1;
  1810. uint64_t o1_ns:1;
  1811. uint64_t o1_es:2;
  1812. uint64_t o2_ro:1;
  1813. uint64_t o2_ns:1;
  1814. uint64_t o2_es:2;
  1815. uint64_t o3_ro:1;
  1816. uint64_t o3_ns:1;
  1817. uint64_t o3_es:2;
  1818. uint64_t p0_bmode:1;
  1819. uint64_t p1_bmode:1;
  1820. uint64_t p2_bmode:1;
  1821. uint64_t p3_bmode:1;
  1822. uint64_t pkt_rr:1;
  1823. uint64_t reserved_49_63:15;
  1824. #endif
  1825. } s;
  1826. struct cvmx_npi_output_control_cn30xx {
  1827. #ifdef __BIG_ENDIAN_BITFIELD
  1828. uint64_t reserved_45_63:19;
  1829. uint64_t p0_bmode:1;
  1830. uint64_t reserved_32_43:12;
  1831. uint64_t o0_es:2;
  1832. uint64_t o0_ns:1;
  1833. uint64_t o0_ro:1;
  1834. uint64_t reserved_25_27:3;
  1835. uint64_t o0_csrm:1;
  1836. uint64_t reserved_17_23:7;
  1837. uint64_t iptr_o0:1;
  1838. uint64_t reserved_4_15:12;
  1839. uint64_t esr_sl0:2;
  1840. uint64_t nsr_sl0:1;
  1841. uint64_t ror_sl0:1;
  1842. #else
  1843. uint64_t ror_sl0:1;
  1844. uint64_t nsr_sl0:1;
  1845. uint64_t esr_sl0:2;
  1846. uint64_t reserved_4_15:12;
  1847. uint64_t iptr_o0:1;
  1848. uint64_t reserved_17_23:7;
  1849. uint64_t o0_csrm:1;
  1850. uint64_t reserved_25_27:3;
  1851. uint64_t o0_ro:1;
  1852. uint64_t o0_ns:1;
  1853. uint64_t o0_es:2;
  1854. uint64_t reserved_32_43:12;
  1855. uint64_t p0_bmode:1;
  1856. uint64_t reserved_45_63:19;
  1857. #endif
  1858. } cn30xx;
  1859. struct cvmx_npi_output_control_cn31xx {
  1860. #ifdef __BIG_ENDIAN_BITFIELD
  1861. uint64_t reserved_46_63:18;
  1862. uint64_t p1_bmode:1;
  1863. uint64_t p0_bmode:1;
  1864. uint64_t reserved_36_43:8;
  1865. uint64_t o1_es:2;
  1866. uint64_t o1_ns:1;
  1867. uint64_t o1_ro:1;
  1868. uint64_t o0_es:2;
  1869. uint64_t o0_ns:1;
  1870. uint64_t o0_ro:1;
  1871. uint64_t reserved_26_27:2;
  1872. uint64_t o1_csrm:1;
  1873. uint64_t o0_csrm:1;
  1874. uint64_t reserved_18_23:6;
  1875. uint64_t iptr_o1:1;
  1876. uint64_t iptr_o0:1;
  1877. uint64_t reserved_8_15:8;
  1878. uint64_t esr_sl1:2;
  1879. uint64_t nsr_sl1:1;
  1880. uint64_t ror_sl1:1;
  1881. uint64_t esr_sl0:2;
  1882. uint64_t nsr_sl0:1;
  1883. uint64_t ror_sl0:1;
  1884. #else
  1885. uint64_t ror_sl0:1;
  1886. uint64_t nsr_sl0:1;
  1887. uint64_t esr_sl0:2;
  1888. uint64_t ror_sl1:1;
  1889. uint64_t nsr_sl1:1;
  1890. uint64_t esr_sl1:2;
  1891. uint64_t reserved_8_15:8;
  1892. uint64_t iptr_o0:1;
  1893. uint64_t iptr_o1:1;
  1894. uint64_t reserved_18_23:6;
  1895. uint64_t o0_csrm:1;
  1896. uint64_t o1_csrm:1;
  1897. uint64_t reserved_26_27:2;
  1898. uint64_t o0_ro:1;
  1899. uint64_t o0_ns:1;
  1900. uint64_t o0_es:2;
  1901. uint64_t o1_ro:1;
  1902. uint64_t o1_ns:1;
  1903. uint64_t o1_es:2;
  1904. uint64_t reserved_36_43:8;
  1905. uint64_t p0_bmode:1;
  1906. uint64_t p1_bmode:1;
  1907. uint64_t reserved_46_63:18;
  1908. #endif
  1909. } cn31xx;
  1910. struct cvmx_npi_output_control_s cn38xx;
  1911. struct cvmx_npi_output_control_cn38xxp2 {
  1912. #ifdef __BIG_ENDIAN_BITFIELD
  1913. uint64_t reserved_48_63:16;
  1914. uint64_t p3_bmode:1;
  1915. uint64_t p2_bmode:1;
  1916. uint64_t p1_bmode:1;
  1917. uint64_t p0_bmode:1;
  1918. uint64_t o3_es:2;
  1919. uint64_t o3_ns:1;
  1920. uint64_t o3_ro:1;
  1921. uint64_t o2_es:2;
  1922. uint64_t o2_ns:1;
  1923. uint64_t o2_ro:1;
  1924. uint64_t o1_es:2;
  1925. uint64_t o1_ns:1;
  1926. uint64_t o1_ro:1;
  1927. uint64_t o0_es:2;
  1928. uint64_t o0_ns:1;
  1929. uint64_t o0_ro:1;
  1930. uint64_t o3_csrm:1;
  1931. uint64_t o2_csrm:1;
  1932. uint64_t o1_csrm:1;
  1933. uint64_t o0_csrm:1;
  1934. uint64_t reserved_20_23:4;
  1935. uint64_t iptr_o3:1;
  1936. uint64_t iptr_o2:1;
  1937. uint64_t iptr_o1:1;
  1938. uint64_t iptr_o0:1;
  1939. uint64_t esr_sl3:2;
  1940. uint64_t nsr_sl3:1;
  1941. uint64_t ror_sl3:1;
  1942. uint64_t esr_sl2:2;
  1943. uint64_t nsr_sl2:1;
  1944. uint64_t ror_sl2:1;
  1945. uint64_t esr_sl1:2;
  1946. uint64_t nsr_sl1:1;
  1947. uint64_t ror_sl1:1;
  1948. uint64_t esr_sl0:2;
  1949. uint64_t nsr_sl0:1;
  1950. uint64_t ror_sl0:1;
  1951. #else
  1952. uint64_t ror_sl0:1;
  1953. uint64_t nsr_sl0:1;
  1954. uint64_t esr_sl0:2;
  1955. uint64_t ror_sl1:1;
  1956. uint64_t nsr_sl1:1;
  1957. uint64_t esr_sl1:2;
  1958. uint64_t ror_sl2:1;
  1959. uint64_t nsr_sl2:1;
  1960. uint64_t esr_sl2:2;
  1961. uint64_t ror_sl3:1;
  1962. uint64_t nsr_sl3:1;
  1963. uint64_t esr_sl3:2;
  1964. uint64_t iptr_o0:1;
  1965. uint64_t iptr_o1:1;
  1966. uint64_t iptr_o2:1;
  1967. uint64_t iptr_o3:1;
  1968. uint64_t reserved_20_23:4;
  1969. uint64_t o0_csrm:1;
  1970. uint64_t o1_csrm:1;
  1971. uint64_t o2_csrm:1;
  1972. uint64_t o3_csrm:1;
  1973. uint64_t o0_ro:1;
  1974. uint64_t o0_ns:1;
  1975. uint64_t o0_es:2;
  1976. uint64_t o1_ro:1;
  1977. uint64_t o1_ns:1;
  1978. uint64_t o1_es:2;
  1979. uint64_t o2_ro:1;
  1980. uint64_t o2_ns:1;
  1981. uint64_t o2_es:2;
  1982. uint64_t o3_ro:1;
  1983. uint64_t o3_ns:1;
  1984. uint64_t o3_es:2;
  1985. uint64_t p0_bmode:1;
  1986. uint64_t p1_bmode:1;
  1987. uint64_t p2_bmode:1;
  1988. uint64_t p3_bmode:1;
  1989. uint64_t reserved_48_63:16;
  1990. #endif
  1991. } cn38xxp2;
  1992. struct cvmx_npi_output_control_cn50xx {
  1993. #ifdef __BIG_ENDIAN_BITFIELD
  1994. uint64_t reserved_49_63:15;
  1995. uint64_t pkt_rr:1;
  1996. uint64_t reserved_46_47:2;
  1997. uint64_t p1_bmode:1;
  1998. uint64_t p0_bmode:1;
  1999. uint64_t reserved_36_43:8;
  2000. uint64_t o1_es:2;
  2001. uint64_t o1_ns:1;
  2002. uint64_t o1_ro:1;
  2003. uint64_t o0_es:2;
  2004. uint64_t o0_ns:1;
  2005. uint64_t o0_ro:1;
  2006. uint64_t reserved_26_27:2;
  2007. uint64_t o1_csrm:1;
  2008. uint64_t o0_csrm:1;
  2009. uint64_t reserved_18_23:6;
  2010. uint64_t iptr_o1:1;
  2011. uint64_t iptr_o0:1;
  2012. uint64_t reserved_8_15:8;
  2013. uint64_t esr_sl1:2;
  2014. uint64_t nsr_sl1:1;
  2015. uint64_t ror_sl1:1;
  2016. uint64_t esr_sl0:2;
  2017. uint64_t nsr_sl0:1;
  2018. uint64_t ror_sl0:1;
  2019. #else
  2020. uint64_t ror_sl0:1;
  2021. uint64_t nsr_sl0:1;
  2022. uint64_t esr_sl0:2;
  2023. uint64_t ror_sl1:1;
  2024. uint64_t nsr_sl1:1;
  2025. uint64_t esr_sl1:2;
  2026. uint64_t reserved_8_15:8;
  2027. uint64_t iptr_o0:1;
  2028. uint64_t iptr_o1:1;
  2029. uint64_t reserved_18_23:6;
  2030. uint64_t o0_csrm:1;
  2031. uint64_t o1_csrm:1;
  2032. uint64_t reserved_26_27:2;
  2033. uint64_t o0_ro:1;
  2034. uint64_t o0_ns:1;
  2035. uint64_t o0_es:2;
  2036. uint64_t o1_ro:1;
  2037. uint64_t o1_ns:1;
  2038. uint64_t o1_es:2;
  2039. uint64_t reserved_36_43:8;
  2040. uint64_t p0_bmode:1;
  2041. uint64_t p1_bmode:1;
  2042. uint64_t reserved_46_47:2;
  2043. uint64_t pkt_rr:1;
  2044. uint64_t reserved_49_63:15;
  2045. #endif
  2046. } cn50xx;
  2047. struct cvmx_npi_output_control_s cn58xx;
  2048. struct cvmx_npi_output_control_s cn58xxp1;
  2049. };
  2050. union cvmx_npi_px_dbpair_addr {
  2051. uint64_t u64;
  2052. struct cvmx_npi_px_dbpair_addr_s {
  2053. #ifdef __BIG_ENDIAN_BITFIELD
  2054. uint64_t reserved_63_63:1;
  2055. uint64_t state:2;
  2056. uint64_t naddr:61;
  2057. #else
  2058. uint64_t naddr:61;
  2059. uint64_t state:2;
  2060. uint64_t reserved_63_63:1;
  2061. #endif
  2062. } s;
  2063. struct cvmx_npi_px_dbpair_addr_s cn30xx;
  2064. struct cvmx_npi_px_dbpair_addr_s cn31xx;
  2065. struct cvmx_npi_px_dbpair_addr_s cn38xx;
  2066. struct cvmx_npi_px_dbpair_addr_s cn38xxp2;
  2067. struct cvmx_npi_px_dbpair_addr_s cn50xx;
  2068. struct cvmx_npi_px_dbpair_addr_s cn58xx;
  2069. struct cvmx_npi_px_dbpair_addr_s cn58xxp1;
  2070. };
  2071. union cvmx_npi_px_instr_addr {
  2072. uint64_t u64;
  2073. struct cvmx_npi_px_instr_addr_s {
  2074. #ifdef __BIG_ENDIAN_BITFIELD
  2075. uint64_t state:3;
  2076. uint64_t naddr:61;
  2077. #else
  2078. uint64_t naddr:61;
  2079. uint64_t state:3;
  2080. #endif
  2081. } s;
  2082. struct cvmx_npi_px_instr_addr_s cn30xx;
  2083. struct cvmx_npi_px_instr_addr_s cn31xx;
  2084. struct cvmx_npi_px_instr_addr_s cn38xx;
  2085. struct cvmx_npi_px_instr_addr_s cn38xxp2;
  2086. struct cvmx_npi_px_instr_addr_s cn50xx;
  2087. struct cvmx_npi_px_instr_addr_s cn58xx;
  2088. struct cvmx_npi_px_instr_addr_s cn58xxp1;
  2089. };
  2090. union cvmx_npi_px_instr_cnts {
  2091. uint64_t u64;
  2092. struct cvmx_npi_px_instr_cnts_s {
  2093. #ifdef __BIG_ENDIAN_BITFIELD
  2094. uint64_t reserved_38_63:26;
  2095. uint64_t fcnt:6;
  2096. uint64_t avail:32;
  2097. #else
  2098. uint64_t avail:32;
  2099. uint64_t fcnt:6;
  2100. uint64_t reserved_38_63:26;
  2101. #endif
  2102. } s;
  2103. struct cvmx_npi_px_instr_cnts_s cn30xx;
  2104. struct cvmx_npi_px_instr_cnts_s cn31xx;
  2105. struct cvmx_npi_px_instr_cnts_s cn38xx;
  2106. struct cvmx_npi_px_instr_cnts_s cn38xxp2;
  2107. struct cvmx_npi_px_instr_cnts_s cn50xx;
  2108. struct cvmx_npi_px_instr_cnts_s cn58xx;
  2109. struct cvmx_npi_px_instr_cnts_s cn58xxp1;
  2110. };
  2111. union cvmx_npi_px_pair_cnts {
  2112. uint64_t u64;
  2113. struct cvmx_npi_px_pair_cnts_s {
  2114. #ifdef __BIG_ENDIAN_BITFIELD
  2115. uint64_t reserved_37_63:27;
  2116. uint64_t fcnt:5;
  2117. uint64_t avail:32;
  2118. #else
  2119. uint64_t avail:32;
  2120. uint64_t fcnt:5;
  2121. uint64_t reserved_37_63:27;
  2122. #endif
  2123. } s;
  2124. struct cvmx_npi_px_pair_cnts_s cn30xx;
  2125. struct cvmx_npi_px_pair_cnts_s cn31xx;
  2126. struct cvmx_npi_px_pair_cnts_s cn38xx;
  2127. struct cvmx_npi_px_pair_cnts_s cn38xxp2;
  2128. struct cvmx_npi_px_pair_cnts_s cn50xx;
  2129. struct cvmx_npi_px_pair_cnts_s cn58xx;
  2130. struct cvmx_npi_px_pair_cnts_s cn58xxp1;
  2131. };
  2132. union cvmx_npi_pci_burst_size {
  2133. uint64_t u64;
  2134. struct cvmx_npi_pci_burst_size_s {
  2135. #ifdef __BIG_ENDIAN_BITFIELD
  2136. uint64_t reserved_14_63:50;
  2137. uint64_t wr_brst:7;
  2138. uint64_t rd_brst:7;
  2139. #else
  2140. uint64_t rd_brst:7;
  2141. uint64_t wr_brst:7;
  2142. uint64_t reserved_14_63:50;
  2143. #endif
  2144. } s;
  2145. struct cvmx_npi_pci_burst_size_s cn30xx;
  2146. struct cvmx_npi_pci_burst_size_s cn31xx;
  2147. struct cvmx_npi_pci_burst_size_s cn38xx;
  2148. struct cvmx_npi_pci_burst_size_s cn38xxp2;
  2149. struct cvmx_npi_pci_burst_size_s cn50xx;
  2150. struct cvmx_npi_pci_burst_size_s cn58xx;
  2151. struct cvmx_npi_pci_burst_size_s cn58xxp1;
  2152. };
  2153. union cvmx_npi_pci_int_arb_cfg {
  2154. uint64_t u64;
  2155. struct cvmx_npi_pci_int_arb_cfg_s {
  2156. #ifdef __BIG_ENDIAN_BITFIELD
  2157. uint64_t reserved_13_63:51;
  2158. uint64_t hostmode:1;
  2159. uint64_t pci_ovr:4;
  2160. uint64_t reserved_5_7:3;
  2161. uint64_t en:1;
  2162. uint64_t park_mod:1;
  2163. uint64_t park_dev:3;
  2164. #else
  2165. uint64_t park_dev:3;
  2166. uint64_t park_mod:1;
  2167. uint64_t en:1;
  2168. uint64_t reserved_5_7:3;
  2169. uint64_t pci_ovr:4;
  2170. uint64_t hostmode:1;
  2171. uint64_t reserved_13_63:51;
  2172. #endif
  2173. } s;
  2174. struct cvmx_npi_pci_int_arb_cfg_cn30xx {
  2175. #ifdef __BIG_ENDIAN_BITFIELD
  2176. uint64_t reserved_5_63:59;
  2177. uint64_t en:1;
  2178. uint64_t park_mod:1;
  2179. uint64_t park_dev:3;
  2180. #else
  2181. uint64_t park_dev:3;
  2182. uint64_t park_mod:1;
  2183. uint64_t en:1;
  2184. uint64_t reserved_5_63:59;
  2185. #endif
  2186. } cn30xx;
  2187. struct cvmx_npi_pci_int_arb_cfg_cn30xx cn31xx;
  2188. struct cvmx_npi_pci_int_arb_cfg_cn30xx cn38xx;
  2189. struct cvmx_npi_pci_int_arb_cfg_cn30xx cn38xxp2;
  2190. struct cvmx_npi_pci_int_arb_cfg_s cn50xx;
  2191. struct cvmx_npi_pci_int_arb_cfg_s cn58xx;
  2192. struct cvmx_npi_pci_int_arb_cfg_s cn58xxp1;
  2193. };
  2194. union cvmx_npi_pci_read_cmd {
  2195. uint64_t u64;
  2196. struct cvmx_npi_pci_read_cmd_s {
  2197. #ifdef __BIG_ENDIAN_BITFIELD
  2198. uint64_t reserved_11_63:53;
  2199. uint64_t cmd_size:11;
  2200. #else
  2201. uint64_t cmd_size:11;
  2202. uint64_t reserved_11_63:53;
  2203. #endif
  2204. } s;
  2205. struct cvmx_npi_pci_read_cmd_s cn30xx;
  2206. struct cvmx_npi_pci_read_cmd_s cn31xx;
  2207. struct cvmx_npi_pci_read_cmd_s cn38xx;
  2208. struct cvmx_npi_pci_read_cmd_s cn38xxp2;
  2209. struct cvmx_npi_pci_read_cmd_s cn50xx;
  2210. struct cvmx_npi_pci_read_cmd_s cn58xx;
  2211. struct cvmx_npi_pci_read_cmd_s cn58xxp1;
  2212. };
  2213. union cvmx_npi_port32_instr_hdr {
  2214. uint64_t u64;
  2215. struct cvmx_npi_port32_instr_hdr_s {
  2216. #ifdef __BIG_ENDIAN_BITFIELD
  2217. uint64_t reserved_44_63:20;
  2218. uint64_t pbp:1;
  2219. uint64_t rsv_f:5;
  2220. uint64_t rparmode:2;
  2221. uint64_t rsv_e:1;
  2222. uint64_t rskp_len:7;
  2223. uint64_t rsv_d:6;
  2224. uint64_t use_ihdr:1;
  2225. uint64_t rsv_c:5;
  2226. uint64_t par_mode:2;
  2227. uint64_t rsv_b:1;
  2228. uint64_t skp_len:7;
  2229. uint64_t rsv_a:6;
  2230. #else
  2231. uint64_t rsv_a:6;
  2232. uint64_t skp_len:7;
  2233. uint64_t rsv_b:1;
  2234. uint64_t par_mode:2;
  2235. uint64_t rsv_c:5;
  2236. uint64_t use_ihdr:1;
  2237. uint64_t rsv_d:6;
  2238. uint64_t rskp_len:7;
  2239. uint64_t rsv_e:1;
  2240. uint64_t rparmode:2;
  2241. uint64_t rsv_f:5;
  2242. uint64_t pbp:1;
  2243. uint64_t reserved_44_63:20;
  2244. #endif
  2245. } s;
  2246. struct cvmx_npi_port32_instr_hdr_s cn30xx;
  2247. struct cvmx_npi_port32_instr_hdr_s cn31xx;
  2248. struct cvmx_npi_port32_instr_hdr_s cn38xx;
  2249. struct cvmx_npi_port32_instr_hdr_s cn38xxp2;
  2250. struct cvmx_npi_port32_instr_hdr_s cn50xx;
  2251. struct cvmx_npi_port32_instr_hdr_s cn58xx;
  2252. struct cvmx_npi_port32_instr_hdr_s cn58xxp1;
  2253. };
  2254. union cvmx_npi_port33_instr_hdr {
  2255. uint64_t u64;
  2256. struct cvmx_npi_port33_instr_hdr_s {
  2257. #ifdef __BIG_ENDIAN_BITFIELD
  2258. uint64_t reserved_44_63:20;
  2259. uint64_t pbp:1;
  2260. uint64_t rsv_f:5;
  2261. uint64_t rparmode:2;
  2262. uint64_t rsv_e:1;
  2263. uint64_t rskp_len:7;
  2264. uint64_t rsv_d:6;
  2265. uint64_t use_ihdr:1;
  2266. uint64_t rsv_c:5;
  2267. uint64_t par_mode:2;
  2268. uint64_t rsv_b:1;
  2269. uint64_t skp_len:7;
  2270. uint64_t rsv_a:6;
  2271. #else
  2272. uint64_t rsv_a:6;
  2273. uint64_t skp_len:7;
  2274. uint64_t rsv_b:1;
  2275. uint64_t par_mode:2;
  2276. uint64_t rsv_c:5;
  2277. uint64_t use_ihdr:1;
  2278. uint64_t rsv_d:6;
  2279. uint64_t rskp_len:7;
  2280. uint64_t rsv_e:1;
  2281. uint64_t rparmode:2;
  2282. uint64_t rsv_f:5;
  2283. uint64_t pbp:1;
  2284. uint64_t reserved_44_63:20;
  2285. #endif
  2286. } s;
  2287. struct cvmx_npi_port33_instr_hdr_s cn31xx;
  2288. struct cvmx_npi_port33_instr_hdr_s cn38xx;
  2289. struct cvmx_npi_port33_instr_hdr_s cn38xxp2;
  2290. struct cvmx_npi_port33_instr_hdr_s cn50xx;
  2291. struct cvmx_npi_port33_instr_hdr_s cn58xx;
  2292. struct cvmx_npi_port33_instr_hdr_s cn58xxp1;
  2293. };
  2294. union cvmx_npi_port34_instr_hdr {
  2295. uint64_t u64;
  2296. struct cvmx_npi_port34_instr_hdr_s {
  2297. #ifdef __BIG_ENDIAN_BITFIELD
  2298. uint64_t reserved_44_63:20;
  2299. uint64_t pbp:1;
  2300. uint64_t rsv_f:5;
  2301. uint64_t rparmode:2;
  2302. uint64_t rsv_e:1;
  2303. uint64_t rskp_len:7;
  2304. uint64_t rsv_d:6;
  2305. uint64_t use_ihdr:1;
  2306. uint64_t rsv_c:5;
  2307. uint64_t par_mode:2;
  2308. uint64_t rsv_b:1;
  2309. uint64_t skp_len:7;
  2310. uint64_t rsv_a:6;
  2311. #else
  2312. uint64_t rsv_a:6;
  2313. uint64_t skp_len:7;
  2314. uint64_t rsv_b:1;
  2315. uint64_t par_mode:2;
  2316. uint64_t rsv_c:5;
  2317. uint64_t use_ihdr:1;
  2318. uint64_t rsv_d:6;
  2319. uint64_t rskp_len:7;
  2320. uint64_t rsv_e:1;
  2321. uint64_t rparmode:2;
  2322. uint64_t rsv_f:5;
  2323. uint64_t pbp:1;
  2324. uint64_t reserved_44_63:20;
  2325. #endif
  2326. } s;
  2327. struct cvmx_npi_port34_instr_hdr_s cn38xx;
  2328. struct cvmx_npi_port34_instr_hdr_s cn38xxp2;
  2329. struct cvmx_npi_port34_instr_hdr_s cn58xx;
  2330. struct cvmx_npi_port34_instr_hdr_s cn58xxp1;
  2331. };
  2332. union cvmx_npi_port35_instr_hdr {
  2333. uint64_t u64;
  2334. struct cvmx_npi_port35_instr_hdr_s {
  2335. #ifdef __BIG_ENDIAN_BITFIELD
  2336. uint64_t reserved_44_63:20;
  2337. uint64_t pbp:1;
  2338. uint64_t rsv_f:5;
  2339. uint64_t rparmode:2;
  2340. uint64_t rsv_e:1;
  2341. uint64_t rskp_len:7;
  2342. uint64_t rsv_d:6;
  2343. uint64_t use_ihdr:1;
  2344. uint64_t rsv_c:5;
  2345. uint64_t par_mode:2;
  2346. uint64_t rsv_b:1;
  2347. uint64_t skp_len:7;
  2348. uint64_t rsv_a:6;
  2349. #else
  2350. uint64_t rsv_a:6;
  2351. uint64_t skp_len:7;
  2352. uint64_t rsv_b:1;
  2353. uint64_t par_mode:2;
  2354. uint64_t rsv_c:5;
  2355. uint64_t use_ihdr:1;
  2356. uint64_t rsv_d:6;
  2357. uint64_t rskp_len:7;
  2358. uint64_t rsv_e:1;
  2359. uint64_t rparmode:2;
  2360. uint64_t rsv_f:5;
  2361. uint64_t pbp:1;
  2362. uint64_t reserved_44_63:20;
  2363. #endif
  2364. } s;
  2365. struct cvmx_npi_port35_instr_hdr_s cn38xx;
  2366. struct cvmx_npi_port35_instr_hdr_s cn38xxp2;
  2367. struct cvmx_npi_port35_instr_hdr_s cn58xx;
  2368. struct cvmx_npi_port35_instr_hdr_s cn58xxp1;
  2369. };
  2370. union cvmx_npi_port_bp_control {
  2371. uint64_t u64;
  2372. struct cvmx_npi_port_bp_control_s {
  2373. #ifdef __BIG_ENDIAN_BITFIELD
  2374. uint64_t reserved_8_63:56;
  2375. uint64_t bp_on:4;
  2376. uint64_t enb:4;
  2377. #else
  2378. uint64_t enb:4;
  2379. uint64_t bp_on:4;
  2380. uint64_t reserved_8_63:56;
  2381. #endif
  2382. } s;
  2383. struct cvmx_npi_port_bp_control_s cn30xx;
  2384. struct cvmx_npi_port_bp_control_s cn31xx;
  2385. struct cvmx_npi_port_bp_control_s cn38xx;
  2386. struct cvmx_npi_port_bp_control_s cn38xxp2;
  2387. struct cvmx_npi_port_bp_control_s cn50xx;
  2388. struct cvmx_npi_port_bp_control_s cn58xx;
  2389. struct cvmx_npi_port_bp_control_s cn58xxp1;
  2390. };
  2391. union cvmx_npi_rsl_int_blocks {
  2392. uint64_t u64;
  2393. struct cvmx_npi_rsl_int_blocks_s {
  2394. #ifdef __BIG_ENDIAN_BITFIELD
  2395. uint64_t reserved_32_63:32;
  2396. uint64_t rint_31:1;
  2397. uint64_t iob:1;
  2398. uint64_t reserved_28_29:2;
  2399. uint64_t rint_27:1;
  2400. uint64_t rint_26:1;
  2401. uint64_t rint_25:1;
  2402. uint64_t rint_24:1;
  2403. uint64_t asx1:1;
  2404. uint64_t asx0:1;
  2405. uint64_t rint_21:1;
  2406. uint64_t pip:1;
  2407. uint64_t spx1:1;
  2408. uint64_t spx0:1;
  2409. uint64_t lmc:1;
  2410. uint64_t l2c:1;
  2411. uint64_t rint_15:1;
  2412. uint64_t reserved_13_14:2;
  2413. uint64_t pow:1;
  2414. uint64_t tim:1;
  2415. uint64_t pko:1;
  2416. uint64_t ipd:1;
  2417. uint64_t rint_8:1;
  2418. uint64_t zip:1;
  2419. uint64_t dfa:1;
  2420. uint64_t fpa:1;
  2421. uint64_t key:1;
  2422. uint64_t npi:1;
  2423. uint64_t gmx1:1;
  2424. uint64_t gmx0:1;
  2425. uint64_t mio:1;
  2426. #else
  2427. uint64_t mio:1;
  2428. uint64_t gmx0:1;
  2429. uint64_t gmx1:1;
  2430. uint64_t npi:1;
  2431. uint64_t key:1;
  2432. uint64_t fpa:1;
  2433. uint64_t dfa:1;
  2434. uint64_t zip:1;
  2435. uint64_t rint_8:1;
  2436. uint64_t ipd:1;
  2437. uint64_t pko:1;
  2438. uint64_t tim:1;
  2439. uint64_t pow:1;
  2440. uint64_t reserved_13_14:2;
  2441. uint64_t rint_15:1;
  2442. uint64_t l2c:1;
  2443. uint64_t lmc:1;
  2444. uint64_t spx0:1;
  2445. uint64_t spx1:1;
  2446. uint64_t pip:1;
  2447. uint64_t rint_21:1;
  2448. uint64_t asx0:1;
  2449. uint64_t asx1:1;
  2450. uint64_t rint_24:1;
  2451. uint64_t rint_25:1;
  2452. uint64_t rint_26:1;
  2453. uint64_t rint_27:1;
  2454. uint64_t reserved_28_29:2;
  2455. uint64_t iob:1;
  2456. uint64_t rint_31:1;
  2457. uint64_t reserved_32_63:32;
  2458. #endif
  2459. } s;
  2460. struct cvmx_npi_rsl_int_blocks_cn30xx {
  2461. #ifdef __BIG_ENDIAN_BITFIELD
  2462. uint64_t reserved_32_63:32;
  2463. uint64_t rint_31:1;
  2464. uint64_t iob:1;
  2465. uint64_t rint_29:1;
  2466. uint64_t rint_28:1;
  2467. uint64_t rint_27:1;
  2468. uint64_t rint_26:1;
  2469. uint64_t rint_25:1;
  2470. uint64_t rint_24:1;
  2471. uint64_t asx1:1;
  2472. uint64_t asx0:1;
  2473. uint64_t rint_21:1;
  2474. uint64_t pip:1;
  2475. uint64_t spx1:1;
  2476. uint64_t spx0:1;
  2477. uint64_t lmc:1;
  2478. uint64_t l2c:1;
  2479. uint64_t rint_15:1;
  2480. uint64_t rint_14:1;
  2481. uint64_t usb:1;
  2482. uint64_t pow:1;
  2483. uint64_t tim:1;
  2484. uint64_t pko:1;
  2485. uint64_t ipd:1;
  2486. uint64_t rint_8:1;
  2487. uint64_t zip:1;
  2488. uint64_t dfa:1;
  2489. uint64_t fpa:1;
  2490. uint64_t key:1;
  2491. uint64_t npi:1;
  2492. uint64_t gmx1:1;
  2493. uint64_t gmx0:1;
  2494. uint64_t mio:1;
  2495. #else
  2496. uint64_t mio:1;
  2497. uint64_t gmx0:1;
  2498. uint64_t gmx1:1;
  2499. uint64_t npi:1;
  2500. uint64_t key:1;
  2501. uint64_t fpa:1;
  2502. uint64_t dfa:1;
  2503. uint64_t zip:1;
  2504. uint64_t rint_8:1;
  2505. uint64_t ipd:1;
  2506. uint64_t pko:1;
  2507. uint64_t tim:1;
  2508. uint64_t pow:1;
  2509. uint64_t usb:1;
  2510. uint64_t rint_14:1;
  2511. uint64_t rint_15:1;
  2512. uint64_t l2c:1;
  2513. uint64_t lmc:1;
  2514. uint64_t spx0:1;
  2515. uint64_t spx1:1;
  2516. uint64_t pip:1;
  2517. uint64_t rint_21:1;
  2518. uint64_t asx0:1;
  2519. uint64_t asx1:1;
  2520. uint64_t rint_24:1;
  2521. uint64_t rint_25:1;
  2522. uint64_t rint_26:1;
  2523. uint64_t rint_27:1;
  2524. uint64_t rint_28:1;
  2525. uint64_t rint_29:1;
  2526. uint64_t iob:1;
  2527. uint64_t rint_31:1;
  2528. uint64_t reserved_32_63:32;
  2529. #endif
  2530. } cn30xx;
  2531. struct cvmx_npi_rsl_int_blocks_cn30xx cn31xx;
  2532. struct cvmx_npi_rsl_int_blocks_cn38xx {
  2533. #ifdef __BIG_ENDIAN_BITFIELD
  2534. uint64_t reserved_32_63:32;
  2535. uint64_t rint_31:1;
  2536. uint64_t iob:1;
  2537. uint64_t rint_29:1;
  2538. uint64_t rint_28:1;
  2539. uint64_t rint_27:1;
  2540. uint64_t rint_26:1;
  2541. uint64_t rint_25:1;
  2542. uint64_t rint_24:1;
  2543. uint64_t asx1:1;
  2544. uint64_t asx0:1;
  2545. uint64_t rint_21:1;
  2546. uint64_t pip:1;
  2547. uint64_t spx1:1;
  2548. uint64_t spx0:1;
  2549. uint64_t lmc:1;
  2550. uint64_t l2c:1;
  2551. uint64_t rint_15:1;
  2552. uint64_t rint_14:1;
  2553. uint64_t rint_13:1;
  2554. uint64_t pow:1;
  2555. uint64_t tim:1;
  2556. uint64_t pko:1;
  2557. uint64_t ipd:1;
  2558. uint64_t rint_8:1;
  2559. uint64_t zip:1;
  2560. uint64_t dfa:1;
  2561. uint64_t fpa:1;
  2562. uint64_t key:1;
  2563. uint64_t npi:1;
  2564. uint64_t gmx1:1;
  2565. uint64_t gmx0:1;
  2566. uint64_t mio:1;
  2567. #else
  2568. uint64_t mio:1;
  2569. uint64_t gmx0:1;
  2570. uint64_t gmx1:1;
  2571. uint64_t npi:1;
  2572. uint64_t key:1;
  2573. uint64_t fpa:1;
  2574. uint64_t dfa:1;
  2575. uint64_t zip:1;
  2576. uint64_t rint_8:1;
  2577. uint64_t ipd:1;
  2578. uint64_t pko:1;
  2579. uint64_t tim:1;
  2580. uint64_t pow:1;
  2581. uint64_t rint_13:1;
  2582. uint64_t rint_14:1;
  2583. uint64_t rint_15:1;
  2584. uint64_t l2c:1;
  2585. uint64_t lmc:1;
  2586. uint64_t spx0:1;
  2587. uint64_t spx1:1;
  2588. uint64_t pip:1;
  2589. uint64_t rint_21:1;
  2590. uint64_t asx0:1;
  2591. uint64_t asx1:1;
  2592. uint64_t rint_24:1;
  2593. uint64_t rint_25:1;
  2594. uint64_t rint_26:1;
  2595. uint64_t rint_27:1;
  2596. uint64_t rint_28:1;
  2597. uint64_t rint_29:1;
  2598. uint64_t iob:1;
  2599. uint64_t rint_31:1;
  2600. uint64_t reserved_32_63:32;
  2601. #endif
  2602. } cn38xx;
  2603. struct cvmx_npi_rsl_int_blocks_cn38xx cn38xxp2;
  2604. struct cvmx_npi_rsl_int_blocks_cn50xx {
  2605. #ifdef __BIG_ENDIAN_BITFIELD
  2606. uint64_t reserved_31_63:33;
  2607. uint64_t iob:1;
  2608. uint64_t lmc1:1;
  2609. uint64_t agl:1;
  2610. uint64_t reserved_24_27:4;
  2611. uint64_t asx1:1;
  2612. uint64_t asx0:1;
  2613. uint64_t reserved_21_21:1;
  2614. uint64_t pip:1;
  2615. uint64_t spx1:1;
  2616. uint64_t spx0:1;
  2617. uint64_t lmc:1;
  2618. uint64_t l2c:1;
  2619. uint64_t reserved_15_15:1;
  2620. uint64_t rad:1;
  2621. uint64_t usb:1;
  2622. uint64_t pow:1;
  2623. uint64_t tim:1;
  2624. uint64_t pko:1;
  2625. uint64_t ipd:1;
  2626. uint64_t reserved_8_8:1;
  2627. uint64_t zip:1;
  2628. uint64_t dfa:1;
  2629. uint64_t fpa:1;
  2630. uint64_t key:1;
  2631. uint64_t npi:1;
  2632. uint64_t gmx1:1;
  2633. uint64_t gmx0:1;
  2634. uint64_t mio:1;
  2635. #else
  2636. uint64_t mio:1;
  2637. uint64_t gmx0:1;
  2638. uint64_t gmx1:1;
  2639. uint64_t npi:1;
  2640. uint64_t key:1;
  2641. uint64_t fpa:1;
  2642. uint64_t dfa:1;
  2643. uint64_t zip:1;
  2644. uint64_t reserved_8_8:1;
  2645. uint64_t ipd:1;
  2646. uint64_t pko:1;
  2647. uint64_t tim:1;
  2648. uint64_t pow:1;
  2649. uint64_t usb:1;
  2650. uint64_t rad:1;
  2651. uint64_t reserved_15_15:1;
  2652. uint64_t l2c:1;
  2653. uint64_t lmc:1;
  2654. uint64_t spx0:1;
  2655. uint64_t spx1:1;
  2656. uint64_t pip:1;
  2657. uint64_t reserved_21_21:1;
  2658. uint64_t asx0:1;
  2659. uint64_t asx1:1;
  2660. uint64_t reserved_24_27:4;
  2661. uint64_t agl:1;
  2662. uint64_t lmc1:1;
  2663. uint64_t iob:1;
  2664. uint64_t reserved_31_63:33;
  2665. #endif
  2666. } cn50xx;
  2667. struct cvmx_npi_rsl_int_blocks_cn38xx cn58xx;
  2668. struct cvmx_npi_rsl_int_blocks_cn38xx cn58xxp1;
  2669. };
  2670. union cvmx_npi_size_inputx {
  2671. uint64_t u64;
  2672. struct cvmx_npi_size_inputx_s {
  2673. #ifdef __BIG_ENDIAN_BITFIELD
  2674. uint64_t reserved_32_63:32;
  2675. uint64_t size:32;
  2676. #else
  2677. uint64_t size:32;
  2678. uint64_t reserved_32_63:32;
  2679. #endif
  2680. } s;
  2681. struct cvmx_npi_size_inputx_s cn30xx;
  2682. struct cvmx_npi_size_inputx_s cn31xx;
  2683. struct cvmx_npi_size_inputx_s cn38xx;
  2684. struct cvmx_npi_size_inputx_s cn38xxp2;
  2685. struct cvmx_npi_size_inputx_s cn50xx;
  2686. struct cvmx_npi_size_inputx_s cn58xx;
  2687. struct cvmx_npi_size_inputx_s cn58xxp1;
  2688. };
  2689. union cvmx_npi_win_read_to {
  2690. uint64_t u64;
  2691. struct cvmx_npi_win_read_to_s {
  2692. #ifdef __BIG_ENDIAN_BITFIELD
  2693. uint64_t reserved_32_63:32;
  2694. uint64_t time:32;
  2695. #else
  2696. uint64_t time:32;
  2697. uint64_t reserved_32_63:32;
  2698. #endif
  2699. } s;
  2700. struct cvmx_npi_win_read_to_s cn30xx;
  2701. struct cvmx_npi_win_read_to_s cn31xx;
  2702. struct cvmx_npi_win_read_to_s cn38xx;
  2703. struct cvmx_npi_win_read_to_s cn38xxp2;
  2704. struct cvmx_npi_win_read_to_s cn50xx;
  2705. struct cvmx_npi_win_read_to_s cn58xx;
  2706. struct cvmx_npi_win_read_to_s cn58xxp1;
  2707. };
  2708. #endif