t4_regs.h 98 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350
  1. /*
  2. * This file is part of the Chelsio T4 Ethernet driver for Linux.
  3. *
  4. * Copyright (c) 2003-2014 Chelsio Communications, Inc. All rights reserved.
  5. *
  6. * This software is available to you under a choice of one of two
  7. * licenses. You may choose to be licensed under the terms of the GNU
  8. * General Public License (GPL) Version 2, available from the file
  9. * COPYING in the main directory of this source tree, or the
  10. * OpenIB.org BSD license below:
  11. *
  12. * Redistribution and use in source and binary forms, with or
  13. * without modification, are permitted provided that the following
  14. * conditions are met:
  15. *
  16. * - Redistributions of source code must retain the above
  17. * copyright notice, this list of conditions and the following
  18. * disclaimer.
  19. *
  20. * - Redistributions in binary form must reproduce the above
  21. * copyright notice, this list of conditions and the following
  22. * disclaimer in the documentation and/or other materials
  23. * provided with the distribution.
  24. *
  25. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  26. * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  27. * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  28. * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
  29. * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
  30. * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  31. * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
  32. * SOFTWARE.
  33. */
  34. #ifndef __T4_REGS_H
  35. #define __T4_REGS_H
  36. #define MYPF_BASE 0x1b000
  37. #define MYPF_REG(reg_addr) (MYPF_BASE + (reg_addr))
  38. #define PF0_BASE 0x1e000
  39. #define PF0_REG(reg_addr) (PF0_BASE + (reg_addr))
  40. #define PF_STRIDE 0x400
  41. #define PF_BASE(idx) (PF0_BASE + (idx) * PF_STRIDE)
  42. #define PF_REG(idx, reg) (PF_BASE(idx) + (reg))
  43. #define NUM_CIM_CTL_TSCH_CHANNEL_INSTANCES 4
  44. #define NUM_CIM_CTL_TSCH_CHANNEL_TSCH_CLASS_INSTANCES 16
  45. #define MYPORT_BASE 0x1c000
  46. #define MYPORT_REG(reg_addr) (MYPORT_BASE + (reg_addr))
  47. #define PORT0_BASE 0x20000
  48. #define PORT0_REG(reg_addr) (PORT0_BASE + (reg_addr))
  49. #define PORT_STRIDE 0x2000
  50. #define PORT_BASE(idx) (PORT0_BASE + (idx) * PORT_STRIDE)
  51. #define PORT_REG(idx, reg) (PORT_BASE(idx) + (reg))
  52. #define EDC_STRIDE (EDC_1_BASE_ADDR - EDC_0_BASE_ADDR)
  53. #define EDC_REG(reg, idx) (reg + EDC_STRIDE * idx)
  54. #define PCIE_MEM_ACCESS_REG(reg_addr, idx) ((reg_addr) + (idx) * 8)
  55. #define PCIE_MAILBOX_REG(reg_addr, idx) ((reg_addr) + (idx) * 8)
  56. #define MC_BIST_STATUS_REG(reg_addr, idx) ((reg_addr) + (idx) * 4)
  57. #define EDC_BIST_STATUS_REG(reg_addr, idx) ((reg_addr) + (idx) * 4)
  58. #define PCIE_FW_REG(reg_addr, idx) ((reg_addr) + (idx) * 4)
  59. #define NUM_LE_DB_DBGI_REQ_DATA_INSTANCES 17
  60. #define NUM_LE_DB_DBGI_RSP_DATA_INSTANCES 17
  61. #define SGE_PF_KDOORBELL_A 0x0
  62. #define QID_S 15
  63. #define QID_V(x) ((x) << QID_S)
  64. #define DBPRIO_S 14
  65. #define DBPRIO_V(x) ((x) << DBPRIO_S)
  66. #define DBPRIO_F DBPRIO_V(1U)
  67. #define PIDX_S 0
  68. #define PIDX_V(x) ((x) << PIDX_S)
  69. #define SGE_VF_KDOORBELL_A 0x0
  70. #define DBTYPE_S 13
  71. #define DBTYPE_V(x) ((x) << DBTYPE_S)
  72. #define DBTYPE_F DBTYPE_V(1U)
  73. #define PIDX_T5_S 0
  74. #define PIDX_T5_M 0x1fffU
  75. #define PIDX_T5_V(x) ((x) << PIDX_T5_S)
  76. #define PIDX_T5_G(x) (((x) >> PIDX_T5_S) & PIDX_T5_M)
  77. #define SGE_PF_GTS_A 0x4
  78. #define INGRESSQID_S 16
  79. #define INGRESSQID_V(x) ((x) << INGRESSQID_S)
  80. #define TIMERREG_S 13
  81. #define TIMERREG_V(x) ((x) << TIMERREG_S)
  82. #define SEINTARM_S 12
  83. #define SEINTARM_V(x) ((x) << SEINTARM_S)
  84. #define CIDXINC_S 0
  85. #define CIDXINC_M 0xfffU
  86. #define CIDXINC_V(x) ((x) << CIDXINC_S)
  87. #define SGE_CONTROL_A 0x1008
  88. #define SGE_CONTROL2_A 0x1124
  89. #define RXPKTCPLMODE_S 18
  90. #define RXPKTCPLMODE_V(x) ((x) << RXPKTCPLMODE_S)
  91. #define RXPKTCPLMODE_F RXPKTCPLMODE_V(1U)
  92. #define EGRSTATUSPAGESIZE_S 17
  93. #define EGRSTATUSPAGESIZE_V(x) ((x) << EGRSTATUSPAGESIZE_S)
  94. #define EGRSTATUSPAGESIZE_F EGRSTATUSPAGESIZE_V(1U)
  95. #define PKTSHIFT_S 10
  96. #define PKTSHIFT_M 0x7U
  97. #define PKTSHIFT_V(x) ((x) << PKTSHIFT_S)
  98. #define PKTSHIFT_G(x) (((x) >> PKTSHIFT_S) & PKTSHIFT_M)
  99. #define INGPCIEBOUNDARY_S 7
  100. #define INGPCIEBOUNDARY_V(x) ((x) << INGPCIEBOUNDARY_S)
  101. #define INGPADBOUNDARY_S 4
  102. #define INGPADBOUNDARY_M 0x7U
  103. #define INGPADBOUNDARY_V(x) ((x) << INGPADBOUNDARY_S)
  104. #define INGPADBOUNDARY_G(x) (((x) >> INGPADBOUNDARY_S) & INGPADBOUNDARY_M)
  105. #define EGRPCIEBOUNDARY_S 1
  106. #define EGRPCIEBOUNDARY_V(x) ((x) << EGRPCIEBOUNDARY_S)
  107. #define INGPACKBOUNDARY_S 16
  108. #define INGPACKBOUNDARY_M 0x7U
  109. #define INGPACKBOUNDARY_V(x) ((x) << INGPACKBOUNDARY_S)
  110. #define INGPACKBOUNDARY_G(x) (((x) >> INGPACKBOUNDARY_S) \
  111. & INGPACKBOUNDARY_M)
  112. #define VFIFO_ENABLE_S 10
  113. #define VFIFO_ENABLE_V(x) ((x) << VFIFO_ENABLE_S)
  114. #define VFIFO_ENABLE_F VFIFO_ENABLE_V(1U)
  115. #define SGE_DBVFIFO_BADDR_A 0x1138
  116. #define DBVFIFO_SIZE_S 6
  117. #define DBVFIFO_SIZE_M 0xfffU
  118. #define DBVFIFO_SIZE_G(x) (((x) >> DBVFIFO_SIZE_S) & DBVFIFO_SIZE_M)
  119. #define T6_DBVFIFO_SIZE_S 0
  120. #define T6_DBVFIFO_SIZE_M 0x1fffU
  121. #define T6_DBVFIFO_SIZE_G(x) (((x) >> T6_DBVFIFO_SIZE_S) & T6_DBVFIFO_SIZE_M)
  122. #define SGE_CTXT_CMD_A 0x11fc
  123. #define BUSY_S 31
  124. #define BUSY_V(x) ((x) << BUSY_S)
  125. #define BUSY_F BUSY_V(1U)
  126. #define CTXTTYPE_S 24
  127. #define CTXTTYPE_M 0x3U
  128. #define CTXTTYPE_V(x) ((x) << CTXTTYPE_S)
  129. #define CTXTQID_S 0
  130. #define CTXTQID_M 0x1ffffU
  131. #define CTXTQID_V(x) ((x) << CTXTQID_S)
  132. #define SGE_CTXT_DATA0_A 0x1200
  133. #define SGE_CTXT_DATA5_A 0x1214
  134. #define GLOBALENABLE_S 0
  135. #define GLOBALENABLE_V(x) ((x) << GLOBALENABLE_S)
  136. #define GLOBALENABLE_F GLOBALENABLE_V(1U)
  137. #define SGE_HOST_PAGE_SIZE_A 0x100c
  138. #define HOSTPAGESIZEPF7_S 28
  139. #define HOSTPAGESIZEPF7_M 0xfU
  140. #define HOSTPAGESIZEPF7_V(x) ((x) << HOSTPAGESIZEPF7_S)
  141. #define HOSTPAGESIZEPF7_G(x) (((x) >> HOSTPAGESIZEPF7_S) & HOSTPAGESIZEPF7_M)
  142. #define HOSTPAGESIZEPF6_S 24
  143. #define HOSTPAGESIZEPF6_M 0xfU
  144. #define HOSTPAGESIZEPF6_V(x) ((x) << HOSTPAGESIZEPF6_S)
  145. #define HOSTPAGESIZEPF6_G(x) (((x) >> HOSTPAGESIZEPF6_S) & HOSTPAGESIZEPF6_M)
  146. #define HOSTPAGESIZEPF5_S 20
  147. #define HOSTPAGESIZEPF5_M 0xfU
  148. #define HOSTPAGESIZEPF5_V(x) ((x) << HOSTPAGESIZEPF5_S)
  149. #define HOSTPAGESIZEPF5_G(x) (((x) >> HOSTPAGESIZEPF5_S) & HOSTPAGESIZEPF5_M)
  150. #define HOSTPAGESIZEPF4_S 16
  151. #define HOSTPAGESIZEPF4_M 0xfU
  152. #define HOSTPAGESIZEPF4_V(x) ((x) << HOSTPAGESIZEPF4_S)
  153. #define HOSTPAGESIZEPF4_G(x) (((x) >> HOSTPAGESIZEPF4_S) & HOSTPAGESIZEPF4_M)
  154. #define HOSTPAGESIZEPF3_S 12
  155. #define HOSTPAGESIZEPF3_M 0xfU
  156. #define HOSTPAGESIZEPF3_V(x) ((x) << HOSTPAGESIZEPF3_S)
  157. #define HOSTPAGESIZEPF3_G(x) (((x) >> HOSTPAGESIZEPF3_S) & HOSTPAGESIZEPF3_M)
  158. #define HOSTPAGESIZEPF2_S 8
  159. #define HOSTPAGESIZEPF2_M 0xfU
  160. #define HOSTPAGESIZEPF2_V(x) ((x) << HOSTPAGESIZEPF2_S)
  161. #define HOSTPAGESIZEPF2_G(x) (((x) >> HOSTPAGESIZEPF2_S) & HOSTPAGESIZEPF2_M)
  162. #define HOSTPAGESIZEPF1_S 4
  163. #define HOSTPAGESIZEPF1_M 0xfU
  164. #define HOSTPAGESIZEPF1_V(x) ((x) << HOSTPAGESIZEPF1_S)
  165. #define HOSTPAGESIZEPF1_G(x) (((x) >> HOSTPAGESIZEPF1_S) & HOSTPAGESIZEPF1_M)
  166. #define HOSTPAGESIZEPF0_S 0
  167. #define HOSTPAGESIZEPF0_M 0xfU
  168. #define HOSTPAGESIZEPF0_V(x) ((x) << HOSTPAGESIZEPF0_S)
  169. #define HOSTPAGESIZEPF0_G(x) (((x) >> HOSTPAGESIZEPF0_S) & HOSTPAGESIZEPF0_M)
  170. #define SGE_EGRESS_QUEUES_PER_PAGE_PF_A 0x1010
  171. #define SGE_EGRESS_QUEUES_PER_PAGE_VF_A 0x1014
  172. #define QUEUESPERPAGEPF1_S 4
  173. #define QUEUESPERPAGEPF0_S 0
  174. #define QUEUESPERPAGEPF0_M 0xfU
  175. #define QUEUESPERPAGEPF0_V(x) ((x) << QUEUESPERPAGEPF0_S)
  176. #define QUEUESPERPAGEPF0_G(x) (((x) >> QUEUESPERPAGEPF0_S) & QUEUESPERPAGEPF0_M)
  177. #define SGE_INT_CAUSE1_A 0x1024
  178. #define SGE_INT_CAUSE2_A 0x1030
  179. #define SGE_INT_CAUSE3_A 0x103c
  180. #define ERR_FLM_DBP_S 31
  181. #define ERR_FLM_DBP_V(x) ((x) << ERR_FLM_DBP_S)
  182. #define ERR_FLM_DBP_F ERR_FLM_DBP_V(1U)
  183. #define ERR_FLM_IDMA1_S 30
  184. #define ERR_FLM_IDMA1_V(x) ((x) << ERR_FLM_IDMA1_S)
  185. #define ERR_FLM_IDMA1_F ERR_FLM_IDMA1_V(1U)
  186. #define ERR_FLM_IDMA0_S 29
  187. #define ERR_FLM_IDMA0_V(x) ((x) << ERR_FLM_IDMA0_S)
  188. #define ERR_FLM_IDMA0_F ERR_FLM_IDMA0_V(1U)
  189. #define ERR_FLM_HINT_S 28
  190. #define ERR_FLM_HINT_V(x) ((x) << ERR_FLM_HINT_S)
  191. #define ERR_FLM_HINT_F ERR_FLM_HINT_V(1U)
  192. #define ERR_PCIE_ERROR3_S 27
  193. #define ERR_PCIE_ERROR3_V(x) ((x) << ERR_PCIE_ERROR3_S)
  194. #define ERR_PCIE_ERROR3_F ERR_PCIE_ERROR3_V(1U)
  195. #define ERR_PCIE_ERROR2_S 26
  196. #define ERR_PCIE_ERROR2_V(x) ((x) << ERR_PCIE_ERROR2_S)
  197. #define ERR_PCIE_ERROR2_F ERR_PCIE_ERROR2_V(1U)
  198. #define ERR_PCIE_ERROR1_S 25
  199. #define ERR_PCIE_ERROR1_V(x) ((x) << ERR_PCIE_ERROR1_S)
  200. #define ERR_PCIE_ERROR1_F ERR_PCIE_ERROR1_V(1U)
  201. #define ERR_PCIE_ERROR0_S 24
  202. #define ERR_PCIE_ERROR0_V(x) ((x) << ERR_PCIE_ERROR0_S)
  203. #define ERR_PCIE_ERROR0_F ERR_PCIE_ERROR0_V(1U)
  204. #define ERR_CPL_EXCEED_IQE_SIZE_S 22
  205. #define ERR_CPL_EXCEED_IQE_SIZE_V(x) ((x) << ERR_CPL_EXCEED_IQE_SIZE_S)
  206. #define ERR_CPL_EXCEED_IQE_SIZE_F ERR_CPL_EXCEED_IQE_SIZE_V(1U)
  207. #define ERR_INVALID_CIDX_INC_S 21
  208. #define ERR_INVALID_CIDX_INC_V(x) ((x) << ERR_INVALID_CIDX_INC_S)
  209. #define ERR_INVALID_CIDX_INC_F ERR_INVALID_CIDX_INC_V(1U)
  210. #define ERR_CPL_OPCODE_0_S 19
  211. #define ERR_CPL_OPCODE_0_V(x) ((x) << ERR_CPL_OPCODE_0_S)
  212. #define ERR_CPL_OPCODE_0_F ERR_CPL_OPCODE_0_V(1U)
  213. #define ERR_DROPPED_DB_S 18
  214. #define ERR_DROPPED_DB_V(x) ((x) << ERR_DROPPED_DB_S)
  215. #define ERR_DROPPED_DB_F ERR_DROPPED_DB_V(1U)
  216. #define ERR_DATA_CPL_ON_HIGH_QID1_S 17
  217. #define ERR_DATA_CPL_ON_HIGH_QID1_V(x) ((x) << ERR_DATA_CPL_ON_HIGH_QID1_S)
  218. #define ERR_DATA_CPL_ON_HIGH_QID1_F ERR_DATA_CPL_ON_HIGH_QID1_V(1U)
  219. #define ERR_DATA_CPL_ON_HIGH_QID0_S 16
  220. #define ERR_DATA_CPL_ON_HIGH_QID0_V(x) ((x) << ERR_DATA_CPL_ON_HIGH_QID0_S)
  221. #define ERR_DATA_CPL_ON_HIGH_QID0_F ERR_DATA_CPL_ON_HIGH_QID0_V(1U)
  222. #define ERR_BAD_DB_PIDX3_S 15
  223. #define ERR_BAD_DB_PIDX3_V(x) ((x) << ERR_BAD_DB_PIDX3_S)
  224. #define ERR_BAD_DB_PIDX3_F ERR_BAD_DB_PIDX3_V(1U)
  225. #define ERR_BAD_DB_PIDX2_S 14
  226. #define ERR_BAD_DB_PIDX2_V(x) ((x) << ERR_BAD_DB_PIDX2_S)
  227. #define ERR_BAD_DB_PIDX2_F ERR_BAD_DB_PIDX2_V(1U)
  228. #define ERR_BAD_DB_PIDX1_S 13
  229. #define ERR_BAD_DB_PIDX1_V(x) ((x) << ERR_BAD_DB_PIDX1_S)
  230. #define ERR_BAD_DB_PIDX1_F ERR_BAD_DB_PIDX1_V(1U)
  231. #define ERR_BAD_DB_PIDX0_S 12
  232. #define ERR_BAD_DB_PIDX0_V(x) ((x) << ERR_BAD_DB_PIDX0_S)
  233. #define ERR_BAD_DB_PIDX0_F ERR_BAD_DB_PIDX0_V(1U)
  234. #define ERR_ING_CTXT_PRIO_S 10
  235. #define ERR_ING_CTXT_PRIO_V(x) ((x) << ERR_ING_CTXT_PRIO_S)
  236. #define ERR_ING_CTXT_PRIO_F ERR_ING_CTXT_PRIO_V(1U)
  237. #define ERR_EGR_CTXT_PRIO_S 9
  238. #define ERR_EGR_CTXT_PRIO_V(x) ((x) << ERR_EGR_CTXT_PRIO_S)
  239. #define ERR_EGR_CTXT_PRIO_F ERR_EGR_CTXT_PRIO_V(1U)
  240. #define DBFIFO_HP_INT_S 8
  241. #define DBFIFO_HP_INT_V(x) ((x) << DBFIFO_HP_INT_S)
  242. #define DBFIFO_HP_INT_F DBFIFO_HP_INT_V(1U)
  243. #define DBFIFO_LP_INT_S 7
  244. #define DBFIFO_LP_INT_V(x) ((x) << DBFIFO_LP_INT_S)
  245. #define DBFIFO_LP_INT_F DBFIFO_LP_INT_V(1U)
  246. #define INGRESS_SIZE_ERR_S 5
  247. #define INGRESS_SIZE_ERR_V(x) ((x) << INGRESS_SIZE_ERR_S)
  248. #define INGRESS_SIZE_ERR_F INGRESS_SIZE_ERR_V(1U)
  249. #define EGRESS_SIZE_ERR_S 4
  250. #define EGRESS_SIZE_ERR_V(x) ((x) << EGRESS_SIZE_ERR_S)
  251. #define EGRESS_SIZE_ERR_F EGRESS_SIZE_ERR_V(1U)
  252. #define SGE_INT_ENABLE3_A 0x1040
  253. #define SGE_FL_BUFFER_SIZE0_A 0x1044
  254. #define SGE_FL_BUFFER_SIZE1_A 0x1048
  255. #define SGE_FL_BUFFER_SIZE2_A 0x104c
  256. #define SGE_FL_BUFFER_SIZE3_A 0x1050
  257. #define SGE_FL_BUFFER_SIZE4_A 0x1054
  258. #define SGE_FL_BUFFER_SIZE5_A 0x1058
  259. #define SGE_FL_BUFFER_SIZE6_A 0x105c
  260. #define SGE_FL_BUFFER_SIZE7_A 0x1060
  261. #define SGE_FL_BUFFER_SIZE8_A 0x1064
  262. #define SGE_IMSG_CTXT_BADDR_A 0x1088
  263. #define SGE_FLM_CACHE_BADDR_A 0x108c
  264. #define SGE_FLM_CFG_A 0x1090
  265. #define NOHDR_S 18
  266. #define NOHDR_V(x) ((x) << NOHDR_S)
  267. #define NOHDR_F NOHDR_V(1U)
  268. #define HDRSTARTFLQ_S 11
  269. #define HDRSTARTFLQ_M 0x7U
  270. #define HDRSTARTFLQ_G(x) (((x) >> HDRSTARTFLQ_S) & HDRSTARTFLQ_M)
  271. #define SGE_INGRESS_RX_THRESHOLD_A 0x10a0
  272. #define THRESHOLD_0_S 24
  273. #define THRESHOLD_0_M 0x3fU
  274. #define THRESHOLD_0_V(x) ((x) << THRESHOLD_0_S)
  275. #define THRESHOLD_0_G(x) (((x) >> THRESHOLD_0_S) & THRESHOLD_0_M)
  276. #define THRESHOLD_1_S 16
  277. #define THRESHOLD_1_M 0x3fU
  278. #define THRESHOLD_1_V(x) ((x) << THRESHOLD_1_S)
  279. #define THRESHOLD_1_G(x) (((x) >> THRESHOLD_1_S) & THRESHOLD_1_M)
  280. #define THRESHOLD_2_S 8
  281. #define THRESHOLD_2_M 0x3fU
  282. #define THRESHOLD_2_V(x) ((x) << THRESHOLD_2_S)
  283. #define THRESHOLD_2_G(x) (((x) >> THRESHOLD_2_S) & THRESHOLD_2_M)
  284. #define THRESHOLD_3_S 0
  285. #define THRESHOLD_3_M 0x3fU
  286. #define THRESHOLD_3_V(x) ((x) << THRESHOLD_3_S)
  287. #define THRESHOLD_3_G(x) (((x) >> THRESHOLD_3_S) & THRESHOLD_3_M)
  288. #define SGE_CONM_CTRL_A 0x1094
  289. #define EGRTHRESHOLD_S 8
  290. #define EGRTHRESHOLD_M 0x3fU
  291. #define EGRTHRESHOLD_V(x) ((x) << EGRTHRESHOLD_S)
  292. #define EGRTHRESHOLD_G(x) (((x) >> EGRTHRESHOLD_S) & EGRTHRESHOLD_M)
  293. #define EGRTHRESHOLDPACKING_S 14
  294. #define EGRTHRESHOLDPACKING_M 0x3fU
  295. #define EGRTHRESHOLDPACKING_V(x) ((x) << EGRTHRESHOLDPACKING_S)
  296. #define EGRTHRESHOLDPACKING_G(x) \
  297. (((x) >> EGRTHRESHOLDPACKING_S) & EGRTHRESHOLDPACKING_M)
  298. #define T6_EGRTHRESHOLDPACKING_S 16
  299. #define T6_EGRTHRESHOLDPACKING_M 0xffU
  300. #define T6_EGRTHRESHOLDPACKING_G(x) \
  301. (((x) >> T6_EGRTHRESHOLDPACKING_S) & T6_EGRTHRESHOLDPACKING_M)
  302. #define SGE_TIMESTAMP_LO_A 0x1098
  303. #define SGE_TIMESTAMP_HI_A 0x109c
  304. #define TSOP_S 28
  305. #define TSOP_M 0x3U
  306. #define TSOP_V(x) ((x) << TSOP_S)
  307. #define TSOP_G(x) (((x) >> TSOP_S) & TSOP_M)
  308. #define TSVAL_S 0
  309. #define TSVAL_M 0xfffffffU
  310. #define TSVAL_V(x) ((x) << TSVAL_S)
  311. #define TSVAL_G(x) (((x) >> TSVAL_S) & TSVAL_M)
  312. #define SGE_DBFIFO_STATUS_A 0x10a4
  313. #define SGE_DBVFIFO_SIZE_A 0x113c
  314. #define HP_INT_THRESH_S 28
  315. #define HP_INT_THRESH_M 0xfU
  316. #define HP_INT_THRESH_V(x) ((x) << HP_INT_THRESH_S)
  317. #define LP_INT_THRESH_S 12
  318. #define LP_INT_THRESH_M 0xfU
  319. #define LP_INT_THRESH_V(x) ((x) << LP_INT_THRESH_S)
  320. #define SGE_DOORBELL_CONTROL_A 0x10a8
  321. #define NOCOALESCE_S 26
  322. #define NOCOALESCE_V(x) ((x) << NOCOALESCE_S)
  323. #define NOCOALESCE_F NOCOALESCE_V(1U)
  324. #define ENABLE_DROP_S 13
  325. #define ENABLE_DROP_V(x) ((x) << ENABLE_DROP_S)
  326. #define ENABLE_DROP_F ENABLE_DROP_V(1U)
  327. #define SGE_TIMER_VALUE_0_AND_1_A 0x10b8
  328. #define TIMERVALUE0_S 16
  329. #define TIMERVALUE0_M 0xffffU
  330. #define TIMERVALUE0_V(x) ((x) << TIMERVALUE0_S)
  331. #define TIMERVALUE0_G(x) (((x) >> TIMERVALUE0_S) & TIMERVALUE0_M)
  332. #define TIMERVALUE1_S 0
  333. #define TIMERVALUE1_M 0xffffU
  334. #define TIMERVALUE1_V(x) ((x) << TIMERVALUE1_S)
  335. #define TIMERVALUE1_G(x) (((x) >> TIMERVALUE1_S) & TIMERVALUE1_M)
  336. #define SGE_TIMER_VALUE_2_AND_3_A 0x10bc
  337. #define TIMERVALUE2_S 16
  338. #define TIMERVALUE2_M 0xffffU
  339. #define TIMERVALUE2_V(x) ((x) << TIMERVALUE2_S)
  340. #define TIMERVALUE2_G(x) (((x) >> TIMERVALUE2_S) & TIMERVALUE2_M)
  341. #define TIMERVALUE3_S 0
  342. #define TIMERVALUE3_M 0xffffU
  343. #define TIMERVALUE3_V(x) ((x) << TIMERVALUE3_S)
  344. #define TIMERVALUE3_G(x) (((x) >> TIMERVALUE3_S) & TIMERVALUE3_M)
  345. #define SGE_TIMER_VALUE_4_AND_5_A 0x10c0
  346. #define TIMERVALUE4_S 16
  347. #define TIMERVALUE4_M 0xffffU
  348. #define TIMERVALUE4_V(x) ((x) << TIMERVALUE4_S)
  349. #define TIMERVALUE4_G(x) (((x) >> TIMERVALUE4_S) & TIMERVALUE4_M)
  350. #define TIMERVALUE5_S 0
  351. #define TIMERVALUE5_M 0xffffU
  352. #define TIMERVALUE5_V(x) ((x) << TIMERVALUE5_S)
  353. #define TIMERVALUE5_G(x) (((x) >> TIMERVALUE5_S) & TIMERVALUE5_M)
  354. #define SGE_DEBUG_INDEX_A 0x10cc
  355. #define SGE_DEBUG_DATA_HIGH_A 0x10d0
  356. #define SGE_DEBUG_DATA_LOW_A 0x10d4
  357. #define SGE_DEBUG_DATA_LOW_INDEX_2_A 0x12c8
  358. #define SGE_DEBUG_DATA_LOW_INDEX_3_A 0x12cc
  359. #define SGE_DEBUG_DATA_HIGH_INDEX_10_A 0x12a8
  360. #define SGE_INGRESS_QUEUES_PER_PAGE_PF_A 0x10f4
  361. #define SGE_INGRESS_QUEUES_PER_PAGE_VF_A 0x10f8
  362. #define SGE_ERROR_STATS_A 0x1100
  363. #define UNCAPTURED_ERROR_S 18
  364. #define UNCAPTURED_ERROR_V(x) ((x) << UNCAPTURED_ERROR_S)
  365. #define UNCAPTURED_ERROR_F UNCAPTURED_ERROR_V(1U)
  366. #define ERROR_QID_VALID_S 17
  367. #define ERROR_QID_VALID_V(x) ((x) << ERROR_QID_VALID_S)
  368. #define ERROR_QID_VALID_F ERROR_QID_VALID_V(1U)
  369. #define ERROR_QID_S 0
  370. #define ERROR_QID_M 0x1ffffU
  371. #define ERROR_QID_G(x) (((x) >> ERROR_QID_S) & ERROR_QID_M)
  372. #define HP_INT_THRESH_S 28
  373. #define HP_INT_THRESH_M 0xfU
  374. #define HP_INT_THRESH_V(x) ((x) << HP_INT_THRESH_S)
  375. #define HP_COUNT_S 16
  376. #define HP_COUNT_M 0x7ffU
  377. #define HP_COUNT_G(x) (((x) >> HP_COUNT_S) & HP_COUNT_M)
  378. #define LP_INT_THRESH_S 12
  379. #define LP_INT_THRESH_M 0xfU
  380. #define LP_INT_THRESH_V(x) ((x) << LP_INT_THRESH_S)
  381. #define LP_COUNT_S 0
  382. #define LP_COUNT_M 0x7ffU
  383. #define LP_COUNT_G(x) (((x) >> LP_COUNT_S) & LP_COUNT_M)
  384. #define LP_INT_THRESH_T5_S 18
  385. #define LP_INT_THRESH_T5_M 0xfffU
  386. #define LP_INT_THRESH_T5_V(x) ((x) << LP_INT_THRESH_T5_S)
  387. #define LP_COUNT_T5_S 0
  388. #define LP_COUNT_T5_M 0x3ffffU
  389. #define LP_COUNT_T5_G(x) (((x) >> LP_COUNT_T5_S) & LP_COUNT_T5_M)
  390. #define SGE_DOORBELL_CONTROL_A 0x10a8
  391. #define SGE_STAT_TOTAL_A 0x10e4
  392. #define SGE_STAT_MATCH_A 0x10e8
  393. #define SGE_STAT_CFG_A 0x10ec
  394. #define STATMODE_S 2
  395. #define STATMODE_V(x) ((x) << STATMODE_S)
  396. #define STATSOURCE_T5_S 9
  397. #define STATSOURCE_T5_M 0xfU
  398. #define STATSOURCE_T5_V(x) ((x) << STATSOURCE_T5_S)
  399. #define STATSOURCE_T5_G(x) (((x) >> STATSOURCE_T5_S) & STATSOURCE_T5_M)
  400. #define T6_STATMODE_S 0
  401. #define T6_STATMODE_V(x) ((x) << T6_STATMODE_S)
  402. #define SGE_DBFIFO_STATUS2_A 0x1118
  403. #define HP_INT_THRESH_T5_S 10
  404. #define HP_INT_THRESH_T5_M 0xfU
  405. #define HP_INT_THRESH_T5_V(x) ((x) << HP_INT_THRESH_T5_S)
  406. #define HP_COUNT_T5_S 0
  407. #define HP_COUNT_T5_M 0x3ffU
  408. #define HP_COUNT_T5_G(x) (((x) >> HP_COUNT_T5_S) & HP_COUNT_T5_M)
  409. #define ENABLE_DROP_S 13
  410. #define ENABLE_DROP_V(x) ((x) << ENABLE_DROP_S)
  411. #define ENABLE_DROP_F ENABLE_DROP_V(1U)
  412. #define DROPPED_DB_S 0
  413. #define DROPPED_DB_V(x) ((x) << DROPPED_DB_S)
  414. #define DROPPED_DB_F DROPPED_DB_V(1U)
  415. #define SGE_CTXT_CMD_A 0x11fc
  416. #define SGE_DBQ_CTXT_BADDR_A 0x1084
  417. /* registers for module PCIE */
  418. #define PCIE_PF_CFG_A 0x40
  419. #define AIVEC_S 4
  420. #define AIVEC_M 0x3ffU
  421. #define AIVEC_V(x) ((x) << AIVEC_S)
  422. #define PCIE_PF_CLI_A 0x44
  423. #define PCIE_INT_CAUSE_A 0x3004
  424. #define UNXSPLCPLERR_S 29
  425. #define UNXSPLCPLERR_V(x) ((x) << UNXSPLCPLERR_S)
  426. #define UNXSPLCPLERR_F UNXSPLCPLERR_V(1U)
  427. #define PCIEPINT_S 28
  428. #define PCIEPINT_V(x) ((x) << PCIEPINT_S)
  429. #define PCIEPINT_F PCIEPINT_V(1U)
  430. #define PCIESINT_S 27
  431. #define PCIESINT_V(x) ((x) << PCIESINT_S)
  432. #define PCIESINT_F PCIESINT_V(1U)
  433. #define RPLPERR_S 26
  434. #define RPLPERR_V(x) ((x) << RPLPERR_S)
  435. #define RPLPERR_F RPLPERR_V(1U)
  436. #define RXWRPERR_S 25
  437. #define RXWRPERR_V(x) ((x) << RXWRPERR_S)
  438. #define RXWRPERR_F RXWRPERR_V(1U)
  439. #define RXCPLPERR_S 24
  440. #define RXCPLPERR_V(x) ((x) << RXCPLPERR_S)
  441. #define RXCPLPERR_F RXCPLPERR_V(1U)
  442. #define PIOTAGPERR_S 23
  443. #define PIOTAGPERR_V(x) ((x) << PIOTAGPERR_S)
  444. #define PIOTAGPERR_F PIOTAGPERR_V(1U)
  445. #define MATAGPERR_S 22
  446. #define MATAGPERR_V(x) ((x) << MATAGPERR_S)
  447. #define MATAGPERR_F MATAGPERR_V(1U)
  448. #define INTXCLRPERR_S 21
  449. #define INTXCLRPERR_V(x) ((x) << INTXCLRPERR_S)
  450. #define INTXCLRPERR_F INTXCLRPERR_V(1U)
  451. #define FIDPERR_S 20
  452. #define FIDPERR_V(x) ((x) << FIDPERR_S)
  453. #define FIDPERR_F FIDPERR_V(1U)
  454. #define CFGSNPPERR_S 19
  455. #define CFGSNPPERR_V(x) ((x) << CFGSNPPERR_S)
  456. #define CFGSNPPERR_F CFGSNPPERR_V(1U)
  457. #define HRSPPERR_S 18
  458. #define HRSPPERR_V(x) ((x) << HRSPPERR_S)
  459. #define HRSPPERR_F HRSPPERR_V(1U)
  460. #define HREQPERR_S 17
  461. #define HREQPERR_V(x) ((x) << HREQPERR_S)
  462. #define HREQPERR_F HREQPERR_V(1U)
  463. #define HCNTPERR_S 16
  464. #define HCNTPERR_V(x) ((x) << HCNTPERR_S)
  465. #define HCNTPERR_F HCNTPERR_V(1U)
  466. #define DRSPPERR_S 15
  467. #define DRSPPERR_V(x) ((x) << DRSPPERR_S)
  468. #define DRSPPERR_F DRSPPERR_V(1U)
  469. #define DREQPERR_S 14
  470. #define DREQPERR_V(x) ((x) << DREQPERR_S)
  471. #define DREQPERR_F DREQPERR_V(1U)
  472. #define DCNTPERR_S 13
  473. #define DCNTPERR_V(x) ((x) << DCNTPERR_S)
  474. #define DCNTPERR_F DCNTPERR_V(1U)
  475. #define CRSPPERR_S 12
  476. #define CRSPPERR_V(x) ((x) << CRSPPERR_S)
  477. #define CRSPPERR_F CRSPPERR_V(1U)
  478. #define CREQPERR_S 11
  479. #define CREQPERR_V(x) ((x) << CREQPERR_S)
  480. #define CREQPERR_F CREQPERR_V(1U)
  481. #define CCNTPERR_S 10
  482. #define CCNTPERR_V(x) ((x) << CCNTPERR_S)
  483. #define CCNTPERR_F CCNTPERR_V(1U)
  484. #define TARTAGPERR_S 9
  485. #define TARTAGPERR_V(x) ((x) << TARTAGPERR_S)
  486. #define TARTAGPERR_F TARTAGPERR_V(1U)
  487. #define PIOREQPERR_S 8
  488. #define PIOREQPERR_V(x) ((x) << PIOREQPERR_S)
  489. #define PIOREQPERR_F PIOREQPERR_V(1U)
  490. #define PIOCPLPERR_S 7
  491. #define PIOCPLPERR_V(x) ((x) << PIOCPLPERR_S)
  492. #define PIOCPLPERR_F PIOCPLPERR_V(1U)
  493. #define MSIXDIPERR_S 6
  494. #define MSIXDIPERR_V(x) ((x) << MSIXDIPERR_S)
  495. #define MSIXDIPERR_F MSIXDIPERR_V(1U)
  496. #define MSIXDATAPERR_S 5
  497. #define MSIXDATAPERR_V(x) ((x) << MSIXDATAPERR_S)
  498. #define MSIXDATAPERR_F MSIXDATAPERR_V(1U)
  499. #define MSIXADDRHPERR_S 4
  500. #define MSIXADDRHPERR_V(x) ((x) << MSIXADDRHPERR_S)
  501. #define MSIXADDRHPERR_F MSIXADDRHPERR_V(1U)
  502. #define MSIXADDRLPERR_S 3
  503. #define MSIXADDRLPERR_V(x) ((x) << MSIXADDRLPERR_S)
  504. #define MSIXADDRLPERR_F MSIXADDRLPERR_V(1U)
  505. #define MSIDATAPERR_S 2
  506. #define MSIDATAPERR_V(x) ((x) << MSIDATAPERR_S)
  507. #define MSIDATAPERR_F MSIDATAPERR_V(1U)
  508. #define MSIADDRHPERR_S 1
  509. #define MSIADDRHPERR_V(x) ((x) << MSIADDRHPERR_S)
  510. #define MSIADDRHPERR_F MSIADDRHPERR_V(1U)
  511. #define MSIADDRLPERR_S 0
  512. #define MSIADDRLPERR_V(x) ((x) << MSIADDRLPERR_S)
  513. #define MSIADDRLPERR_F MSIADDRLPERR_V(1U)
  514. #define READRSPERR_S 29
  515. #define READRSPERR_V(x) ((x) << READRSPERR_S)
  516. #define READRSPERR_F READRSPERR_V(1U)
  517. #define TRGT1GRPPERR_S 28
  518. #define TRGT1GRPPERR_V(x) ((x) << TRGT1GRPPERR_S)
  519. #define TRGT1GRPPERR_F TRGT1GRPPERR_V(1U)
  520. #define IPSOTPERR_S 27
  521. #define IPSOTPERR_V(x) ((x) << IPSOTPERR_S)
  522. #define IPSOTPERR_F IPSOTPERR_V(1U)
  523. #define IPRETRYPERR_S 26
  524. #define IPRETRYPERR_V(x) ((x) << IPRETRYPERR_S)
  525. #define IPRETRYPERR_F IPRETRYPERR_V(1U)
  526. #define IPRXDATAGRPPERR_S 25
  527. #define IPRXDATAGRPPERR_V(x) ((x) << IPRXDATAGRPPERR_S)
  528. #define IPRXDATAGRPPERR_F IPRXDATAGRPPERR_V(1U)
  529. #define IPRXHDRGRPPERR_S 24
  530. #define IPRXHDRGRPPERR_V(x) ((x) << IPRXHDRGRPPERR_S)
  531. #define IPRXHDRGRPPERR_F IPRXHDRGRPPERR_V(1U)
  532. #define MAGRPPERR_S 22
  533. #define MAGRPPERR_V(x) ((x) << MAGRPPERR_S)
  534. #define MAGRPPERR_F MAGRPPERR_V(1U)
  535. #define VFIDPERR_S 21
  536. #define VFIDPERR_V(x) ((x) << VFIDPERR_S)
  537. #define VFIDPERR_F VFIDPERR_V(1U)
  538. #define HREQWRPERR_S 16
  539. #define HREQWRPERR_V(x) ((x) << HREQWRPERR_S)
  540. #define HREQWRPERR_F HREQWRPERR_V(1U)
  541. #define DREQWRPERR_S 13
  542. #define DREQWRPERR_V(x) ((x) << DREQWRPERR_S)
  543. #define DREQWRPERR_F DREQWRPERR_V(1U)
  544. #define CREQRDPERR_S 11
  545. #define CREQRDPERR_V(x) ((x) << CREQRDPERR_S)
  546. #define CREQRDPERR_F CREQRDPERR_V(1U)
  547. #define MSTTAGQPERR_S 10
  548. #define MSTTAGQPERR_V(x) ((x) << MSTTAGQPERR_S)
  549. #define MSTTAGQPERR_F MSTTAGQPERR_V(1U)
  550. #define PIOREQGRPPERR_S 8
  551. #define PIOREQGRPPERR_V(x) ((x) << PIOREQGRPPERR_S)
  552. #define PIOREQGRPPERR_F PIOREQGRPPERR_V(1U)
  553. #define PIOCPLGRPPERR_S 7
  554. #define PIOCPLGRPPERR_V(x) ((x) << PIOCPLGRPPERR_S)
  555. #define PIOCPLGRPPERR_F PIOCPLGRPPERR_V(1U)
  556. #define MSIXSTIPERR_S 2
  557. #define MSIXSTIPERR_V(x) ((x) << MSIXSTIPERR_S)
  558. #define MSIXSTIPERR_F MSIXSTIPERR_V(1U)
  559. #define MSTTIMEOUTPERR_S 1
  560. #define MSTTIMEOUTPERR_V(x) ((x) << MSTTIMEOUTPERR_S)
  561. #define MSTTIMEOUTPERR_F MSTTIMEOUTPERR_V(1U)
  562. #define MSTGRPPERR_S 0
  563. #define MSTGRPPERR_V(x) ((x) << MSTGRPPERR_S)
  564. #define MSTGRPPERR_F MSTGRPPERR_V(1U)
  565. #define PCIE_NONFAT_ERR_A 0x3010
  566. #define PCIE_CFG_SPACE_REQ_A 0x3060
  567. #define PCIE_CFG_SPACE_DATA_A 0x3064
  568. #define PCIE_MEM_ACCESS_BASE_WIN_A 0x3068
  569. #define PCIEOFST_S 10
  570. #define PCIEOFST_M 0x3fffffU
  571. #define PCIEOFST_G(x) (((x) >> PCIEOFST_S) & PCIEOFST_M)
  572. #define BIR_S 8
  573. #define BIR_M 0x3U
  574. #define BIR_V(x) ((x) << BIR_S)
  575. #define BIR_G(x) (((x) >> BIR_S) & BIR_M)
  576. #define WINDOW_S 0
  577. #define WINDOW_M 0xffU
  578. #define WINDOW_V(x) ((x) << WINDOW_S)
  579. #define WINDOW_G(x) (((x) >> WINDOW_S) & WINDOW_M)
  580. #define PCIE_MEM_ACCESS_OFFSET_A 0x306c
  581. #define ENABLE_S 30
  582. #define ENABLE_V(x) ((x) << ENABLE_S)
  583. #define ENABLE_F ENABLE_V(1U)
  584. #define LOCALCFG_S 28
  585. #define LOCALCFG_V(x) ((x) << LOCALCFG_S)
  586. #define LOCALCFG_F LOCALCFG_V(1U)
  587. #define FUNCTION_S 12
  588. #define FUNCTION_V(x) ((x) << FUNCTION_S)
  589. #define REGISTER_S 0
  590. #define REGISTER_V(x) ((x) << REGISTER_S)
  591. #define T6_ENABLE_S 31
  592. #define T6_ENABLE_V(x) ((x) << T6_ENABLE_S)
  593. #define T6_ENABLE_F T6_ENABLE_V(1U)
  594. #define PFNUM_S 0
  595. #define PFNUM_V(x) ((x) << PFNUM_S)
  596. #define PCIE_FW_A 0x30b8
  597. #define PCIE_FW_PF_A 0x30bc
  598. #define PCIE_CORE_UTL_SYSTEM_BUS_AGENT_STATUS_A 0x5908
  599. #define RNPP_S 31
  600. #define RNPP_V(x) ((x) << RNPP_S)
  601. #define RNPP_F RNPP_V(1U)
  602. #define RPCP_S 29
  603. #define RPCP_V(x) ((x) << RPCP_S)
  604. #define RPCP_F RPCP_V(1U)
  605. #define RCIP_S 27
  606. #define RCIP_V(x) ((x) << RCIP_S)
  607. #define RCIP_F RCIP_V(1U)
  608. #define RCCP_S 26
  609. #define RCCP_V(x) ((x) << RCCP_S)
  610. #define RCCP_F RCCP_V(1U)
  611. #define RFTP_S 23
  612. #define RFTP_V(x) ((x) << RFTP_S)
  613. #define RFTP_F RFTP_V(1U)
  614. #define PTRP_S 20
  615. #define PTRP_V(x) ((x) << PTRP_S)
  616. #define PTRP_F PTRP_V(1U)
  617. #define PCIE_CORE_UTL_PCI_EXPRESS_PORT_STATUS_A 0x59a4
  618. #define TPCP_S 30
  619. #define TPCP_V(x) ((x) << TPCP_S)
  620. #define TPCP_F TPCP_V(1U)
  621. #define TNPP_S 29
  622. #define TNPP_V(x) ((x) << TNPP_S)
  623. #define TNPP_F TNPP_V(1U)
  624. #define TFTP_S 28
  625. #define TFTP_V(x) ((x) << TFTP_S)
  626. #define TFTP_F TFTP_V(1U)
  627. #define TCAP_S 27
  628. #define TCAP_V(x) ((x) << TCAP_S)
  629. #define TCAP_F TCAP_V(1U)
  630. #define TCIP_S 26
  631. #define TCIP_V(x) ((x) << TCIP_S)
  632. #define TCIP_F TCIP_V(1U)
  633. #define RCAP_S 25
  634. #define RCAP_V(x) ((x) << RCAP_S)
  635. #define RCAP_F RCAP_V(1U)
  636. #define PLUP_S 23
  637. #define PLUP_V(x) ((x) << PLUP_S)
  638. #define PLUP_F PLUP_V(1U)
  639. #define PLDN_S 22
  640. #define PLDN_V(x) ((x) << PLDN_S)
  641. #define PLDN_F PLDN_V(1U)
  642. #define OTDD_S 21
  643. #define OTDD_V(x) ((x) << OTDD_S)
  644. #define OTDD_F OTDD_V(1U)
  645. #define GTRP_S 20
  646. #define GTRP_V(x) ((x) << GTRP_S)
  647. #define GTRP_F GTRP_V(1U)
  648. #define RDPE_S 18
  649. #define RDPE_V(x) ((x) << RDPE_S)
  650. #define RDPE_F RDPE_V(1U)
  651. #define TDCE_S 17
  652. #define TDCE_V(x) ((x) << TDCE_S)
  653. #define TDCE_F TDCE_V(1U)
  654. #define TDUE_S 16
  655. #define TDUE_V(x) ((x) << TDUE_S)
  656. #define TDUE_F TDUE_V(1U)
  657. /* registers for module MC */
  658. #define MC_INT_CAUSE_A 0x7518
  659. #define MC_P_INT_CAUSE_A 0x41318
  660. #define ECC_UE_INT_CAUSE_S 2
  661. #define ECC_UE_INT_CAUSE_V(x) ((x) << ECC_UE_INT_CAUSE_S)
  662. #define ECC_UE_INT_CAUSE_F ECC_UE_INT_CAUSE_V(1U)
  663. #define ECC_CE_INT_CAUSE_S 1
  664. #define ECC_CE_INT_CAUSE_V(x) ((x) << ECC_CE_INT_CAUSE_S)
  665. #define ECC_CE_INT_CAUSE_F ECC_CE_INT_CAUSE_V(1U)
  666. #define PERR_INT_CAUSE_S 0
  667. #define PERR_INT_CAUSE_V(x) ((x) << PERR_INT_CAUSE_S)
  668. #define PERR_INT_CAUSE_F PERR_INT_CAUSE_V(1U)
  669. #define DBG_GPIO_EN_A 0x6010
  670. #define XGMAC_PORT_CFG_A 0x1000
  671. #define MAC_PORT_CFG_A 0x800
  672. #define SIGNAL_DET_S 14
  673. #define SIGNAL_DET_V(x) ((x) << SIGNAL_DET_S)
  674. #define SIGNAL_DET_F SIGNAL_DET_V(1U)
  675. #define MC_ECC_STATUS_A 0x751c
  676. #define MC_P_ECC_STATUS_A 0x4131c
  677. #define ECC_CECNT_S 16
  678. #define ECC_CECNT_M 0xffffU
  679. #define ECC_CECNT_V(x) ((x) << ECC_CECNT_S)
  680. #define ECC_CECNT_G(x) (((x) >> ECC_CECNT_S) & ECC_CECNT_M)
  681. #define ECC_UECNT_S 0
  682. #define ECC_UECNT_M 0xffffU
  683. #define ECC_UECNT_V(x) ((x) << ECC_UECNT_S)
  684. #define ECC_UECNT_G(x) (((x) >> ECC_UECNT_S) & ECC_UECNT_M)
  685. #define MC_BIST_CMD_A 0x7600
  686. #define START_BIST_S 31
  687. #define START_BIST_V(x) ((x) << START_BIST_S)
  688. #define START_BIST_F START_BIST_V(1U)
  689. #define BIST_CMD_GAP_S 8
  690. #define BIST_CMD_GAP_V(x) ((x) << BIST_CMD_GAP_S)
  691. #define BIST_OPCODE_S 0
  692. #define BIST_OPCODE_V(x) ((x) << BIST_OPCODE_S)
  693. #define MC_BIST_CMD_ADDR_A 0x7604
  694. #define MC_BIST_CMD_LEN_A 0x7608
  695. #define MC_BIST_DATA_PATTERN_A 0x760c
  696. #define MC_BIST_STATUS_RDATA_A 0x7688
  697. /* registers for module MA */
  698. #define MA_EDRAM0_BAR_A 0x77c0
  699. #define EDRAM0_BASE_S 16
  700. #define EDRAM0_BASE_M 0xfffU
  701. #define EDRAM0_BASE_G(x) (((x) >> EDRAM0_BASE_S) & EDRAM0_BASE_M)
  702. #define EDRAM0_SIZE_S 0
  703. #define EDRAM0_SIZE_M 0xfffU
  704. #define EDRAM0_SIZE_V(x) ((x) << EDRAM0_SIZE_S)
  705. #define EDRAM0_SIZE_G(x) (((x) >> EDRAM0_SIZE_S) & EDRAM0_SIZE_M)
  706. #define MA_EDRAM1_BAR_A 0x77c4
  707. #define EDRAM1_BASE_S 16
  708. #define EDRAM1_BASE_M 0xfffU
  709. #define EDRAM1_BASE_G(x) (((x) >> EDRAM1_BASE_S) & EDRAM1_BASE_M)
  710. #define EDRAM1_SIZE_S 0
  711. #define EDRAM1_SIZE_M 0xfffU
  712. #define EDRAM1_SIZE_V(x) ((x) << EDRAM1_SIZE_S)
  713. #define EDRAM1_SIZE_G(x) (((x) >> EDRAM1_SIZE_S) & EDRAM1_SIZE_M)
  714. #define MA_EXT_MEMORY_BAR_A 0x77c8
  715. #define EXT_MEM_BASE_S 16
  716. #define EXT_MEM_BASE_M 0xfffU
  717. #define EXT_MEM_BASE_V(x) ((x) << EXT_MEM_BASE_S)
  718. #define EXT_MEM_BASE_G(x) (((x) >> EXT_MEM_BASE_S) & EXT_MEM_BASE_M)
  719. #define EXT_MEM_SIZE_S 0
  720. #define EXT_MEM_SIZE_M 0xfffU
  721. #define EXT_MEM_SIZE_V(x) ((x) << EXT_MEM_SIZE_S)
  722. #define EXT_MEM_SIZE_G(x) (((x) >> EXT_MEM_SIZE_S) & EXT_MEM_SIZE_M)
  723. #define MA_EXT_MEMORY1_BAR_A 0x7808
  724. #define HMA_MUX_S 5
  725. #define HMA_MUX_V(x) ((x) << HMA_MUX_S)
  726. #define HMA_MUX_F HMA_MUX_V(1U)
  727. #define EXT_MEM1_BASE_S 16
  728. #define EXT_MEM1_BASE_M 0xfffU
  729. #define EXT_MEM1_BASE_G(x) (((x) >> EXT_MEM1_BASE_S) & EXT_MEM1_BASE_M)
  730. #define EXT_MEM1_SIZE_S 0
  731. #define EXT_MEM1_SIZE_M 0xfffU
  732. #define EXT_MEM1_SIZE_V(x) ((x) << EXT_MEM1_SIZE_S)
  733. #define EXT_MEM1_SIZE_G(x) (((x) >> EXT_MEM1_SIZE_S) & EXT_MEM1_SIZE_M)
  734. #define MA_EXT_MEMORY0_BAR_A 0x77c8
  735. #define EXT_MEM0_BASE_S 16
  736. #define EXT_MEM0_BASE_M 0xfffU
  737. #define EXT_MEM0_BASE_G(x) (((x) >> EXT_MEM0_BASE_S) & EXT_MEM0_BASE_M)
  738. #define EXT_MEM0_SIZE_S 0
  739. #define EXT_MEM0_SIZE_M 0xfffU
  740. #define EXT_MEM0_SIZE_V(x) ((x) << EXT_MEM0_SIZE_S)
  741. #define EXT_MEM0_SIZE_G(x) (((x) >> EXT_MEM0_SIZE_S) & EXT_MEM0_SIZE_M)
  742. #define MA_TARGET_MEM_ENABLE_A 0x77d8
  743. #define EXT_MEM_ENABLE_S 2
  744. #define EXT_MEM_ENABLE_V(x) ((x) << EXT_MEM_ENABLE_S)
  745. #define EXT_MEM_ENABLE_F EXT_MEM_ENABLE_V(1U)
  746. #define EDRAM1_ENABLE_S 1
  747. #define EDRAM1_ENABLE_V(x) ((x) << EDRAM1_ENABLE_S)
  748. #define EDRAM1_ENABLE_F EDRAM1_ENABLE_V(1U)
  749. #define EDRAM0_ENABLE_S 0
  750. #define EDRAM0_ENABLE_V(x) ((x) << EDRAM0_ENABLE_S)
  751. #define EDRAM0_ENABLE_F EDRAM0_ENABLE_V(1U)
  752. #define EXT_MEM1_ENABLE_S 4
  753. #define EXT_MEM1_ENABLE_V(x) ((x) << EXT_MEM1_ENABLE_S)
  754. #define EXT_MEM1_ENABLE_F EXT_MEM1_ENABLE_V(1U)
  755. #define EXT_MEM0_ENABLE_S 2
  756. #define EXT_MEM0_ENABLE_V(x) ((x) << EXT_MEM0_ENABLE_S)
  757. #define EXT_MEM0_ENABLE_F EXT_MEM0_ENABLE_V(1U)
  758. #define MA_INT_CAUSE_A 0x77e0
  759. #define MEM_PERR_INT_CAUSE_S 1
  760. #define MEM_PERR_INT_CAUSE_V(x) ((x) << MEM_PERR_INT_CAUSE_S)
  761. #define MEM_PERR_INT_CAUSE_F MEM_PERR_INT_CAUSE_V(1U)
  762. #define MEM_WRAP_INT_CAUSE_S 0
  763. #define MEM_WRAP_INT_CAUSE_V(x) ((x) << MEM_WRAP_INT_CAUSE_S)
  764. #define MEM_WRAP_INT_CAUSE_F MEM_WRAP_INT_CAUSE_V(1U)
  765. #define MA_INT_WRAP_STATUS_A 0x77e4
  766. #define MEM_WRAP_ADDRESS_S 4
  767. #define MEM_WRAP_ADDRESS_M 0xfffffffU
  768. #define MEM_WRAP_ADDRESS_G(x) (((x) >> MEM_WRAP_ADDRESS_S) & MEM_WRAP_ADDRESS_M)
  769. #define MEM_WRAP_CLIENT_NUM_S 0
  770. #define MEM_WRAP_CLIENT_NUM_M 0xfU
  771. #define MEM_WRAP_CLIENT_NUM_G(x) \
  772. (((x) >> MEM_WRAP_CLIENT_NUM_S) & MEM_WRAP_CLIENT_NUM_M)
  773. #define MA_PARITY_ERROR_STATUS_A 0x77f4
  774. #define MA_PARITY_ERROR_STATUS1_A 0x77f4
  775. #define MA_PARITY_ERROR_STATUS2_A 0x7804
  776. /* registers for module EDC_0 */
  777. #define EDC_0_BASE_ADDR 0x7900
  778. #define EDC_BIST_CMD_A 0x7904
  779. #define EDC_BIST_CMD_ADDR_A 0x7908
  780. #define EDC_BIST_CMD_LEN_A 0x790c
  781. #define EDC_BIST_DATA_PATTERN_A 0x7910
  782. #define EDC_BIST_STATUS_RDATA_A 0x7928
  783. #define EDC_INT_CAUSE_A 0x7978
  784. #define ECC_UE_PAR_S 5
  785. #define ECC_UE_PAR_V(x) ((x) << ECC_UE_PAR_S)
  786. #define ECC_UE_PAR_F ECC_UE_PAR_V(1U)
  787. #define ECC_CE_PAR_S 4
  788. #define ECC_CE_PAR_V(x) ((x) << ECC_CE_PAR_S)
  789. #define ECC_CE_PAR_F ECC_CE_PAR_V(1U)
  790. #define PERR_PAR_CAUSE_S 3
  791. #define PERR_PAR_CAUSE_V(x) ((x) << PERR_PAR_CAUSE_S)
  792. #define PERR_PAR_CAUSE_F PERR_PAR_CAUSE_V(1U)
  793. #define EDC_ECC_STATUS_A 0x797c
  794. /* registers for module EDC_1 */
  795. #define EDC_1_BASE_ADDR 0x7980
  796. /* registers for module CIM */
  797. #define CIM_BOOT_CFG_A 0x7b00
  798. #define CIM_SDRAM_BASE_ADDR_A 0x7b14
  799. #define CIM_SDRAM_ADDR_SIZE_A 0x7b18
  800. #define CIM_EXTMEM2_BASE_ADDR_A 0x7b1c
  801. #define CIM_EXTMEM2_ADDR_SIZE_A 0x7b20
  802. #define CIM_PF_MAILBOX_CTRL_SHADOW_COPY_A 0x290
  803. #define BOOTADDR_M 0xffffff00U
  804. #define UPCRST_S 0
  805. #define UPCRST_V(x) ((x) << UPCRST_S)
  806. #define UPCRST_F UPCRST_V(1U)
  807. #define CIM_PF_MAILBOX_DATA_A 0x240
  808. #define CIM_PF_MAILBOX_CTRL_A 0x280
  809. #define MBMSGVALID_S 3
  810. #define MBMSGVALID_V(x) ((x) << MBMSGVALID_S)
  811. #define MBMSGVALID_F MBMSGVALID_V(1U)
  812. #define MBINTREQ_S 2
  813. #define MBINTREQ_V(x) ((x) << MBINTREQ_S)
  814. #define MBINTREQ_F MBINTREQ_V(1U)
  815. #define MBOWNER_S 0
  816. #define MBOWNER_M 0x3U
  817. #define MBOWNER_V(x) ((x) << MBOWNER_S)
  818. #define MBOWNER_G(x) (((x) >> MBOWNER_S) & MBOWNER_M)
  819. #define CIM_PF_HOST_INT_ENABLE_A 0x288
  820. #define MBMSGRDYINTEN_S 19
  821. #define MBMSGRDYINTEN_V(x) ((x) << MBMSGRDYINTEN_S)
  822. #define MBMSGRDYINTEN_F MBMSGRDYINTEN_V(1U)
  823. #define CIM_PF_HOST_INT_CAUSE_A 0x28c
  824. #define MBMSGRDYINT_S 19
  825. #define MBMSGRDYINT_V(x) ((x) << MBMSGRDYINT_S)
  826. #define MBMSGRDYINT_F MBMSGRDYINT_V(1U)
  827. #define CIM_HOST_INT_CAUSE_A 0x7b2c
  828. #define TIEQOUTPARERRINT_S 20
  829. #define TIEQOUTPARERRINT_V(x) ((x) << TIEQOUTPARERRINT_S)
  830. #define TIEQOUTPARERRINT_F TIEQOUTPARERRINT_V(1U)
  831. #define TIEQINPARERRINT_S 19
  832. #define TIEQINPARERRINT_V(x) ((x) << TIEQINPARERRINT_S)
  833. #define TIEQINPARERRINT_F TIEQINPARERRINT_V(1U)
  834. #define TIMER0INT_S 2
  835. #define TIMER0INT_V(x) ((x) << TIMER0INT_S)
  836. #define TIMER0INT_F TIMER0INT_V(1U)
  837. #define PREFDROPINT_S 1
  838. #define PREFDROPINT_V(x) ((x) << PREFDROPINT_S)
  839. #define PREFDROPINT_F PREFDROPINT_V(1U)
  840. #define UPACCNONZERO_S 0
  841. #define UPACCNONZERO_V(x) ((x) << UPACCNONZERO_S)
  842. #define UPACCNONZERO_F UPACCNONZERO_V(1U)
  843. #define MBHOSTPARERR_S 18
  844. #define MBHOSTPARERR_V(x) ((x) << MBHOSTPARERR_S)
  845. #define MBHOSTPARERR_F MBHOSTPARERR_V(1U)
  846. #define MBUPPARERR_S 17
  847. #define MBUPPARERR_V(x) ((x) << MBUPPARERR_S)
  848. #define MBUPPARERR_F MBUPPARERR_V(1U)
  849. #define IBQTP0PARERR_S 16
  850. #define IBQTP0PARERR_V(x) ((x) << IBQTP0PARERR_S)
  851. #define IBQTP0PARERR_F IBQTP0PARERR_V(1U)
  852. #define IBQTP1PARERR_S 15
  853. #define IBQTP1PARERR_V(x) ((x) << IBQTP1PARERR_S)
  854. #define IBQTP1PARERR_F IBQTP1PARERR_V(1U)
  855. #define IBQULPPARERR_S 14
  856. #define IBQULPPARERR_V(x) ((x) << IBQULPPARERR_S)
  857. #define IBQULPPARERR_F IBQULPPARERR_V(1U)
  858. #define IBQSGELOPARERR_S 13
  859. #define IBQSGELOPARERR_V(x) ((x) << IBQSGELOPARERR_S)
  860. #define IBQSGELOPARERR_F IBQSGELOPARERR_V(1U)
  861. #define IBQSGEHIPARERR_S 12
  862. #define IBQSGEHIPARERR_V(x) ((x) << IBQSGEHIPARERR_S)
  863. #define IBQSGEHIPARERR_F IBQSGEHIPARERR_V(1U)
  864. #define IBQNCSIPARERR_S 11
  865. #define IBQNCSIPARERR_V(x) ((x) << IBQNCSIPARERR_S)
  866. #define IBQNCSIPARERR_F IBQNCSIPARERR_V(1U)
  867. #define OBQULP0PARERR_S 10
  868. #define OBQULP0PARERR_V(x) ((x) << OBQULP0PARERR_S)
  869. #define OBQULP0PARERR_F OBQULP0PARERR_V(1U)
  870. #define OBQULP1PARERR_S 9
  871. #define OBQULP1PARERR_V(x) ((x) << OBQULP1PARERR_S)
  872. #define OBQULP1PARERR_F OBQULP1PARERR_V(1U)
  873. #define OBQULP2PARERR_S 8
  874. #define OBQULP2PARERR_V(x) ((x) << OBQULP2PARERR_S)
  875. #define OBQULP2PARERR_F OBQULP2PARERR_V(1U)
  876. #define OBQULP3PARERR_S 7
  877. #define OBQULP3PARERR_V(x) ((x) << OBQULP3PARERR_S)
  878. #define OBQULP3PARERR_F OBQULP3PARERR_V(1U)
  879. #define OBQSGEPARERR_S 6
  880. #define OBQSGEPARERR_V(x) ((x) << OBQSGEPARERR_S)
  881. #define OBQSGEPARERR_F OBQSGEPARERR_V(1U)
  882. #define OBQNCSIPARERR_S 5
  883. #define OBQNCSIPARERR_V(x) ((x) << OBQNCSIPARERR_S)
  884. #define OBQNCSIPARERR_F OBQNCSIPARERR_V(1U)
  885. #define CIM_HOST_UPACC_INT_CAUSE_A 0x7b34
  886. #define EEPROMWRINT_S 30
  887. #define EEPROMWRINT_V(x) ((x) << EEPROMWRINT_S)
  888. #define EEPROMWRINT_F EEPROMWRINT_V(1U)
  889. #define TIMEOUTMAINT_S 29
  890. #define TIMEOUTMAINT_V(x) ((x) << TIMEOUTMAINT_S)
  891. #define TIMEOUTMAINT_F TIMEOUTMAINT_V(1U)
  892. #define TIMEOUTINT_S 28
  893. #define TIMEOUTINT_V(x) ((x) << TIMEOUTINT_S)
  894. #define TIMEOUTINT_F TIMEOUTINT_V(1U)
  895. #define RSPOVRLOOKUPINT_S 27
  896. #define RSPOVRLOOKUPINT_V(x) ((x) << RSPOVRLOOKUPINT_S)
  897. #define RSPOVRLOOKUPINT_F RSPOVRLOOKUPINT_V(1U)
  898. #define REQOVRLOOKUPINT_S 26
  899. #define REQOVRLOOKUPINT_V(x) ((x) << REQOVRLOOKUPINT_S)
  900. #define REQOVRLOOKUPINT_F REQOVRLOOKUPINT_V(1U)
  901. #define BLKWRPLINT_S 25
  902. #define BLKWRPLINT_V(x) ((x) << BLKWRPLINT_S)
  903. #define BLKWRPLINT_F BLKWRPLINT_V(1U)
  904. #define BLKRDPLINT_S 24
  905. #define BLKRDPLINT_V(x) ((x) << BLKRDPLINT_S)
  906. #define BLKRDPLINT_F BLKRDPLINT_V(1U)
  907. #define SGLWRPLINT_S 23
  908. #define SGLWRPLINT_V(x) ((x) << SGLWRPLINT_S)
  909. #define SGLWRPLINT_F SGLWRPLINT_V(1U)
  910. #define SGLRDPLINT_S 22
  911. #define SGLRDPLINT_V(x) ((x) << SGLRDPLINT_S)
  912. #define SGLRDPLINT_F SGLRDPLINT_V(1U)
  913. #define BLKWRCTLINT_S 21
  914. #define BLKWRCTLINT_V(x) ((x) << BLKWRCTLINT_S)
  915. #define BLKWRCTLINT_F BLKWRCTLINT_V(1U)
  916. #define BLKRDCTLINT_S 20
  917. #define BLKRDCTLINT_V(x) ((x) << BLKRDCTLINT_S)
  918. #define BLKRDCTLINT_F BLKRDCTLINT_V(1U)
  919. #define SGLWRCTLINT_S 19
  920. #define SGLWRCTLINT_V(x) ((x) << SGLWRCTLINT_S)
  921. #define SGLWRCTLINT_F SGLWRCTLINT_V(1U)
  922. #define SGLRDCTLINT_S 18
  923. #define SGLRDCTLINT_V(x) ((x) << SGLRDCTLINT_S)
  924. #define SGLRDCTLINT_F SGLRDCTLINT_V(1U)
  925. #define BLKWREEPROMINT_S 17
  926. #define BLKWREEPROMINT_V(x) ((x) << BLKWREEPROMINT_S)
  927. #define BLKWREEPROMINT_F BLKWREEPROMINT_V(1U)
  928. #define BLKRDEEPROMINT_S 16
  929. #define BLKRDEEPROMINT_V(x) ((x) << BLKRDEEPROMINT_S)
  930. #define BLKRDEEPROMINT_F BLKRDEEPROMINT_V(1U)
  931. #define SGLWREEPROMINT_S 15
  932. #define SGLWREEPROMINT_V(x) ((x) << SGLWREEPROMINT_S)
  933. #define SGLWREEPROMINT_F SGLWREEPROMINT_V(1U)
  934. #define SGLRDEEPROMINT_S 14
  935. #define SGLRDEEPROMINT_V(x) ((x) << SGLRDEEPROMINT_S)
  936. #define SGLRDEEPROMINT_F SGLRDEEPROMINT_V(1U)
  937. #define BLKWRFLASHINT_S 13
  938. #define BLKWRFLASHINT_V(x) ((x) << BLKWRFLASHINT_S)
  939. #define BLKWRFLASHINT_F BLKWRFLASHINT_V(1U)
  940. #define BLKRDFLASHINT_S 12
  941. #define BLKRDFLASHINT_V(x) ((x) << BLKRDFLASHINT_S)
  942. #define BLKRDFLASHINT_F BLKRDFLASHINT_V(1U)
  943. #define SGLWRFLASHINT_S 11
  944. #define SGLWRFLASHINT_V(x) ((x) << SGLWRFLASHINT_S)
  945. #define SGLWRFLASHINT_F SGLWRFLASHINT_V(1U)
  946. #define SGLRDFLASHINT_S 10
  947. #define SGLRDFLASHINT_V(x) ((x) << SGLRDFLASHINT_S)
  948. #define SGLRDFLASHINT_F SGLRDFLASHINT_V(1U)
  949. #define BLKWRBOOTINT_S 9
  950. #define BLKWRBOOTINT_V(x) ((x) << BLKWRBOOTINT_S)
  951. #define BLKWRBOOTINT_F BLKWRBOOTINT_V(1U)
  952. #define BLKRDBOOTINT_S 8
  953. #define BLKRDBOOTINT_V(x) ((x) << BLKRDBOOTINT_S)
  954. #define BLKRDBOOTINT_F BLKRDBOOTINT_V(1U)
  955. #define SGLWRBOOTINT_S 7
  956. #define SGLWRBOOTINT_V(x) ((x) << SGLWRBOOTINT_S)
  957. #define SGLWRBOOTINT_F SGLWRBOOTINT_V(1U)
  958. #define SGLRDBOOTINT_S 6
  959. #define SGLRDBOOTINT_V(x) ((x) << SGLRDBOOTINT_S)
  960. #define SGLRDBOOTINT_F SGLRDBOOTINT_V(1U)
  961. #define ILLWRBEINT_S 5
  962. #define ILLWRBEINT_V(x) ((x) << ILLWRBEINT_S)
  963. #define ILLWRBEINT_F ILLWRBEINT_V(1U)
  964. #define ILLRDBEINT_S 4
  965. #define ILLRDBEINT_V(x) ((x) << ILLRDBEINT_S)
  966. #define ILLRDBEINT_F ILLRDBEINT_V(1U)
  967. #define ILLRDINT_S 3
  968. #define ILLRDINT_V(x) ((x) << ILLRDINT_S)
  969. #define ILLRDINT_F ILLRDINT_V(1U)
  970. #define ILLWRINT_S 2
  971. #define ILLWRINT_V(x) ((x) << ILLWRINT_S)
  972. #define ILLWRINT_F ILLWRINT_V(1U)
  973. #define ILLTRANSINT_S 1
  974. #define ILLTRANSINT_V(x) ((x) << ILLTRANSINT_S)
  975. #define ILLTRANSINT_F ILLTRANSINT_V(1U)
  976. #define RSVDSPACEINT_S 0
  977. #define RSVDSPACEINT_V(x) ((x) << RSVDSPACEINT_S)
  978. #define RSVDSPACEINT_F RSVDSPACEINT_V(1U)
  979. /* registers for module TP */
  980. #define DBGLAWHLF_S 23
  981. #define DBGLAWHLF_V(x) ((x) << DBGLAWHLF_S)
  982. #define DBGLAWHLF_F DBGLAWHLF_V(1U)
  983. #define DBGLAWPTR_S 16
  984. #define DBGLAWPTR_M 0x7fU
  985. #define DBGLAWPTR_G(x) (((x) >> DBGLAWPTR_S) & DBGLAWPTR_M)
  986. #define DBGLAENABLE_S 12
  987. #define DBGLAENABLE_V(x) ((x) << DBGLAENABLE_S)
  988. #define DBGLAENABLE_F DBGLAENABLE_V(1U)
  989. #define DBGLARPTR_S 0
  990. #define DBGLARPTR_M 0x7fU
  991. #define DBGLARPTR_V(x) ((x) << DBGLARPTR_S)
  992. #define CRXPKTENC_S 3
  993. #define CRXPKTENC_V(x) ((x) << CRXPKTENC_S)
  994. #define CRXPKTENC_F CRXPKTENC_V(1U)
  995. #define TP_DBG_LA_DATAL_A 0x7ed8
  996. #define TP_DBG_LA_CONFIG_A 0x7ed4
  997. #define TP_OUT_CONFIG_A 0x7d04
  998. #define TP_GLOBAL_CONFIG_A 0x7d08
  999. #define TP_CMM_TCB_BASE_A 0x7d10
  1000. #define TP_CMM_MM_BASE_A 0x7d14
  1001. #define TP_CMM_TIMER_BASE_A 0x7d18
  1002. #define TP_PMM_TX_BASE_A 0x7d20
  1003. #define TP_PMM_RX_BASE_A 0x7d28
  1004. #define TP_PMM_RX_PAGE_SIZE_A 0x7d2c
  1005. #define TP_PMM_RX_MAX_PAGE_A 0x7d30
  1006. #define TP_PMM_TX_PAGE_SIZE_A 0x7d34
  1007. #define TP_PMM_TX_MAX_PAGE_A 0x7d38
  1008. #define TP_CMM_MM_MAX_PSTRUCT_A 0x7e6c
  1009. #define PMRXNUMCHN_S 31
  1010. #define PMRXNUMCHN_V(x) ((x) << PMRXNUMCHN_S)
  1011. #define PMRXNUMCHN_F PMRXNUMCHN_V(1U)
  1012. #define PMTXNUMCHN_S 30
  1013. #define PMTXNUMCHN_M 0x3U
  1014. #define PMTXNUMCHN_G(x) (((x) >> PMTXNUMCHN_S) & PMTXNUMCHN_M)
  1015. #define PMTXMAXPAGE_S 0
  1016. #define PMTXMAXPAGE_M 0x1fffffU
  1017. #define PMTXMAXPAGE_G(x) (((x) >> PMTXMAXPAGE_S) & PMTXMAXPAGE_M)
  1018. #define PMRXMAXPAGE_S 0
  1019. #define PMRXMAXPAGE_M 0x1fffffU
  1020. #define PMRXMAXPAGE_G(x) (((x) >> PMRXMAXPAGE_S) & PMRXMAXPAGE_M)
  1021. #define DBGLAMODE_S 14
  1022. #define DBGLAMODE_M 0x3U
  1023. #define DBGLAMODE_G(x) (((x) >> DBGLAMODE_S) & DBGLAMODE_M)
  1024. #define FIVETUPLELOOKUP_S 17
  1025. #define FIVETUPLELOOKUP_M 0x3U
  1026. #define FIVETUPLELOOKUP_V(x) ((x) << FIVETUPLELOOKUP_S)
  1027. #define FIVETUPLELOOKUP_G(x) (((x) >> FIVETUPLELOOKUP_S) & FIVETUPLELOOKUP_M)
  1028. #define TP_PARA_REG2_A 0x7d68
  1029. #define MAXRXDATA_S 16
  1030. #define MAXRXDATA_M 0xffffU
  1031. #define MAXRXDATA_G(x) (((x) >> MAXRXDATA_S) & MAXRXDATA_M)
  1032. #define TP_TIMER_RESOLUTION_A 0x7d90
  1033. #define TIMERRESOLUTION_S 16
  1034. #define TIMERRESOLUTION_M 0xffU
  1035. #define TIMERRESOLUTION_G(x) (((x) >> TIMERRESOLUTION_S) & TIMERRESOLUTION_M)
  1036. #define TIMESTAMPRESOLUTION_S 8
  1037. #define TIMESTAMPRESOLUTION_M 0xffU
  1038. #define TIMESTAMPRESOLUTION_G(x) \
  1039. (((x) >> TIMESTAMPRESOLUTION_S) & TIMESTAMPRESOLUTION_M)
  1040. #define DELAYEDACKRESOLUTION_S 0
  1041. #define DELAYEDACKRESOLUTION_M 0xffU
  1042. #define DELAYEDACKRESOLUTION_G(x) \
  1043. (((x) >> DELAYEDACKRESOLUTION_S) & DELAYEDACKRESOLUTION_M)
  1044. #define TP_SHIFT_CNT_A 0x7dc0
  1045. #define TP_RXT_MIN_A 0x7d98
  1046. #define TP_RXT_MAX_A 0x7d9c
  1047. #define TP_PERS_MIN_A 0x7da0
  1048. #define TP_PERS_MAX_A 0x7da4
  1049. #define TP_KEEP_IDLE_A 0x7da8
  1050. #define TP_KEEP_INTVL_A 0x7dac
  1051. #define TP_INIT_SRTT_A 0x7db0
  1052. #define TP_DACK_TIMER_A 0x7db4
  1053. #define TP_FINWAIT2_TIMER_A 0x7db8
  1054. #define INITSRTT_S 0
  1055. #define INITSRTT_M 0xffffU
  1056. #define INITSRTT_G(x) (((x) >> INITSRTT_S) & INITSRTT_M)
  1057. #define PERSMAX_S 0
  1058. #define PERSMAX_M 0x3fffffffU
  1059. #define PERSMAX_V(x) ((x) << PERSMAX_S)
  1060. #define PERSMAX_G(x) (((x) >> PERSMAX_S) & PERSMAX_M)
  1061. #define SYNSHIFTMAX_S 24
  1062. #define SYNSHIFTMAX_M 0xffU
  1063. #define SYNSHIFTMAX_V(x) ((x) << SYNSHIFTMAX_S)
  1064. #define SYNSHIFTMAX_G(x) (((x) >> SYNSHIFTMAX_S) & SYNSHIFTMAX_M)
  1065. #define RXTSHIFTMAXR1_S 20
  1066. #define RXTSHIFTMAXR1_M 0xfU
  1067. #define RXTSHIFTMAXR1_V(x) ((x) << RXTSHIFTMAXR1_S)
  1068. #define RXTSHIFTMAXR1_G(x) (((x) >> RXTSHIFTMAXR1_S) & RXTSHIFTMAXR1_M)
  1069. #define RXTSHIFTMAXR2_S 16
  1070. #define RXTSHIFTMAXR2_M 0xfU
  1071. #define RXTSHIFTMAXR2_V(x) ((x) << RXTSHIFTMAXR2_S)
  1072. #define RXTSHIFTMAXR2_G(x) (((x) >> RXTSHIFTMAXR2_S) & RXTSHIFTMAXR2_M)
  1073. #define PERSHIFTBACKOFFMAX_S 12
  1074. #define PERSHIFTBACKOFFMAX_M 0xfU
  1075. #define PERSHIFTBACKOFFMAX_V(x) ((x) << PERSHIFTBACKOFFMAX_S)
  1076. #define PERSHIFTBACKOFFMAX_G(x) \
  1077. (((x) >> PERSHIFTBACKOFFMAX_S) & PERSHIFTBACKOFFMAX_M)
  1078. #define PERSHIFTMAX_S 8
  1079. #define PERSHIFTMAX_M 0xfU
  1080. #define PERSHIFTMAX_V(x) ((x) << PERSHIFTMAX_S)
  1081. #define PERSHIFTMAX_G(x) (((x) >> PERSHIFTMAX_S) & PERSHIFTMAX_M)
  1082. #define KEEPALIVEMAXR1_S 4
  1083. #define KEEPALIVEMAXR1_M 0xfU
  1084. #define KEEPALIVEMAXR1_V(x) ((x) << KEEPALIVEMAXR1_S)
  1085. #define KEEPALIVEMAXR1_G(x) (((x) >> KEEPALIVEMAXR1_S) & KEEPALIVEMAXR1_M)
  1086. #define KEEPALIVEMAXR2_S 0
  1087. #define KEEPALIVEMAXR2_M 0xfU
  1088. #define KEEPALIVEMAXR2_V(x) ((x) << KEEPALIVEMAXR2_S)
  1089. #define KEEPALIVEMAXR2_G(x) (((x) >> KEEPALIVEMAXR2_S) & KEEPALIVEMAXR2_M)
  1090. #define ROWINDEX_S 16
  1091. #define ROWINDEX_V(x) ((x) << ROWINDEX_S)
  1092. #define TP_CCTRL_TABLE_A 0x7ddc
  1093. #define TP_PACE_TABLE_A 0x7dd8
  1094. #define TP_MTU_TABLE_A 0x7de4
  1095. #define MTUINDEX_S 24
  1096. #define MTUINDEX_V(x) ((x) << MTUINDEX_S)
  1097. #define MTUWIDTH_S 16
  1098. #define MTUWIDTH_M 0xfU
  1099. #define MTUWIDTH_V(x) ((x) << MTUWIDTH_S)
  1100. #define MTUWIDTH_G(x) (((x) >> MTUWIDTH_S) & MTUWIDTH_M)
  1101. #define MTUVALUE_S 0
  1102. #define MTUVALUE_M 0x3fffU
  1103. #define MTUVALUE_V(x) ((x) << MTUVALUE_S)
  1104. #define MTUVALUE_G(x) (((x) >> MTUVALUE_S) & MTUVALUE_M)
  1105. #define TP_RSS_LKP_TABLE_A 0x7dec
  1106. #define TP_CMM_MM_RX_FLST_BASE_A 0x7e60
  1107. #define TP_CMM_MM_TX_FLST_BASE_A 0x7e64
  1108. #define TP_CMM_MM_PS_FLST_BASE_A 0x7e68
  1109. #define LKPTBLROWVLD_S 31
  1110. #define LKPTBLROWVLD_V(x) ((x) << LKPTBLROWVLD_S)
  1111. #define LKPTBLROWVLD_F LKPTBLROWVLD_V(1U)
  1112. #define LKPTBLQUEUE1_S 10
  1113. #define LKPTBLQUEUE1_M 0x3ffU
  1114. #define LKPTBLQUEUE1_G(x) (((x) >> LKPTBLQUEUE1_S) & LKPTBLQUEUE1_M)
  1115. #define LKPTBLQUEUE0_S 0
  1116. #define LKPTBLQUEUE0_M 0x3ffU
  1117. #define LKPTBLQUEUE0_G(x) (((x) >> LKPTBLQUEUE0_S) & LKPTBLQUEUE0_M)
  1118. #define TP_TM_PIO_ADDR_A 0x7e18
  1119. #define TP_TM_PIO_DATA_A 0x7e1c
  1120. #define TP_MOD_CONFIG_A 0x7e24
  1121. #define TIMERMODE_S 8
  1122. #define TIMERMODE_M 0xffU
  1123. #define TIMERMODE_G(x) (((x) >> TIMERMODE_S) & TIMERMODE_M)
  1124. #define TP_TX_MOD_Q1_Q0_TIMER_SEPARATOR_A 0x3
  1125. #define TP_TX_MOD_Q1_Q0_RATE_LIMIT_A 0x8
  1126. #define TP_PIO_ADDR_A 0x7e40
  1127. #define TP_PIO_DATA_A 0x7e44
  1128. #define TP_MIB_INDEX_A 0x7e50
  1129. #define TP_MIB_DATA_A 0x7e54
  1130. #define TP_INT_CAUSE_A 0x7e74
  1131. #define TP_FLM_FREE_PS_CNT_A 0x7e80
  1132. #define TP_FLM_FREE_RX_CNT_A 0x7e84
  1133. #define FREEPSTRUCTCOUNT_S 0
  1134. #define FREEPSTRUCTCOUNT_M 0x1fffffU
  1135. #define FREEPSTRUCTCOUNT_G(x) (((x) >> FREEPSTRUCTCOUNT_S) & FREEPSTRUCTCOUNT_M)
  1136. #define FREERXPAGECOUNT_S 0
  1137. #define FREERXPAGECOUNT_M 0x1fffffU
  1138. #define FREERXPAGECOUNT_V(x) ((x) << FREERXPAGECOUNT_S)
  1139. #define FREERXPAGECOUNT_G(x) (((x) >> FREERXPAGECOUNT_S) & FREERXPAGECOUNT_M)
  1140. #define TP_FLM_FREE_TX_CNT_A 0x7e88
  1141. #define FREETXPAGECOUNT_S 0
  1142. #define FREETXPAGECOUNT_M 0x1fffffU
  1143. #define FREETXPAGECOUNT_V(x) ((x) << FREETXPAGECOUNT_S)
  1144. #define FREETXPAGECOUNT_G(x) (((x) >> FREETXPAGECOUNT_S) & FREETXPAGECOUNT_M)
  1145. #define FLMTXFLSTEMPTY_S 30
  1146. #define FLMTXFLSTEMPTY_V(x) ((x) << FLMTXFLSTEMPTY_S)
  1147. #define FLMTXFLSTEMPTY_F FLMTXFLSTEMPTY_V(1U)
  1148. #define TP_TX_ORATE_A 0x7ebc
  1149. #define OFDRATE3_S 24
  1150. #define OFDRATE3_M 0xffU
  1151. #define OFDRATE3_G(x) (((x) >> OFDRATE3_S) & OFDRATE3_M)
  1152. #define OFDRATE2_S 16
  1153. #define OFDRATE2_M 0xffU
  1154. #define OFDRATE2_G(x) (((x) >> OFDRATE2_S) & OFDRATE2_M)
  1155. #define OFDRATE1_S 8
  1156. #define OFDRATE1_M 0xffU
  1157. #define OFDRATE1_G(x) (((x) >> OFDRATE1_S) & OFDRATE1_M)
  1158. #define OFDRATE0_S 0
  1159. #define OFDRATE0_M 0xffU
  1160. #define OFDRATE0_G(x) (((x) >> OFDRATE0_S) & OFDRATE0_M)
  1161. #define TP_TX_TRATE_A 0x7ed0
  1162. #define TNLRATE3_S 24
  1163. #define TNLRATE3_M 0xffU
  1164. #define TNLRATE3_G(x) (((x) >> TNLRATE3_S) & TNLRATE3_M)
  1165. #define TNLRATE2_S 16
  1166. #define TNLRATE2_M 0xffU
  1167. #define TNLRATE2_G(x) (((x) >> TNLRATE2_S) & TNLRATE2_M)
  1168. #define TNLRATE1_S 8
  1169. #define TNLRATE1_M 0xffU
  1170. #define TNLRATE1_G(x) (((x) >> TNLRATE1_S) & TNLRATE1_M)
  1171. #define TNLRATE0_S 0
  1172. #define TNLRATE0_M 0xffU
  1173. #define TNLRATE0_G(x) (((x) >> TNLRATE0_S) & TNLRATE0_M)
  1174. #define TP_VLAN_PRI_MAP_A 0x140
  1175. #define FRAGMENTATION_S 9
  1176. #define FRAGMENTATION_V(x) ((x) << FRAGMENTATION_S)
  1177. #define FRAGMENTATION_F FRAGMENTATION_V(1U)
  1178. #define MPSHITTYPE_S 8
  1179. #define MPSHITTYPE_V(x) ((x) << MPSHITTYPE_S)
  1180. #define MPSHITTYPE_F MPSHITTYPE_V(1U)
  1181. #define MACMATCH_S 7
  1182. #define MACMATCH_V(x) ((x) << MACMATCH_S)
  1183. #define MACMATCH_F MACMATCH_V(1U)
  1184. #define ETHERTYPE_S 6
  1185. #define ETHERTYPE_V(x) ((x) << ETHERTYPE_S)
  1186. #define ETHERTYPE_F ETHERTYPE_V(1U)
  1187. #define PROTOCOL_S 5
  1188. #define PROTOCOL_V(x) ((x) << PROTOCOL_S)
  1189. #define PROTOCOL_F PROTOCOL_V(1U)
  1190. #define TOS_S 4
  1191. #define TOS_V(x) ((x) << TOS_S)
  1192. #define TOS_F TOS_V(1U)
  1193. #define VLAN_S 3
  1194. #define VLAN_V(x) ((x) << VLAN_S)
  1195. #define VLAN_F VLAN_V(1U)
  1196. #define VNIC_ID_S 2
  1197. #define VNIC_ID_V(x) ((x) << VNIC_ID_S)
  1198. #define VNIC_ID_F VNIC_ID_V(1U)
  1199. #define PORT_S 1
  1200. #define PORT_V(x) ((x) << PORT_S)
  1201. #define PORT_F PORT_V(1U)
  1202. #define FCOE_S 0
  1203. #define FCOE_V(x) ((x) << FCOE_S)
  1204. #define FCOE_F FCOE_V(1U)
  1205. #define FILTERMODE_S 15
  1206. #define FILTERMODE_V(x) ((x) << FILTERMODE_S)
  1207. #define FILTERMODE_F FILTERMODE_V(1U)
  1208. #define FCOEMASK_S 14
  1209. #define FCOEMASK_V(x) ((x) << FCOEMASK_S)
  1210. #define FCOEMASK_F FCOEMASK_V(1U)
  1211. #define TP_INGRESS_CONFIG_A 0x141
  1212. #define VNIC_S 11
  1213. #define VNIC_V(x) ((x) << VNIC_S)
  1214. #define VNIC_F VNIC_V(1U)
  1215. #define USE_ENC_IDX_S 13
  1216. #define USE_ENC_IDX_V(x) ((x) << USE_ENC_IDX_S)
  1217. #define USE_ENC_IDX_F USE_ENC_IDX_V(1U)
  1218. #define CSUM_HAS_PSEUDO_HDR_S 10
  1219. #define CSUM_HAS_PSEUDO_HDR_V(x) ((x) << CSUM_HAS_PSEUDO_HDR_S)
  1220. #define CSUM_HAS_PSEUDO_HDR_F CSUM_HAS_PSEUDO_HDR_V(1U)
  1221. #define TP_MIB_MAC_IN_ERR_0_A 0x0
  1222. #define TP_MIB_HDR_IN_ERR_0_A 0x4
  1223. #define TP_MIB_TCP_IN_ERR_0_A 0x8
  1224. #define TP_MIB_TCP_OUT_RST_A 0xc
  1225. #define TP_MIB_TCP_IN_SEG_HI_A 0x10
  1226. #define TP_MIB_TCP_IN_SEG_LO_A 0x11
  1227. #define TP_MIB_TCP_OUT_SEG_HI_A 0x12
  1228. #define TP_MIB_TCP_OUT_SEG_LO_A 0x13
  1229. #define TP_MIB_TCP_RXT_SEG_HI_A 0x14
  1230. #define TP_MIB_TCP_RXT_SEG_LO_A 0x15
  1231. #define TP_MIB_TNL_CNG_DROP_0_A 0x18
  1232. #define TP_MIB_OFD_CHN_DROP_0_A 0x1c
  1233. #define TP_MIB_TCP_V6IN_ERR_0_A 0x28
  1234. #define TP_MIB_TCP_V6OUT_RST_A 0x2c
  1235. #define TP_MIB_OFD_ARP_DROP_A 0x36
  1236. #define TP_MIB_CPL_IN_REQ_0_A 0x38
  1237. #define TP_MIB_CPL_OUT_RSP_0_A 0x3c
  1238. #define TP_MIB_TNL_DROP_0_A 0x44
  1239. #define TP_MIB_FCOE_DDP_0_A 0x48
  1240. #define TP_MIB_FCOE_DROP_0_A 0x4c
  1241. #define TP_MIB_FCOE_BYTE_0_HI_A 0x50
  1242. #define TP_MIB_OFD_VLN_DROP_0_A 0x58
  1243. #define TP_MIB_USM_PKTS_A 0x5c
  1244. #define TP_MIB_RQE_DFR_PKT_A 0x64
  1245. #define ULP_TX_INT_CAUSE_A 0x8dcc
  1246. #define ULP_TX_TPT_LLIMIT_A 0x8dd4
  1247. #define ULP_TX_TPT_ULIMIT_A 0x8dd8
  1248. #define ULP_TX_PBL_LLIMIT_A 0x8ddc
  1249. #define ULP_TX_PBL_ULIMIT_A 0x8de0
  1250. #define ULP_TX_ERR_TABLE_BASE_A 0x8e04
  1251. #define PBL_BOUND_ERR_CH3_S 31
  1252. #define PBL_BOUND_ERR_CH3_V(x) ((x) << PBL_BOUND_ERR_CH3_S)
  1253. #define PBL_BOUND_ERR_CH3_F PBL_BOUND_ERR_CH3_V(1U)
  1254. #define PBL_BOUND_ERR_CH2_S 30
  1255. #define PBL_BOUND_ERR_CH2_V(x) ((x) << PBL_BOUND_ERR_CH2_S)
  1256. #define PBL_BOUND_ERR_CH2_F PBL_BOUND_ERR_CH2_V(1U)
  1257. #define PBL_BOUND_ERR_CH1_S 29
  1258. #define PBL_BOUND_ERR_CH1_V(x) ((x) << PBL_BOUND_ERR_CH1_S)
  1259. #define PBL_BOUND_ERR_CH1_F PBL_BOUND_ERR_CH1_V(1U)
  1260. #define PBL_BOUND_ERR_CH0_S 28
  1261. #define PBL_BOUND_ERR_CH0_V(x) ((x) << PBL_BOUND_ERR_CH0_S)
  1262. #define PBL_BOUND_ERR_CH0_F PBL_BOUND_ERR_CH0_V(1U)
  1263. #define PM_RX_INT_CAUSE_A 0x8fdc
  1264. #define PM_RX_STAT_CONFIG_A 0x8fc8
  1265. #define PM_RX_STAT_COUNT_A 0x8fcc
  1266. #define PM_RX_STAT_LSB_A 0x8fd0
  1267. #define PM_RX_DBG_CTRL_A 0x8fd0
  1268. #define PM_RX_DBG_DATA_A 0x8fd4
  1269. #define PM_RX_DBG_STAT_MSB_A 0x10013
  1270. #define PMRX_FRAMING_ERROR_F 0x003ffff0U
  1271. #define ZERO_E_CMD_ERROR_S 22
  1272. #define ZERO_E_CMD_ERROR_V(x) ((x) << ZERO_E_CMD_ERROR_S)
  1273. #define ZERO_E_CMD_ERROR_F ZERO_E_CMD_ERROR_V(1U)
  1274. #define OCSPI_PAR_ERROR_S 3
  1275. #define OCSPI_PAR_ERROR_V(x) ((x) << OCSPI_PAR_ERROR_S)
  1276. #define OCSPI_PAR_ERROR_F OCSPI_PAR_ERROR_V(1U)
  1277. #define DB_OPTIONS_PAR_ERROR_S 2
  1278. #define DB_OPTIONS_PAR_ERROR_V(x) ((x) << DB_OPTIONS_PAR_ERROR_S)
  1279. #define DB_OPTIONS_PAR_ERROR_F DB_OPTIONS_PAR_ERROR_V(1U)
  1280. #define IESPI_PAR_ERROR_S 1
  1281. #define IESPI_PAR_ERROR_V(x) ((x) << IESPI_PAR_ERROR_S)
  1282. #define IESPI_PAR_ERROR_F IESPI_PAR_ERROR_V(1U)
  1283. #define ULP_TX_LA_RDPTR_0_A 0x8ec0
  1284. #define ULP_TX_LA_RDDATA_0_A 0x8ec4
  1285. #define ULP_TX_LA_WRPTR_0_A 0x8ec8
  1286. #define ULP_TX_ASIC_DEBUG_CTRL_A 0x8f70
  1287. #define ULP_TX_ASIC_DEBUG_0_A 0x8f74
  1288. #define ULP_TX_ASIC_DEBUG_1_A 0x8f78
  1289. #define ULP_TX_ASIC_DEBUG_2_A 0x8f7c
  1290. #define ULP_TX_ASIC_DEBUG_3_A 0x8f80
  1291. #define ULP_TX_ASIC_DEBUG_4_A 0x8f84
  1292. /* registers for module PM_RX */
  1293. #define PM_RX_BASE_ADDR 0x8fc0
  1294. #define PMRX_E_PCMD_PAR_ERROR_S 0
  1295. #define PMRX_E_PCMD_PAR_ERROR_V(x) ((x) << PMRX_E_PCMD_PAR_ERROR_S)
  1296. #define PMRX_E_PCMD_PAR_ERROR_F PMRX_E_PCMD_PAR_ERROR_V(1U)
  1297. #define PM_TX_INT_CAUSE_A 0x8ffc
  1298. #define PM_TX_STAT_CONFIG_A 0x8fe8
  1299. #define PM_TX_STAT_COUNT_A 0x8fec
  1300. #define PM_TX_STAT_LSB_A 0x8ff0
  1301. #define PM_TX_DBG_CTRL_A 0x8ff0
  1302. #define PM_TX_DBG_DATA_A 0x8ff4
  1303. #define PM_TX_DBG_STAT_MSB_A 0x1001a
  1304. #define PCMD_LEN_OVFL0_S 31
  1305. #define PCMD_LEN_OVFL0_V(x) ((x) << PCMD_LEN_OVFL0_S)
  1306. #define PCMD_LEN_OVFL0_F PCMD_LEN_OVFL0_V(1U)
  1307. #define PCMD_LEN_OVFL1_S 30
  1308. #define PCMD_LEN_OVFL1_V(x) ((x) << PCMD_LEN_OVFL1_S)
  1309. #define PCMD_LEN_OVFL1_F PCMD_LEN_OVFL1_V(1U)
  1310. #define PCMD_LEN_OVFL2_S 29
  1311. #define PCMD_LEN_OVFL2_V(x) ((x) << PCMD_LEN_OVFL2_S)
  1312. #define PCMD_LEN_OVFL2_F PCMD_LEN_OVFL2_V(1U)
  1313. #define ZERO_C_CMD_ERROR_S 28
  1314. #define ZERO_C_CMD_ERROR_V(x) ((x) << ZERO_C_CMD_ERROR_S)
  1315. #define ZERO_C_CMD_ERROR_F ZERO_C_CMD_ERROR_V(1U)
  1316. #define PMTX_FRAMING_ERROR_F 0x0ffffff0U
  1317. #define OESPI_PAR_ERROR_S 3
  1318. #define OESPI_PAR_ERROR_V(x) ((x) << OESPI_PAR_ERROR_S)
  1319. #define OESPI_PAR_ERROR_F OESPI_PAR_ERROR_V(1U)
  1320. #define ICSPI_PAR_ERROR_S 1
  1321. #define ICSPI_PAR_ERROR_V(x) ((x) << ICSPI_PAR_ERROR_S)
  1322. #define ICSPI_PAR_ERROR_F ICSPI_PAR_ERROR_V(1U)
  1323. #define PMTX_C_PCMD_PAR_ERROR_S 0
  1324. #define PMTX_C_PCMD_PAR_ERROR_V(x) ((x) << PMTX_C_PCMD_PAR_ERROR_S)
  1325. #define PMTX_C_PCMD_PAR_ERROR_F PMTX_C_PCMD_PAR_ERROR_V(1U)
  1326. #define MPS_PORT_STAT_TX_PORT_BYTES_L 0x400
  1327. #define MPS_PORT_STAT_TX_PORT_BYTES_H 0x404
  1328. #define MPS_PORT_STAT_TX_PORT_FRAMES_L 0x408
  1329. #define MPS_PORT_STAT_TX_PORT_FRAMES_H 0x40c
  1330. #define MPS_PORT_STAT_TX_PORT_BCAST_L 0x410
  1331. #define MPS_PORT_STAT_TX_PORT_BCAST_H 0x414
  1332. #define MPS_PORT_STAT_TX_PORT_MCAST_L 0x418
  1333. #define MPS_PORT_STAT_TX_PORT_MCAST_H 0x41c
  1334. #define MPS_PORT_STAT_TX_PORT_UCAST_L 0x420
  1335. #define MPS_PORT_STAT_TX_PORT_UCAST_H 0x424
  1336. #define MPS_PORT_STAT_TX_PORT_ERROR_L 0x428
  1337. #define MPS_PORT_STAT_TX_PORT_ERROR_H 0x42c
  1338. #define MPS_PORT_STAT_TX_PORT_64B_L 0x430
  1339. #define MPS_PORT_STAT_TX_PORT_64B_H 0x434
  1340. #define MPS_PORT_STAT_TX_PORT_65B_127B_L 0x438
  1341. #define MPS_PORT_STAT_TX_PORT_65B_127B_H 0x43c
  1342. #define MPS_PORT_STAT_TX_PORT_128B_255B_L 0x440
  1343. #define MPS_PORT_STAT_TX_PORT_128B_255B_H 0x444
  1344. #define MPS_PORT_STAT_TX_PORT_256B_511B_L 0x448
  1345. #define MPS_PORT_STAT_TX_PORT_256B_511B_H 0x44c
  1346. #define MPS_PORT_STAT_TX_PORT_512B_1023B_L 0x450
  1347. #define MPS_PORT_STAT_TX_PORT_512B_1023B_H 0x454
  1348. #define MPS_PORT_STAT_TX_PORT_1024B_1518B_L 0x458
  1349. #define MPS_PORT_STAT_TX_PORT_1024B_1518B_H 0x45c
  1350. #define MPS_PORT_STAT_TX_PORT_1519B_MAX_L 0x460
  1351. #define MPS_PORT_STAT_TX_PORT_1519B_MAX_H 0x464
  1352. #define MPS_PORT_STAT_TX_PORT_DROP_L 0x468
  1353. #define MPS_PORT_STAT_TX_PORT_DROP_H 0x46c
  1354. #define MPS_PORT_STAT_TX_PORT_PAUSE_L 0x470
  1355. #define MPS_PORT_STAT_TX_PORT_PAUSE_H 0x474
  1356. #define MPS_PORT_STAT_TX_PORT_PPP0_L 0x478
  1357. #define MPS_PORT_STAT_TX_PORT_PPP0_H 0x47c
  1358. #define MPS_PORT_STAT_TX_PORT_PPP1_L 0x480
  1359. #define MPS_PORT_STAT_TX_PORT_PPP1_H 0x484
  1360. #define MPS_PORT_STAT_TX_PORT_PPP2_L 0x488
  1361. #define MPS_PORT_STAT_TX_PORT_PPP2_H 0x48c
  1362. #define MPS_PORT_STAT_TX_PORT_PPP3_L 0x490
  1363. #define MPS_PORT_STAT_TX_PORT_PPP3_H 0x494
  1364. #define MPS_PORT_STAT_TX_PORT_PPP4_L 0x498
  1365. #define MPS_PORT_STAT_TX_PORT_PPP4_H 0x49c
  1366. #define MPS_PORT_STAT_TX_PORT_PPP5_L 0x4a0
  1367. #define MPS_PORT_STAT_TX_PORT_PPP5_H 0x4a4
  1368. #define MPS_PORT_STAT_TX_PORT_PPP6_L 0x4a8
  1369. #define MPS_PORT_STAT_TX_PORT_PPP6_H 0x4ac
  1370. #define MPS_PORT_STAT_TX_PORT_PPP7_L 0x4b0
  1371. #define MPS_PORT_STAT_TX_PORT_PPP7_H 0x4b4
  1372. #define MPS_PORT_STAT_LB_PORT_BYTES_L 0x4c0
  1373. #define MPS_PORT_STAT_LB_PORT_BYTES_H 0x4c4
  1374. #define MPS_PORT_STAT_LB_PORT_FRAMES_L 0x4c8
  1375. #define MPS_PORT_STAT_LB_PORT_FRAMES_H 0x4cc
  1376. #define MPS_PORT_STAT_LB_PORT_BCAST_L 0x4d0
  1377. #define MPS_PORT_STAT_LB_PORT_BCAST_H 0x4d4
  1378. #define MPS_PORT_STAT_LB_PORT_MCAST_L 0x4d8
  1379. #define MPS_PORT_STAT_LB_PORT_MCAST_H 0x4dc
  1380. #define MPS_PORT_STAT_LB_PORT_UCAST_L 0x4e0
  1381. #define MPS_PORT_STAT_LB_PORT_UCAST_H 0x4e4
  1382. #define MPS_PORT_STAT_LB_PORT_ERROR_L 0x4e8
  1383. #define MPS_PORT_STAT_LB_PORT_ERROR_H 0x4ec
  1384. #define MPS_PORT_STAT_LB_PORT_64B_L 0x4f0
  1385. #define MPS_PORT_STAT_LB_PORT_64B_H 0x4f4
  1386. #define MPS_PORT_STAT_LB_PORT_65B_127B_L 0x4f8
  1387. #define MPS_PORT_STAT_LB_PORT_65B_127B_H 0x4fc
  1388. #define MPS_PORT_STAT_LB_PORT_128B_255B_L 0x500
  1389. #define MPS_PORT_STAT_LB_PORT_128B_255B_H 0x504
  1390. #define MPS_PORT_STAT_LB_PORT_256B_511B_L 0x508
  1391. #define MPS_PORT_STAT_LB_PORT_256B_511B_H 0x50c
  1392. #define MPS_PORT_STAT_LB_PORT_512B_1023B_L 0x510
  1393. #define MPS_PORT_STAT_LB_PORT_512B_1023B_H 0x514
  1394. #define MPS_PORT_STAT_LB_PORT_1024B_1518B_L 0x518
  1395. #define MPS_PORT_STAT_LB_PORT_1024B_1518B_H 0x51c
  1396. #define MPS_PORT_STAT_LB_PORT_1519B_MAX_L 0x520
  1397. #define MPS_PORT_STAT_LB_PORT_1519B_MAX_H 0x524
  1398. #define MPS_PORT_STAT_LB_PORT_DROP_FRAMES 0x528
  1399. #define MPS_PORT_STAT_LB_PORT_DROP_FRAMES_L 0x528
  1400. #define MPS_PORT_STAT_RX_PORT_BYTES_L 0x540
  1401. #define MPS_PORT_STAT_RX_PORT_BYTES_H 0x544
  1402. #define MPS_PORT_STAT_RX_PORT_FRAMES_L 0x548
  1403. #define MPS_PORT_STAT_RX_PORT_FRAMES_H 0x54c
  1404. #define MPS_PORT_STAT_RX_PORT_BCAST_L 0x550
  1405. #define MPS_PORT_STAT_RX_PORT_BCAST_H 0x554
  1406. #define MPS_PORT_STAT_RX_PORT_MCAST_L 0x558
  1407. #define MPS_PORT_STAT_RX_PORT_MCAST_H 0x55c
  1408. #define MPS_PORT_STAT_RX_PORT_UCAST_L 0x560
  1409. #define MPS_PORT_STAT_RX_PORT_UCAST_H 0x564
  1410. #define MPS_PORT_STAT_RX_PORT_MTU_ERROR_L 0x568
  1411. #define MPS_PORT_STAT_RX_PORT_MTU_ERROR_H 0x56c
  1412. #define MPS_PORT_STAT_RX_PORT_MTU_CRC_ERROR_L 0x570
  1413. #define MPS_PORT_STAT_RX_PORT_MTU_CRC_ERROR_H 0x574
  1414. #define MPS_PORT_STAT_RX_PORT_CRC_ERROR_L 0x578
  1415. #define MPS_PORT_STAT_RX_PORT_CRC_ERROR_H 0x57c
  1416. #define MPS_PORT_STAT_RX_PORT_LEN_ERROR_L 0x580
  1417. #define MPS_PORT_STAT_RX_PORT_LEN_ERROR_H 0x584
  1418. #define MPS_PORT_STAT_RX_PORT_SYM_ERROR_L 0x588
  1419. #define MPS_PORT_STAT_RX_PORT_SYM_ERROR_H 0x58c
  1420. #define MPS_PORT_STAT_RX_PORT_64B_L 0x590
  1421. #define MPS_PORT_STAT_RX_PORT_64B_H 0x594
  1422. #define MPS_PORT_STAT_RX_PORT_65B_127B_L 0x598
  1423. #define MPS_PORT_STAT_RX_PORT_65B_127B_H 0x59c
  1424. #define MPS_PORT_STAT_RX_PORT_128B_255B_L 0x5a0
  1425. #define MPS_PORT_STAT_RX_PORT_128B_255B_H 0x5a4
  1426. #define MPS_PORT_STAT_RX_PORT_256B_511B_L 0x5a8
  1427. #define MPS_PORT_STAT_RX_PORT_256B_511B_H 0x5ac
  1428. #define MPS_PORT_STAT_RX_PORT_512B_1023B_L 0x5b0
  1429. #define MPS_PORT_STAT_RX_PORT_512B_1023B_H 0x5b4
  1430. #define MPS_PORT_STAT_RX_PORT_1024B_1518B_L 0x5b8
  1431. #define MPS_PORT_STAT_RX_PORT_1024B_1518B_H 0x5bc
  1432. #define MPS_PORT_STAT_RX_PORT_1519B_MAX_L 0x5c0
  1433. #define MPS_PORT_STAT_RX_PORT_1519B_MAX_H 0x5c4
  1434. #define MPS_PORT_STAT_RX_PORT_PAUSE_L 0x5c8
  1435. #define MPS_PORT_STAT_RX_PORT_PAUSE_H 0x5cc
  1436. #define MPS_PORT_STAT_RX_PORT_PPP0_L 0x5d0
  1437. #define MPS_PORT_STAT_RX_PORT_PPP0_H 0x5d4
  1438. #define MPS_PORT_STAT_RX_PORT_PPP1_L 0x5d8
  1439. #define MPS_PORT_STAT_RX_PORT_PPP1_H 0x5dc
  1440. #define MPS_PORT_STAT_RX_PORT_PPP2_L 0x5e0
  1441. #define MPS_PORT_STAT_RX_PORT_PPP2_H 0x5e4
  1442. #define MPS_PORT_STAT_RX_PORT_PPP3_L 0x5e8
  1443. #define MPS_PORT_STAT_RX_PORT_PPP3_H 0x5ec
  1444. #define MPS_PORT_STAT_RX_PORT_PPP4_L 0x5f0
  1445. #define MPS_PORT_STAT_RX_PORT_PPP4_H 0x5f4
  1446. #define MPS_PORT_STAT_RX_PORT_PPP5_L 0x5f8
  1447. #define MPS_PORT_STAT_RX_PORT_PPP5_H 0x5fc
  1448. #define MPS_PORT_STAT_RX_PORT_PPP6_L 0x600
  1449. #define MPS_PORT_STAT_RX_PORT_PPP6_H 0x604
  1450. #define MPS_PORT_STAT_RX_PORT_PPP7_L 0x608
  1451. #define MPS_PORT_STAT_RX_PORT_PPP7_H 0x60c
  1452. #define MPS_PORT_STAT_RX_PORT_LESS_64B_L 0x610
  1453. #define MPS_PORT_STAT_RX_PORT_LESS_64B_H 0x614
  1454. #define MAC_PORT_MAGIC_MACID_LO 0x824
  1455. #define MAC_PORT_MAGIC_MACID_HI 0x828
  1456. #define MAC_PORT_TX_TS_VAL_LO 0x928
  1457. #define MAC_PORT_TX_TS_VAL_HI 0x92c
  1458. #define MAC_PORT_EPIO_DATA0_A 0x8c0
  1459. #define MAC_PORT_EPIO_DATA1_A 0x8c4
  1460. #define MAC_PORT_EPIO_DATA2_A 0x8c8
  1461. #define MAC_PORT_EPIO_DATA3_A 0x8cc
  1462. #define MAC_PORT_EPIO_OP_A 0x8d0
  1463. #define MAC_PORT_CFG2_A 0x818
  1464. #define MPS_CMN_CTL_A 0x9000
  1465. #define COUNTPAUSEMCRX_S 5
  1466. #define COUNTPAUSEMCRX_V(x) ((x) << COUNTPAUSEMCRX_S)
  1467. #define COUNTPAUSEMCRX_F COUNTPAUSEMCRX_V(1U)
  1468. #define COUNTPAUSESTATRX_S 4
  1469. #define COUNTPAUSESTATRX_V(x) ((x) << COUNTPAUSESTATRX_S)
  1470. #define COUNTPAUSESTATRX_F COUNTPAUSESTATRX_V(1U)
  1471. #define COUNTPAUSEMCTX_S 3
  1472. #define COUNTPAUSEMCTX_V(x) ((x) << COUNTPAUSEMCTX_S)
  1473. #define COUNTPAUSEMCTX_F COUNTPAUSEMCTX_V(1U)
  1474. #define COUNTPAUSESTATTX_S 2
  1475. #define COUNTPAUSESTATTX_V(x) ((x) << COUNTPAUSESTATTX_S)
  1476. #define COUNTPAUSESTATTX_F COUNTPAUSESTATTX_V(1U)
  1477. #define NUMPORTS_S 0
  1478. #define NUMPORTS_M 0x3U
  1479. #define NUMPORTS_G(x) (((x) >> NUMPORTS_S) & NUMPORTS_M)
  1480. #define MPS_INT_CAUSE_A 0x9008
  1481. #define MPS_TX_INT_CAUSE_A 0x9408
  1482. #define MPS_STAT_CTL_A 0x9600
  1483. #define FRMERR_S 15
  1484. #define FRMERR_V(x) ((x) << FRMERR_S)
  1485. #define FRMERR_F FRMERR_V(1U)
  1486. #define SECNTERR_S 14
  1487. #define SECNTERR_V(x) ((x) << SECNTERR_S)
  1488. #define SECNTERR_F SECNTERR_V(1U)
  1489. #define BUBBLE_S 13
  1490. #define BUBBLE_V(x) ((x) << BUBBLE_S)
  1491. #define BUBBLE_F BUBBLE_V(1U)
  1492. #define TXDESCFIFO_S 9
  1493. #define TXDESCFIFO_M 0xfU
  1494. #define TXDESCFIFO_V(x) ((x) << TXDESCFIFO_S)
  1495. #define TXDATAFIFO_S 5
  1496. #define TXDATAFIFO_M 0xfU
  1497. #define TXDATAFIFO_V(x) ((x) << TXDATAFIFO_S)
  1498. #define NCSIFIFO_S 4
  1499. #define NCSIFIFO_V(x) ((x) << NCSIFIFO_S)
  1500. #define NCSIFIFO_F NCSIFIFO_V(1U)
  1501. #define TPFIFO_S 0
  1502. #define TPFIFO_M 0xfU
  1503. #define TPFIFO_V(x) ((x) << TPFIFO_S)
  1504. #define MPS_STAT_PERR_INT_CAUSE_SRAM_A 0x9614
  1505. #define MPS_STAT_PERR_INT_CAUSE_TX_FIFO_A 0x9620
  1506. #define MPS_STAT_PERR_INT_CAUSE_RX_FIFO_A 0x962c
  1507. #define MPS_STAT_RX_BG_0_MAC_DROP_FRAME_L 0x9640
  1508. #define MPS_STAT_RX_BG_0_MAC_DROP_FRAME_H 0x9644
  1509. #define MPS_STAT_RX_BG_1_MAC_DROP_FRAME_L 0x9648
  1510. #define MPS_STAT_RX_BG_1_MAC_DROP_FRAME_H 0x964c
  1511. #define MPS_STAT_RX_BG_2_MAC_DROP_FRAME_L 0x9650
  1512. #define MPS_STAT_RX_BG_2_MAC_DROP_FRAME_H 0x9654
  1513. #define MPS_STAT_RX_BG_3_MAC_DROP_FRAME_L 0x9658
  1514. #define MPS_STAT_RX_BG_3_MAC_DROP_FRAME_H 0x965c
  1515. #define MPS_STAT_RX_BG_0_LB_DROP_FRAME_L 0x9660
  1516. #define MPS_STAT_RX_BG_0_LB_DROP_FRAME_H 0x9664
  1517. #define MPS_STAT_RX_BG_1_LB_DROP_FRAME_L 0x9668
  1518. #define MPS_STAT_RX_BG_1_LB_DROP_FRAME_H 0x966c
  1519. #define MPS_STAT_RX_BG_2_LB_DROP_FRAME_L 0x9670
  1520. #define MPS_STAT_RX_BG_2_LB_DROP_FRAME_H 0x9674
  1521. #define MPS_STAT_RX_BG_3_LB_DROP_FRAME_L 0x9678
  1522. #define MPS_STAT_RX_BG_3_LB_DROP_FRAME_H 0x967c
  1523. #define MPS_STAT_RX_BG_0_MAC_TRUNC_FRAME_L 0x9680
  1524. #define MPS_STAT_RX_BG_0_MAC_TRUNC_FRAME_H 0x9684
  1525. #define MPS_STAT_RX_BG_1_MAC_TRUNC_FRAME_L 0x9688
  1526. #define MPS_STAT_RX_BG_1_MAC_TRUNC_FRAME_H 0x968c
  1527. #define MPS_STAT_RX_BG_2_MAC_TRUNC_FRAME_L 0x9690
  1528. #define MPS_STAT_RX_BG_2_MAC_TRUNC_FRAME_H 0x9694
  1529. #define MPS_STAT_RX_BG_3_MAC_TRUNC_FRAME_L 0x9698
  1530. #define MPS_STAT_RX_BG_3_MAC_TRUNC_FRAME_H 0x969c
  1531. #define MPS_STAT_RX_BG_0_LB_TRUNC_FRAME_L 0x96a0
  1532. #define MPS_STAT_RX_BG_0_LB_TRUNC_FRAME_H 0x96a4
  1533. #define MPS_STAT_RX_BG_1_LB_TRUNC_FRAME_L 0x96a8
  1534. #define MPS_STAT_RX_BG_1_LB_TRUNC_FRAME_H 0x96ac
  1535. #define MPS_STAT_RX_BG_2_LB_TRUNC_FRAME_L 0x96b0
  1536. #define MPS_STAT_RX_BG_2_LB_TRUNC_FRAME_H 0x96b4
  1537. #define MPS_STAT_RX_BG_3_LB_TRUNC_FRAME_L 0x96b8
  1538. #define MPS_STAT_RX_BG_3_LB_TRUNC_FRAME_H 0x96bc
  1539. #define MPS_TRC_CFG_A 0x9800
  1540. #define TRCFIFOEMPTY_S 4
  1541. #define TRCFIFOEMPTY_V(x) ((x) << TRCFIFOEMPTY_S)
  1542. #define TRCFIFOEMPTY_F TRCFIFOEMPTY_V(1U)
  1543. #define TRCIGNOREDROPINPUT_S 3
  1544. #define TRCIGNOREDROPINPUT_V(x) ((x) << TRCIGNOREDROPINPUT_S)
  1545. #define TRCIGNOREDROPINPUT_F TRCIGNOREDROPINPUT_V(1U)
  1546. #define TRCKEEPDUPLICATES_S 2
  1547. #define TRCKEEPDUPLICATES_V(x) ((x) << TRCKEEPDUPLICATES_S)
  1548. #define TRCKEEPDUPLICATES_F TRCKEEPDUPLICATES_V(1U)
  1549. #define TRCEN_S 1
  1550. #define TRCEN_V(x) ((x) << TRCEN_S)
  1551. #define TRCEN_F TRCEN_V(1U)
  1552. #define TRCMULTIFILTER_S 0
  1553. #define TRCMULTIFILTER_V(x) ((x) << TRCMULTIFILTER_S)
  1554. #define TRCMULTIFILTER_F TRCMULTIFILTER_V(1U)
  1555. #define MPS_TRC_RSS_CONTROL_A 0x9808
  1556. #define MPS_TRC_FILTER1_RSS_CONTROL_A 0x9ff4
  1557. #define MPS_TRC_FILTER2_RSS_CONTROL_A 0x9ffc
  1558. #define MPS_TRC_FILTER3_RSS_CONTROL_A 0xa004
  1559. #define MPS_T5_TRC_RSS_CONTROL_A 0xa00c
  1560. #define RSSCONTROL_S 16
  1561. #define RSSCONTROL_V(x) ((x) << RSSCONTROL_S)
  1562. #define QUEUENUMBER_S 0
  1563. #define QUEUENUMBER_V(x) ((x) << QUEUENUMBER_S)
  1564. #define TFINVERTMATCH_S 24
  1565. #define TFINVERTMATCH_V(x) ((x) << TFINVERTMATCH_S)
  1566. #define TFINVERTMATCH_F TFINVERTMATCH_V(1U)
  1567. #define TFEN_S 22
  1568. #define TFEN_V(x) ((x) << TFEN_S)
  1569. #define TFEN_F TFEN_V(1U)
  1570. #define TFPORT_S 18
  1571. #define TFPORT_M 0xfU
  1572. #define TFPORT_V(x) ((x) << TFPORT_S)
  1573. #define TFPORT_G(x) (((x) >> TFPORT_S) & TFPORT_M)
  1574. #define TFLENGTH_S 8
  1575. #define TFLENGTH_M 0x1fU
  1576. #define TFLENGTH_V(x) ((x) << TFLENGTH_S)
  1577. #define TFLENGTH_G(x) (((x) >> TFLENGTH_S) & TFLENGTH_M)
  1578. #define TFOFFSET_S 0
  1579. #define TFOFFSET_M 0x1fU
  1580. #define TFOFFSET_V(x) ((x) << TFOFFSET_S)
  1581. #define TFOFFSET_G(x) (((x) >> TFOFFSET_S) & TFOFFSET_M)
  1582. #define T5_TFINVERTMATCH_S 25
  1583. #define T5_TFINVERTMATCH_V(x) ((x) << T5_TFINVERTMATCH_S)
  1584. #define T5_TFINVERTMATCH_F T5_TFINVERTMATCH_V(1U)
  1585. #define T5_TFEN_S 23
  1586. #define T5_TFEN_V(x) ((x) << T5_TFEN_S)
  1587. #define T5_TFEN_F T5_TFEN_V(1U)
  1588. #define T5_TFPORT_S 18
  1589. #define T5_TFPORT_M 0x1fU
  1590. #define T5_TFPORT_V(x) ((x) << T5_TFPORT_S)
  1591. #define T5_TFPORT_G(x) (((x) >> T5_TFPORT_S) & T5_TFPORT_M)
  1592. #define MPS_TRC_FILTER_MATCH_CTL_A_A 0x9810
  1593. #define MPS_TRC_FILTER_MATCH_CTL_B_A 0x9820
  1594. #define TFMINPKTSIZE_S 16
  1595. #define TFMINPKTSIZE_M 0x1ffU
  1596. #define TFMINPKTSIZE_V(x) ((x) << TFMINPKTSIZE_S)
  1597. #define TFMINPKTSIZE_G(x) (((x) >> TFMINPKTSIZE_S) & TFMINPKTSIZE_M)
  1598. #define TFCAPTUREMAX_S 0
  1599. #define TFCAPTUREMAX_M 0x3fffU
  1600. #define TFCAPTUREMAX_V(x) ((x) << TFCAPTUREMAX_S)
  1601. #define TFCAPTUREMAX_G(x) (((x) >> TFCAPTUREMAX_S) & TFCAPTUREMAX_M)
  1602. #define MPS_TRC_FILTER0_MATCH_A 0x9c00
  1603. #define MPS_TRC_FILTER0_DONT_CARE_A 0x9c80
  1604. #define MPS_TRC_FILTER1_MATCH_A 0x9d00
  1605. #define TP_RSS_CONFIG_A 0x7df0
  1606. #define TNL4TUPENIPV6_S 31
  1607. #define TNL4TUPENIPV6_V(x) ((x) << TNL4TUPENIPV6_S)
  1608. #define TNL4TUPENIPV6_F TNL4TUPENIPV6_V(1U)
  1609. #define TNL2TUPENIPV6_S 30
  1610. #define TNL2TUPENIPV6_V(x) ((x) << TNL2TUPENIPV6_S)
  1611. #define TNL2TUPENIPV6_F TNL2TUPENIPV6_V(1U)
  1612. #define TNL4TUPENIPV4_S 29
  1613. #define TNL4TUPENIPV4_V(x) ((x) << TNL4TUPENIPV4_S)
  1614. #define TNL4TUPENIPV4_F TNL4TUPENIPV4_V(1U)
  1615. #define TNL2TUPENIPV4_S 28
  1616. #define TNL2TUPENIPV4_V(x) ((x) << TNL2TUPENIPV4_S)
  1617. #define TNL2TUPENIPV4_F TNL2TUPENIPV4_V(1U)
  1618. #define TNLTCPSEL_S 27
  1619. #define TNLTCPSEL_V(x) ((x) << TNLTCPSEL_S)
  1620. #define TNLTCPSEL_F TNLTCPSEL_V(1U)
  1621. #define TNLIP6SEL_S 26
  1622. #define TNLIP6SEL_V(x) ((x) << TNLIP6SEL_S)
  1623. #define TNLIP6SEL_F TNLIP6SEL_V(1U)
  1624. #define TNLVRTSEL_S 25
  1625. #define TNLVRTSEL_V(x) ((x) << TNLVRTSEL_S)
  1626. #define TNLVRTSEL_F TNLVRTSEL_V(1U)
  1627. #define TNLMAPEN_S 24
  1628. #define TNLMAPEN_V(x) ((x) << TNLMAPEN_S)
  1629. #define TNLMAPEN_F TNLMAPEN_V(1U)
  1630. #define OFDHASHSAVE_S 19
  1631. #define OFDHASHSAVE_V(x) ((x) << OFDHASHSAVE_S)
  1632. #define OFDHASHSAVE_F OFDHASHSAVE_V(1U)
  1633. #define OFDVRTSEL_S 18
  1634. #define OFDVRTSEL_V(x) ((x) << OFDVRTSEL_S)
  1635. #define OFDVRTSEL_F OFDVRTSEL_V(1U)
  1636. #define OFDMAPEN_S 17
  1637. #define OFDMAPEN_V(x) ((x) << OFDMAPEN_S)
  1638. #define OFDMAPEN_F OFDMAPEN_V(1U)
  1639. #define OFDLKPEN_S 16
  1640. #define OFDLKPEN_V(x) ((x) << OFDLKPEN_S)
  1641. #define OFDLKPEN_F OFDLKPEN_V(1U)
  1642. #define SYN4TUPENIPV6_S 15
  1643. #define SYN4TUPENIPV6_V(x) ((x) << SYN4TUPENIPV6_S)
  1644. #define SYN4TUPENIPV6_F SYN4TUPENIPV6_V(1U)
  1645. #define SYN2TUPENIPV6_S 14
  1646. #define SYN2TUPENIPV6_V(x) ((x) << SYN2TUPENIPV6_S)
  1647. #define SYN2TUPENIPV6_F SYN2TUPENIPV6_V(1U)
  1648. #define SYN4TUPENIPV4_S 13
  1649. #define SYN4TUPENIPV4_V(x) ((x) << SYN4TUPENIPV4_S)
  1650. #define SYN4TUPENIPV4_F SYN4TUPENIPV4_V(1U)
  1651. #define SYN2TUPENIPV4_S 12
  1652. #define SYN2TUPENIPV4_V(x) ((x) << SYN2TUPENIPV4_S)
  1653. #define SYN2TUPENIPV4_F SYN2TUPENIPV4_V(1U)
  1654. #define SYNIP6SEL_S 11
  1655. #define SYNIP6SEL_V(x) ((x) << SYNIP6SEL_S)
  1656. #define SYNIP6SEL_F SYNIP6SEL_V(1U)
  1657. #define SYNVRTSEL_S 10
  1658. #define SYNVRTSEL_V(x) ((x) << SYNVRTSEL_S)
  1659. #define SYNVRTSEL_F SYNVRTSEL_V(1U)
  1660. #define SYNMAPEN_S 9
  1661. #define SYNMAPEN_V(x) ((x) << SYNMAPEN_S)
  1662. #define SYNMAPEN_F SYNMAPEN_V(1U)
  1663. #define SYNLKPEN_S 8
  1664. #define SYNLKPEN_V(x) ((x) << SYNLKPEN_S)
  1665. #define SYNLKPEN_F SYNLKPEN_V(1U)
  1666. #define CHANNELENABLE_S 7
  1667. #define CHANNELENABLE_V(x) ((x) << CHANNELENABLE_S)
  1668. #define CHANNELENABLE_F CHANNELENABLE_V(1U)
  1669. #define PORTENABLE_S 6
  1670. #define PORTENABLE_V(x) ((x) << PORTENABLE_S)
  1671. #define PORTENABLE_F PORTENABLE_V(1U)
  1672. #define TNLALLLOOKUP_S 5
  1673. #define TNLALLLOOKUP_V(x) ((x) << TNLALLLOOKUP_S)
  1674. #define TNLALLLOOKUP_F TNLALLLOOKUP_V(1U)
  1675. #define VIRTENABLE_S 4
  1676. #define VIRTENABLE_V(x) ((x) << VIRTENABLE_S)
  1677. #define VIRTENABLE_F VIRTENABLE_V(1U)
  1678. #define CONGESTIONENABLE_S 3
  1679. #define CONGESTIONENABLE_V(x) ((x) << CONGESTIONENABLE_S)
  1680. #define CONGESTIONENABLE_F CONGESTIONENABLE_V(1U)
  1681. #define HASHTOEPLITZ_S 2
  1682. #define HASHTOEPLITZ_V(x) ((x) << HASHTOEPLITZ_S)
  1683. #define HASHTOEPLITZ_F HASHTOEPLITZ_V(1U)
  1684. #define UDPENABLE_S 1
  1685. #define UDPENABLE_V(x) ((x) << UDPENABLE_S)
  1686. #define UDPENABLE_F UDPENABLE_V(1U)
  1687. #define DISABLE_S 0
  1688. #define DISABLE_V(x) ((x) << DISABLE_S)
  1689. #define DISABLE_F DISABLE_V(1U)
  1690. #define TP_RSS_CONFIG_TNL_A 0x7df4
  1691. #define MASKSIZE_S 28
  1692. #define MASKSIZE_M 0xfU
  1693. #define MASKSIZE_V(x) ((x) << MASKSIZE_S)
  1694. #define MASKSIZE_G(x) (((x) >> MASKSIZE_S) & MASKSIZE_M)
  1695. #define MASKFILTER_S 16
  1696. #define MASKFILTER_M 0x7ffU
  1697. #define MASKFILTER_V(x) ((x) << MASKFILTER_S)
  1698. #define MASKFILTER_G(x) (((x) >> MASKFILTER_S) & MASKFILTER_M)
  1699. #define USEWIRECH_S 0
  1700. #define USEWIRECH_V(x) ((x) << USEWIRECH_S)
  1701. #define USEWIRECH_F USEWIRECH_V(1U)
  1702. #define HASHALL_S 2
  1703. #define HASHALL_V(x) ((x) << HASHALL_S)
  1704. #define HASHALL_F HASHALL_V(1U)
  1705. #define HASHETH_S 1
  1706. #define HASHETH_V(x) ((x) << HASHETH_S)
  1707. #define HASHETH_F HASHETH_V(1U)
  1708. #define TP_RSS_CONFIG_OFD_A 0x7df8
  1709. #define RRCPLMAPEN_S 20
  1710. #define RRCPLMAPEN_V(x) ((x) << RRCPLMAPEN_S)
  1711. #define RRCPLMAPEN_F RRCPLMAPEN_V(1U)
  1712. #define RRCPLQUEWIDTH_S 16
  1713. #define RRCPLQUEWIDTH_M 0xfU
  1714. #define RRCPLQUEWIDTH_V(x) ((x) << RRCPLQUEWIDTH_S)
  1715. #define RRCPLQUEWIDTH_G(x) (((x) >> RRCPLQUEWIDTH_S) & RRCPLQUEWIDTH_M)
  1716. #define TP_RSS_CONFIG_SYN_A 0x7dfc
  1717. #define TP_RSS_CONFIG_VRT_A 0x7e00
  1718. #define VFRDRG_S 25
  1719. #define VFRDRG_V(x) ((x) << VFRDRG_S)
  1720. #define VFRDRG_F VFRDRG_V(1U)
  1721. #define VFRDEN_S 24
  1722. #define VFRDEN_V(x) ((x) << VFRDEN_S)
  1723. #define VFRDEN_F VFRDEN_V(1U)
  1724. #define VFPERREN_S 23
  1725. #define VFPERREN_V(x) ((x) << VFPERREN_S)
  1726. #define VFPERREN_F VFPERREN_V(1U)
  1727. #define KEYPERREN_S 22
  1728. #define KEYPERREN_V(x) ((x) << KEYPERREN_S)
  1729. #define KEYPERREN_F KEYPERREN_V(1U)
  1730. #define DISABLEVLAN_S 21
  1731. #define DISABLEVLAN_V(x) ((x) << DISABLEVLAN_S)
  1732. #define DISABLEVLAN_F DISABLEVLAN_V(1U)
  1733. #define ENABLEUP0_S 20
  1734. #define ENABLEUP0_V(x) ((x) << ENABLEUP0_S)
  1735. #define ENABLEUP0_F ENABLEUP0_V(1U)
  1736. #define HASHDELAY_S 16
  1737. #define HASHDELAY_M 0xfU
  1738. #define HASHDELAY_V(x) ((x) << HASHDELAY_S)
  1739. #define HASHDELAY_G(x) (((x) >> HASHDELAY_S) & HASHDELAY_M)
  1740. #define VFWRADDR_S 8
  1741. #define VFWRADDR_M 0x7fU
  1742. #define VFWRADDR_V(x) ((x) << VFWRADDR_S)
  1743. #define VFWRADDR_G(x) (((x) >> VFWRADDR_S) & VFWRADDR_M)
  1744. #define KEYMODE_S 6
  1745. #define KEYMODE_M 0x3U
  1746. #define KEYMODE_V(x) ((x) << KEYMODE_S)
  1747. #define KEYMODE_G(x) (((x) >> KEYMODE_S) & KEYMODE_M)
  1748. #define VFWREN_S 5
  1749. #define VFWREN_V(x) ((x) << VFWREN_S)
  1750. #define VFWREN_F VFWREN_V(1U)
  1751. #define KEYWREN_S 4
  1752. #define KEYWREN_V(x) ((x) << KEYWREN_S)
  1753. #define KEYWREN_F KEYWREN_V(1U)
  1754. #define KEYWRADDR_S 0
  1755. #define KEYWRADDR_M 0xfU
  1756. #define KEYWRADDR_V(x) ((x) << KEYWRADDR_S)
  1757. #define KEYWRADDR_G(x) (((x) >> KEYWRADDR_S) & KEYWRADDR_M)
  1758. #define KEYWRADDRX_S 30
  1759. #define KEYWRADDRX_M 0x3U
  1760. #define KEYWRADDRX_V(x) ((x) << KEYWRADDRX_S)
  1761. #define KEYWRADDRX_G(x) (((x) >> KEYWRADDRX_S) & KEYWRADDRX_M)
  1762. #define KEYEXTEND_S 26
  1763. #define KEYEXTEND_V(x) ((x) << KEYEXTEND_S)
  1764. #define KEYEXTEND_F KEYEXTEND_V(1U)
  1765. #define LKPIDXSIZE_S 24
  1766. #define LKPIDXSIZE_M 0x3U
  1767. #define LKPIDXSIZE_V(x) ((x) << LKPIDXSIZE_S)
  1768. #define LKPIDXSIZE_G(x) (((x) >> LKPIDXSIZE_S) & LKPIDXSIZE_M)
  1769. #define TP_RSS_VFL_CONFIG_A 0x3a
  1770. #define TP_RSS_VFH_CONFIG_A 0x3b
  1771. #define ENABLEUDPHASH_S 31
  1772. #define ENABLEUDPHASH_V(x) ((x) << ENABLEUDPHASH_S)
  1773. #define ENABLEUDPHASH_F ENABLEUDPHASH_V(1U)
  1774. #define VFUPEN_S 30
  1775. #define VFUPEN_V(x) ((x) << VFUPEN_S)
  1776. #define VFUPEN_F VFUPEN_V(1U)
  1777. #define VFVLNEX_S 28
  1778. #define VFVLNEX_V(x) ((x) << VFVLNEX_S)
  1779. #define VFVLNEX_F VFVLNEX_V(1U)
  1780. #define VFPRTEN_S 27
  1781. #define VFPRTEN_V(x) ((x) << VFPRTEN_S)
  1782. #define VFPRTEN_F VFPRTEN_V(1U)
  1783. #define VFCHNEN_S 26
  1784. #define VFCHNEN_V(x) ((x) << VFCHNEN_S)
  1785. #define VFCHNEN_F VFCHNEN_V(1U)
  1786. #define DEFAULTQUEUE_S 16
  1787. #define DEFAULTQUEUE_M 0x3ffU
  1788. #define DEFAULTQUEUE_G(x) (((x) >> DEFAULTQUEUE_S) & DEFAULTQUEUE_M)
  1789. #define VFIP6TWOTUPEN_S 6
  1790. #define VFIP6TWOTUPEN_V(x) ((x) << VFIP6TWOTUPEN_S)
  1791. #define VFIP6TWOTUPEN_F VFIP6TWOTUPEN_V(1U)
  1792. #define VFIP4FOURTUPEN_S 5
  1793. #define VFIP4FOURTUPEN_V(x) ((x) << VFIP4FOURTUPEN_S)
  1794. #define VFIP4FOURTUPEN_F VFIP4FOURTUPEN_V(1U)
  1795. #define VFIP4TWOTUPEN_S 4
  1796. #define VFIP4TWOTUPEN_V(x) ((x) << VFIP4TWOTUPEN_S)
  1797. #define VFIP4TWOTUPEN_F VFIP4TWOTUPEN_V(1U)
  1798. #define KEYINDEX_S 0
  1799. #define KEYINDEX_M 0xfU
  1800. #define KEYINDEX_G(x) (((x) >> KEYINDEX_S) & KEYINDEX_M)
  1801. #define MAPENABLE_S 31
  1802. #define MAPENABLE_V(x) ((x) << MAPENABLE_S)
  1803. #define MAPENABLE_F MAPENABLE_V(1U)
  1804. #define CHNENABLE_S 30
  1805. #define CHNENABLE_V(x) ((x) << CHNENABLE_S)
  1806. #define CHNENABLE_F CHNENABLE_V(1U)
  1807. #define LE_DB_DBGI_CONFIG_A 0x19cf0
  1808. #define DBGICMDBUSY_S 3
  1809. #define DBGICMDBUSY_V(x) ((x) << DBGICMDBUSY_S)
  1810. #define DBGICMDBUSY_F DBGICMDBUSY_V(1U)
  1811. #define DBGICMDSTRT_S 2
  1812. #define DBGICMDSTRT_V(x) ((x) << DBGICMDSTRT_S)
  1813. #define DBGICMDSTRT_F DBGICMDSTRT_V(1U)
  1814. #define DBGICMDMODE_S 0
  1815. #define DBGICMDMODE_M 0x3U
  1816. #define DBGICMDMODE_V(x) ((x) << DBGICMDMODE_S)
  1817. #define LE_DB_DBGI_REQ_TCAM_CMD_A 0x19cf4
  1818. #define DBGICMD_S 20
  1819. #define DBGICMD_M 0xfU
  1820. #define DBGICMD_V(x) ((x) << DBGICMD_S)
  1821. #define DBGITID_S 0
  1822. #define DBGITID_M 0xfffffU
  1823. #define DBGITID_V(x) ((x) << DBGITID_S)
  1824. #define LE_DB_DBGI_REQ_DATA_A 0x19d00
  1825. #define LE_DB_DBGI_RSP_STATUS_A 0x19d94
  1826. #define LE_DB_DBGI_RSP_DATA_A 0x19da0
  1827. #define PRTENABLE_S 29
  1828. #define PRTENABLE_V(x) ((x) << PRTENABLE_S)
  1829. #define PRTENABLE_F PRTENABLE_V(1U)
  1830. #define UDPFOURTUPEN_S 28
  1831. #define UDPFOURTUPEN_V(x) ((x) << UDPFOURTUPEN_S)
  1832. #define UDPFOURTUPEN_F UDPFOURTUPEN_V(1U)
  1833. #define IP6FOURTUPEN_S 27
  1834. #define IP6FOURTUPEN_V(x) ((x) << IP6FOURTUPEN_S)
  1835. #define IP6FOURTUPEN_F IP6FOURTUPEN_V(1U)
  1836. #define IP6TWOTUPEN_S 26
  1837. #define IP6TWOTUPEN_V(x) ((x) << IP6TWOTUPEN_S)
  1838. #define IP6TWOTUPEN_F IP6TWOTUPEN_V(1U)
  1839. #define IP4FOURTUPEN_S 25
  1840. #define IP4FOURTUPEN_V(x) ((x) << IP4FOURTUPEN_S)
  1841. #define IP4FOURTUPEN_F IP4FOURTUPEN_V(1U)
  1842. #define IP4TWOTUPEN_S 24
  1843. #define IP4TWOTUPEN_V(x) ((x) << IP4TWOTUPEN_S)
  1844. #define IP4TWOTUPEN_F IP4TWOTUPEN_V(1U)
  1845. #define IVFWIDTH_S 20
  1846. #define IVFWIDTH_M 0xfU
  1847. #define IVFWIDTH_V(x) ((x) << IVFWIDTH_S)
  1848. #define IVFWIDTH_G(x) (((x) >> IVFWIDTH_S) & IVFWIDTH_M)
  1849. #define CH1DEFAULTQUEUE_S 10
  1850. #define CH1DEFAULTQUEUE_M 0x3ffU
  1851. #define CH1DEFAULTQUEUE_V(x) ((x) << CH1DEFAULTQUEUE_S)
  1852. #define CH1DEFAULTQUEUE_G(x) (((x) >> CH1DEFAULTQUEUE_S) & CH1DEFAULTQUEUE_M)
  1853. #define CH0DEFAULTQUEUE_S 0
  1854. #define CH0DEFAULTQUEUE_M 0x3ffU
  1855. #define CH0DEFAULTQUEUE_V(x) ((x) << CH0DEFAULTQUEUE_S)
  1856. #define CH0DEFAULTQUEUE_G(x) (((x) >> CH0DEFAULTQUEUE_S) & CH0DEFAULTQUEUE_M)
  1857. #define VFLKPIDX_S 8
  1858. #define VFLKPIDX_M 0xffU
  1859. #define VFLKPIDX_G(x) (((x) >> VFLKPIDX_S) & VFLKPIDX_M)
  1860. #define T6_VFWRADDR_S 8
  1861. #define T6_VFWRADDR_M 0xffU
  1862. #define T6_VFWRADDR_V(x) ((x) << T6_VFWRADDR_S)
  1863. #define T6_VFWRADDR_G(x) (((x) >> T6_VFWRADDR_S) & T6_VFWRADDR_M)
  1864. #define TP_RSS_CONFIG_CNG_A 0x7e04
  1865. #define TP_RSS_SECRET_KEY0_A 0x40
  1866. #define TP_RSS_PF0_CONFIG_A 0x30
  1867. #define TP_RSS_PF_MAP_A 0x38
  1868. #define TP_RSS_PF_MSK_A 0x39
  1869. #define PF1LKPIDX_S 3
  1870. #define PF0LKPIDX_M 0x7U
  1871. #define PF1MSKSIZE_S 4
  1872. #define PF1MSKSIZE_M 0xfU
  1873. #define CHNCOUNT3_S 31
  1874. #define CHNCOUNT3_V(x) ((x) << CHNCOUNT3_S)
  1875. #define CHNCOUNT3_F CHNCOUNT3_V(1U)
  1876. #define CHNCOUNT2_S 30
  1877. #define CHNCOUNT2_V(x) ((x) << CHNCOUNT2_S)
  1878. #define CHNCOUNT2_F CHNCOUNT2_V(1U)
  1879. #define CHNCOUNT1_S 29
  1880. #define CHNCOUNT1_V(x) ((x) << CHNCOUNT1_S)
  1881. #define CHNCOUNT1_F CHNCOUNT1_V(1U)
  1882. #define CHNCOUNT0_S 28
  1883. #define CHNCOUNT0_V(x) ((x) << CHNCOUNT0_S)
  1884. #define CHNCOUNT0_F CHNCOUNT0_V(1U)
  1885. #define CHNUNDFLOW3_S 27
  1886. #define CHNUNDFLOW3_V(x) ((x) << CHNUNDFLOW3_S)
  1887. #define CHNUNDFLOW3_F CHNUNDFLOW3_V(1U)
  1888. #define CHNUNDFLOW2_S 26
  1889. #define CHNUNDFLOW2_V(x) ((x) << CHNUNDFLOW2_S)
  1890. #define CHNUNDFLOW2_F CHNUNDFLOW2_V(1U)
  1891. #define CHNUNDFLOW1_S 25
  1892. #define CHNUNDFLOW1_V(x) ((x) << CHNUNDFLOW1_S)
  1893. #define CHNUNDFLOW1_F CHNUNDFLOW1_V(1U)
  1894. #define CHNUNDFLOW0_S 24
  1895. #define CHNUNDFLOW0_V(x) ((x) << CHNUNDFLOW0_S)
  1896. #define CHNUNDFLOW0_F CHNUNDFLOW0_V(1U)
  1897. #define RSTCHN3_S 19
  1898. #define RSTCHN3_V(x) ((x) << RSTCHN3_S)
  1899. #define RSTCHN3_F RSTCHN3_V(1U)
  1900. #define RSTCHN2_S 18
  1901. #define RSTCHN2_V(x) ((x) << RSTCHN2_S)
  1902. #define RSTCHN2_F RSTCHN2_V(1U)
  1903. #define RSTCHN1_S 17
  1904. #define RSTCHN1_V(x) ((x) << RSTCHN1_S)
  1905. #define RSTCHN1_F RSTCHN1_V(1U)
  1906. #define RSTCHN0_S 16
  1907. #define RSTCHN0_V(x) ((x) << RSTCHN0_S)
  1908. #define RSTCHN0_F RSTCHN0_V(1U)
  1909. #define UPDVLD_S 15
  1910. #define UPDVLD_V(x) ((x) << UPDVLD_S)
  1911. #define UPDVLD_F UPDVLD_V(1U)
  1912. #define XOFF_S 14
  1913. #define XOFF_V(x) ((x) << XOFF_S)
  1914. #define XOFF_F XOFF_V(1U)
  1915. #define UPDCHN3_S 13
  1916. #define UPDCHN3_V(x) ((x) << UPDCHN3_S)
  1917. #define UPDCHN3_F UPDCHN3_V(1U)
  1918. #define UPDCHN2_S 12
  1919. #define UPDCHN2_V(x) ((x) << UPDCHN2_S)
  1920. #define UPDCHN2_F UPDCHN2_V(1U)
  1921. #define UPDCHN1_S 11
  1922. #define UPDCHN1_V(x) ((x) << UPDCHN1_S)
  1923. #define UPDCHN1_F UPDCHN1_V(1U)
  1924. #define UPDCHN0_S 10
  1925. #define UPDCHN0_V(x) ((x) << UPDCHN0_S)
  1926. #define UPDCHN0_F UPDCHN0_V(1U)
  1927. #define QUEUE_S 0
  1928. #define QUEUE_M 0x3ffU
  1929. #define QUEUE_V(x) ((x) << QUEUE_S)
  1930. #define QUEUE_G(x) (((x) >> QUEUE_S) & QUEUE_M)
  1931. #define MPS_TRC_INT_CAUSE_A 0x985c
  1932. #define MISCPERR_S 8
  1933. #define MISCPERR_V(x) ((x) << MISCPERR_S)
  1934. #define MISCPERR_F MISCPERR_V(1U)
  1935. #define PKTFIFO_S 4
  1936. #define PKTFIFO_M 0xfU
  1937. #define PKTFIFO_V(x) ((x) << PKTFIFO_S)
  1938. #define FILTMEM_S 0
  1939. #define FILTMEM_M 0xfU
  1940. #define FILTMEM_V(x) ((x) << FILTMEM_S)
  1941. #define MPS_CLS_INT_CAUSE_A 0xd028
  1942. #define HASHSRAM_S 2
  1943. #define HASHSRAM_V(x) ((x) << HASHSRAM_S)
  1944. #define HASHSRAM_F HASHSRAM_V(1U)
  1945. #define MATCHTCAM_S 1
  1946. #define MATCHTCAM_V(x) ((x) << MATCHTCAM_S)
  1947. #define MATCHTCAM_F MATCHTCAM_V(1U)
  1948. #define MATCHSRAM_S 0
  1949. #define MATCHSRAM_V(x) ((x) << MATCHSRAM_S)
  1950. #define MATCHSRAM_F MATCHSRAM_V(1U)
  1951. #define MPS_RX_PG_RSV0_A 0x11010
  1952. #define MPS_RX_PG_RSV4_A 0x11020
  1953. #define MPS_RX_PERR_INT_CAUSE_A 0x11074
  1954. #define MPS_RX_MAC_BG_PG_CNT0_A 0x11208
  1955. #define MPS_RX_LPBK_BG_PG_CNT0_A 0x11218
  1956. #define MPS_RX_VXLAN_TYPE_A 0x11234
  1957. #define VXLAN_EN_S 16
  1958. #define VXLAN_EN_V(x) ((x) << VXLAN_EN_S)
  1959. #define VXLAN_EN_F VXLAN_EN_V(1U)
  1960. #define VXLAN_S 0
  1961. #define VXLAN_M 0xffffU
  1962. #define VXLAN_V(x) ((x) << VXLAN_S)
  1963. #define VXLAN_G(x) (((x) >> VXLAN_S) & VXLAN_M)
  1964. #define MPS_RX_GENEVE_TYPE_A 0x11238
  1965. #define GENEVE_EN_S 16
  1966. #define GENEVE_EN_V(x) ((x) << GENEVE_EN_S)
  1967. #define GENEVE_EN_F GENEVE_EN_V(1U)
  1968. #define GENEVE_S 0
  1969. #define GENEVE_M 0xffffU
  1970. #define GENEVE_V(x) ((x) << GENEVE_S)
  1971. #define GENEVE_G(x) (((x) >> GENEVE_S) & GENEVE_M)
  1972. #define MPS_CLS_TCAM_Y_L_A 0xf000
  1973. #define MPS_CLS_TCAM_DATA0_A 0xf000
  1974. #define MPS_CLS_TCAM_DATA1_A 0xf004
  1975. #define CTLREQID_S 30
  1976. #define CTLREQID_V(x) ((x) << CTLREQID_S)
  1977. #define MPS_VF_RPLCT_MAP0_A 0x1111c
  1978. #define MPS_VF_RPLCT_MAP1_A 0x11120
  1979. #define MPS_VF_RPLCT_MAP2_A 0x11124
  1980. #define MPS_VF_RPLCT_MAP3_A 0x11128
  1981. #define MPS_VF_RPLCT_MAP4_A 0x11300
  1982. #define MPS_VF_RPLCT_MAP5_A 0x11304
  1983. #define MPS_VF_RPLCT_MAP6_A 0x11308
  1984. #define MPS_VF_RPLCT_MAP7_A 0x1130c
  1985. #define VIDL_S 16
  1986. #define VIDL_M 0xffffU
  1987. #define VIDL_G(x) (((x) >> VIDL_S) & VIDL_M)
  1988. #define DATALKPTYPE_S 10
  1989. #define DATALKPTYPE_M 0x3U
  1990. #define DATALKPTYPE_G(x) (((x) >> DATALKPTYPE_S) & DATALKPTYPE_M)
  1991. #define DATAPORTNUM_S 12
  1992. #define DATAPORTNUM_M 0xfU
  1993. #define DATAPORTNUM_V(x) ((x) << DATAPORTNUM_S)
  1994. #define DATAPORTNUM_G(x) (((x) >> DATAPORTNUM_S) & DATAPORTNUM_M)
  1995. #define DATALKPTYPE_S 10
  1996. #define DATALKPTYPE_M 0x3U
  1997. #define DATALKPTYPE_V(x) ((x) << DATALKPTYPE_S)
  1998. #define DATALKPTYPE_G(x) (((x) >> DATALKPTYPE_S) & DATALKPTYPE_M)
  1999. #define DATADIPHIT_S 8
  2000. #define DATADIPHIT_V(x) ((x) << DATADIPHIT_S)
  2001. #define DATADIPHIT_F DATADIPHIT_V(1U)
  2002. #define DATAVIDH2_S 7
  2003. #define DATAVIDH2_V(x) ((x) << DATAVIDH2_S)
  2004. #define DATAVIDH2_F DATAVIDH2_V(1U)
  2005. #define DATAVIDH1_S 0
  2006. #define DATAVIDH1_M 0x7fU
  2007. #define DATAVIDH1_G(x) (((x) >> DATAVIDH1_S) & DATAVIDH1_M)
  2008. #define MPS_CLS_TCAM_RDATA0_REQ_ID1_A 0xf020
  2009. #define MPS_CLS_TCAM_RDATA1_REQ_ID1_A 0xf024
  2010. #define MPS_CLS_TCAM_RDATA2_REQ_ID1_A 0xf028
  2011. #define USED_S 16
  2012. #define USED_M 0x7ffU
  2013. #define USED_G(x) (((x) >> USED_S) & USED_M)
  2014. #define ALLOC_S 0
  2015. #define ALLOC_M 0x7ffU
  2016. #define ALLOC_G(x) (((x) >> ALLOC_S) & ALLOC_M)
  2017. #define T5_USED_S 16
  2018. #define T5_USED_M 0xfffU
  2019. #define T5_USED_G(x) (((x) >> T5_USED_S) & T5_USED_M)
  2020. #define T5_ALLOC_S 0
  2021. #define T5_ALLOC_M 0xfffU
  2022. #define T5_ALLOC_G(x) (((x) >> T5_ALLOC_S) & T5_ALLOC_M)
  2023. #define DMACH_S 0
  2024. #define DMACH_M 0xffffU
  2025. #define DMACH_G(x) (((x) >> DMACH_S) & DMACH_M)
  2026. #define MPS_CLS_TCAM_X_L_A 0xf008
  2027. #define MPS_CLS_TCAM_DATA2_CTL_A 0xf008
  2028. #define CTLCMDTYPE_S 31
  2029. #define CTLCMDTYPE_V(x) ((x) << CTLCMDTYPE_S)
  2030. #define CTLCMDTYPE_F CTLCMDTYPE_V(1U)
  2031. #define CTLTCAMSEL_S 25
  2032. #define CTLTCAMSEL_V(x) ((x) << CTLTCAMSEL_S)
  2033. #define CTLTCAMINDEX_S 17
  2034. #define CTLTCAMINDEX_V(x) ((x) << CTLTCAMINDEX_S)
  2035. #define CTLXYBITSEL_S 16
  2036. #define CTLXYBITSEL_V(x) ((x) << CTLXYBITSEL_S)
  2037. #define MPS_CLS_TCAM_Y_L(idx) (MPS_CLS_TCAM_Y_L_A + (idx) * 16)
  2038. #define NUM_MPS_CLS_TCAM_Y_L_INSTANCES 512
  2039. #define MPS_CLS_TCAM_X_L(idx) (MPS_CLS_TCAM_X_L_A + (idx) * 16)
  2040. #define NUM_MPS_CLS_TCAM_X_L_INSTANCES 512
  2041. #define MPS_CLS_SRAM_L_A 0xe000
  2042. #define T6_MULTILISTEN0_S 26
  2043. #define T6_SRAM_PRIO3_S 23
  2044. #define T6_SRAM_PRIO3_M 0x7U
  2045. #define T6_SRAM_PRIO3_G(x) (((x) >> T6_SRAM_PRIO3_S) & T6_SRAM_PRIO3_M)
  2046. #define T6_SRAM_PRIO2_S 20
  2047. #define T6_SRAM_PRIO2_M 0x7U
  2048. #define T6_SRAM_PRIO2_G(x) (((x) >> T6_SRAM_PRIO2_S) & T6_SRAM_PRIO2_M)
  2049. #define T6_SRAM_PRIO1_S 17
  2050. #define T6_SRAM_PRIO1_M 0x7U
  2051. #define T6_SRAM_PRIO1_G(x) (((x) >> T6_SRAM_PRIO1_S) & T6_SRAM_PRIO1_M)
  2052. #define T6_SRAM_PRIO0_S 14
  2053. #define T6_SRAM_PRIO0_M 0x7U
  2054. #define T6_SRAM_PRIO0_G(x) (((x) >> T6_SRAM_PRIO0_S) & T6_SRAM_PRIO0_M)
  2055. #define T6_SRAM_VLD_S 13
  2056. #define T6_SRAM_VLD_V(x) ((x) << T6_SRAM_VLD_S)
  2057. #define T6_SRAM_VLD_F T6_SRAM_VLD_V(1U)
  2058. #define T6_REPLICATE_S 12
  2059. #define T6_REPLICATE_V(x) ((x) << T6_REPLICATE_S)
  2060. #define T6_REPLICATE_F T6_REPLICATE_V(1U)
  2061. #define T6_PF_S 9
  2062. #define T6_PF_M 0x7U
  2063. #define T6_PF_G(x) (((x) >> T6_PF_S) & T6_PF_M)
  2064. #define T6_VF_VALID_S 8
  2065. #define T6_VF_VALID_V(x) ((x) << T6_VF_VALID_S)
  2066. #define T6_VF_VALID_F T6_VF_VALID_V(1U)
  2067. #define T6_VF_S 0
  2068. #define T6_VF_M 0xffU
  2069. #define T6_VF_G(x) (((x) >> T6_VF_S) & T6_VF_M)
  2070. #define MPS_CLS_SRAM_H_A 0xe004
  2071. #define MPS_CLS_SRAM_L(idx) (MPS_CLS_SRAM_L_A + (idx) * 8)
  2072. #define NUM_MPS_CLS_SRAM_L_INSTANCES 336
  2073. #define MPS_CLS_SRAM_H(idx) (MPS_CLS_SRAM_H_A + (idx) * 8)
  2074. #define NUM_MPS_CLS_SRAM_H_INSTANCES 336
  2075. #define MULTILISTEN0_S 25
  2076. #define REPLICATE_S 11
  2077. #define REPLICATE_V(x) ((x) << REPLICATE_S)
  2078. #define REPLICATE_F REPLICATE_V(1U)
  2079. #define PF_S 8
  2080. #define PF_M 0x7U
  2081. #define PF_G(x) (((x) >> PF_S) & PF_M)
  2082. #define VF_VALID_S 7
  2083. #define VF_VALID_V(x) ((x) << VF_VALID_S)
  2084. #define VF_VALID_F VF_VALID_V(1U)
  2085. #define VF_S 0
  2086. #define VF_M 0x7fU
  2087. #define VF_G(x) (((x) >> VF_S) & VF_M)
  2088. #define SRAM_PRIO3_S 22
  2089. #define SRAM_PRIO3_M 0x7U
  2090. #define SRAM_PRIO3_G(x) (((x) >> SRAM_PRIO3_S) & SRAM_PRIO3_M)
  2091. #define SRAM_PRIO2_S 19
  2092. #define SRAM_PRIO2_M 0x7U
  2093. #define SRAM_PRIO2_G(x) (((x) >> SRAM_PRIO2_S) & SRAM_PRIO2_M)
  2094. #define SRAM_PRIO1_S 16
  2095. #define SRAM_PRIO1_M 0x7U
  2096. #define SRAM_PRIO1_G(x) (((x) >> SRAM_PRIO1_S) & SRAM_PRIO1_M)
  2097. #define SRAM_PRIO0_S 13
  2098. #define SRAM_PRIO0_M 0x7U
  2099. #define SRAM_PRIO0_G(x) (((x) >> SRAM_PRIO0_S) & SRAM_PRIO0_M)
  2100. #define SRAM_VLD_S 12
  2101. #define SRAM_VLD_V(x) ((x) << SRAM_VLD_S)
  2102. #define SRAM_VLD_F SRAM_VLD_V(1U)
  2103. #define PORTMAP_S 0
  2104. #define PORTMAP_M 0xfU
  2105. #define PORTMAP_G(x) (((x) >> PORTMAP_S) & PORTMAP_M)
  2106. #define CPL_INTR_CAUSE_A 0x19054
  2107. #define CIM_OP_MAP_PERR_S 5
  2108. #define CIM_OP_MAP_PERR_V(x) ((x) << CIM_OP_MAP_PERR_S)
  2109. #define CIM_OP_MAP_PERR_F CIM_OP_MAP_PERR_V(1U)
  2110. #define CIM_OVFL_ERROR_S 4
  2111. #define CIM_OVFL_ERROR_V(x) ((x) << CIM_OVFL_ERROR_S)
  2112. #define CIM_OVFL_ERROR_F CIM_OVFL_ERROR_V(1U)
  2113. #define TP_FRAMING_ERROR_S 3
  2114. #define TP_FRAMING_ERROR_V(x) ((x) << TP_FRAMING_ERROR_S)
  2115. #define TP_FRAMING_ERROR_F TP_FRAMING_ERROR_V(1U)
  2116. #define SGE_FRAMING_ERROR_S 2
  2117. #define SGE_FRAMING_ERROR_V(x) ((x) << SGE_FRAMING_ERROR_S)
  2118. #define SGE_FRAMING_ERROR_F SGE_FRAMING_ERROR_V(1U)
  2119. #define CIM_FRAMING_ERROR_S 1
  2120. #define CIM_FRAMING_ERROR_V(x) ((x) << CIM_FRAMING_ERROR_S)
  2121. #define CIM_FRAMING_ERROR_F CIM_FRAMING_ERROR_V(1U)
  2122. #define ZERO_SWITCH_ERROR_S 0
  2123. #define ZERO_SWITCH_ERROR_V(x) ((x) << ZERO_SWITCH_ERROR_S)
  2124. #define ZERO_SWITCH_ERROR_F ZERO_SWITCH_ERROR_V(1U)
  2125. #define SMB_INT_CAUSE_A 0x19090
  2126. #define MSTTXFIFOPARINT_S 21
  2127. #define MSTTXFIFOPARINT_V(x) ((x) << MSTTXFIFOPARINT_S)
  2128. #define MSTTXFIFOPARINT_F MSTTXFIFOPARINT_V(1U)
  2129. #define MSTRXFIFOPARINT_S 20
  2130. #define MSTRXFIFOPARINT_V(x) ((x) << MSTRXFIFOPARINT_S)
  2131. #define MSTRXFIFOPARINT_F MSTRXFIFOPARINT_V(1U)
  2132. #define SLVFIFOPARINT_S 19
  2133. #define SLVFIFOPARINT_V(x) ((x) << SLVFIFOPARINT_S)
  2134. #define SLVFIFOPARINT_F SLVFIFOPARINT_V(1U)
  2135. #define ULP_RX_INT_CAUSE_A 0x19158
  2136. #define ULP_RX_ISCSI_LLIMIT_A 0x1915c
  2137. #define ULP_RX_ISCSI_ULIMIT_A 0x19160
  2138. #define ULP_RX_ISCSI_TAGMASK_A 0x19164
  2139. #define ULP_RX_ISCSI_PSZ_A 0x19168
  2140. #define ULP_RX_TDDP_LLIMIT_A 0x1916c
  2141. #define ULP_RX_TDDP_ULIMIT_A 0x19170
  2142. #define ULP_RX_STAG_LLIMIT_A 0x1917c
  2143. #define ULP_RX_STAG_ULIMIT_A 0x19180
  2144. #define ULP_RX_RQ_LLIMIT_A 0x19184
  2145. #define ULP_RX_RQ_ULIMIT_A 0x19188
  2146. #define ULP_RX_PBL_LLIMIT_A 0x1918c
  2147. #define ULP_RX_PBL_ULIMIT_A 0x19190
  2148. #define ULP_RX_CTX_BASE_A 0x19194
  2149. #define ULP_RX_RQUDP_LLIMIT_A 0x191a4
  2150. #define ULP_RX_RQUDP_ULIMIT_A 0x191a8
  2151. #define ULP_RX_LA_CTL_A 0x1923c
  2152. #define ULP_RX_LA_RDPTR_A 0x19240
  2153. #define ULP_RX_LA_RDDATA_A 0x19244
  2154. #define ULP_RX_LA_WRPTR_A 0x19248
  2155. #define ULP_RX_TLS_KEY_LLIMIT_A 0x192ac
  2156. #define ULP_RX_TLS_KEY_ULIMIT_A 0x192b0
  2157. #define HPZ3_S 24
  2158. #define HPZ3_V(x) ((x) << HPZ3_S)
  2159. #define HPZ2_S 16
  2160. #define HPZ2_V(x) ((x) << HPZ2_S)
  2161. #define HPZ1_S 8
  2162. #define HPZ1_V(x) ((x) << HPZ1_S)
  2163. #define HPZ0_S 0
  2164. #define HPZ0_V(x) ((x) << HPZ0_S)
  2165. #define ULP_RX_TDDP_PSZ_A 0x19178
  2166. /* registers for module SF */
  2167. #define SF_DATA_A 0x193f8
  2168. #define SF_OP_A 0x193fc
  2169. #define SF_BUSY_S 31
  2170. #define SF_BUSY_V(x) ((x) << SF_BUSY_S)
  2171. #define SF_BUSY_F SF_BUSY_V(1U)
  2172. #define SF_LOCK_S 4
  2173. #define SF_LOCK_V(x) ((x) << SF_LOCK_S)
  2174. #define SF_LOCK_F SF_LOCK_V(1U)
  2175. #define SF_CONT_S 3
  2176. #define SF_CONT_V(x) ((x) << SF_CONT_S)
  2177. #define SF_CONT_F SF_CONT_V(1U)
  2178. #define BYTECNT_S 1
  2179. #define BYTECNT_V(x) ((x) << BYTECNT_S)
  2180. #define OP_S 0
  2181. #define OP_V(x) ((x) << OP_S)
  2182. #define OP_F OP_V(1U)
  2183. #define PL_PF_INT_CAUSE_A 0x3c0
  2184. #define PFSW_S 3
  2185. #define PFSW_V(x) ((x) << PFSW_S)
  2186. #define PFSW_F PFSW_V(1U)
  2187. #define PFCIM_S 1
  2188. #define PFCIM_V(x) ((x) << PFCIM_S)
  2189. #define PFCIM_F PFCIM_V(1U)
  2190. #define PL_PF_INT_ENABLE_A 0x3c4
  2191. #define PL_PF_CTL_A 0x3c8
  2192. #define PL_WHOAMI_A 0x19400
  2193. #define SOURCEPF_S 8
  2194. #define SOURCEPF_M 0x7U
  2195. #define SOURCEPF_G(x) (((x) >> SOURCEPF_S) & SOURCEPF_M)
  2196. #define T6_SOURCEPF_S 9
  2197. #define T6_SOURCEPF_M 0x7U
  2198. #define T6_SOURCEPF_G(x) (((x) >> T6_SOURCEPF_S) & T6_SOURCEPF_M)
  2199. #define PL_INT_CAUSE_A 0x1940c
  2200. #define ULP_TX_S 27
  2201. #define ULP_TX_V(x) ((x) << ULP_TX_S)
  2202. #define ULP_TX_F ULP_TX_V(1U)
  2203. #define SGE_S 26
  2204. #define SGE_V(x) ((x) << SGE_S)
  2205. #define SGE_F SGE_V(1U)
  2206. #define CPL_SWITCH_S 24
  2207. #define CPL_SWITCH_V(x) ((x) << CPL_SWITCH_S)
  2208. #define CPL_SWITCH_F CPL_SWITCH_V(1U)
  2209. #define ULP_RX_S 23
  2210. #define ULP_RX_V(x) ((x) << ULP_RX_S)
  2211. #define ULP_RX_F ULP_RX_V(1U)
  2212. #define PM_RX_S 22
  2213. #define PM_RX_V(x) ((x) << PM_RX_S)
  2214. #define PM_RX_F PM_RX_V(1U)
  2215. #define PM_TX_S 21
  2216. #define PM_TX_V(x) ((x) << PM_TX_S)
  2217. #define PM_TX_F PM_TX_V(1U)
  2218. #define MA_S 20
  2219. #define MA_V(x) ((x) << MA_S)
  2220. #define MA_F MA_V(1U)
  2221. #define TP_S 19
  2222. #define TP_V(x) ((x) << TP_S)
  2223. #define TP_F TP_V(1U)
  2224. #define LE_S 18
  2225. #define LE_V(x) ((x) << LE_S)
  2226. #define LE_F LE_V(1U)
  2227. #define EDC1_S 17
  2228. #define EDC1_V(x) ((x) << EDC1_S)
  2229. #define EDC1_F EDC1_V(1U)
  2230. #define EDC0_S 16
  2231. #define EDC0_V(x) ((x) << EDC0_S)
  2232. #define EDC0_F EDC0_V(1U)
  2233. #define MC_S 15
  2234. #define MC_V(x) ((x) << MC_S)
  2235. #define MC_F MC_V(1U)
  2236. #define PCIE_S 14
  2237. #define PCIE_V(x) ((x) << PCIE_S)
  2238. #define PCIE_F PCIE_V(1U)
  2239. #define XGMAC_KR1_S 12
  2240. #define XGMAC_KR1_V(x) ((x) << XGMAC_KR1_S)
  2241. #define XGMAC_KR1_F XGMAC_KR1_V(1U)
  2242. #define XGMAC_KR0_S 11
  2243. #define XGMAC_KR0_V(x) ((x) << XGMAC_KR0_S)
  2244. #define XGMAC_KR0_F XGMAC_KR0_V(1U)
  2245. #define XGMAC1_S 10
  2246. #define XGMAC1_V(x) ((x) << XGMAC1_S)
  2247. #define XGMAC1_F XGMAC1_V(1U)
  2248. #define XGMAC0_S 9
  2249. #define XGMAC0_V(x) ((x) << XGMAC0_S)
  2250. #define XGMAC0_F XGMAC0_V(1U)
  2251. #define SMB_S 8
  2252. #define SMB_V(x) ((x) << SMB_S)
  2253. #define SMB_F SMB_V(1U)
  2254. #define SF_S 7
  2255. #define SF_V(x) ((x) << SF_S)
  2256. #define SF_F SF_V(1U)
  2257. #define PL_S 6
  2258. #define PL_V(x) ((x) << PL_S)
  2259. #define PL_F PL_V(1U)
  2260. #define NCSI_S 5
  2261. #define NCSI_V(x) ((x) << NCSI_S)
  2262. #define NCSI_F NCSI_V(1U)
  2263. #define MPS_S 4
  2264. #define MPS_V(x) ((x) << MPS_S)
  2265. #define MPS_F MPS_V(1U)
  2266. #define CIM_S 0
  2267. #define CIM_V(x) ((x) << CIM_S)
  2268. #define CIM_F CIM_V(1U)
  2269. #define MC1_S 31
  2270. #define MC1_V(x) ((x) << MC1_S)
  2271. #define MC1_F MC1_V(1U)
  2272. #define PL_INT_ENABLE_A 0x19410
  2273. #define PL_INT_MAP0_A 0x19414
  2274. #define PL_RST_A 0x19428
  2275. #define PIORST_S 1
  2276. #define PIORST_V(x) ((x) << PIORST_S)
  2277. #define PIORST_F PIORST_V(1U)
  2278. #define PIORSTMODE_S 0
  2279. #define PIORSTMODE_V(x) ((x) << PIORSTMODE_S)
  2280. #define PIORSTMODE_F PIORSTMODE_V(1U)
  2281. #define PL_PL_INT_CAUSE_A 0x19430
  2282. #define FATALPERR_S 4
  2283. #define FATALPERR_V(x) ((x) << FATALPERR_S)
  2284. #define FATALPERR_F FATALPERR_V(1U)
  2285. #define PERRVFID_S 0
  2286. #define PERRVFID_V(x) ((x) << PERRVFID_S)
  2287. #define PERRVFID_F PERRVFID_V(1U)
  2288. #define PL_REV_A 0x1943c
  2289. #define REV_S 0
  2290. #define REV_M 0xfU
  2291. #define REV_V(x) ((x) << REV_S)
  2292. #define REV_G(x) (((x) >> REV_S) & REV_M)
  2293. #define T6_UNKNOWNCMD_S 3
  2294. #define T6_UNKNOWNCMD_V(x) ((x) << T6_UNKNOWNCMD_S)
  2295. #define T6_UNKNOWNCMD_F T6_UNKNOWNCMD_V(1U)
  2296. #define T6_LIP0_S 2
  2297. #define T6_LIP0_V(x) ((x) << T6_LIP0_S)
  2298. #define T6_LIP0_F T6_LIP0_V(1U)
  2299. #define T6_LIPMISS_S 1
  2300. #define T6_LIPMISS_V(x) ((x) << T6_LIPMISS_S)
  2301. #define T6_LIPMISS_F T6_LIPMISS_V(1U)
  2302. #define LE_DB_CONFIG_A 0x19c04
  2303. #define LE_DB_ROUTING_TABLE_INDEX_A 0x19c10
  2304. #define LE_DB_ACTIVE_TABLE_START_INDEX_A 0x19c10
  2305. #define LE_DB_FILTER_TABLE_INDEX_A 0x19c14
  2306. #define LE_DB_SERVER_INDEX_A 0x19c18
  2307. #define LE_DB_SRVR_START_INDEX_A 0x19c18
  2308. #define LE_DB_CLIP_TABLE_INDEX_A 0x19c1c
  2309. #define LE_DB_ACT_CNT_IPV4_A 0x19c20
  2310. #define LE_DB_ACT_CNT_IPV6_A 0x19c24
  2311. #define LE_DB_HASH_CONFIG_A 0x19c28
  2312. #define HASHTIDSIZE_S 16
  2313. #define HASHTIDSIZE_M 0x3fU
  2314. #define HASHTIDSIZE_G(x) (((x) >> HASHTIDSIZE_S) & HASHTIDSIZE_M)
  2315. #define LE_DB_HASH_TID_BASE_A 0x19c30
  2316. #define LE_DB_HASH_TBL_BASE_ADDR_A 0x19c30
  2317. #define LE_DB_INT_CAUSE_A 0x19c3c
  2318. #define LE_DB_CLCAM_TID_BASE_A 0x19df4
  2319. #define LE_DB_TID_HASHBASE_A 0x19df8
  2320. #define T6_LE_DB_HASH_TID_BASE_A 0x19df8
  2321. #define HASHEN_S 20
  2322. #define HASHEN_V(x) ((x) << HASHEN_S)
  2323. #define HASHEN_F HASHEN_V(1U)
  2324. #define ASLIPCOMPEN_S 17
  2325. #define ASLIPCOMPEN_V(x) ((x) << ASLIPCOMPEN_S)
  2326. #define ASLIPCOMPEN_F ASLIPCOMPEN_V(1U)
  2327. #define REQQPARERR_S 16
  2328. #define REQQPARERR_V(x) ((x) << REQQPARERR_S)
  2329. #define REQQPARERR_F REQQPARERR_V(1U)
  2330. #define UNKNOWNCMD_S 15
  2331. #define UNKNOWNCMD_V(x) ((x) << UNKNOWNCMD_S)
  2332. #define UNKNOWNCMD_F UNKNOWNCMD_V(1U)
  2333. #define PARITYERR_S 6
  2334. #define PARITYERR_V(x) ((x) << PARITYERR_S)
  2335. #define PARITYERR_F PARITYERR_V(1U)
  2336. #define LIPMISS_S 5
  2337. #define LIPMISS_V(x) ((x) << LIPMISS_S)
  2338. #define LIPMISS_F LIPMISS_V(1U)
  2339. #define LIP0_S 4
  2340. #define LIP0_V(x) ((x) << LIP0_S)
  2341. #define LIP0_F LIP0_V(1U)
  2342. #define BASEADDR_S 3
  2343. #define BASEADDR_M 0x1fffffffU
  2344. #define BASEADDR_G(x) (((x) >> BASEADDR_S) & BASEADDR_M)
  2345. #define TCAMINTPERR_S 13
  2346. #define TCAMINTPERR_V(x) ((x) << TCAMINTPERR_S)
  2347. #define TCAMINTPERR_F TCAMINTPERR_V(1U)
  2348. #define SSRAMINTPERR_S 10
  2349. #define SSRAMINTPERR_V(x) ((x) << SSRAMINTPERR_S)
  2350. #define SSRAMINTPERR_F SSRAMINTPERR_V(1U)
  2351. #define LE_DB_RSP_CODE_0_A 0x19c74
  2352. #define TCAM_ACTV_HIT_S 0
  2353. #define TCAM_ACTV_HIT_M 0x1fU
  2354. #define TCAM_ACTV_HIT_V(x) ((x) << TCAM_ACTV_HIT_S)
  2355. #define TCAM_ACTV_HIT_G(x) (((x) >> TCAM_ACTV_HIT_S) & TCAM_ACTV_HIT_M)
  2356. #define LE_DB_RSP_CODE_1_A 0x19c78
  2357. #define HASH_ACTV_HIT_S 25
  2358. #define HASH_ACTV_HIT_M 0x1fU
  2359. #define HASH_ACTV_HIT_V(x) ((x) << HASH_ACTV_HIT_S)
  2360. #define HASH_ACTV_HIT_G(x) (((x) >> HASH_ACTV_HIT_S) & HASH_ACTV_HIT_M)
  2361. #define LE_3_DB_HASH_MASK_GEN_IPV4_T6_A 0x19eac
  2362. #define LE_4_DB_HASH_MASK_GEN_IPV4_T6_A 0x19eb0
  2363. #define NCSI_INT_CAUSE_A 0x1a0d8
  2364. #define CIM_DM_PRTY_ERR_S 8
  2365. #define CIM_DM_PRTY_ERR_V(x) ((x) << CIM_DM_PRTY_ERR_S)
  2366. #define CIM_DM_PRTY_ERR_F CIM_DM_PRTY_ERR_V(1U)
  2367. #define MPS_DM_PRTY_ERR_S 7
  2368. #define MPS_DM_PRTY_ERR_V(x) ((x) << MPS_DM_PRTY_ERR_S)
  2369. #define MPS_DM_PRTY_ERR_F MPS_DM_PRTY_ERR_V(1U)
  2370. #define TXFIFO_PRTY_ERR_S 1
  2371. #define TXFIFO_PRTY_ERR_V(x) ((x) << TXFIFO_PRTY_ERR_S)
  2372. #define TXFIFO_PRTY_ERR_F TXFIFO_PRTY_ERR_V(1U)
  2373. #define RXFIFO_PRTY_ERR_S 0
  2374. #define RXFIFO_PRTY_ERR_V(x) ((x) << RXFIFO_PRTY_ERR_S)
  2375. #define RXFIFO_PRTY_ERR_F RXFIFO_PRTY_ERR_V(1U)
  2376. #define XGMAC_PORT_CFG2_A 0x1018
  2377. #define PATEN_S 18
  2378. #define PATEN_V(x) ((x) << PATEN_S)
  2379. #define PATEN_F PATEN_V(1U)
  2380. #define MAGICEN_S 17
  2381. #define MAGICEN_V(x) ((x) << MAGICEN_S)
  2382. #define MAGICEN_F MAGICEN_V(1U)
  2383. #define XGMAC_PORT_MAGIC_MACID_LO 0x1024
  2384. #define XGMAC_PORT_MAGIC_MACID_HI 0x1028
  2385. #define XGMAC_PORT_EPIO_DATA0_A 0x10c0
  2386. #define XGMAC_PORT_EPIO_DATA1_A 0x10c4
  2387. #define XGMAC_PORT_EPIO_DATA2_A 0x10c8
  2388. #define XGMAC_PORT_EPIO_DATA3_A 0x10cc
  2389. #define XGMAC_PORT_EPIO_OP_A 0x10d0
  2390. #define EPIOWR_S 8
  2391. #define EPIOWR_V(x) ((x) << EPIOWR_S)
  2392. #define EPIOWR_F EPIOWR_V(1U)
  2393. #define ADDRESS_S 0
  2394. #define ADDRESS_V(x) ((x) << ADDRESS_S)
  2395. #define MAC_PORT_INT_CAUSE_A 0x8dc
  2396. #define XGMAC_PORT_INT_CAUSE_A 0x10dc
  2397. #define TP_TX_MOD_QUEUE_REQ_MAP_A 0x7e28
  2398. #define TP_TX_MOD_QUEUE_WEIGHT0_A 0x7e30
  2399. #define TP_TX_MOD_CHANNEL_WEIGHT_A 0x7e34
  2400. #define TX_MOD_QUEUE_REQ_MAP_S 0
  2401. #define TX_MOD_QUEUE_REQ_MAP_V(x) ((x) << TX_MOD_QUEUE_REQ_MAP_S)
  2402. #define TX_MODQ_WEIGHT3_S 24
  2403. #define TX_MODQ_WEIGHT3_V(x) ((x) << TX_MODQ_WEIGHT3_S)
  2404. #define TX_MODQ_WEIGHT2_S 16
  2405. #define TX_MODQ_WEIGHT2_V(x) ((x) << TX_MODQ_WEIGHT2_S)
  2406. #define TX_MODQ_WEIGHT1_S 8
  2407. #define TX_MODQ_WEIGHT1_V(x) ((x) << TX_MODQ_WEIGHT1_S)
  2408. #define TX_MODQ_WEIGHT0_S 0
  2409. #define TX_MODQ_WEIGHT0_V(x) ((x) << TX_MODQ_WEIGHT0_S)
  2410. #define TP_TX_SCHED_HDR_A 0x23
  2411. #define TP_TX_SCHED_FIFO_A 0x24
  2412. #define TP_TX_SCHED_PCMD_A 0x25
  2413. #define NUM_MPS_CLS_SRAM_L_INSTANCES 336
  2414. #define NUM_MPS_T5_CLS_SRAM_L_INSTANCES 512
  2415. #define T5_PORT0_BASE 0x30000
  2416. #define T5_PORT_STRIDE 0x4000
  2417. #define T5_PORT_BASE(idx) (T5_PORT0_BASE + (idx) * T5_PORT_STRIDE)
  2418. #define T5_PORT_REG(idx, reg) (T5_PORT_BASE(idx) + (reg))
  2419. #define MC_0_BASE_ADDR 0x40000
  2420. #define MC_1_BASE_ADDR 0x48000
  2421. #define MC_STRIDE (MC_1_BASE_ADDR - MC_0_BASE_ADDR)
  2422. #define MC_REG(reg, idx) (reg + MC_STRIDE * idx)
  2423. #define MC_P_BIST_CMD_A 0x41400
  2424. #define MC_P_BIST_CMD_ADDR_A 0x41404
  2425. #define MC_P_BIST_CMD_LEN_A 0x41408
  2426. #define MC_P_BIST_DATA_PATTERN_A 0x4140c
  2427. #define MC_P_BIST_STATUS_RDATA_A 0x41488
  2428. #define EDC_T50_BASE_ADDR 0x50000
  2429. #define EDC_H_BIST_CMD_A 0x50004
  2430. #define EDC_H_BIST_CMD_ADDR_A 0x50008
  2431. #define EDC_H_BIST_CMD_LEN_A 0x5000c
  2432. #define EDC_H_BIST_DATA_PATTERN_A 0x50010
  2433. #define EDC_H_BIST_STATUS_RDATA_A 0x50028
  2434. #define EDC_H_ECC_ERR_ADDR_A 0x50084
  2435. #define EDC_T51_BASE_ADDR 0x50800
  2436. #define EDC_T5_STRIDE (EDC_T51_BASE_ADDR - EDC_T50_BASE_ADDR)
  2437. #define EDC_T5_REG(reg, idx) (reg + EDC_T5_STRIDE * idx)
  2438. #define PL_VF_REV_A 0x4
  2439. #define PL_VF_WHOAMI_A 0x0
  2440. #define PL_VF_REVISION_A 0x8
  2441. /* registers for module CIM */
  2442. #define CIM_HOST_ACC_CTRL_A 0x7b50
  2443. #define CIM_HOST_ACC_DATA_A 0x7b54
  2444. #define UP_UP_DBG_LA_CFG_A 0x140
  2445. #define UP_UP_DBG_LA_DATA_A 0x144
  2446. #define HOSTBUSY_S 17
  2447. #define HOSTBUSY_V(x) ((x) << HOSTBUSY_S)
  2448. #define HOSTBUSY_F HOSTBUSY_V(1U)
  2449. #define HOSTWRITE_S 16
  2450. #define HOSTWRITE_V(x) ((x) << HOSTWRITE_S)
  2451. #define HOSTWRITE_F HOSTWRITE_V(1U)
  2452. #define CIM_IBQ_DBG_CFG_A 0x7b60
  2453. #define IBQDBGADDR_S 16
  2454. #define IBQDBGADDR_M 0xfffU
  2455. #define IBQDBGADDR_V(x) ((x) << IBQDBGADDR_S)
  2456. #define IBQDBGADDR_G(x) (((x) >> IBQDBGADDR_S) & IBQDBGADDR_M)
  2457. #define IBQDBGBUSY_S 1
  2458. #define IBQDBGBUSY_V(x) ((x) << IBQDBGBUSY_S)
  2459. #define IBQDBGBUSY_F IBQDBGBUSY_V(1U)
  2460. #define IBQDBGEN_S 0
  2461. #define IBQDBGEN_V(x) ((x) << IBQDBGEN_S)
  2462. #define IBQDBGEN_F IBQDBGEN_V(1U)
  2463. #define CIM_OBQ_DBG_CFG_A 0x7b64
  2464. #define OBQDBGADDR_S 16
  2465. #define OBQDBGADDR_M 0xfffU
  2466. #define OBQDBGADDR_V(x) ((x) << OBQDBGADDR_S)
  2467. #define OBQDBGADDR_G(x) (((x) >> OBQDBGADDR_S) & OBQDBGADDR_M)
  2468. #define OBQDBGBUSY_S 1
  2469. #define OBQDBGBUSY_V(x) ((x) << OBQDBGBUSY_S)
  2470. #define OBQDBGBUSY_F OBQDBGBUSY_V(1U)
  2471. #define OBQDBGEN_S 0
  2472. #define OBQDBGEN_V(x) ((x) << OBQDBGEN_S)
  2473. #define OBQDBGEN_F OBQDBGEN_V(1U)
  2474. #define CIM_IBQ_DBG_DATA_A 0x7b68
  2475. #define CIM_OBQ_DBG_DATA_A 0x7b6c
  2476. #define CIM_DEBUGCFG_A 0x7b70
  2477. #define CIM_DEBUGSTS_A 0x7b74
  2478. #define POLADBGRDPTR_S 23
  2479. #define POLADBGRDPTR_M 0x1ffU
  2480. #define POLADBGRDPTR_V(x) ((x) << POLADBGRDPTR_S)
  2481. #define POLADBGWRPTR_S 16
  2482. #define POLADBGWRPTR_M 0x1ffU
  2483. #define POLADBGWRPTR_G(x) (((x) >> POLADBGWRPTR_S) & POLADBGWRPTR_M)
  2484. #define PILADBGRDPTR_S 14
  2485. #define PILADBGRDPTR_M 0x1ffU
  2486. #define PILADBGRDPTR_V(x) ((x) << PILADBGRDPTR_S)
  2487. #define PILADBGWRPTR_S 0
  2488. #define PILADBGWRPTR_M 0x1ffU
  2489. #define PILADBGWRPTR_G(x) (((x) >> PILADBGWRPTR_S) & PILADBGWRPTR_M)
  2490. #define LADBGEN_S 12
  2491. #define LADBGEN_V(x) ((x) << LADBGEN_S)
  2492. #define LADBGEN_F LADBGEN_V(1U)
  2493. #define CIM_PO_LA_DEBUGDATA_A 0x7b78
  2494. #define CIM_PI_LA_DEBUGDATA_A 0x7b7c
  2495. #define CIM_PO_LA_MADEBUGDATA_A 0x7b80
  2496. #define CIM_PI_LA_MADEBUGDATA_A 0x7b84
  2497. #define UPDBGLARDEN_S 1
  2498. #define UPDBGLARDEN_V(x) ((x) << UPDBGLARDEN_S)
  2499. #define UPDBGLARDEN_F UPDBGLARDEN_V(1U)
  2500. #define UPDBGLAEN_S 0
  2501. #define UPDBGLAEN_V(x) ((x) << UPDBGLAEN_S)
  2502. #define UPDBGLAEN_F UPDBGLAEN_V(1U)
  2503. #define UPDBGLARDPTR_S 2
  2504. #define UPDBGLARDPTR_M 0xfffU
  2505. #define UPDBGLARDPTR_V(x) ((x) << UPDBGLARDPTR_S)
  2506. #define UPDBGLAWRPTR_S 16
  2507. #define UPDBGLAWRPTR_M 0xfffU
  2508. #define UPDBGLAWRPTR_G(x) (((x) >> UPDBGLAWRPTR_S) & UPDBGLAWRPTR_M)
  2509. #define UPDBGLACAPTPCONLY_S 30
  2510. #define UPDBGLACAPTPCONLY_V(x) ((x) << UPDBGLACAPTPCONLY_S)
  2511. #define UPDBGLACAPTPCONLY_F UPDBGLACAPTPCONLY_V(1U)
  2512. #define CIM_QUEUE_CONFIG_REF_A 0x7b48
  2513. #define CIM_QUEUE_CONFIG_CTRL_A 0x7b4c
  2514. #define CIMQSIZE_S 24
  2515. #define CIMQSIZE_M 0x3fU
  2516. #define CIMQSIZE_G(x) (((x) >> CIMQSIZE_S) & CIMQSIZE_M)
  2517. #define CIMQBASE_S 16
  2518. #define CIMQBASE_M 0x3fU
  2519. #define CIMQBASE_G(x) (((x) >> CIMQBASE_S) & CIMQBASE_M)
  2520. #define QUEFULLTHRSH_S 0
  2521. #define QUEFULLTHRSH_M 0x1ffU
  2522. #define QUEFULLTHRSH_G(x) (((x) >> QUEFULLTHRSH_S) & QUEFULLTHRSH_M)
  2523. #define UP_IBQ_0_RDADDR_A 0x10
  2524. #define UP_IBQ_0_SHADOW_RDADDR_A 0x280
  2525. #define UP_OBQ_0_REALADDR_A 0x104
  2526. #define UP_OBQ_0_SHADOW_REALADDR_A 0x394
  2527. #define IBQRDADDR_S 0
  2528. #define IBQRDADDR_M 0x1fffU
  2529. #define IBQRDADDR_G(x) (((x) >> IBQRDADDR_S) & IBQRDADDR_M)
  2530. #define IBQWRADDR_S 0
  2531. #define IBQWRADDR_M 0x1fffU
  2532. #define IBQWRADDR_G(x) (((x) >> IBQWRADDR_S) & IBQWRADDR_M)
  2533. #define QUERDADDR_S 0
  2534. #define QUERDADDR_M 0x7fffU
  2535. #define QUERDADDR_G(x) (((x) >> QUERDADDR_S) & QUERDADDR_M)
  2536. #define QUEREMFLITS_S 0
  2537. #define QUEREMFLITS_M 0x7ffU
  2538. #define QUEREMFLITS_G(x) (((x) >> QUEREMFLITS_S) & QUEREMFLITS_M)
  2539. #define QUEEOPCNT_S 16
  2540. #define QUEEOPCNT_M 0xfffU
  2541. #define QUEEOPCNT_G(x) (((x) >> QUEEOPCNT_S) & QUEEOPCNT_M)
  2542. #define QUESOPCNT_S 0
  2543. #define QUESOPCNT_M 0xfffU
  2544. #define QUESOPCNT_G(x) (((x) >> QUESOPCNT_S) & QUESOPCNT_M)
  2545. #define OBQSELECT_S 4
  2546. #define OBQSELECT_V(x) ((x) << OBQSELECT_S)
  2547. #define OBQSELECT_F OBQSELECT_V(1U)
  2548. #define IBQSELECT_S 3
  2549. #define IBQSELECT_V(x) ((x) << IBQSELECT_S)
  2550. #define IBQSELECT_F IBQSELECT_V(1U)
  2551. #define QUENUMSELECT_S 0
  2552. #define QUENUMSELECT_V(x) ((x) << QUENUMSELECT_S)
  2553. #endif /* __T4_REGS_H */