bnx2x_reg.h 235 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604
  1. /* bnx2x_reg.h: Broadcom Everest network driver.
  2. *
  3. * Copyright (c) 2007-2008 Broadcom Corporation
  4. *
  5. * This program is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License as published by
  7. * the Free Software Foundation.
  8. *
  9. * The registers description starts with the regsister Access type followed
  10. * by size in bits. For example [RW 32]. The access types are:
  11. * R - Read only
  12. * RC - Clear on read
  13. * RW - Read/Write
  14. * ST - Statistics register (clear on read)
  15. * W - Write only
  16. * WB - Wide bus register - the size is over 32 bits and it should be
  17. * read/write in consecutive 32 bits accesses
  18. * WR - Write Clear (write 1 to clear the bit)
  19. *
  20. */
  21. /* [R 19] Interrupt register #0 read */
  22. #define BRB1_REG_BRB1_INT_STS 0x6011c
  23. /* [RW 4] Parity mask register #0 read/write */
  24. #define BRB1_REG_BRB1_PRTY_MASK 0x60138
  25. /* [R 4] Parity register #0 read */
  26. #define BRB1_REG_BRB1_PRTY_STS 0x6012c
  27. /* [RW 10] At address BRB1_IND_FREE_LIST_PRS_CRDT initialize free head. At
  28. address BRB1_IND_FREE_LIST_PRS_CRDT+1 initialize free tail. At address
  29. BRB1_IND_FREE_LIST_PRS_CRDT+2 initialize parser initial credit. */
  30. #define BRB1_REG_FREE_LIST_PRS_CRDT 0x60200
  31. /* [RW 23] LL RAM data. */
  32. #define BRB1_REG_LL_RAM 0x61000
  33. /* [R 24] The number of full blocks. */
  34. #define BRB1_REG_NUM_OF_FULL_BLOCKS 0x60090
  35. /* [ST 32] The number of cycles that the write_full signal towards MAC #0
  36. was asserted. */
  37. #define BRB1_REG_NUM_OF_FULL_CYCLES_0 0x600c8
  38. #define BRB1_REG_NUM_OF_FULL_CYCLES_1 0x600cc
  39. #define BRB1_REG_NUM_OF_FULL_CYCLES_2 0x600d0
  40. #define BRB1_REG_NUM_OF_FULL_CYCLES_3 0x600d4
  41. #define BRB1_REG_NUM_OF_FULL_CYCLES_4 0x600d8
  42. /* [ST 32] The number of cycles that the pause signal towards MAC #0 was
  43. asserted. */
  44. #define BRB1_REG_NUM_OF_PAUSE_CYCLES_0 0x600b8
  45. #define BRB1_REG_NUM_OF_PAUSE_CYCLES_1 0x600bc
  46. #define BRB1_REG_NUM_OF_PAUSE_CYCLES_2 0x600c0
  47. #define BRB1_REG_NUM_OF_PAUSE_CYCLES_3 0x600c4
  48. /* [RW 10] Write client 0: De-assert pause threshold. */
  49. #define BRB1_REG_PAUSE_HIGH_THRESHOLD_0 0x60078
  50. #define BRB1_REG_PAUSE_HIGH_THRESHOLD_1 0x6007c
  51. /* [RW 10] Write client 0: Assert pause threshold. */
  52. #define BRB1_REG_PAUSE_LOW_THRESHOLD_0 0x60068
  53. #define BRB1_REG_PAUSE_LOW_THRESHOLD_1 0x6006c
  54. /* [RW 1] Reset the design by software. */
  55. #define BRB1_REG_SOFT_RESET 0x600dc
  56. /* [R 5] Used to read the value of the XX protection CAM occupancy counter. */
  57. #define CCM_REG_CAM_OCCUP 0xd0188
  58. /* [RW 1] CM - CFC Interface enable. If 0 - the valid input is disregarded;
  59. acknowledge output is deasserted; all other signals are treated as usual;
  60. if 1 - normal activity. */
  61. #define CCM_REG_CCM_CFC_IFEN 0xd003c
  62. /* [RW 1] CM - QM Interface enable. If 0 - the acknowledge input is
  63. disregarded; valid is deasserted; all other signals are treated as usual;
  64. if 1 - normal activity. */
  65. #define CCM_REG_CCM_CQM_IFEN 0xd000c
  66. /* [RW 1] If set the Q index; received from the QM is inserted to event ID.
  67. Otherwise 0 is inserted. */
  68. #define CCM_REG_CCM_CQM_USE_Q 0xd00c0
  69. /* [RW 11] Interrupt mask register #0 read/write */
  70. #define CCM_REG_CCM_INT_MASK 0xd01e4
  71. /* [R 11] Interrupt register #0 read */
  72. #define CCM_REG_CCM_INT_STS 0xd01d8
  73. /* [RW 3] The size of AG context region 0 in REG-pairs. Designates the MS
  74. REG-pair number (e.g. if region 0 is 6 REG-pairs; the value should be 5).
  75. Is used to determine the number of the AG context REG-pairs written back;
  76. when the input message Reg1WbFlg isn't set. */
  77. #define CCM_REG_CCM_REG0_SZ 0xd00c4
  78. /* [RW 1] CM - STORM 0 Interface enable. If 0 - the acknowledge input is
  79. disregarded; valid is deasserted; all other signals are treated as usual;
  80. if 1 - normal activity. */
  81. #define CCM_REG_CCM_STORM0_IFEN 0xd0004
  82. /* [RW 1] CM - STORM 1 Interface enable. If 0 - the acknowledge input is
  83. disregarded; valid is deasserted; all other signals are treated as usual;
  84. if 1 - normal activity. */
  85. #define CCM_REG_CCM_STORM1_IFEN 0xd0008
  86. /* [RW 1] CDU AG read Interface enable. If 0 - the request input is
  87. disregarded; valid output is deasserted; all other signals are treated as
  88. usual; if 1 - normal activity. */
  89. #define CCM_REG_CDU_AG_RD_IFEN 0xd0030
  90. /* [RW 1] CDU AG write Interface enable. If 0 - the request and valid input
  91. are disregarded; all other signals are treated as usual; if 1 - normal
  92. activity. */
  93. #define CCM_REG_CDU_AG_WR_IFEN 0xd002c
  94. /* [RW 1] CDU STORM read Interface enable. If 0 - the request input is
  95. disregarded; valid output is deasserted; all other signals are treated as
  96. usual; if 1 - normal activity. */
  97. #define CCM_REG_CDU_SM_RD_IFEN 0xd0038
  98. /* [RW 1] CDU STORM write Interface enable. If 0 - the request and valid
  99. input is disregarded; all other signals are treated as usual; if 1 -
  100. normal activity. */
  101. #define CCM_REG_CDU_SM_WR_IFEN 0xd0034
  102. /* [RW 4] CFC output initial credit. Max credit available - 15.Write writes
  103. the initial credit value; read returns the current value of the credit
  104. counter. Must be initialized to 1 at start-up. */
  105. #define CCM_REG_CFC_INIT_CRD 0xd0204
  106. /* [RW 2] Auxillary counter flag Q number 1. */
  107. #define CCM_REG_CNT_AUX1_Q 0xd00c8
  108. /* [RW 2] Auxillary counter flag Q number 2. */
  109. #define CCM_REG_CNT_AUX2_Q 0xd00cc
  110. /* [RW 28] The CM header value for QM request (primary). */
  111. #define CCM_REG_CQM_CCM_HDR_P 0xd008c
  112. /* [RW 28] The CM header value for QM request (secondary). */
  113. #define CCM_REG_CQM_CCM_HDR_S 0xd0090
  114. /* [RW 1] QM - CM Interface enable. If 0 - the valid input is disregarded;
  115. acknowledge output is deasserted; all other signals are treated as usual;
  116. if 1 - normal activity. */
  117. #define CCM_REG_CQM_CCM_IFEN 0xd0014
  118. /* [RW 6] QM output initial credit. Max credit available - 32. Write writes
  119. the initial credit value; read returns the current value of the credit
  120. counter. Must be initialized to 32 at start-up. */
  121. #define CCM_REG_CQM_INIT_CRD 0xd020c
  122. /* [RW 3] The weight of the QM (primary) input in the WRR mechanism. 0
  123. stands for weight 8 (the most prioritised); 1 stands for weight 1(least
  124. prioritised); 2 stands for weight 2; tc. */
  125. #define CCM_REG_CQM_P_WEIGHT 0xd00b8
  126. /* [RW 1] Input SDM Interface enable. If 0 - the valid input is disregarded;
  127. acknowledge output is deasserted; all other signals are treated as usual;
  128. if 1 - normal activity. */
  129. #define CCM_REG_CSDM_IFEN 0xd0018
  130. /* [RC 1] Set when the message length mismatch (relative to last indication)
  131. at the SDM interface is detected. */
  132. #define CCM_REG_CSDM_LENGTH_MIS 0xd0170
  133. /* [RW 28] The CM header for QM formatting in case of an error in the QM
  134. inputs. */
  135. #define CCM_REG_ERR_CCM_HDR 0xd0094
  136. /* [RW 8] The Event ID in case the input message ErrorFlg is set. */
  137. #define CCM_REG_ERR_EVNT_ID 0xd0098
  138. /* [RW 8] FIC0 output initial credit. Max credit available - 255. Write
  139. writes the initial credit value; read returns the current value of the
  140. credit counter. Must be initialized to 64 at start-up. */
  141. #define CCM_REG_FIC0_INIT_CRD 0xd0210
  142. /* [RW 8] FIC1 output initial credit. Max credit available - 255.Write
  143. writes the initial credit value; read returns the current value of the
  144. credit counter. Must be initialized to 64 at start-up. */
  145. #define CCM_REG_FIC1_INIT_CRD 0xd0214
  146. /* [RW 1] Arbitration between Input Arbiter groups: 0 - fair Round-Robin; 1
  147. - strict priority defined by ~ccm_registers_gr_ag_pr.gr_ag_pr;
  148. ~ccm_registers_gr_ld0_pr.gr_ld0_pr and
  149. ~ccm_registers_gr_ld1_pr.gr_ld1_pr. Groups are according to channels and
  150. outputs to STORM: aggregation; load FIC0; load FIC1 and store. */
  151. #define CCM_REG_GR_ARB_TYPE 0xd015c
  152. /* [RW 2] Load (FIC0) channel group priority. The lowest priority is 0; the
  153. highest priority is 3. It is supposed; that the Store channel priority is
  154. the compliment to 4 of the rest priorities - Aggregation channel; Load
  155. (FIC0) channel and Load (FIC1). */
  156. #define CCM_REG_GR_LD0_PR 0xd0164
  157. /* [RW 2] Load (FIC1) channel group priority. The lowest priority is 0; the
  158. highest priority is 3. It is supposed; that the Store channel priority is
  159. the compliment to 4 of the rest priorities - Aggregation channel; Load
  160. (FIC0) channel and Load (FIC1). */
  161. #define CCM_REG_GR_LD1_PR 0xd0168
  162. /* [RW 2] General flags index. */
  163. #define CCM_REG_INV_DONE_Q 0xd0108
  164. /* [RW 4] The number of double REG-pairs(128 bits); loaded from the STORM
  165. context and sent to STORM; for a specific connection type. The double
  166. REG-pairs are used in order to align to STORM context row size of 128
  167. bits. The offset of these data in the STORM context is always 0. Index
  168. _(0..15) stands for the connection type (one of 16). */
  169. #define CCM_REG_N_SM_CTX_LD_0 0xd004c
  170. #define CCM_REG_N_SM_CTX_LD_1 0xd0050
  171. #define CCM_REG_N_SM_CTX_LD_10 0xd0074
  172. #define CCM_REG_N_SM_CTX_LD_11 0xd0078
  173. #define CCM_REG_N_SM_CTX_LD_12 0xd007c
  174. #define CCM_REG_N_SM_CTX_LD_13 0xd0080
  175. #define CCM_REG_N_SM_CTX_LD_14 0xd0084
  176. #define CCM_REG_N_SM_CTX_LD_15 0xd0088
  177. #define CCM_REG_N_SM_CTX_LD_2 0xd0054
  178. #define CCM_REG_N_SM_CTX_LD_3 0xd0058
  179. #define CCM_REG_N_SM_CTX_LD_4 0xd005c
  180. /* [RW 1] Input pbf Interface enable. If 0 - the valid input is disregarded;
  181. acknowledge output is deasserted; all other signals are treated as usual;
  182. if 1 - normal activity. */
  183. #define CCM_REG_PBF_IFEN 0xd0028
  184. /* [RC 1] Set when the message length mismatch (relative to last indication)
  185. at the pbf interface is detected. */
  186. #define CCM_REG_PBF_LENGTH_MIS 0xd0180
  187. /* [RW 3] The weight of the input pbf in the WRR mechanism. 0 stands for
  188. weight 8 (the most prioritised); 1 stands for weight 1(least
  189. prioritised); 2 stands for weight 2; tc. */
  190. #define CCM_REG_PBF_WEIGHT 0xd00ac
  191. /* [RW 6] The physical queue number of queue number 1 per port index. */
  192. #define CCM_REG_PHYS_QNUM1_0 0xd0134
  193. #define CCM_REG_PHYS_QNUM1_1 0xd0138
  194. /* [RW 6] The physical queue number of queue number 2 per port index. */
  195. #define CCM_REG_PHYS_QNUM2_0 0xd013c
  196. #define CCM_REG_PHYS_QNUM2_1 0xd0140
  197. /* [RW 6] The physical queue number of queue number 3 per port index. */
  198. #define CCM_REG_PHYS_QNUM3_0 0xd0144
  199. /* [RW 6] The physical queue number of queue number 0 with QOS equal 0 port
  200. index 0. */
  201. #define CCM_REG_QOS_PHYS_QNUM0_0 0xd0114
  202. #define CCM_REG_QOS_PHYS_QNUM0_1 0xd0118
  203. /* [RW 6] The physical queue number of queue number 0 with QOS equal 1 port
  204. index 0. */
  205. #define CCM_REG_QOS_PHYS_QNUM1_0 0xd011c
  206. #define CCM_REG_QOS_PHYS_QNUM1_1 0xd0120
  207. /* [RW 6] The physical queue number of queue number 0 with QOS equal 2 port
  208. index 0. */
  209. #define CCM_REG_QOS_PHYS_QNUM2_0 0xd0124
  210. /* [RW 1] STORM - CM Interface enable. If 0 - the valid input is
  211. disregarded; acknowledge output is deasserted; all other signals are
  212. treated as usual; if 1 - normal activity. */
  213. #define CCM_REG_STORM_CCM_IFEN 0xd0010
  214. /* [RC 1] Set when the message length mismatch (relative to last indication)
  215. at the STORM interface is detected. */
  216. #define CCM_REG_STORM_LENGTH_MIS 0xd016c
  217. /* [RW 1] Input tsem Interface enable. If 0 - the valid input is
  218. disregarded; acknowledge output is deasserted; all other signals are
  219. treated as usual; if 1 - normal activity. */
  220. #define CCM_REG_TSEM_IFEN 0xd001c
  221. /* [RC 1] Set when the message length mismatch (relative to last indication)
  222. at the tsem interface is detected. */
  223. #define CCM_REG_TSEM_LENGTH_MIS 0xd0174
  224. /* [RW 3] The weight of the input tsem in the WRR mechanism. 0 stands for
  225. weight 8 (the most prioritised); 1 stands for weight 1(least
  226. prioritised); 2 stands for weight 2; tc. */
  227. #define CCM_REG_TSEM_WEIGHT 0xd00a0
  228. /* [RW 1] Input usem Interface enable. If 0 - the valid input is
  229. disregarded; acknowledge output is deasserted; all other signals are
  230. treated as usual; if 1 - normal activity. */
  231. #define CCM_REG_USEM_IFEN 0xd0024
  232. /* [RC 1] Set when message length mismatch (relative to last indication) at
  233. the usem interface is detected. */
  234. #define CCM_REG_USEM_LENGTH_MIS 0xd017c
  235. /* [RW 3] The weight of the input usem in the WRR mechanism. 0 stands for
  236. weight 8 (the most prioritised); 1 stands for weight 1(least
  237. prioritised); 2 stands for weight 2; tc. */
  238. #define CCM_REG_USEM_WEIGHT 0xd00a8
  239. /* [RW 1] Input xsem Interface enable. If 0 - the valid input is
  240. disregarded; acknowledge output is deasserted; all other signals are
  241. treated as usual; if 1 - normal activity. */
  242. #define CCM_REG_XSEM_IFEN 0xd0020
  243. /* [RC 1] Set when the message length mismatch (relative to last indication)
  244. at the xsem interface is detected. */
  245. #define CCM_REG_XSEM_LENGTH_MIS 0xd0178
  246. /* [RW 3] The weight of the input xsem in the WRR mechanism. 0 stands for
  247. weight 8 (the most prioritised); 1 stands for weight 1(least
  248. prioritised); 2 stands for weight 2; tc. */
  249. #define CCM_REG_XSEM_WEIGHT 0xd00a4
  250. /* [RW 19] Indirect access to the descriptor table of the XX protection
  251. mechanism. The fields are: [5:0] - message length; [12:6] - message
  252. pointer; 18:13] - next pointer. */
  253. #define CCM_REG_XX_DESCR_TABLE 0xd0300
  254. /* [R 7] Used to read the value of XX protection Free counter. */
  255. #define CCM_REG_XX_FREE 0xd0184
  256. /* [RW 6] Initial value for the credit counter; responsible for fulfilling
  257. of the Input Stage XX protection buffer by the XX protection pending
  258. messages. Max credit available - 127. Write writes the initial credit
  259. value; read returns the current value of the credit counter. Must be
  260. initialized to maximum XX protected message size - 2 at start-up. */
  261. #define CCM_REG_XX_INIT_CRD 0xd0220
  262. /* [RW 7] The maximum number of pending messages; which may be stored in XX
  263. protection. At read the ~ccm_registers_xx_free.xx_free counter is read.
  264. At write comprises the start value of the ~ccm_registers_xx_free.xx_free
  265. counter. */
  266. #define CCM_REG_XX_MSG_NUM 0xd0224
  267. /* [RW 8] The Event ID; sent to the STORM in case of XX overflow. */
  268. #define CCM_REG_XX_OVFL_EVNT_ID 0xd0044
  269. /* [RW 18] Indirect access to the XX table of the XX protection mechanism.
  270. The fields are: [5:0] - tail pointer; 11:6] - Link List size; 17:12] -
  271. header pointer. */
  272. #define CCM_REG_XX_TABLE 0xd0280
  273. #define CDU_REG_CDU_CHK_MASK0 0x101000
  274. #define CDU_REG_CDU_CHK_MASK1 0x101004
  275. #define CDU_REG_CDU_CONTROL0 0x101008
  276. #define CDU_REG_CDU_DEBUG 0x101010
  277. #define CDU_REG_CDU_GLOBAL_PARAMS 0x101020
  278. /* [RW 7] Interrupt mask register #0 read/write */
  279. #define CDU_REG_CDU_INT_MASK 0x10103c
  280. /* [R 7] Interrupt register #0 read */
  281. #define CDU_REG_CDU_INT_STS 0x101030
  282. /* [RW 5] Parity mask register #0 read/write */
  283. #define CDU_REG_CDU_PRTY_MASK 0x10104c
  284. /* [R 5] Parity register #0 read */
  285. #define CDU_REG_CDU_PRTY_STS 0x101040
  286. /* [RC 32] logging of error data in case of a CDU load error:
  287. {expected_cid[15:0]; xpected_type[2:0]; xpected_region[2:0]; ctive_error;
  288. ype_error; ctual_active; ctual_compressed_context}; */
  289. #define CDU_REG_ERROR_DATA 0x101014
  290. /* [WB 216] L1TT ram access. each entry has the following format :
  291. {mrege_regions[7:0]; ffset12[5:0]...offset0[5:0];
  292. ength12[5:0]...length0[5:0]; d12[3:0]...id0[3:0]} */
  293. #define CDU_REG_L1TT 0x101800
  294. /* [WB 24] MATT ram access. each entry has the following
  295. format:{RegionLength[11:0]; egionOffset[11:0]} */
  296. #define CDU_REG_MATT 0x101100
  297. /* [R 1] indication the initializing the activity counter by the hardware
  298. was done. */
  299. #define CFC_REG_AC_INIT_DONE 0x104078
  300. /* [RW 13] activity counter ram access */
  301. #define CFC_REG_ACTIVITY_COUNTER 0x104400
  302. #define CFC_REG_ACTIVITY_COUNTER_SIZE 256
  303. /* [R 1] indication the initializing the cams by the hardware was done. */
  304. #define CFC_REG_CAM_INIT_DONE 0x10407c
  305. /* [RW 2] Interrupt mask register #0 read/write */
  306. #define CFC_REG_CFC_INT_MASK 0x104108
  307. /* [R 2] Interrupt register #0 read */
  308. #define CFC_REG_CFC_INT_STS 0x1040fc
  309. /* [RC 2] Interrupt register #0 read clear */
  310. #define CFC_REG_CFC_INT_STS_CLR 0x104100
  311. /* [RW 4] Parity mask register #0 read/write */
  312. #define CFC_REG_CFC_PRTY_MASK 0x104118
  313. /* [R 4] Parity register #0 read */
  314. #define CFC_REG_CFC_PRTY_STS 0x10410c
  315. /* [RW 21] CID cam access (21:1 - Data; alid - 0) */
  316. #define CFC_REG_CID_CAM 0x104800
  317. #define CFC_REG_CONTROL0 0x104028
  318. #define CFC_REG_DEBUG0 0x104050
  319. /* [RW 14] indicates per error (in #cfc_registers_cfc_error_vector.cfc_error
  320. vector) whether the cfc should be disabled upon it */
  321. #define CFC_REG_DISABLE_ON_ERROR 0x104044
  322. /* [RC 14] CFC error vector. when the CFC detects an internal error it will
  323. set one of these bits. the bit description can be found in CFC
  324. specifications */
  325. #define CFC_REG_ERROR_VECTOR 0x10403c
  326. #define CFC_REG_INIT_REG 0x10404c
  327. /* [RW 24] {weight_load_client7[2:0] to weight_load_client0[2:0]}. this
  328. field allows changing the priorities of the weighted-round-robin arbiter
  329. which selects which CFC load client should be served next */
  330. #define CFC_REG_LCREQ_WEIGHTS 0x104084
  331. /* [R 1] indication the initializing the link list by the hardware was done. */
  332. #define CFC_REG_LL_INIT_DONE 0x104074
  333. /* [R 9] Number of allocated LCIDs which are at empty state */
  334. #define CFC_REG_NUM_LCIDS_ALLOC 0x104020
  335. /* [R 9] Number of Arriving LCIDs in Link List Block */
  336. #define CFC_REG_NUM_LCIDS_ARRIVING 0x104004
  337. /* [R 9] Number of Inside LCIDs in Link List Block */
  338. #define CFC_REG_NUM_LCIDS_INSIDE 0x104008
  339. /* [R 9] Number of Leaving LCIDs in Link List Block */
  340. #define CFC_REG_NUM_LCIDS_LEAVING 0x104018
  341. /* [RW 8] The event id for aggregated interrupt 0 */
  342. #define CSDM_REG_AGG_INT_EVENT_0 0xc2038
  343. /* [RW 13] The start address in the internal RAM for the cfc_rsp lcid */
  344. #define CSDM_REG_CFC_RSP_START_ADDR 0xc2008
  345. /* [RW 16] The maximum value of the competion counter #0 */
  346. #define CSDM_REG_CMP_COUNTER_MAX0 0xc201c
  347. /* [RW 16] The maximum value of the competion counter #1 */
  348. #define CSDM_REG_CMP_COUNTER_MAX1 0xc2020
  349. /* [RW 16] The maximum value of the competion counter #2 */
  350. #define CSDM_REG_CMP_COUNTER_MAX2 0xc2024
  351. /* [RW 16] The maximum value of the competion counter #3 */
  352. #define CSDM_REG_CMP_COUNTER_MAX3 0xc2028
  353. /* [RW 13] The start address in the internal RAM for the completion
  354. counters. */
  355. #define CSDM_REG_CMP_COUNTER_START_ADDR 0xc200c
  356. /* [RW 32] Interrupt mask register #0 read/write */
  357. #define CSDM_REG_CSDM_INT_MASK_0 0xc229c
  358. #define CSDM_REG_CSDM_INT_MASK_1 0xc22ac
  359. /* [RW 11] Parity mask register #0 read/write */
  360. #define CSDM_REG_CSDM_PRTY_MASK 0xc22bc
  361. /* [R 11] Parity register #0 read */
  362. #define CSDM_REG_CSDM_PRTY_STS 0xc22b0
  363. #define CSDM_REG_ENABLE_IN1 0xc2238
  364. #define CSDM_REG_ENABLE_IN2 0xc223c
  365. #define CSDM_REG_ENABLE_OUT1 0xc2240
  366. #define CSDM_REG_ENABLE_OUT2 0xc2244
  367. /* [RW 4] The initial number of messages that can be sent to the pxp control
  368. interface without receiving any ACK. */
  369. #define CSDM_REG_INIT_CREDIT_PXP_CTRL 0xc24bc
  370. /* [ST 32] The number of ACK after placement messages received */
  371. #define CSDM_REG_NUM_OF_ACK_AFTER_PLACE 0xc227c
  372. /* [ST 32] The number of packet end messages received from the parser */
  373. #define CSDM_REG_NUM_OF_PKT_END_MSG 0xc2274
  374. /* [ST 32] The number of requests received from the pxp async if */
  375. #define CSDM_REG_NUM_OF_PXP_ASYNC_REQ 0xc2278
  376. /* [ST 32] The number of commands received in queue 0 */
  377. #define CSDM_REG_NUM_OF_Q0_CMD 0xc2248
  378. /* [ST 32] The number of commands received in queue 10 */
  379. #define CSDM_REG_NUM_OF_Q10_CMD 0xc226c
  380. /* [ST 32] The number of commands received in queue 11 */
  381. #define CSDM_REG_NUM_OF_Q11_CMD 0xc2270
  382. /* [ST 32] The number of commands received in queue 1 */
  383. #define CSDM_REG_NUM_OF_Q1_CMD 0xc224c
  384. /* [ST 32] The number of commands received in queue 3 */
  385. #define CSDM_REG_NUM_OF_Q3_CMD 0xc2250
  386. /* [ST 32] The number of commands received in queue 4 */
  387. #define CSDM_REG_NUM_OF_Q4_CMD 0xc2254
  388. /* [ST 32] The number of commands received in queue 5 */
  389. #define CSDM_REG_NUM_OF_Q5_CMD 0xc2258
  390. /* [ST 32] The number of commands received in queue 6 */
  391. #define CSDM_REG_NUM_OF_Q6_CMD 0xc225c
  392. /* [ST 32] The number of commands received in queue 7 */
  393. #define CSDM_REG_NUM_OF_Q7_CMD 0xc2260
  394. /* [ST 32] The number of commands received in queue 8 */
  395. #define CSDM_REG_NUM_OF_Q8_CMD 0xc2264
  396. /* [ST 32] The number of commands received in queue 9 */
  397. #define CSDM_REG_NUM_OF_Q9_CMD 0xc2268
  398. /* [RW 13] The start address in the internal RAM for queue counters */
  399. #define CSDM_REG_Q_COUNTER_START_ADDR 0xc2010
  400. /* [R 1] pxp_ctrl rd_data fifo empty in sdm_dma_rsp block */
  401. #define CSDM_REG_RSP_PXP_CTRL_RDATA_EMPTY 0xc2548
  402. /* [R 1] parser fifo empty in sdm_sync block */
  403. #define CSDM_REG_SYNC_PARSER_EMPTY 0xc2550
  404. /* [R 1] parser serial fifo empty in sdm_sync block */
  405. #define CSDM_REG_SYNC_SYNC_EMPTY 0xc2558
  406. /* [RW 32] Tick for timer counter. Applicable only when
  407. ~csdm_registers_timer_tick_enable.timer_tick_enable =1 */
  408. #define CSDM_REG_TIMER_TICK 0xc2000
  409. /* [RW 5] The number of time_slots in the arbitration cycle */
  410. #define CSEM_REG_ARB_CYCLE_SIZE 0x200034
  411. /* [RW 3] The source that is associated with arbitration element 0. Source
  412. decoding is: 0- foc0; 1-fic1; 2-sleeping thread with priority 0; 3-
  413. sleeping thread with priority 1; 4- sleeping thread with priority 2 */
  414. #define CSEM_REG_ARB_ELEMENT0 0x200020
  415. /* [RW 3] The source that is associated with arbitration element 1. Source
  416. decoding is: 0- foc0; 1-fic1; 2-sleeping thread with priority 0; 3-
  417. sleeping thread with priority 1; 4- sleeping thread with priority 2.
  418. Could not be equal to register ~csem_registers_arb_element0.arb_element0 */
  419. #define CSEM_REG_ARB_ELEMENT1 0x200024
  420. /* [RW 3] The source that is associated with arbitration element 2. Source
  421. decoding is: 0- foc0; 1-fic1; 2-sleeping thread with priority 0; 3-
  422. sleeping thread with priority 1; 4- sleeping thread with priority 2.
  423. Could not be equal to register ~csem_registers_arb_element0.arb_element0
  424. and ~csem_registers_arb_element1.arb_element1 */
  425. #define CSEM_REG_ARB_ELEMENT2 0x200028
  426. /* [RW 3] The source that is associated with arbitration element 3. Source
  427. decoding is: 0- foc0; 1-fic1; 2-sleeping thread with priority 0; 3-
  428. sleeping thread with priority 1; 4- sleeping thread with priority 2.Could
  429. not be equal to register ~csem_registers_arb_element0.arb_element0 and
  430. ~csem_registers_arb_element1.arb_element1 and
  431. ~csem_registers_arb_element2.arb_element2 */
  432. #define CSEM_REG_ARB_ELEMENT3 0x20002c
  433. /* [RW 3] The source that is associated with arbitration element 4. Source
  434. decoding is: 0- foc0; 1-fic1; 2-sleeping thread with priority 0; 3-
  435. sleeping thread with priority 1; 4- sleeping thread with priority 2.
  436. Could not be equal to register ~csem_registers_arb_element0.arb_element0
  437. and ~csem_registers_arb_element1.arb_element1 and
  438. ~csem_registers_arb_element2.arb_element2 and
  439. ~csem_registers_arb_element3.arb_element3 */
  440. #define CSEM_REG_ARB_ELEMENT4 0x200030
  441. /* [RW 32] Interrupt mask register #0 read/write */
  442. #define CSEM_REG_CSEM_INT_MASK_0 0x200110
  443. #define CSEM_REG_CSEM_INT_MASK_1 0x200120
  444. /* [RW 32] Parity mask register #0 read/write */
  445. #define CSEM_REG_CSEM_PRTY_MASK_0 0x200130
  446. #define CSEM_REG_CSEM_PRTY_MASK_1 0x200140
  447. /* [R 32] Parity register #0 read */
  448. #define CSEM_REG_CSEM_PRTY_STS_0 0x200124
  449. #define CSEM_REG_CSEM_PRTY_STS_1 0x200134
  450. #define CSEM_REG_ENABLE_IN 0x2000a4
  451. #define CSEM_REG_ENABLE_OUT 0x2000a8
  452. /* [RW 32] This address space contains all registers and memories that are
  453. placed in SEM_FAST block. The SEM_FAST registers are described in
  454. appendix B. In order to access the SEM_FAST registers the base address
  455. CSEM_REGISTERS_FAST_MEMORY (Offset: 0x220000) should be added to each
  456. SEM_FAST register offset. */
  457. #define CSEM_REG_FAST_MEMORY 0x220000
  458. /* [RW 1] Disables input messages from FIC0 May be updated during run_time
  459. by the microcode */
  460. #define CSEM_REG_FIC0_DISABLE 0x200224
  461. /* [RW 1] Disables input messages from FIC1 May be updated during run_time
  462. by the microcode */
  463. #define CSEM_REG_FIC1_DISABLE 0x200234
  464. /* [RW 15] Interrupt table Read and write access to it is not possible in
  465. the middle of the work */
  466. #define CSEM_REG_INT_TABLE 0x200400
  467. /* [ST 24] Statistics register. The number of messages that entered through
  468. FIC0 */
  469. #define CSEM_REG_MSG_NUM_FIC0 0x200000
  470. /* [ST 24] Statistics register. The number of messages that entered through
  471. FIC1 */
  472. #define CSEM_REG_MSG_NUM_FIC1 0x200004
  473. /* [ST 24] Statistics register. The number of messages that were sent to
  474. FOC0 */
  475. #define CSEM_REG_MSG_NUM_FOC0 0x200008
  476. /* [ST 24] Statistics register. The number of messages that were sent to
  477. FOC1 */
  478. #define CSEM_REG_MSG_NUM_FOC1 0x20000c
  479. /* [ST 24] Statistics register. The number of messages that were sent to
  480. FOC2 */
  481. #define CSEM_REG_MSG_NUM_FOC2 0x200010
  482. /* [ST 24] Statistics register. The number of messages that were sent to
  483. FOC3 */
  484. #define CSEM_REG_MSG_NUM_FOC3 0x200014
  485. /* [RW 1] Disables input messages from the passive buffer May be updated
  486. during run_time by the microcode */
  487. #define CSEM_REG_PAS_DISABLE 0x20024c
  488. /* [WB 128] Debug only. Passive buffer memory */
  489. #define CSEM_REG_PASSIVE_BUFFER 0x202000
  490. /* [WB 46] pram memory. B45 is parity; b[44:0] - data. */
  491. #define CSEM_REG_PRAM 0x240000
  492. /* [R 16] Valid sleeping threads indication have bit per thread */
  493. #define CSEM_REG_SLEEP_THREADS_VALID 0x20026c
  494. /* [R 1] EXT_STORE FIFO is empty in sem_slow_ls_ext */
  495. #define CSEM_REG_SLOW_EXT_STORE_EMPTY 0x2002a0
  496. /* [RW 16] List of free threads . There is a bit per thread. */
  497. #define CSEM_REG_THREADS_LIST 0x2002e4
  498. /* [RW 3] The arbitration scheme of time_slot 0 */
  499. #define CSEM_REG_TS_0_AS 0x200038
  500. /* [RW 3] The arbitration scheme of time_slot 10 */
  501. #define CSEM_REG_TS_10_AS 0x200060
  502. /* [RW 3] The arbitration scheme of time_slot 11 */
  503. #define CSEM_REG_TS_11_AS 0x200064
  504. /* [RW 3] The arbitration scheme of time_slot 12 */
  505. #define CSEM_REG_TS_12_AS 0x200068
  506. /* [RW 3] The arbitration scheme of time_slot 13 */
  507. #define CSEM_REG_TS_13_AS 0x20006c
  508. /* [RW 3] The arbitration scheme of time_slot 14 */
  509. #define CSEM_REG_TS_14_AS 0x200070
  510. /* [RW 3] The arbitration scheme of time_slot 15 */
  511. #define CSEM_REG_TS_15_AS 0x200074
  512. /* [RW 3] The arbitration scheme of time_slot 16 */
  513. #define CSEM_REG_TS_16_AS 0x200078
  514. /* [RW 3] The arbitration scheme of time_slot 17 */
  515. #define CSEM_REG_TS_17_AS 0x20007c
  516. /* [RW 3] The arbitration scheme of time_slot 18 */
  517. #define CSEM_REG_TS_18_AS 0x200080
  518. /* [RW 3] The arbitration scheme of time_slot 1 */
  519. #define CSEM_REG_TS_1_AS 0x20003c
  520. /* [RW 3] The arbitration scheme of time_slot 2 */
  521. #define CSEM_REG_TS_2_AS 0x200040
  522. /* [RW 3] The arbitration scheme of time_slot 3 */
  523. #define CSEM_REG_TS_3_AS 0x200044
  524. /* [RW 3] The arbitration scheme of time_slot 4 */
  525. #define CSEM_REG_TS_4_AS 0x200048
  526. /* [RW 3] The arbitration scheme of time_slot 5 */
  527. #define CSEM_REG_TS_5_AS 0x20004c
  528. /* [RW 3] The arbitration scheme of time_slot 6 */
  529. #define CSEM_REG_TS_6_AS 0x200050
  530. /* [RW 3] The arbitration scheme of time_slot 7 */
  531. #define CSEM_REG_TS_7_AS 0x200054
  532. /* [RW 3] The arbitration scheme of time_slot 8 */
  533. #define CSEM_REG_TS_8_AS 0x200058
  534. /* [RW 3] The arbitration scheme of time_slot 9 */
  535. #define CSEM_REG_TS_9_AS 0x20005c
  536. /* [RW 1] Parity mask register #0 read/write */
  537. #define DBG_REG_DBG_PRTY_MASK 0xc0a8
  538. /* [R 1] Parity register #0 read */
  539. #define DBG_REG_DBG_PRTY_STS 0xc09c
  540. /* [RW 2] debug only: These bits indicate the credit for PCI request type 4
  541. interface; MUST be configured AFTER pci_ext_buffer_strt_addr_lsb/msb are
  542. configured */
  543. #define DBG_REG_PCI_REQ_CREDIT 0xc120
  544. /* [RW 32] Commands memory. The address to command X; row Y is to calculated
  545. as 14*X+Y. */
  546. #define DMAE_REG_CMD_MEM 0x102400
  547. /* [RW 1] If 0 - the CRC-16c initial value is all zeroes; if 1 - the CRC-16c
  548. initial value is all ones. */
  549. #define DMAE_REG_CRC16C_INIT 0x10201c
  550. /* [RW 1] If 0 - the CRC-16 T10 initial value is all zeroes; if 1 - the
  551. CRC-16 T10 initial value is all ones. */
  552. #define DMAE_REG_CRC16T10_INIT 0x102020
  553. /* [RW 2] Interrupt mask register #0 read/write */
  554. #define DMAE_REG_DMAE_INT_MASK 0x102054
  555. /* [RW 4] Parity mask register #0 read/write */
  556. #define DMAE_REG_DMAE_PRTY_MASK 0x102064
  557. /* [R 4] Parity register #0 read */
  558. #define DMAE_REG_DMAE_PRTY_STS 0x102058
  559. /* [RW 1] Command 0 go. */
  560. #define DMAE_REG_GO_C0 0x102080
  561. /* [RW 1] Command 1 go. */
  562. #define DMAE_REG_GO_C1 0x102084
  563. /* [RW 1] Command 10 go. */
  564. #define DMAE_REG_GO_C10 0x102088
  565. #define DMAE_REG_GO_C10_SIZE 1
  566. /* [RW 1] Command 11 go. */
  567. #define DMAE_REG_GO_C11 0x10208c
  568. #define DMAE_REG_GO_C11_SIZE 1
  569. /* [RW 1] Command 12 go. */
  570. #define DMAE_REG_GO_C12 0x102090
  571. #define DMAE_REG_GO_C12_SIZE 1
  572. /* [RW 1] Command 13 go. */
  573. #define DMAE_REG_GO_C13 0x102094
  574. #define DMAE_REG_GO_C13_SIZE 1
  575. /* [RW 1] Command 14 go. */
  576. #define DMAE_REG_GO_C14 0x102098
  577. #define DMAE_REG_GO_C14_SIZE 1
  578. /* [RW 1] Command 15 go. */
  579. #define DMAE_REG_GO_C15 0x10209c
  580. #define DMAE_REG_GO_C15_SIZE 1
  581. /* [RW 1] Command 10 go. */
  582. #define DMAE_REG_GO_C10 0x102088
  583. /* [RW 1] Command 11 go. */
  584. #define DMAE_REG_GO_C11 0x10208c
  585. /* [RW 1] Command 12 go. */
  586. #define DMAE_REG_GO_C12 0x102090
  587. /* [RW 1] Command 13 go. */
  588. #define DMAE_REG_GO_C13 0x102094
  589. /* [RW 1] Command 14 go. */
  590. #define DMAE_REG_GO_C14 0x102098
  591. /* [RW 1] Command 15 go. */
  592. #define DMAE_REG_GO_C15 0x10209c
  593. /* [RW 1] Command 2 go. */
  594. #define DMAE_REG_GO_C2 0x1020a0
  595. /* [RW 1] Command 3 go. */
  596. #define DMAE_REG_GO_C3 0x1020a4
  597. /* [RW 1] Command 4 go. */
  598. #define DMAE_REG_GO_C4 0x1020a8
  599. /* [RW 1] Command 5 go. */
  600. #define DMAE_REG_GO_C5 0x1020ac
  601. /* [RW 1] Command 6 go. */
  602. #define DMAE_REG_GO_C6 0x1020b0
  603. /* [RW 1] Command 7 go. */
  604. #define DMAE_REG_GO_C7 0x1020b4
  605. /* [RW 1] Command 8 go. */
  606. #define DMAE_REG_GO_C8 0x1020b8
  607. /* [RW 1] Command 9 go. */
  608. #define DMAE_REG_GO_C9 0x1020bc
  609. /* [RW 1] DMAE GRC Interface (Target; aster) enable. If 0 - the acknowledge
  610. input is disregarded; valid is deasserted; all other signals are treated
  611. as usual; if 1 - normal activity. */
  612. #define DMAE_REG_GRC_IFEN 0x102008
  613. /* [RW 1] DMAE PCI Interface (Request; ead; rite) enable. If 0 - the
  614. acknowledge input is disregarded; valid is deasserted; full is asserted;
  615. all other signals are treated as usual; if 1 - normal activity. */
  616. #define DMAE_REG_PCI_IFEN 0x102004
  617. /* [RW 4] DMAE- PCI Request Interface initial credit. Write writes the
  618. initial value to the credit counter; related to the address. Read returns
  619. the current value of the counter. */
  620. #define DMAE_REG_PXP_REQ_INIT_CRD 0x1020c0
  621. /* [RW 8] Aggregation command. */
  622. #define DORQ_REG_AGG_CMD0 0x170060
  623. /* [RW 8] Aggregation command. */
  624. #define DORQ_REG_AGG_CMD1 0x170064
  625. /* [RW 8] Aggregation command. */
  626. #define DORQ_REG_AGG_CMD2 0x170068
  627. /* [RW 8] Aggregation command. */
  628. #define DORQ_REG_AGG_CMD3 0x17006c
  629. /* [RW 28] UCM Header. */
  630. #define DORQ_REG_CMHEAD_RX 0x170050
  631. /* [RW 5] Interrupt mask register #0 read/write */
  632. #define DORQ_REG_DORQ_INT_MASK 0x170180
  633. /* [R 5] Interrupt register #0 read */
  634. #define DORQ_REG_DORQ_INT_STS 0x170174
  635. /* [RC 5] Interrupt register #0 read clear */
  636. #define DORQ_REG_DORQ_INT_STS_CLR 0x170178
  637. /* [RW 2] Parity mask register #0 read/write */
  638. #define DORQ_REG_DORQ_PRTY_MASK 0x170190
  639. /* [R 2] Parity register #0 read */
  640. #define DORQ_REG_DORQ_PRTY_STS 0x170184
  641. /* [RW 8] The address to write the DPM CID to STORM. */
  642. #define DORQ_REG_DPM_CID_ADDR 0x170044
  643. /* [RW 5] The DPM mode CID extraction offset. */
  644. #define DORQ_REG_DPM_CID_OFST 0x170030
  645. /* [RW 12] The threshold of the DQ FIFO to send the almost full interrupt. */
  646. #define DORQ_REG_DQ_FIFO_AFULL_TH 0x17007c
  647. /* [RW 12] The threshold of the DQ FIFO to send the full interrupt. */
  648. #define DORQ_REG_DQ_FIFO_FULL_TH 0x170078
  649. /* [R 13] Current value of the DQ FIFO fill level according to following
  650. pointer. The range is 0 - 256 FIFO rows; where each row stands for the
  651. doorbell. */
  652. #define DORQ_REG_DQ_FILL_LVLF 0x1700a4
  653. /* [R 1] DQ FIFO full status. Is set; when FIFO filling level is more or
  654. equal to full threshold; reset on full clear. */
  655. #define DORQ_REG_DQ_FULL_ST 0x1700c0
  656. /* [RW 28] The value sent to CM header in the case of CFC load error. */
  657. #define DORQ_REG_ERR_CMHEAD 0x170058
  658. #define DORQ_REG_IF_EN 0x170004
  659. #define DORQ_REG_MODE_ACT 0x170008
  660. /* [RW 5] The normal mode CID extraction offset. */
  661. #define DORQ_REG_NORM_CID_OFST 0x17002c
  662. /* [RW 28] TCM Header when only TCP context is loaded. */
  663. #define DORQ_REG_NORM_CMHEAD_TX 0x17004c
  664. /* [RW 3] The number of simultaneous outstanding requests to Context Fetch
  665. Interface. */
  666. #define DORQ_REG_OUTST_REQ 0x17003c
  667. #define DORQ_REG_REGN 0x170038
  668. /* [R 4] Current value of response A counter credit. Initial credit is
  669. configured through write to ~dorq_registers_rsp_init_crd.rsp_init_crd
  670. register. */
  671. #define DORQ_REG_RSPA_CRD_CNT 0x1700ac
  672. /* [R 4] Current value of response B counter credit. Initial credit is
  673. configured through write to ~dorq_registers_rsp_init_crd.rsp_init_crd
  674. register. */
  675. #define DORQ_REG_RSPB_CRD_CNT 0x1700b0
  676. /* [RW 4] The initial credit at the Doorbell Response Interface. The write
  677. writes the same initial credit to the rspa_crd_cnt and rspb_crd_cnt. The
  678. read reads this written value. */
  679. #define DORQ_REG_RSP_INIT_CRD 0x170048
  680. /* [RW 4] Initial activity counter value on the load request; when the
  681. shortcut is done. */
  682. #define DORQ_REG_SHRT_ACT_CNT 0x170070
  683. /* [RW 28] TCM Header when both ULP and TCP context is loaded. */
  684. #define DORQ_REG_SHRT_CMHEAD 0x170054
  685. #define HC_CONFIG_0_REG_ATTN_BIT_EN_0 (0x1<<4)
  686. #define HC_CONFIG_0_REG_INT_LINE_EN_0 (0x1<<3)
  687. #define HC_CONFIG_0_REG_MSI_MSIX_INT_EN_0 (0x1<<2)
  688. #define HC_CONFIG_0_REG_SINGLE_ISR_EN_0 (0x1<<1)
  689. #define HC_REG_AGG_INT_0 0x108050
  690. #define HC_REG_AGG_INT_1 0x108054
  691. /* [RW 16] attention bit and attention acknowledge bits status for port 0
  692. and 1 according to the following address map: addr 0 - attn_bit_0; addr 1
  693. - attn_ack_bit_0; addr 2 - attn_bit_1; addr 3 - attn_ack_bit_1; */
  694. #define HC_REG_ATTN_BIT 0x108120
  695. /* [RW 16] attn bits status index for attn bit msg; addr 0 - function 0;
  696. addr 1 - functin 1 */
  697. #define HC_REG_ATTN_IDX 0x108100
  698. /* [RW 32] port 0 lower 32 bits address field for attn messag. */
  699. #define HC_REG_ATTN_MSG0_ADDR_L 0x108018
  700. /* [RW 32] port 1 lower 32 bits address field for attn messag. */
  701. #define HC_REG_ATTN_MSG1_ADDR_L 0x108020
  702. /* [RW 8] status block number for attn bit msg - function 0; */
  703. #define HC_REG_ATTN_NUM_P0 0x108038
  704. /* [RW 8] status block number for attn bit msg - function 1 */
  705. #define HC_REG_ATTN_NUM_P1 0x10803c
  706. #define HC_REG_CONFIG_0 0x108000
  707. #define HC_REG_CONFIG_1 0x108004
  708. /* [RW 3] Parity mask register #0 read/write */
  709. #define HC_REG_HC_PRTY_MASK 0x1080a0
  710. /* [R 3] Parity register #0 read */
  711. #define HC_REG_HC_PRTY_STS 0x108094
  712. /* [RW 17] status block interrupt mask; one in each bit means unmask; zerow
  713. in each bit means mask; bit 0 - default SB; bit 1 - SB_0; bit 2 - SB_1...
  714. bit 16- SB_15; addr 0 - port 0; addr 1 - port 1 */
  715. #define HC_REG_INT_MASK 0x108108
  716. /* [RW 16] port 0 attn bit condition monitoring; each bit that is set will
  717. lock a change fron 0 to 1 in the corresponding attention signals that
  718. comes from the AEU */
  719. #define HC_REG_LEADING_EDGE_0 0x108040
  720. #define HC_REG_LEADING_EDGE_1 0x108048
  721. /* [RW 16] all producer and consumer of port 0 according to the following
  722. addresses; U_prod: 0-15; C_prod: 16-31; U_cons: 32-47; C_cons:48-63;
  723. Defoult_prod: U/C/X/T/Attn-64/65/66/67/68; Defoult_cons:
  724. U/C/X/T/Attn-69/70/71/72/73 */
  725. #define HC_REG_P0_PROD_CONS 0x108200
  726. /* [RW 16] all producer and consumer of port 1according to the following
  727. addresses; U_prod: 0-15; C_prod: 16-31; U_cons: 32-47; C_cons:48-63;
  728. Defoult_prod: U/C/X/T/Attn-64/65/66/67/68; Defoult_cons:
  729. U/C/X/T/Attn-69/70/71/72/73 */
  730. #define HC_REG_P1_PROD_CONS 0x108400
  731. /* [W 1] This register is write only and has 4 addresses as follow: 0 =
  732. clear all PBA bits port 0; 1 = clear all pending interrupts request
  733. port0; 2 = clear all PBA bits port 1; 3 = clear all pending interrupts
  734. request port1; here is no meaning for the data in this register */
  735. #define HC_REG_PBA_COMMAND 0x108140
  736. #define HC_REG_PCI_CONFIG_0 0x108010
  737. #define HC_REG_PCI_CONFIG_1 0x108014
  738. /* [RW 24] all counters acording to the following address: LSB: 0=read; 1=
  739. read_clear; 0-71 = HW counters (the inside order is the same as the
  740. interrupt table in the spec); 72-219 = SW counters 1 (stops after first
  741. consumer upd) the inside order is: 72-103 - U_non_default_p0; 104-135
  742. C_non_defaul_p0; 36-145 U/C/X/T/Attn_default_p0; 146-177
  743. U_non_default_p1; 178-209 C_non_defaul_p1; 10-219 U/C/X/T/Attn_default_p1
  744. ; 220-367 = SW counters 2 (stops when prod=cons) the inside order is:
  745. 220-251 - U_non_default_p0; 252-283 C_non_defaul_p0; 84-293
  746. U/C/X/T/Attn_default_p0; 294-325 U_non_default_p1; 326-357
  747. C_non_defaul_p1; 58-367 U/C/X/T/Attn_default_p1 ; 368-515 = mailbox
  748. counters; (the inside order of the mailbox counter is 368-431 U and C
  749. non_default_p0; 432-441 U/C/X/T/Attn_default_p0; 442-505 U and C
  750. non_default_p1; 506-515 U/C/X/T/Attn_default_p1) */
  751. #define HC_REG_STATISTIC_COUNTERS 0x109000
  752. /* [RW 16] port 0 attn bit condition monitoring; each bit that is set will
  753. lock a change fron 1 to 0 in the corresponding attention signals that
  754. comes from the AEU */
  755. #define HC_REG_TRAILING_EDGE_0 0x108044
  756. #define HC_REG_TRAILING_EDGE_1 0x10804c
  757. #define HC_REG_UC_RAM_ADDR_0 0x108028
  758. #define HC_REG_UC_RAM_ADDR_1 0x108030
  759. /* [RW 16] ustorm address for coalesc now message */
  760. #define HC_REG_USTORM_ADDR_FOR_COALESCE 0x108068
  761. #define HC_REG_VQID_0 0x108008
  762. #define HC_REG_VQID_1 0x10800c
  763. #define MCP_REG_MCPR_NVM_ACCESS_ENABLE 0x86424
  764. #define MCP_REG_MCPR_NVM_ADDR 0x8640c
  765. #define MCP_REG_MCPR_NVM_CFG4 0x8642c
  766. #define MCP_REG_MCPR_NVM_COMMAND 0x86400
  767. #define MCP_REG_MCPR_NVM_READ 0x86410
  768. #define MCP_REG_MCPR_NVM_SW_ARB 0x86420
  769. #define MCP_REG_MCPR_NVM_WRITE 0x86408
  770. #define MCP_REG_MCPR_NVM_WRITE1 0x86428
  771. #define MCP_REG_MCPR_SCRATCH 0xa0000
  772. /* [R 32] read first 32 bit after inversion of function 0. mapped as
  773. follows: [0] NIG attention for function0; [1] NIG attention for
  774. function1; [2] GPIO1 mcp; [3] GPIO2 mcp; [4] GPIO3 mcp; [5] GPIO4 mcp;
  775. [6] GPIO1 function 1; [7] GPIO2 function 1; [8] GPIO3 function 1; [9]
  776. GPIO4 function 1; [10] PCIE glue/PXP VPD event function0; [11] PCIE
  777. glue/PXP VPD event function1; [12] PCIE glue/PXP Expansion ROM event0;
  778. [13] PCIE glue/PXP Expansion ROM event1; [14] SPIO4; [15] SPIO5; [16]
  779. MSI/X indication for mcp; [17] MSI/X indication for function 1; [18] BRB
  780. Parity error; [19] BRB Hw interrupt; [20] PRS Parity error; [21] PRS Hw
  781. interrupt; [22] SRC Parity error; [23] SRC Hw interrupt; [24] TSDM Parity
  782. error; [25] TSDM Hw interrupt; [26] TCM Parity error; [27] TCM Hw
  783. interrupt; [28] TSEMI Parity error; [29] TSEMI Hw interrupt; [30] PBF
  784. Parity error; [31] PBF Hw interrupt; */
  785. #define MISC_REG_AEU_AFTER_INVERT_1_FUNC_0 0xa42c
  786. #define MISC_REG_AEU_AFTER_INVERT_1_FUNC_1 0xa430
  787. /* [R 32] read first 32 bit after inversion of mcp. mapped as follows: [0]
  788. NIG attention for function0; [1] NIG attention for function1; [2] GPIO1
  789. mcp; [3] GPIO2 mcp; [4] GPIO3 mcp; [5] GPIO4 mcp; [6] GPIO1 function 1;
  790. [7] GPIO2 function 1; [8] GPIO3 function 1; [9] GPIO4 function 1; [10]
  791. PCIE glue/PXP VPD event function0; [11] PCIE glue/PXP VPD event
  792. function1; [12] PCIE glue/PXP Expansion ROM event0; [13] PCIE glue/PXP
  793. Expansion ROM event1; [14] SPIO4; [15] SPIO5; [16] MSI/X indication for
  794. mcp; [17] MSI/X indication for function 1; [18] BRB Parity error; [19]
  795. BRB Hw interrupt; [20] PRS Parity error; [21] PRS Hw interrupt; [22] SRC
  796. Parity error; [23] SRC Hw interrupt; [24] TSDM Parity error; [25] TSDM Hw
  797. interrupt; [26] TCM Parity error; [27] TCM Hw interrupt; [28] TSEMI
  798. Parity error; [29] TSEMI Hw interrupt; [30] PBF Parity error; [31] PBF Hw
  799. interrupt; */
  800. #define MISC_REG_AEU_AFTER_INVERT_1_MCP 0xa434
  801. /* [R 32] read second 32 bit after inversion of function 0. mapped as
  802. follows: [0] PBClient Parity error; [1] PBClient Hw interrupt; [2] QM
  803. Parity error; [3] QM Hw interrupt; [4] Timers Parity error; [5] Timers Hw
  804. interrupt; [6] XSDM Parity error; [7] XSDM Hw interrupt; [8] XCM Parity
  805. error; [9] XCM Hw interrupt; [10] XSEMI Parity error; [11] XSEMI Hw
  806. interrupt; [12] DoorbellQ Parity error; [13] DoorbellQ Hw interrupt; [14]
  807. NIG Parity error; [15] NIG Hw interrupt; [16] Vaux PCI core Parity error;
  808. [17] Vaux PCI core Hw interrupt; [18] Debug Parity error; [19] Debug Hw
  809. interrupt; [20] USDM Parity error; [21] USDM Hw interrupt; [22] UCM
  810. Parity error; [23] UCM Hw interrupt; [24] USEMI Parity error; [25] USEMI
  811. Hw interrupt; [26] UPB Parity error; [27] UPB Hw interrupt; [28] CSDM
  812. Parity error; [29] CSDM Hw interrupt; [30] CCM Parity error; [31] CCM Hw
  813. interrupt; */
  814. #define MISC_REG_AEU_AFTER_INVERT_2_FUNC_0 0xa438
  815. #define MISC_REG_AEU_AFTER_INVERT_2_FUNC_1 0xa43c
  816. /* [R 32] read second 32 bit after inversion of mcp. mapped as follows: [0]
  817. PBClient Parity error; [1] PBClient Hw interrupt; [2] QM Parity error;
  818. [3] QM Hw interrupt; [4] Timers Parity error; [5] Timers Hw interrupt;
  819. [6] XSDM Parity error; [7] XSDM Hw interrupt; [8] XCM Parity error; [9]
  820. XCM Hw interrupt; [10] XSEMI Parity error; [11] XSEMI Hw interrupt; [12]
  821. DoorbellQ Parity error; [13] DoorbellQ Hw interrupt; [14] NIG Parity
  822. error; [15] NIG Hw interrupt; [16] Vaux PCI core Parity error; [17] Vaux
  823. PCI core Hw interrupt; [18] Debug Parity error; [19] Debug Hw interrupt;
  824. [20] USDM Parity error; [21] USDM Hw interrupt; [22] UCM Parity error;
  825. [23] UCM Hw interrupt; [24] USEMI Parity error; [25] USEMI Hw interrupt;
  826. [26] UPB Parity error; [27] UPB Hw interrupt; [28] CSDM Parity error;
  827. [29] CSDM Hw interrupt; [30] CCM Parity error; [31] CCM Hw interrupt; */
  828. #define MISC_REG_AEU_AFTER_INVERT_2_MCP 0xa440
  829. /* [R 32] read third 32 bit after inversion of function 0. mapped as
  830. follows: [0] CSEMI Parity error; [1] CSEMI Hw interrupt; [2] PXP Parity
  831. error; [3] PXP Hw interrupt; [4] PXPpciClockClient Parity error; [5]
  832. PXPpciClockClient Hw interrupt; [6] CFC Parity error; [7] CFC Hw
  833. interrupt; [8] CDU Parity error; [9] CDU Hw interrupt; [10] DMAE Parity
  834. error; [11] DMAE Hw interrupt; [12] IGU (HC) Parity error; [13] IGU (HC)
  835. Hw interrupt; [14] MISC Parity error; [15] MISC Hw interrupt; [16]
  836. pxp_misc_mps_attn; [17] Flash event; [18] SMB event; [19] MCP attn0; [20]
  837. MCP attn1; [21] SW timers attn_1 func0; [22] SW timers attn_2 func0; [23]
  838. SW timers attn_3 func0; [24] SW timers attn_4 func0; [25] PERST; [26] SW
  839. timers attn_1 func1; [27] SW timers attn_2 func1; [28] SW timers attn_3
  840. func1; [29] SW timers attn_4 func1; [30] General attn0; [31] General
  841. attn1; */
  842. #define MISC_REG_AEU_AFTER_INVERT_3_FUNC_0 0xa444
  843. #define MISC_REG_AEU_AFTER_INVERT_3_FUNC_1 0xa448
  844. /* [R 32] read third 32 bit after inversion of mcp. mapped as follows: [0]
  845. CSEMI Parity error; [1] CSEMI Hw interrupt; [2] PXP Parity error; [3] PXP
  846. Hw interrupt; [4] PXPpciClockClient Parity error; [5] PXPpciClockClient
  847. Hw interrupt; [6] CFC Parity error; [7] CFC Hw interrupt; [8] CDU Parity
  848. error; [9] CDU Hw interrupt; [10] DMAE Parity error; [11] DMAE Hw
  849. interrupt; [12] IGU (HC) Parity error; [13] IGU (HC) Hw interrupt; [14]
  850. MISC Parity error; [15] MISC Hw interrupt; [16] pxp_misc_mps_attn; [17]
  851. Flash event; [18] SMB event; [19] MCP attn0; [20] MCP attn1; [21] SW
  852. timers attn_1 func0; [22] SW timers attn_2 func0; [23] SW timers attn_3
  853. func0; [24] SW timers attn_4 func0; [25] PERST; [26] SW timers attn_1
  854. func1; [27] SW timers attn_2 func1; [28] SW timers attn_3 func1; [29] SW
  855. timers attn_4 func1; [30] General attn0; [31] General attn1; */
  856. #define MISC_REG_AEU_AFTER_INVERT_3_MCP 0xa44c
  857. /* [R 32] read fourth 32 bit after inversion of function 0. mapped as
  858. follows: [0] General attn2; [1] General attn3; [2] General attn4; [3]
  859. General attn5; [4] General attn6; [5] General attn7; [6] General attn8;
  860. [7] General attn9; [8] General attn10; [9] General attn11; [10] General
  861. attn12; [11] General attn13; [12] General attn14; [13] General attn15;
  862. [14] General attn16; [15] General attn17; [16] General attn18; [17]
  863. General attn19; [18] General attn20; [19] General attn21; [20] Main power
  864. interrupt; [21] RBCR Latched attn; [22] RBCT Latched attn; [23] RBCN
  865. Latched attn; [24] RBCU Latched attn; [25] RBCP Latched attn; [26] GRC
  866. Latched timeout attention; [27] GRC Latched reserved access attention;
  867. [28] MCP Latched rom_parity; [29] MCP Latched ump_rx_parity; [30] MCP
  868. Latched ump_tx_parity; [31] MCP Latched scpad_parity; */
  869. #define MISC_REG_AEU_AFTER_INVERT_4_FUNC_0 0xa450
  870. #define MISC_REG_AEU_AFTER_INVERT_4_FUNC_1 0xa454
  871. /* [R 32] read fourth 32 bit after inversion of mcp. mapped as follows: [0]
  872. General attn2; [1] General attn3; [2] General attn4; [3] General attn5;
  873. [4] General attn6; [5] General attn7; [6] General attn8; [7] General
  874. attn9; [8] General attn10; [9] General attn11; [10] General attn12; [11]
  875. General attn13; [12] General attn14; [13] General attn15; [14] General
  876. attn16; [15] General attn17; [16] General attn18; [17] General attn19;
  877. [18] General attn20; [19] General attn21; [20] Main power interrupt; [21]
  878. RBCR Latched attn; [22] RBCT Latched attn; [23] RBCN Latched attn; [24]
  879. RBCU Latched attn; [25] RBCP Latched attn; [26] GRC Latched timeout
  880. attention; [27] GRC Latched reserved access attention; [28] MCP Latched
  881. rom_parity; [29] MCP Latched ump_rx_parity; [30] MCP Latched
  882. ump_tx_parity; [31] MCP Latched scpad_parity; */
  883. #define MISC_REG_AEU_AFTER_INVERT_4_MCP 0xa458
  884. /* [W 11] write to this register results with the clear of the latched
  885. signals; one in d0 clears RBCR latch; one in d1 clears RBCT latch; one in
  886. d2 clears RBCN latch; one in d3 clears RBCU latch; one in d4 clears RBCP
  887. latch; one in d5 clears GRC Latched timeout attention; one in d6 clears
  888. GRC Latched reserved access attention; one in d7 clears Latched
  889. rom_parity; one in d8 clears Latched ump_rx_parity; one in d9 clears
  890. Latched ump_tx_parity; one in d10 clears Latched scpad_parity; read from
  891. this register return zero */
  892. #define MISC_REG_AEU_CLR_LATCH_SIGNAL 0xa45c
  893. /* [RW 32] first 32b for enabling the output for function 0 output0. mapped
  894. as follows: [0] NIG attention for function0; [1] NIG attention for
  895. function1; [2] GPIO1 function 0; [3] GPIO2 function 0; [4] GPIO3 function
  896. 0; [5] GPIO4 function 0; [6] GPIO1 function 1; [7] GPIO2 function 1; [8]
  897. GPIO3 function 1; [9] GPIO4 function 1; [10] PCIE glue/PXP VPD event
  898. function0; [11] PCIE glue/PXP VPD event function1; [12] PCIE glue/PXP
  899. Expansion ROM event0; [13] PCIE glue/PXP Expansion ROM event1; [14]
  900. SPIO4; [15] SPIO5; [16] MSI/X indication for function 0; [17] MSI/X
  901. indication for function 1; [18] BRB Parity error; [19] BRB Hw interrupt;
  902. [20] PRS Parity error; [21] PRS Hw interrupt; [22] SRC Parity error; [23]
  903. SRC Hw interrupt; [24] TSDM Parity error; [25] TSDM Hw interrupt; [26]
  904. TCM Parity error; [27] TCM Hw interrupt; [28] TSEMI Parity error; [29]
  905. TSEMI Hw interrupt; [30] PBF Parity error; [31] PBF Hw interrupt; */
  906. #define MISC_REG_AEU_ENABLE1_FUNC_0_OUT_0 0xa06c
  907. #define MISC_REG_AEU_ENABLE1_FUNC_0_OUT_1 0xa07c
  908. #define MISC_REG_AEU_ENABLE1_FUNC_0_OUT_3 0xa09c
  909. /* [RW 32] first 32b for enabling the output for function 1 output0. mapped
  910. as follows: [0] NIG attention for function0; [1] NIG attention for
  911. function1; [2] GPIO1 function 1; [3] GPIO2 function 1; [4] GPIO3 function
  912. 1; [5] GPIO4 function 1; [6] GPIO1 function 1; [7] GPIO2 function 1; [8]
  913. GPIO3 function 1; [9] GPIO4 function 1; [10] PCIE glue/PXP VPD event
  914. function0; [11] PCIE glue/PXP VPD event function1; [12] PCIE glue/PXP
  915. Expansion ROM event0; [13] PCIE glue/PXP Expansion ROM event1; [14]
  916. SPIO4; [15] SPIO5; [16] MSI/X indication for function 1; [17] MSI/X
  917. indication for function 1; [18] BRB Parity error; [19] BRB Hw interrupt;
  918. [20] PRS Parity error; [21] PRS Hw interrupt; [22] SRC Parity error; [23]
  919. SRC Hw interrupt; [24] TSDM Parity error; [25] TSDM Hw interrupt; [26]
  920. TCM Parity error; [27] TCM Hw interrupt; [28] TSEMI Parity error; [29]
  921. TSEMI Hw interrupt; [30] PBF Parity error; [31] PBF Hw interrupt; */
  922. #define MISC_REG_AEU_ENABLE1_FUNC_1_OUT_0 0xa10c
  923. #define MISC_REG_AEU_ENABLE1_FUNC_1_OUT_1 0xa11c
  924. #define MISC_REG_AEU_ENABLE1_FUNC_1_OUT_3 0xa13c
  925. /* [RW 32] first 32b for enabling the output for close the gate nig 0.
  926. mapped as follows: [0] NIG attention for function0; [1] NIG attention for
  927. function1; [2] GPIO1 function 0; [3] GPIO2 function 0; [4] GPIO3 function
  928. 0; [5] GPIO4 function 0; [6] GPIO1 function 1; [7] GPIO2 function 1; [8]
  929. GPIO3 function 1; [9] GPIO4 function 1; [10] PCIE glue/PXP VPD event
  930. function0; [11] PCIE glue/PXP VPD event function1; [12] PCIE glue/PXP
  931. Expansion ROM event0; [13] PCIE glue/PXP Expansion ROM event1; [14]
  932. SPIO4; [15] SPIO5; [16] MSI/X indication for function 0; [17] MSI/X
  933. indication for function 1; [18] BRB Parity error; [19] BRB Hw interrupt;
  934. [20] PRS Parity error; [21] PRS Hw interrupt; [22] SRC Parity error; [23]
  935. SRC Hw interrupt; [24] TSDM Parity error; [25] TSDM Hw interrupt; [26]
  936. TCM Parity error; [27] TCM Hw interrupt; [28] TSEMI Parity error; [29]
  937. TSEMI Hw interrupt; [30] PBF Parity error; [31] PBF Hw interrupt; */
  938. #define MISC_REG_AEU_ENABLE1_NIG_0 0xa0ec
  939. #define MISC_REG_AEU_ENABLE1_NIG_1 0xa18c
  940. /* [RW 32] first 32b for enabling the output for close the gate pxp 0.
  941. mapped as follows: [0] NIG attention for function0; [1] NIG attention for
  942. function1; [2] GPIO1 function 0; [3] GPIO2 function 0; [4] GPIO3 function
  943. 0; [5] GPIO4 function 0; [6] GPIO1 function 1; [7] GPIO2 function 1; [8]
  944. GPIO3 function 1; [9] GPIO4 function 1; [10] PCIE glue/PXP VPD event
  945. function0; [11] PCIE glue/PXP VPD event function1; [12] PCIE glue/PXP
  946. Expansion ROM event0; [13] PCIE glue/PXP Expansion ROM event1; [14]
  947. SPIO4; [15] SPIO5; [16] MSI/X indication for function 0; [17] MSI/X
  948. indication for function 1; [18] BRB Parity error; [19] BRB Hw interrupt;
  949. [20] PRS Parity error; [21] PRS Hw interrupt; [22] SRC Parity error; [23]
  950. SRC Hw interrupt; [24] TSDM Parity error; [25] TSDM Hw interrupt; [26]
  951. TCM Parity error; [27] TCM Hw interrupt; [28] TSEMI Parity error; [29]
  952. TSEMI Hw interrupt; [30] PBF Parity error; [31] PBF Hw interrupt; */
  953. #define MISC_REG_AEU_ENABLE1_PXP_0 0xa0fc
  954. #define MISC_REG_AEU_ENABLE1_PXP_1 0xa19c
  955. /* [RW 32] second 32b for enabling the output for function 0 output0. mapped
  956. as follows: [0] PBClient Parity error; [1] PBClient Hw interrupt; [2] QM
  957. Parity error; [3] QM Hw interrupt; [4] Timers Parity error; [5] Timers Hw
  958. interrupt; [6] XSDM Parity error; [7] XSDM Hw interrupt; [8] XCM Parity
  959. error; [9] XCM Hw interrupt; [10] XSEMI Parity error; [11] XSEMI Hw
  960. interrupt; [12] DoorbellQ Parity error; [13] DoorbellQ Hw interrupt; [14]
  961. NIG Parity error; [15] NIG Hw interrupt; [16] Vaux PCI core Parity error;
  962. [17] Vaux PCI core Hw interrupt; [18] Debug Parity error; [19] Debug Hw
  963. interrupt; [20] USDM Parity error; [21] USDM Hw interrupt; [22] UCM
  964. Parity error; [23] UCM Hw interrupt; [24] USEMI Parity error; [25] USEMI
  965. Hw interrupt; [26] UPB Parity error; [27] UPB Hw interrupt; [28] CSDM
  966. Parity error; [29] CSDM Hw interrupt; [30] CCM Parity error; [31] CCM Hw
  967. interrupt; */
  968. #define MISC_REG_AEU_ENABLE2_FUNC_0_OUT_0 0xa070
  969. #define MISC_REG_AEU_ENABLE2_FUNC_0_OUT_1 0xa080
  970. /* [RW 32] second 32b for enabling the output for function 1 output0. mapped
  971. as follows: [0] PBClient Parity error; [1] PBClient Hw interrupt; [2] QM
  972. Parity error; [3] QM Hw interrupt; [4] Timers Parity error; [5] Timers Hw
  973. interrupt; [6] XSDM Parity error; [7] XSDM Hw interrupt; [8] XCM Parity
  974. error; [9] XCM Hw interrupt; [10] XSEMI Parity error; [11] XSEMI Hw
  975. interrupt; [12] DoorbellQ Parity error; [13] DoorbellQ Hw interrupt; [14]
  976. NIG Parity error; [15] NIG Hw interrupt; [16] Vaux PCI core Parity error;
  977. [17] Vaux PCI core Hw interrupt; [18] Debug Parity error; [19] Debug Hw
  978. interrupt; [20] USDM Parity error; [21] USDM Hw interrupt; [22] UCM
  979. Parity error; [23] UCM Hw interrupt; [24] USEMI Parity error; [25] USEMI
  980. Hw interrupt; [26] UPB Parity error; [27] UPB Hw interrupt; [28] CSDM
  981. Parity error; [29] CSDM Hw interrupt; [30] CCM Parity error; [31] CCM Hw
  982. interrupt; */
  983. #define MISC_REG_AEU_ENABLE2_FUNC_1_OUT_0 0xa110
  984. #define MISC_REG_AEU_ENABLE2_FUNC_1_OUT_1 0xa120
  985. /* [RW 32] second 32b for enabling the output for close the gate nig 0.
  986. mapped as follows: [0] PBClient Parity error; [1] PBClient Hw interrupt;
  987. [2] QM Parity error; [3] QM Hw interrupt; [4] Timers Parity error; [5]
  988. Timers Hw interrupt; [6] XSDM Parity error; [7] XSDM Hw interrupt; [8]
  989. XCM Parity error; [9] XCM Hw interrupt; [10] XSEMI Parity error; [11]
  990. XSEMI Hw interrupt; [12] DoorbellQ Parity error; [13] DoorbellQ Hw
  991. interrupt; [14] NIG Parity error; [15] NIG Hw interrupt; [16] Vaux PCI
  992. core Parity error; [17] Vaux PCI core Hw interrupt; [18] Debug Parity
  993. error; [19] Debug Hw interrupt; [20] USDM Parity error; [21] USDM Hw
  994. interrupt; [22] UCM Parity error; [23] UCM Hw interrupt; [24] USEMI
  995. Parity error; [25] USEMI Hw interrupt; [26] UPB Parity error; [27] UPB Hw
  996. interrupt; [28] CSDM Parity error; [29] CSDM Hw interrupt; [30] CCM
  997. Parity error; [31] CCM Hw interrupt; */
  998. #define MISC_REG_AEU_ENABLE2_NIG_0 0xa0f0
  999. #define MISC_REG_AEU_ENABLE2_NIG_1 0xa190
  1000. /* [RW 32] second 32b for enabling the output for close the gate pxp 0.
  1001. mapped as follows: [0] PBClient Parity error; [1] PBClient Hw interrupt;
  1002. [2] QM Parity error; [3] QM Hw interrupt; [4] Timers Parity error; [5]
  1003. Timers Hw interrupt; [6] XSDM Parity error; [7] XSDM Hw interrupt; [8]
  1004. XCM Parity error; [9] XCM Hw interrupt; [10] XSEMI Parity error; [11]
  1005. XSEMI Hw interrupt; [12] DoorbellQ Parity error; [13] DoorbellQ Hw
  1006. interrupt; [14] NIG Parity error; [15] NIG Hw interrupt; [16] Vaux PCI
  1007. core Parity error; [17] Vaux PCI core Hw interrupt; [18] Debug Parity
  1008. error; [19] Debug Hw interrupt; [20] USDM Parity error; [21] USDM Hw
  1009. interrupt; [22] UCM Parity error; [23] UCM Hw interrupt; [24] USEMI
  1010. Parity error; [25] USEMI Hw interrupt; [26] UPB Parity error; [27] UPB Hw
  1011. interrupt; [28] CSDM Parity error; [29] CSDM Hw interrupt; [30] CCM
  1012. Parity error; [31] CCM Hw interrupt; */
  1013. #define MISC_REG_AEU_ENABLE2_PXP_0 0xa100
  1014. #define MISC_REG_AEU_ENABLE2_PXP_1 0xa1a0
  1015. /* [RW 32] third 32b for enabling the output for function 0 output0. mapped
  1016. as follows: [0] CSEMI Parity error; [1] CSEMI Hw interrupt; [2] PXP
  1017. Parity error; [3] PXP Hw interrupt; [4] PXPpciClockClient Parity error;
  1018. [5] PXPpciClockClient Hw interrupt; [6] CFC Parity error; [7] CFC Hw
  1019. interrupt; [8] CDU Parity error; [9] CDU Hw interrupt; [10] DMAE Parity
  1020. error; [11] DMAE Hw interrupt; [12] IGU (HC) Parity error; [13] IGU (HC)
  1021. Hw interrupt; [14] MISC Parity error; [15] MISC Hw interrupt; [16]
  1022. pxp_misc_mps_attn; [17] Flash event; [18] SMB event; [19] MCP attn0; [20]
  1023. MCP attn1; [21] SW timers attn_1 func0; [22] SW timers attn_2 func0; [23]
  1024. SW timers attn_3 func0; [24] SW timers attn_4 func0; [25] PERST; [26] SW
  1025. timers attn_1 func1; [27] SW timers attn_2 func1; [28] SW timers attn_3
  1026. func1; [29] SW timers attn_4 func1; [30] General attn0; [31] General
  1027. attn1; */
  1028. #define MISC_REG_AEU_ENABLE3_FUNC_0_OUT_0 0xa074
  1029. #define MISC_REG_AEU_ENABLE3_FUNC_0_OUT_1 0xa084
  1030. /* [RW 32] third 32b for enabling the output for function 1 output0. mapped
  1031. as follows: [0] CSEMI Parity error; [1] CSEMI Hw interrupt; [2] PXP
  1032. Parity error; [3] PXP Hw interrupt; [4] PXPpciClockClient Parity error;
  1033. [5] PXPpciClockClient Hw interrupt; [6] CFC Parity error; [7] CFC Hw
  1034. interrupt; [8] CDU Parity error; [9] CDU Hw interrupt; [10] DMAE Parity
  1035. error; [11] DMAE Hw interrupt; [12] IGU (HC) Parity error; [13] IGU (HC)
  1036. Hw interrupt; [14] MISC Parity error; [15] MISC Hw interrupt; [16]
  1037. pxp_misc_mps_attn; [17] Flash event; [18] SMB event; [19] MCP attn0; [20]
  1038. MCP attn1; [21] SW timers attn_1 func0; [22] SW timers attn_2 func0; [23]
  1039. SW timers attn_3 func0; [24] SW timers attn_4 func0; [25] PERST; [26] SW
  1040. timers attn_1 func1; [27] SW timers attn_2 func1; [28] SW timers attn_3
  1041. func1; [29] SW timers attn_4 func1; [30] General attn0; [31] General
  1042. attn1; */
  1043. #define MISC_REG_AEU_ENABLE3_FUNC_1_OUT_0 0xa114
  1044. #define MISC_REG_AEU_ENABLE3_FUNC_1_OUT_1 0xa124
  1045. /* [RW 32] third 32b for enabling the output for close the gate nig 0.
  1046. mapped as follows: [0] CSEMI Parity error; [1] CSEMI Hw interrupt; [2]
  1047. PXP Parity error; [3] PXP Hw interrupt; [4] PXPpciClockClient Parity
  1048. error; [5] PXPpciClockClient Hw interrupt; [6] CFC Parity error; [7] CFC
  1049. Hw interrupt; [8] CDU Parity error; [9] CDU Hw interrupt; [10] DMAE
  1050. Parity error; [11] DMAE Hw interrupt; [12] IGU (HC) Parity error; [13]
  1051. IGU (HC) Hw interrupt; [14] MISC Parity error; [15] MISC Hw interrupt;
  1052. [16] pxp_misc_mps_attn; [17] Flash event; [18] SMB event; [19] MCP attn0;
  1053. [20] MCP attn1; [21] SW timers attn_1 func0; [22] SW timers attn_2 func0;
  1054. [23] SW timers attn_3 func0; [24] SW timers attn_4 func0; [25] PERST;
  1055. [26] SW timers attn_1 func1; [27] SW timers attn_2 func1; [28] SW timers
  1056. attn_3 func1; [29] SW timers attn_4 func1; [30] General attn0; [31]
  1057. General attn1; */
  1058. #define MISC_REG_AEU_ENABLE3_NIG_0 0xa0f4
  1059. #define MISC_REG_AEU_ENABLE3_NIG_1 0xa194
  1060. /* [RW 32] third 32b for enabling the output for close the gate pxp 0.
  1061. mapped as follows: [0] CSEMI Parity error; [1] CSEMI Hw interrupt; [2]
  1062. PXP Parity error; [3] PXP Hw interrupt; [4] PXPpciClockClient Parity
  1063. error; [5] PXPpciClockClient Hw interrupt; [6] CFC Parity error; [7] CFC
  1064. Hw interrupt; [8] CDU Parity error; [9] CDU Hw interrupt; [10] DMAE
  1065. Parity error; [11] DMAE Hw interrupt; [12] IGU (HC) Parity error; [13]
  1066. IGU (HC) Hw interrupt; [14] MISC Parity error; [15] MISC Hw interrupt;
  1067. [16] pxp_misc_mps_attn; [17] Flash event; [18] SMB event; [19] MCP attn0;
  1068. [20] MCP attn1; [21] SW timers attn_1 func0; [22] SW timers attn_2 func0;
  1069. [23] SW timers attn_3 func0; [24] SW timers attn_4 func0; [25] PERST;
  1070. [26] SW timers attn_1 func1; [27] SW timers attn_2 func1; [28] SW timers
  1071. attn_3 func1; [29] SW timers attn_4 func1; [30] General attn0; [31]
  1072. General attn1; */
  1073. #define MISC_REG_AEU_ENABLE3_PXP_0 0xa104
  1074. #define MISC_REG_AEU_ENABLE3_PXP_1 0xa1a4
  1075. /* [RW 32] fourth 32b for enabling the output for function 0 output0.mapped
  1076. as follows: [0] General attn2; [1] General attn3; [2] General attn4; [3]
  1077. General attn5; [4] General attn6; [5] General attn7; [6] General attn8;
  1078. [7] General attn9; [8] General attn10; [9] General attn11; [10] General
  1079. attn12; [11] General attn13; [12] General attn14; [13] General attn15;
  1080. [14] General attn16; [15] General attn17; [16] General attn18; [17]
  1081. General attn19; [18] General attn20; [19] General attn21; [20] Main power
  1082. interrupt; [21] RBCR Latched attn; [22] RBCT Latched attn; [23] RBCN
  1083. Latched attn; [24] RBCU Latched attn; [25] RBCP Latched attn; [26] GRC
  1084. Latched timeout attention; [27] GRC Latched reserved access attention;
  1085. [28] MCP Latched rom_parity; [29] MCP Latched ump_rx_parity; [30] MCP
  1086. Latched ump_tx_parity; [31] MCP Latched scpad_parity; */
  1087. #define MISC_REG_AEU_ENABLE4_FUNC_0_OUT_0 0xa078
  1088. #define MISC_REG_AEU_ENABLE4_FUNC_0_OUT_2 0xa098
  1089. /* [RW 32] fourth 32b for enabling the output for function 1 output0.mapped
  1090. as follows: [0] General attn2; [1] General attn3; [2] General attn4; [3]
  1091. General attn5; [4] General attn6; [5] General attn7; [6] General attn8;
  1092. [7] General attn9; [8] General attn10; [9] General attn11; [10] General
  1093. attn12; [11] General attn13; [12] General attn14; [13] General attn15;
  1094. [14] General attn16; [15] General attn17; [16] General attn18; [17]
  1095. General attn19; [18] General attn20; [19] General attn21; [20] Main power
  1096. interrupt; [21] RBCR Latched attn; [22] RBCT Latched attn; [23] RBCN
  1097. Latched attn; [24] RBCU Latched attn; [25] RBCP Latched attn; [26] GRC
  1098. Latched timeout attention; [27] GRC Latched reserved access attention;
  1099. [28] MCP Latched rom_parity; [29] MCP Latched ump_rx_parity; [30] MCP
  1100. Latched ump_tx_parity; [31] MCP Latched scpad_parity; */
  1101. #define MISC_REG_AEU_ENABLE4_FUNC_1_OUT_0 0xa118
  1102. #define MISC_REG_AEU_ENABLE4_FUNC_1_OUT_2 0xa138
  1103. /* [RW 32] fourth 32b for enabling the output for close the gate nig
  1104. 0.mapped as follows: [0] General attn2; [1] General attn3; [2] General
  1105. attn4; [3] General attn5; [4] General attn6; [5] General attn7; [6]
  1106. General attn8; [7] General attn9; [8] General attn10; [9] General attn11;
  1107. [10] General attn12; [11] General attn13; [12] General attn14; [13]
  1108. General attn15; [14] General attn16; [15] General attn17; [16] General
  1109. attn18; [17] General attn19; [18] General attn20; [19] General attn21;
  1110. [20] Main power interrupt; [21] RBCR Latched attn; [22] RBCT Latched
  1111. attn; [23] RBCN Latched attn; [24] RBCU Latched attn; [25] RBCP Latched
  1112. attn; [26] GRC Latched timeout attention; [27] GRC Latched reserved
  1113. access attention; [28] MCP Latched rom_parity; [29] MCP Latched
  1114. ump_rx_parity; [30] MCP Latched ump_tx_parity; [31] MCP Latched
  1115. scpad_parity; */
  1116. #define MISC_REG_AEU_ENABLE4_NIG_0 0xa0f8
  1117. #define MISC_REG_AEU_ENABLE4_NIG_1 0xa198
  1118. /* [RW 32] fourth 32b for enabling the output for close the gate pxp
  1119. 0.mapped as follows: [0] General attn2; [1] General attn3; [2] General
  1120. attn4; [3] General attn5; [4] General attn6; [5] General attn7; [6]
  1121. General attn8; [7] General attn9; [8] General attn10; [9] General attn11;
  1122. [10] General attn12; [11] General attn13; [12] General attn14; [13]
  1123. General attn15; [14] General attn16; [15] General attn17; [16] General
  1124. attn18; [17] General attn19; [18] General attn20; [19] General attn21;
  1125. [20] Main power interrupt; [21] RBCR Latched attn; [22] RBCT Latched
  1126. attn; [23] RBCN Latched attn; [24] RBCU Latched attn; [25] RBCP Latched
  1127. attn; [26] GRC Latched timeout attention; [27] GRC Latched reserved
  1128. access attention; [28] MCP Latched rom_parity; [29] MCP Latched
  1129. ump_rx_parity; [30] MCP Latched ump_tx_parity; [31] MCP Latched
  1130. scpad_parity; */
  1131. #define MISC_REG_AEU_ENABLE4_PXP_0 0xa108
  1132. #define MISC_REG_AEU_ENABLE4_PXP_1 0xa1a8
  1133. /* [RW 1] set/clr general attention 0; this will set/clr bit 94 in the aeu
  1134. 128 bit vector */
  1135. #define MISC_REG_AEU_GENERAL_ATTN_0 0xa000
  1136. #define MISC_REG_AEU_GENERAL_ATTN_1 0xa004
  1137. #define MISC_REG_AEU_GENERAL_ATTN_10 0xa028
  1138. #define MISC_REG_AEU_GENERAL_ATTN_11 0xa02c
  1139. #define MISC_REG_AEU_GENERAL_ATTN_12 0xa030
  1140. #define MISC_REG_AEU_GENERAL_ATTN_13 0xa034
  1141. #define MISC_REG_AEU_GENERAL_ATTN_14 0xa038
  1142. #define MISC_REG_AEU_GENERAL_ATTN_15 0xa03c
  1143. #define MISC_REG_AEU_GENERAL_ATTN_16 0xa040
  1144. #define MISC_REG_AEU_GENERAL_ATTN_17 0xa044
  1145. #define MISC_REG_AEU_GENERAL_ATTN_18 0xa048
  1146. #define MISC_REG_AEU_GENERAL_ATTN_19 0xa04c
  1147. #define MISC_REG_AEU_GENERAL_ATTN_10 0xa028
  1148. #define MISC_REG_AEU_GENERAL_ATTN_11 0xa02c
  1149. #define MISC_REG_AEU_GENERAL_ATTN_2 0xa008
  1150. #define MISC_REG_AEU_GENERAL_ATTN_20 0xa050
  1151. #define MISC_REG_AEU_GENERAL_ATTN_21 0xa054
  1152. #define MISC_REG_AEU_GENERAL_ATTN_3 0xa00c
  1153. #define MISC_REG_AEU_GENERAL_ATTN_4 0xa010
  1154. #define MISC_REG_AEU_GENERAL_ATTN_5 0xa014
  1155. #define MISC_REG_AEU_GENERAL_ATTN_6 0xa018
  1156. #define MISC_REG_AEU_GENERAL_ATTN_7 0xa01c
  1157. #define MISC_REG_AEU_GENERAL_ATTN_8 0xa020
  1158. #define MISC_REG_AEU_GENERAL_ATTN_9 0xa024
  1159. /* [RW 32] first 32b for inverting the input for function 0; for each bit:
  1160. 0= do not invert; 1= invert; mapped as follows: [0] NIG attention for
  1161. function0; [1] NIG attention for function1; [2] GPIO1 mcp; [3] GPIO2 mcp;
  1162. [4] GPIO3 mcp; [5] GPIO4 mcp; [6] GPIO1 function 1; [7] GPIO2 function 1;
  1163. [8] GPIO3 function 1; [9] GPIO4 function 1; [10] PCIE glue/PXP VPD event
  1164. function0; [11] PCIE glue/PXP VPD event function1; [12] PCIE glue/PXP
  1165. Expansion ROM event0; [13] PCIE glue/PXP Expansion ROM event1; [14]
  1166. SPIO4; [15] SPIO5; [16] MSI/X indication for mcp; [17] MSI/X indication
  1167. for function 1; [18] BRB Parity error; [19] BRB Hw interrupt; [20] PRS
  1168. Parity error; [21] PRS Hw interrupt; [22] SRC Parity error; [23] SRC Hw
  1169. interrupt; [24] TSDM Parity error; [25] TSDM Hw interrupt; [26] TCM
  1170. Parity error; [27] TCM Hw interrupt; [28] TSEMI Parity error; [29] TSEMI
  1171. Hw interrupt; [30] PBF Parity error; [31] PBF Hw interrupt; */
  1172. #define MISC_REG_AEU_INVERTER_1_FUNC_0 0xa22c
  1173. #define MISC_REG_AEU_INVERTER_1_FUNC_1 0xa23c
  1174. /* [RW 32] second 32b for inverting the input for function 0; for each bit:
  1175. 0= do not invert; 1= invert. mapped as follows: [0] PBClient Parity
  1176. error; [1] PBClient Hw interrupt; [2] QM Parity error; [3] QM Hw
  1177. interrupt; [4] Timers Parity error; [5] Timers Hw interrupt; [6] XSDM
  1178. Parity error; [7] XSDM Hw interrupt; [8] XCM Parity error; [9] XCM Hw
  1179. interrupt; [10] XSEMI Parity error; [11] XSEMI Hw interrupt; [12]
  1180. DoorbellQ Parity error; [13] DoorbellQ Hw interrupt; [14] NIG Parity
  1181. error; [15] NIG Hw interrupt; [16] Vaux PCI core Parity error; [17] Vaux
  1182. PCI core Hw interrupt; [18] Debug Parity error; [19] Debug Hw interrupt;
  1183. [20] USDM Parity error; [21] USDM Hw interrupt; [22] UCM Parity error;
  1184. [23] UCM Hw interrupt; [24] USEMI Parity error; [25] USEMI Hw interrupt;
  1185. [26] UPB Parity error; [27] UPB Hw interrupt; [28] CSDM Parity error;
  1186. [29] CSDM Hw interrupt; [30] CCM Parity error; [31] CCM Hw interrupt; */
  1187. #define MISC_REG_AEU_INVERTER_2_FUNC_0 0xa230
  1188. #define MISC_REG_AEU_INVERTER_2_FUNC_1 0xa240
  1189. /* [RW 10] [7:0] = mask 8 attention output signals toward IGU function0;
  1190. [9:8] = mask close the gates signals of function 0 toward PXP [8] and NIG
  1191. [9]. Zero = mask; one = unmask */
  1192. #define MISC_REG_AEU_MASK_ATTN_FUNC_0 0xa060
  1193. #define MISC_REG_AEU_MASK_ATTN_FUNC_1 0xa064
  1194. /* [R 4] This field indicates the type of the device. '0' - 2 Ports; '1' - 1
  1195. Port. */
  1196. #define MISC_REG_BOND_ID 0xa400
  1197. /* [R 8] These bits indicate the metal revision of the chip. This value
  1198. starts at 0x00 for each all-layer tape-out and increments by one for each
  1199. tape-out. */
  1200. #define MISC_REG_CHIP_METAL 0xa404
  1201. /* [R 16] These bits indicate the part number for the chip. */
  1202. #define MISC_REG_CHIP_NUM 0xa408
  1203. /* [R 4] These bits indicate the base revision of the chip. This value
  1204. starts at 0x0 for the A0 tape-out and increments by one for each
  1205. all-layer tape-out. */
  1206. #define MISC_REG_CHIP_REV 0xa40c
  1207. /* [RW 32] The following driver registers(1..6) represent 6 drivers and 32
  1208. clients. Each client can be controlled by one driver only. One in each
  1209. bit represent that this driver control the appropriate client (Ex: bit 5
  1210. is set means this driver control client number 5). addr1 = set; addr0 =
  1211. clear; read from both addresses will give the same result = status. write
  1212. to address 1 will set a request to control all the clients that their
  1213. appropriate bit (in the write command) is set. if the client is free (the
  1214. appropriate bit in all the other drivers is clear) one will be written to
  1215. that driver register; if the client isn't free the bit will remain zero.
  1216. if the appropriate bit is set (the driver request to gain control on a
  1217. client it already controls the ~MISC_REGISTERS_INT_STS.GENERIC_SW
  1218. interrupt will be asserted). write to address 0 will set a request to
  1219. free all the clients that their appropriate bit (in the write command) is
  1220. set. if the appropriate bit is clear (the driver request to free a client
  1221. it doesn't controls the ~MISC_REGISTERS_INT_STS.GENERIC_SW interrupt will
  1222. be asserted). */
  1223. #define MISC_REG_DRIVER_CONTROL_1 0xa510
  1224. /* [RW 32] GPIO. [31-28] FLOAT port 0; [27-24] FLOAT port 0; When any of
  1225. these bits is written as a '1'; the corresponding SPIO bit will turn off
  1226. it's drivers and become an input. This is the reset state of all GPIO
  1227. pins. The read value of these bits will be a '1' if that last command
  1228. (#SET; #CLR; or #FLOAT) for this bit was a #FLOAT. (reset value 0xff).
  1229. [23-20] CLR port 1; 19-16] CLR port 0; When any of these bits is written
  1230. as a '1'; the corresponding GPIO bit will drive low. The read value of
  1231. these bits will be a '1' if that last command (#SET; #CLR; or #FLOAT) for
  1232. this bit was a #CLR. (reset value 0). [15-12] SET port 1; 11-8] port 0;
  1233. SET When any of these bits is written as a '1'; the corresponding GPIO
  1234. bit will drive high (if it has that capability). The read value of these
  1235. bits will be a '1' if that last command (#SET; #CLR; or #FLOAT) for this
  1236. bit was a #SET. (reset value 0). [7-4] VALUE port 1; [3-0] VALUE port 0;
  1237. RO; These bits indicate the read value of each of the eight GPIO pins.
  1238. This is the result value of the pin; not the drive value. Writing these
  1239. bits will have not effect. */
  1240. #define MISC_REG_GPIO 0xa490
  1241. /* [RW 1] Setting this bit enables a timer in the GRC block to timeout any
  1242. access that does not finish within
  1243. ~misc_registers_grc_timout_val.grc_timeout_val cycles. When this bit is
  1244. cleared; this timeout is disabled. If this timeout occurs; the GRC shall
  1245. assert it attention output. */
  1246. #define MISC_REG_GRC_TIMEOUT_EN 0xa280
  1247. /* [RW 28] 28 LSB of LCPLL first register; reset val = 521. inside order of
  1248. the bits is: [2:0] OAC reset value 001) CML output buffer bias control;
  1249. 111 for +40%; 011 for +20%; 001 for 0%; 000 for -20%. [5:3] Icp_ctrl
  1250. (reset value 001) Charge pump current control; 111 for 720u; 011 for
  1251. 600u; 001 for 480u and 000 for 360u. [7:6] Bias_ctrl (reset value 00)
  1252. Global bias control; When bit 7 is high bias current will be 10 0gh; When
  1253. bit 6 is high bias will be 100w; Valid values are 00; 10; 01. [10:8]
  1254. Pll_observe (reset value 010) Bits to control observability. bit 10 is
  1255. for test bias; bit 9 is for test CK; bit 8 is test Vc. [12:11] Vth_ctrl
  1256. (reset value 00) Comparator threshold control. 00 for 0.6V; 01 for 0.54V
  1257. and 10 for 0.66V. [13] pllSeqStart (reset value 0) Enables VCO tuning
  1258. sequencer: 1= sequencer disabled; 0= sequencer enabled (inverted
  1259. internally). [14] reserved (reset value 0) Reset for VCO sequencer is
  1260. connected to RESET input directly. [15] capRetry_en (reset value 0)
  1261. enable retry on cap search failure (inverted). [16] freqMonitor_e (reset
  1262. value 0) bit to continuously monitor vco freq (inverted). [17]
  1263. freqDetRestart_en (reset value 0) bit to enable restart when not freq
  1264. locked (inverted). [18] freqDetRetry_en (reset value 0) bit to enable
  1265. retry on freq det failure(inverted). [19] pllForceFdone_en (reset value
  1266. 0) bit to enable pllForceFdone & pllForceFpass into pllSeq. [20]
  1267. pllForceFdone (reset value 0) bit to force freqDone. [21] pllForceFpass
  1268. (reset value 0) bit to force freqPass. [22] pllForceDone_en (reset value
  1269. 0) bit to enable pllForceCapDone. [23] pllForceCapDone (reset value 0)
  1270. bit to force capDone. [24] pllForceCapPass_en (reset value 0) bit to
  1271. enable pllForceCapPass. [25] pllForceCapPass (reset value 0) bit to force
  1272. capPass. [26] capRestart (reset value 0) bit to force cap sequencer to
  1273. restart. [27] capSelectM_en (reset value 0) bit to enable cap select
  1274. register bits. */
  1275. #define MISC_REG_LCPLL_CTRL_1 0xa2a4
  1276. #define MISC_REG_LCPLL_CTRL_REG_2 0xa2a8
  1277. /* [RW 4] Interrupt mask register #0 read/write */
  1278. #define MISC_REG_MISC_INT_MASK 0xa388
  1279. /* [RW 1] Parity mask register #0 read/write */
  1280. #define MISC_REG_MISC_PRTY_MASK 0xa398
  1281. /* [R 1] Parity register #0 read */
  1282. #define MISC_REG_MISC_PRTY_STS 0xa38c
  1283. /* [RW 32] 32 LSB of storm PLL first register; reset val = 0x 071d2911.
  1284. inside order of the bits is: [0] P1 divider[0] (reset value 1); [1] P1
  1285. divider[1] (reset value 0); [2] P1 divider[2] (reset value 0); [3] P1
  1286. divider[3] (reset value 0); [4] P2 divider[0] (reset value 1); [5] P2
  1287. divider[1] (reset value 0); [6] P2 divider[2] (reset value 0); [7] P2
  1288. divider[3] (reset value 0); [8] ph_det_dis (reset value 1); [9]
  1289. freq_det_dis (reset value 0); [10] Icpx[0] (reset value 0); [11] Icpx[1]
  1290. (reset value 1); [12] Icpx[2] (reset value 0); [13] Icpx[3] (reset value
  1291. 1); [14] Icpx[4] (reset value 0); [15] Icpx[5] (reset value 0); [16]
  1292. Rx[0] (reset value 1); [17] Rx[1] (reset value 0); [18] vc_en (reset
  1293. value 1); [19] vco_rng[0] (reset value 1); [20] vco_rng[1] (reset value
  1294. 1); [21] Kvco_xf[0] (reset value 0); [22] Kvco_xf[1] (reset value 0);
  1295. [23] Kvco_xf[2] (reset value 0); [24] Kvco_xs[0] (reset value 1); [25]
  1296. Kvco_xs[1] (reset value 1); [26] Kvco_xs[2] (reset value 1); [27]
  1297. testd_en (reset value 0); [28] testd_sel[0] (reset value 0); [29]
  1298. testd_sel[1] (reset value 0); [30] testd_sel[2] (reset value 0); [31]
  1299. testa_en (reset value 0); */
  1300. #define MISC_REG_PLL_STORM_CTRL_1 0xa294
  1301. #define MISC_REG_PLL_STORM_CTRL_2 0xa298
  1302. #define MISC_REG_PLL_STORM_CTRL_3 0xa29c
  1303. #define MISC_REG_PLL_STORM_CTRL_4 0xa2a0
  1304. /* [RW 32] reset reg#1; rite/read one = the specific block is out of reset;
  1305. write/read zero = the specific block is in reset; addr 0-wr- the write
  1306. value will be written to the register; addr 1-set - one will be written
  1307. to all the bits that have the value of one in the data written (bits that
  1308. have the value of zero will not be change) ; addr 2-clear - zero will be
  1309. written to all the bits that have the value of one in the data written
  1310. (bits that have the value of zero will not be change); addr 3-ignore;
  1311. read ignore from all addr except addr 00; inside order of the bits is:
  1312. [0] rst_brb1; [1] rst_prs; [2] rst_src; [3] rst_tsdm; [4] rst_tsem; [5]
  1313. rst_tcm; [6] rst_rbcr; [7] rst_nig; [8] rst_usdm; [9] rst_ucm; [10]
  1314. rst_usem; [11] rst_upb; [12] rst_ccm; [13] rst_csem; [14] rst_csdm; [15]
  1315. rst_rbcu; [16] rst_pbf; [17] rst_qm; [18] rst_tm; [19] rst_dorq; [20]
  1316. rst_xcm; [21] rst_xsdm; [22] rst_xsem; [23] rst_rbct; [24] rst_cdu; [25]
  1317. rst_cfc; [26] rst_pxp; [27] rst_pxpv; [28] rst_rbcp; [29] rst_hc; [30]
  1318. rst_dmae; [31] rst_semi_rtc; */
  1319. #define MISC_REG_RESET_REG_1 0xa580
  1320. #define MISC_REG_RESET_REG_2 0xa590
  1321. /* [RW 20] 20 bit GRC address where the scratch-pad of the MCP that is
  1322. shared with the driver resides */
  1323. #define MISC_REG_SHARED_MEM_ADDR 0xa2b4
  1324. /* [RW 32] SPIO. [31-24] FLOAT When any of these bits is written as a '1';
  1325. the corresponding SPIO bit will turn off it's drivers and become an
  1326. input. This is the reset state of all SPIO pins. The read value of these
  1327. bits will be a '1' if that last command (#SET; #CL; or #FLOAT) for this
  1328. bit was a #FLOAT. (reset value 0xff). [23-16] CLR When any of these bits
  1329. is written as a '1'; the corresponding SPIO bit will drive low. The read
  1330. value of these bits will be a '1' if that last command (#SET; #CLR; or
  1331. #FLOAT) for this bit was a #CLR. (reset value 0). [15-8] SET When any of
  1332. these bits is written as a '1'; the corresponding SPIO bit will drive
  1333. high (if it has that capability). The read value of these bits will be a
  1334. '1' if that last command (#SET; #CLR; or #FLOAT) for this bit was a #SET.
  1335. (reset value 0). [7-0] VALUE RO; These bits indicate the read value of
  1336. each of the eight SPIO pins. This is the result value of the pin; not the
  1337. drive value. Writing these bits will have not effect. Each 8 bits field
  1338. is divided as follows: [0] VAUX Enable; when pulsed low; enables supply
  1339. from VAUX. (This is an output pin only; the FLOAT field is not applicable
  1340. for this pin); [1] VAUX Disable; when pulsed low; disables supply form
  1341. VAUX. (This is an output pin only; FLOAT field is not applicable for this
  1342. pin); [2] SEL_VAUX_B - Control to power switching logic. Drive low to
  1343. select VAUX supply. (This is an output pin only; it is not controlled by
  1344. the SET and CLR fields; it is controlled by the Main Power SM; the FLOAT
  1345. field is not applicable for this pin; only the VALUE fields is relevant -
  1346. it reflects the output value); [3] reserved; [4] spio_4; [5] spio_5; [6]
  1347. Bit 0 of UMP device ID select; read by UMP firmware; [7] Bit 1 of UMP
  1348. device ID select; read by UMP firmware. */
  1349. #define MISC_REG_SPIO 0xa4fc
  1350. /* [RW 8] These bits enable the SPIO_INTs to signals event to the IGU/MC.
  1351. according to the following map: [3:0] reserved; [4] spio_4 [5] spio_5;
  1352. [7:0] reserved */
  1353. #define MISC_REG_SPIO_EVENT_EN 0xa2b8
  1354. /* [RW 32] SPIO INT. [31-24] OLD_CLR Writing a '1' to these bit clears the
  1355. corresponding bit in the #OLD_VALUE register. This will acknowledge an
  1356. interrupt on the falling edge of corresponding SPIO input (reset value
  1357. 0). [23-16] OLD_SET Writing a '1' to these bit sets the corresponding bit
  1358. in the #OLD_VALUE register. This will acknowledge an interrupt on the
  1359. rising edge of corresponding SPIO input (reset value 0). [15-8] OLD_VALUE
  1360. RO; These bits indicate the old value of the SPIO input value. When the
  1361. ~INT_STATE bit is set; this bit indicates the OLD value of the pin such
  1362. that if ~INT_STATE is set and this bit is '0'; then the interrupt is due
  1363. to a low to high edge. If ~INT_STATE is set and this bit is '1'; then the
  1364. interrupt is due to a high to low edge (reset value 0). [7-0] INT_STATE
  1365. RO; These bits indicate the current SPIO interrupt state for each SPIO
  1366. pin. This bit is cleared when the appropriate #OLD_SET or #OLD_CLR
  1367. command bit is written. This bit is set when the SPIO input does not
  1368. match the current value in #OLD_VALUE (reset value 0). */
  1369. #define MISC_REG_SPIO_INT 0xa500
  1370. /* [RW 1] Set by the MCP to remember if one or more of the drivers is/are
  1371. loaded; 0-prepare; -unprepare */
  1372. #define MISC_REG_UNPREPARED 0xa424
  1373. #define NIG_MASK_INTERRUPT_PORT0_REG_MASK_EMAC0_MISC_MI_INT (0x1<<0)
  1374. #define NIG_MASK_INTERRUPT_PORT0_REG_MASK_SERDES0_LINK_STATUS (0x1<<9)
  1375. #define NIG_MASK_INTERRUPT_PORT0_REG_MASK_XGXS0_LINK10G (0x1<<15)
  1376. #define NIG_MASK_INTERRUPT_PORT0_REG_MASK_XGXS0_LINK_STATUS (0xf<<18)
  1377. /* [RW 1] Input enable for RX_BMAC0 IF */
  1378. #define NIG_REG_BMAC0_IN_EN 0x100ac
  1379. /* [RW 1] output enable for TX_BMAC0 IF */
  1380. #define NIG_REG_BMAC0_OUT_EN 0x100e0
  1381. /* [RW 1] output enable for TX BMAC pause port 0 IF */
  1382. #define NIG_REG_BMAC0_PAUSE_OUT_EN 0x10110
  1383. /* [RW 1] output enable for RX_BMAC0_REGS IF */
  1384. #define NIG_REG_BMAC0_REGS_OUT_EN 0x100e8
  1385. /* [RW 1] output enable for RX BRB1 port0 IF */
  1386. #define NIG_REG_BRB0_OUT_EN 0x100f8
  1387. /* [RW 1] Input enable for TX BRB1 pause port 0 IF */
  1388. #define NIG_REG_BRB0_PAUSE_IN_EN 0x100c4
  1389. /* [RW 1] output enable for RX BRB1 port1 IF */
  1390. #define NIG_REG_BRB1_OUT_EN 0x100fc
  1391. /* [RW 1] Input enable for TX BRB1 pause port 1 IF */
  1392. #define NIG_REG_BRB1_PAUSE_IN_EN 0x100c8
  1393. /* [RW 1] output enable for RX BRB1 LP IF */
  1394. #define NIG_REG_BRB_LB_OUT_EN 0x10100
  1395. /* [WB_W 72] Debug packet to LP from RBC; Data spelling:[63:0] data; 64]
  1396. error; [67:65]eop_bvalid; [68]eop; [69]sop; [70]port_id; 71]flush */
  1397. #define NIG_REG_DEBUG_PACKET_LB 0x10800
  1398. /* [RW 1] Input enable for TX Debug packet */
  1399. #define NIG_REG_EGRESS_DEBUG_IN_EN 0x100dc
  1400. /* [RW 1] If 1 - egress drain mode for port0 is active. In this mode all
  1401. packets from PBFare not forwarded to the MAC and just deleted from FIFO.
  1402. First packet may be deleted from the middle. And last packet will be
  1403. always deleted till the end. */
  1404. #define NIG_REG_EGRESS_DRAIN0_MODE 0x10060
  1405. /* [RW 1] Output enable to EMAC0 */
  1406. #define NIG_REG_EGRESS_EMAC0_OUT_EN 0x10120
  1407. /* [RW 1] MAC configuration for packets of port0. If 1 - all packet outputs
  1408. to emac for port0; other way to bmac for port0 */
  1409. #define NIG_REG_EGRESS_EMAC0_PORT 0x10058
  1410. /* [RW 1] Input enable for TX PBF user packet port0 IF */
  1411. #define NIG_REG_EGRESS_PBF0_IN_EN 0x100cc
  1412. /* [RW 1] Input enable for TX PBF user packet port1 IF */
  1413. #define NIG_REG_EGRESS_PBF1_IN_EN 0x100d0
  1414. /* [RW 1] Input enable for RX_EMAC0 IF */
  1415. #define NIG_REG_EMAC0_IN_EN 0x100a4
  1416. /* [RW 1] output enable for TX EMAC pause port 0 IF */
  1417. #define NIG_REG_EMAC0_PAUSE_OUT_EN 0x10118
  1418. /* [R 1] status from emac0. This bit is set when MDINT from either the
  1419. EXT_MDINT pin or from the Copper PHY is driven low. This condition must
  1420. be cleared in the attached PHY device that is driving the MINT pin. */
  1421. #define NIG_REG_EMAC0_STATUS_MISC_MI_INT 0x10494
  1422. /* [WB 48] This address space contains BMAC0 registers. The BMAC registers
  1423. are described in appendix A. In order to access the BMAC0 registers; the
  1424. base address; NIG_REGISTERS_INGRESS_BMAC0_MEM; Offset: 0x10c00; should be
  1425. added to each BMAC register offset */
  1426. #define NIG_REG_INGRESS_BMAC0_MEM 0x10c00
  1427. /* [WB 48] This address space contains BMAC1 registers. The BMAC registers
  1428. are described in appendix A. In order to access the BMAC0 registers; the
  1429. base address; NIG_REGISTERS_INGRESS_BMAC1_MEM; Offset: 0x11000; should be
  1430. added to each BMAC register offset */
  1431. #define NIG_REG_INGRESS_BMAC1_MEM 0x11000
  1432. /* [R 1] FIFO empty in EOP descriptor FIFO of LP in NIG_RX_EOP */
  1433. #define NIG_REG_INGRESS_EOP_LB_EMPTY 0x104e0
  1434. /* [RW 17] Debug only. RX_EOP_DSCR_lb_FIFO in NIG_RX_EOP. Data
  1435. packet_length[13:0]; mac_error[14]; trunc_error[15]; parity[16] */
  1436. #define NIG_REG_INGRESS_EOP_LB_FIFO 0x104e4
  1437. /* [RW 1] led 10g for port 0 */
  1438. #define NIG_REG_LED_10G_P0 0x10320
  1439. /* [RW 1] Port0: This bit is set to enable the use of the
  1440. ~nig_registers_led_control_blink_rate_p0.led_control_blink_rate_p0 field
  1441. defined below. If this bit is cleared; then the blink rate will be about
  1442. 8Hz. */
  1443. #define NIG_REG_LED_CONTROL_BLINK_RATE_ENA_P0 0x10318
  1444. /* [RW 12] Port0: Specifies the period of each blink cycle (on + off) for
  1445. Traffic LED in milliseconds. Must be a non-zero value. This 12-bit field
  1446. is reset to 0x080; giving a default blink period of approximately 8Hz. */
  1447. #define NIG_REG_LED_CONTROL_BLINK_RATE_P0 0x10310
  1448. /* [RW 1] Port0: If set along with the
  1449. nig_registers_led_control_override_traffic_p0.led_control_override_traffic_p0
  1450. bit and ~nig_registers_led_control_traffic_p0.led_control_traffic_p0 LED
  1451. bit; the Traffic LED will blink with the blink rate specified in
  1452. ~nig_registers_led_control_blink_rate_p0.led_control_blink_rate_p0 and
  1453. ~nig_registers_led_control_blink_rate_ena_p0.led_control_blink_rate_ena_p0
  1454. fields. */
  1455. #define NIG_REG_LED_CONTROL_BLINK_TRAFFIC_P0 0x10308
  1456. /* [RW 1] Port0: If set overrides hardware control of the Traffic LED. The
  1457. Traffic LED will then be controlled via bit ~nig_registers_
  1458. led_control_traffic_p0.led_control_traffic_p0 and bit
  1459. ~nig_registers_led_control_blink_traffic_p0.led_control_blink_traffic_p0 */
  1460. #define NIG_REG_LED_CONTROL_OVERRIDE_TRAFFIC_P0 0x102f8
  1461. /* [RW 1] Port0: If set along with the led_control_override_trafic_p0 bit;
  1462. turns on the Traffic LED. If the led_control_blink_traffic_p0 bit is also
  1463. set; the LED will blink with blink rate specified in
  1464. ~nig_registers_led_control_blink_rate_p0.led_control_blink_rate_p0 and
  1465. ~nig_regsters_led_control_blink_rate_ena_p0.led_control_blink_rate_ena_p0
  1466. fields. */
  1467. #define NIG_REG_LED_CONTROL_TRAFFIC_P0 0x10300
  1468. /* [RW 4] led mode for port0: 0 MAC; 1-3 PHY1; 4 MAC2; 5-7 PHY4; 8-MAC3;
  1469. 9-11PHY7; 12 MAC4; 13-15 PHY10; */
  1470. #define NIG_REG_LED_MODE_P0 0x102f0
  1471. #define NIG_REG_LLH0_BRB1_DRV_MASK 0x10244
  1472. /* [RW 1] send to BRB1 if no match on any of RMP rules. */
  1473. #define NIG_REG_LLH0_BRB1_NOT_MCP 0x1025c
  1474. /* [RW 32] cm header for llh0 */
  1475. #define NIG_REG_LLH0_CM_HEADER 0x1007c
  1476. #define NIG_REG_LLH0_ERROR_MASK 0x1008c
  1477. /* [RW 8] event id for llh0 */
  1478. #define NIG_REG_LLH0_EVENT_ID 0x10084
  1479. /* [RW 8] init credit counter for port0 in LLH */
  1480. #define NIG_REG_LLH0_XCM_INIT_CREDIT 0x10554
  1481. #define NIG_REG_LLH0_XCM_MASK 0x10130
  1482. /* [RW 1] send to BRB1 if no match on any of RMP rules. */
  1483. #define NIG_REG_LLH1_BRB1_NOT_MCP 0x102dc
  1484. /* [RW 32] cm header for llh1 */
  1485. #define NIG_REG_LLH1_CM_HEADER 0x10080
  1486. #define NIG_REG_LLH1_ERROR_MASK 0x10090
  1487. /* [RW 8] event id for llh1 */
  1488. #define NIG_REG_LLH1_EVENT_ID 0x10088
  1489. /* [RW 8] init credit counter for port1 in LLH */
  1490. #define NIG_REG_LLH1_XCM_INIT_CREDIT 0x10564
  1491. #define NIG_REG_LLH1_XCM_MASK 0x10134
  1492. #define NIG_REG_MASK_INTERRUPT_PORT0 0x10330
  1493. #define NIG_REG_MASK_INTERRUPT_PORT1 0x10334
  1494. /* [RW 1] Output signal from NIG to EMAC0. When set enables the EMAC0 block. */
  1495. #define NIG_REG_NIG_EMAC0_EN 0x1003c
  1496. /* [RW 1] Output signal from NIG to TX_EMAC0. When set indicates to the
  1497. EMAC0 to strip the CRC from the ingress packets. */
  1498. #define NIG_REG_NIG_INGRESS_EMAC0_NO_CRC 0x10044
  1499. /* [RW 1] Input enable for RX PBF LP IF */
  1500. #define NIG_REG_PBF_LB_IN_EN 0x100b4
  1501. /* [RW 1] Value of this register will be transmitted to port swap when
  1502. ~nig_registers_strap_override.strap_override =1 */
  1503. #define NIG_REG_PORT_SWAP 0x10394
  1504. /* [RW 1] output enable for RX parser descriptor IF */
  1505. #define NIG_REG_PRS_EOP_OUT_EN 0x10104
  1506. /* [RW 1] Input enable for RX parser request IF */
  1507. #define NIG_REG_PRS_REQ_IN_EN 0x100b8
  1508. /* [RW 5] control to serdes - CL22 PHY_ADD and CL45 PRTAD */
  1509. #define NIG_REG_SERDES0_CTRL_PHY_ADDR 0x10374
  1510. /* [R 1] status from serdes0 that inputs to interrupt logic of link status */
  1511. #define NIG_REG_SERDES0_STATUS_LINK_STATUS 0x10578
  1512. /* [R 32] Rx statistics : In user packets discarded due to BRB backpressure
  1513. for port0 */
  1514. #define NIG_REG_STAT0_BRB_DISCARD 0x105f0
  1515. /* [R 32] Rx statistics : In user packets discarded due to BRB backpressure
  1516. for port1 */
  1517. #define NIG_REG_STAT1_BRB_DISCARD 0x10628
  1518. /* [WB_R 64] Rx statistics : User octets received for LP */
  1519. #define NIG_REG_STAT2_BRB_OCTET 0x107e0
  1520. #define NIG_REG_STATUS_INTERRUPT_PORT0 0x10328
  1521. #define NIG_REG_STATUS_INTERRUPT_PORT1 0x1032c
  1522. /* [RW 1] port swap mux selection. If this register equal to 0 then port
  1523. swap is equal to SPIO pin that inputs from ifmux_serdes_swap. If 1 then
  1524. ort swap is equal to ~nig_registers_port_swap.port_swap */
  1525. #define NIG_REG_STRAP_OVERRIDE 0x10398
  1526. /* [RW 1] output enable for RX_XCM0 IF */
  1527. #define NIG_REG_XCM0_OUT_EN 0x100f0
  1528. /* [RW 1] output enable for RX_XCM1 IF */
  1529. #define NIG_REG_XCM1_OUT_EN 0x100f4
  1530. /* [RW 5] control to xgxs - CL45 DEVAD */
  1531. #define NIG_REG_XGXS0_CTRL_MD_DEVAD 0x1033c
  1532. /* [RW 5] control to xgxs - CL22 PHY_ADD and CL45 PRTAD */
  1533. #define NIG_REG_XGXS0_CTRL_PHY_ADDR 0x10340
  1534. /* [R 1] status from xgxs0 that inputs to interrupt logic of link10g. */
  1535. #define NIG_REG_XGXS0_STATUS_LINK10G 0x10680
  1536. /* [R 4] status from xgxs0 that inputs to interrupt logic of link status */
  1537. #define NIG_REG_XGXS0_STATUS_LINK_STATUS 0x10684
  1538. /* [RW 2] selection for XGXS lane of port 0 in NIG_MUX block */
  1539. #define NIG_REG_XGXS_LANE_SEL_P0 0x102e8
  1540. /* [RW 1] selection for port0 for NIG_MUX block : 0 = SerDes; 1 = XGXS */
  1541. #define NIG_REG_XGXS_SERDES0_MODE_SEL 0x102e0
  1542. #define NIG_STATUS_INTERRUPT_PORT0_REG_STATUS_SERDES0_LINK_STATUS (0x1<<9)
  1543. #define NIG_STATUS_INTERRUPT_PORT0_REG_STATUS_XGXS0_LINK10G (0x1<<15)
  1544. #define NIG_STATUS_INTERRUPT_PORT0_REG_STATUS_XGXS0_LINK_STATUS (0xf<<18)
  1545. #define NIG_STATUS_INTERRUPT_PORT0_REG_STATUS_XGXS0_LINK_STATUS_SIZE 18
  1546. /* [RW 1] Disable processing further tasks from port 0 (after ending the
  1547. current task in process). */
  1548. #define PBF_REG_DISABLE_NEW_TASK_PROC_P0 0x14005c
  1549. /* [RW 1] Disable processing further tasks from port 1 (after ending the
  1550. current task in process). */
  1551. #define PBF_REG_DISABLE_NEW_TASK_PROC_P1 0x140060
  1552. /* [RW 1] Disable processing further tasks from port 4 (after ending the
  1553. current task in process). */
  1554. #define PBF_REG_DISABLE_NEW_TASK_PROC_P4 0x14006c
  1555. #define PBF_REG_IF_ENABLE_REG 0x140044
  1556. /* [RW 1] Init bit. When set the initial credits are copied to the credit
  1557. registers (except the port credits). Should be set and then reset after
  1558. the configuration of the block has ended. */
  1559. #define PBF_REG_INIT 0x140000
  1560. /* [RW 1] Init bit for port 0. When set the initial credit of port 0 is
  1561. copied to the credit register. Should be set and then reset after the
  1562. configuration of the port has ended. */
  1563. #define PBF_REG_INIT_P0 0x140004
  1564. /* [RW 1] Init bit for port 1. When set the initial credit of port 1 is
  1565. copied to the credit register. Should be set and then reset after the
  1566. configuration of the port has ended. */
  1567. #define PBF_REG_INIT_P1 0x140008
  1568. /* [RW 1] Init bit for port 4. When set the initial credit of port 4 is
  1569. copied to the credit register. Should be set and then reset after the
  1570. configuration of the port has ended. */
  1571. #define PBF_REG_INIT_P4 0x14000c
  1572. /* [RW 1] Enable for mac interface 0. */
  1573. #define PBF_REG_MAC_IF0_ENABLE 0x140030
  1574. /* [RW 1] Enable for mac interface 1. */
  1575. #define PBF_REG_MAC_IF1_ENABLE 0x140034
  1576. /* [RW 1] Enable for the loopback interface. */
  1577. #define PBF_REG_MAC_LB_ENABLE 0x140040
  1578. /* [RW 10] Port 0 threshold used by arbiter in 16 byte lines used when pause
  1579. not suppoterd. */
  1580. #define PBF_REG_P0_ARB_THRSH 0x1400e4
  1581. /* [R 11] Current credit for port 0 in the tx port buffers in 16 byte lines. */
  1582. #define PBF_REG_P0_CREDIT 0x140200
  1583. /* [RW 11] Initial credit for port 0 in the tx port buffers in 16 byte
  1584. lines. */
  1585. #define PBF_REG_P0_INIT_CRD 0x1400d0
  1586. /* [RW 1] Indication that pause is enabled for port 0. */
  1587. #define PBF_REG_P0_PAUSE_ENABLE 0x140014
  1588. /* [R 8] Number of tasks in port 0 task queue. */
  1589. #define PBF_REG_P0_TASK_CNT 0x140204
  1590. /* [R 11] Current credit for port 1 in the tx port buffers in 16 byte lines. */
  1591. #define PBF_REG_P1_CREDIT 0x140208
  1592. /* [RW 11] Initial credit for port 1 in the tx port buffers in 16 byte
  1593. lines. */
  1594. #define PBF_REG_P1_INIT_CRD 0x1400d4
  1595. /* [R 8] Number of tasks in port 1 task queue. */
  1596. #define PBF_REG_P1_TASK_CNT 0x14020c
  1597. /* [R 11] Current credit for port 4 in the tx port buffers in 16 byte lines. */
  1598. #define PBF_REG_P4_CREDIT 0x140210
  1599. /* [RW 11] Initial credit for port 4 in the tx port buffers in 16 byte
  1600. lines. */
  1601. #define PBF_REG_P4_INIT_CRD 0x1400e0
  1602. /* [R 8] Number of tasks in port 4 task queue. */
  1603. #define PBF_REG_P4_TASK_CNT 0x140214
  1604. /* [RW 5] Interrupt mask register #0 read/write */
  1605. #define PBF_REG_PBF_INT_MASK 0x1401d4
  1606. /* [R 5] Interrupt register #0 read */
  1607. #define PBF_REG_PBF_INT_STS 0x1401c8
  1608. #define PB_REG_CONTROL 0
  1609. /* [RW 2] Interrupt mask register #0 read/write */
  1610. #define PB_REG_PB_INT_MASK 0x28
  1611. /* [R 2] Interrupt register #0 read */
  1612. #define PB_REG_PB_INT_STS 0x1c
  1613. /* [RW 4] Parity mask register #0 read/write */
  1614. #define PB_REG_PB_PRTY_MASK 0x38
  1615. /* [R 4] Parity register #0 read */
  1616. #define PB_REG_PB_PRTY_STS 0x2c
  1617. #define PRS_REG_A_PRSU_20 0x40134
  1618. /* [R 8] debug only: CFC load request current credit. Transaction based. */
  1619. #define PRS_REG_CFC_LD_CURRENT_CREDIT 0x40164
  1620. /* [R 8] debug only: CFC search request current credit. Transaction based. */
  1621. #define PRS_REG_CFC_SEARCH_CURRENT_CREDIT 0x40168
  1622. /* [RW 6] The initial credit for the search message to the CFC interface.
  1623. Credit is transaction based. */
  1624. #define PRS_REG_CFC_SEARCH_INITIAL_CREDIT 0x4011c
  1625. /* [RW 24] CID for port 0 if no match */
  1626. #define PRS_REG_CID_PORT_0 0x400fc
  1627. #define PRS_REG_CID_PORT_1 0x40100
  1628. /* [RW 32] The CM header for flush message where 'load existed' bit in CFC
  1629. load response is reset and packet type is 0. Used in packet start message
  1630. to TCM. */
  1631. #define PRS_REG_CM_HDR_FLUSH_LOAD_TYPE_0 0x400dc
  1632. #define PRS_REG_CM_HDR_FLUSH_LOAD_TYPE_1 0x400e0
  1633. #define PRS_REG_CM_HDR_FLUSH_LOAD_TYPE_2 0x400e4
  1634. #define PRS_REG_CM_HDR_FLUSH_LOAD_TYPE_3 0x400e8
  1635. #define PRS_REG_CM_HDR_FLUSH_LOAD_TYPE_4 0x400ec
  1636. /* [RW 32] The CM header for flush message where 'load existed' bit in CFC
  1637. load response is set and packet type is 0. Used in packet start message
  1638. to TCM. */
  1639. #define PRS_REG_CM_HDR_FLUSH_NO_LOAD_TYPE_0 0x400bc
  1640. #define PRS_REG_CM_HDR_FLUSH_NO_LOAD_TYPE_1 0x400c0
  1641. #define PRS_REG_CM_HDR_FLUSH_NO_LOAD_TYPE_2 0x400c4
  1642. #define PRS_REG_CM_HDR_FLUSH_NO_LOAD_TYPE_3 0x400c8
  1643. #define PRS_REG_CM_HDR_FLUSH_NO_LOAD_TYPE_4 0x400cc
  1644. /* [RW 32] The CM header for a match and packet type 1 for loopback port.
  1645. Used in packet start message to TCM. */
  1646. #define PRS_REG_CM_HDR_LOOPBACK_TYPE_1 0x4009c
  1647. #define PRS_REG_CM_HDR_LOOPBACK_TYPE_2 0x400a0
  1648. #define PRS_REG_CM_HDR_LOOPBACK_TYPE_3 0x400a4
  1649. #define PRS_REG_CM_HDR_LOOPBACK_TYPE_4 0x400a8
  1650. /* [RW 32] The CM header for a match and packet type 0. Used in packet start
  1651. message to TCM. */
  1652. #define PRS_REG_CM_HDR_TYPE_0 0x40078
  1653. #define PRS_REG_CM_HDR_TYPE_1 0x4007c
  1654. #define PRS_REG_CM_HDR_TYPE_2 0x40080
  1655. #define PRS_REG_CM_HDR_TYPE_3 0x40084
  1656. #define PRS_REG_CM_HDR_TYPE_4 0x40088
  1657. /* [RW 32] The CM header in case there was not a match on the connection */
  1658. #define PRS_REG_CM_NO_MATCH_HDR 0x400b8
  1659. /* [RW 8] The 8-bit event ID for a match and packet type 1. Used in packet
  1660. start message to TCM. */
  1661. #define PRS_REG_EVENT_ID_1 0x40054
  1662. #define PRS_REG_EVENT_ID_2 0x40058
  1663. #define PRS_REG_EVENT_ID_3 0x4005c
  1664. /* [RW 8] Context region for flush packet with packet type 0. Used in CFC
  1665. load request message. */
  1666. #define PRS_REG_FLUSH_REGIONS_TYPE_0 0x40004
  1667. #define PRS_REG_FLUSH_REGIONS_TYPE_1 0x40008
  1668. #define PRS_REG_FLUSH_REGIONS_TYPE_2 0x4000c
  1669. #define PRS_REG_FLUSH_REGIONS_TYPE_3 0x40010
  1670. #define PRS_REG_FLUSH_REGIONS_TYPE_4 0x40014
  1671. #define PRS_REG_FLUSH_REGIONS_TYPE_5 0x40018
  1672. #define PRS_REG_FLUSH_REGIONS_TYPE_6 0x4001c
  1673. #define PRS_REG_FLUSH_REGIONS_TYPE_7 0x40020
  1674. /* [RW 4] The increment value to send in the CFC load request message */
  1675. #define PRS_REG_INC_VALUE 0x40048
  1676. /* [RW 1] If set indicates not to send messages to CFC on received packets */
  1677. #define PRS_REG_NIC_MODE 0x40138
  1678. /* [RW 8] The 8-bit event ID for cases where there is no match on the
  1679. connection. Used in packet start message to TCM. */
  1680. #define PRS_REG_NO_MATCH_EVENT_ID 0x40070
  1681. /* [ST 24] The number of input CFC flush packets */
  1682. #define PRS_REG_NUM_OF_CFC_FLUSH_MESSAGES 0x40128
  1683. /* [ST 32] The number of cycles the Parser halted its operation since it
  1684. could not allocate the next serial number */
  1685. #define PRS_REG_NUM_OF_DEAD_CYCLES 0x40130
  1686. /* [ST 24] The number of input packets */
  1687. #define PRS_REG_NUM_OF_PACKETS 0x40124
  1688. /* [ST 24] The number of input transparent flush packets */
  1689. #define PRS_REG_NUM_OF_TRANSPARENT_FLUSH_MESSAGES 0x4012c
  1690. /* [RW 8] Context region for received Ethernet packet with a match and
  1691. packet type 0. Used in CFC load request message */
  1692. #define PRS_REG_PACKET_REGIONS_TYPE_0 0x40028
  1693. #define PRS_REG_PACKET_REGIONS_TYPE_1 0x4002c
  1694. #define PRS_REG_PACKET_REGIONS_TYPE_2 0x40030
  1695. #define PRS_REG_PACKET_REGIONS_TYPE_3 0x40034
  1696. #define PRS_REG_PACKET_REGIONS_TYPE_4 0x40038
  1697. #define PRS_REG_PACKET_REGIONS_TYPE_5 0x4003c
  1698. #define PRS_REG_PACKET_REGIONS_TYPE_6 0x40040
  1699. #define PRS_REG_PACKET_REGIONS_TYPE_7 0x40044
  1700. /* [R 2] debug only: Number of pending requests for CAC on port 0. */
  1701. #define PRS_REG_PENDING_BRB_CAC0_RQ 0x40174
  1702. /* [R 2] debug only: Number of pending requests for header parsing. */
  1703. #define PRS_REG_PENDING_BRB_PRS_RQ 0x40170
  1704. /* [R 1] Interrupt register #0 read */
  1705. #define PRS_REG_PRS_INT_STS 0x40188
  1706. /* [RW 8] Parity mask register #0 read/write */
  1707. #define PRS_REG_PRS_PRTY_MASK 0x401a4
  1708. /* [R 8] Parity register #0 read */
  1709. #define PRS_REG_PRS_PRTY_STS 0x40198
  1710. /* [RW 8] Context region for pure acknowledge packets. Used in CFC load
  1711. request message */
  1712. #define PRS_REG_PURE_REGIONS 0x40024
  1713. /* [R 32] debug only: Serial number status lsb 32 bits. '1' indicates this
  1714. serail number was released by SDM but cannot be used because a previous
  1715. serial number was not released. */
  1716. #define PRS_REG_SERIAL_NUM_STATUS_LSB 0x40154
  1717. /* [R 32] debug only: Serial number status msb 32 bits. '1' indicates this
  1718. serail number was released by SDM but cannot be used because a previous
  1719. serial number was not released. */
  1720. #define PRS_REG_SERIAL_NUM_STATUS_MSB 0x40158
  1721. /* [R 4] debug only: SRC current credit. Transaction based. */
  1722. #define PRS_REG_SRC_CURRENT_CREDIT 0x4016c
  1723. /* [R 8] debug only: TCM current credit. Cycle based. */
  1724. #define PRS_REG_TCM_CURRENT_CREDIT 0x40160
  1725. /* [R 8] debug only: TSDM current credit. Transaction based. */
  1726. #define PRS_REG_TSDM_CURRENT_CREDIT 0x4015c
  1727. /* [R 6] Debug only: Number of used entries in the data FIFO */
  1728. #define PXP2_REG_HST_DATA_FIFO_STATUS 0x12047c
  1729. /* [R 7] Debug only: Number of used entries in the header FIFO */
  1730. #define PXP2_REG_HST_HEADER_FIFO_STATUS 0x120478
  1731. #define PXP2_REG_PGL_CONTROL0 0x120490
  1732. #define PXP2_REG_PGL_CONTROL1 0x120514
  1733. /* [RW 32] Inbound interrupt table for CSDM: bits[31:16]-mask;
  1734. its[15:0]-address */
  1735. #define PXP2_REG_PGL_INT_CSDM_0 0x1204f4
  1736. #define PXP2_REG_PGL_INT_CSDM_1 0x1204f8
  1737. #define PXP2_REG_PGL_INT_CSDM_2 0x1204fc
  1738. #define PXP2_REG_PGL_INT_CSDM_3 0x120500
  1739. #define PXP2_REG_PGL_INT_CSDM_4 0x120504
  1740. #define PXP2_REG_PGL_INT_CSDM_5 0x120508
  1741. #define PXP2_REG_PGL_INT_CSDM_6 0x12050c
  1742. #define PXP2_REG_PGL_INT_CSDM_7 0x120510
  1743. /* [RW 32] Inbound interrupt table for TSDM: bits[31:16]-mask;
  1744. its[15:0]-address */
  1745. #define PXP2_REG_PGL_INT_TSDM_0 0x120494
  1746. #define PXP2_REG_PGL_INT_TSDM_1 0x120498
  1747. #define PXP2_REG_PGL_INT_TSDM_2 0x12049c
  1748. #define PXP2_REG_PGL_INT_TSDM_3 0x1204a0
  1749. #define PXP2_REG_PGL_INT_TSDM_4 0x1204a4
  1750. #define PXP2_REG_PGL_INT_TSDM_5 0x1204a8
  1751. #define PXP2_REG_PGL_INT_TSDM_6 0x1204ac
  1752. #define PXP2_REG_PGL_INT_TSDM_7 0x1204b0
  1753. /* [RW 32] Inbound interrupt table for USDM: bits[31:16]-mask;
  1754. its[15:0]-address */
  1755. #define PXP2_REG_PGL_INT_USDM_0 0x1204b4
  1756. #define PXP2_REG_PGL_INT_USDM_1 0x1204b8
  1757. #define PXP2_REG_PGL_INT_USDM_2 0x1204bc
  1758. #define PXP2_REG_PGL_INT_USDM_3 0x1204c0
  1759. #define PXP2_REG_PGL_INT_USDM_4 0x1204c4
  1760. #define PXP2_REG_PGL_INT_USDM_5 0x1204c8
  1761. #define PXP2_REG_PGL_INT_USDM_6 0x1204cc
  1762. #define PXP2_REG_PGL_INT_USDM_7 0x1204d0
  1763. /* [RW 32] Inbound interrupt table for XSDM: bits[31:16]-mask;
  1764. its[15:0]-address */
  1765. #define PXP2_REG_PGL_INT_XSDM_0 0x1204d4
  1766. #define PXP2_REG_PGL_INT_XSDM_1 0x1204d8
  1767. #define PXP2_REG_PGL_INT_XSDM_2 0x1204dc
  1768. #define PXP2_REG_PGL_INT_XSDM_3 0x1204e0
  1769. #define PXP2_REG_PGL_INT_XSDM_4 0x1204e4
  1770. #define PXP2_REG_PGL_INT_XSDM_5 0x1204e8
  1771. #define PXP2_REG_PGL_INT_XSDM_6 0x1204ec
  1772. #define PXP2_REG_PGL_INT_XSDM_7 0x1204f0
  1773. /* [R 1] this bit indicates that a read request was blocked because of
  1774. bus_master_en was deasserted */
  1775. #define PXP2_REG_PGL_READ_BLOCKED 0x120568
  1776. /* [R 6] debug only */
  1777. #define PXP2_REG_PGL_TXR_CDTS 0x120528
  1778. /* [R 18] debug only */
  1779. #define PXP2_REG_PGL_TXW_CDTS 0x12052c
  1780. /* [R 1] this bit indicates that a write request was blocked because of
  1781. bus_master_en was deasserted */
  1782. #define PXP2_REG_PGL_WRITE_BLOCKED 0x120564
  1783. #define PXP2_REG_PSWRQ_BW_ADD1 0x1201c0
  1784. #define PXP2_REG_PSWRQ_BW_ADD10 0x1201e4
  1785. #define PXP2_REG_PSWRQ_BW_ADD11 0x1201e8
  1786. #define PXP2_REG_PSWRQ_BW_ADD10 0x1201e4
  1787. #define PXP2_REG_PSWRQ_BW_ADD11 0x1201e8
  1788. #define PXP2_REG_PSWRQ_BW_ADD2 0x1201c4
  1789. #define PXP2_REG_PSWRQ_BW_ADD28 0x120228
  1790. #define PXP2_REG_PSWRQ_BW_ADD28 0x120228
  1791. #define PXP2_REG_PSWRQ_BW_ADD3 0x1201c8
  1792. #define PXP2_REG_PSWRQ_BW_ADD6 0x1201d4
  1793. #define PXP2_REG_PSWRQ_BW_ADD7 0x1201d8
  1794. #define PXP2_REG_PSWRQ_BW_ADD8 0x1201dc
  1795. #define PXP2_REG_PSWRQ_BW_ADD9 0x1201e0
  1796. #define PXP2_REG_PSWRQ_BW_CREDIT 0x12032c
  1797. #define PXP2_REG_PSWRQ_BW_L1 0x1202b0
  1798. #define PXP2_REG_PSWRQ_BW_L10 0x1202d4
  1799. #define PXP2_REG_PSWRQ_BW_L11 0x1202d8
  1800. #define PXP2_REG_PSWRQ_BW_L10 0x1202d4
  1801. #define PXP2_REG_PSWRQ_BW_L11 0x1202d8
  1802. #define PXP2_REG_PSWRQ_BW_L2 0x1202b4
  1803. #define PXP2_REG_PSWRQ_BW_L28 0x120318
  1804. #define PXP2_REG_PSWRQ_BW_L28 0x120318
  1805. #define PXP2_REG_PSWRQ_BW_L3 0x1202b8
  1806. #define PXP2_REG_PSWRQ_BW_L6 0x1202c4
  1807. #define PXP2_REG_PSWRQ_BW_L7 0x1202c8
  1808. #define PXP2_REG_PSWRQ_BW_L8 0x1202cc
  1809. #define PXP2_REG_PSWRQ_BW_L9 0x1202d0
  1810. #define PXP2_REG_PSWRQ_BW_RD 0x120324
  1811. #define PXP2_REG_PSWRQ_BW_UB1 0x120238
  1812. #define PXP2_REG_PSWRQ_BW_UB10 0x12025c
  1813. #define PXP2_REG_PSWRQ_BW_UB11 0x120260
  1814. #define PXP2_REG_PSWRQ_BW_UB10 0x12025c
  1815. #define PXP2_REG_PSWRQ_BW_UB11 0x120260
  1816. #define PXP2_REG_PSWRQ_BW_UB2 0x12023c
  1817. #define PXP2_REG_PSWRQ_BW_UB28 0x1202a0
  1818. #define PXP2_REG_PSWRQ_BW_UB28 0x1202a0
  1819. #define PXP2_REG_PSWRQ_BW_UB3 0x120240
  1820. #define PXP2_REG_PSWRQ_BW_UB6 0x12024c
  1821. #define PXP2_REG_PSWRQ_BW_UB7 0x120250
  1822. #define PXP2_REG_PSWRQ_BW_UB8 0x120254
  1823. #define PXP2_REG_PSWRQ_BW_UB9 0x120258
  1824. #define PXP2_REG_PSWRQ_BW_WR 0x120328
  1825. #define PXP2_REG_PSWRQ_CDU0_L2P 0x120000
  1826. #define PXP2_REG_PSWRQ_QM0_L2P 0x120038
  1827. #define PXP2_REG_PSWRQ_SRC0_L2P 0x120054
  1828. #define PXP2_REG_PSWRQ_TM0_L2P 0x12001c
  1829. /* [RW 25] Interrupt mask register #0 read/write */
  1830. #define PXP2_REG_PXP2_INT_MASK 0x120578
  1831. /* [R 25] Interrupt register #0 read */
  1832. #define PXP2_REG_PXP2_INT_STS 0x12056c
  1833. /* [RC 25] Interrupt register #0 read clear */
  1834. #define PXP2_REG_PXP2_INT_STS_CLR 0x120570
  1835. /* [RW 32] Parity mask register #0 read/write */
  1836. #define PXP2_REG_PXP2_PRTY_MASK_0 0x120588
  1837. #define PXP2_REG_PXP2_PRTY_MASK_1 0x120598
  1838. /* [R 32] Parity register #0 read */
  1839. #define PXP2_REG_PXP2_PRTY_STS_0 0x12057c
  1840. #define PXP2_REG_PXP2_PRTY_STS_1 0x12058c
  1841. /* [R 1] Debug only: The 'almost full' indication from each fifo (gives
  1842. indication about backpressure) */
  1843. #define PXP2_REG_RD_ALMOST_FULL_0 0x120424
  1844. /* [R 8] Debug only: The blocks counter - number of unused block ids */
  1845. #define PXP2_REG_RD_BLK_CNT 0x120418
  1846. /* [RW 8] Debug only: Total number of available blocks in Tetris Buffer.
  1847. Must be bigger than 6. Normally should not be changed. */
  1848. #define PXP2_REG_RD_BLK_NUM_CFG 0x12040c
  1849. /* [RW 2] CDU byte swapping mode configuration for master read requests */
  1850. #define PXP2_REG_RD_CDURD_SWAP_MODE 0x120404
  1851. /* [RW 1] When '1'; inputs to the PSWRD block are ignored */
  1852. #define PXP2_REG_RD_DISABLE_INPUTS 0x120374
  1853. /* [R 1] PSWRD internal memories initialization is done */
  1854. #define PXP2_REG_RD_INIT_DONE 0x120370
  1855. /* [RW 8] The maximum number of blocks in Tetris Buffer that can be
  1856. allocated for vq10 */
  1857. #define PXP2_REG_RD_MAX_BLKS_VQ10 0x1203a0
  1858. /* [RW 8] The maximum number of blocks in Tetris Buffer that can be
  1859. allocated for vq11 */
  1860. #define PXP2_REG_RD_MAX_BLKS_VQ11 0x1203a4
  1861. /* [RW 8] The maximum number of blocks in Tetris Buffer that can be
  1862. allocated for vq17 */
  1863. #define PXP2_REG_RD_MAX_BLKS_VQ17 0x1203bc
  1864. /* [RW 8] The maximum number of blocks in Tetris Buffer that can be
  1865. allocated for vq18 */
  1866. #define PXP2_REG_RD_MAX_BLKS_VQ18 0x1203c0
  1867. /* [RW 8] The maximum number of blocks in Tetris Buffer that can be
  1868. allocated for vq19 */
  1869. #define PXP2_REG_RD_MAX_BLKS_VQ19 0x1203c4
  1870. /* [RW 8] The maximum number of blocks in Tetris Buffer that can be
  1871. allocated for vq22 */
  1872. #define PXP2_REG_RD_MAX_BLKS_VQ22 0x1203d0
  1873. /* [RW 8] The maximum number of blocks in Tetris Buffer that can be
  1874. allocated for vq6 */
  1875. #define PXP2_REG_RD_MAX_BLKS_VQ6 0x120390
  1876. /* [RW 8] The maximum number of blocks in Tetris Buffer that can be
  1877. allocated for vq9 */
  1878. #define PXP2_REG_RD_MAX_BLKS_VQ9 0x12039c
  1879. /* [RW 2] PBF byte swapping mode configuration for master read requests */
  1880. #define PXP2_REG_RD_PBF_SWAP_MODE 0x1203f4
  1881. /* [R 1] Debug only: Indication if delivery ports are idle */
  1882. #define PXP2_REG_RD_PORT_IS_IDLE_0 0x12041c
  1883. #define PXP2_REG_RD_PORT_IS_IDLE_1 0x120420
  1884. /* [RW 2] QM byte swapping mode configuration for master read requests */
  1885. #define PXP2_REG_RD_QM_SWAP_MODE 0x1203f8
  1886. /* [R 7] Debug only: The SR counter - number of unused sub request ids */
  1887. #define PXP2_REG_RD_SR_CNT 0x120414
  1888. /* [RW 2] SRC byte swapping mode configuration for master read requests */
  1889. #define PXP2_REG_RD_SRC_SWAP_MODE 0x120400
  1890. /* [RW 7] Debug only: Total number of available PCI read sub-requests. Must
  1891. be bigger than 1. Normally should not be changed. */
  1892. #define PXP2_REG_RD_SR_NUM_CFG 0x120408
  1893. /* [RW 1] Signals the PSWRD block to start initializing internal memories */
  1894. #define PXP2_REG_RD_START_INIT 0x12036c
  1895. /* [RW 2] TM byte swapping mode configuration for master read requests */
  1896. #define PXP2_REG_RD_TM_SWAP_MODE 0x1203fc
  1897. /* [RW 10] Bandwidth addition to VQ0 write requests */
  1898. #define PXP2_REG_RQ_BW_RD_ADD0 0x1201bc
  1899. /* [RW 10] Bandwidth addition to VQ12 read requests */
  1900. #define PXP2_REG_RQ_BW_RD_ADD12 0x1201ec
  1901. /* [RW 10] Bandwidth addition to VQ13 read requests */
  1902. #define PXP2_REG_RQ_BW_RD_ADD13 0x1201f0
  1903. /* [RW 10] Bandwidth addition to VQ14 read requests */
  1904. #define PXP2_REG_RQ_BW_RD_ADD14 0x1201f4
  1905. /* [RW 10] Bandwidth addition to VQ15 read requests */
  1906. #define PXP2_REG_RQ_BW_RD_ADD15 0x1201f8
  1907. /* [RW 10] Bandwidth addition to VQ16 read requests */
  1908. #define PXP2_REG_RQ_BW_RD_ADD16 0x1201fc
  1909. /* [RW 10] Bandwidth addition to VQ17 read requests */
  1910. #define PXP2_REG_RQ_BW_RD_ADD17 0x120200
  1911. /* [RW 10] Bandwidth addition to VQ18 read requests */
  1912. #define PXP2_REG_RQ_BW_RD_ADD18 0x120204
  1913. /* [RW 10] Bandwidth addition to VQ19 read requests */
  1914. #define PXP2_REG_RQ_BW_RD_ADD19 0x120208
  1915. /* [RW 10] Bandwidth addition to VQ20 read requests */
  1916. #define PXP2_REG_RQ_BW_RD_ADD20 0x12020c
  1917. /* [RW 10] Bandwidth addition to VQ22 read requests */
  1918. #define PXP2_REG_RQ_BW_RD_ADD22 0x120210
  1919. /* [RW 10] Bandwidth addition to VQ23 read requests */
  1920. #define PXP2_REG_RQ_BW_RD_ADD23 0x120214
  1921. /* [RW 10] Bandwidth addition to VQ24 read requests */
  1922. #define PXP2_REG_RQ_BW_RD_ADD24 0x120218
  1923. /* [RW 10] Bandwidth addition to VQ25 read requests */
  1924. #define PXP2_REG_RQ_BW_RD_ADD25 0x12021c
  1925. /* [RW 10] Bandwidth addition to VQ26 read requests */
  1926. #define PXP2_REG_RQ_BW_RD_ADD26 0x120220
  1927. /* [RW 10] Bandwidth addition to VQ27 read requests */
  1928. #define PXP2_REG_RQ_BW_RD_ADD27 0x120224
  1929. /* [RW 10] Bandwidth addition to VQ4 read requests */
  1930. #define PXP2_REG_RQ_BW_RD_ADD4 0x1201cc
  1931. /* [RW 10] Bandwidth addition to VQ5 read requests */
  1932. #define PXP2_REG_RQ_BW_RD_ADD5 0x1201d0
  1933. /* [RW 10] Bandwidth Typical L for VQ0 Read requests */
  1934. #define PXP2_REG_RQ_BW_RD_L0 0x1202ac
  1935. /* [RW 10] Bandwidth Typical L for VQ12 Read requests */
  1936. #define PXP2_REG_RQ_BW_RD_L12 0x1202dc
  1937. /* [RW 10] Bandwidth Typical L for VQ13 Read requests */
  1938. #define PXP2_REG_RQ_BW_RD_L13 0x1202e0
  1939. /* [RW 10] Bandwidth Typical L for VQ14 Read requests */
  1940. #define PXP2_REG_RQ_BW_RD_L14 0x1202e4
  1941. /* [RW 10] Bandwidth Typical L for VQ15 Read requests */
  1942. #define PXP2_REG_RQ_BW_RD_L15 0x1202e8
  1943. /* [RW 10] Bandwidth Typical L for VQ16 Read requests */
  1944. #define PXP2_REG_RQ_BW_RD_L16 0x1202ec
  1945. /* [RW 10] Bandwidth Typical L for VQ17 Read requests */
  1946. #define PXP2_REG_RQ_BW_RD_L17 0x1202f0
  1947. /* [RW 10] Bandwidth Typical L for VQ18 Read requests */
  1948. #define PXP2_REG_RQ_BW_RD_L18 0x1202f4
  1949. /* [RW 10] Bandwidth Typical L for VQ19 Read requests */
  1950. #define PXP2_REG_RQ_BW_RD_L19 0x1202f8
  1951. /* [RW 10] Bandwidth Typical L for VQ20 Read requests */
  1952. #define PXP2_REG_RQ_BW_RD_L20 0x1202fc
  1953. /* [RW 10] Bandwidth Typical L for VQ22 Read requests */
  1954. #define PXP2_REG_RQ_BW_RD_L22 0x120300
  1955. /* [RW 10] Bandwidth Typical L for VQ23 Read requests */
  1956. #define PXP2_REG_RQ_BW_RD_L23 0x120304
  1957. /* [RW 10] Bandwidth Typical L for VQ24 Read requests */
  1958. #define PXP2_REG_RQ_BW_RD_L24 0x120308
  1959. /* [RW 10] Bandwidth Typical L for VQ25 Read requests */
  1960. #define PXP2_REG_RQ_BW_RD_L25 0x12030c
  1961. /* [RW 10] Bandwidth Typical L for VQ26 Read requests */
  1962. #define PXP2_REG_RQ_BW_RD_L26 0x120310
  1963. /* [RW 10] Bandwidth Typical L for VQ27 Read requests */
  1964. #define PXP2_REG_RQ_BW_RD_L27 0x120314
  1965. /* [RW 10] Bandwidth Typical L for VQ4 Read requests */
  1966. #define PXP2_REG_RQ_BW_RD_L4 0x1202bc
  1967. /* [RW 10] Bandwidth Typical L for VQ5 Read- currently not used */
  1968. #define PXP2_REG_RQ_BW_RD_L5 0x1202c0
  1969. /* [RW 7] Bandwidth upper bound for VQ0 read requests */
  1970. #define PXP2_REG_RQ_BW_RD_UBOUND0 0x120234
  1971. /* [RW 7] Bandwidth upper bound for VQ12 read requests */
  1972. #define PXP2_REG_RQ_BW_RD_UBOUND12 0x120264
  1973. /* [RW 7] Bandwidth upper bound for VQ13 read requests */
  1974. #define PXP2_REG_RQ_BW_RD_UBOUND13 0x120268
  1975. /* [RW 7] Bandwidth upper bound for VQ14 read requests */
  1976. #define PXP2_REG_RQ_BW_RD_UBOUND14 0x12026c
  1977. /* [RW 7] Bandwidth upper bound for VQ15 read requests */
  1978. #define PXP2_REG_RQ_BW_RD_UBOUND15 0x120270
  1979. /* [RW 7] Bandwidth upper bound for VQ16 read requests */
  1980. #define PXP2_REG_RQ_BW_RD_UBOUND16 0x120274
  1981. /* [RW 7] Bandwidth upper bound for VQ17 read requests */
  1982. #define PXP2_REG_RQ_BW_RD_UBOUND17 0x120278
  1983. /* [RW 7] Bandwidth upper bound for VQ18 read requests */
  1984. #define PXP2_REG_RQ_BW_RD_UBOUND18 0x12027c
  1985. /* [RW 7] Bandwidth upper bound for VQ19 read requests */
  1986. #define PXP2_REG_RQ_BW_RD_UBOUND19 0x120280
  1987. /* [RW 7] Bandwidth upper bound for VQ20 read requests */
  1988. #define PXP2_REG_RQ_BW_RD_UBOUND20 0x120284
  1989. /* [RW 7] Bandwidth upper bound for VQ22 read requests */
  1990. #define PXP2_REG_RQ_BW_RD_UBOUND22 0x120288
  1991. /* [RW 7] Bandwidth upper bound for VQ23 read requests */
  1992. #define PXP2_REG_RQ_BW_RD_UBOUND23 0x12028c
  1993. /* [RW 7] Bandwidth upper bound for VQ24 read requests */
  1994. #define PXP2_REG_RQ_BW_RD_UBOUND24 0x120290
  1995. /* [RW 7] Bandwidth upper bound for VQ25 read requests */
  1996. #define PXP2_REG_RQ_BW_RD_UBOUND25 0x120294
  1997. /* [RW 7] Bandwidth upper bound for VQ26 read requests */
  1998. #define PXP2_REG_RQ_BW_RD_UBOUND26 0x120298
  1999. /* [RW 7] Bandwidth upper bound for VQ27 read requests */
  2000. #define PXP2_REG_RQ_BW_RD_UBOUND27 0x12029c
  2001. /* [RW 7] Bandwidth upper bound for VQ4 read requests */
  2002. #define PXP2_REG_RQ_BW_RD_UBOUND4 0x120244
  2003. /* [RW 7] Bandwidth upper bound for VQ5 read requests */
  2004. #define PXP2_REG_RQ_BW_RD_UBOUND5 0x120248
  2005. /* [RW 10] Bandwidth addition to VQ29 write requests */
  2006. #define PXP2_REG_RQ_BW_WR_ADD29 0x12022c
  2007. /* [RW 10] Bandwidth addition to VQ30 write requests */
  2008. #define PXP2_REG_RQ_BW_WR_ADD30 0x120230
  2009. /* [RW 10] Bandwidth Typical L for VQ29 Write requests */
  2010. #define PXP2_REG_RQ_BW_WR_L29 0x12031c
  2011. /* [RW 10] Bandwidth Typical L for VQ30 Write requests */
  2012. #define PXP2_REG_RQ_BW_WR_L30 0x120320
  2013. /* [RW 7] Bandwidth upper bound for VQ29 */
  2014. #define PXP2_REG_RQ_BW_WR_UBOUND29 0x1202a4
  2015. /* [RW 7] Bandwidth upper bound for VQ30 */
  2016. #define PXP2_REG_RQ_BW_WR_UBOUND30 0x1202a8
  2017. /* [RW 2] Endian mode for cdu */
  2018. #define PXP2_REG_RQ_CDU_ENDIAN_M 0x1201a0
  2019. /* [RW 3] page size in L2P table for CDU module; -4k; -8k; -16k; -32k; -64k;
  2020. -128k */
  2021. #define PXP2_REG_RQ_CDU_P_SIZE 0x120018
  2022. /* [R 1] 1' indicates that the requester has finished its internal
  2023. configuration */
  2024. #define PXP2_REG_RQ_CFG_DONE 0x1201b4
  2025. /* [RW 2] Endian mode for debug */
  2026. #define PXP2_REG_RQ_DBG_ENDIAN_M 0x1201a4
  2027. /* [RW 1] When '1'; requests will enter input buffers but wont get out
  2028. towards the glue */
  2029. #define PXP2_REG_RQ_DISABLE_INPUTS 0x120330
  2030. /* [RW 2] Endian mode for hc */
  2031. #define PXP2_REG_RQ_HC_ENDIAN_M 0x1201a8
  2032. /* [WB 53] Onchip address table */
  2033. #define PXP2_REG_RQ_ONCHIP_AT 0x122000
  2034. /* [RW 13] Pending read limiter threshold; in Dwords */
  2035. #define PXP2_REG_RQ_PDR_LIMIT 0x12033c
  2036. /* [RW 2] Endian mode for qm */
  2037. #define PXP2_REG_RQ_QM_ENDIAN_M 0x120194
  2038. /* [RW 3] page size in L2P table for QM module; -4k; -8k; -16k; -32k; -64k;
  2039. -128k */
  2040. #define PXP2_REG_RQ_QM_P_SIZE 0x120050
  2041. /* [RW 1] 1' indicates that the RBC has finished configurating the PSWRQ */
  2042. #define PXP2_REG_RQ_RBC_DONE 0x1201b0
  2043. /* [RW 3] Max burst size filed for read requests port 0; 000 - 128B;
  2044. 001:256B; 010: 512B; 11:1K:100:2K; 01:4K */
  2045. #define PXP2_REG_RQ_RD_MBS0 0x120160
  2046. /* [RW 3] Max burst size filed for read requests port 1; 000 - 128B;
  2047. 001:256B; 010: 512B; 11:1K:100:2K; 01:4K */
  2048. #define PXP2_REG_RQ_RD_MBS1 0x120168
  2049. /* [RW 2] Endian mode for src */
  2050. #define PXP2_REG_RQ_SRC_ENDIAN_M 0x12019c
  2051. /* [RW 3] page size in L2P table for SRC module; -4k; -8k; -16k; -32k; -64k;
  2052. -128k */
  2053. #define PXP2_REG_RQ_SRC_P_SIZE 0x12006c
  2054. /* [RW 2] Endian mode for tm */
  2055. #define PXP2_REG_RQ_TM_ENDIAN_M 0x120198
  2056. /* [RW 3] page size in L2P table for TM module; -4k; -8k; -16k; -32k; -64k;
  2057. -128k */
  2058. #define PXP2_REG_RQ_TM_P_SIZE 0x120034
  2059. /* [R 5] Number of entries in the ufifo; his fifo has l2p completions */
  2060. #define PXP2_REG_RQ_UFIFO_NUM_OF_ENTRY 0x12080c
  2061. /* [R 8] Number of entries occupied by vq 0 in pswrq memory */
  2062. #define PXP2_REG_RQ_VQ0_ENTRY_CNT 0x120810
  2063. /* [R 8] Number of entries occupied by vq 10 in pswrq memory */
  2064. #define PXP2_REG_RQ_VQ10_ENTRY_CNT 0x120818
  2065. /* [R 8] Number of entries occupied by vq 11 in pswrq memory */
  2066. #define PXP2_REG_RQ_VQ11_ENTRY_CNT 0x120820
  2067. /* [R 8] Number of entries occupied by vq 12 in pswrq memory */
  2068. #define PXP2_REG_RQ_VQ12_ENTRY_CNT 0x120828
  2069. /* [R 8] Number of entries occupied by vq 13 in pswrq memory */
  2070. #define PXP2_REG_RQ_VQ13_ENTRY_CNT 0x120830
  2071. /* [R 8] Number of entries occupied by vq 14 in pswrq memory */
  2072. #define PXP2_REG_RQ_VQ14_ENTRY_CNT 0x120838
  2073. /* [R 8] Number of entries occupied by vq 15 in pswrq memory */
  2074. #define PXP2_REG_RQ_VQ15_ENTRY_CNT 0x120840
  2075. /* [R 8] Number of entries occupied by vq 16 in pswrq memory */
  2076. #define PXP2_REG_RQ_VQ16_ENTRY_CNT 0x120848
  2077. /* [R 8] Number of entries occupied by vq 17 in pswrq memory */
  2078. #define PXP2_REG_RQ_VQ17_ENTRY_CNT 0x120850
  2079. /* [R 8] Number of entries occupied by vq 18 in pswrq memory */
  2080. #define PXP2_REG_RQ_VQ18_ENTRY_CNT 0x120858
  2081. /* [R 8] Number of entries occupied by vq 19 in pswrq memory */
  2082. #define PXP2_REG_RQ_VQ19_ENTRY_CNT 0x120860
  2083. /* [R 8] Number of entries occupied by vq 1 in pswrq memory */
  2084. #define PXP2_REG_RQ_VQ1_ENTRY_CNT 0x120868
  2085. /* [R 8] Number of entries occupied by vq 20 in pswrq memory */
  2086. #define PXP2_REG_RQ_VQ20_ENTRY_CNT 0x120870
  2087. /* [R 8] Number of entries occupied by vq 21 in pswrq memory */
  2088. #define PXP2_REG_RQ_VQ21_ENTRY_CNT 0x120878
  2089. /* [R 8] Number of entries occupied by vq 22 in pswrq memory */
  2090. #define PXP2_REG_RQ_VQ22_ENTRY_CNT 0x120880
  2091. /* [R 8] Number of entries occupied by vq 23 in pswrq memory */
  2092. #define PXP2_REG_RQ_VQ23_ENTRY_CNT 0x120888
  2093. /* [R 8] Number of entries occupied by vq 24 in pswrq memory */
  2094. #define PXP2_REG_RQ_VQ24_ENTRY_CNT 0x120890
  2095. /* [R 8] Number of entries occupied by vq 25 in pswrq memory */
  2096. #define PXP2_REG_RQ_VQ25_ENTRY_CNT 0x120898
  2097. /* [R 8] Number of entries occupied by vq 26 in pswrq memory */
  2098. #define PXP2_REG_RQ_VQ26_ENTRY_CNT 0x1208a0
  2099. /* [R 8] Number of entries occupied by vq 27 in pswrq memory */
  2100. #define PXP2_REG_RQ_VQ27_ENTRY_CNT 0x1208a8
  2101. /* [R 8] Number of entries occupied by vq 28 in pswrq memory */
  2102. #define PXP2_REG_RQ_VQ28_ENTRY_CNT 0x1208b0
  2103. /* [R 8] Number of entries occupied by vq 29 in pswrq memory */
  2104. #define PXP2_REG_RQ_VQ29_ENTRY_CNT 0x1208b8
  2105. /* [R 8] Number of entries occupied by vq 2 in pswrq memory */
  2106. #define PXP2_REG_RQ_VQ2_ENTRY_CNT 0x1208c0
  2107. /* [R 8] Number of entries occupied by vq 30 in pswrq memory */
  2108. #define PXP2_REG_RQ_VQ30_ENTRY_CNT 0x1208c8
  2109. /* [R 8] Number of entries occupied by vq 31 in pswrq memory */
  2110. #define PXP2_REG_RQ_VQ31_ENTRY_CNT 0x1208d0
  2111. /* [R 8] Number of entries occupied by vq 3 in pswrq memory */
  2112. #define PXP2_REG_RQ_VQ3_ENTRY_CNT 0x1208d8
  2113. /* [R 8] Number of entries occupied by vq 4 in pswrq memory */
  2114. #define PXP2_REG_RQ_VQ4_ENTRY_CNT 0x1208e0
  2115. /* [R 8] Number of entries occupied by vq 5 in pswrq memory */
  2116. #define PXP2_REG_RQ_VQ5_ENTRY_CNT 0x1208e8
  2117. /* [R 8] Number of entries occupied by vq 6 in pswrq memory */
  2118. #define PXP2_REG_RQ_VQ6_ENTRY_CNT 0x1208f0
  2119. /* [R 8] Number of entries occupied by vq 7 in pswrq memory */
  2120. #define PXP2_REG_RQ_VQ7_ENTRY_CNT 0x1208f8
  2121. /* [R 8] Number of entries occupied by vq 8 in pswrq memory */
  2122. #define PXP2_REG_RQ_VQ8_ENTRY_CNT 0x120900
  2123. /* [R 8] Number of entries occupied by vq 9 in pswrq memory */
  2124. #define PXP2_REG_RQ_VQ9_ENTRY_CNT 0x120908
  2125. /* [RW 3] Max burst size filed for write requests port 0; 000 - 128B;
  2126. 001:256B; 010: 512B; */
  2127. #define PXP2_REG_RQ_WR_MBS0 0x12015c
  2128. /* [RW 3] Max burst size filed for write requests port 1; 000 - 128B;
  2129. 001:256B; 010: 512B; */
  2130. #define PXP2_REG_RQ_WR_MBS1 0x120164
  2131. /* [RW 10] if Number of entries in dmae fifo will be higer than this
  2132. threshold then has_payload indication will be asserted; the default value
  2133. should be equal to &gt; write MBS size! */
  2134. #define PXP2_REG_WR_DMAE_TH 0x120368
  2135. /* [RW 10] if Number of entries in usdmdp fifo will be higer than this
  2136. threshold then has_payload indication will be asserted; the default value
  2137. should be equal to &gt; write MBS size! */
  2138. #define PXP2_REG_WR_USDMDP_TH 0x120348
  2139. /* [R 1] debug only: Indication if PSWHST arbiter is idle */
  2140. #define PXP_REG_HST_ARB_IS_IDLE 0x103004
  2141. /* [R 8] debug only: A bit mask for all PSWHST arbiter clients. '1' means
  2142. this client is waiting for the arbiter. */
  2143. #define PXP_REG_HST_CLIENTS_WAITING_TO_ARB 0x103008
  2144. /* [WB 160] Used for initialization of the inbound interrupts memory */
  2145. #define PXP_REG_HST_INBOUND_INT 0x103800
  2146. /* [RW 32] Interrupt mask register #0 read/write */
  2147. #define PXP_REG_PXP_INT_MASK_0 0x103074
  2148. #define PXP_REG_PXP_INT_MASK_1 0x103084
  2149. /* [R 32] Interrupt register #0 read */
  2150. #define PXP_REG_PXP_INT_STS_0 0x103068
  2151. #define PXP_REG_PXP_INT_STS_1 0x103078
  2152. /* [RC 32] Interrupt register #0 read clear */
  2153. #define PXP_REG_PXP_INT_STS_CLR_0 0x10306c
  2154. /* [RW 26] Parity mask register #0 read/write */
  2155. #define PXP_REG_PXP_PRTY_MASK 0x103094
  2156. /* [R 26] Parity register #0 read */
  2157. #define PXP_REG_PXP_PRTY_STS 0x103088
  2158. /* [RW 4] The activity counter initial increment value sent in the load
  2159. request */
  2160. #define QM_REG_ACTCTRINITVAL_0 0x168040
  2161. #define QM_REG_ACTCTRINITVAL_1 0x168044
  2162. #define QM_REG_ACTCTRINITVAL_2 0x168048
  2163. #define QM_REG_ACTCTRINITVAL_3 0x16804c
  2164. /* [RW 32] The base logical address (in bytes) of each physical queue. The
  2165. index I represents the physical queue number. The 12 lsbs are ignore and
  2166. considered zero so practically there are only 20 bits in this register. */
  2167. #define QM_REG_BASEADDR 0x168900
  2168. /* [RW 16] The byte credit cost for each task. This value is for both ports */
  2169. #define QM_REG_BYTECRDCOST 0x168234
  2170. /* [RW 16] The initial byte credit value for both ports. */
  2171. #define QM_REG_BYTECRDINITVAL 0x168238
  2172. /* [RW 32] A bit per physical queue. If the bit is cleared then the physical
  2173. queue uses port 0 else it uses port 1. */
  2174. #define QM_REG_BYTECRDPORT_LSB 0x168228
  2175. /* [RW 32] A bit per physical queue. If the bit is cleared then the physical
  2176. queue uses port 0 else it uses port 1. */
  2177. #define QM_REG_BYTECRDPORT_MSB 0x168224
  2178. /* [RW 16] The byte credit value that if above the QM is considered almost
  2179. full */
  2180. #define QM_REG_BYTECREDITAFULLTHR 0x168094
  2181. /* [RW 4] The initial credit for interface */
  2182. #define QM_REG_CMINITCRD_0 0x1680cc
  2183. #define QM_REG_CMINITCRD_1 0x1680d0
  2184. #define QM_REG_CMINITCRD_2 0x1680d4
  2185. #define QM_REG_CMINITCRD_3 0x1680d8
  2186. #define QM_REG_CMINITCRD_4 0x1680dc
  2187. #define QM_REG_CMINITCRD_5 0x1680e0
  2188. #define QM_REG_CMINITCRD_6 0x1680e4
  2189. #define QM_REG_CMINITCRD_7 0x1680e8
  2190. /* [RW 8] A mask bit per CM interface. If this bit is 0 then this interface
  2191. is masked */
  2192. #define QM_REG_CMINTEN 0x1680ec
  2193. /* [RW 12] A bit vector which indicates which one of the queues are tied to
  2194. interface 0 */
  2195. #define QM_REG_CMINTVOQMASK_0 0x1681f4
  2196. #define QM_REG_CMINTVOQMASK_1 0x1681f8
  2197. #define QM_REG_CMINTVOQMASK_2 0x1681fc
  2198. #define QM_REG_CMINTVOQMASK_3 0x168200
  2199. #define QM_REG_CMINTVOQMASK_4 0x168204
  2200. #define QM_REG_CMINTVOQMASK_5 0x168208
  2201. #define QM_REG_CMINTVOQMASK_6 0x16820c
  2202. #define QM_REG_CMINTVOQMASK_7 0x168210
  2203. /* [RW 20] The number of connections divided by 16 which dictates the size
  2204. of each queue per port 0 */
  2205. #define QM_REG_CONNNUM_0 0x168020
  2206. /* [R 6] Keep the fill level of the fifo from write client 4 */
  2207. #define QM_REG_CQM_WRC_FIFOLVL 0x168018
  2208. /* [RW 8] The context regions sent in the CFC load request */
  2209. #define QM_REG_CTXREG_0 0x168030
  2210. #define QM_REG_CTXREG_1 0x168034
  2211. #define QM_REG_CTXREG_2 0x168038
  2212. #define QM_REG_CTXREG_3 0x16803c
  2213. /* [RW 12] The VOQ mask used to select the VOQs which needs to be full for
  2214. bypass enable */
  2215. #define QM_REG_ENBYPVOQMASK 0x16823c
  2216. /* [RW 32] A bit mask per each physical queue. If a bit is set then the
  2217. physical queue uses the byte credit */
  2218. #define QM_REG_ENBYTECRD_LSB 0x168220
  2219. /* [RW 32] A bit mask per each physical queue. If a bit is set then the
  2220. physical queue uses the byte credit */
  2221. #define QM_REG_ENBYTECRD_MSB 0x16821c
  2222. /* [RW 4] If cleared then the secondary interface will not be served by the
  2223. RR arbiter */
  2224. #define QM_REG_ENSEC 0x1680f0
  2225. /* [RW 32] A bit vector per each physical queue which selects which function
  2226. number to use on PCI access for that queue. */
  2227. #define QM_REG_FUNCNUMSEL_LSB 0x168230
  2228. /* [RW 32] A bit vector per each physical queue which selects which function
  2229. number to use on PCI access for that queue. */
  2230. #define QM_REG_FUNCNUMSEL_MSB 0x16822c
  2231. /* [RW 32] A mask register to mask the Almost empty signals which will not
  2232. be use for the almost empty indication to the HW block */
  2233. #define QM_REG_HWAEMPTYMASK_LSB 0x168218
  2234. /* [RW 32] A mask register to mask the Almost empty signals which will not
  2235. be use for the almost empty indication to the HW block */
  2236. #define QM_REG_HWAEMPTYMASK_MSB 0x168214
  2237. /* [RW 4] The number of outstanding request to CFC */
  2238. #define QM_REG_OUTLDREQ 0x168804
  2239. /* [RC 1] A flag to indicate that overflow error occurred in one of the
  2240. queues. */
  2241. #define QM_REG_OVFERROR 0x16805c
  2242. /* [RC 6] the Q were the qverflow occurs */
  2243. #define QM_REG_OVFQNUM 0x168058
  2244. /* [R 32] Pause state for physical queues 31-0 */
  2245. #define QM_REG_PAUSESTATE0 0x168410
  2246. /* [R 32] Pause state for physical queues 64-32 */
  2247. #define QM_REG_PAUSESTATE1 0x168414
  2248. /* [RW 2] The PCI attributes field used in the PCI request. */
  2249. #define QM_REG_PCIREQAT 0x168054
  2250. /* [R 16] The byte credit of port 0 */
  2251. #define QM_REG_PORT0BYTECRD 0x168300
  2252. /* [R 16] The byte credit of port 1 */
  2253. #define QM_REG_PORT1BYTECRD 0x168304
  2254. /* [WB 54] Pointer Table Memory; The mapping is as follow: ptrtbl[53:30]
  2255. read pointer; ptrtbl[29:6] write pointer; ptrtbl[5:4] read bank0;
  2256. ptrtbl[3:2] read bank 1; ptrtbl[1:0] write bank; */
  2257. #define QM_REG_PTRTBL 0x168a00
  2258. /* [RW 2] Interrupt mask register #0 read/write */
  2259. #define QM_REG_QM_INT_MASK 0x168444
  2260. /* [R 2] Interrupt register #0 read */
  2261. #define QM_REG_QM_INT_STS 0x168438
  2262. /* [RW 9] Parity mask register #0 read/write */
  2263. #define QM_REG_QM_PRTY_MASK 0x168454
  2264. /* [R 9] Parity register #0 read */
  2265. #define QM_REG_QM_PRTY_STS 0x168448
  2266. /* [R 32] Current queues in pipeline: Queues from 32 to 63 */
  2267. #define QM_REG_QSTATUS_HIGH 0x16802c
  2268. /* [R 32] Current queues in pipeline: Queues from 0 to 31 */
  2269. #define QM_REG_QSTATUS_LOW 0x168028
  2270. /* [R 24] The number of tasks queued for each queue */
  2271. #define QM_REG_QTASKCTR_0 0x168308
  2272. /* [RW 4] Queue tied to VOQ */
  2273. #define QM_REG_QVOQIDX_0 0x1680f4
  2274. #define QM_REG_QVOQIDX_10 0x16811c
  2275. #define QM_REG_QVOQIDX_11 0x168120
  2276. #define QM_REG_QVOQIDX_12 0x168124
  2277. #define QM_REG_QVOQIDX_13 0x168128
  2278. #define QM_REG_QVOQIDX_14 0x16812c
  2279. #define QM_REG_QVOQIDX_15 0x168130
  2280. #define QM_REG_QVOQIDX_16 0x168134
  2281. #define QM_REG_QVOQIDX_17 0x168138
  2282. #define QM_REG_QVOQIDX_21 0x168148
  2283. #define QM_REG_QVOQIDX_25 0x168158
  2284. #define QM_REG_QVOQIDX_29 0x168168
  2285. #define QM_REG_QVOQIDX_32 0x168174
  2286. #define QM_REG_QVOQIDX_33 0x168178
  2287. #define QM_REG_QVOQIDX_34 0x16817c
  2288. #define QM_REG_QVOQIDX_35 0x168180
  2289. #define QM_REG_QVOQIDX_36 0x168184
  2290. #define QM_REG_QVOQIDX_37 0x168188
  2291. #define QM_REG_QVOQIDX_38 0x16818c
  2292. #define QM_REG_QVOQIDX_39 0x168190
  2293. #define QM_REG_QVOQIDX_40 0x168194
  2294. #define QM_REG_QVOQIDX_41 0x168198
  2295. #define QM_REG_QVOQIDX_42 0x16819c
  2296. #define QM_REG_QVOQIDX_43 0x1681a0
  2297. #define QM_REG_QVOQIDX_44 0x1681a4
  2298. #define QM_REG_QVOQIDX_45 0x1681a8
  2299. #define QM_REG_QVOQIDX_46 0x1681ac
  2300. #define QM_REG_QVOQIDX_47 0x1681b0
  2301. #define QM_REG_QVOQIDX_48 0x1681b4
  2302. #define QM_REG_QVOQIDX_49 0x1681b8
  2303. #define QM_REG_QVOQIDX_5 0x168108
  2304. #define QM_REG_QVOQIDX_50 0x1681bc
  2305. #define QM_REG_QVOQIDX_51 0x1681c0
  2306. #define QM_REG_QVOQIDX_52 0x1681c4
  2307. #define QM_REG_QVOQIDX_53 0x1681c8
  2308. #define QM_REG_QVOQIDX_54 0x1681cc
  2309. #define QM_REG_QVOQIDX_55 0x1681d0
  2310. #define QM_REG_QVOQIDX_56 0x1681d4
  2311. #define QM_REG_QVOQIDX_57 0x1681d8
  2312. #define QM_REG_QVOQIDX_58 0x1681dc
  2313. #define QM_REG_QVOQIDX_59 0x1681e0
  2314. #define QM_REG_QVOQIDX_50 0x1681bc
  2315. #define QM_REG_QVOQIDX_51 0x1681c0
  2316. #define QM_REG_QVOQIDX_52 0x1681c4
  2317. #define QM_REG_QVOQIDX_53 0x1681c8
  2318. #define QM_REG_QVOQIDX_54 0x1681cc
  2319. #define QM_REG_QVOQIDX_55 0x1681d0
  2320. #define QM_REG_QVOQIDX_56 0x1681d4
  2321. #define QM_REG_QVOQIDX_57 0x1681d8
  2322. #define QM_REG_QVOQIDX_58 0x1681dc
  2323. #define QM_REG_QVOQIDX_59 0x1681e0
  2324. #define QM_REG_QVOQIDX_6 0x16810c
  2325. #define QM_REG_QVOQIDX_60 0x1681e4
  2326. #define QM_REG_QVOQIDX_61 0x1681e8
  2327. #define QM_REG_QVOQIDX_62 0x1681ec
  2328. #define QM_REG_QVOQIDX_63 0x1681f0
  2329. #define QM_REG_QVOQIDX_60 0x1681e4
  2330. #define QM_REG_QVOQIDX_61 0x1681e8
  2331. #define QM_REG_QVOQIDX_62 0x1681ec
  2332. #define QM_REG_QVOQIDX_63 0x1681f0
  2333. #define QM_REG_QVOQIDX_7 0x168110
  2334. #define QM_REG_QVOQIDX_8 0x168114
  2335. #define QM_REG_QVOQIDX_9 0x168118
  2336. /* [R 24] Remaining pause timeout for port 0 */
  2337. #define QM_REG_REMAINPAUSETM0 0x168418
  2338. /* [R 24] Remaining pause timeout for port 1 */
  2339. #define QM_REG_REMAINPAUSETM1 0x16841c
  2340. /* [RW 1] Initialization bit command */
  2341. #define QM_REG_SOFT_RESET 0x168428
  2342. /* [RW 8] The credit cost per every task in the QM. A value per each VOQ */
  2343. #define QM_REG_TASKCRDCOST_0 0x16809c
  2344. #define QM_REG_TASKCRDCOST_1 0x1680a0
  2345. #define QM_REG_TASKCRDCOST_10 0x1680c4
  2346. #define QM_REG_TASKCRDCOST_11 0x1680c8
  2347. #define QM_REG_TASKCRDCOST_2 0x1680a4
  2348. #define QM_REG_TASKCRDCOST_4 0x1680ac
  2349. #define QM_REG_TASKCRDCOST_5 0x1680b0
  2350. /* [R 6] Keep the fill level of the fifo from write client 3 */
  2351. #define QM_REG_TQM_WRC_FIFOLVL 0x168010
  2352. /* [R 6] Keep the fill level of the fifo from write client 2 */
  2353. #define QM_REG_UQM_WRC_FIFOLVL 0x168008
  2354. /* [RC 32] Credit update error register */
  2355. #define QM_REG_VOQCRDERRREG 0x168408
  2356. /* [R 16] The credit value for each VOQ */
  2357. #define QM_REG_VOQCREDIT_0 0x1682d0
  2358. #define QM_REG_VOQCREDIT_1 0x1682d4
  2359. #define QM_REG_VOQCREDIT_10 0x1682f8
  2360. #define QM_REG_VOQCREDIT_11 0x1682fc
  2361. #define QM_REG_VOQCREDIT_4 0x1682e0
  2362. /* [RW 16] The credit value that if above the QM is considered almost full */
  2363. #define QM_REG_VOQCREDITAFULLTHR 0x168090
  2364. /* [RW 16] The init and maximum credit for each VoQ */
  2365. #define QM_REG_VOQINITCREDIT_0 0x168060
  2366. #define QM_REG_VOQINITCREDIT_1 0x168064
  2367. #define QM_REG_VOQINITCREDIT_10 0x168088
  2368. #define QM_REG_VOQINITCREDIT_11 0x16808c
  2369. #define QM_REG_VOQINITCREDIT_2 0x168068
  2370. #define QM_REG_VOQINITCREDIT_4 0x168070
  2371. #define QM_REG_VOQINITCREDIT_5 0x168074
  2372. /* [RW 1] The port of which VOQ belongs */
  2373. #define QM_REG_VOQPORT_1 0x1682a4
  2374. #define QM_REG_VOQPORT_10 0x1682c8
  2375. #define QM_REG_VOQPORT_11 0x1682cc
  2376. #define QM_REG_VOQPORT_2 0x1682a8
  2377. /* [RW 32] The physical queue number associated with each VOQ */
  2378. #define QM_REG_VOQQMASK_0_LSB 0x168240
  2379. /* [RW 32] The physical queue number associated with each VOQ */
  2380. #define QM_REG_VOQQMASK_0_MSB 0x168244
  2381. /* [RW 32] The physical queue number associated with each VOQ */
  2382. #define QM_REG_VOQQMASK_1_MSB 0x16824c
  2383. /* [RW 32] The physical queue number associated with each VOQ */
  2384. #define QM_REG_VOQQMASK_2_LSB 0x168250
  2385. /* [RW 32] The physical queue number associated with each VOQ */
  2386. #define QM_REG_VOQQMASK_2_MSB 0x168254
  2387. /* [RW 32] The physical queue number associated with each VOQ */
  2388. #define QM_REG_VOQQMASK_3_LSB 0x168258
  2389. /* [RW 32] The physical queue number associated with each VOQ */
  2390. #define QM_REG_VOQQMASK_4_LSB 0x168260
  2391. /* [RW 32] The physical queue number associated with each VOQ */
  2392. #define QM_REG_VOQQMASK_4_MSB 0x168264
  2393. /* [RW 32] The physical queue number associated with each VOQ */
  2394. #define QM_REG_VOQQMASK_5_LSB 0x168268
  2395. /* [RW 32] The physical queue number associated with each VOQ */
  2396. #define QM_REG_VOQQMASK_5_MSB 0x16826c
  2397. /* [RW 32] The physical queue number associated with each VOQ */
  2398. #define QM_REG_VOQQMASK_6_LSB 0x168270
  2399. /* [RW 32] The physical queue number associated with each VOQ */
  2400. #define QM_REG_VOQQMASK_6_MSB 0x168274
  2401. /* [RW 32] The physical queue number associated with each VOQ */
  2402. #define QM_REG_VOQQMASK_7_LSB 0x168278
  2403. /* [RW 32] The physical queue number associated with each VOQ */
  2404. #define QM_REG_VOQQMASK_7_MSB 0x16827c
  2405. /* [RW 32] The physical queue number associated with each VOQ */
  2406. #define QM_REG_VOQQMASK_8_LSB 0x168280
  2407. /* [RW 32] The physical queue number associated with each VOQ */
  2408. #define QM_REG_VOQQMASK_8_MSB 0x168284
  2409. /* [RW 32] The physical queue number associated with each VOQ */
  2410. #define QM_REG_VOQQMASK_9_LSB 0x168288
  2411. /* [RW 32] Wrr weights */
  2412. #define QM_REG_WRRWEIGHTS_0 0x16880c
  2413. #define QM_REG_WRRWEIGHTS_1 0x168810
  2414. #define QM_REG_WRRWEIGHTS_10 0x168814
  2415. #define QM_REG_WRRWEIGHTS_10_SIZE 1
  2416. /* [RW 32] Wrr weights */
  2417. #define QM_REG_WRRWEIGHTS_11 0x168818
  2418. #define QM_REG_WRRWEIGHTS_11_SIZE 1
  2419. /* [RW 32] Wrr weights */
  2420. #define QM_REG_WRRWEIGHTS_12 0x16881c
  2421. #define QM_REG_WRRWEIGHTS_12_SIZE 1
  2422. /* [RW 32] Wrr weights */
  2423. #define QM_REG_WRRWEIGHTS_13 0x168820
  2424. #define QM_REG_WRRWEIGHTS_13_SIZE 1
  2425. /* [RW 32] Wrr weights */
  2426. #define QM_REG_WRRWEIGHTS_14 0x168824
  2427. #define QM_REG_WRRWEIGHTS_14_SIZE 1
  2428. /* [RW 32] Wrr weights */
  2429. #define QM_REG_WRRWEIGHTS_15 0x168828
  2430. #define QM_REG_WRRWEIGHTS_15_SIZE 1
  2431. /* [RW 32] Wrr weights */
  2432. #define QM_REG_WRRWEIGHTS_10 0x168814
  2433. #define QM_REG_WRRWEIGHTS_11 0x168818
  2434. #define QM_REG_WRRWEIGHTS_12 0x16881c
  2435. #define QM_REG_WRRWEIGHTS_13 0x168820
  2436. #define QM_REG_WRRWEIGHTS_14 0x168824
  2437. #define QM_REG_WRRWEIGHTS_15 0x168828
  2438. #define QM_REG_WRRWEIGHTS_2 0x16882c
  2439. #define QM_REG_WRRWEIGHTS_3 0x168830
  2440. #define QM_REG_WRRWEIGHTS_4 0x168834
  2441. #define QM_REG_WRRWEIGHTS_5 0x168838
  2442. #define QM_REG_WRRWEIGHTS_6 0x16883c
  2443. #define QM_REG_WRRWEIGHTS_7 0x168840
  2444. #define QM_REG_WRRWEIGHTS_8 0x168844
  2445. #define QM_REG_WRRWEIGHTS_9 0x168848
  2446. /* [R 6] Keep the fill level of the fifo from write client 1 */
  2447. #define QM_REG_XQM_WRC_FIFOLVL 0x168000
  2448. #define DORQ_DORQ_INT_STS_REG_ADDRESS_ERROR (0x1<<0)
  2449. #define DORQ_DORQ_INT_STS_REG_ADDRESS_ERROR_SIZE 0
  2450. #define DORQ_DORQ_INT_STS_CLR_REG_ADDRESS_ERROR (0x1<<0)
  2451. #define DORQ_DORQ_INT_STS_CLR_REG_ADDRESS_ERROR_SIZE 0
  2452. #define DORQ_DORQ_INT_STS_WR_REG_ADDRESS_ERROR (0x1<<0)
  2453. #define DORQ_DORQ_INT_STS_WR_REG_ADDRESS_ERROR_SIZE 0
  2454. #define DORQ_DORQ_INT_MASK_REG_ADDRESS_ERROR (0x1<<0)
  2455. #define DORQ_DORQ_INT_MASK_REG_ADDRESS_ERROR_SIZE 0
  2456. #define NIG_NIG_INT_STS_0_REG_ADDRESS_ERROR (0x1<<0)
  2457. #define NIG_NIG_INT_STS_0_REG_ADDRESS_ERROR_SIZE 0
  2458. #define NIG_NIG_INT_STS_CLR_0_REG_ADDRESS_ERROR (0x1<<0)
  2459. #define NIG_NIG_INT_STS_CLR_0_REG_ADDRESS_ERROR_SIZE 0
  2460. #define NIG_NIG_INT_STS_WR_0_REG_ADDRESS_ERROR (0x1<<0)
  2461. #define NIG_NIG_INT_STS_WR_0_REG_ADDRESS_ERROR_SIZE 0
  2462. #define NIG_NIG_INT_MASK_0_REG_ADDRESS_ERROR (0x1<<0)
  2463. #define NIG_NIG_INT_MASK_0_REG_ADDRESS_ERROR_SIZE 0
  2464. #define TCM_TCM_INT_STS_REG_ADDRESS_ERROR (0x1<<0)
  2465. #define TCM_TCM_INT_STS_REG_ADDRESS_ERROR_SIZE 0
  2466. #define TCM_TCM_INT_STS_CLR_REG_ADDRESS_ERROR (0x1<<0)
  2467. #define TCM_TCM_INT_STS_CLR_REG_ADDRESS_ERROR_SIZE 0
  2468. #define TCM_TCM_INT_STS_WR_REG_ADDRESS_ERROR (0x1<<0)
  2469. #define TCM_TCM_INT_STS_WR_REG_ADDRESS_ERROR_SIZE 0
  2470. #define TCM_TCM_INT_MASK_REG_ADDRESS_ERROR (0x1<<0)
  2471. #define TCM_TCM_INT_MASK_REG_ADDRESS_ERROR_SIZE 0
  2472. #define CFC_DEBUG1_REG_WRITE_AC (0x1<<4)
  2473. #define CFC_DEBUG1_REG_WRITE_AC_SIZE 4
  2474. /* [R 1] debug only: This bit indicates wheter indicates that external
  2475. buffer was wrapped (oldest data was thrown); Relevant only when
  2476. ~dbg_registers_debug_target=2 (PCI) & ~dbg_registers_full_mode=1 (wrap); */
  2477. #define DBG_REG_WRAP_ON_EXT_BUFFER 0xc124
  2478. #define DBG_REG_WRAP_ON_EXT_BUFFER_SIZE 1
  2479. /* [R 1] debug only: This bit indicates wheter the internal buffer was
  2480. wrapped (oldest data was thrown) Relevant only when
  2481. ~dbg_registers_debug_target=0 (internal buffer) */
  2482. #define DBG_REG_WRAP_ON_INT_BUFFER 0xc128
  2483. #define DBG_REG_WRAP_ON_INT_BUFFER_SIZE 1
  2484. /* [RW 32] Wrr weights */
  2485. #define QM_REG_WRRWEIGHTS_0 0x16880c
  2486. #define QM_REG_WRRWEIGHTS_0_SIZE 1
  2487. /* [RW 32] Wrr weights */
  2488. #define QM_REG_WRRWEIGHTS_1 0x168810
  2489. #define QM_REG_WRRWEIGHTS_1_SIZE 1
  2490. /* [RW 32] Wrr weights */
  2491. #define QM_REG_WRRWEIGHTS_10 0x168814
  2492. #define QM_REG_WRRWEIGHTS_10_SIZE 1
  2493. /* [RW 32] Wrr weights */
  2494. #define QM_REG_WRRWEIGHTS_11 0x168818
  2495. #define QM_REG_WRRWEIGHTS_11_SIZE 1
  2496. /* [RW 32] Wrr weights */
  2497. #define QM_REG_WRRWEIGHTS_12 0x16881c
  2498. #define QM_REG_WRRWEIGHTS_12_SIZE 1
  2499. /* [RW 32] Wrr weights */
  2500. #define QM_REG_WRRWEIGHTS_13 0x168820
  2501. #define QM_REG_WRRWEIGHTS_13_SIZE 1
  2502. /* [RW 32] Wrr weights */
  2503. #define QM_REG_WRRWEIGHTS_14 0x168824
  2504. #define QM_REG_WRRWEIGHTS_14_SIZE 1
  2505. /* [RW 32] Wrr weights */
  2506. #define QM_REG_WRRWEIGHTS_15 0x168828
  2507. #define QM_REG_WRRWEIGHTS_15_SIZE 1
  2508. /* [RW 32] Wrr weights */
  2509. #define QM_REG_WRRWEIGHTS_2 0x16882c
  2510. #define QM_REG_WRRWEIGHTS_2_SIZE 1
  2511. /* [RW 32] Wrr weights */
  2512. #define QM_REG_WRRWEIGHTS_3 0x168830
  2513. #define QM_REG_WRRWEIGHTS_3_SIZE 1
  2514. /* [RW 32] Wrr weights */
  2515. #define QM_REG_WRRWEIGHTS_4 0x168834
  2516. #define QM_REG_WRRWEIGHTS_4_SIZE 1
  2517. /* [RW 32] Wrr weights */
  2518. #define QM_REG_WRRWEIGHTS_5 0x168838
  2519. #define QM_REG_WRRWEIGHTS_5_SIZE 1
  2520. /* [RW 32] Wrr weights */
  2521. #define QM_REG_WRRWEIGHTS_6 0x16883c
  2522. #define QM_REG_WRRWEIGHTS_6_SIZE 1
  2523. /* [RW 32] Wrr weights */
  2524. #define QM_REG_WRRWEIGHTS_7 0x168840
  2525. #define QM_REG_WRRWEIGHTS_7_SIZE 1
  2526. /* [RW 32] Wrr weights */
  2527. #define QM_REG_WRRWEIGHTS_8 0x168844
  2528. #define QM_REG_WRRWEIGHTS_8_SIZE 1
  2529. /* [RW 32] Wrr weights */
  2530. #define QM_REG_WRRWEIGHTS_9 0x168848
  2531. #define QM_REG_WRRWEIGHTS_9_SIZE 1
  2532. /* [RW 22] Number of free element in the free list of T2 entries - port 0. */
  2533. #define SRC_REG_COUNTFREE0 0x40500
  2534. /* [WB 64] First free element in the free list of T2 entries - port 0. */
  2535. #define SRC_REG_FIRSTFREE0 0x40510
  2536. #define SRC_REG_KEYRSS0_0 0x40408
  2537. #define SRC_REG_KEYRSS1_9 0x40454
  2538. /* [WB 64] Last free element in the free list of T2 entries - port 0. */
  2539. #define SRC_REG_LASTFREE0 0x40530
  2540. /* [RW 5] The number of hash bits used for the search (h); Values can be 8
  2541. to 24. */
  2542. #define SRC_REG_NUMBER_HASH_BITS0 0x40400
  2543. /* [RW 1] Reset internal state machines. */
  2544. #define SRC_REG_SOFT_RST 0x4049c
  2545. /* [R 1] Interrupt register #0 read */
  2546. #define SRC_REG_SRC_INT_STS 0x404ac
  2547. /* [RW 3] Parity mask register #0 read/write */
  2548. #define SRC_REG_SRC_PRTY_MASK 0x404c8
  2549. /* [R 3] Parity register #0 read */
  2550. #define SRC_REG_SRC_PRTY_STS 0x404bc
  2551. /* [R 4] Used to read the value of the XX protection CAM occupancy counter. */
  2552. #define TCM_REG_CAM_OCCUP 0x5017c
  2553. /* [RW 1] CDU AG read Interface enable. If 0 - the request input is
  2554. disregarded; valid output is deasserted; all other signals are treated as
  2555. usual; if 1 - normal activity. */
  2556. #define TCM_REG_CDU_AG_RD_IFEN 0x50034
  2557. /* [RW 1] CDU AG write Interface enable. If 0 - the request and valid input
  2558. are disregarded; all other signals are treated as usual; if 1 - normal
  2559. activity. */
  2560. #define TCM_REG_CDU_AG_WR_IFEN 0x50030
  2561. /* [RW 1] CDU STORM read Interface enable. If 0 - the request input is
  2562. disregarded; valid output is deasserted; all other signals are treated as
  2563. usual; if 1 - normal activity. */
  2564. #define TCM_REG_CDU_SM_RD_IFEN 0x5003c
  2565. /* [RW 1] CDU STORM write Interface enable. If 0 - the request and valid
  2566. input is disregarded; all other signals are treated as usual; if 1 -
  2567. normal activity. */
  2568. #define TCM_REG_CDU_SM_WR_IFEN 0x50038
  2569. /* [RW 4] CFC output initial credit. Max credit available - 15.Write writes
  2570. the initial credit value; read returns the current value of the credit
  2571. counter. Must be initialized to 1 at start-up. */
  2572. #define TCM_REG_CFC_INIT_CRD 0x50204
  2573. /* [RW 3] The weight of the CP input in the WRR mechanism. 0 stands for
  2574. weight 8 (the most prioritised); 1 stands for weight 1(least
  2575. prioritised); 2 stands for weight 2; tc. */
  2576. #define TCM_REG_CP_WEIGHT 0x500c0
  2577. /* [RW 1] Input csem Interface enable. If 0 - the valid input is
  2578. disregarded; acknowledge output is deasserted; all other signals are
  2579. treated as usual; if 1 - normal activity. */
  2580. #define TCM_REG_CSEM_IFEN 0x5002c
  2581. /* [RC 1] Message length mismatch (relative to last indication) at the In#9
  2582. interface. */
  2583. #define TCM_REG_CSEM_LENGTH_MIS 0x50174
  2584. /* [RW 8] The Event ID in case of ErrorFlg is set in the input message. */
  2585. #define TCM_REG_ERR_EVNT_ID 0x500a0
  2586. /* [RW 28] The CM erroneous header for QM and Timers formatting. */
  2587. #define TCM_REG_ERR_TCM_HDR 0x5009c
  2588. /* [RW 8] The Event ID for Timers expiration. */
  2589. #define TCM_REG_EXPR_EVNT_ID 0x500a4
  2590. /* [RW 8] FIC0 output initial credit. Max credit available - 255.Write
  2591. writes the initial credit value; read returns the current value of the
  2592. credit counter. Must be initialized to 64 at start-up. */
  2593. #define TCM_REG_FIC0_INIT_CRD 0x5020c
  2594. /* [RW 8] FIC1 output initial credit. Max credit available - 255.Write
  2595. writes the initial credit value; read returns the current value of the
  2596. credit counter. Must be initialized to 64 at start-up. */
  2597. #define TCM_REG_FIC1_INIT_CRD 0x50210
  2598. /* [RW 1] Arbitration between Input Arbiter groups: 0 - fair Round-Robin; 1
  2599. - strict priority defined by ~tcm_registers_gr_ag_pr.gr_ag_pr;
  2600. ~tcm_registers_gr_ld0_pr.gr_ld0_pr and
  2601. ~tcm_registers_gr_ld1_pr.gr_ld1_pr. */
  2602. #define TCM_REG_GR_ARB_TYPE 0x50114
  2603. /* [RW 2] Load (FIC0) channel group priority. The lowest priority is 0; the
  2604. highest priority is 3. It is supposed that the Store channel is the
  2605. compliment of the other 3 groups. */
  2606. #define TCM_REG_GR_LD0_PR 0x5011c
  2607. /* [RW 2] Load (FIC1) channel group priority. The lowest priority is 0; the
  2608. highest priority is 3. It is supposed that the Store channel is the
  2609. compliment of the other 3 groups. */
  2610. #define TCM_REG_GR_LD1_PR 0x50120
  2611. /* [RW 4] The number of double REG-pairs; loaded from the STORM context and
  2612. sent to STORM; for a specific connection type. The double REG-pairs are
  2613. used to align to STORM context row size of 128 bits. The offset of these
  2614. data in the STORM context is always 0. Index _i stands for the connection
  2615. type (one of 16). */
  2616. #define TCM_REG_N_SM_CTX_LD_0 0x50050
  2617. #define TCM_REG_N_SM_CTX_LD_1 0x50054
  2618. #define TCM_REG_N_SM_CTX_LD_10 0x50078
  2619. #define TCM_REG_N_SM_CTX_LD_11 0x5007c
  2620. #define TCM_REG_N_SM_CTX_LD_12 0x50080
  2621. #define TCM_REG_N_SM_CTX_LD_13 0x50084
  2622. #define TCM_REG_N_SM_CTX_LD_14 0x50088
  2623. #define TCM_REG_N_SM_CTX_LD_15 0x5008c
  2624. #define TCM_REG_N_SM_CTX_LD_2 0x50058
  2625. #define TCM_REG_N_SM_CTX_LD_3 0x5005c
  2626. #define TCM_REG_N_SM_CTX_LD_4 0x50060
  2627. /* [RW 1] Input pbf Interface enable. If 0 - the valid input is disregarded;
  2628. acknowledge output is deasserted; all other signals are treated as usual;
  2629. if 1 - normal activity. */
  2630. #define TCM_REG_PBF_IFEN 0x50024
  2631. /* [RC 1] Message length mismatch (relative to last indication) at the In#7
  2632. interface. */
  2633. #define TCM_REG_PBF_LENGTH_MIS 0x5016c
  2634. /* [RW 3] The weight of the input pbf in the WRR mechanism. 0 stands for
  2635. weight 8 (the most prioritised); 1 stands for weight 1(least
  2636. prioritised); 2 stands for weight 2; tc. */
  2637. #define TCM_REG_PBF_WEIGHT 0x500b4
  2638. /* [RW 6] The physical queue number 0 per port index. */
  2639. #define TCM_REG_PHYS_QNUM0_0 0x500e0
  2640. #define TCM_REG_PHYS_QNUM0_1 0x500e4
  2641. /* [RW 6] The physical queue number 1 per port index. */
  2642. #define TCM_REG_PHYS_QNUM1_0 0x500e8
  2643. /* [RW 1] Input prs Interface enable. If 0 - the valid input is disregarded;
  2644. acknowledge output is deasserted; all other signals are treated as usual;
  2645. if 1 - normal activity. */
  2646. #define TCM_REG_PRS_IFEN 0x50020
  2647. /* [RC 1] Message length mismatch (relative to last indication) at the In#6
  2648. interface. */
  2649. #define TCM_REG_PRS_LENGTH_MIS 0x50168
  2650. /* [RW 3] The weight of the input prs in the WRR mechanism. 0 stands for
  2651. weight 8 (the most prioritised); 1 stands for weight 1(least
  2652. prioritised); 2 stands for weight 2; tc. */
  2653. #define TCM_REG_PRS_WEIGHT 0x500b0
  2654. /* [RW 8] The Event ID for Timers formatting in case of stop done. */
  2655. #define TCM_REG_STOP_EVNT_ID 0x500a8
  2656. /* [RC 1] Message length mismatch (relative to last indication) at the STORM
  2657. interface. */
  2658. #define TCM_REG_STORM_LENGTH_MIS 0x50160
  2659. /* [RW 1] STORM - CM Interface enable. If 0 - the valid input is
  2660. disregarded; acknowledge output is deasserted; all other signals are
  2661. treated as usual; if 1 - normal activity. */
  2662. #define TCM_REG_STORM_TCM_IFEN 0x50010
  2663. /* [RW 1] CM - CFC Interface enable. If 0 - the valid input is disregarded;
  2664. acknowledge output is deasserted; all other signals are treated as usual;
  2665. if 1 - normal activity. */
  2666. #define TCM_REG_TCM_CFC_IFEN 0x50040
  2667. /* [RW 11] Interrupt mask register #0 read/write */
  2668. #define TCM_REG_TCM_INT_MASK 0x501dc
  2669. /* [R 11] Interrupt register #0 read */
  2670. #define TCM_REG_TCM_INT_STS 0x501d0
  2671. /* [RW 3] The size of AG context region 0 in REG-pairs. Designates the MS
  2672. REG-pair number (e.g. if region 0 is 6 REG-pairs; the value should be 5).
  2673. Is used to determine the number of the AG context REG-pairs written back;
  2674. when the input message Reg1WbFlg isn't set. */
  2675. #define TCM_REG_TCM_REG0_SZ 0x500d8
  2676. /* [RW 1] CM - STORM 0 Interface enable. If 0 - the acknowledge input is
  2677. disregarded; valid is deasserted; all other signals are treated as usual;
  2678. if 1 - normal activity. */
  2679. #define TCM_REG_TCM_STORM0_IFEN 0x50004
  2680. /* [RW 1] CM - STORM 1 Interface enable. If 0 - the acknowledge input is
  2681. disregarded; valid is deasserted; all other signals are treated as usual;
  2682. if 1 - normal activity. */
  2683. #define TCM_REG_TCM_STORM1_IFEN 0x50008
  2684. /* [RW 1] CM - QM Interface enable. If 0 - the acknowledge input is
  2685. disregarded; valid is deasserted; all other signals are treated as usual;
  2686. if 1 - normal activity. */
  2687. #define TCM_REG_TCM_TQM_IFEN 0x5000c
  2688. /* [RW 1] If set the Q index; received from the QM is inserted to event ID. */
  2689. #define TCM_REG_TCM_TQM_USE_Q 0x500d4
  2690. /* [RW 28] The CM header for Timers expiration command. */
  2691. #define TCM_REG_TM_TCM_HDR 0x50098
  2692. /* [RW 1] Timers - CM Interface enable. If 0 - the valid input is
  2693. disregarded; acknowledge output is deasserted; all other signals are
  2694. treated as usual; if 1 - normal activity. */
  2695. #define TCM_REG_TM_TCM_IFEN 0x5001c
  2696. /* [RW 6] QM output initial credit. Max credit available - 32.Write writes
  2697. the initial credit value; read returns the current value of the credit
  2698. counter. Must be initialized to 32 at start-up. */
  2699. #define TCM_REG_TQM_INIT_CRD 0x5021c
  2700. /* [RW 28] The CM header value for QM request (primary). */
  2701. #define TCM_REG_TQM_TCM_HDR_P 0x50090
  2702. /* [RW 28] The CM header value for QM request (secondary). */
  2703. #define TCM_REG_TQM_TCM_HDR_S 0x50094
  2704. /* [RW 1] QM - CM Interface enable. If 0 - the valid input is disregarded;
  2705. acknowledge output is deasserted; all other signals are treated as usual;
  2706. if 1 - normal activity. */
  2707. #define TCM_REG_TQM_TCM_IFEN 0x50014
  2708. /* [RW 1] Input SDM Interface enable. If 0 - the valid input is disregarded;
  2709. acknowledge output is deasserted; all other signals are treated as usual;
  2710. if 1 - normal activity. */
  2711. #define TCM_REG_TSDM_IFEN 0x50018
  2712. /* [RC 1] Message length mismatch (relative to last indication) at the SDM
  2713. interface. */
  2714. #define TCM_REG_TSDM_LENGTH_MIS 0x50164
  2715. /* [RW 3] The weight of the SDM input in the WRR mechanism. 0 stands for
  2716. weight 8 (the most prioritised); 1 stands for weight 1(least
  2717. prioritised); 2 stands for weight 2; tc. */
  2718. #define TCM_REG_TSDM_WEIGHT 0x500c4
  2719. /* [RW 1] Input usem Interface enable. If 0 - the valid input is
  2720. disregarded; acknowledge output is deasserted; all other signals are
  2721. treated as usual; if 1 - normal activity. */
  2722. #define TCM_REG_USEM_IFEN 0x50028
  2723. /* [RC 1] Message length mismatch (relative to last indication) at the In#8
  2724. interface. */
  2725. #define TCM_REG_USEM_LENGTH_MIS 0x50170
  2726. /* [RW 21] Indirect access to the descriptor table of the XX protection
  2727. mechanism. The fields are: [5:0] - length of the message; 15:6] - message
  2728. pointer; 20:16] - next pointer. */
  2729. #define TCM_REG_XX_DESCR_TABLE 0x50280
  2730. /* [R 6] Use to read the value of XX protection Free counter. */
  2731. #define TCM_REG_XX_FREE 0x50178
  2732. /* [RW 6] Initial value for the credit counter; responsible for fulfilling
  2733. of the Input Stage XX protection buffer by the XX protection pending
  2734. messages. Max credit available - 127.Write writes the initial credit
  2735. value; read returns the current value of the credit counter. Must be
  2736. initialized to 19 at start-up. */
  2737. #define TCM_REG_XX_INIT_CRD 0x50220
  2738. /* [RW 6] Maximum link list size (messages locked) per connection in the XX
  2739. protection. */
  2740. #define TCM_REG_XX_MAX_LL_SZ 0x50044
  2741. /* [RW 6] The maximum number of pending messages; which may be stored in XX
  2742. protection. ~tcm_registers_xx_free.xx_free is read on read. */
  2743. #define TCM_REG_XX_MSG_NUM 0x50224
  2744. /* [RW 8] The Event ID; sent to the STORM in case of XX overflow. */
  2745. #define TCM_REG_XX_OVFL_EVNT_ID 0x50048
  2746. /* [RW 16] Indirect access to the XX table of the XX protection mechanism.
  2747. The fields are:[4:0] - tail pointer; [10:5] - Link List size; 15:11] -
  2748. header pointer. */
  2749. #define TCM_REG_XX_TABLE 0x50240
  2750. /* [RW 4] Load value for for cfc ac credit cnt. */
  2751. #define TM_REG_CFC_AC_CRDCNT_VAL 0x164208
  2752. /* [RW 4] Load value for cfc cld credit cnt. */
  2753. #define TM_REG_CFC_CLD_CRDCNT_VAL 0x164210
  2754. /* [RW 8] Client0 context region. */
  2755. #define TM_REG_CL0_CONT_REGION 0x164030
  2756. /* [RW 8] Client1 context region. */
  2757. #define TM_REG_CL1_CONT_REGION 0x164034
  2758. /* [RW 8] Client2 context region. */
  2759. #define TM_REG_CL2_CONT_REGION 0x164038
  2760. /* [RW 2] Client in High priority client number. */
  2761. #define TM_REG_CLIN_PRIOR0_CLIENT 0x164024
  2762. /* [RW 4] Load value for clout0 cred cnt. */
  2763. #define TM_REG_CLOUT_CRDCNT0_VAL 0x164220
  2764. /* [RW 4] Load value for clout1 cred cnt. */
  2765. #define TM_REG_CLOUT_CRDCNT1_VAL 0x164228
  2766. /* [RW 4] Load value for clout2 cred cnt. */
  2767. #define TM_REG_CLOUT_CRDCNT2_VAL 0x164230
  2768. /* [RW 1] Enable client0 input. */
  2769. #define TM_REG_EN_CL0_INPUT 0x164008
  2770. /* [RW 1] Enable client1 input. */
  2771. #define TM_REG_EN_CL1_INPUT 0x16400c
  2772. /* [RW 1] Enable client2 input. */
  2773. #define TM_REG_EN_CL2_INPUT 0x164010
  2774. /* [RW 1] Enable real time counter. */
  2775. #define TM_REG_EN_REAL_TIME_CNT 0x1640d8
  2776. /* [RW 1] Enable for Timers state machines. */
  2777. #define TM_REG_EN_TIMERS 0x164000
  2778. /* [RW 4] Load value for expiration credit cnt. CFC max number of
  2779. outstanding load requests for timers (expiration) context loading. */
  2780. #define TM_REG_EXP_CRDCNT_VAL 0x164238
  2781. /* [RW 18] Linear0 Max active cid. */
  2782. #define TM_REG_LIN0_MAX_ACTIVE_CID 0x164048
  2783. /* [WB 64] Linear0 phy address. */
  2784. #define TM_REG_LIN0_PHY_ADDR 0x164270
  2785. /* [RW 24] Linear0 array scan timeout. */
  2786. #define TM_REG_LIN0_SCAN_TIME 0x16403c
  2787. /* [WB 64] Linear1 phy address. */
  2788. #define TM_REG_LIN1_PHY_ADDR 0x164280
  2789. /* [RW 6] Linear timer set_clear fifo threshold. */
  2790. #define TM_REG_LIN_SETCLR_FIFO_ALFULL_THR 0x164070
  2791. /* [RW 2] Load value for pci arbiter credit cnt. */
  2792. #define TM_REG_PCIARB_CRDCNT_VAL 0x164260
  2793. /* [RW 1] Timer software reset - active high. */
  2794. #define TM_REG_TIMER_SOFT_RST 0x164004
  2795. /* [RW 20] The amount of hardware cycles for each timer tick. */
  2796. #define TM_REG_TIMER_TICK_SIZE 0x16401c
  2797. /* [RW 8] Timers Context region. */
  2798. #define TM_REG_TM_CONTEXT_REGION 0x164044
  2799. /* [RW 1] Interrupt mask register #0 read/write */
  2800. #define TM_REG_TM_INT_MASK 0x1640fc
  2801. /* [R 1] Interrupt register #0 read */
  2802. #define TM_REG_TM_INT_STS 0x1640f0
  2803. /* [RW 8] The event id for aggregated interrupt 0 */
  2804. #define TSDM_REG_AGG_INT_EVENT_0 0x42038
  2805. /* [RW 13] The start address in the internal RAM for the cfc_rsp lcid */
  2806. #define TSDM_REG_CFC_RSP_START_ADDR 0x42008
  2807. /* [RW 16] The maximum value of the competion counter #0 */
  2808. #define TSDM_REG_CMP_COUNTER_MAX0 0x4201c
  2809. /* [RW 16] The maximum value of the competion counter #1 */
  2810. #define TSDM_REG_CMP_COUNTER_MAX1 0x42020
  2811. /* [RW 16] The maximum value of the competion counter #2 */
  2812. #define TSDM_REG_CMP_COUNTER_MAX2 0x42024
  2813. /* [RW 16] The maximum value of the competion counter #3 */
  2814. #define TSDM_REG_CMP_COUNTER_MAX3 0x42028
  2815. /* [RW 13] The start address in the internal RAM for the completion
  2816. counters. */
  2817. #define TSDM_REG_CMP_COUNTER_START_ADDR 0x4200c
  2818. #define TSDM_REG_ENABLE_IN1 0x42238
  2819. #define TSDM_REG_ENABLE_IN2 0x4223c
  2820. #define TSDM_REG_ENABLE_OUT1 0x42240
  2821. #define TSDM_REG_ENABLE_OUT2 0x42244
  2822. /* [RW 4] The initial number of messages that can be sent to the pxp control
  2823. interface without receiving any ACK. */
  2824. #define TSDM_REG_INIT_CREDIT_PXP_CTRL 0x424bc
  2825. /* [ST 32] The number of ACK after placement messages received */
  2826. #define TSDM_REG_NUM_OF_ACK_AFTER_PLACE 0x4227c
  2827. /* [ST 32] The number of packet end messages received from the parser */
  2828. #define TSDM_REG_NUM_OF_PKT_END_MSG 0x42274
  2829. /* [ST 32] The number of requests received from the pxp async if */
  2830. #define TSDM_REG_NUM_OF_PXP_ASYNC_REQ 0x42278
  2831. /* [ST 32] The number of commands received in queue 0 */
  2832. #define TSDM_REG_NUM_OF_Q0_CMD 0x42248
  2833. /* [ST 32] The number of commands received in queue 10 */
  2834. #define TSDM_REG_NUM_OF_Q10_CMD 0x4226c
  2835. /* [ST 32] The number of commands received in queue 11 */
  2836. #define TSDM_REG_NUM_OF_Q11_CMD 0x42270
  2837. /* [ST 32] The number of commands received in queue 1 */
  2838. #define TSDM_REG_NUM_OF_Q1_CMD 0x4224c
  2839. /* [ST 32] The number of commands received in queue 3 */
  2840. #define TSDM_REG_NUM_OF_Q3_CMD 0x42250
  2841. /* [ST 32] The number of commands received in queue 4 */
  2842. #define TSDM_REG_NUM_OF_Q4_CMD 0x42254
  2843. /* [ST 32] The number of commands received in queue 5 */
  2844. #define TSDM_REG_NUM_OF_Q5_CMD 0x42258
  2845. /* [ST 32] The number of commands received in queue 6 */
  2846. #define TSDM_REG_NUM_OF_Q6_CMD 0x4225c
  2847. /* [ST 32] The number of commands received in queue 7 */
  2848. #define TSDM_REG_NUM_OF_Q7_CMD 0x42260
  2849. /* [ST 32] The number of commands received in queue 8 */
  2850. #define TSDM_REG_NUM_OF_Q8_CMD 0x42264
  2851. /* [ST 32] The number of commands received in queue 9 */
  2852. #define TSDM_REG_NUM_OF_Q9_CMD 0x42268
  2853. /* [RW 13] The start address in the internal RAM for the packet end message */
  2854. #define TSDM_REG_PCK_END_MSG_START_ADDR 0x42014
  2855. /* [RW 13] The start address in the internal RAM for queue counters */
  2856. #define TSDM_REG_Q_COUNTER_START_ADDR 0x42010
  2857. /* [R 1] pxp_ctrl rd_data fifo empty in sdm_dma_rsp block */
  2858. #define TSDM_REG_RSP_PXP_CTRL_RDATA_EMPTY 0x42548
  2859. /* [R 1] parser fifo empty in sdm_sync block */
  2860. #define TSDM_REG_SYNC_PARSER_EMPTY 0x42550
  2861. /* [R 1] parser serial fifo empty in sdm_sync block */
  2862. #define TSDM_REG_SYNC_SYNC_EMPTY 0x42558
  2863. /* [RW 32] Tick for timer counter. Applicable only when
  2864. ~tsdm_registers_timer_tick_enable.timer_tick_enable =1 */
  2865. #define TSDM_REG_TIMER_TICK 0x42000
  2866. /* [RW 32] Interrupt mask register #0 read/write */
  2867. #define TSDM_REG_TSDM_INT_MASK_0 0x4229c
  2868. #define TSDM_REG_TSDM_INT_MASK_1 0x422ac
  2869. /* [RW 11] Parity mask register #0 read/write */
  2870. #define TSDM_REG_TSDM_PRTY_MASK 0x422bc
  2871. /* [R 11] Parity register #0 read */
  2872. #define TSDM_REG_TSDM_PRTY_STS 0x422b0
  2873. /* [RW 5] The number of time_slots in the arbitration cycle */
  2874. #define TSEM_REG_ARB_CYCLE_SIZE 0x180034
  2875. /* [RW 3] The source that is associated with arbitration element 0. Source
  2876. decoding is: 0- foc0; 1-fic1; 2-sleeping thread with priority 0; 3-
  2877. sleeping thread with priority 1; 4- sleeping thread with priority 2 */
  2878. #define TSEM_REG_ARB_ELEMENT0 0x180020
  2879. /* [RW 3] The source that is associated with arbitration element 1. Source
  2880. decoding is: 0- foc0; 1-fic1; 2-sleeping thread with priority 0; 3-
  2881. sleeping thread with priority 1; 4- sleeping thread with priority 2.
  2882. Could not be equal to register ~tsem_registers_arb_element0.arb_element0 */
  2883. #define TSEM_REG_ARB_ELEMENT1 0x180024
  2884. /* [RW 3] The source that is associated with arbitration element 2. Source
  2885. decoding is: 0- foc0; 1-fic1; 2-sleeping thread with priority 0; 3-
  2886. sleeping thread with priority 1; 4- sleeping thread with priority 2.
  2887. Could not be equal to register ~tsem_registers_arb_element0.arb_element0
  2888. and ~tsem_registers_arb_element1.arb_element1 */
  2889. #define TSEM_REG_ARB_ELEMENT2 0x180028
  2890. /* [RW 3] The source that is associated with arbitration element 3. Source
  2891. decoding is: 0- foc0; 1-fic1; 2-sleeping thread with priority 0; 3-
  2892. sleeping thread with priority 1; 4- sleeping thread with priority 2.Could
  2893. not be equal to register ~tsem_registers_arb_element0.arb_element0 and
  2894. ~tsem_registers_arb_element1.arb_element1 and
  2895. ~tsem_registers_arb_element2.arb_element2 */
  2896. #define TSEM_REG_ARB_ELEMENT3 0x18002c
  2897. /* [RW 3] The source that is associated with arbitration element 4. Source
  2898. decoding is: 0- foc0; 1-fic1; 2-sleeping thread with priority 0; 3-
  2899. sleeping thread with priority 1; 4- sleeping thread with priority 2.
  2900. Could not be equal to register ~tsem_registers_arb_element0.arb_element0
  2901. and ~tsem_registers_arb_element1.arb_element1 and
  2902. ~tsem_registers_arb_element2.arb_element2 and
  2903. ~tsem_registers_arb_element3.arb_element3 */
  2904. #define TSEM_REG_ARB_ELEMENT4 0x180030
  2905. #define TSEM_REG_ENABLE_IN 0x1800a4
  2906. #define TSEM_REG_ENABLE_OUT 0x1800a8
  2907. /* [RW 32] This address space contains all registers and memories that are
  2908. placed in SEM_FAST block. The SEM_FAST registers are described in
  2909. appendix B. In order to access the SEM_FAST registers the base address
  2910. TSEM_REGISTERS_FAST_MEMORY (Offset: 0x1a0000) should be added to each
  2911. SEM_FAST register offset. */
  2912. #define TSEM_REG_FAST_MEMORY 0x1a0000
  2913. /* [RW 1] Disables input messages from FIC0 May be updated during run_time
  2914. by the microcode */
  2915. #define TSEM_REG_FIC0_DISABLE 0x180224
  2916. /* [RW 1] Disables input messages from FIC1 May be updated during run_time
  2917. by the microcode */
  2918. #define TSEM_REG_FIC1_DISABLE 0x180234
  2919. /* [RW 15] Interrupt table Read and write access to it is not possible in
  2920. the middle of the work */
  2921. #define TSEM_REG_INT_TABLE 0x180400
  2922. /* [ST 24] Statistics register. The number of messages that entered through
  2923. FIC0 */
  2924. #define TSEM_REG_MSG_NUM_FIC0 0x180000
  2925. /* [ST 24] Statistics register. The number of messages that entered through
  2926. FIC1 */
  2927. #define TSEM_REG_MSG_NUM_FIC1 0x180004
  2928. /* [ST 24] Statistics register. The number of messages that were sent to
  2929. FOC0 */
  2930. #define TSEM_REG_MSG_NUM_FOC0 0x180008
  2931. /* [ST 24] Statistics register. The number of messages that were sent to
  2932. FOC1 */
  2933. #define TSEM_REG_MSG_NUM_FOC1 0x18000c
  2934. /* [ST 24] Statistics register. The number of messages that were sent to
  2935. FOC2 */
  2936. #define TSEM_REG_MSG_NUM_FOC2 0x180010
  2937. /* [ST 24] Statistics register. The number of messages that were sent to
  2938. FOC3 */
  2939. #define TSEM_REG_MSG_NUM_FOC3 0x180014
  2940. /* [RW 1] Disables input messages from the passive buffer May be updated
  2941. during run_time by the microcode */
  2942. #define TSEM_REG_PAS_DISABLE 0x18024c
  2943. /* [WB 128] Debug only. Passive buffer memory */
  2944. #define TSEM_REG_PASSIVE_BUFFER 0x181000
  2945. /* [WB 46] pram memory. B45 is parity; b[44:0] - data. */
  2946. #define TSEM_REG_PRAM 0x1c0000
  2947. /* [R 8] Valid sleeping threads indication have bit per thread */
  2948. #define TSEM_REG_SLEEP_THREADS_VALID 0x18026c
  2949. /* [R 1] EXT_STORE FIFO is empty in sem_slow_ls_ext */
  2950. #define TSEM_REG_SLOW_EXT_STORE_EMPTY 0x1802a0
  2951. /* [RW 8] List of free threads . There is a bit per thread. */
  2952. #define TSEM_REG_THREADS_LIST 0x1802e4
  2953. /* [RW 3] The arbitration scheme of time_slot 0 */
  2954. #define TSEM_REG_TS_0_AS 0x180038
  2955. /* [RW 3] The arbitration scheme of time_slot 10 */
  2956. #define TSEM_REG_TS_10_AS 0x180060
  2957. /* [RW 3] The arbitration scheme of time_slot 11 */
  2958. #define TSEM_REG_TS_11_AS 0x180064
  2959. /* [RW 3] The arbitration scheme of time_slot 12 */
  2960. #define TSEM_REG_TS_12_AS 0x180068
  2961. /* [RW 3] The arbitration scheme of time_slot 13 */
  2962. #define TSEM_REG_TS_13_AS 0x18006c
  2963. /* [RW 3] The arbitration scheme of time_slot 14 */
  2964. #define TSEM_REG_TS_14_AS 0x180070
  2965. /* [RW 3] The arbitration scheme of time_slot 15 */
  2966. #define TSEM_REG_TS_15_AS 0x180074
  2967. /* [RW 3] The arbitration scheme of time_slot 16 */
  2968. #define TSEM_REG_TS_16_AS 0x180078
  2969. /* [RW 3] The arbitration scheme of time_slot 17 */
  2970. #define TSEM_REG_TS_17_AS 0x18007c
  2971. /* [RW 3] The arbitration scheme of time_slot 18 */
  2972. #define TSEM_REG_TS_18_AS 0x180080
  2973. /* [RW 3] The arbitration scheme of time_slot 1 */
  2974. #define TSEM_REG_TS_1_AS 0x18003c
  2975. /* [RW 3] The arbitration scheme of time_slot 2 */
  2976. #define TSEM_REG_TS_2_AS 0x180040
  2977. /* [RW 3] The arbitration scheme of time_slot 3 */
  2978. #define TSEM_REG_TS_3_AS 0x180044
  2979. /* [RW 3] The arbitration scheme of time_slot 4 */
  2980. #define TSEM_REG_TS_4_AS 0x180048
  2981. /* [RW 3] The arbitration scheme of time_slot 5 */
  2982. #define TSEM_REG_TS_5_AS 0x18004c
  2983. /* [RW 3] The arbitration scheme of time_slot 6 */
  2984. #define TSEM_REG_TS_6_AS 0x180050
  2985. /* [RW 3] The arbitration scheme of time_slot 7 */
  2986. #define TSEM_REG_TS_7_AS 0x180054
  2987. /* [RW 3] The arbitration scheme of time_slot 8 */
  2988. #define TSEM_REG_TS_8_AS 0x180058
  2989. /* [RW 3] The arbitration scheme of time_slot 9 */
  2990. #define TSEM_REG_TS_9_AS 0x18005c
  2991. /* [RW 32] Interrupt mask register #0 read/write */
  2992. #define TSEM_REG_TSEM_INT_MASK_0 0x180100
  2993. #define TSEM_REG_TSEM_INT_MASK_1 0x180110
  2994. /* [RW 32] Parity mask register #0 read/write */
  2995. #define TSEM_REG_TSEM_PRTY_MASK_0 0x180120
  2996. #define TSEM_REG_TSEM_PRTY_MASK_1 0x180130
  2997. /* [R 32] Parity register #0 read */
  2998. #define TSEM_REG_TSEM_PRTY_STS_0 0x180114
  2999. #define TSEM_REG_TSEM_PRTY_STS_1 0x180124
  3000. /* [R 5] Used to read the XX protection CAM occupancy counter. */
  3001. #define UCM_REG_CAM_OCCUP 0xe0170
  3002. /* [RW 1] CDU AG read Interface enable. If 0 - the request input is
  3003. disregarded; valid output is deasserted; all other signals are treated as
  3004. usual; if 1 - normal activity. */
  3005. #define UCM_REG_CDU_AG_RD_IFEN 0xe0038
  3006. /* [RW 1] CDU AG write Interface enable. If 0 - the request and valid input
  3007. are disregarded; all other signals are treated as usual; if 1 - normal
  3008. activity. */
  3009. #define UCM_REG_CDU_AG_WR_IFEN 0xe0034
  3010. /* [RW 1] CDU STORM read Interface enable. If 0 - the request input is
  3011. disregarded; valid output is deasserted; all other signals are treated as
  3012. usual; if 1 - normal activity. */
  3013. #define UCM_REG_CDU_SM_RD_IFEN 0xe0040
  3014. /* [RW 1] CDU STORM write Interface enable. If 0 - the request and valid
  3015. input is disregarded; all other signals are treated as usual; if 1 -
  3016. normal activity. */
  3017. #define UCM_REG_CDU_SM_WR_IFEN 0xe003c
  3018. /* [RW 4] CFC output initial credit. Max credit available - 15.Write writes
  3019. the initial credit value; read returns the current value of the credit
  3020. counter. Must be initialized to 1 at start-up. */
  3021. #define UCM_REG_CFC_INIT_CRD 0xe0204
  3022. /* [RW 3] The weight of the CP input in the WRR mechanism. 0 stands for
  3023. weight 8 (the most prioritised); 1 stands for weight 1(least
  3024. prioritised); 2 stands for weight 2; tc. */
  3025. #define UCM_REG_CP_WEIGHT 0xe00c4
  3026. /* [RW 1] Input csem Interface enable. If 0 - the valid input is
  3027. disregarded; acknowledge output is deasserted; all other signals are
  3028. treated as usual; if 1 - normal activity. */
  3029. #define UCM_REG_CSEM_IFEN 0xe0028
  3030. /* [RC 1] Set when the message length mismatch (relative to last indication)
  3031. at the csem interface is detected. */
  3032. #define UCM_REG_CSEM_LENGTH_MIS 0xe0160
  3033. /* [RW 3] The weight of the input csem in the WRR mechanism. 0 stands for
  3034. weight 8 (the most prioritised); 1 stands for weight 1(least
  3035. prioritised); 2 stands for weight 2; tc. */
  3036. #define UCM_REG_CSEM_WEIGHT 0xe00b8
  3037. /* [RW 1] Input dorq Interface enable. If 0 - the valid input is
  3038. disregarded; acknowledge output is deasserted; all other signals are
  3039. treated as usual; if 1 - normal activity. */
  3040. #define UCM_REG_DORQ_IFEN 0xe0030
  3041. /* [RC 1] Set when the message length mismatch (relative to last indication)
  3042. at the dorq interface is detected. */
  3043. #define UCM_REG_DORQ_LENGTH_MIS 0xe0168
  3044. /* [RW 8] The Event ID in case ErrorFlg input message bit is set. */
  3045. #define UCM_REG_ERR_EVNT_ID 0xe00a4
  3046. /* [RW 28] The CM erroneous header for QM and Timers formatting. */
  3047. #define UCM_REG_ERR_UCM_HDR 0xe00a0
  3048. /* [RW 8] The Event ID for Timers expiration. */
  3049. #define UCM_REG_EXPR_EVNT_ID 0xe00a8
  3050. /* [RW 8] FIC0 output initial credit. Max credit available - 255.Write
  3051. writes the initial credit value; read returns the current value of the
  3052. credit counter. Must be initialized to 64 at start-up. */
  3053. #define UCM_REG_FIC0_INIT_CRD 0xe020c
  3054. /* [RW 8] FIC1 output initial credit. Max credit available - 255.Write
  3055. writes the initial credit value; read returns the current value of the
  3056. credit counter. Must be initialized to 64 at start-up. */
  3057. #define UCM_REG_FIC1_INIT_CRD 0xe0210
  3058. /* [RW 1] Arbitration between Input Arbiter groups: 0 - fair Round-Robin; 1
  3059. - strict priority defined by ~ucm_registers_gr_ag_pr.gr_ag_pr;
  3060. ~ucm_registers_gr_ld0_pr.gr_ld0_pr and
  3061. ~ucm_registers_gr_ld1_pr.gr_ld1_pr. */
  3062. #define UCM_REG_GR_ARB_TYPE 0xe0144
  3063. /* [RW 2] Load (FIC0) channel group priority. The lowest priority is 0; the
  3064. highest priority is 3. It is supposed that the Store channel group is
  3065. compliment to the others. */
  3066. #define UCM_REG_GR_LD0_PR 0xe014c
  3067. /* [RW 2] Load (FIC1) channel group priority. The lowest priority is 0; the
  3068. highest priority is 3. It is supposed that the Store channel group is
  3069. compliment to the others. */
  3070. #define UCM_REG_GR_LD1_PR 0xe0150
  3071. /* [RW 2] The queue index for invalidate counter flag decision. */
  3072. #define UCM_REG_INV_CFLG_Q 0xe00e4
  3073. /* [RW 5] The number of double REG-pairs; loaded from the STORM context and
  3074. sent to STORM; for a specific connection type. the double REG-pairs are
  3075. used in order to align to STORM context row size of 128 bits. The offset
  3076. of these data in the STORM context is always 0. Index _i stands for the
  3077. connection type (one of 16). */
  3078. #define UCM_REG_N_SM_CTX_LD_0 0xe0054
  3079. #define UCM_REG_N_SM_CTX_LD_1 0xe0058
  3080. #define UCM_REG_N_SM_CTX_LD_10 0xe007c
  3081. #define UCM_REG_N_SM_CTX_LD_11 0xe0080
  3082. #define UCM_REG_N_SM_CTX_LD_12 0xe0084
  3083. #define UCM_REG_N_SM_CTX_LD_13 0xe0088
  3084. #define UCM_REG_N_SM_CTX_LD_14 0xe008c
  3085. #define UCM_REG_N_SM_CTX_LD_15 0xe0090
  3086. #define UCM_REG_N_SM_CTX_LD_2 0xe005c
  3087. #define UCM_REG_N_SM_CTX_LD_3 0xe0060
  3088. #define UCM_REG_N_SM_CTX_LD_4 0xe0064
  3089. /* [RW 6] The physical queue number 0 per port index (CID[23]) */
  3090. #define UCM_REG_PHYS_QNUM0_0 0xe0110
  3091. #define UCM_REG_PHYS_QNUM0_1 0xe0114
  3092. /* [RW 6] The physical queue number 1 per port index (CID[23]) */
  3093. #define UCM_REG_PHYS_QNUM1_0 0xe0118
  3094. #define UCM_REG_PHYS_QNUM1_1 0xe011c
  3095. /* [RW 8] The Event ID for Timers formatting in case of stop done. */
  3096. #define UCM_REG_STOP_EVNT_ID 0xe00ac
  3097. /* [RC 1] Set when the message length mismatch (relative to last indication)
  3098. at the STORM interface is detected. */
  3099. #define UCM_REG_STORM_LENGTH_MIS 0xe0154
  3100. /* [RW 1] STORM - CM Interface enable. If 0 - the valid input is
  3101. disregarded; acknowledge output is deasserted; all other signals are
  3102. treated as usual; if 1 - normal activity. */
  3103. #define UCM_REG_STORM_UCM_IFEN 0xe0010
  3104. /* [RW 4] Timers output initial credit. Max credit available - 15.Write
  3105. writes the initial credit value; read returns the current value of the
  3106. credit counter. Must be initialized to 4 at start-up. */
  3107. #define UCM_REG_TM_INIT_CRD 0xe021c
  3108. /* [RW 28] The CM header for Timers expiration command. */
  3109. #define UCM_REG_TM_UCM_HDR 0xe009c
  3110. /* [RW 1] Timers - CM Interface enable. If 0 - the valid input is
  3111. disregarded; acknowledge output is deasserted; all other signals are
  3112. treated as usual; if 1 - normal activity. */
  3113. #define UCM_REG_TM_UCM_IFEN 0xe001c
  3114. /* [RW 1] Input tsem Interface enable. If 0 - the valid input is
  3115. disregarded; acknowledge output is deasserted; all other signals are
  3116. treated as usual; if 1 - normal activity. */
  3117. #define UCM_REG_TSEM_IFEN 0xe0024
  3118. /* [RC 1] Set when the message length mismatch (relative to last indication)
  3119. at the tsem interface is detected. */
  3120. #define UCM_REG_TSEM_LENGTH_MIS 0xe015c
  3121. /* [RW 3] The weight of the input tsem in the WRR mechanism. 0 stands for
  3122. weight 8 (the most prioritised); 1 stands for weight 1(least
  3123. prioritised); 2 stands for weight 2; tc. */
  3124. #define UCM_REG_TSEM_WEIGHT 0xe00b4
  3125. /* [RW 1] CM - CFC Interface enable. If 0 - the valid input is disregarded;
  3126. acknowledge output is deasserted; all other signals are treated as usual;
  3127. if 1 - normal activity. */
  3128. #define UCM_REG_UCM_CFC_IFEN 0xe0044
  3129. /* [RW 11] Interrupt mask register #0 read/write */
  3130. #define UCM_REG_UCM_INT_MASK 0xe01d4
  3131. /* [R 11] Interrupt register #0 read */
  3132. #define UCM_REG_UCM_INT_STS 0xe01c8
  3133. /* [RW 2] The size of AG context region 0 in REG-pairs. Designates the MS
  3134. REG-pair number (e.g. if region 0 is 6 REG-pairs; the value should be 5).
  3135. Is used to determine the number of the AG context REG-pairs written back;
  3136. when the Reg1WbFlg isn't set. */
  3137. #define UCM_REG_UCM_REG0_SZ 0xe00dc
  3138. /* [RW 1] CM - STORM 0 Interface enable. If 0 - the acknowledge input is
  3139. disregarded; valid is deasserted; all other signals are treated as usual;
  3140. if 1 - normal activity. */
  3141. #define UCM_REG_UCM_STORM0_IFEN 0xe0004
  3142. /* [RW 1] CM - STORM 1 Interface enable. If 0 - the acknowledge input is
  3143. disregarded; valid is deasserted; all other signals are treated as usual;
  3144. if 1 - normal activity. */
  3145. #define UCM_REG_UCM_STORM1_IFEN 0xe0008
  3146. /* [RW 1] CM - Timers Interface enable. If 0 - the valid input is
  3147. disregarded; acknowledge output is deasserted; all other signals are
  3148. treated as usual; if 1 - normal activity. */
  3149. #define UCM_REG_UCM_TM_IFEN 0xe0020
  3150. /* [RW 1] CM - QM Interface enable. If 0 - the acknowledge input is
  3151. disregarded; valid is deasserted; all other signals are treated as usual;
  3152. if 1 - normal activity. */
  3153. #define UCM_REG_UCM_UQM_IFEN 0xe000c
  3154. /* [RW 1] If set the Q index; received from the QM is inserted to event ID. */
  3155. #define UCM_REG_UCM_UQM_USE_Q 0xe00d8
  3156. /* [RW 6] QM output initial credit. Max credit available - 32.Write writes
  3157. the initial credit value; read returns the current value of the credit
  3158. counter. Must be initialized to 32 at start-up. */
  3159. #define UCM_REG_UQM_INIT_CRD 0xe0220
  3160. /* [RW 3] The weight of the QM (primary) input in the WRR mechanism. 0
  3161. stands for weight 8 (the most prioritised); 1 stands for weight 1(least
  3162. prioritised); 2 stands for weight 2; tc. */
  3163. #define UCM_REG_UQM_P_WEIGHT 0xe00cc
  3164. /* [RW 28] The CM header value for QM request (primary). */
  3165. #define UCM_REG_UQM_UCM_HDR_P 0xe0094
  3166. /* [RW 28] The CM header value for QM request (secondary). */
  3167. #define UCM_REG_UQM_UCM_HDR_S 0xe0098
  3168. /* [RW 1] QM - CM Interface enable. If 0 - the valid input is disregarded;
  3169. acknowledge output is deasserted; all other signals are treated as usual;
  3170. if 1 - normal activity. */
  3171. #define UCM_REG_UQM_UCM_IFEN 0xe0014
  3172. /* [RW 1] Input SDM Interface enable. If 0 - the valid input is disregarded;
  3173. acknowledge output is deasserted; all other signals are treated as usual;
  3174. if 1 - normal activity. */
  3175. #define UCM_REG_USDM_IFEN 0xe0018
  3176. /* [RC 1] Set when the message length mismatch (relative to last indication)
  3177. at the SDM interface is detected. */
  3178. #define UCM_REG_USDM_LENGTH_MIS 0xe0158
  3179. /* [RW 1] Input xsem Interface enable. If 0 - the valid input is
  3180. disregarded; acknowledge output is deasserted; all other signals are
  3181. treated as usual; if 1 - normal activity. */
  3182. #define UCM_REG_XSEM_IFEN 0xe002c
  3183. /* [RC 1] Set when the message length mismatch (relative to last indication)
  3184. at the xsem interface isdetected. */
  3185. #define UCM_REG_XSEM_LENGTH_MIS 0xe0164
  3186. /* [RW 20] Indirect access to the descriptor table of the XX protection
  3187. mechanism. The fields are:[5:0] - message length; 14:6] - message
  3188. pointer; 19:15] - next pointer. */
  3189. #define UCM_REG_XX_DESCR_TABLE 0xe0280
  3190. /* [R 6] Use to read the XX protection Free counter. */
  3191. #define UCM_REG_XX_FREE 0xe016c
  3192. /* [RW 6] Initial value for the credit counter; responsible for fulfilling
  3193. of the Input Stage XX protection buffer by the XX protection pending
  3194. messages. Write writes the initial credit value; read returns the current
  3195. value of the credit counter. Must be initialized to 12 at start-up. */
  3196. #define UCM_REG_XX_INIT_CRD 0xe0224
  3197. /* [RW 6] The maximum number of pending messages; which may be stored in XX
  3198. protection. ~ucm_registers_xx_free.xx_free read on read. */
  3199. #define UCM_REG_XX_MSG_NUM 0xe0228
  3200. /* [RW 8] The Event ID; sent to the STORM in case of XX overflow. */
  3201. #define UCM_REG_XX_OVFL_EVNT_ID 0xe004c
  3202. /* [RW 16] Indirect access to the XX table of the XX protection mechanism.
  3203. The fields are: [4:0] - tail pointer; 10:5] - Link List size; 15:11] -
  3204. header pointer. */
  3205. #define UCM_REG_XX_TABLE 0xe0300
  3206. /* [RW 8] The event id for aggregated interrupt 0 */
  3207. #define USDM_REG_AGG_INT_EVENT_0 0xc4038
  3208. #define USDM_REG_AGG_INT_EVENT_1 0xc403c
  3209. #define USDM_REG_AGG_INT_EVENT_10 0xc4060
  3210. #define USDM_REG_AGG_INT_EVENT_11 0xc4064
  3211. #define USDM_REG_AGG_INT_EVENT_12 0xc4068
  3212. #define USDM_REG_AGG_INT_EVENT_13 0xc406c
  3213. #define USDM_REG_AGG_INT_EVENT_14 0xc4070
  3214. #define USDM_REG_AGG_INT_EVENT_15 0xc4074
  3215. #define USDM_REG_AGG_INT_EVENT_16 0xc4078
  3216. #define USDM_REG_AGG_INT_EVENT_17 0xc407c
  3217. #define USDM_REG_AGG_INT_EVENT_18 0xc4080
  3218. #define USDM_REG_AGG_INT_EVENT_19 0xc4084
  3219. /* [RW 1] For each aggregated interrupt index whether the mode is normal (0)
  3220. or auto-mask-mode (1) */
  3221. #define USDM_REG_AGG_INT_MODE_0 0xc41b8
  3222. #define USDM_REG_AGG_INT_MODE_1 0xc41bc
  3223. #define USDM_REG_AGG_INT_MODE_10 0xc41e0
  3224. #define USDM_REG_AGG_INT_MODE_11 0xc41e4
  3225. #define USDM_REG_AGG_INT_MODE_12 0xc41e8
  3226. #define USDM_REG_AGG_INT_MODE_13 0xc41ec
  3227. #define USDM_REG_AGG_INT_MODE_14 0xc41f0
  3228. #define USDM_REG_AGG_INT_MODE_15 0xc41f4
  3229. #define USDM_REG_AGG_INT_MODE_16 0xc41f8
  3230. #define USDM_REG_AGG_INT_MODE_17 0xc41fc
  3231. #define USDM_REG_AGG_INT_MODE_18 0xc4200
  3232. #define USDM_REG_AGG_INT_MODE_19 0xc4204
  3233. /* [RW 13] The start address in the internal RAM for the cfc_rsp lcid */
  3234. #define USDM_REG_CFC_RSP_START_ADDR 0xc4008
  3235. /* [RW 16] The maximum value of the competion counter #0 */
  3236. #define USDM_REG_CMP_COUNTER_MAX0 0xc401c
  3237. /* [RW 16] The maximum value of the competion counter #1 */
  3238. #define USDM_REG_CMP_COUNTER_MAX1 0xc4020
  3239. /* [RW 16] The maximum value of the competion counter #2 */
  3240. #define USDM_REG_CMP_COUNTER_MAX2 0xc4024
  3241. /* [RW 16] The maximum value of the competion counter #3 */
  3242. #define USDM_REG_CMP_COUNTER_MAX3 0xc4028
  3243. /* [RW 13] The start address in the internal RAM for the completion
  3244. counters. */
  3245. #define USDM_REG_CMP_COUNTER_START_ADDR 0xc400c
  3246. #define USDM_REG_ENABLE_IN1 0xc4238
  3247. #define USDM_REG_ENABLE_IN2 0xc423c
  3248. #define USDM_REG_ENABLE_OUT1 0xc4240
  3249. #define USDM_REG_ENABLE_OUT2 0xc4244
  3250. /* [RW 4] The initial number of messages that can be sent to the pxp control
  3251. interface without receiving any ACK. */
  3252. #define USDM_REG_INIT_CREDIT_PXP_CTRL 0xc44c0
  3253. /* [ST 32] The number of ACK after placement messages received */
  3254. #define USDM_REG_NUM_OF_ACK_AFTER_PLACE 0xc4280
  3255. /* [ST 32] The number of packet end messages received from the parser */
  3256. #define USDM_REG_NUM_OF_PKT_END_MSG 0xc4278
  3257. /* [ST 32] The number of requests received from the pxp async if */
  3258. #define USDM_REG_NUM_OF_PXP_ASYNC_REQ 0xc427c
  3259. /* [ST 32] The number of commands received in queue 0 */
  3260. #define USDM_REG_NUM_OF_Q0_CMD 0xc4248
  3261. /* [ST 32] The number of commands received in queue 10 */
  3262. #define USDM_REG_NUM_OF_Q10_CMD 0xc4270
  3263. /* [ST 32] The number of commands received in queue 11 */
  3264. #define USDM_REG_NUM_OF_Q11_CMD 0xc4274
  3265. /* [ST 32] The number of commands received in queue 1 */
  3266. #define USDM_REG_NUM_OF_Q1_CMD 0xc424c
  3267. /* [ST 32] The number of commands received in queue 2 */
  3268. #define USDM_REG_NUM_OF_Q2_CMD 0xc4250
  3269. /* [ST 32] The number of commands received in queue 3 */
  3270. #define USDM_REG_NUM_OF_Q3_CMD 0xc4254
  3271. /* [ST 32] The number of commands received in queue 4 */
  3272. #define USDM_REG_NUM_OF_Q4_CMD 0xc4258
  3273. /* [ST 32] The number of commands received in queue 5 */
  3274. #define USDM_REG_NUM_OF_Q5_CMD 0xc425c
  3275. /* [ST 32] The number of commands received in queue 6 */
  3276. #define USDM_REG_NUM_OF_Q6_CMD 0xc4260
  3277. /* [ST 32] The number of commands received in queue 7 */
  3278. #define USDM_REG_NUM_OF_Q7_CMD 0xc4264
  3279. /* [ST 32] The number of commands received in queue 8 */
  3280. #define USDM_REG_NUM_OF_Q8_CMD 0xc4268
  3281. /* [ST 32] The number of commands received in queue 9 */
  3282. #define USDM_REG_NUM_OF_Q9_CMD 0xc426c
  3283. /* [RW 13] The start address in the internal RAM for the packet end message */
  3284. #define USDM_REG_PCK_END_MSG_START_ADDR 0xc4014
  3285. /* [RW 13] The start address in the internal RAM for queue counters */
  3286. #define USDM_REG_Q_COUNTER_START_ADDR 0xc4010
  3287. /* [R 1] pxp_ctrl rd_data fifo empty in sdm_dma_rsp block */
  3288. #define USDM_REG_RSP_PXP_CTRL_RDATA_EMPTY 0xc4550
  3289. /* [R 1] parser fifo empty in sdm_sync block */
  3290. #define USDM_REG_SYNC_PARSER_EMPTY 0xc4558
  3291. /* [R 1] parser serial fifo empty in sdm_sync block */
  3292. #define USDM_REG_SYNC_SYNC_EMPTY 0xc4560
  3293. /* [RW 32] Tick for timer counter. Applicable only when
  3294. ~usdm_registers_timer_tick_enable.timer_tick_enable =1 */
  3295. #define USDM_REG_TIMER_TICK 0xc4000
  3296. /* [RW 32] Interrupt mask register #0 read/write */
  3297. #define USDM_REG_USDM_INT_MASK_0 0xc42a0
  3298. #define USDM_REG_USDM_INT_MASK_1 0xc42b0
  3299. /* [RW 11] Parity mask register #0 read/write */
  3300. #define USDM_REG_USDM_PRTY_MASK 0xc42c0
  3301. /* [R 11] Parity register #0 read */
  3302. #define USDM_REG_USDM_PRTY_STS 0xc42b4
  3303. /* [RW 5] The number of time_slots in the arbitration cycle */
  3304. #define USEM_REG_ARB_CYCLE_SIZE 0x300034
  3305. /* [RW 3] The source that is associated with arbitration element 0. Source
  3306. decoding is: 0- foc0; 1-fic1; 2-sleeping thread with priority 0; 3-
  3307. sleeping thread with priority 1; 4- sleeping thread with priority 2 */
  3308. #define USEM_REG_ARB_ELEMENT0 0x300020
  3309. /* [RW 3] The source that is associated with arbitration element 1. Source
  3310. decoding is: 0- foc0; 1-fic1; 2-sleeping thread with priority 0; 3-
  3311. sleeping thread with priority 1; 4- sleeping thread with priority 2.
  3312. Could not be equal to register ~usem_registers_arb_element0.arb_element0 */
  3313. #define USEM_REG_ARB_ELEMENT1 0x300024
  3314. /* [RW 3] The source that is associated with arbitration element 2. Source
  3315. decoding is: 0- foc0; 1-fic1; 2-sleeping thread with priority 0; 3-
  3316. sleeping thread with priority 1; 4- sleeping thread with priority 2.
  3317. Could not be equal to register ~usem_registers_arb_element0.arb_element0
  3318. and ~usem_registers_arb_element1.arb_element1 */
  3319. #define USEM_REG_ARB_ELEMENT2 0x300028
  3320. /* [RW 3] The source that is associated with arbitration element 3. Source
  3321. decoding is: 0- foc0; 1-fic1; 2-sleeping thread with priority 0; 3-
  3322. sleeping thread with priority 1; 4- sleeping thread with priority 2.Could
  3323. not be equal to register ~usem_registers_arb_element0.arb_element0 and
  3324. ~usem_registers_arb_element1.arb_element1 and
  3325. ~usem_registers_arb_element2.arb_element2 */
  3326. #define USEM_REG_ARB_ELEMENT3 0x30002c
  3327. /* [RW 3] The source that is associated with arbitration element 4. Source
  3328. decoding is: 0- foc0; 1-fic1; 2-sleeping thread with priority 0; 3-
  3329. sleeping thread with priority 1; 4- sleeping thread with priority 2.
  3330. Could not be equal to register ~usem_registers_arb_element0.arb_element0
  3331. and ~usem_registers_arb_element1.arb_element1 and
  3332. ~usem_registers_arb_element2.arb_element2 and
  3333. ~usem_registers_arb_element3.arb_element3 */
  3334. #define USEM_REG_ARB_ELEMENT4 0x300030
  3335. #define USEM_REG_ENABLE_IN 0x3000a4
  3336. #define USEM_REG_ENABLE_OUT 0x3000a8
  3337. /* [RW 32] This address space contains all registers and memories that are
  3338. placed in SEM_FAST block. The SEM_FAST registers are described in
  3339. appendix B. In order to access the SEM_FAST registers... the base address
  3340. USEM_REGISTERS_FAST_MEMORY (Offset: 0x320000) should be added to each
  3341. SEM_FAST register offset. */
  3342. #define USEM_REG_FAST_MEMORY 0x320000
  3343. /* [RW 1] Disables input messages from FIC0 May be updated during run_time
  3344. by the microcode */
  3345. #define USEM_REG_FIC0_DISABLE 0x300224
  3346. /* [RW 1] Disables input messages from FIC1 May be updated during run_time
  3347. by the microcode */
  3348. #define USEM_REG_FIC1_DISABLE 0x300234
  3349. /* [RW 15] Interrupt table Read and write access to it is not possible in
  3350. the middle of the work */
  3351. #define USEM_REG_INT_TABLE 0x300400
  3352. /* [ST 24] Statistics register. The number of messages that entered through
  3353. FIC0 */
  3354. #define USEM_REG_MSG_NUM_FIC0 0x300000
  3355. /* [ST 24] Statistics register. The number of messages that entered through
  3356. FIC1 */
  3357. #define USEM_REG_MSG_NUM_FIC1 0x300004
  3358. /* [ST 24] Statistics register. The number of messages that were sent to
  3359. FOC0 */
  3360. #define USEM_REG_MSG_NUM_FOC0 0x300008
  3361. /* [ST 24] Statistics register. The number of messages that were sent to
  3362. FOC1 */
  3363. #define USEM_REG_MSG_NUM_FOC1 0x30000c
  3364. /* [ST 24] Statistics register. The number of messages that were sent to
  3365. FOC2 */
  3366. #define USEM_REG_MSG_NUM_FOC2 0x300010
  3367. /* [ST 24] Statistics register. The number of messages that were sent to
  3368. FOC3 */
  3369. #define USEM_REG_MSG_NUM_FOC3 0x300014
  3370. /* [RW 1] Disables input messages from the passive buffer May be updated
  3371. during run_time by the microcode */
  3372. #define USEM_REG_PAS_DISABLE 0x30024c
  3373. /* [WB 128] Debug only. Passive buffer memory */
  3374. #define USEM_REG_PASSIVE_BUFFER 0x302000
  3375. /* [WB 46] pram memory. B45 is parity; b[44:0] - data. */
  3376. #define USEM_REG_PRAM 0x340000
  3377. /* [R 16] Valid sleeping threads indication have bit per thread */
  3378. #define USEM_REG_SLEEP_THREADS_VALID 0x30026c
  3379. /* [R 1] EXT_STORE FIFO is empty in sem_slow_ls_ext */
  3380. #define USEM_REG_SLOW_EXT_STORE_EMPTY 0x3002a0
  3381. /* [RW 16] List of free threads . There is a bit per thread. */
  3382. #define USEM_REG_THREADS_LIST 0x3002e4
  3383. /* [RW 3] The arbitration scheme of time_slot 0 */
  3384. #define USEM_REG_TS_0_AS 0x300038
  3385. /* [RW 3] The arbitration scheme of time_slot 10 */
  3386. #define USEM_REG_TS_10_AS 0x300060
  3387. /* [RW 3] The arbitration scheme of time_slot 11 */
  3388. #define USEM_REG_TS_11_AS 0x300064
  3389. /* [RW 3] The arbitration scheme of time_slot 12 */
  3390. #define USEM_REG_TS_12_AS 0x300068
  3391. /* [RW 3] The arbitration scheme of time_slot 13 */
  3392. #define USEM_REG_TS_13_AS 0x30006c
  3393. /* [RW 3] The arbitration scheme of time_slot 14 */
  3394. #define USEM_REG_TS_14_AS 0x300070
  3395. /* [RW 3] The arbitration scheme of time_slot 15 */
  3396. #define USEM_REG_TS_15_AS 0x300074
  3397. /* [RW 3] The arbitration scheme of time_slot 16 */
  3398. #define USEM_REG_TS_16_AS 0x300078
  3399. /* [RW 3] The arbitration scheme of time_slot 17 */
  3400. #define USEM_REG_TS_17_AS 0x30007c
  3401. /* [RW 3] The arbitration scheme of time_slot 18 */
  3402. #define USEM_REG_TS_18_AS 0x300080
  3403. /* [RW 3] The arbitration scheme of time_slot 1 */
  3404. #define USEM_REG_TS_1_AS 0x30003c
  3405. /* [RW 3] The arbitration scheme of time_slot 2 */
  3406. #define USEM_REG_TS_2_AS 0x300040
  3407. /* [RW 3] The arbitration scheme of time_slot 3 */
  3408. #define USEM_REG_TS_3_AS 0x300044
  3409. /* [RW 3] The arbitration scheme of time_slot 4 */
  3410. #define USEM_REG_TS_4_AS 0x300048
  3411. /* [RW 3] The arbitration scheme of time_slot 5 */
  3412. #define USEM_REG_TS_5_AS 0x30004c
  3413. /* [RW 3] The arbitration scheme of time_slot 6 */
  3414. #define USEM_REG_TS_6_AS 0x300050
  3415. /* [RW 3] The arbitration scheme of time_slot 7 */
  3416. #define USEM_REG_TS_7_AS 0x300054
  3417. /* [RW 3] The arbitration scheme of time_slot 8 */
  3418. #define USEM_REG_TS_8_AS 0x300058
  3419. /* [RW 3] The arbitration scheme of time_slot 9 */
  3420. #define USEM_REG_TS_9_AS 0x30005c
  3421. /* [RW 32] Interrupt mask register #0 read/write */
  3422. #define USEM_REG_USEM_INT_MASK_0 0x300110
  3423. #define USEM_REG_USEM_INT_MASK_1 0x300120
  3424. /* [RW 32] Parity mask register #0 read/write */
  3425. #define USEM_REG_USEM_PRTY_MASK_0 0x300130
  3426. #define USEM_REG_USEM_PRTY_MASK_1 0x300140
  3427. /* [R 32] Parity register #0 read */
  3428. #define USEM_REG_USEM_PRTY_STS_0 0x300124
  3429. #define USEM_REG_USEM_PRTY_STS_1 0x300134
  3430. /* [RW 2] The queue index for registration on Aux1 counter flag. */
  3431. #define XCM_REG_AUX1_Q 0x20134
  3432. /* [RW 2] Per each decision rule the queue index to register to. */
  3433. #define XCM_REG_AUX_CNT_FLG_Q_19 0x201b0
  3434. /* [R 5] Used to read the XX protection CAM occupancy counter. */
  3435. #define XCM_REG_CAM_OCCUP 0x20244
  3436. /* [RW 1] CDU AG read Interface enable. If 0 - the request input is
  3437. disregarded; valid output is deasserted; all other signals are treated as
  3438. usual; if 1 - normal activity. */
  3439. #define XCM_REG_CDU_AG_RD_IFEN 0x20044
  3440. /* [RW 1] CDU AG write Interface enable. If 0 - the request and valid input
  3441. are disregarded; all other signals are treated as usual; if 1 - normal
  3442. activity. */
  3443. #define XCM_REG_CDU_AG_WR_IFEN 0x20040
  3444. /* [RW 1] CDU STORM read Interface enable. If 0 - the request input is
  3445. disregarded; valid output is deasserted; all other signals are treated as
  3446. usual; if 1 - normal activity. */
  3447. #define XCM_REG_CDU_SM_RD_IFEN 0x2004c
  3448. /* [RW 1] CDU STORM write Interface enable. If 0 - the request and valid
  3449. input is disregarded; all other signals are treated as usual; if 1 -
  3450. normal activity. */
  3451. #define XCM_REG_CDU_SM_WR_IFEN 0x20048
  3452. /* [RW 4] CFC output initial credit. Max credit available - 15.Write writes
  3453. the initial credit value; read returns the current value of the credit
  3454. counter. Must be initialized to 1 at start-up. */
  3455. #define XCM_REG_CFC_INIT_CRD 0x20404
  3456. /* [RW 3] The weight of the CP input in the WRR mechanism. 0 stands for
  3457. weight 8 (the most prioritised); 1 stands for weight 1(least
  3458. prioritised); 2 stands for weight 2; tc. */
  3459. #define XCM_REG_CP_WEIGHT 0x200dc
  3460. /* [RW 1] Input csem Interface enable. If 0 - the valid input is
  3461. disregarded; acknowledge output is deasserted; all other signals are
  3462. treated as usual; if 1 - normal activity. */
  3463. #define XCM_REG_CSEM_IFEN 0x20028
  3464. /* [RC 1] Set at message length mismatch (relative to last indication) at
  3465. the csem interface. */
  3466. #define XCM_REG_CSEM_LENGTH_MIS 0x20228
  3467. /* [RW 3] The weight of the input csem in the WRR mechanism. 0 stands for
  3468. weight 8 (the most prioritised); 1 stands for weight 1(least
  3469. prioritised); 2 stands for weight 2; tc. */
  3470. #define XCM_REG_CSEM_WEIGHT 0x200c4
  3471. /* [RW 1] Input dorq Interface enable. If 0 - the valid input is
  3472. disregarded; acknowledge output is deasserted; all other signals are
  3473. treated as usual; if 1 - normal activity. */
  3474. #define XCM_REG_DORQ_IFEN 0x20030
  3475. /* [RC 1] Set at message length mismatch (relative to last indication) at
  3476. the dorq interface. */
  3477. #define XCM_REG_DORQ_LENGTH_MIS 0x20230
  3478. /* [RW 8] The Event ID in case the ErrorFlg input message bit is set. */
  3479. #define XCM_REG_ERR_EVNT_ID 0x200b0
  3480. /* [RW 28] The CM erroneous header for QM and Timers formatting. */
  3481. #define XCM_REG_ERR_XCM_HDR 0x200ac
  3482. /* [RW 8] The Event ID for Timers expiration. */
  3483. #define XCM_REG_EXPR_EVNT_ID 0x200b4
  3484. /* [RW 8] FIC0 output initial credit. Max credit available - 255.Write
  3485. writes the initial credit value; read returns the current value of the
  3486. credit counter. Must be initialized to 64 at start-up. */
  3487. #define XCM_REG_FIC0_INIT_CRD 0x2040c
  3488. /* [RW 8] FIC1 output initial credit. Max credit available - 255.Write
  3489. writes the initial credit value; read returns the current value of the
  3490. credit counter. Must be initialized to 64 at start-up. */
  3491. #define XCM_REG_FIC1_INIT_CRD 0x20410
  3492. /* [RW 8] The maximum delayed ACK counter value.Must be at least 2. Per port
  3493. value. */
  3494. #define XCM_REG_GLB_DEL_ACK_MAX_CNT_0 0x20118
  3495. #define XCM_REG_GLB_DEL_ACK_MAX_CNT_1 0x2011c
  3496. /* [RW 28] The delayed ACK timeout in ticks. Per port value. */
  3497. #define XCM_REG_GLB_DEL_ACK_TMR_VAL_0 0x20108
  3498. #define XCM_REG_GLB_DEL_ACK_TMR_VAL_1 0x2010c
  3499. /* [RW 1] Arbitratiojn between Input Arbiter groups: 0 - fair Round-Robin; 1
  3500. - strict priority defined by ~xcm_registers_gr_ag_pr.gr_ag_pr;
  3501. ~xcm_registers_gr_ld0_pr.gr_ld0_pr and
  3502. ~xcm_registers_gr_ld1_pr.gr_ld1_pr. */
  3503. #define XCM_REG_GR_ARB_TYPE 0x2020c
  3504. /* [RW 2] Load (FIC0) channel group priority. The lowest priority is 0; the
  3505. highest priority is 3. It is supposed that the Channel group is the
  3506. compliment of the other 3 groups. */
  3507. #define XCM_REG_GR_LD0_PR 0x20214
  3508. /* [RW 2] Load (FIC1) channel group priority. The lowest priority is 0; the
  3509. highest priority is 3. It is supposed that the Channel group is the
  3510. compliment of the other 3 groups. */
  3511. #define XCM_REG_GR_LD1_PR 0x20218
  3512. /* [RW 1] Input nig0 Interface enable. If 0 - the valid input is
  3513. disregarded; acknowledge output is deasserted; all other signals are
  3514. treated as usual; if 1 - normal activity. */
  3515. #define XCM_REG_NIG0_IFEN 0x20038
  3516. /* [RC 1] Set at message length mismatch (relative to last indication) at
  3517. the nig0 interface. */
  3518. #define XCM_REG_NIG0_LENGTH_MIS 0x20238
  3519. /* [RW 1] Input nig1 Interface enable. If 0 - the valid input is
  3520. disregarded; acknowledge output is deasserted; all other signals are
  3521. treated as usual; if 1 - normal activity. */
  3522. #define XCM_REG_NIG1_IFEN 0x2003c
  3523. /* [RC 1] Set at message length mismatch (relative to last indication) at
  3524. the nig1 interface. */
  3525. #define XCM_REG_NIG1_LENGTH_MIS 0x2023c
  3526. /* [RW 3] The weight of the input nig1 in the WRR mechanism. 0 stands for
  3527. weight 8 (the most prioritised); 1 stands for weight 1(least
  3528. prioritised); 2 stands for weight 2; tc. */
  3529. #define XCM_REG_NIG1_WEIGHT 0x200d8
  3530. /* [RW 5] The number of double REG-pairs; loaded from the STORM context and
  3531. sent to STORM; for a specific connection type. The double REG-pairs are
  3532. used in order to align to STORM context row size of 128 bits. The offset
  3533. of these data in the STORM context is always 0. Index _i stands for the
  3534. connection type (one of 16). */
  3535. #define XCM_REG_N_SM_CTX_LD_0 0x20060
  3536. #define XCM_REG_N_SM_CTX_LD_1 0x20064
  3537. #define XCM_REG_N_SM_CTX_LD_10 0x20088
  3538. #define XCM_REG_N_SM_CTX_LD_11 0x2008c
  3539. #define XCM_REG_N_SM_CTX_LD_12 0x20090
  3540. #define XCM_REG_N_SM_CTX_LD_13 0x20094
  3541. #define XCM_REG_N_SM_CTX_LD_14 0x20098
  3542. #define XCM_REG_N_SM_CTX_LD_15 0x2009c
  3543. #define XCM_REG_N_SM_CTX_LD_2 0x20068
  3544. #define XCM_REG_N_SM_CTX_LD_3 0x2006c
  3545. #define XCM_REG_N_SM_CTX_LD_4 0x20070
  3546. /* [RW 1] Input pbf Interface enable. If 0 - the valid input is disregarded;
  3547. acknowledge output is deasserted; all other signals are treated as usual;
  3548. if 1 - normal activity. */
  3549. #define XCM_REG_PBF_IFEN 0x20034
  3550. /* [RC 1] Set at message length mismatch (relative to last indication) at
  3551. the pbf interface. */
  3552. #define XCM_REG_PBF_LENGTH_MIS 0x20234
  3553. /* [RW 3] The weight of the input pbf in the WRR mechanism. 0 stands for
  3554. weight 8 (the most prioritised); 1 stands for weight 1(least
  3555. prioritised); 2 stands for weight 2; tc. */
  3556. #define XCM_REG_PBF_WEIGHT 0x200d0
  3557. /* [RW 8] The Event ID for Timers formatting in case of stop done. */
  3558. #define XCM_REG_STOP_EVNT_ID 0x200b8
  3559. /* [RC 1] Set at message length mismatch (relative to last indication) at
  3560. the STORM interface. */
  3561. #define XCM_REG_STORM_LENGTH_MIS 0x2021c
  3562. /* [RW 3] The weight of the STORM input in the WRR mechanism. 0 stands for
  3563. weight 8 (the most prioritised); 1 stands for weight 1(least
  3564. prioritised); 2 stands for weight 2; tc. */
  3565. #define XCM_REG_STORM_WEIGHT 0x200bc
  3566. /* [RW 1] STORM - CM Interface enable. If 0 - the valid input is
  3567. disregarded; acknowledge output is deasserted; all other signals are
  3568. treated as usual; if 1 - normal activity. */
  3569. #define XCM_REG_STORM_XCM_IFEN 0x20010
  3570. /* [RW 4] Timers output initial credit. Max credit available - 15.Write
  3571. writes the initial credit value; read returns the current value of the
  3572. credit counter. Must be initialized to 4 at start-up. */
  3573. #define XCM_REG_TM_INIT_CRD 0x2041c
  3574. /* [RW 28] The CM header for Timers expiration command. */
  3575. #define XCM_REG_TM_XCM_HDR 0x200a8
  3576. /* [RW 1] Timers - CM Interface enable. If 0 - the valid input is
  3577. disregarded; acknowledge output is deasserted; all other signals are
  3578. treated as usual; if 1 - normal activity. */
  3579. #define XCM_REG_TM_XCM_IFEN 0x2001c
  3580. /* [RW 1] Input tsem Interface enable. If 0 - the valid input is
  3581. disregarded; acknowledge output is deasserted; all other signals are
  3582. treated as usual; if 1 - normal activity. */
  3583. #define XCM_REG_TSEM_IFEN 0x20024
  3584. /* [RC 1] Set at message length mismatch (relative to last indication) at
  3585. the tsem interface. */
  3586. #define XCM_REG_TSEM_LENGTH_MIS 0x20224
  3587. /* [RW 3] The weight of the input tsem in the WRR mechanism. 0 stands for
  3588. weight 8 (the most prioritised); 1 stands for weight 1(least
  3589. prioritised); 2 stands for weight 2; tc. */
  3590. #define XCM_REG_TSEM_WEIGHT 0x200c0
  3591. /* [RW 2] The queue index for registration on UNA greater NXT decision rule. */
  3592. #define XCM_REG_UNA_GT_NXT_Q 0x20120
  3593. /* [RW 1] Input usem Interface enable. If 0 - the valid input is
  3594. disregarded; acknowledge output is deasserted; all other signals are
  3595. treated as usual; if 1 - normal activity. */
  3596. #define XCM_REG_USEM_IFEN 0x2002c
  3597. /* [RC 1] Message length mismatch (relative to last indication) at the usem
  3598. interface. */
  3599. #define XCM_REG_USEM_LENGTH_MIS 0x2022c
  3600. /* [RW 3] The weight of the input usem in the WRR mechanism. 0 stands for
  3601. weight 8 (the most prioritised); 1 stands for weight 1(least
  3602. prioritised); 2 stands for weight 2; tc. */
  3603. #define XCM_REG_USEM_WEIGHT 0x200c8
  3604. /* [RW 2] DA counter command; used in case of window update doorbell.The
  3605. first index stands for the value DaEnable of that connection. The second
  3606. index stands for port number. */
  3607. #define XCM_REG_WU_DA_CNT_CMD00 0x201d4
  3608. /* [RW 2] DA counter command; used in case of window update doorbell.The
  3609. first index stands for the value DaEnable of that connection. The second
  3610. index stands for port number. */
  3611. #define XCM_REG_WU_DA_CNT_CMD01 0x201d8
  3612. /* [RW 2] DA counter command; used in case of window update doorbell.The
  3613. first index stands for the value DaEnable of that connection. The second
  3614. index stands for port number. */
  3615. #define XCM_REG_WU_DA_CNT_CMD10 0x201dc
  3616. /* [RW 2] DA counter command; used in case of window update doorbell.The
  3617. first index stands for the value DaEnable of that connection. The second
  3618. index stands for port number. */
  3619. #define XCM_REG_WU_DA_CNT_CMD11 0x201e0
  3620. /* [RW 8] DA counter update value used in case of window update doorbell.The
  3621. first index stands for the value DaEnable of that connection. The second
  3622. index stands for port number. */
  3623. #define XCM_REG_WU_DA_CNT_UPD_VAL00 0x201e4
  3624. /* [RW 8] DA counter update value; used in case of window update
  3625. doorbell.The first index stands for the value DaEnable of that
  3626. connection. The second index stands for port number. */
  3627. #define XCM_REG_WU_DA_CNT_UPD_VAL01 0x201e8
  3628. /* [RW 8] DA counter update value; used in case of window update
  3629. doorbell.The first index stands for the value DaEnable of that
  3630. connection. The second index stands for port number. */
  3631. #define XCM_REG_WU_DA_CNT_UPD_VAL10 0x201ec
  3632. /* [RW 8] DA counter update value; used in case of window update
  3633. doorbell.The first index stands for the value DaEnable of that
  3634. connection. The second index stands for port number. */
  3635. #define XCM_REG_WU_DA_CNT_UPD_VAL11 0x201f0
  3636. /* [RW 1] DA timer command; used in case of window update doorbell.The first
  3637. index stands for the value DaEnable of that connection. The second index
  3638. stands for port number. */
  3639. #define XCM_REG_WU_DA_SET_TMR_CNT_FLG_CMD00 0x201c4
  3640. /* [RW 1] DA timer command; used in case of window update doorbell.The first
  3641. index stands for the value DaEnable of that connection. The second index
  3642. stands for port number. */
  3643. #define XCM_REG_WU_DA_SET_TMR_CNT_FLG_CMD01 0x201c8
  3644. /* [RW 1] DA timer command; used in case of window update doorbell.The first
  3645. index stands for the value DaEnable of that connection. The second index
  3646. stands for port number. */
  3647. #define XCM_REG_WU_DA_SET_TMR_CNT_FLG_CMD10 0x201cc
  3648. /* [RW 1] DA timer command; used in case of window update doorbell.The first
  3649. index stands for the value DaEnable of that connection. The second index
  3650. stands for port number. */
  3651. #define XCM_REG_WU_DA_SET_TMR_CNT_FLG_CMD11 0x201d0
  3652. /* [RW 1] CM - CFC Interface enable. If 0 - the valid input is disregarded;
  3653. acknowledge output is deasserted; all other signals are treated as usual;
  3654. if 1 - normal activity. */
  3655. #define XCM_REG_XCM_CFC_IFEN 0x20050
  3656. /* [RW 14] Interrupt mask register #0 read/write */
  3657. #define XCM_REG_XCM_INT_MASK 0x202b4
  3658. /* [R 14] Interrupt register #0 read */
  3659. #define XCM_REG_XCM_INT_STS 0x202a8
  3660. /* [RW 4] The size of AG context region 0 in REG-pairs. Designates the MS
  3661. REG-pair number (e.g. if region 0 is 6 REG-pairs; the value should be 5).
  3662. Is used to determine the number of the AG context REG-pairs written back;
  3663. when the Reg1WbFlg isn't set. */
  3664. #define XCM_REG_XCM_REG0_SZ 0x200f4
  3665. /* [RW 1] CM - STORM 0 Interface enable. If 0 - the acknowledge input is
  3666. disregarded; valid is deasserted; all other signals are treated as usual;
  3667. if 1 - normal activity. */
  3668. #define XCM_REG_XCM_STORM0_IFEN 0x20004
  3669. /* [RW 1] CM - STORM 1 Interface enable. If 0 - the acknowledge input is
  3670. disregarded; valid is deasserted; all other signals are treated as usual;
  3671. if 1 - normal activity. */
  3672. #define XCM_REG_XCM_STORM1_IFEN 0x20008
  3673. /* [RW 1] CM - Timers Interface enable. If 0 - the valid input is
  3674. disregarded; acknowledge output is deasserted; all other signals are
  3675. treated as usual; if 1 - normal activity. */
  3676. #define XCM_REG_XCM_TM_IFEN 0x20020
  3677. /* [RW 1] CM - QM Interface enable. If 0 - the acknowledge input is
  3678. disregarded; valid is deasserted; all other signals are treated as usual;
  3679. if 1 - normal activity. */
  3680. #define XCM_REG_XCM_XQM_IFEN 0x2000c
  3681. /* [RW 1] If set the Q index; received from the QM is inserted to event ID. */
  3682. #define XCM_REG_XCM_XQM_USE_Q 0x200f0
  3683. /* [RW 4] The value by which CFC updates the activity counter at QM bypass. */
  3684. #define XCM_REG_XQM_BYP_ACT_UPD 0x200fc
  3685. /* [RW 6] QM output initial credit. Max credit available - 32.Write writes
  3686. the initial credit value; read returns the current value of the credit
  3687. counter. Must be initialized to 32 at start-up. */
  3688. #define XCM_REG_XQM_INIT_CRD 0x20420
  3689. /* [RW 3] The weight of the QM (primary) input in the WRR mechanism. 0
  3690. stands for weight 8 (the most prioritised); 1 stands for weight 1(least
  3691. prioritised); 2 stands for weight 2; tc. */
  3692. #define XCM_REG_XQM_P_WEIGHT 0x200e4
  3693. /* [RW 28] The CM header value for QM request (primary). */
  3694. #define XCM_REG_XQM_XCM_HDR_P 0x200a0
  3695. /* [RW 28] The CM header value for QM request (secondary). */
  3696. #define XCM_REG_XQM_XCM_HDR_S 0x200a4
  3697. /* [RW 1] QM - CM Interface enable. If 0 - the valid input is disregarded;
  3698. acknowledge output is deasserted; all other signals are treated as usual;
  3699. if 1 - normal activity. */
  3700. #define XCM_REG_XQM_XCM_IFEN 0x20014
  3701. /* [RW 1] Input SDM Interface enable. If 0 - the valid input is disregarded;
  3702. acknowledge output is deasserted; all other signals are treated as usual;
  3703. if 1 - normal activity. */
  3704. #define XCM_REG_XSDM_IFEN 0x20018
  3705. /* [RC 1] Set at message length mismatch (relative to last indication) at
  3706. the SDM interface. */
  3707. #define XCM_REG_XSDM_LENGTH_MIS 0x20220
  3708. /* [RW 3] The weight of the SDM input in the WRR mechanism. 0 stands for
  3709. weight 8 (the most prioritised); 1 stands for weight 1(least
  3710. prioritised); 2 stands for weight 2; tc. */
  3711. #define XCM_REG_XSDM_WEIGHT 0x200e0
  3712. /* [RW 17] Indirect access to the descriptor table of the XX protection
  3713. mechanism. The fields are: [5:0] - message length; 11:6] - message
  3714. pointer; 16:12] - next pointer. */
  3715. #define XCM_REG_XX_DESCR_TABLE 0x20480
  3716. /* [R 6] Used to read the XX protection Free counter. */
  3717. #define XCM_REG_XX_FREE 0x20240
  3718. /* [RW 6] Initial value for the credit counter; responsible for fulfilling
  3719. of the Input Stage XX protection buffer by the XX protection pending
  3720. messages. Max credit available - 3.Write writes the initial credit value;
  3721. read returns the current value of the credit counter. Must be initialized
  3722. to 2 at start-up. */
  3723. #define XCM_REG_XX_INIT_CRD 0x20424
  3724. /* [RW 6] The maximum number of pending messages; which may be stored in XX
  3725. protection. ~xcm_registers_xx_free.xx_free read on read. */
  3726. #define XCM_REG_XX_MSG_NUM 0x20428
  3727. /* [RW 8] The Event ID; sent to the STORM in case of XX overflow. */
  3728. #define XCM_REG_XX_OVFL_EVNT_ID 0x20058
  3729. /* [RW 15] Indirect access to the XX table of the XX protection mechanism.
  3730. The fields are:[4:0] - tail pointer; 9:5] - Link List size; 14:10] -
  3731. header pointer. */
  3732. #define XCM_REG_XX_TABLE 0x20500
  3733. /* [RW 8] The event id for aggregated interrupt 0 */
  3734. #define XSDM_REG_AGG_INT_EVENT_0 0x166038
  3735. #define XSDM_REG_AGG_INT_EVENT_1 0x16603c
  3736. #define XSDM_REG_AGG_INT_EVENT_10 0x166060
  3737. #define XSDM_REG_AGG_INT_EVENT_11 0x166064
  3738. #define XSDM_REG_AGG_INT_EVENT_12 0x166068
  3739. #define XSDM_REG_AGG_INT_EVENT_13 0x16606c
  3740. #define XSDM_REG_AGG_INT_EVENT_14 0x166070
  3741. #define XSDM_REG_AGG_INT_EVENT_15 0x166074
  3742. #define XSDM_REG_AGG_INT_EVENT_16 0x166078
  3743. #define XSDM_REG_AGG_INT_EVENT_17 0x16607c
  3744. #define XSDM_REG_AGG_INT_EVENT_18 0x166080
  3745. #define XSDM_REG_AGG_INT_EVENT_19 0x166084
  3746. #define XSDM_REG_AGG_INT_EVENT_2 0x166040
  3747. #define XSDM_REG_AGG_INT_EVENT_20 0x166088
  3748. #define XSDM_REG_AGG_INT_EVENT_21 0x16608c
  3749. #define XSDM_REG_AGG_INT_EVENT_22 0x166090
  3750. #define XSDM_REG_AGG_INT_EVENT_23 0x166094
  3751. #define XSDM_REG_AGG_INT_EVENT_24 0x166098
  3752. #define XSDM_REG_AGG_INT_EVENT_25 0x16609c
  3753. #define XSDM_REG_AGG_INT_EVENT_26 0x1660a0
  3754. #define XSDM_REG_AGG_INT_EVENT_27 0x1660a4
  3755. #define XSDM_REG_AGG_INT_EVENT_28 0x1660a8
  3756. #define XSDM_REG_AGG_INT_EVENT_29 0x1660ac
  3757. /* [RW 1] For each aggregated interrupt index whether the mode is normal (0)
  3758. or auto-mask-mode (1) */
  3759. #define XSDM_REG_AGG_INT_MODE_0 0x1661b8
  3760. #define XSDM_REG_AGG_INT_MODE_1 0x1661bc
  3761. #define XSDM_REG_AGG_INT_MODE_10 0x1661e0
  3762. #define XSDM_REG_AGG_INT_MODE_11 0x1661e4
  3763. #define XSDM_REG_AGG_INT_MODE_12 0x1661e8
  3764. #define XSDM_REG_AGG_INT_MODE_13 0x1661ec
  3765. #define XSDM_REG_AGG_INT_MODE_14 0x1661f0
  3766. #define XSDM_REG_AGG_INT_MODE_15 0x1661f4
  3767. #define XSDM_REG_AGG_INT_MODE_16 0x1661f8
  3768. #define XSDM_REG_AGG_INT_MODE_17 0x1661fc
  3769. #define XSDM_REG_AGG_INT_MODE_18 0x166200
  3770. #define XSDM_REG_AGG_INT_MODE_19 0x166204
  3771. /* [RW 13] The start address in the internal RAM for the cfc_rsp lcid */
  3772. #define XSDM_REG_CFC_RSP_START_ADDR 0x166008
  3773. /* [RW 16] The maximum value of the competion counter #0 */
  3774. #define XSDM_REG_CMP_COUNTER_MAX0 0x16601c
  3775. /* [RW 16] The maximum value of the competion counter #1 */
  3776. #define XSDM_REG_CMP_COUNTER_MAX1 0x166020
  3777. /* [RW 16] The maximum value of the competion counter #2 */
  3778. #define XSDM_REG_CMP_COUNTER_MAX2 0x166024
  3779. /* [RW 16] The maximum value of the competion counter #3 */
  3780. #define XSDM_REG_CMP_COUNTER_MAX3 0x166028
  3781. /* [RW 13] The start address in the internal RAM for the completion
  3782. counters. */
  3783. #define XSDM_REG_CMP_COUNTER_START_ADDR 0x16600c
  3784. #define XSDM_REG_ENABLE_IN1 0x166238
  3785. #define XSDM_REG_ENABLE_IN2 0x16623c
  3786. #define XSDM_REG_ENABLE_OUT1 0x166240
  3787. #define XSDM_REG_ENABLE_OUT2 0x166244
  3788. /* [RW 4] The initial number of messages that can be sent to the pxp control
  3789. interface without receiving any ACK. */
  3790. #define XSDM_REG_INIT_CREDIT_PXP_CTRL 0x1664bc
  3791. /* [ST 32] The number of ACK after placement messages received */
  3792. #define XSDM_REG_NUM_OF_ACK_AFTER_PLACE 0x16627c
  3793. /* [ST 32] The number of packet end messages received from the parser */
  3794. #define XSDM_REG_NUM_OF_PKT_END_MSG 0x166274
  3795. /* [ST 32] The number of requests received from the pxp async if */
  3796. #define XSDM_REG_NUM_OF_PXP_ASYNC_REQ 0x166278
  3797. /* [ST 32] The number of commands received in queue 0 */
  3798. #define XSDM_REG_NUM_OF_Q0_CMD 0x166248
  3799. /* [ST 32] The number of commands received in queue 10 */
  3800. #define XSDM_REG_NUM_OF_Q10_CMD 0x16626c
  3801. /* [ST 32] The number of commands received in queue 11 */
  3802. #define XSDM_REG_NUM_OF_Q11_CMD 0x166270
  3803. /* [ST 32] The number of commands received in queue 1 */
  3804. #define XSDM_REG_NUM_OF_Q1_CMD 0x16624c
  3805. /* [ST 32] The number of commands received in queue 3 */
  3806. #define XSDM_REG_NUM_OF_Q3_CMD 0x166250
  3807. /* [ST 32] The number of commands received in queue 4 */
  3808. #define XSDM_REG_NUM_OF_Q4_CMD 0x166254
  3809. /* [ST 32] The number of commands received in queue 5 */
  3810. #define XSDM_REG_NUM_OF_Q5_CMD 0x166258
  3811. /* [ST 32] The number of commands received in queue 6 */
  3812. #define XSDM_REG_NUM_OF_Q6_CMD 0x16625c
  3813. /* [ST 32] The number of commands received in queue 7 */
  3814. #define XSDM_REG_NUM_OF_Q7_CMD 0x166260
  3815. /* [ST 32] The number of commands received in queue 8 */
  3816. #define XSDM_REG_NUM_OF_Q8_CMD 0x166264
  3817. /* [ST 32] The number of commands received in queue 9 */
  3818. #define XSDM_REG_NUM_OF_Q9_CMD 0x166268
  3819. /* [RW 13] The start address in the internal RAM for queue counters */
  3820. #define XSDM_REG_Q_COUNTER_START_ADDR 0x166010
  3821. /* [R 1] pxp_ctrl rd_data fifo empty in sdm_dma_rsp block */
  3822. #define XSDM_REG_RSP_PXP_CTRL_RDATA_EMPTY 0x166548
  3823. /* [R 1] parser fifo empty in sdm_sync block */
  3824. #define XSDM_REG_SYNC_PARSER_EMPTY 0x166550
  3825. /* [R 1] parser serial fifo empty in sdm_sync block */
  3826. #define XSDM_REG_SYNC_SYNC_EMPTY 0x166558
  3827. /* [RW 32] Tick for timer counter. Applicable only when
  3828. ~xsdm_registers_timer_tick_enable.timer_tick_enable =1 */
  3829. #define XSDM_REG_TIMER_TICK 0x166000
  3830. /* [RW 32] Interrupt mask register #0 read/write */
  3831. #define XSDM_REG_XSDM_INT_MASK_0 0x16629c
  3832. #define XSDM_REG_XSDM_INT_MASK_1 0x1662ac
  3833. /* [RW 11] Parity mask register #0 read/write */
  3834. #define XSDM_REG_XSDM_PRTY_MASK 0x1662bc
  3835. /* [R 11] Parity register #0 read */
  3836. #define XSDM_REG_XSDM_PRTY_STS 0x1662b0
  3837. /* [RW 5] The number of time_slots in the arbitration cycle */
  3838. #define XSEM_REG_ARB_CYCLE_SIZE 0x280034
  3839. /* [RW 3] The source that is associated with arbitration element 0. Source
  3840. decoding is: 0- foc0; 1-fic1; 2-sleeping thread with priority 0; 3-
  3841. sleeping thread with priority 1; 4- sleeping thread with priority 2 */
  3842. #define XSEM_REG_ARB_ELEMENT0 0x280020
  3843. /* [RW 3] The source that is associated with arbitration element 1. Source
  3844. decoding is: 0- foc0; 1-fic1; 2-sleeping thread with priority 0; 3-
  3845. sleeping thread with priority 1; 4- sleeping thread with priority 2.
  3846. Could not be equal to register ~xsem_registers_arb_element0.arb_element0 */
  3847. #define XSEM_REG_ARB_ELEMENT1 0x280024
  3848. /* [RW 3] The source that is associated with arbitration element 2. Source
  3849. decoding is: 0- foc0; 1-fic1; 2-sleeping thread with priority 0; 3-
  3850. sleeping thread with priority 1; 4- sleeping thread with priority 2.
  3851. Could not be equal to register ~xsem_registers_arb_element0.arb_element0
  3852. and ~xsem_registers_arb_element1.arb_element1 */
  3853. #define XSEM_REG_ARB_ELEMENT2 0x280028
  3854. /* [RW 3] The source that is associated with arbitration element 3. Source
  3855. decoding is: 0- foc0; 1-fic1; 2-sleeping thread with priority 0; 3-
  3856. sleeping thread with priority 1; 4- sleeping thread with priority 2.Could
  3857. not be equal to register ~xsem_registers_arb_element0.arb_element0 and
  3858. ~xsem_registers_arb_element1.arb_element1 and
  3859. ~xsem_registers_arb_element2.arb_element2 */
  3860. #define XSEM_REG_ARB_ELEMENT3 0x28002c
  3861. /* [RW 3] The source that is associated with arbitration element 4. Source
  3862. decoding is: 0- foc0; 1-fic1; 2-sleeping thread with priority 0; 3-
  3863. sleeping thread with priority 1; 4- sleeping thread with priority 2.
  3864. Could not be equal to register ~xsem_registers_arb_element0.arb_element0
  3865. and ~xsem_registers_arb_element1.arb_element1 and
  3866. ~xsem_registers_arb_element2.arb_element2 and
  3867. ~xsem_registers_arb_element3.arb_element3 */
  3868. #define XSEM_REG_ARB_ELEMENT4 0x280030
  3869. #define XSEM_REG_ENABLE_IN 0x2800a4
  3870. #define XSEM_REG_ENABLE_OUT 0x2800a8
  3871. /* [RW 32] This address space contains all registers and memories that are
  3872. placed in SEM_FAST block. The SEM_FAST registers are described in
  3873. appendix B. In order to access the SEM_FAST registers the base address
  3874. XSEM_REGISTERS_FAST_MEMORY (Offset: 0x2a0000) should be added to each
  3875. SEM_FAST register offset. */
  3876. #define XSEM_REG_FAST_MEMORY 0x2a0000
  3877. /* [RW 1] Disables input messages from FIC0 May be updated during run_time
  3878. by the microcode */
  3879. #define XSEM_REG_FIC0_DISABLE 0x280224
  3880. /* [RW 1] Disables input messages from FIC1 May be updated during run_time
  3881. by the microcode */
  3882. #define XSEM_REG_FIC1_DISABLE 0x280234
  3883. /* [RW 15] Interrupt table Read and write access to it is not possible in
  3884. the middle of the work */
  3885. #define XSEM_REG_INT_TABLE 0x280400
  3886. /* [ST 24] Statistics register. The number of messages that entered through
  3887. FIC0 */
  3888. #define XSEM_REG_MSG_NUM_FIC0 0x280000
  3889. /* [ST 24] Statistics register. The number of messages that entered through
  3890. FIC1 */
  3891. #define XSEM_REG_MSG_NUM_FIC1 0x280004
  3892. /* [ST 24] Statistics register. The number of messages that were sent to
  3893. FOC0 */
  3894. #define XSEM_REG_MSG_NUM_FOC0 0x280008
  3895. /* [ST 24] Statistics register. The number of messages that were sent to
  3896. FOC1 */
  3897. #define XSEM_REG_MSG_NUM_FOC1 0x28000c
  3898. /* [ST 24] Statistics register. The number of messages that were sent to
  3899. FOC2 */
  3900. #define XSEM_REG_MSG_NUM_FOC2 0x280010
  3901. /* [ST 24] Statistics register. The number of messages that were sent to
  3902. FOC3 */
  3903. #define XSEM_REG_MSG_NUM_FOC3 0x280014
  3904. /* [RW 1] Disables input messages from the passive buffer May be updated
  3905. during run_time by the microcode */
  3906. #define XSEM_REG_PAS_DISABLE 0x28024c
  3907. /* [WB 128] Debug only. Passive buffer memory */
  3908. #define XSEM_REG_PASSIVE_BUFFER 0x282000
  3909. /* [WB 46] pram memory. B45 is parity; b[44:0] - data. */
  3910. #define XSEM_REG_PRAM 0x2c0000
  3911. /* [R 16] Valid sleeping threads indication have bit per thread */
  3912. #define XSEM_REG_SLEEP_THREADS_VALID 0x28026c
  3913. /* [R 1] EXT_STORE FIFO is empty in sem_slow_ls_ext */
  3914. #define XSEM_REG_SLOW_EXT_STORE_EMPTY 0x2802a0
  3915. /* [RW 16] List of free threads . There is a bit per thread. */
  3916. #define XSEM_REG_THREADS_LIST 0x2802e4
  3917. /* [RW 3] The arbitration scheme of time_slot 0 */
  3918. #define XSEM_REG_TS_0_AS 0x280038
  3919. /* [RW 3] The arbitration scheme of time_slot 10 */
  3920. #define XSEM_REG_TS_10_AS 0x280060
  3921. /* [RW 3] The arbitration scheme of time_slot 11 */
  3922. #define XSEM_REG_TS_11_AS 0x280064
  3923. /* [RW 3] The arbitration scheme of time_slot 12 */
  3924. #define XSEM_REG_TS_12_AS 0x280068
  3925. /* [RW 3] The arbitration scheme of time_slot 13 */
  3926. #define XSEM_REG_TS_13_AS 0x28006c
  3927. /* [RW 3] The arbitration scheme of time_slot 14 */
  3928. #define XSEM_REG_TS_14_AS 0x280070
  3929. /* [RW 3] The arbitration scheme of time_slot 15 */
  3930. #define XSEM_REG_TS_15_AS 0x280074
  3931. /* [RW 3] The arbitration scheme of time_slot 16 */
  3932. #define XSEM_REG_TS_16_AS 0x280078
  3933. /* [RW 3] The arbitration scheme of time_slot 17 */
  3934. #define XSEM_REG_TS_17_AS 0x28007c
  3935. /* [RW 3] The arbitration scheme of time_slot 18 */
  3936. #define XSEM_REG_TS_18_AS 0x280080
  3937. /* [RW 3] The arbitration scheme of time_slot 1 */
  3938. #define XSEM_REG_TS_1_AS 0x28003c
  3939. /* [RW 3] The arbitration scheme of time_slot 2 */
  3940. #define XSEM_REG_TS_2_AS 0x280040
  3941. /* [RW 3] The arbitration scheme of time_slot 3 */
  3942. #define XSEM_REG_TS_3_AS 0x280044
  3943. /* [RW 3] The arbitration scheme of time_slot 4 */
  3944. #define XSEM_REG_TS_4_AS 0x280048
  3945. /* [RW 3] The arbitration scheme of time_slot 5 */
  3946. #define XSEM_REG_TS_5_AS 0x28004c
  3947. /* [RW 3] The arbitration scheme of time_slot 6 */
  3948. #define XSEM_REG_TS_6_AS 0x280050
  3949. /* [RW 3] The arbitration scheme of time_slot 7 */
  3950. #define XSEM_REG_TS_7_AS 0x280054
  3951. /* [RW 3] The arbitration scheme of time_slot 8 */
  3952. #define XSEM_REG_TS_8_AS 0x280058
  3953. /* [RW 3] The arbitration scheme of time_slot 9 */
  3954. #define XSEM_REG_TS_9_AS 0x28005c
  3955. /* [RW 32] Interrupt mask register #0 read/write */
  3956. #define XSEM_REG_XSEM_INT_MASK_0 0x280110
  3957. #define XSEM_REG_XSEM_INT_MASK_1 0x280120
  3958. /* [RW 32] Parity mask register #0 read/write */
  3959. #define XSEM_REG_XSEM_PRTY_MASK_0 0x280130
  3960. #define XSEM_REG_XSEM_PRTY_MASK_1 0x280140
  3961. /* [R 32] Parity register #0 read */
  3962. #define XSEM_REG_XSEM_PRTY_STS_0 0x280124
  3963. #define XSEM_REG_XSEM_PRTY_STS_1 0x280134
  3964. #define MCPR_NVM_ACCESS_ENABLE_EN (1L<<0)
  3965. #define MCPR_NVM_ACCESS_ENABLE_WR_EN (1L<<1)
  3966. #define MCPR_NVM_ADDR_NVM_ADDR_VALUE (0xffffffL<<0)
  3967. #define MCPR_NVM_CFG4_FLASH_SIZE (0x7L<<0)
  3968. #define MCPR_NVM_COMMAND_DOIT (1L<<4)
  3969. #define MCPR_NVM_COMMAND_DONE (1L<<3)
  3970. #define MCPR_NVM_COMMAND_FIRST (1L<<7)
  3971. #define MCPR_NVM_COMMAND_LAST (1L<<8)
  3972. #define MCPR_NVM_COMMAND_WR (1L<<5)
  3973. #define MCPR_NVM_COMMAND_WREN (1L<<16)
  3974. #define MCPR_NVM_COMMAND_WREN_BITSHIFT 16
  3975. #define MCPR_NVM_COMMAND_WRDI (1L<<17)
  3976. #define MCPR_NVM_COMMAND_WRDI_BITSHIFT 17
  3977. #define MCPR_NVM_SW_ARB_ARB_ARB1 (1L<<9)
  3978. #define MCPR_NVM_SW_ARB_ARB_REQ_CLR1 (1L<<5)
  3979. #define MCPR_NVM_SW_ARB_ARB_REQ_SET1 (1L<<1)
  3980. #define BIGMAC_REGISTER_BMAC_CONTROL (0x00<<3)
  3981. #define BIGMAC_REGISTER_BMAC_XGXS_CONTROL (0x01<<3)
  3982. #define BIGMAC_REGISTER_CNT_MAX_SIZE (0x05<<3)
  3983. #define BIGMAC_REGISTER_RX_CONTROL (0x21<<3)
  3984. #define BIGMAC_REGISTER_RX_LLFC_MSG_FLDS (0x46<<3)
  3985. #define BIGMAC_REGISTER_RX_MAX_SIZE (0x23<<3)
  3986. #define BIGMAC_REGISTER_RX_STAT_GR64 (0x26<<3)
  3987. #define BIGMAC_REGISTER_RX_STAT_GRIPJ (0x42<<3)
  3988. #define BIGMAC_REGISTER_TX_CONTROL (0x07<<3)
  3989. #define BIGMAC_REGISTER_TX_MAX_SIZE (0x09<<3)
  3990. #define BIGMAC_REGISTER_TX_PAUSE_THRESHOLD (0x0A<<3)
  3991. #define BIGMAC_REGISTER_TX_SOURCE_ADDR (0x08<<3)
  3992. #define BIGMAC_REGISTER_TX_STAT_GTBYT (0x20<<3)
  3993. #define BIGMAC_REGISTER_TX_STAT_GTPKT (0x0C<<3)
  3994. #define EMAC_MDIO_COMM_COMMAND_ADDRESS (0L<<26)
  3995. #define EMAC_MDIO_COMM_COMMAND_READ_22 (2L<<26)
  3996. #define EMAC_MDIO_COMM_COMMAND_READ_45 (3L<<26)
  3997. #define EMAC_MDIO_COMM_COMMAND_WRITE_22 (1L<<26)
  3998. #define EMAC_MDIO_COMM_COMMAND_WRITE_45 (1L<<26)
  3999. #define EMAC_MDIO_COMM_DATA (0xffffL<<0)
  4000. #define EMAC_MDIO_COMM_START_BUSY (1L<<29)
  4001. #define EMAC_MDIO_MODE_AUTO_POLL (1L<<4)
  4002. #define EMAC_MDIO_MODE_CLAUSE_45 (1L<<31)
  4003. #define EMAC_MDIO_MODE_CLOCK_CNT (0x3fL<<16)
  4004. #define EMAC_MDIO_MODE_CLOCK_CNT_BITSHIFT 16
  4005. #define EMAC_MODE_25G_MODE (1L<<5)
  4006. #define EMAC_MODE_ACPI_RCVD (1L<<20)
  4007. #define EMAC_MODE_HALF_DUPLEX (1L<<1)
  4008. #define EMAC_MODE_MPKT (1L<<18)
  4009. #define EMAC_MODE_MPKT_RCVD (1L<<19)
  4010. #define EMAC_MODE_PORT_GMII (2L<<2)
  4011. #define EMAC_MODE_PORT_MII (1L<<2)
  4012. #define EMAC_MODE_PORT_MII_10M (3L<<2)
  4013. #define EMAC_MODE_RESET (1L<<0)
  4014. #define EMAC_REG_EMAC_MAC_MATCH 0x10
  4015. #define EMAC_REG_EMAC_MDIO_COMM 0xac
  4016. #define EMAC_REG_EMAC_MDIO_MODE 0xb4
  4017. #define EMAC_REG_EMAC_MODE 0x0
  4018. #define EMAC_REG_EMAC_RX_MODE 0xc8
  4019. #define EMAC_REG_EMAC_RX_MTU_SIZE 0x9c
  4020. #define EMAC_REG_EMAC_RX_STAT_AC 0x180
  4021. #define EMAC_REG_EMAC_RX_STAT_AC_28 0x1f4
  4022. #define EMAC_REG_EMAC_RX_STAT_AC_COUNT 23
  4023. #define EMAC_REG_EMAC_TX_MODE 0xbc
  4024. #define EMAC_REG_EMAC_TX_STAT_AC 0x280
  4025. #define EMAC_REG_EMAC_TX_STAT_AC_COUNT 22
  4026. #define EMAC_RX_MODE_FLOW_EN (1L<<2)
  4027. #define EMAC_RX_MODE_KEEP_VLAN_TAG (1L<<10)
  4028. #define EMAC_RX_MODE_PROMISCUOUS (1L<<8)
  4029. #define EMAC_RX_MTU_SIZE_JUMBO_ENA (1L<<31)
  4030. #define EMAC_TX_MODE_EXT_PAUSE_EN (1L<<3)
  4031. #define EMAC_TX_MODE_RESET (1L<<0)
  4032. #define MISC_REGISTERS_GPIO_1 1
  4033. #define MISC_REGISTERS_GPIO_2 2
  4034. #define MISC_REGISTERS_GPIO_3 3
  4035. #define MISC_REGISTERS_GPIO_CLR_POS 16
  4036. #define MISC_REGISTERS_GPIO_FLOAT (0xffL<<24)
  4037. #define MISC_REGISTERS_GPIO_FLOAT_POS 24
  4038. #define MISC_REGISTERS_GPIO_INPUT_HI_Z 2
  4039. #define MISC_REGISTERS_GPIO_OUTPUT_HIGH 1
  4040. #define MISC_REGISTERS_GPIO_OUTPUT_LOW 0
  4041. #define MISC_REGISTERS_GPIO_PORT_SHIFT 4
  4042. #define MISC_REGISTERS_GPIO_SET_POS 8
  4043. #define MISC_REGISTERS_RESET_REG_1_CLEAR 0x588
  4044. #define MISC_REGISTERS_RESET_REG_1_SET 0x584
  4045. #define MISC_REGISTERS_RESET_REG_2_CLEAR 0x598
  4046. #define MISC_REGISTERS_RESET_REG_2_RST_BMAC0 (0x1<<0)
  4047. #define MISC_REGISTERS_RESET_REG_2_RST_EMAC0_HARD_CORE (0x1<<14)
  4048. #define MISC_REGISTERS_RESET_REG_2_SET 0x594
  4049. #define MISC_REGISTERS_RESET_REG_3_CLEAR 0x5a8
  4050. #define MISC_REGISTERS_RESET_REG_3_MISC_NIG_MUX_SERDES0_IDDQ (0x1<<1)
  4051. #define MISC_REGISTERS_RESET_REG_3_MISC_NIG_MUX_SERDES0_PWRDWN (0x1<<2)
  4052. #define MISC_REGISTERS_RESET_REG_3_MISC_NIG_MUX_SERDES0_PWRDWN_SD (0x1<<3)
  4053. #define MISC_REGISTERS_RESET_REG_3_MISC_NIG_MUX_SERDES0_RSTB_HW (0x1<<0)
  4054. #define MISC_REGISTERS_RESET_REG_3_MISC_NIG_MUX_XGXS0_IDDQ (0x1<<5)
  4055. #define MISC_REGISTERS_RESET_REG_3_MISC_NIG_MUX_XGXS0_PWRDWN (0x1<<6)
  4056. #define MISC_REGISTERS_RESET_REG_3_MISC_NIG_MUX_XGXS0_PWRDWN_SD (0x1<<7)
  4057. #define MISC_REGISTERS_RESET_REG_3_MISC_NIG_MUX_XGXS0_RSTB_HW (0x1<<4)
  4058. #define MISC_REGISTERS_RESET_REG_3_MISC_NIG_MUX_XGXS0_TXD_FIFO_RSTB (0x1<<8)
  4059. #define MISC_REGISTERS_RESET_REG_3_SET 0x5a4
  4060. #define MISC_REGISTERS_SPIO_4 4
  4061. #define MISC_REGISTERS_SPIO_5 5
  4062. #define MISC_REGISTERS_SPIO_7 7
  4063. #define MISC_REGISTERS_SPIO_CLR_POS 16
  4064. #define MISC_REGISTERS_SPIO_FLOAT (0xffL<<24)
  4065. #define GRC_MISC_REGISTERS_SPIO_FLOAT7 0x80000000
  4066. #define GRC_MISC_REGISTERS_SPIO_FLOAT6 0x40000000
  4067. #define GRC_MISC_REGISTERS_SPIO_FLOAT5 0x20000000
  4068. #define GRC_MISC_REGISTERS_SPIO_FLOAT4 0x10000000
  4069. #define MISC_REGISTERS_SPIO_FLOAT_POS 24
  4070. #define MISC_REGISTERS_SPIO_INPUT_HI_Z 2
  4071. #define MISC_REGISTERS_SPIO_INT_OLD_SET_POS 16
  4072. #define MISC_REGISTERS_SPIO_OUTPUT_HIGH 1
  4073. #define MISC_REGISTERS_SPIO_OUTPUT_LOW 0
  4074. #define MISC_REGISTERS_SPIO_SET_POS 8
  4075. #define HW_LOCK_MAX_RESOURCE_VALUE 31
  4076. #define HW_LOCK_RESOURCE_8072_MDIO 0
  4077. #define HW_LOCK_RESOURCE_GPIO 1
  4078. #define HW_LOCK_RESOURCE_SPIO 2
  4079. #define AEU_INPUTS_ATTN_BITS_BRB_PARITY_ERROR (1<<18)
  4080. #define AEU_INPUTS_ATTN_BITS_CCM_HW_INTERRUPT (1<<31)
  4081. #define AEU_INPUTS_ATTN_BITS_CDU_HW_INTERRUPT (1<<9)
  4082. #define AEU_INPUTS_ATTN_BITS_CDU_PARITY_ERROR (1<<8)
  4083. #define AEU_INPUTS_ATTN_BITS_CFC_HW_INTERRUPT (1<<7)
  4084. #define AEU_INPUTS_ATTN_BITS_CFC_PARITY_ERROR (1<<6)
  4085. #define AEU_INPUTS_ATTN_BITS_CSDM_HW_INTERRUPT (1<<29)
  4086. #define AEU_INPUTS_ATTN_BITS_CSDM_PARITY_ERROR (1<<28)
  4087. #define AEU_INPUTS_ATTN_BITS_CSEMI_HW_INTERRUPT (1<<1)
  4088. #define AEU_INPUTS_ATTN_BITS_CSEMI_PARITY_ERROR (1<<0)
  4089. #define AEU_INPUTS_ATTN_BITS_DEBUG_PARITY_ERROR (1<<18)
  4090. #define AEU_INPUTS_ATTN_BITS_DMAE_HW_INTERRUPT (1<<11)
  4091. #define AEU_INPUTS_ATTN_BITS_DOORBELLQ_HW_INTERRUPT (1<<13)
  4092. #define AEU_INPUTS_ATTN_BITS_DOORBELLQ_PARITY_ERROR (1<<12)
  4093. #define AEU_INPUTS_ATTN_BITS_IGU_PARITY_ERROR (1<<12)
  4094. #define AEU_INPUTS_ATTN_BITS_MISC_HW_INTERRUPT (1<<15)
  4095. #define AEU_INPUTS_ATTN_BITS_MISC_PARITY_ERROR (1<<14)
  4096. #define AEU_INPUTS_ATTN_BITS_PARSER_PARITY_ERROR (1<<20)
  4097. #define AEU_INPUTS_ATTN_BITS_PBCLIENT_PARITY_ERROR (1<<0)
  4098. #define AEU_INPUTS_ATTN_BITS_PBF_HW_INTERRUPT (1<<31)
  4099. #define AEU_INPUTS_ATTN_BITS_PXP_HW_INTERRUPT (1<<3)
  4100. #define AEU_INPUTS_ATTN_BITS_PXP_PARITY_ERROR (1<<2)
  4101. #define AEU_INPUTS_ATTN_BITS_PXPPCICLOCKCLIENT_HW_INTERRUPT (1<<5)
  4102. #define AEU_INPUTS_ATTN_BITS_PXPPCICLOCKCLIENT_PARITY_ERROR (1<<4)
  4103. #define AEU_INPUTS_ATTN_BITS_QM_HW_INTERRUPT (1<<3)
  4104. #define AEU_INPUTS_ATTN_BITS_QM_PARITY_ERROR (1<<2)
  4105. #define AEU_INPUTS_ATTN_BITS_SEARCHER_PARITY_ERROR (1<<22)
  4106. #define AEU_INPUTS_ATTN_BITS_SPIO5 (1<<15)
  4107. #define AEU_INPUTS_ATTN_BITS_TCM_HW_INTERRUPT (1<<27)
  4108. #define AEU_INPUTS_ATTN_BITS_TIMERS_HW_INTERRUPT (1<<5)
  4109. #define AEU_INPUTS_ATTN_BITS_TSDM_HW_INTERRUPT (1<<25)
  4110. #define AEU_INPUTS_ATTN_BITS_TSDM_PARITY_ERROR (1<<24)
  4111. #define AEU_INPUTS_ATTN_BITS_TSEMI_HW_INTERRUPT (1<<29)
  4112. #define AEU_INPUTS_ATTN_BITS_TSEMI_PARITY_ERROR (1<<28)
  4113. #define AEU_INPUTS_ATTN_BITS_UCM_HW_INTERRUPT (1<<23)
  4114. #define AEU_INPUTS_ATTN_BITS_UPB_HW_INTERRUPT (1<<27)
  4115. #define AEU_INPUTS_ATTN_BITS_UPB_PARITY_ERROR (1<<26)
  4116. #define AEU_INPUTS_ATTN_BITS_USDM_HW_INTERRUPT (1<<21)
  4117. #define AEU_INPUTS_ATTN_BITS_USDM_PARITY_ERROR (1<<20)
  4118. #define AEU_INPUTS_ATTN_BITS_USEMI_HW_INTERRUPT (1<<25)
  4119. #define AEU_INPUTS_ATTN_BITS_USEMI_PARITY_ERROR (1<<24)
  4120. #define AEU_INPUTS_ATTN_BITS_VAUX_PCI_CORE_PARITY_ERROR (1<<16)
  4121. #define AEU_INPUTS_ATTN_BITS_XCM_HW_INTERRUPT (1<<9)
  4122. #define AEU_INPUTS_ATTN_BITS_XSDM_HW_INTERRUPT (1<<7)
  4123. #define AEU_INPUTS_ATTN_BITS_XSDM_PARITY_ERROR (1<<6)
  4124. #define AEU_INPUTS_ATTN_BITS_XSEMI_HW_INTERRUPT (1<<11)
  4125. #define AEU_INPUTS_ATTN_BITS_XSEMI_PARITY_ERROR (1<<10)
  4126. #define RESERVED_GENERAL_ATTENTION_BIT_0 0
  4127. #define EVEREST_GEN_ATTN_IN_USE_MASK 0x3e0
  4128. #define EVEREST_LATCHED_ATTN_IN_USE_MASK 0xffe00000
  4129. #define RESERVED_GENERAL_ATTENTION_BIT_6 6
  4130. #define RESERVED_GENERAL_ATTENTION_BIT_7 7
  4131. #define RESERVED_GENERAL_ATTENTION_BIT_8 8
  4132. #define RESERVED_GENERAL_ATTENTION_BIT_9 9
  4133. #define RESERVED_GENERAL_ATTENTION_BIT_10 10
  4134. #define RESERVED_GENERAL_ATTENTION_BIT_11 11
  4135. #define RESERVED_GENERAL_ATTENTION_BIT_12 12
  4136. #define RESERVED_GENERAL_ATTENTION_BIT_13 13
  4137. #define RESERVED_GENERAL_ATTENTION_BIT_14 14
  4138. #define RESERVED_GENERAL_ATTENTION_BIT_15 15
  4139. #define RESERVED_GENERAL_ATTENTION_BIT_16 16
  4140. #define RESERVED_GENERAL_ATTENTION_BIT_17 17
  4141. #define RESERVED_GENERAL_ATTENTION_BIT_18 18
  4142. #define RESERVED_GENERAL_ATTENTION_BIT_19 19
  4143. #define RESERVED_GENERAL_ATTENTION_BIT_20 20
  4144. #define RESERVED_GENERAL_ATTENTION_BIT_21 21
  4145. /* storm asserts attention bits */
  4146. #define TSTORM_FATAL_ASSERT_ATTENTION_BIT RESERVED_GENERAL_ATTENTION_BIT_7
  4147. #define USTORM_FATAL_ASSERT_ATTENTION_BIT RESERVED_GENERAL_ATTENTION_BIT_8
  4148. #define CSTORM_FATAL_ASSERT_ATTENTION_BIT RESERVED_GENERAL_ATTENTION_BIT_9
  4149. #define XSTORM_FATAL_ASSERT_ATTENTION_BIT RESERVED_GENERAL_ATTENTION_BIT_10
  4150. /* mcp error attention bit */
  4151. #define MCP_FATAL_ASSERT_ATTENTION_BIT RESERVED_GENERAL_ATTENTION_BIT_11
  4152. #define LATCHED_ATTN_RBCR 23
  4153. #define LATCHED_ATTN_RBCT 24
  4154. #define LATCHED_ATTN_RBCN 25
  4155. #define LATCHED_ATTN_RBCU 26
  4156. #define LATCHED_ATTN_RBCP 27
  4157. #define LATCHED_ATTN_TIMEOUT_GRC 28
  4158. #define LATCHED_ATTN_RSVD_GRC 29
  4159. #define LATCHED_ATTN_ROM_PARITY_MCP 30
  4160. #define LATCHED_ATTN_UM_RX_PARITY_MCP 31
  4161. #define LATCHED_ATTN_UM_TX_PARITY_MCP 32
  4162. #define LATCHED_ATTN_SCPAD_PARITY_MCP 33
  4163. #define GENERAL_ATTEN_WORD(atten_name) ((94 + atten_name) / 32)
  4164. #define GENERAL_ATTEN_OFFSET(atten_name) (1 << ((94 + atten_name) % 32))
  4165. /*
  4166. * This file defines GRC base address for every block.
  4167. * This file is included by chipsim, asm microcode and cpp microcode.
  4168. * These values are used in Design.xml on regBase attribute
  4169. * Use the base with the generated offsets of specific registers.
  4170. */
  4171. #define GRCBASE_PXPCS 0x000000
  4172. #define GRCBASE_PCICONFIG 0x002000
  4173. #define GRCBASE_PCIREG 0x002400
  4174. #define GRCBASE_EMAC0 0x008000
  4175. #define GRCBASE_EMAC1 0x008400
  4176. #define GRCBASE_DBU 0x008800
  4177. #define GRCBASE_MISC 0x00A000
  4178. #define GRCBASE_DBG 0x00C000
  4179. #define GRCBASE_NIG 0x010000
  4180. #define GRCBASE_XCM 0x020000
  4181. #define GRCBASE_PRS 0x040000
  4182. #define GRCBASE_SRCH 0x040400
  4183. #define GRCBASE_TSDM 0x042000
  4184. #define GRCBASE_TCM 0x050000
  4185. #define GRCBASE_BRB1 0x060000
  4186. #define GRCBASE_MCP 0x080000
  4187. #define GRCBASE_UPB 0x0C1000
  4188. #define GRCBASE_CSDM 0x0C2000
  4189. #define GRCBASE_USDM 0x0C4000
  4190. #define GRCBASE_CCM 0x0D0000
  4191. #define GRCBASE_UCM 0x0E0000
  4192. #define GRCBASE_CDU 0x101000
  4193. #define GRCBASE_DMAE 0x102000
  4194. #define GRCBASE_PXP 0x103000
  4195. #define GRCBASE_CFC 0x104000
  4196. #define GRCBASE_HC 0x108000
  4197. #define GRCBASE_PXP2 0x120000
  4198. #define GRCBASE_PBF 0x140000
  4199. #define GRCBASE_XPB 0x161000
  4200. #define GRCBASE_TIMERS 0x164000
  4201. #define GRCBASE_XSDM 0x166000
  4202. #define GRCBASE_QM 0x168000
  4203. #define GRCBASE_DQ 0x170000
  4204. #define GRCBASE_TSEM 0x180000
  4205. #define GRCBASE_CSEM 0x200000
  4206. #define GRCBASE_XSEM 0x280000
  4207. #define GRCBASE_USEM 0x300000
  4208. #define GRCBASE_MISC_AEU GRCBASE_MISC
  4209. /*the offset of the configuration space in the pci core register*/
  4210. #define PCICFG_OFFSET 0x2000
  4211. #define PCICFG_VENDOR_ID_OFFSET 0x00
  4212. #define PCICFG_DEVICE_ID_OFFSET 0x02
  4213. #define PCICFG_SUBSYSTEM_VENDOR_ID_OFFSET 0x2c
  4214. #define PCICFG_SUBSYSTEM_ID_OFFSET 0x2e
  4215. #define PCICFG_INT_LINE 0x3c
  4216. #define PCICFG_INT_PIN 0x3d
  4217. #define PCICFG_CACHE_LINE_SIZE 0x0c
  4218. #define PCICFG_LATENCY_TIMER 0x0d
  4219. #define PCICFG_REVESION_ID 0x08
  4220. #define PCICFG_BAR_1_LOW 0x10
  4221. #define PCICFG_BAR_1_HIGH 0x14
  4222. #define PCICFG_BAR_2_LOW 0x18
  4223. #define PCICFG_BAR_2_HIGH 0x1c
  4224. #define PCICFG_GRC_ADDRESS 0x78
  4225. #define PCICFG_GRC_DATA 0x80
  4226. #define PCICFG_DEVICE_CONTROL 0xb4
  4227. #define PCICFG_LINK_CONTROL 0xbc
  4228. #define BAR_USTRORM_INTMEM 0x400000
  4229. #define BAR_CSTRORM_INTMEM 0x410000
  4230. #define BAR_XSTRORM_INTMEM 0x420000
  4231. #define BAR_TSTRORM_INTMEM 0x430000
  4232. #define BAR_IGU_INTMEM 0x440000
  4233. #define BAR_DOORBELL_OFFSET 0x800000
  4234. #define BAR_ME_REGISTER 0x450000
  4235. #define GRC_CONFIG_2_SIZE_REG 0x408 /* config_2 offset */
  4236. #define PCI_CONFIG_2_BAR1_SIZE (0xfL<<0)
  4237. #define PCI_CONFIG_2_BAR1_SIZE_DISABLED (0L<<0)
  4238. #define PCI_CONFIG_2_BAR1_SIZE_64K (1L<<0)
  4239. #define PCI_CONFIG_2_BAR1_SIZE_128K (2L<<0)
  4240. #define PCI_CONFIG_2_BAR1_SIZE_256K (3L<<0)
  4241. #define PCI_CONFIG_2_BAR1_SIZE_512K (4L<<0)
  4242. #define PCI_CONFIG_2_BAR1_SIZE_1M (5L<<0)
  4243. #define PCI_CONFIG_2_BAR1_SIZE_2M (6L<<0)
  4244. #define PCI_CONFIG_2_BAR1_SIZE_4M (7L<<0)
  4245. #define PCI_CONFIG_2_BAR1_SIZE_8M (8L<<0)
  4246. #define PCI_CONFIG_2_BAR1_SIZE_16M (9L<<0)
  4247. #define PCI_CONFIG_2_BAR1_SIZE_32M (10L<<0)
  4248. #define PCI_CONFIG_2_BAR1_SIZE_64M (11L<<0)
  4249. #define PCI_CONFIG_2_BAR1_SIZE_128M (12L<<0)
  4250. #define PCI_CONFIG_2_BAR1_SIZE_256M (13L<<0)
  4251. #define PCI_CONFIG_2_BAR1_SIZE_512M (14L<<0)
  4252. #define PCI_CONFIG_2_BAR1_SIZE_1G (15L<<0)
  4253. #define PCI_CONFIG_2_BAR1_64ENA (1L<<4)
  4254. #define PCI_CONFIG_2_EXP_ROM_RETRY (1L<<5)
  4255. #define PCI_CONFIG_2_CFG_CYCLE_RETRY (1L<<6)
  4256. #define PCI_CONFIG_2_FIRST_CFG_DONE (1L<<7)
  4257. #define PCI_CONFIG_2_EXP_ROM_SIZE (0xffL<<8)
  4258. #define PCI_CONFIG_2_EXP_ROM_SIZE_DISABLED (0L<<8)
  4259. #define PCI_CONFIG_2_EXP_ROM_SIZE_2K (1L<<8)
  4260. #define PCI_CONFIG_2_EXP_ROM_SIZE_4K (2L<<8)
  4261. #define PCI_CONFIG_2_EXP_ROM_SIZE_8K (3L<<8)
  4262. #define PCI_CONFIG_2_EXP_ROM_SIZE_16K (4L<<8)
  4263. #define PCI_CONFIG_2_EXP_ROM_SIZE_32K (5L<<8)
  4264. #define PCI_CONFIG_2_EXP_ROM_SIZE_64K (6L<<8)
  4265. #define PCI_CONFIG_2_EXP_ROM_SIZE_128K (7L<<8)
  4266. #define PCI_CONFIG_2_EXP_ROM_SIZE_256K (8L<<8)
  4267. #define PCI_CONFIG_2_EXP_ROM_SIZE_512K (9L<<8)
  4268. #define PCI_CONFIG_2_EXP_ROM_SIZE_1M (10L<<8)
  4269. #define PCI_CONFIG_2_EXP_ROM_SIZE_2M (11L<<8)
  4270. #define PCI_CONFIG_2_EXP_ROM_SIZE_4M (12L<<8)
  4271. #define PCI_CONFIG_2_EXP_ROM_SIZE_8M (13L<<8)
  4272. #define PCI_CONFIG_2_EXP_ROM_SIZE_16M (14L<<8)
  4273. #define PCI_CONFIG_2_EXP_ROM_SIZE_32M (15L<<8)
  4274. #define PCI_CONFIG_2_BAR_PREFETCH (1L<<16)
  4275. #define PCI_CONFIG_2_RESERVED0 (0x7fffL<<17)
  4276. /* config_3 offset */
  4277. #define GRC_CONFIG_3_SIZE_REG (0x40c)
  4278. #define PCI_CONFIG_3_STICKY_BYTE (0xffL<<0)
  4279. #define PCI_CONFIG_3_FORCE_PME (1L<<24)
  4280. #define PCI_CONFIG_3_PME_STATUS (1L<<25)
  4281. #define PCI_CONFIG_3_PME_ENABLE (1L<<26)
  4282. #define PCI_CONFIG_3_PM_STATE (0x3L<<27)
  4283. #define PCI_CONFIG_3_VAUX_PRESET (1L<<30)
  4284. #define PCI_CONFIG_3_PCI_POWER (1L<<31)
  4285. /* config_2 offset */
  4286. #define GRC_CONFIG_2_SIZE_REG 0x408
  4287. #define GRC_BAR2_CONFIG 0x4e0
  4288. #define PCI_CONFIG_2_BAR2_SIZE (0xfL<<0)
  4289. #define PCI_CONFIG_2_BAR2_SIZE_DISABLED (0L<<0)
  4290. #define PCI_CONFIG_2_BAR2_SIZE_64K (1L<<0)
  4291. #define PCI_CONFIG_2_BAR2_SIZE_128K (2L<<0)
  4292. #define PCI_CONFIG_2_BAR2_SIZE_256K (3L<<0)
  4293. #define PCI_CONFIG_2_BAR2_SIZE_512K (4L<<0)
  4294. #define PCI_CONFIG_2_BAR2_SIZE_1M (5L<<0)
  4295. #define PCI_CONFIG_2_BAR2_SIZE_2M (6L<<0)
  4296. #define PCI_CONFIG_2_BAR2_SIZE_4M (7L<<0)
  4297. #define PCI_CONFIG_2_BAR2_SIZE_8M (8L<<0)
  4298. #define PCI_CONFIG_2_BAR2_SIZE_16M (9L<<0)
  4299. #define PCI_CONFIG_2_BAR2_SIZE_32M (10L<<0)
  4300. #define PCI_CONFIG_2_BAR2_SIZE_64M (11L<<0)
  4301. #define PCI_CONFIG_2_BAR2_SIZE_128M (12L<<0)
  4302. #define PCI_CONFIG_2_BAR2_SIZE_256M (13L<<0)
  4303. #define PCI_CONFIG_2_BAR2_SIZE_512M (14L<<0)
  4304. #define PCI_CONFIG_2_BAR2_SIZE_1G (15L<<0)
  4305. #define PCI_CONFIG_2_BAR2_64ENA (1L<<4)
  4306. #define PCI_PM_DATA_A (0x410)
  4307. #define PCI_PM_DATA_B (0x414)
  4308. #define PCI_ID_VAL1 (0x434)
  4309. #define PCI_ID_VAL2 (0x438)
  4310. #define MDIO_REG_BANK_CL73_IEEEB0 0x0
  4311. #define MDIO_CL73_IEEEB0_CL73_AN_CONTROL 0x0
  4312. #define MDIO_CL73_IEEEB0_CL73_AN_CONTROL_RESTART_AN 0x0200
  4313. #define MDIO_CL73_IEEEB0_CL73_AN_CONTROL_AN_EN 0x1000
  4314. #define MDIO_CL73_IEEEB0_CL73_AN_CONTROL_MAIN_RST 0x8000
  4315. #define MDIO_REG_BANK_CL73_IEEEB1 0x10
  4316. #define MDIO_CL73_IEEEB1_AN_ADV2 0x01
  4317. #define MDIO_CL73_IEEEB1_AN_ADV2_ADVR_1000M 0x0000
  4318. #define MDIO_CL73_IEEEB1_AN_ADV2_ADVR_1000M_KX 0x0020
  4319. #define MDIO_CL73_IEEEB1_AN_ADV2_ADVR_10G_KX4 0x0040
  4320. #define MDIO_CL73_IEEEB1_AN_ADV2_ADVR_10G_KR 0x0080
  4321. #define MDIO_REG_BANK_RX0 0x80b0
  4322. #define MDIO_RX0_RX_EQ_BOOST 0x1c
  4323. #define MDIO_RX0_RX_EQ_BOOST_EQUALIZER_CTRL_MASK 0x7
  4324. #define MDIO_RX0_RX_EQ_BOOST_OFFSET_CTRL 0x10
  4325. #define MDIO_REG_BANK_RX1 0x80c0
  4326. #define MDIO_RX1_RX_EQ_BOOST 0x1c
  4327. #define MDIO_RX1_RX_EQ_BOOST_EQUALIZER_CTRL_MASK 0x7
  4328. #define MDIO_RX1_RX_EQ_BOOST_OFFSET_CTRL 0x10
  4329. #define MDIO_REG_BANK_RX2 0x80d0
  4330. #define MDIO_RX2_RX_EQ_BOOST 0x1c
  4331. #define MDIO_RX2_RX_EQ_BOOST_EQUALIZER_CTRL_MASK 0x7
  4332. #define MDIO_RX2_RX_EQ_BOOST_OFFSET_CTRL 0x10
  4333. #define MDIO_REG_BANK_RX3 0x80e0
  4334. #define MDIO_RX3_RX_EQ_BOOST 0x1c
  4335. #define MDIO_RX3_RX_EQ_BOOST_EQUALIZER_CTRL_MASK 0x7
  4336. #define MDIO_RX3_RX_EQ_BOOST_OFFSET_CTRL 0x10
  4337. #define MDIO_REG_BANK_RX_ALL 0x80f0
  4338. #define MDIO_RX_ALL_RX_EQ_BOOST 0x1c
  4339. #define MDIO_RX_ALL_RX_EQ_BOOST_EQUALIZER_CTRL_MASK 0x7
  4340. #define MDIO_RX_ALL_RX_EQ_BOOST_OFFSET_CTRL 0x10
  4341. #define MDIO_REG_BANK_TX0 0x8060
  4342. #define MDIO_TX0_TX_DRIVER 0x17
  4343. #define MDIO_TX0_TX_DRIVER_PREEMPHASIS_MASK 0xf000
  4344. #define MDIO_TX0_TX_DRIVER_PREEMPHASIS_SHIFT 12
  4345. #define MDIO_TX0_TX_DRIVER_IDRIVER_MASK 0x0f00
  4346. #define MDIO_TX0_TX_DRIVER_IDRIVER_SHIFT 8
  4347. #define MDIO_TX0_TX_DRIVER_IPREDRIVER_MASK 0x00f0
  4348. #define MDIO_TX0_TX_DRIVER_IPREDRIVER_SHIFT 4
  4349. #define MDIO_TX0_TX_DRIVER_IFULLSPD_MASK 0x000e
  4350. #define MDIO_TX0_TX_DRIVER_IFULLSPD_SHIFT 1
  4351. #define MDIO_TX0_TX_DRIVER_ICBUF1T 1
  4352. #define MDIO_REG_BANK_XGXS_BLOCK0 0x8000
  4353. #define MDIO_BLOCK0_XGXS_CONTROL 0x10
  4354. #define MDIO_REG_BANK_XGXS_BLOCK1 0x8010
  4355. #define MDIO_BLOCK1_LANE_CTRL0 0x15
  4356. #define MDIO_BLOCK1_LANE_CTRL1 0x16
  4357. #define MDIO_BLOCK1_LANE_CTRL2 0x17
  4358. #define MDIO_BLOCK1_LANE_PRBS 0x19
  4359. #define MDIO_REG_BANK_XGXS_BLOCK2 0x8100
  4360. #define MDIO_XGXS_BLOCK2_RX_LN_SWAP 0x10
  4361. #define MDIO_XGXS_BLOCK2_RX_LN_SWAP_ENABLE 0x8000
  4362. #define MDIO_XGXS_BLOCK2_RX_LN_SWAP_FORCE_ENABLE 0x4000
  4363. #define MDIO_XGXS_BLOCK2_TX_LN_SWAP 0x11
  4364. #define MDIO_XGXS_BLOCK2_TX_LN_SWAP_ENABLE 0x8000
  4365. #define MDIO_XGXS_BLOCK2_UNICORE_MODE_10G 0x14
  4366. #define MDIO_XGXS_BLOCK2_UNICORE_MODE_10G_CX4_XGXS 0x0001
  4367. #define MDIO_XGXS_BLOCK2_UNICORE_MODE_10G_HIGIG_XGXS 0x0010
  4368. #define MDIO_XGXS_BLOCK2_TEST_MODE_LANE 0x15
  4369. #define MDIO_REG_BANK_GP_STATUS 0x8120
  4370. #define MDIO_GP_STATUS_TOP_AN_STATUS1 0x1B
  4371. #define MDIO_GP_STATUS_TOP_AN_STATUS1_CL73_AUTONEG_COMPLETE 0x0001
  4372. #define MDIO_GP_STATUS_TOP_AN_STATUS1_CL37_AUTONEG_COMPLETE 0x0002
  4373. #define MDIO_GP_STATUS_TOP_AN_STATUS1_LINK_STATUS 0x0004
  4374. #define MDIO_GP_STATUS_TOP_AN_STATUS1_DUPLEX_STATUS 0x0008
  4375. #define MDIO_GP_STATUS_TOP_AN_STATUS1_CL73_MR_LP_NP_AN_ABLE 0x0010
  4376. #define MDIO_GP_STATUS_TOP_AN_STATUS1_CL73_LP_NP_BAM_ABLE 0x0020
  4377. #define MDIO_GP_STATUS_TOP_AN_STATUS1_PAUSE_RSOLUTION_TXSIDE 0x0040
  4378. #define MDIO_GP_STATUS_TOP_AN_STATUS1_PAUSE_RSOLUTION_RXSIDE 0x0080
  4379. #define MDIO_GP_STATUS_TOP_AN_STATUS1_ACTUAL_SPEED_MASK 0x3f00
  4380. #define MDIO_GP_STATUS_TOP_AN_STATUS1_ACTUAL_SPEED_10M 0x0000
  4381. #define MDIO_GP_STATUS_TOP_AN_STATUS1_ACTUAL_SPEED_100M 0x0100
  4382. #define MDIO_GP_STATUS_TOP_AN_STATUS1_ACTUAL_SPEED_1G 0x0200
  4383. #define MDIO_GP_STATUS_TOP_AN_STATUS1_ACTUAL_SPEED_2_5G 0x0300
  4384. #define MDIO_GP_STATUS_TOP_AN_STATUS1_ACTUAL_SPEED_5G 0x0400
  4385. #define MDIO_GP_STATUS_TOP_AN_STATUS1_ACTUAL_SPEED_6G 0x0500
  4386. #define MDIO_GP_STATUS_TOP_AN_STATUS1_ACTUAL_SPEED_10G_HIG 0x0600
  4387. #define MDIO_GP_STATUS_TOP_AN_STATUS1_ACTUAL_SPEED_10G_CX4 0x0700
  4388. #define MDIO_GP_STATUS_TOP_AN_STATUS1_ACTUAL_SPEED_12G_HIG 0x0800
  4389. #define MDIO_GP_STATUS_TOP_AN_STATUS1_ACTUAL_SPEED_12_5G 0x0900
  4390. #define MDIO_GP_STATUS_TOP_AN_STATUS1_ACTUAL_SPEED_13G 0x0A00
  4391. #define MDIO_GP_STATUS_TOP_AN_STATUS1_ACTUAL_SPEED_15G 0x0B00
  4392. #define MDIO_GP_STATUS_TOP_AN_STATUS1_ACTUAL_SPEED_16G 0x0C00
  4393. #define MDIO_GP_STATUS_TOP_AN_STATUS1_ACTUAL_SPEED_1G_KX 0x0D00
  4394. #define MDIO_GP_STATUS_TOP_AN_STATUS1_ACTUAL_SPEED_10G_KX4 0x0E00
  4395. #define MDIO_REG_BANK_10G_PARALLEL_DETECT 0x8130
  4396. #define MDIO_10G_PARALLEL_DETECT_PAR_DET_10G_CONTROL 0x11
  4397. #define MDIO_10G_PARALLEL_DETECT_PAR_DET_10G_CONTROL_PARDET10G_EN 0x1
  4398. #define MDIO_10G_PARALLEL_DETECT_PAR_DET_10G_LINK 0x13
  4399. #define MDIO_10G_PARALLEL_DETECT_PAR_DET_10G_LINK_CNT (0xb71<<1)
  4400. #define MDIO_REG_BANK_SERDES_DIGITAL 0x8300
  4401. #define MDIO_SERDES_DIGITAL_A_1000X_CONTROL1 0x10
  4402. #define MDIO_SERDES_DIGITAL_A_1000X_CONTROL1_FIBER_MODE 0x0001
  4403. #define MDIO_SERDES_DIGITAL_A_1000X_CONTROL1_TBI_IF 0x0002
  4404. #define MDIO_SERDES_DIGITAL_A_1000X_CONTROL1_SIGNAL_DETECT_EN 0x0004
  4405. #define MDIO_SERDES_DIGITAL_A_1000X_CONTROL1_INVERT_SIGNAL_DETECT 0x0008
  4406. #define MDIO_SERDES_DIGITAL_A_1000X_CONTROL1_AUTODET 0x0010
  4407. #define MDIO_SERDES_DIGITAL_A_1000X_CONTROL1_MSTR_MODE 0x0020
  4408. #define MDIO_SERDES_DIGITAL_A_1000X_CONTROL2 0x11
  4409. #define MDIO_SERDES_DIGITAL_A_1000X_CONTROL2_PRL_DT_EN 0x0001
  4410. #define MDIO_SERDES_DIGITAL_A_1000X_CONTROL2_AN_FST_TMR 0x0040
  4411. #define MDIO_SERDES_DIGITAL_A_1000X_STATUS1 0x14
  4412. #define MDIO_SERDES_DIGITAL_A_1000X_STATUS1_DUPLEX 0x0004
  4413. #define MDIO_SERDES_DIGITAL_A_1000X_STATUS1_SPEED_MASK 0x0018
  4414. #define MDIO_SERDES_DIGITAL_A_1000X_STATUS1_SPEED_SHIFT 3
  4415. #define MDIO_SERDES_DIGITAL_A_1000X_STATUS1_SPEED_2_5G 0x0018
  4416. #define MDIO_SERDES_DIGITAL_A_1000X_STATUS1_SPEED_1G 0x0010
  4417. #define MDIO_SERDES_DIGITAL_A_1000X_STATUS1_SPEED_100M 0x0008
  4418. #define MDIO_SERDES_DIGITAL_A_1000X_STATUS1_SPEED_10M 0x0000
  4419. #define MDIO_SERDES_DIGITAL_MISC1 0x18
  4420. #define MDIO_SERDES_DIGITAL_MISC1_REFCLK_SEL_MASK 0xE000
  4421. #define MDIO_SERDES_DIGITAL_MISC1_REFCLK_SEL_25M 0x0000
  4422. #define MDIO_SERDES_DIGITAL_MISC1_REFCLK_SEL_100M 0x2000
  4423. #define MDIO_SERDES_DIGITAL_MISC1_REFCLK_SEL_125M 0x4000
  4424. #define MDIO_SERDES_DIGITAL_MISC1_REFCLK_SEL_156_25M 0x6000
  4425. #define MDIO_SERDES_DIGITAL_MISC1_REFCLK_SEL_187_5M 0x8000
  4426. #define MDIO_SERDES_DIGITAL_MISC1_FORCE_SPEED_SEL 0x0010
  4427. #define MDIO_SERDES_DIGITAL_MISC1_FORCE_SPEED_MASK 0x000f
  4428. #define MDIO_SERDES_DIGITAL_MISC1_FORCE_SPEED_2_5G 0x0000
  4429. #define MDIO_SERDES_DIGITAL_MISC1_FORCE_SPEED_5G 0x0001
  4430. #define MDIO_SERDES_DIGITAL_MISC1_FORCE_SPEED_6G 0x0002
  4431. #define MDIO_SERDES_DIGITAL_MISC1_FORCE_SPEED_10G_HIG 0x0003
  4432. #define MDIO_SERDES_DIGITAL_MISC1_FORCE_SPEED_10G_CX4 0x0004
  4433. #define MDIO_SERDES_DIGITAL_MISC1_FORCE_SPEED_12G 0x0005
  4434. #define MDIO_SERDES_DIGITAL_MISC1_FORCE_SPEED_12_5G 0x0006
  4435. #define MDIO_SERDES_DIGITAL_MISC1_FORCE_SPEED_13G 0x0007
  4436. #define MDIO_SERDES_DIGITAL_MISC1_FORCE_SPEED_15G 0x0008
  4437. #define MDIO_SERDES_DIGITAL_MISC1_FORCE_SPEED_16G 0x0009
  4438. #define MDIO_REG_BANK_OVER_1G 0x8320
  4439. #define MDIO_OVER_1G_DIGCTL_3_4 0x14
  4440. #define MDIO_OVER_1G_DIGCTL_3_4_MP_ID_MASK 0xffe0
  4441. #define MDIO_OVER_1G_DIGCTL_3_4_MP_ID_SHIFT 5
  4442. #define MDIO_OVER_1G_UP1 0x19
  4443. #define MDIO_OVER_1G_UP1_2_5G 0x0001
  4444. #define MDIO_OVER_1G_UP1_5G 0x0002
  4445. #define MDIO_OVER_1G_UP1_6G 0x0004
  4446. #define MDIO_OVER_1G_UP1_10G 0x0010
  4447. #define MDIO_OVER_1G_UP1_10GH 0x0008
  4448. #define MDIO_OVER_1G_UP1_12G 0x0020
  4449. #define MDIO_OVER_1G_UP1_12_5G 0x0040
  4450. #define MDIO_OVER_1G_UP1_13G 0x0080
  4451. #define MDIO_OVER_1G_UP1_15G 0x0100
  4452. #define MDIO_OVER_1G_UP1_16G 0x0200
  4453. #define MDIO_OVER_1G_UP2 0x1A
  4454. #define MDIO_OVER_1G_UP2_IPREDRIVER_MASK 0x0007
  4455. #define MDIO_OVER_1G_UP2_IDRIVER_MASK 0x0038
  4456. #define MDIO_OVER_1G_UP2_PREEMPHASIS_MASK 0x03C0
  4457. #define MDIO_OVER_1G_UP3 0x1B
  4458. #define MDIO_OVER_1G_UP3_HIGIG2 0x0001
  4459. #define MDIO_OVER_1G_LP_UP1 0x1C
  4460. #define MDIO_OVER_1G_LP_UP2 0x1D
  4461. #define MDIO_OVER_1G_LP_UP2_MR_ADV_OVER_1G_MASK 0x03ff
  4462. #define MDIO_OVER_1G_LP_UP2_PREEMPHASIS_MASK 0x0780
  4463. #define MDIO_OVER_1G_LP_UP2_PREEMPHASIS_SHIFT 7
  4464. #define MDIO_OVER_1G_LP_UP3 0x1E
  4465. #define MDIO_REG_BANK_BAM_NEXT_PAGE 0x8350
  4466. #define MDIO_BAM_NEXT_PAGE_MP5_NEXT_PAGE_CTRL 0x10
  4467. #define MDIO_BAM_NEXT_PAGE_MP5_NEXT_PAGE_CTRL_BAM_MODE 0x0001
  4468. #define MDIO_BAM_NEXT_PAGE_MP5_NEXT_PAGE_CTRL_TETON_AN 0x0002
  4469. #define MDIO_REG_BANK_CL73_USERB0 0x8370
  4470. #define MDIO_CL73_USERB0_CL73_BAM_CTRL1 0x12
  4471. #define MDIO_CL73_USERB0_CL73_BAM_CTRL1_BAM_EN 0x8000
  4472. #define MDIO_CL73_USERB0_CL73_BAM_CTRL1_BAM_STATION_MNGR_EN 0x4000
  4473. #define MDIO_CL73_USERB0_CL73_BAM_CTRL1_BAM_NP_AFTER_BP_EN 0x2000
  4474. #define MDIO_CL73_USERB0_CL73_BAM_CTRL3 0x14
  4475. #define MDIO_CL73_USERB0_CL73_BAM_CTRL3_USE_CL73_HCD_MR 0x0001
  4476. #define MDIO_REG_BANK_AER_BLOCK 0xFFD0
  4477. #define MDIO_AER_BLOCK_AER_REG 0x1E
  4478. #define MDIO_REG_BANK_COMBO_IEEE0 0xFFE0
  4479. #define MDIO_COMBO_IEEE0_MII_CONTROL 0x10
  4480. #define MDIO_COMBO_IEEO_MII_CONTROL_MAN_SGMII_SP_MASK 0x2040
  4481. #define MDIO_COMBO_IEEO_MII_CONTROL_MAN_SGMII_SP_10 0x0000
  4482. #define MDIO_COMBO_IEEO_MII_CONTROL_MAN_SGMII_SP_100 0x2000
  4483. #define MDIO_COMBO_IEEO_MII_CONTROL_MAN_SGMII_SP_1000 0x0040
  4484. #define MDIO_COMBO_IEEO_MII_CONTROL_FULL_DUPLEX 0x0100
  4485. #define MDIO_COMBO_IEEO_MII_CONTROL_RESTART_AN 0x0200
  4486. #define MDIO_COMBO_IEEO_MII_CONTROL_AN_EN 0x1000
  4487. #define MDIO_COMBO_IEEO_MII_CONTROL_LOOPBACK 0x4000
  4488. #define MDIO_COMBO_IEEO_MII_CONTROL_RESET 0x8000
  4489. #define MDIO_COMBO_IEEE0_MII_STATUS 0x11
  4490. #define MDIO_COMBO_IEEE0_MII_STATUS_LINK_PASS 0x0004
  4491. #define MDIO_COMBO_IEEE0_MII_STATUS_AUTONEG_COMPLETE 0x0020
  4492. #define MDIO_COMBO_IEEE0_AUTO_NEG_ADV 0x14
  4493. #define MDIO_COMBO_IEEE0_AUTO_NEG_ADV_FULL_DUPLEX 0x0020
  4494. #define MDIO_COMBO_IEEE0_AUTO_NEG_ADV_HALF_DUPLEX 0x0040
  4495. #define MDIO_COMBO_IEEE0_AUTO_NEG_ADV_PAUSE_MASK 0x0180
  4496. #define MDIO_COMBO_IEEE0_AUTO_NEG_ADV_PAUSE_NONE 0x0000
  4497. #define MDIO_COMBO_IEEE0_AUTO_NEG_ADV_PAUSE_SYMMETRIC 0x0080
  4498. #define MDIO_COMBO_IEEE0_AUTO_NEG_ADV_PAUSE_ASYMMETRIC 0x0100
  4499. #define MDIO_COMBO_IEEE0_AUTO_NEG_ADV_PAUSE_BOTH 0x0180
  4500. #define MDIO_COMBO_IEEE0_AUTO_NEG_ADV_NEXT_PAGE 0x8000
  4501. #define MDIO_COMBO_IEEE0_AUTO_NEG_LINK_PARTNER_ABILITY1 0x15
  4502. #define MDIO_COMBO_IEEE0_AUTO_NEG_LINK_PARTNER_ABILITY1_NEXT_PAGE 0x8000
  4503. #define MDIO_COMBO_IEEE0_AUTO_NEG_LINK_PARTNER_ABILITY1_ACK 0x4000
  4504. #define MDIO_COMBO_IEEE0_AUTO_NEG_LINK_PARTNER_ABILITY1_PAUSE_MASK 0x0180
  4505. #define MDIO_COMBO_IEEE0_AUTO_NEG_LINK_PARTNER_ABILITY1_PAUSE_NONE\
  4506. 0x0000
  4507. #define MDIO_COMBO_IEEE0_AUTO_NEG_LINK_PARTNER_ABILITY1_PAUSE_BOTH\
  4508. 0x0180
  4509. #define MDIO_COMBO_IEEE0_AUTO_NEG_LINK_PARTNER_ABILITY1_HALF_DUP_CAP 0x0040
  4510. #define MDIO_COMBO_IEEE0_AUTO_NEG_LINK_PARTNER_ABILITY1_FULL_DUP_CAP 0x0020
  4511. #define MDIO_COMBO_IEEE0_AUTO_NEG_LINK_PARTNER_ABILITY1_SGMII_MODE 0x0001
  4512. #define EXT_PHY_AUTO_NEG_DEVAD 0x7
  4513. #define EXT_PHY_OPT_PMA_PMD_DEVAD 0x1
  4514. #define EXT_PHY_OPT_WIS_DEVAD 0x2
  4515. #define EXT_PHY_OPT_PCS_DEVAD 0x3
  4516. #define EXT_PHY_OPT_PHY_XS_DEVAD 0x4
  4517. #define EXT_PHY_OPT_CNTL 0x0
  4518. #define EXT_PHY_OPT_CNTL2 0x7
  4519. #define EXT_PHY_OPT_PMD_RX_SD 0xa
  4520. #define EXT_PHY_OPT_PMD_MISC_CNTL 0xca0a
  4521. #define EXT_PHY_OPT_PHY_IDENTIFIER 0xc800
  4522. #define EXT_PHY_OPT_PMD_DIGITAL_CNT 0xc808
  4523. #define EXT_PHY_OPT_PMD_DIGITAL_SATUS 0xc809
  4524. #define EXT_PHY_OPT_CMU_PLL_BYPASS 0xca09
  4525. #define EXT_PHY_OPT_LASI_CNTL 0x9002
  4526. #define EXT_PHY_OPT_RX_ALARM 0x9003
  4527. #define EXT_PHY_OPT_LASI_STATUS 0x9005
  4528. #define EXT_PHY_OPT_PCS_STATUS 0x0020
  4529. #define EXT_PHY_OPT_XGXS_LANE_STATUS 0x0018
  4530. #define EXT_PHY_OPT_AN_LINK_STATUS 0x8304
  4531. #define EXT_PHY_OPT_AN_CL37_CL73 0x8370
  4532. #define EXT_PHY_OPT_AN_CL37_FD 0xffe4
  4533. #define EXT_PHY_OPT_AN_CL37_AN 0xffe0
  4534. #define EXT_PHY_OPT_AN_ADV 0x11
  4535. #define EXT_PHY_KR_PMA_PMD_DEVAD 0x1
  4536. #define EXT_PHY_KR_PCS_DEVAD 0x3
  4537. #define EXT_PHY_KR_AUTO_NEG_DEVAD 0x7
  4538. #define EXT_PHY_KR_CTRL 0x0000
  4539. #define EXT_PHY_KR_STATUS 0x0001
  4540. #define EXT_PHY_KR_AUTO_NEG_COMPLETE 0x0020
  4541. #define EXT_PHY_KR_AUTO_NEG_ADVERT 0x0010
  4542. #define EXT_PHY_KR_AUTO_NEG_ADVERT_PAUSE 0x0400
  4543. #define EXT_PHY_KR_AUTO_NEG_ADVERT_PAUSE_ASYMMETRIC 0x0800
  4544. #define EXT_PHY_KR_AUTO_NEG_ADVERT_PAUSE_BOTH 0x0C00
  4545. #define EXT_PHY_KR_AUTO_NEG_ADVERT_PAUSE_MASK 0x0C00
  4546. #define EXT_PHY_KR_LP_AUTO_NEG 0x0013
  4547. #define EXT_PHY_KR_CTRL2 0x0007
  4548. #define EXT_PHY_KR_PCS_STATUS 0x0020
  4549. #define EXT_PHY_KR_PMD_CTRL 0x0096
  4550. #define EXT_PHY_KR_LASI_CNTL 0x9002
  4551. #define EXT_PHY_KR_LASI_STATUS 0x9005
  4552. #define EXT_PHY_KR_MISC_CTRL1 0xca85
  4553. #define EXT_PHY_KR_GEN_CTRL 0xca10
  4554. #define EXT_PHY_KR_ROM_CODE 0xca19
  4555. #define EXT_PHY_KR_ROM_RESET_INTERNAL_MP 0x0188
  4556. #define EXT_PHY_KR_ROM_MICRO_RESET 0x018a
  4557. #define EXT_PHY_SFX7101_XGXS_TEST1 0xc00a