bnx2x_reg.h 322 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318
  1. /* bnx2x_reg.h: Broadcom Everest network driver.
  2. *
  3. * Copyright (c) 2007-2010 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 register 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. #define ATC_ATC_INT_STS_REG_ADDRESS_ERROR (0x1<<0)
  22. #define ATC_ATC_INT_STS_REG_ATC_GPA_MULTIPLE_HITS (0x1<<2)
  23. #define ATC_ATC_INT_STS_REG_ATC_IREQ_LESS_THAN_STU (0x1<<5)
  24. #define ATC_ATC_INT_STS_REG_ATC_RCPL_TO_EMPTY_CNT (0x1<<3)
  25. #define ATC_ATC_INT_STS_REG_ATC_TCPL_ERROR (0x1<<4)
  26. #define ATC_ATC_INT_STS_REG_ATC_TCPL_TO_NOT_PEND (0x1<<1)
  27. /* [RW 1] Initiate the ATC array - reset all the valid bits */
  28. #define ATC_REG_ATC_INIT_ARRAY 0x1100b8
  29. /* [R 1] ATC initalization done */
  30. #define ATC_REG_ATC_INIT_DONE 0x1100bc
  31. /* [RC 6] Interrupt register #0 read clear */
  32. #define ATC_REG_ATC_INT_STS_CLR 0x1101c0
  33. /* [RW 19] Interrupt mask register #0 read/write */
  34. #define BRB1_REG_BRB1_INT_MASK 0x60128
  35. /* [R 19] Interrupt register #0 read */
  36. #define BRB1_REG_BRB1_INT_STS 0x6011c
  37. /* [RW 4] Parity mask register #0 read/write */
  38. #define BRB1_REG_BRB1_PRTY_MASK 0x60138
  39. /* [R 4] Parity register #0 read */
  40. #define BRB1_REG_BRB1_PRTY_STS 0x6012c
  41. /* [RW 10] At address BRB1_IND_FREE_LIST_PRS_CRDT initialize free head. At
  42. * address BRB1_IND_FREE_LIST_PRS_CRDT+1 initialize free tail. At address
  43. * BRB1_IND_FREE_LIST_PRS_CRDT+2 initialize parser initial credit. Warning -
  44. * following reset the first rbc access to this reg must be write; there can
  45. * be no more rbc writes after the first one; there can be any number of rbc
  46. * read following the first write; rbc access not following these rules will
  47. * result in hang condition. */
  48. #define BRB1_REG_FREE_LIST_PRS_CRDT 0x60200
  49. /* [RW 10] The number of free blocks below which the full signal to class 0
  50. * is asserted */
  51. #define BRB1_REG_FULL_0_XOFF_THRESHOLD_0 0x601d0
  52. /* [RW 10] The number of free blocks above which the full signal to class 0
  53. * is de-asserted */
  54. #define BRB1_REG_FULL_0_XON_THRESHOLD_0 0x601d4
  55. /* [RW 10] The number of free blocks below which the full signal to class 1
  56. * is asserted */
  57. #define BRB1_REG_FULL_1_XOFF_THRESHOLD_0 0x601d8
  58. /* [RW 10] The number of free blocks above which the full signal to class 1
  59. * is de-asserted */
  60. #define BRB1_REG_FULL_1_XON_THRESHOLD_0 0x601dc
  61. /* [RW 10] The number of free blocks below which the full signal to the LB
  62. * port is asserted */
  63. #define BRB1_REG_FULL_LB_XOFF_THRESHOLD 0x601e0
  64. /* [RW 10] The number of free blocks above which the full signal to the LB
  65. * port is de-asserted */
  66. #define BRB1_REG_FULL_LB_XON_THRESHOLD 0x601e4
  67. /* [RW 10] The number of free blocks above which the High_llfc signal to
  68. interface #n is de-asserted. */
  69. #define BRB1_REG_HIGH_LLFC_HIGH_THRESHOLD_0 0x6014c
  70. /* [RW 10] The number of free blocks below which the High_llfc signal to
  71. interface #n is asserted. */
  72. #define BRB1_REG_HIGH_LLFC_LOW_THRESHOLD_0 0x6013c
  73. /* [RW 23] LL RAM data. */
  74. #define BRB1_REG_LL_RAM 0x61000
  75. /* [RW 10] The number of free blocks above which the Low_llfc signal to
  76. interface #n is de-asserted. */
  77. #define BRB1_REG_LOW_LLFC_HIGH_THRESHOLD_0 0x6016c
  78. /* [RW 10] The number of free blocks below which the Low_llfc signal to
  79. interface #n is asserted. */
  80. #define BRB1_REG_LOW_LLFC_LOW_THRESHOLD_0 0x6015c
  81. /* [RW 10] The number of blocks guarantied for the MAC port */
  82. #define BRB1_REG_MAC_GUARANTIED_0 0x601e8
  83. #define BRB1_REG_MAC_GUARANTIED_1 0x60240
  84. /* [R 24] The number of full blocks. */
  85. #define BRB1_REG_NUM_OF_FULL_BLOCKS 0x60090
  86. /* [ST 32] The number of cycles that the write_full signal towards MAC #0
  87. was asserted. */
  88. #define BRB1_REG_NUM_OF_FULL_CYCLES_0 0x600c8
  89. #define BRB1_REG_NUM_OF_FULL_CYCLES_1 0x600cc
  90. #define BRB1_REG_NUM_OF_FULL_CYCLES_4 0x600d8
  91. /* [ST 32] The number of cycles that the pause signal towards MAC #0 was
  92. asserted. */
  93. #define BRB1_REG_NUM_OF_PAUSE_CYCLES_0 0x600b8
  94. #define BRB1_REG_NUM_OF_PAUSE_CYCLES_1 0x600bc
  95. /* [RW 10] The number of free blocks below which the pause signal to class 0
  96. * is asserted */
  97. #define BRB1_REG_PAUSE_0_XOFF_THRESHOLD_0 0x601c0
  98. /* [RW 10] The number of free blocks above which the pause signal to class 0
  99. * is de-asserted */
  100. #define BRB1_REG_PAUSE_0_XON_THRESHOLD_0 0x601c4
  101. /* [RW 10] The number of free blocks below which the pause signal to class 1
  102. * is asserted */
  103. #define BRB1_REG_PAUSE_1_XOFF_THRESHOLD_0 0x601c8
  104. /* [RW 10] The number of free blocks above which the pause signal to class 1
  105. * is de-asserted */
  106. #define BRB1_REG_PAUSE_1_XON_THRESHOLD_0 0x601cc
  107. /* [RW 10] Write client 0: De-assert pause threshold. Not Functional */
  108. #define BRB1_REG_PAUSE_HIGH_THRESHOLD_0 0x60078
  109. #define BRB1_REG_PAUSE_HIGH_THRESHOLD_1 0x6007c
  110. /* [RW 10] Write client 0: Assert pause threshold. */
  111. #define BRB1_REG_PAUSE_LOW_THRESHOLD_0 0x60068
  112. #define BRB1_REG_PAUSE_LOW_THRESHOLD_1 0x6006c
  113. /* [R 24] The number of full blocks occupied by port. */
  114. #define BRB1_REG_PORT_NUM_OCC_BLOCKS_0 0x60094
  115. /* [RW 1] Reset the design by software. */
  116. #define BRB1_REG_SOFT_RESET 0x600dc
  117. /* [R 5] Used to read the value of the XX protection CAM occupancy counter. */
  118. #define CCM_REG_CAM_OCCUP 0xd0188
  119. /* [RW 1] CM - CFC Interface enable. If 0 - the valid input is disregarded;
  120. acknowledge output is deasserted; all other signals are treated as usual;
  121. if 1 - normal activity. */
  122. #define CCM_REG_CCM_CFC_IFEN 0xd003c
  123. /* [RW 1] CM - QM Interface enable. If 0 - the acknowledge input is
  124. disregarded; valid is deasserted; all other signals are treated as usual;
  125. if 1 - normal activity. */
  126. #define CCM_REG_CCM_CQM_IFEN 0xd000c
  127. /* [RW 1] If set the Q index; received from the QM is inserted to event ID.
  128. Otherwise 0 is inserted. */
  129. #define CCM_REG_CCM_CQM_USE_Q 0xd00c0
  130. /* [RW 11] Interrupt mask register #0 read/write */
  131. #define CCM_REG_CCM_INT_MASK 0xd01e4
  132. /* [R 11] Interrupt register #0 read */
  133. #define CCM_REG_CCM_INT_STS 0xd01d8
  134. /* [R 27] Parity register #0 read */
  135. #define CCM_REG_CCM_PRTY_STS 0xd01e8
  136. /* [RW 3] The size of AG context region 0 in REG-pairs. Designates the MS
  137. REG-pair number (e.g. if region 0 is 6 REG-pairs; the value should be 5).
  138. Is used to determine the number of the AG context REG-pairs written back;
  139. when the input message Reg1WbFlg isn't set. */
  140. #define CCM_REG_CCM_REG0_SZ 0xd00c4
  141. /* [RW 1] CM - STORM 0 Interface enable. If 0 - the acknowledge input is
  142. disregarded; valid is deasserted; all other signals are treated as usual;
  143. if 1 - normal activity. */
  144. #define CCM_REG_CCM_STORM0_IFEN 0xd0004
  145. /* [RW 1] CM - STORM 1 Interface enable. If 0 - the acknowledge input is
  146. disregarded; valid is deasserted; all other signals are treated as usual;
  147. if 1 - normal activity. */
  148. #define CCM_REG_CCM_STORM1_IFEN 0xd0008
  149. /* [RW 1] CDU AG read Interface enable. If 0 - the request input is
  150. disregarded; valid output is deasserted; all other signals are treated as
  151. usual; if 1 - normal activity. */
  152. #define CCM_REG_CDU_AG_RD_IFEN 0xd0030
  153. /* [RW 1] CDU AG write Interface enable. If 0 - the request and valid input
  154. are disregarded; all other signals are treated as usual; if 1 - normal
  155. activity. */
  156. #define CCM_REG_CDU_AG_WR_IFEN 0xd002c
  157. /* [RW 1] CDU STORM read Interface enable. If 0 - the request input is
  158. disregarded; valid output is deasserted; all other signals are treated as
  159. usual; if 1 - normal activity. */
  160. #define CCM_REG_CDU_SM_RD_IFEN 0xd0038
  161. /* [RW 1] CDU STORM write Interface enable. If 0 - the request and valid
  162. input is disregarded; all other signals are treated as usual; if 1 -
  163. normal activity. */
  164. #define CCM_REG_CDU_SM_WR_IFEN 0xd0034
  165. /* [RW 4] CFC output initial credit. Max credit available - 15.Write writes
  166. the initial credit value; read returns the current value of the credit
  167. counter. Must be initialized to 1 at start-up. */
  168. #define CCM_REG_CFC_INIT_CRD 0xd0204
  169. /* [RW 2] Auxillary counter flag Q number 1. */
  170. #define CCM_REG_CNT_AUX1_Q 0xd00c8
  171. /* [RW 2] Auxillary counter flag Q number 2. */
  172. #define CCM_REG_CNT_AUX2_Q 0xd00cc
  173. /* [RW 28] The CM header value for QM request (primary). */
  174. #define CCM_REG_CQM_CCM_HDR_P 0xd008c
  175. /* [RW 28] The CM header value for QM request (secondary). */
  176. #define CCM_REG_CQM_CCM_HDR_S 0xd0090
  177. /* [RW 1] QM - CM Interface enable. If 0 - the valid input is disregarded;
  178. acknowledge output is deasserted; all other signals are treated as usual;
  179. if 1 - normal activity. */
  180. #define CCM_REG_CQM_CCM_IFEN 0xd0014
  181. /* [RW 6] QM output initial credit. Max credit available - 32. Write writes
  182. the initial credit value; read returns the current value of the credit
  183. counter. Must be initialized to 32 at start-up. */
  184. #define CCM_REG_CQM_INIT_CRD 0xd020c
  185. /* [RW 3] The weight of the QM (primary) input in the WRR mechanism. 0
  186. stands for weight 8 (the most prioritised); 1 stands for weight 1(least
  187. prioritised); 2 stands for weight 2; tc. */
  188. #define CCM_REG_CQM_P_WEIGHT 0xd00b8
  189. /* [RW 3] The weight of the QM (secondary) input in the WRR mechanism. 0
  190. stands for weight 8 (the most prioritised); 1 stands for weight 1(least
  191. prioritised); 2 stands for weight 2; tc. */
  192. #define CCM_REG_CQM_S_WEIGHT 0xd00bc
  193. /* [RW 1] Input SDM Interface enable. If 0 - the valid input is disregarded;
  194. acknowledge output is deasserted; all other signals are treated as usual;
  195. if 1 - normal activity. */
  196. #define CCM_REG_CSDM_IFEN 0xd0018
  197. /* [RC 1] Set when the message length mismatch (relative to last indication)
  198. at the SDM interface is detected. */
  199. #define CCM_REG_CSDM_LENGTH_MIS 0xd0170
  200. /* [RW 3] The weight of the SDM input in the WRR mechanism. 0 stands for
  201. weight 8 (the most prioritised); 1 stands for weight 1(least
  202. prioritised); 2 stands for weight 2; tc. */
  203. #define CCM_REG_CSDM_WEIGHT 0xd00b4
  204. /* [RW 28] The CM header for QM formatting in case of an error in the QM
  205. inputs. */
  206. #define CCM_REG_ERR_CCM_HDR 0xd0094
  207. /* [RW 8] The Event ID in case the input message ErrorFlg is set. */
  208. #define CCM_REG_ERR_EVNT_ID 0xd0098
  209. /* [RW 8] FIC0 output initial credit. Max credit available - 255. Write
  210. writes the initial credit value; read returns the current value of the
  211. credit counter. Must be initialized to 64 at start-up. */
  212. #define CCM_REG_FIC0_INIT_CRD 0xd0210
  213. /* [RW 8] FIC1 output initial credit. Max credit available - 255.Write
  214. writes the initial credit value; read returns the current value of the
  215. credit counter. Must be initialized to 64 at start-up. */
  216. #define CCM_REG_FIC1_INIT_CRD 0xd0214
  217. /* [RW 1] Arbitration between Input Arbiter groups: 0 - fair Round-Robin; 1
  218. - strict priority defined by ~ccm_registers_gr_ag_pr.gr_ag_pr;
  219. ~ccm_registers_gr_ld0_pr.gr_ld0_pr and
  220. ~ccm_registers_gr_ld1_pr.gr_ld1_pr. Groups are according to channels and
  221. outputs to STORM: aggregation; load FIC0; load FIC1 and store. */
  222. #define CCM_REG_GR_ARB_TYPE 0xd015c
  223. /* [RW 2] Load (FIC0) channel group priority. The lowest priority is 0; the
  224. highest priority is 3. It is supposed; that the Store channel priority is
  225. the compliment to 4 of the rest priorities - Aggregation channel; Load
  226. (FIC0) channel and Load (FIC1). */
  227. #define CCM_REG_GR_LD0_PR 0xd0164
  228. /* [RW 2] Load (FIC1) channel group priority. The lowest priority is 0; the
  229. highest priority is 3. It is supposed; that the Store channel priority is
  230. the compliment to 4 of the rest priorities - Aggregation channel; Load
  231. (FIC0) channel and Load (FIC1). */
  232. #define CCM_REG_GR_LD1_PR 0xd0168
  233. /* [RW 2] General flags index. */
  234. #define CCM_REG_INV_DONE_Q 0xd0108
  235. /* [RW 4] The number of double REG-pairs(128 bits); loaded from the STORM
  236. context and sent to STORM; for a specific connection type. The double
  237. REG-pairs are used in order to align to STORM context row size of 128
  238. bits. The offset of these data in the STORM context is always 0. Index
  239. _(0..15) stands for the connection type (one of 16). */
  240. #define CCM_REG_N_SM_CTX_LD_0 0xd004c
  241. #define CCM_REG_N_SM_CTX_LD_1 0xd0050
  242. #define CCM_REG_N_SM_CTX_LD_2 0xd0054
  243. #define CCM_REG_N_SM_CTX_LD_3 0xd0058
  244. #define CCM_REG_N_SM_CTX_LD_4 0xd005c
  245. /* [RW 1] Input pbf Interface enable. If 0 - the valid input is disregarded;
  246. acknowledge output is deasserted; all other signals are treated as usual;
  247. if 1 - normal activity. */
  248. #define CCM_REG_PBF_IFEN 0xd0028
  249. /* [RC 1] Set when the message length mismatch (relative to last indication)
  250. at the pbf interface is detected. */
  251. #define CCM_REG_PBF_LENGTH_MIS 0xd0180
  252. /* [RW 3] The weight of the input pbf in the WRR mechanism. 0 stands for
  253. weight 8 (the most prioritised); 1 stands for weight 1(least
  254. prioritised); 2 stands for weight 2; tc. */
  255. #define CCM_REG_PBF_WEIGHT 0xd00ac
  256. #define CCM_REG_PHYS_QNUM1_0 0xd0134
  257. #define CCM_REG_PHYS_QNUM1_1 0xd0138
  258. #define CCM_REG_PHYS_QNUM2_0 0xd013c
  259. #define CCM_REG_PHYS_QNUM2_1 0xd0140
  260. #define CCM_REG_PHYS_QNUM3_0 0xd0144
  261. #define CCM_REG_PHYS_QNUM3_1 0xd0148
  262. #define CCM_REG_QOS_PHYS_QNUM0_0 0xd0114
  263. #define CCM_REG_QOS_PHYS_QNUM0_1 0xd0118
  264. #define CCM_REG_QOS_PHYS_QNUM1_0 0xd011c
  265. #define CCM_REG_QOS_PHYS_QNUM1_1 0xd0120
  266. #define CCM_REG_QOS_PHYS_QNUM2_0 0xd0124
  267. #define CCM_REG_QOS_PHYS_QNUM2_1 0xd0128
  268. #define CCM_REG_QOS_PHYS_QNUM3_0 0xd012c
  269. #define CCM_REG_QOS_PHYS_QNUM3_1 0xd0130
  270. /* [RW 1] STORM - CM Interface enable. If 0 - the valid input is
  271. disregarded; acknowledge output is deasserted; all other signals are
  272. treated as usual; if 1 - normal activity. */
  273. #define CCM_REG_STORM_CCM_IFEN 0xd0010
  274. /* [RC 1] Set when the message length mismatch (relative to last indication)
  275. at the STORM interface is detected. */
  276. #define CCM_REG_STORM_LENGTH_MIS 0xd016c
  277. /* [RW 3] The weight of the STORM input in the WRR (Weighted Round robin)
  278. mechanism. 0 stands for weight 8 (the most prioritised); 1 stands for
  279. weight 1(least prioritised); 2 stands for weight 2 (more prioritised);
  280. tc. */
  281. #define CCM_REG_STORM_WEIGHT 0xd009c
  282. /* [RW 1] Input tsem Interface enable. If 0 - the valid input is
  283. disregarded; acknowledge output is deasserted; all other signals are
  284. treated as usual; if 1 - normal activity. */
  285. #define CCM_REG_TSEM_IFEN 0xd001c
  286. /* [RC 1] Set when the message length mismatch (relative to last indication)
  287. at the tsem interface is detected. */
  288. #define CCM_REG_TSEM_LENGTH_MIS 0xd0174
  289. /* [RW 3] The weight of the input tsem in the WRR mechanism. 0 stands for
  290. weight 8 (the most prioritised); 1 stands for weight 1(least
  291. prioritised); 2 stands for weight 2; tc. */
  292. #define CCM_REG_TSEM_WEIGHT 0xd00a0
  293. /* [RW 1] Input usem Interface enable. If 0 - the valid input is
  294. disregarded; acknowledge output is deasserted; all other signals are
  295. treated as usual; if 1 - normal activity. */
  296. #define CCM_REG_USEM_IFEN 0xd0024
  297. /* [RC 1] Set when message length mismatch (relative to last indication) at
  298. the usem interface is detected. */
  299. #define CCM_REG_USEM_LENGTH_MIS 0xd017c
  300. /* [RW 3] The weight of the input usem in the WRR mechanism. 0 stands for
  301. weight 8 (the most prioritised); 1 stands for weight 1(least
  302. prioritised); 2 stands for weight 2; tc. */
  303. #define CCM_REG_USEM_WEIGHT 0xd00a8
  304. /* [RW 1] Input xsem Interface enable. If 0 - the valid input is
  305. disregarded; acknowledge output is deasserted; all other signals are
  306. treated as usual; if 1 - normal activity. */
  307. #define CCM_REG_XSEM_IFEN 0xd0020
  308. /* [RC 1] Set when the message length mismatch (relative to last indication)
  309. at the xsem interface is detected. */
  310. #define CCM_REG_XSEM_LENGTH_MIS 0xd0178
  311. /* [RW 3] The weight of the input xsem in the WRR mechanism. 0 stands for
  312. weight 8 (the most prioritised); 1 stands for weight 1(least
  313. prioritised); 2 stands for weight 2; tc. */
  314. #define CCM_REG_XSEM_WEIGHT 0xd00a4
  315. /* [RW 19] Indirect access to the descriptor table of the XX protection
  316. mechanism. The fields are: [5:0] - message length; [12:6] - message
  317. pointer; 18:13] - next pointer. */
  318. #define CCM_REG_XX_DESCR_TABLE 0xd0300
  319. #define CCM_REG_XX_DESCR_TABLE_SIZE 36
  320. /* [R 7] Used to read the value of XX protection Free counter. */
  321. #define CCM_REG_XX_FREE 0xd0184
  322. /* [RW 6] Initial value for the credit counter; responsible for fulfilling
  323. of the Input Stage XX protection buffer by the XX protection pending
  324. messages. Max credit available - 127. Write writes the initial credit
  325. value; read returns the current value of the credit counter. Must be
  326. initialized to maximum XX protected message size - 2 at start-up. */
  327. #define CCM_REG_XX_INIT_CRD 0xd0220
  328. /* [RW 7] The maximum number of pending messages; which may be stored in XX
  329. protection. At read the ~ccm_registers_xx_free.xx_free counter is read.
  330. At write comprises the start value of the ~ccm_registers_xx_free.xx_free
  331. counter. */
  332. #define CCM_REG_XX_MSG_NUM 0xd0224
  333. /* [RW 8] The Event ID; sent to the STORM in case of XX overflow. */
  334. #define CCM_REG_XX_OVFL_EVNT_ID 0xd0044
  335. /* [RW 18] Indirect access to the XX table of the XX protection mechanism.
  336. The fields are: [5:0] - tail pointer; 11:6] - Link List size; 17:12] -
  337. header pointer. */
  338. #define CCM_REG_XX_TABLE 0xd0280
  339. #define CDU_REG_CDU_CHK_MASK0 0x101000
  340. #define CDU_REG_CDU_CHK_MASK1 0x101004
  341. #define CDU_REG_CDU_CONTROL0 0x101008
  342. #define CDU_REG_CDU_DEBUG 0x101010
  343. #define CDU_REG_CDU_GLOBAL_PARAMS 0x101020
  344. /* [RW 7] Interrupt mask register #0 read/write */
  345. #define CDU_REG_CDU_INT_MASK 0x10103c
  346. /* [R 7] Interrupt register #0 read */
  347. #define CDU_REG_CDU_INT_STS 0x101030
  348. /* [RW 5] Parity mask register #0 read/write */
  349. #define CDU_REG_CDU_PRTY_MASK 0x10104c
  350. /* [R 5] Parity register #0 read */
  351. #define CDU_REG_CDU_PRTY_STS 0x101040
  352. /* [RC 32] logging of error data in case of a CDU load error:
  353. {expected_cid[15:0]; xpected_type[2:0]; xpected_region[2:0]; ctive_error;
  354. ype_error; ctual_active; ctual_compressed_context}; */
  355. #define CDU_REG_ERROR_DATA 0x101014
  356. /* [WB 216] L1TT ram access. each entry has the following format :
  357. {mrege_regions[7:0]; ffset12[5:0]...offset0[5:0];
  358. ength12[5:0]...length0[5:0]; d12[3:0]...id0[3:0]} */
  359. #define CDU_REG_L1TT 0x101800
  360. /* [WB 24] MATT ram access. each entry has the following
  361. format:{RegionLength[11:0]; egionOffset[11:0]} */
  362. #define CDU_REG_MATT 0x101100
  363. /* [RW 1] when this bit is set the CDU operates in e1hmf mode */
  364. #define CDU_REG_MF_MODE 0x101050
  365. /* [R 1] indication the initializing the activity counter by the hardware
  366. was done. */
  367. #define CFC_REG_AC_INIT_DONE 0x104078
  368. /* [RW 13] activity counter ram access */
  369. #define CFC_REG_ACTIVITY_COUNTER 0x104400
  370. #define CFC_REG_ACTIVITY_COUNTER_SIZE 256
  371. /* [R 1] indication the initializing the cams by the hardware was done. */
  372. #define CFC_REG_CAM_INIT_DONE 0x10407c
  373. /* [RW 2] Interrupt mask register #0 read/write */
  374. #define CFC_REG_CFC_INT_MASK 0x104108
  375. /* [R 2] Interrupt register #0 read */
  376. #define CFC_REG_CFC_INT_STS 0x1040fc
  377. /* [RC 2] Interrupt register #0 read clear */
  378. #define CFC_REG_CFC_INT_STS_CLR 0x104100
  379. /* [RW 4] Parity mask register #0 read/write */
  380. #define CFC_REG_CFC_PRTY_MASK 0x104118
  381. /* [R 4] Parity register #0 read */
  382. #define CFC_REG_CFC_PRTY_STS 0x10410c
  383. /* [RW 21] CID cam access (21:1 - Data; alid - 0) */
  384. #define CFC_REG_CID_CAM 0x104800
  385. #define CFC_REG_CONTROL0 0x104028
  386. #define CFC_REG_DEBUG0 0x104050
  387. /* [RW 14] indicates per error (in #cfc_registers_cfc_error_vector.cfc_error
  388. vector) whether the cfc should be disabled upon it */
  389. #define CFC_REG_DISABLE_ON_ERROR 0x104044
  390. /* [RC 14] CFC error vector. when the CFC detects an internal error it will
  391. set one of these bits. the bit description can be found in CFC
  392. specifications */
  393. #define CFC_REG_ERROR_VECTOR 0x10403c
  394. /* [WB 93] LCID info ram access */
  395. #define CFC_REG_INFO_RAM 0x105000
  396. #define CFC_REG_INFO_RAM_SIZE 1024
  397. #define CFC_REG_INIT_REG 0x10404c
  398. #define CFC_REG_INTERFACES 0x104058
  399. /* [RW 24] {weight_load_client7[2:0] to weight_load_client0[2:0]}. this
  400. field allows changing the priorities of the weighted-round-robin arbiter
  401. which selects which CFC load client should be served next */
  402. #define CFC_REG_LCREQ_WEIGHTS 0x104084
  403. /* [RW 16] Link List ram access; data = {prev_lcid; ext_lcid} */
  404. #define CFC_REG_LINK_LIST 0x104c00
  405. #define CFC_REG_LINK_LIST_SIZE 256
  406. /* [R 1] indication the initializing the link list by the hardware was done. */
  407. #define CFC_REG_LL_INIT_DONE 0x104074
  408. /* [R 9] Number of allocated LCIDs which are at empty state */
  409. #define CFC_REG_NUM_LCIDS_ALLOC 0x104020
  410. /* [R 9] Number of Arriving LCIDs in Link List Block */
  411. #define CFC_REG_NUM_LCIDS_ARRIVING 0x104004
  412. /* [R 9] Number of Leaving LCIDs in Link List Block */
  413. #define CFC_REG_NUM_LCIDS_LEAVING 0x104018
  414. #define CFC_REG_WEAK_ENABLE_PF 0x104124
  415. /* [RW 8] The event id for aggregated interrupt 0 */
  416. #define CSDM_REG_AGG_INT_EVENT_0 0xc2038
  417. #define CSDM_REG_AGG_INT_EVENT_10 0xc2060
  418. #define CSDM_REG_AGG_INT_EVENT_11 0xc2064
  419. #define CSDM_REG_AGG_INT_EVENT_12 0xc2068
  420. #define CSDM_REG_AGG_INT_EVENT_13 0xc206c
  421. #define CSDM_REG_AGG_INT_EVENT_14 0xc2070
  422. #define CSDM_REG_AGG_INT_EVENT_15 0xc2074
  423. #define CSDM_REG_AGG_INT_EVENT_16 0xc2078
  424. #define CSDM_REG_AGG_INT_EVENT_2 0xc2040
  425. #define CSDM_REG_AGG_INT_EVENT_3 0xc2044
  426. #define CSDM_REG_AGG_INT_EVENT_4 0xc2048
  427. #define CSDM_REG_AGG_INT_EVENT_5 0xc204c
  428. #define CSDM_REG_AGG_INT_EVENT_6 0xc2050
  429. #define CSDM_REG_AGG_INT_EVENT_7 0xc2054
  430. #define CSDM_REG_AGG_INT_EVENT_8 0xc2058
  431. #define CSDM_REG_AGG_INT_EVENT_9 0xc205c
  432. /* [RW 1] For each aggregated interrupt index whether the mode is normal (0)
  433. or auto-mask-mode (1) */
  434. #define CSDM_REG_AGG_INT_MODE_10 0xc21e0
  435. #define CSDM_REG_AGG_INT_MODE_11 0xc21e4
  436. #define CSDM_REG_AGG_INT_MODE_12 0xc21e8
  437. #define CSDM_REG_AGG_INT_MODE_13 0xc21ec
  438. #define CSDM_REG_AGG_INT_MODE_14 0xc21f0
  439. #define CSDM_REG_AGG_INT_MODE_15 0xc21f4
  440. #define CSDM_REG_AGG_INT_MODE_16 0xc21f8
  441. #define CSDM_REG_AGG_INT_MODE_6 0xc21d0
  442. #define CSDM_REG_AGG_INT_MODE_7 0xc21d4
  443. #define CSDM_REG_AGG_INT_MODE_8 0xc21d8
  444. #define CSDM_REG_AGG_INT_MODE_9 0xc21dc
  445. /* [RW 13] The start address in the internal RAM for the cfc_rsp lcid */
  446. #define CSDM_REG_CFC_RSP_START_ADDR 0xc2008
  447. /* [RW 16] The maximum value of the competion counter #0 */
  448. #define CSDM_REG_CMP_COUNTER_MAX0 0xc201c
  449. /* [RW 16] The maximum value of the competion counter #1 */
  450. #define CSDM_REG_CMP_COUNTER_MAX1 0xc2020
  451. /* [RW 16] The maximum value of the competion counter #2 */
  452. #define CSDM_REG_CMP_COUNTER_MAX2 0xc2024
  453. /* [RW 16] The maximum value of the competion counter #3 */
  454. #define CSDM_REG_CMP_COUNTER_MAX3 0xc2028
  455. /* [RW 13] The start address in the internal RAM for the completion
  456. counters. */
  457. #define CSDM_REG_CMP_COUNTER_START_ADDR 0xc200c
  458. /* [RW 32] Interrupt mask register #0 read/write */
  459. #define CSDM_REG_CSDM_INT_MASK_0 0xc229c
  460. #define CSDM_REG_CSDM_INT_MASK_1 0xc22ac
  461. /* [R 32] Interrupt register #0 read */
  462. #define CSDM_REG_CSDM_INT_STS_0 0xc2290
  463. #define CSDM_REG_CSDM_INT_STS_1 0xc22a0
  464. /* [RW 11] Parity mask register #0 read/write */
  465. #define CSDM_REG_CSDM_PRTY_MASK 0xc22bc
  466. /* [R 11] Parity register #0 read */
  467. #define CSDM_REG_CSDM_PRTY_STS 0xc22b0
  468. #define CSDM_REG_ENABLE_IN1 0xc2238
  469. #define CSDM_REG_ENABLE_IN2 0xc223c
  470. #define CSDM_REG_ENABLE_OUT1 0xc2240
  471. #define CSDM_REG_ENABLE_OUT2 0xc2244
  472. /* [RW 4] The initial number of messages that can be sent to the pxp control
  473. interface without receiving any ACK. */
  474. #define CSDM_REG_INIT_CREDIT_PXP_CTRL 0xc24bc
  475. /* [ST 32] The number of ACK after placement messages received */
  476. #define CSDM_REG_NUM_OF_ACK_AFTER_PLACE 0xc227c
  477. /* [ST 32] The number of packet end messages received from the parser */
  478. #define CSDM_REG_NUM_OF_PKT_END_MSG 0xc2274
  479. /* [ST 32] The number of requests received from the pxp async if */
  480. #define CSDM_REG_NUM_OF_PXP_ASYNC_REQ 0xc2278
  481. /* [ST 32] The number of commands received in queue 0 */
  482. #define CSDM_REG_NUM_OF_Q0_CMD 0xc2248
  483. /* [ST 32] The number of commands received in queue 10 */
  484. #define CSDM_REG_NUM_OF_Q10_CMD 0xc226c
  485. /* [ST 32] The number of commands received in queue 11 */
  486. #define CSDM_REG_NUM_OF_Q11_CMD 0xc2270
  487. /* [ST 32] The number of commands received in queue 1 */
  488. #define CSDM_REG_NUM_OF_Q1_CMD 0xc224c
  489. /* [ST 32] The number of commands received in queue 3 */
  490. #define CSDM_REG_NUM_OF_Q3_CMD 0xc2250
  491. /* [ST 32] The number of commands received in queue 4 */
  492. #define CSDM_REG_NUM_OF_Q4_CMD 0xc2254
  493. /* [ST 32] The number of commands received in queue 5 */
  494. #define CSDM_REG_NUM_OF_Q5_CMD 0xc2258
  495. /* [ST 32] The number of commands received in queue 6 */
  496. #define CSDM_REG_NUM_OF_Q6_CMD 0xc225c
  497. /* [ST 32] The number of commands received in queue 7 */
  498. #define CSDM_REG_NUM_OF_Q7_CMD 0xc2260
  499. /* [ST 32] The number of commands received in queue 8 */
  500. #define CSDM_REG_NUM_OF_Q8_CMD 0xc2264
  501. /* [ST 32] The number of commands received in queue 9 */
  502. #define CSDM_REG_NUM_OF_Q9_CMD 0xc2268
  503. /* [RW 13] The start address in the internal RAM for queue counters */
  504. #define CSDM_REG_Q_COUNTER_START_ADDR 0xc2010
  505. /* [R 1] pxp_ctrl rd_data fifo empty in sdm_dma_rsp block */
  506. #define CSDM_REG_RSP_PXP_CTRL_RDATA_EMPTY 0xc2548
  507. /* [R 1] parser fifo empty in sdm_sync block */
  508. #define CSDM_REG_SYNC_PARSER_EMPTY 0xc2550
  509. /* [R 1] parser serial fifo empty in sdm_sync block */
  510. #define CSDM_REG_SYNC_SYNC_EMPTY 0xc2558
  511. /* [RW 32] Tick for timer counter. Applicable only when
  512. ~csdm_registers_timer_tick_enable.timer_tick_enable =1 */
  513. #define CSDM_REG_TIMER_TICK 0xc2000
  514. /* [RW 5] The number of time_slots in the arbitration cycle */
  515. #define CSEM_REG_ARB_CYCLE_SIZE 0x200034
  516. /* [RW 3] The source that is associated with arbitration element 0. Source
  517. decoding is: 0- foc0; 1-fic1; 2-sleeping thread with priority 0; 3-
  518. sleeping thread with priority 1; 4- sleeping thread with priority 2 */
  519. #define CSEM_REG_ARB_ELEMENT0 0x200020
  520. /* [RW 3] The source that is associated with arbitration element 1. Source
  521. decoding is: 0- foc0; 1-fic1; 2-sleeping thread with priority 0; 3-
  522. sleeping thread with priority 1; 4- sleeping thread with priority 2.
  523. Could not be equal to register ~csem_registers_arb_element0.arb_element0 */
  524. #define CSEM_REG_ARB_ELEMENT1 0x200024
  525. /* [RW 3] The source that is associated with arbitration element 2. Source
  526. decoding is: 0- foc0; 1-fic1; 2-sleeping thread with priority 0; 3-
  527. sleeping thread with priority 1; 4- sleeping thread with priority 2.
  528. Could not be equal to register ~csem_registers_arb_element0.arb_element0
  529. and ~csem_registers_arb_element1.arb_element1 */
  530. #define CSEM_REG_ARB_ELEMENT2 0x200028
  531. /* [RW 3] The source that is associated with arbitration element 3. Source
  532. decoding is: 0- foc0; 1-fic1; 2-sleeping thread with priority 0; 3-
  533. sleeping thread with priority 1; 4- sleeping thread with priority 2.Could
  534. not be equal to register ~csem_registers_arb_element0.arb_element0 and
  535. ~csem_registers_arb_element1.arb_element1 and
  536. ~csem_registers_arb_element2.arb_element2 */
  537. #define CSEM_REG_ARB_ELEMENT3 0x20002c
  538. /* [RW 3] The source that is associated with arbitration element 4. Source
  539. decoding is: 0- foc0; 1-fic1; 2-sleeping thread with priority 0; 3-
  540. sleeping thread with priority 1; 4- sleeping thread with priority 2.
  541. Could not be equal to register ~csem_registers_arb_element0.arb_element0
  542. and ~csem_registers_arb_element1.arb_element1 and
  543. ~csem_registers_arb_element2.arb_element2 and
  544. ~csem_registers_arb_element3.arb_element3 */
  545. #define CSEM_REG_ARB_ELEMENT4 0x200030
  546. /* [RW 32] Interrupt mask register #0 read/write */
  547. #define CSEM_REG_CSEM_INT_MASK_0 0x200110
  548. #define CSEM_REG_CSEM_INT_MASK_1 0x200120
  549. /* [R 32] Interrupt register #0 read */
  550. #define CSEM_REG_CSEM_INT_STS_0 0x200104
  551. #define CSEM_REG_CSEM_INT_STS_1 0x200114
  552. /* [RW 32] Parity mask register #0 read/write */
  553. #define CSEM_REG_CSEM_PRTY_MASK_0 0x200130
  554. #define CSEM_REG_CSEM_PRTY_MASK_1 0x200140
  555. /* [R 32] Parity register #0 read */
  556. #define CSEM_REG_CSEM_PRTY_STS_0 0x200124
  557. #define CSEM_REG_CSEM_PRTY_STS_1 0x200134
  558. #define CSEM_REG_ENABLE_IN 0x2000a4
  559. #define CSEM_REG_ENABLE_OUT 0x2000a8
  560. /* [RW 32] This address space contains all registers and memories that are
  561. placed in SEM_FAST block. The SEM_FAST registers are described in
  562. appendix B. In order to access the sem_fast registers the base address
  563. ~fast_memory.fast_memory should be added to eachsem_fast register offset. */
  564. #define CSEM_REG_FAST_MEMORY 0x220000
  565. /* [RW 1] Disables input messages from FIC0 May be updated during run_time
  566. by the microcode */
  567. #define CSEM_REG_FIC0_DISABLE 0x200224
  568. /* [RW 1] Disables input messages from FIC1 May be updated during run_time
  569. by the microcode */
  570. #define CSEM_REG_FIC1_DISABLE 0x200234
  571. /* [RW 15] Interrupt table Read and write access to it is not possible in
  572. the middle of the work */
  573. #define CSEM_REG_INT_TABLE 0x200400
  574. /* [ST 24] Statistics register. The number of messages that entered through
  575. FIC0 */
  576. #define CSEM_REG_MSG_NUM_FIC0 0x200000
  577. /* [ST 24] Statistics register. The number of messages that entered through
  578. FIC1 */
  579. #define CSEM_REG_MSG_NUM_FIC1 0x200004
  580. /* [ST 24] Statistics register. The number of messages that were sent to
  581. FOC0 */
  582. #define CSEM_REG_MSG_NUM_FOC0 0x200008
  583. /* [ST 24] Statistics register. The number of messages that were sent to
  584. FOC1 */
  585. #define CSEM_REG_MSG_NUM_FOC1 0x20000c
  586. /* [ST 24] Statistics register. The number of messages that were sent to
  587. FOC2 */
  588. #define CSEM_REG_MSG_NUM_FOC2 0x200010
  589. /* [ST 24] Statistics register. The number of messages that were sent to
  590. FOC3 */
  591. #define CSEM_REG_MSG_NUM_FOC3 0x200014
  592. /* [RW 1] Disables input messages from the passive buffer May be updated
  593. during run_time by the microcode */
  594. #define CSEM_REG_PAS_DISABLE 0x20024c
  595. /* [WB 128] Debug only. Passive buffer memory */
  596. #define CSEM_REG_PASSIVE_BUFFER 0x202000
  597. /* [WB 46] pram memory. B45 is parity; b[44:0] - data. */
  598. #define CSEM_REG_PRAM 0x240000
  599. /* [R 16] Valid sleeping threads indication have bit per thread */
  600. #define CSEM_REG_SLEEP_THREADS_VALID 0x20026c
  601. /* [R 1] EXT_STORE FIFO is empty in sem_slow_ls_ext */
  602. #define CSEM_REG_SLOW_EXT_STORE_EMPTY 0x2002a0
  603. /* [RW 16] List of free threads . There is a bit per thread. */
  604. #define CSEM_REG_THREADS_LIST 0x2002e4
  605. /* [RW 3] The arbitration scheme of time_slot 0 */
  606. #define CSEM_REG_TS_0_AS 0x200038
  607. /* [RW 3] The arbitration scheme of time_slot 10 */
  608. #define CSEM_REG_TS_10_AS 0x200060
  609. /* [RW 3] The arbitration scheme of time_slot 11 */
  610. #define CSEM_REG_TS_11_AS 0x200064
  611. /* [RW 3] The arbitration scheme of time_slot 12 */
  612. #define CSEM_REG_TS_12_AS 0x200068
  613. /* [RW 3] The arbitration scheme of time_slot 13 */
  614. #define CSEM_REG_TS_13_AS 0x20006c
  615. /* [RW 3] The arbitration scheme of time_slot 14 */
  616. #define CSEM_REG_TS_14_AS 0x200070
  617. /* [RW 3] The arbitration scheme of time_slot 15 */
  618. #define CSEM_REG_TS_15_AS 0x200074
  619. /* [RW 3] The arbitration scheme of time_slot 16 */
  620. #define CSEM_REG_TS_16_AS 0x200078
  621. /* [RW 3] The arbitration scheme of time_slot 17 */
  622. #define CSEM_REG_TS_17_AS 0x20007c
  623. /* [RW 3] The arbitration scheme of time_slot 18 */
  624. #define CSEM_REG_TS_18_AS 0x200080
  625. /* [RW 3] The arbitration scheme of time_slot 1 */
  626. #define CSEM_REG_TS_1_AS 0x20003c
  627. /* [RW 3] The arbitration scheme of time_slot 2 */
  628. #define CSEM_REG_TS_2_AS 0x200040
  629. /* [RW 3] The arbitration scheme of time_slot 3 */
  630. #define CSEM_REG_TS_3_AS 0x200044
  631. /* [RW 3] The arbitration scheme of time_slot 4 */
  632. #define CSEM_REG_TS_4_AS 0x200048
  633. /* [RW 3] The arbitration scheme of time_slot 5 */
  634. #define CSEM_REG_TS_5_AS 0x20004c
  635. /* [RW 3] The arbitration scheme of time_slot 6 */
  636. #define CSEM_REG_TS_6_AS 0x200050
  637. /* [RW 3] The arbitration scheme of time_slot 7 */
  638. #define CSEM_REG_TS_7_AS 0x200054
  639. /* [RW 3] The arbitration scheme of time_slot 8 */
  640. #define CSEM_REG_TS_8_AS 0x200058
  641. /* [RW 3] The arbitration scheme of time_slot 9 */
  642. #define CSEM_REG_TS_9_AS 0x20005c
  643. /* [W 7] VF or PF ID for reset error bit. Values 0-63 reset error bit for 64
  644. * VF; values 64-67 reset error for 4 PF; values 68-127 are not valid. */
  645. #define CSEM_REG_VFPF_ERR_NUM 0x200380
  646. /* [RW 1] Parity mask register #0 read/write */
  647. #define DBG_REG_DBG_PRTY_MASK 0xc0a8
  648. /* [R 1] Parity register #0 read */
  649. #define DBG_REG_DBG_PRTY_STS 0xc09c
  650. /* [RW 1] When set the DMAE will process the commands as in E1.5. 1.The
  651. * function that is used is always SRC-PCI; 2.VF_Valid = 0; 3.VFID=0;
  652. * 4.Completion function=0; 5.Error handling=0 */
  653. #define DMAE_REG_BACKWARD_COMP_EN 0x10207c
  654. /* [RW 32] Commands memory. The address to command X; row Y is to calculated
  655. as 14*X+Y. */
  656. #define DMAE_REG_CMD_MEM 0x102400
  657. #define DMAE_REG_CMD_MEM_SIZE 224
  658. /* [RW 1] If 0 - the CRC-16c initial value is all zeroes; if 1 - the CRC-16c
  659. initial value is all ones. */
  660. #define DMAE_REG_CRC16C_INIT 0x10201c
  661. /* [RW 1] If 0 - the CRC-16 T10 initial value is all zeroes; if 1 - the
  662. CRC-16 T10 initial value is all ones. */
  663. #define DMAE_REG_CRC16T10_INIT 0x102020
  664. /* [RW 2] Interrupt mask register #0 read/write */
  665. #define DMAE_REG_DMAE_INT_MASK 0x102054
  666. /* [RW 4] Parity mask register #0 read/write */
  667. #define DMAE_REG_DMAE_PRTY_MASK 0x102064
  668. /* [R 4] Parity register #0 read */
  669. #define DMAE_REG_DMAE_PRTY_STS 0x102058
  670. /* [RW 1] Command 0 go. */
  671. #define DMAE_REG_GO_C0 0x102080
  672. /* [RW 1] Command 1 go. */
  673. #define DMAE_REG_GO_C1 0x102084
  674. /* [RW 1] Command 10 go. */
  675. #define DMAE_REG_GO_C10 0x102088
  676. /* [RW 1] Command 11 go. */
  677. #define DMAE_REG_GO_C11 0x10208c
  678. /* [RW 1] Command 12 go. */
  679. #define DMAE_REG_GO_C12 0x102090
  680. /* [RW 1] Command 13 go. */
  681. #define DMAE_REG_GO_C13 0x102094
  682. /* [RW 1] Command 14 go. */
  683. #define DMAE_REG_GO_C14 0x102098
  684. /* [RW 1] Command 15 go. */
  685. #define DMAE_REG_GO_C15 0x10209c
  686. /* [RW 1] Command 2 go. */
  687. #define DMAE_REG_GO_C2 0x1020a0
  688. /* [RW 1] Command 3 go. */
  689. #define DMAE_REG_GO_C3 0x1020a4
  690. /* [RW 1] Command 4 go. */
  691. #define DMAE_REG_GO_C4 0x1020a8
  692. /* [RW 1] Command 5 go. */
  693. #define DMAE_REG_GO_C5 0x1020ac
  694. /* [RW 1] Command 6 go. */
  695. #define DMAE_REG_GO_C6 0x1020b0
  696. /* [RW 1] Command 7 go. */
  697. #define DMAE_REG_GO_C7 0x1020b4
  698. /* [RW 1] Command 8 go. */
  699. #define DMAE_REG_GO_C8 0x1020b8
  700. /* [RW 1] Command 9 go. */
  701. #define DMAE_REG_GO_C9 0x1020bc
  702. /* [RW 1] DMAE GRC Interface (Target; aster) enable. If 0 - the acknowledge
  703. input is disregarded; valid is deasserted; all other signals are treated
  704. as usual; if 1 - normal activity. */
  705. #define DMAE_REG_GRC_IFEN 0x102008
  706. /* [RW 1] DMAE PCI Interface (Request; ead; rite) enable. If 0 - the
  707. acknowledge input is disregarded; valid is deasserted; full is asserted;
  708. all other signals are treated as usual; if 1 - normal activity. */
  709. #define DMAE_REG_PCI_IFEN 0x102004
  710. /* [RW 4] DMAE- PCI Request Interface initial credit. Write writes the
  711. initial value to the credit counter; related to the address. Read returns
  712. the current value of the counter. */
  713. #define DMAE_REG_PXP_REQ_INIT_CRD 0x1020c0
  714. /* [RW 8] Aggregation command. */
  715. #define DORQ_REG_AGG_CMD0 0x170060
  716. /* [RW 8] Aggregation command. */
  717. #define DORQ_REG_AGG_CMD1 0x170064
  718. /* [RW 8] Aggregation command. */
  719. #define DORQ_REG_AGG_CMD2 0x170068
  720. /* [RW 8] Aggregation command. */
  721. #define DORQ_REG_AGG_CMD3 0x17006c
  722. /* [RW 28] UCM Header. */
  723. #define DORQ_REG_CMHEAD_RX 0x170050
  724. /* [RW 32] Doorbell address for RBC doorbells (function 0). */
  725. #define DORQ_REG_DB_ADDR0 0x17008c
  726. /* [RW 5] Interrupt mask register #0 read/write */
  727. #define DORQ_REG_DORQ_INT_MASK 0x170180
  728. /* [R 5] Interrupt register #0 read */
  729. #define DORQ_REG_DORQ_INT_STS 0x170174
  730. /* [RC 5] Interrupt register #0 read clear */
  731. #define DORQ_REG_DORQ_INT_STS_CLR 0x170178
  732. /* [RW 2] Parity mask register #0 read/write */
  733. #define DORQ_REG_DORQ_PRTY_MASK 0x170190
  734. /* [R 2] Parity register #0 read */
  735. #define DORQ_REG_DORQ_PRTY_STS 0x170184
  736. /* [RW 8] The address to write the DPM CID to STORM. */
  737. #define DORQ_REG_DPM_CID_ADDR 0x170044
  738. /* [RW 5] The DPM mode CID extraction offset. */
  739. #define DORQ_REG_DPM_CID_OFST 0x170030
  740. /* [RW 12] The threshold of the DQ FIFO to send the almost full interrupt. */
  741. #define DORQ_REG_DQ_FIFO_AFULL_TH 0x17007c
  742. /* [RW 12] The threshold of the DQ FIFO to send the full interrupt. */
  743. #define DORQ_REG_DQ_FIFO_FULL_TH 0x170078
  744. /* [R 13] Current value of the DQ FIFO fill level according to following
  745. pointer. The range is 0 - 256 FIFO rows; where each row stands for the
  746. doorbell. */
  747. #define DORQ_REG_DQ_FILL_LVLF 0x1700a4
  748. /* [R 1] DQ FIFO full status. Is set; when FIFO filling level is more or
  749. equal to full threshold; reset on full clear. */
  750. #define DORQ_REG_DQ_FULL_ST 0x1700c0
  751. /* [RW 28] The value sent to CM header in the case of CFC load error. */
  752. #define DORQ_REG_ERR_CMHEAD 0x170058
  753. #define DORQ_REG_IF_EN 0x170004
  754. #define DORQ_REG_MODE_ACT 0x170008
  755. /* [RW 5] The normal mode CID extraction offset. */
  756. #define DORQ_REG_NORM_CID_OFST 0x17002c
  757. /* [RW 28] TCM Header when only TCP context is loaded. */
  758. #define DORQ_REG_NORM_CMHEAD_TX 0x17004c
  759. /* [RW 3] The number of simultaneous outstanding requests to Context Fetch
  760. Interface. */
  761. #define DORQ_REG_OUTST_REQ 0x17003c
  762. #define DORQ_REG_REGN 0x170038
  763. /* [R 4] Current value of response A counter credit. Initial credit is
  764. configured through write to ~dorq_registers_rsp_init_crd.rsp_init_crd
  765. register. */
  766. #define DORQ_REG_RSPA_CRD_CNT 0x1700ac
  767. /* [R 4] Current value of response B counter credit. Initial credit is
  768. configured through write to ~dorq_registers_rsp_init_crd.rsp_init_crd
  769. register. */
  770. #define DORQ_REG_RSPB_CRD_CNT 0x1700b0
  771. /* [RW 4] The initial credit at the Doorbell Response Interface. The write
  772. writes the same initial credit to the rspa_crd_cnt and rspb_crd_cnt. The
  773. read reads this written value. */
  774. #define DORQ_REG_RSP_INIT_CRD 0x170048
  775. /* [RW 4] Initial activity counter value on the load request; when the
  776. shortcut is done. */
  777. #define DORQ_REG_SHRT_ACT_CNT 0x170070
  778. /* [RW 28] TCM Header when both ULP and TCP context is loaded. */
  779. #define DORQ_REG_SHRT_CMHEAD 0x170054
  780. #define HC_CONFIG_0_REG_ATTN_BIT_EN_0 (0x1<<4)
  781. #define HC_CONFIG_0_REG_INT_LINE_EN_0 (0x1<<3)
  782. #define HC_CONFIG_0_REG_MSI_ATTN_EN_0 (0x1<<7)
  783. #define HC_CONFIG_0_REG_MSI_MSIX_INT_EN_0 (0x1<<2)
  784. #define HC_CONFIG_0_REG_SINGLE_ISR_EN_0 (0x1<<1)
  785. #define HC_REG_AGG_INT_0 0x108050
  786. #define HC_REG_AGG_INT_1 0x108054
  787. #define HC_REG_ATTN_BIT 0x108120
  788. #define HC_REG_ATTN_IDX 0x108100
  789. #define HC_REG_ATTN_MSG0_ADDR_L 0x108018
  790. #define HC_REG_ATTN_MSG1_ADDR_L 0x108020
  791. #define HC_REG_ATTN_NUM_P0 0x108038
  792. #define HC_REG_ATTN_NUM_P1 0x10803c
  793. #define HC_REG_COMMAND_REG 0x108180
  794. #define HC_REG_CONFIG_0 0x108000
  795. #define HC_REG_CONFIG_1 0x108004
  796. #define HC_REG_FUNC_NUM_P0 0x1080ac
  797. #define HC_REG_FUNC_NUM_P1 0x1080b0
  798. /* [RW 3] Parity mask register #0 read/write */
  799. #define HC_REG_HC_PRTY_MASK 0x1080a0
  800. /* [R 3] Parity register #0 read */
  801. #define HC_REG_HC_PRTY_STS 0x108094
  802. /* [RC 3] Parity register #0 read clear */
  803. #define HC_REG_HC_PRTY_STS_CLR 0x108098
  804. #define HC_REG_INT_MASK 0x108108
  805. #define HC_REG_LEADING_EDGE_0 0x108040
  806. #define HC_REG_LEADING_EDGE_1 0x108048
  807. #define HC_REG_MAIN_MEMORY 0x108800
  808. #define HC_REG_MAIN_MEMORY_SIZE 152
  809. #define HC_REG_P0_PROD_CONS 0x108200
  810. #define HC_REG_P1_PROD_CONS 0x108400
  811. #define HC_REG_PBA_COMMAND 0x108140
  812. #define HC_REG_PCI_CONFIG_0 0x108010
  813. #define HC_REG_PCI_CONFIG_1 0x108014
  814. #define HC_REG_STATISTIC_COUNTERS 0x109000
  815. #define HC_REG_TRAILING_EDGE_0 0x108044
  816. #define HC_REG_TRAILING_EDGE_1 0x10804c
  817. #define HC_REG_UC_RAM_ADDR_0 0x108028
  818. #define HC_REG_UC_RAM_ADDR_1 0x108030
  819. #define HC_REG_USTORM_ADDR_FOR_COALESCE 0x108068
  820. #define HC_REG_VQID_0 0x108008
  821. #define HC_REG_VQID_1 0x10800c
  822. #define IGU_BLOCK_CONFIGURATION_REG_BACKWARD_COMP_EN (0x1<<1)
  823. #define IGU_REG_ATTENTION_ACK_BITS 0x130108
  824. /* [R 4] Debug: attn_fsm */
  825. #define IGU_REG_ATTN_FSM 0x130054
  826. #define IGU_REG_ATTN_MSG_ADDR_H 0x13011c
  827. #define IGU_REG_ATTN_MSG_ADDR_L 0x130120
  828. /* [R 4] Debug: [3] - attention write done message is pending (0-no pending;
  829. * 1-pending). [2:0] = PFID. Pending means attention message was sent; but
  830. * write done didnt receive. */
  831. #define IGU_REG_ATTN_WRITE_DONE_PENDING 0x130030
  832. #define IGU_REG_BLOCK_CONFIGURATION 0x130000
  833. #define IGU_REG_COMMAND_REG_32LSB_DATA 0x130124
  834. #define IGU_REG_COMMAND_REG_CTRL 0x13012c
  835. /* [WB_R 32] Cleanup bit status per SB. 1 = cleanup is set. 0 = cleanup bit
  836. * is clear. The bits in this registers are set and clear via the producer
  837. * command. Data valid only in addresses 0-4. all the rest are zero. */
  838. #define IGU_REG_CSTORM_TYPE_0_SB_CLEANUP 0x130200
  839. /* [R 5] Debug: ctrl_fsm */
  840. #define IGU_REG_CTRL_FSM 0x130064
  841. /* [R 1] data availble for error memory. If this bit is clear do not red
  842. * from error_handling_memory. */
  843. #define IGU_REG_ERROR_HANDLING_DATA_VALID 0x130130
  844. /* [R 11] Parity register #0 read */
  845. #define IGU_REG_IGU_PRTY_STS 0x13009c
  846. /* [R 4] Debug: int_handle_fsm */
  847. #define IGU_REG_INT_HANDLE_FSM 0x130050
  848. #define IGU_REG_LEADING_EDGE_LATCH 0x130134
  849. /* [RW 14] mapping CAM; relevant for E2 operating mode only. [0] - valid.
  850. * [6:1] - vector number; [13:7] - FID (if VF - [13] = 0; [12:7] = VF
  851. * number; if PF - [13] = 1; [12:10] = 0; [9:7] = PF number); */
  852. #define IGU_REG_MAPPING_MEMORY 0x131000
  853. #define IGU_REG_MAPPING_MEMORY_SIZE 136
  854. #define IGU_REG_PBA_STATUS_LSB 0x130138
  855. #define IGU_REG_PBA_STATUS_MSB 0x13013c
  856. #define IGU_REG_PCI_PF_MSI_EN 0x130140
  857. #define IGU_REG_PCI_PF_MSIX_EN 0x130144
  858. #define IGU_REG_PCI_PF_MSIX_FUNC_MASK 0x130148
  859. /* [WB_R 32] Each bit represent the pending bits status for that SB. 0 = no
  860. * pending; 1 = pending. Pendings means interrupt was asserted; and write
  861. * done was not received. Data valid only in addresses 0-4. all the rest are
  862. * zero. */
  863. #define IGU_REG_PENDING_BITS_STATUS 0x130300
  864. #define IGU_REG_PF_CONFIGURATION 0x130154
  865. /* [RW 20] producers only. E2 mode: address 0-135 match to the mapping
  866. * memory; 136 - PF0 default prod; 137 PF1 default prod; 138 - PF2 default
  867. * prod; 139 PF3 default prod; 140 - PF0 - ATTN prod; 141 - PF1 - ATTN prod;
  868. * 142 - PF2 - ATTN prod; 143 - PF3 - ATTN prod; 144-147 reserved. E1.5 mode
  869. * - In backward compatible mode; for non default SB; each even line in the
  870. * memory holds the U producer and each odd line hold the C producer. The
  871. * first 128 producer are for NDSB (PF0 - 0-31; PF1 - 32-63 and so on). The
  872. * last 20 producers are for the DSB for each PF. each PF has five segments
  873. * (the order inside each segment is PF0; PF1; PF2; PF3) - 128-131 U prods;
  874. * 132-135 C prods; 136-139 X prods; 140-143 T prods; 144-147 ATTN prods; */
  875. #define IGU_REG_PROD_CONS_MEMORY 0x132000
  876. /* [R 3] Debug: pxp_arb_fsm */
  877. #define IGU_REG_PXP_ARB_FSM 0x130068
  878. /* [RW 6] Write one for each bit will reset the appropriate memory. When the
  879. * memory reset finished the appropriate bit will be clear. Bit 0 - mapping
  880. * memory; Bit 1 - SB memory; Bit 2 - SB interrupt and mask register; Bit 3
  881. * - MSIX memory; Bit 4 - PBA memory; Bit 5 - statistics; */
  882. #define IGU_REG_RESET_MEMORIES 0x130158
  883. /* [R 4] Debug: sb_ctrl_fsm */
  884. #define IGU_REG_SB_CTRL_FSM 0x13004c
  885. #define IGU_REG_SB_INT_BEFORE_MASK_LSB 0x13015c
  886. #define IGU_REG_SB_INT_BEFORE_MASK_MSB 0x130160
  887. #define IGU_REG_SB_MASK_LSB 0x130164
  888. #define IGU_REG_SB_MASK_MSB 0x130168
  889. /* [RW 16] Number of command that were dropped without causing an interrupt
  890. * due to: read access for WO BAR address; or write access for RO BAR
  891. * address or any access for reserved address or PCI function error is set
  892. * and address is not MSIX; PBA or cleanup */
  893. #define IGU_REG_SILENT_DROP 0x13016c
  894. /* [RW 10] Number of MSI/MSIX/ATTN messages sent for the function: 0-63 -
  895. * number of MSIX messages per VF; 64-67 - number of MSI/MSIX messages per
  896. * PF; 68-71 number of ATTN messages per PF */
  897. #define IGU_REG_STATISTIC_NUM_MESSAGE_SENT 0x130800
  898. /* [RW 32] Number of cycles the timer mask masking the IGU interrupt when a
  899. * timer mask command arrives. Value must be bigger than 100. */
  900. #define IGU_REG_TIMER_MASKING_VALUE 0x13003c
  901. #define IGU_REG_TRAILING_EDGE_LATCH 0x130104
  902. #define IGU_REG_VF_CONFIGURATION 0x130170
  903. /* [WB_R 32] Each bit represent write done pending bits status for that SB
  904. * (MSI/MSIX message was sent and write done was not received yet). 0 =
  905. * clear; 1 = set. Data valid only in addresses 0-4. all the rest are zero. */
  906. #define IGU_REG_WRITE_DONE_PENDING 0x130480
  907. #define MCP_A_REG_MCPR_SCRATCH 0x3a0000
  908. #define MCP_REG_MCPR_NVM_ACCESS_ENABLE 0x86424
  909. #define MCP_REG_MCPR_NVM_ADDR 0x8640c
  910. #define MCP_REG_MCPR_NVM_CFG4 0x8642c
  911. #define MCP_REG_MCPR_NVM_COMMAND 0x86400
  912. #define MCP_REG_MCPR_NVM_READ 0x86410
  913. #define MCP_REG_MCPR_NVM_SW_ARB 0x86420
  914. #define MCP_REG_MCPR_NVM_WRITE 0x86408
  915. #define MCP_REG_MCPR_SCRATCH 0xa0000
  916. #define MISC_AEU_GENERAL_MASK_REG_AEU_NIG_CLOSE_MASK (0x1<<1)
  917. #define MISC_AEU_GENERAL_MASK_REG_AEU_PXP_CLOSE_MASK (0x1<<0)
  918. /* [R 32] read first 32 bit after inversion of function 0. mapped as
  919. follows: [0] NIG attention for function0; [1] NIG attention for
  920. function1; [2] GPIO1 mcp; [3] GPIO2 mcp; [4] GPIO3 mcp; [5] GPIO4 mcp;
  921. [6] GPIO1 function 1; [7] GPIO2 function 1; [8] GPIO3 function 1; [9]
  922. GPIO4 function 1; [10] PCIE glue/PXP VPD event function0; [11] PCIE
  923. glue/PXP VPD event function1; [12] PCIE glue/PXP Expansion ROM event0;
  924. [13] PCIE glue/PXP Expansion ROM event1; [14] SPIO4; [15] SPIO5; [16]
  925. MSI/X indication for mcp; [17] MSI/X indication for function 1; [18] BRB
  926. Parity error; [19] BRB Hw interrupt; [20] PRS Parity error; [21] PRS Hw
  927. interrupt; [22] SRC Parity error; [23] SRC Hw interrupt; [24] TSDM Parity
  928. error; [25] TSDM Hw interrupt; [26] TCM Parity error; [27] TCM Hw
  929. interrupt; [28] TSEMI Parity error; [29] TSEMI Hw interrupt; [30] PBF
  930. Parity error; [31] PBF Hw interrupt; */
  931. #define MISC_REG_AEU_AFTER_INVERT_1_FUNC_0 0xa42c
  932. #define MISC_REG_AEU_AFTER_INVERT_1_FUNC_1 0xa430
  933. /* [R 32] read first 32 bit after inversion of mcp. mapped as follows: [0]
  934. NIG attention for function0; [1] NIG attention for function1; [2] GPIO1
  935. mcp; [3] GPIO2 mcp; [4] GPIO3 mcp; [5] GPIO4 mcp; [6] GPIO1 function 1;
  936. [7] GPIO2 function 1; [8] GPIO3 function 1; [9] GPIO4 function 1; [10]
  937. PCIE glue/PXP VPD event function0; [11] PCIE glue/PXP VPD event
  938. function1; [12] PCIE glue/PXP Expansion ROM event0; [13] PCIE glue/PXP
  939. Expansion ROM event1; [14] SPIO4; [15] SPIO5; [16] MSI/X indication for
  940. mcp; [17] MSI/X indication for function 1; [18] BRB Parity error; [19]
  941. BRB Hw interrupt; [20] PRS Parity error; [21] PRS Hw interrupt; [22] SRC
  942. Parity error; [23] SRC Hw interrupt; [24] TSDM Parity error; [25] TSDM Hw
  943. interrupt; [26] TCM Parity error; [27] TCM Hw interrupt; [28] TSEMI
  944. Parity error; [29] TSEMI Hw interrupt; [30] PBF Parity error; [31] PBF Hw
  945. interrupt; */
  946. #define MISC_REG_AEU_AFTER_INVERT_1_MCP 0xa434
  947. /* [R 32] read second 32 bit after inversion of function 0. mapped as
  948. follows: [0] PBClient Parity error; [1] PBClient Hw interrupt; [2] QM
  949. Parity error; [3] QM Hw interrupt; [4] Timers Parity error; [5] Timers Hw
  950. interrupt; [6] XSDM Parity error; [7] XSDM Hw interrupt; [8] XCM Parity
  951. error; [9] XCM Hw interrupt; [10] XSEMI Parity error; [11] XSEMI Hw
  952. interrupt; [12] DoorbellQ Parity error; [13] DoorbellQ Hw interrupt; [14]
  953. NIG Parity error; [15] NIG Hw interrupt; [16] Vaux PCI core Parity error;
  954. [17] Vaux PCI core Hw interrupt; [18] Debug Parity error; [19] Debug Hw
  955. interrupt; [20] USDM Parity error; [21] USDM Hw interrupt; [22] UCM
  956. Parity error; [23] UCM Hw interrupt; [24] USEMI Parity error; [25] USEMI
  957. Hw interrupt; [26] UPB Parity error; [27] UPB Hw interrupt; [28] CSDM
  958. Parity error; [29] CSDM Hw interrupt; [30] CCM Parity error; [31] CCM Hw
  959. interrupt; */
  960. #define MISC_REG_AEU_AFTER_INVERT_2_FUNC_0 0xa438
  961. #define MISC_REG_AEU_AFTER_INVERT_2_FUNC_1 0xa43c
  962. /* [R 32] read second 32 bit after inversion of mcp. mapped as follows: [0]
  963. PBClient Parity error; [1] PBClient Hw interrupt; [2] QM Parity error;
  964. [3] QM Hw interrupt; [4] Timers Parity error; [5] Timers Hw interrupt;
  965. [6] XSDM Parity error; [7] XSDM Hw interrupt; [8] XCM Parity error; [9]
  966. XCM Hw interrupt; [10] XSEMI Parity error; [11] XSEMI Hw interrupt; [12]
  967. DoorbellQ Parity error; [13] DoorbellQ Hw interrupt; [14] NIG Parity
  968. error; [15] NIG Hw interrupt; [16] Vaux PCI core Parity error; [17] Vaux
  969. PCI core Hw interrupt; [18] Debug Parity error; [19] Debug Hw interrupt;
  970. [20] USDM Parity error; [21] USDM Hw interrupt; [22] UCM Parity error;
  971. [23] UCM Hw interrupt; [24] USEMI Parity error; [25] USEMI Hw interrupt;
  972. [26] UPB Parity error; [27] UPB Hw interrupt; [28] CSDM Parity error;
  973. [29] CSDM Hw interrupt; [30] CCM Parity error; [31] CCM Hw interrupt; */
  974. #define MISC_REG_AEU_AFTER_INVERT_2_MCP 0xa440
  975. /* [R 32] read third 32 bit after inversion of function 0. mapped as
  976. follows: [0] CSEMI Parity error; [1] CSEMI Hw interrupt; [2] PXP Parity
  977. error; [3] PXP Hw interrupt; [4] PXPpciClockClient Parity error; [5]
  978. PXPpciClockClient Hw interrupt; [6] CFC Parity error; [7] CFC Hw
  979. interrupt; [8] CDU Parity error; [9] CDU Hw interrupt; [10] DMAE Parity
  980. error; [11] DMAE Hw interrupt; [12] IGU (HC) Parity error; [13] IGU (HC)
  981. Hw interrupt; [14] MISC Parity error; [15] MISC Hw interrupt; [16]
  982. pxp_misc_mps_attn; [17] Flash event; [18] SMB event; [19] MCP attn0; [20]
  983. MCP attn1; [21] SW timers attn_1 func0; [22] SW timers attn_2 func0; [23]
  984. SW timers attn_3 func0; [24] SW timers attn_4 func0; [25] PERST; [26] SW
  985. timers attn_1 func1; [27] SW timers attn_2 func1; [28] SW timers attn_3
  986. func1; [29] SW timers attn_4 func1; [30] General attn0; [31] General
  987. attn1; */
  988. #define MISC_REG_AEU_AFTER_INVERT_3_FUNC_0 0xa444
  989. #define MISC_REG_AEU_AFTER_INVERT_3_FUNC_1 0xa448
  990. /* [R 32] read third 32 bit after inversion of mcp. mapped as follows: [0]
  991. CSEMI Parity error; [1] CSEMI Hw interrupt; [2] PXP Parity error; [3] PXP
  992. Hw interrupt; [4] PXPpciClockClient Parity error; [5] PXPpciClockClient
  993. Hw interrupt; [6] CFC Parity error; [7] CFC Hw interrupt; [8] CDU Parity
  994. error; [9] CDU Hw interrupt; [10] DMAE Parity error; [11] DMAE Hw
  995. interrupt; [12] IGU (HC) Parity error; [13] IGU (HC) Hw interrupt; [14]
  996. MISC Parity error; [15] MISC Hw interrupt; [16] pxp_misc_mps_attn; [17]
  997. Flash event; [18] SMB event; [19] MCP attn0; [20] MCP attn1; [21] SW
  998. timers attn_1 func0; [22] SW timers attn_2 func0; [23] SW timers attn_3
  999. func0; [24] SW timers attn_4 func0; [25] PERST; [26] SW timers attn_1
  1000. func1; [27] SW timers attn_2 func1; [28] SW timers attn_3 func1; [29] SW
  1001. timers attn_4 func1; [30] General attn0; [31] General attn1; */
  1002. #define MISC_REG_AEU_AFTER_INVERT_3_MCP 0xa44c
  1003. /* [R 32] read fourth 32 bit after inversion of function 0. mapped as
  1004. follows: [0] General attn2; [1] General attn3; [2] General attn4; [3]
  1005. General attn5; [4] General attn6; [5] General attn7; [6] General attn8;
  1006. [7] General attn9; [8] General attn10; [9] General attn11; [10] General
  1007. attn12; [11] General attn13; [12] General attn14; [13] General attn15;
  1008. [14] General attn16; [15] General attn17; [16] General attn18; [17]
  1009. General attn19; [18] General attn20; [19] General attn21; [20] Main power
  1010. interrupt; [21] RBCR Latched attn; [22] RBCT Latched attn; [23] RBCN
  1011. Latched attn; [24] RBCU Latched attn; [25] RBCP Latched attn; [26] GRC
  1012. Latched timeout attention; [27] GRC Latched reserved access attention;
  1013. [28] MCP Latched rom_parity; [29] MCP Latched ump_rx_parity; [30] MCP
  1014. Latched ump_tx_parity; [31] MCP Latched scpad_parity; */
  1015. #define MISC_REG_AEU_AFTER_INVERT_4_FUNC_0 0xa450
  1016. #define MISC_REG_AEU_AFTER_INVERT_4_FUNC_1 0xa454
  1017. /* [R 32] read fourth 32 bit after inversion of mcp. mapped as follows: [0]
  1018. General attn2; [1] General attn3; [2] General attn4; [3] General attn5;
  1019. [4] General attn6; [5] General attn7; [6] General attn8; [7] General
  1020. attn9; [8] General attn10; [9] General attn11; [10] General attn12; [11]
  1021. General attn13; [12] General attn14; [13] General attn15; [14] General
  1022. attn16; [15] General attn17; [16] General attn18; [17] General attn19;
  1023. [18] General attn20; [19] General attn21; [20] Main power interrupt; [21]
  1024. RBCR Latched attn; [22] RBCT Latched attn; [23] RBCN Latched attn; [24]
  1025. RBCU Latched attn; [25] RBCP Latched attn; [26] GRC Latched timeout
  1026. attention; [27] GRC Latched reserved access attention; [28] MCP Latched
  1027. rom_parity; [29] MCP Latched ump_rx_parity; [30] MCP Latched
  1028. ump_tx_parity; [31] MCP Latched scpad_parity; */
  1029. #define MISC_REG_AEU_AFTER_INVERT_4_MCP 0xa458
  1030. /* [R 32] Read fifth 32 bit after inversion of function 0. Mapped as
  1031. * follows: [0] PGLUE config_space; [1] PGLUE misc_flr; [2] PGLUE B RBC
  1032. * attention [3] PGLUE B RBC parity; [4] ATC attention; [5] ATC parity; [6]
  1033. * CNIG attention (reserved); [7] CNIG parity (reserved); [31-8] Reserved; */
  1034. #define MISC_REG_AEU_AFTER_INVERT_5_FUNC_0 0xa700
  1035. /* [W 14] write to this register results with the clear of the latched
  1036. signals; one in d0 clears RBCR latch; one in d1 clears RBCT latch; one in
  1037. d2 clears RBCN latch; one in d3 clears RBCU latch; one in d4 clears RBCP
  1038. latch; one in d5 clears GRC Latched timeout attention; one in d6 clears
  1039. GRC Latched reserved access attention; one in d7 clears Latched
  1040. rom_parity; one in d8 clears Latched ump_rx_parity; one in d9 clears
  1041. Latched ump_tx_parity; one in d10 clears Latched scpad_parity (both
  1042. ports); one in d11 clears pxpv_misc_mps_attn; one in d12 clears
  1043. pxp_misc_exp_rom_attn0; one in d13 clears pxp_misc_exp_rom_attn1; read
  1044. from this register return zero */
  1045. #define MISC_REG_AEU_CLR_LATCH_SIGNAL 0xa45c
  1046. /* [RW 32] first 32b for enabling the output for function 0 output0. mapped
  1047. as follows: [0] NIG attention for function0; [1] NIG attention for
  1048. function1; [2] GPIO1 function 0; [3] GPIO2 function 0; [4] GPIO3 function
  1049. 0; [5] GPIO4 function 0; [6] GPIO1 function 1; [7] GPIO2 function 1; [8]
  1050. GPIO3 function 1; [9] GPIO4 function 1; [10] PCIE glue/PXP VPD event
  1051. function0; [11] PCIE glue/PXP VPD event function1; [12] PCIE glue/PXP
  1052. Expansion ROM event0; [13] PCIE glue/PXP Expansion ROM event1; [14]
  1053. SPIO4; [15] SPIO5; [16] MSI/X indication for function 0; [17] MSI/X
  1054. indication for function 1; [18] BRB Parity error; [19] BRB Hw interrupt;
  1055. [20] PRS Parity error; [21] PRS Hw interrupt; [22] SRC Parity error; [23]
  1056. SRC Hw interrupt; [24] TSDM Parity error; [25] TSDM Hw interrupt; [26]
  1057. TCM Parity error; [27] TCM Hw interrupt; [28] TSEMI Parity error; [29]
  1058. TSEMI Hw interrupt; [30] PBF Parity error; [31] PBF Hw interrupt; */
  1059. #define MISC_REG_AEU_ENABLE1_FUNC_0_OUT_0 0xa06c
  1060. #define MISC_REG_AEU_ENABLE1_FUNC_0_OUT_1 0xa07c
  1061. #define MISC_REG_AEU_ENABLE1_FUNC_0_OUT_2 0xa08c
  1062. #define MISC_REG_AEU_ENABLE1_FUNC_0_OUT_3 0xa09c
  1063. #define MISC_REG_AEU_ENABLE1_FUNC_0_OUT_5 0xa0bc
  1064. #define MISC_REG_AEU_ENABLE1_FUNC_0_OUT_6 0xa0cc
  1065. #define MISC_REG_AEU_ENABLE1_FUNC_0_OUT_7 0xa0dc
  1066. /* [RW 32] first 32b for enabling the output for function 1 output0. mapped
  1067. as follows: [0] NIG attention for function0; [1] NIG attention for
  1068. function1; [2] GPIO1 function 1; [3] GPIO2 function 1; [4] GPIO3 function
  1069. 1; [5] GPIO4 function 1; [6] GPIO1 function 1; [7] GPIO2 function 1; [8]
  1070. GPIO3 function 1; [9] GPIO4 function 1; [10] PCIE glue/PXP VPD event
  1071. function0; [11] PCIE glue/PXP VPD event function1; [12] PCIE glue/PXP
  1072. Expansion ROM event0; [13] PCIE glue/PXP Expansion ROM event1; [14]
  1073. SPIO4; [15] SPIO5; [16] MSI/X indication for function 1; [17] MSI/X
  1074. indication for function 1; [18] BRB Parity error; [19] BRB Hw interrupt;
  1075. [20] PRS Parity error; [21] PRS Hw interrupt; [22] SRC Parity error; [23]
  1076. SRC Hw interrupt; [24] TSDM Parity error; [25] TSDM Hw interrupt; [26]
  1077. TCM Parity error; [27] TCM Hw interrupt; [28] TSEMI Parity error; [29]
  1078. TSEMI Hw interrupt; [30] PBF Parity error; [31] PBF Hw interrupt; */
  1079. #define MISC_REG_AEU_ENABLE1_FUNC_1_OUT_0 0xa10c
  1080. #define MISC_REG_AEU_ENABLE1_FUNC_1_OUT_1 0xa11c
  1081. #define MISC_REG_AEU_ENABLE1_FUNC_1_OUT_2 0xa12c
  1082. #define MISC_REG_AEU_ENABLE1_FUNC_1_OUT_3 0xa13c
  1083. #define MISC_REG_AEU_ENABLE1_FUNC_1_OUT_5 0xa15c
  1084. #define MISC_REG_AEU_ENABLE1_FUNC_1_OUT_6 0xa16c
  1085. #define MISC_REG_AEU_ENABLE1_FUNC_1_OUT_7 0xa17c
  1086. /* [RW 32] first 32b for enabling the output for close the gate nig. mapped
  1087. as follows: [0] NIG attention for function0; [1] NIG attention for
  1088. function1; [2] GPIO1 function 0; [3] GPIO2 function 0; [4] GPIO3 function
  1089. 0; [5] GPIO4 function 0; [6] GPIO1 function 1; [7] GPIO2 function 1; [8]
  1090. GPIO3 function 1; [9] GPIO4 function 1; [10] PCIE glue/PXP VPD event
  1091. function0; [11] PCIE glue/PXP VPD event function1; [12] PCIE glue/PXP
  1092. Expansion ROM event0; [13] PCIE glue/PXP Expansion ROM event1; [14]
  1093. SPIO4; [15] SPIO5; [16] MSI/X indication for function 0; [17] MSI/X
  1094. indication for function 1; [18] BRB Parity error; [19] BRB Hw interrupt;
  1095. [20] PRS Parity error; [21] PRS Hw interrupt; [22] SRC Parity error; [23]
  1096. SRC Hw interrupt; [24] TSDM Parity error; [25] TSDM Hw interrupt; [26]
  1097. TCM Parity error; [27] TCM Hw interrupt; [28] TSEMI Parity error; [29]
  1098. TSEMI Hw interrupt; [30] PBF Parity error; [31] PBF Hw interrupt; */
  1099. #define MISC_REG_AEU_ENABLE1_NIG_0 0xa0ec
  1100. #define MISC_REG_AEU_ENABLE1_NIG_1 0xa18c
  1101. /* [RW 32] first 32b for enabling the output for close the gate pxp. mapped
  1102. as follows: [0] NIG attention for function0; [1] NIG attention for
  1103. function1; [2] GPIO1 function 0; [3] GPIO2 function 0; [4] GPIO3 function
  1104. 0; [5] GPIO4 function 0; [6] GPIO1 function 1; [7] GPIO2 function 1; [8]
  1105. GPIO3 function 1; [9] GPIO4 function 1; [10] PCIE glue/PXP VPD event
  1106. function0; [11] PCIE glue/PXP VPD event function1; [12] PCIE glue/PXP
  1107. Expansion ROM event0; [13] PCIE glue/PXP Expansion ROM event1; [14]
  1108. SPIO4; [15] SPIO5; [16] MSI/X indication for function 0; [17] MSI/X
  1109. indication for function 1; [18] BRB Parity error; [19] BRB Hw interrupt;
  1110. [20] PRS Parity error; [21] PRS Hw interrupt; [22] SRC Parity error; [23]
  1111. SRC Hw interrupt; [24] TSDM Parity error; [25] TSDM Hw interrupt; [26]
  1112. TCM Parity error; [27] TCM Hw interrupt; [28] TSEMI Parity error; [29]
  1113. TSEMI Hw interrupt; [30] PBF Parity error; [31] PBF Hw interrupt; */
  1114. #define MISC_REG_AEU_ENABLE1_PXP_0 0xa0fc
  1115. #define MISC_REG_AEU_ENABLE1_PXP_1 0xa19c
  1116. /* [RW 32] second 32b for enabling the output for function 0 output0. mapped
  1117. as follows: [0] PBClient Parity error; [1] PBClient Hw interrupt; [2] QM
  1118. Parity error; [3] QM Hw interrupt; [4] Timers Parity error; [5] Timers Hw
  1119. interrupt; [6] XSDM Parity error; [7] XSDM Hw interrupt; [8] XCM Parity
  1120. error; [9] XCM Hw interrupt; [10] XSEMI Parity error; [11] XSEMI Hw
  1121. interrupt; [12] DoorbellQ Parity error; [13] DoorbellQ Hw interrupt; [14]
  1122. NIG Parity error; [15] NIG Hw interrupt; [16] Vaux PCI core Parity error;
  1123. [17] Vaux PCI core Hw interrupt; [18] Debug Parity error; [19] Debug Hw
  1124. interrupt; [20] USDM Parity error; [21] USDM Hw interrupt; [22] UCM
  1125. Parity error; [23] UCM Hw interrupt; [24] USEMI Parity error; [25] USEMI
  1126. Hw interrupt; [26] UPB Parity error; [27] UPB Hw interrupt; [28] CSDM
  1127. Parity error; [29] CSDM Hw interrupt; [30] CCM Parity error; [31] CCM Hw
  1128. interrupt; */
  1129. #define MISC_REG_AEU_ENABLE2_FUNC_0_OUT_0 0xa070
  1130. #define MISC_REG_AEU_ENABLE2_FUNC_0_OUT_1 0xa080
  1131. /* [RW 32] second 32b for enabling the output for function 1 output0. mapped
  1132. as follows: [0] PBClient Parity error; [1] PBClient Hw interrupt; [2] QM
  1133. Parity error; [3] QM Hw interrupt; [4] Timers Parity error; [5] Timers Hw
  1134. interrupt; [6] XSDM Parity error; [7] XSDM Hw interrupt; [8] XCM Parity
  1135. error; [9] XCM Hw interrupt; [10] XSEMI Parity error; [11] XSEMI Hw
  1136. interrupt; [12] DoorbellQ Parity error; [13] DoorbellQ Hw interrupt; [14]
  1137. NIG Parity error; [15] NIG Hw interrupt; [16] Vaux PCI core Parity error;
  1138. [17] Vaux PCI core Hw interrupt; [18] Debug Parity error; [19] Debug Hw
  1139. interrupt; [20] USDM Parity error; [21] USDM Hw interrupt; [22] UCM
  1140. Parity error; [23] UCM Hw interrupt; [24] USEMI Parity error; [25] USEMI
  1141. Hw interrupt; [26] UPB Parity error; [27] UPB Hw interrupt; [28] CSDM
  1142. Parity error; [29] CSDM Hw interrupt; [30] CCM Parity error; [31] CCM Hw
  1143. interrupt; */
  1144. #define MISC_REG_AEU_ENABLE2_FUNC_1_OUT_0 0xa110
  1145. #define MISC_REG_AEU_ENABLE2_FUNC_1_OUT_1 0xa120
  1146. /* [RW 32] second 32b for enabling the output for close the gate nig. mapped
  1147. as follows: [0] PBClient Parity error; [1] PBClient Hw interrupt; [2] QM
  1148. Parity error; [3] QM Hw interrupt; [4] Timers Parity error; [5] Timers Hw
  1149. interrupt; [6] XSDM Parity error; [7] XSDM Hw interrupt; [8] XCM Parity
  1150. error; [9] XCM Hw interrupt; [10] XSEMI Parity error; [11] XSEMI Hw
  1151. interrupt; [12] DoorbellQ Parity error; [13] DoorbellQ Hw interrupt; [14]
  1152. NIG Parity error; [15] NIG Hw interrupt; [16] Vaux PCI core Parity error;
  1153. [17] Vaux PCI core Hw interrupt; [18] Debug Parity error; [19] Debug Hw
  1154. interrupt; [20] USDM Parity error; [21] USDM Hw interrupt; [22] UCM
  1155. Parity error; [23] UCM Hw interrupt; [24] USEMI Parity error; [25] USEMI
  1156. Hw interrupt; [26] UPB Parity error; [27] UPB Hw interrupt; [28] CSDM
  1157. Parity error; [29] CSDM Hw interrupt; [30] CCM Parity error; [31] CCM Hw
  1158. interrupt; */
  1159. #define MISC_REG_AEU_ENABLE2_NIG_0 0xa0f0
  1160. #define MISC_REG_AEU_ENABLE2_NIG_1 0xa190
  1161. /* [RW 32] second 32b for enabling the output for close the gate pxp. mapped
  1162. as follows: [0] PBClient Parity error; [1] PBClient Hw interrupt; [2] QM
  1163. Parity error; [3] QM Hw interrupt; [4] Timers Parity error; [5] Timers Hw
  1164. interrupt; [6] XSDM Parity error; [7] XSDM Hw interrupt; [8] XCM Parity
  1165. error; [9] XCM Hw interrupt; [10] XSEMI Parity error; [11] XSEMI Hw
  1166. interrupt; [12] DoorbellQ Parity error; [13] DoorbellQ Hw interrupt; [14]
  1167. NIG Parity error; [15] NIG Hw interrupt; [16] Vaux PCI core Parity error;
  1168. [17] Vaux PCI core Hw interrupt; [18] Debug Parity error; [19] Debug Hw
  1169. interrupt; [20] USDM Parity error; [21] USDM Hw interrupt; [22] UCM
  1170. Parity error; [23] UCM Hw interrupt; [24] USEMI Parity error; [25] USEMI
  1171. Hw interrupt; [26] UPB Parity error; [27] UPB Hw interrupt; [28] CSDM
  1172. Parity error; [29] CSDM Hw interrupt; [30] CCM Parity error; [31] CCM Hw
  1173. interrupt; */
  1174. #define MISC_REG_AEU_ENABLE2_PXP_0 0xa100
  1175. #define MISC_REG_AEU_ENABLE2_PXP_1 0xa1a0
  1176. /* [RW 32] third 32b for enabling the output for function 0 output0. mapped
  1177. as follows: [0] CSEMI Parity error; [1] CSEMI Hw interrupt; [2] PXP
  1178. Parity error; [3] PXP Hw interrupt; [4] PXPpciClockClient Parity error;
  1179. [5] PXPpciClockClient Hw interrupt; [6] CFC Parity error; [7] CFC Hw
  1180. interrupt; [8] CDU Parity error; [9] CDU Hw interrupt; [10] DMAE Parity
  1181. error; [11] DMAE Hw interrupt; [12] IGU (HC) Parity error; [13] IGU (HC)
  1182. Hw interrupt; [14] MISC Parity error; [15] MISC Hw interrupt; [16]
  1183. pxp_misc_mps_attn; [17] Flash event; [18] SMB event; [19] MCP attn0; [20]
  1184. MCP attn1; [21] SW timers attn_1 func0; [22] SW timers attn_2 func0; [23]
  1185. SW timers attn_3 func0; [24] SW timers attn_4 func0; [25] PERST; [26] SW
  1186. timers attn_1 func1; [27] SW timers attn_2 func1; [28] SW timers attn_3
  1187. func1; [29] SW timers attn_4 func1; [30] General attn0; [31] General
  1188. attn1; */
  1189. #define MISC_REG_AEU_ENABLE3_FUNC_0_OUT_0 0xa074
  1190. #define MISC_REG_AEU_ENABLE3_FUNC_0_OUT_1 0xa084
  1191. /* [RW 32] third 32b for enabling the output for function 1 output0. mapped
  1192. as follows: [0] CSEMI Parity error; [1] CSEMI Hw interrupt; [2] PXP
  1193. Parity error; [3] PXP Hw interrupt; [4] PXPpciClockClient Parity error;
  1194. [5] PXPpciClockClient Hw interrupt; [6] CFC Parity error; [7] CFC Hw
  1195. interrupt; [8] CDU Parity error; [9] CDU Hw interrupt; [10] DMAE Parity
  1196. error; [11] DMAE Hw interrupt; [12] IGU (HC) Parity error; [13] IGU (HC)
  1197. Hw interrupt; [14] MISC Parity error; [15] MISC Hw interrupt; [16]
  1198. pxp_misc_mps_attn; [17] Flash event; [18] SMB event; [19] MCP attn0; [20]
  1199. MCP attn1; [21] SW timers attn_1 func0; [22] SW timers attn_2 func0; [23]
  1200. SW timers attn_3 func0; [24] SW timers attn_4 func0; [25] PERST; [26] SW
  1201. timers attn_1 func1; [27] SW timers attn_2 func1; [28] SW timers attn_3
  1202. func1; [29] SW timers attn_4 func1; [30] General attn0; [31] General
  1203. attn1; */
  1204. #define MISC_REG_AEU_ENABLE3_FUNC_1_OUT_0 0xa114
  1205. #define MISC_REG_AEU_ENABLE3_FUNC_1_OUT_1 0xa124
  1206. /* [RW 32] third 32b for enabling the output for close the gate nig. mapped
  1207. as follows: [0] CSEMI Parity error; [1] CSEMI Hw interrupt; [2] PXP
  1208. Parity error; [3] PXP Hw interrupt; [4] PXPpciClockClient Parity error;
  1209. [5] PXPpciClockClient Hw interrupt; [6] CFC Parity error; [7] CFC Hw
  1210. interrupt; [8] CDU Parity error; [9] CDU Hw interrupt; [10] DMAE Parity
  1211. error; [11] DMAE Hw interrupt; [12] IGU (HC) Parity error; [13] IGU (HC)
  1212. Hw interrupt; [14] MISC Parity error; [15] MISC Hw interrupt; [16]
  1213. pxp_misc_mps_attn; [17] Flash event; [18] SMB event; [19] MCP attn0; [20]
  1214. MCP attn1; [21] SW timers attn_1 func0; [22] SW timers attn_2 func0; [23]
  1215. SW timers attn_3 func0; [24] SW timers attn_4 func0; [25] PERST; [26] SW
  1216. timers attn_1 func1; [27] SW timers attn_2 func1; [28] SW timers attn_3
  1217. func1; [29] SW timers attn_4 func1; [30] General attn0; [31] General
  1218. attn1; */
  1219. #define MISC_REG_AEU_ENABLE3_NIG_0 0xa0f4
  1220. #define MISC_REG_AEU_ENABLE3_NIG_1 0xa194
  1221. /* [RW 32] third 32b for enabling the output for close the gate pxp. mapped
  1222. as follows: [0] CSEMI Parity error; [1] CSEMI Hw interrupt; [2] PXP
  1223. Parity error; [3] PXP Hw interrupt; [4] PXPpciClockClient Parity error;
  1224. [5] PXPpciClockClient Hw interrupt; [6] CFC Parity error; [7] CFC Hw
  1225. interrupt; [8] CDU Parity error; [9] CDU Hw interrupt; [10] DMAE Parity
  1226. error; [11] DMAE Hw interrupt; [12] IGU (HC) Parity error; [13] IGU (HC)
  1227. Hw interrupt; [14] MISC Parity error; [15] MISC Hw interrupt; [16]
  1228. pxp_misc_mps_attn; [17] Flash event; [18] SMB event; [19] MCP attn0; [20]
  1229. MCP attn1; [21] SW timers attn_1 func0; [22] SW timers attn_2 func0; [23]
  1230. SW timers attn_3 func0; [24] SW timers attn_4 func0; [25] PERST; [26] SW
  1231. timers attn_1 func1; [27] SW timers attn_2 func1; [28] SW timers attn_3
  1232. func1; [29] SW timers attn_4 func1; [30] General attn0; [31] General
  1233. attn1; */
  1234. #define MISC_REG_AEU_ENABLE3_PXP_0 0xa104
  1235. #define MISC_REG_AEU_ENABLE3_PXP_1 0xa1a4
  1236. /* [RW 32] fourth 32b for enabling the output for function 0 output0.mapped
  1237. as follows: [0] General attn2; [1] General attn3; [2] General attn4; [3]
  1238. General attn5; [4] General attn6; [5] General attn7; [6] General attn8;
  1239. [7] General attn9; [8] General attn10; [9] General attn11; [10] General
  1240. attn12; [11] General attn13; [12] General attn14; [13] General attn15;
  1241. [14] General attn16; [15] General attn17; [16] General attn18; [17]
  1242. General attn19; [18] General attn20; [19] General attn21; [20] Main power
  1243. interrupt; [21] RBCR Latched attn; [22] RBCT Latched attn; [23] RBCN
  1244. Latched attn; [24] RBCU Latched attn; [25] RBCP Latched attn; [26] GRC
  1245. Latched timeout attention; [27] GRC Latched reserved access attention;
  1246. [28] MCP Latched rom_parity; [29] MCP Latched ump_rx_parity; [30] MCP
  1247. Latched ump_tx_parity; [31] MCP Latched scpad_parity; */
  1248. #define MISC_REG_AEU_ENABLE4_FUNC_0_OUT_0 0xa078
  1249. #define MISC_REG_AEU_ENABLE4_FUNC_0_OUT_2 0xa098
  1250. #define MISC_REG_AEU_ENABLE4_FUNC_0_OUT_4 0xa0b8
  1251. #define MISC_REG_AEU_ENABLE4_FUNC_0_OUT_5 0xa0c8
  1252. #define MISC_REG_AEU_ENABLE4_FUNC_0_OUT_6 0xa0d8
  1253. #define MISC_REG_AEU_ENABLE4_FUNC_0_OUT_7 0xa0e8
  1254. /* [RW 32] fourth 32b for enabling the output for function 1 output0.mapped
  1255. as follows: [0] General attn2; [1] General attn3; [2] General attn4; [3]
  1256. General attn5; [4] General attn6; [5] General attn7; [6] General attn8;
  1257. [7] General attn9; [8] General attn10; [9] General attn11; [10] General
  1258. attn12; [11] General attn13; [12] General attn14; [13] General attn15;
  1259. [14] General attn16; [15] General attn17; [16] General attn18; [17]
  1260. General attn19; [18] General attn20; [19] General attn21; [20] Main power
  1261. interrupt; [21] RBCR Latched attn; [22] RBCT Latched attn; [23] RBCN
  1262. Latched attn; [24] RBCU Latched attn; [25] RBCP Latched attn; [26] GRC
  1263. Latched timeout attention; [27] GRC Latched reserved access attention;
  1264. [28] MCP Latched rom_parity; [29] MCP Latched ump_rx_parity; [30] MCP
  1265. Latched ump_tx_parity; [31] MCP Latched scpad_parity; */
  1266. #define MISC_REG_AEU_ENABLE4_FUNC_1_OUT_0 0xa118
  1267. #define MISC_REG_AEU_ENABLE4_FUNC_1_OUT_2 0xa138
  1268. #define MISC_REG_AEU_ENABLE4_FUNC_1_OUT_4 0xa158
  1269. #define MISC_REG_AEU_ENABLE4_FUNC_1_OUT_5 0xa168
  1270. #define MISC_REG_AEU_ENABLE4_FUNC_1_OUT_6 0xa178
  1271. #define MISC_REG_AEU_ENABLE4_FUNC_1_OUT_7 0xa188
  1272. /* [RW 32] fourth 32b for enabling the output for close the gate nig.mapped
  1273. as follows: [0] General attn2; [1] General attn3; [2] General attn4; [3]
  1274. General attn5; [4] General attn6; [5] General attn7; [6] General attn8;
  1275. [7] General attn9; [8] General attn10; [9] General attn11; [10] General
  1276. attn12; [11] General attn13; [12] General attn14; [13] General attn15;
  1277. [14] General attn16; [15] General attn17; [16] General attn18; [17]
  1278. General attn19; [18] General attn20; [19] General attn21; [20] Main power
  1279. interrupt; [21] RBCR Latched attn; [22] RBCT Latched attn; [23] RBCN
  1280. Latched attn; [24] RBCU Latched attn; [25] RBCP Latched attn; [26] GRC
  1281. Latched timeout attention; [27] GRC Latched reserved access attention;
  1282. [28] MCP Latched rom_parity; [29] MCP Latched ump_rx_parity; [30] MCP
  1283. Latched ump_tx_parity; [31] MCP Latched scpad_parity; */
  1284. #define MISC_REG_AEU_ENABLE4_NIG_0 0xa0f8
  1285. #define MISC_REG_AEU_ENABLE4_NIG_1 0xa198
  1286. /* [RW 32] fourth 32b for enabling the output for close the gate pxp.mapped
  1287. as follows: [0] General attn2; [1] General attn3; [2] General attn4; [3]
  1288. General attn5; [4] General attn6; [5] General attn7; [6] General attn8;
  1289. [7] General attn9; [8] General attn10; [9] General attn11; [10] General
  1290. attn12; [11] General attn13; [12] General attn14; [13] General attn15;
  1291. [14] General attn16; [15] General attn17; [16] General attn18; [17]
  1292. General attn19; [18] General attn20; [19] General attn21; [20] Main power
  1293. interrupt; [21] RBCR Latched attn; [22] RBCT Latched attn; [23] RBCN
  1294. Latched attn; [24] RBCU Latched attn; [25] RBCP Latched attn; [26] GRC
  1295. Latched timeout attention; [27] GRC Latched reserved access attention;
  1296. [28] MCP Latched rom_parity; [29] MCP Latched ump_rx_parity; [30] MCP
  1297. Latched ump_tx_parity; [31] MCP Latched scpad_parity; */
  1298. #define MISC_REG_AEU_ENABLE4_PXP_0 0xa108
  1299. #define MISC_REG_AEU_ENABLE4_PXP_1 0xa1a8
  1300. /* [RW 1] set/clr general attention 0; this will set/clr bit 94 in the aeu
  1301. 128 bit vector */
  1302. #define MISC_REG_AEU_GENERAL_ATTN_0 0xa000
  1303. #define MISC_REG_AEU_GENERAL_ATTN_1 0xa004
  1304. #define MISC_REG_AEU_GENERAL_ATTN_10 0xa028
  1305. #define MISC_REG_AEU_GENERAL_ATTN_11 0xa02c
  1306. #define MISC_REG_AEU_GENERAL_ATTN_12 0xa030
  1307. #define MISC_REG_AEU_GENERAL_ATTN_2 0xa008
  1308. #define MISC_REG_AEU_GENERAL_ATTN_3 0xa00c
  1309. #define MISC_REG_AEU_GENERAL_ATTN_4 0xa010
  1310. #define MISC_REG_AEU_GENERAL_ATTN_5 0xa014
  1311. #define MISC_REG_AEU_GENERAL_ATTN_6 0xa018
  1312. #define MISC_REG_AEU_GENERAL_ATTN_7 0xa01c
  1313. #define MISC_REG_AEU_GENERAL_ATTN_8 0xa020
  1314. #define MISC_REG_AEU_GENERAL_ATTN_9 0xa024
  1315. #define MISC_REG_AEU_GENERAL_MASK 0xa61c
  1316. /* [RW 32] first 32b for inverting the input for function 0; for each bit:
  1317. 0= do not invert; 1= invert; mapped as follows: [0] NIG attention for
  1318. function0; [1] NIG attention for function1; [2] GPIO1 mcp; [3] GPIO2 mcp;
  1319. [4] GPIO3 mcp; [5] GPIO4 mcp; [6] GPIO1 function 1; [7] GPIO2 function 1;
  1320. [8] GPIO3 function 1; [9] GPIO4 function 1; [10] PCIE glue/PXP VPD event
  1321. function0; [11] PCIE glue/PXP VPD event function1; [12] PCIE glue/PXP
  1322. Expansion ROM event0; [13] PCIE glue/PXP Expansion ROM event1; [14]
  1323. SPIO4; [15] SPIO5; [16] MSI/X indication for mcp; [17] MSI/X indication
  1324. for function 1; [18] BRB Parity error; [19] BRB Hw interrupt; [20] PRS
  1325. Parity error; [21] PRS Hw interrupt; [22] SRC Parity error; [23] SRC Hw
  1326. interrupt; [24] TSDM Parity error; [25] TSDM Hw interrupt; [26] TCM
  1327. Parity error; [27] TCM Hw interrupt; [28] TSEMI Parity error; [29] TSEMI
  1328. Hw interrupt; [30] PBF Parity error; [31] PBF Hw interrupt; */
  1329. #define MISC_REG_AEU_INVERTER_1_FUNC_0 0xa22c
  1330. #define MISC_REG_AEU_INVERTER_1_FUNC_1 0xa23c
  1331. /* [RW 32] second 32b for inverting the input for function 0; for each bit:
  1332. 0= do not invert; 1= invert. mapped as follows: [0] PBClient Parity
  1333. error; [1] PBClient Hw interrupt; [2] QM Parity error; [3] QM Hw
  1334. interrupt; [4] Timers Parity error; [5] Timers Hw interrupt; [6] XSDM
  1335. Parity error; [7] XSDM Hw interrupt; [8] XCM Parity error; [9] XCM Hw
  1336. interrupt; [10] XSEMI Parity error; [11] XSEMI Hw interrupt; [12]
  1337. DoorbellQ Parity error; [13] DoorbellQ Hw interrupt; [14] NIG Parity
  1338. error; [15] NIG Hw interrupt; [16] Vaux PCI core Parity error; [17] Vaux
  1339. PCI core Hw interrupt; [18] Debug Parity error; [19] Debug Hw interrupt;
  1340. [20] USDM Parity error; [21] USDM Hw interrupt; [22] UCM Parity error;
  1341. [23] UCM Hw interrupt; [24] USEMI Parity error; [25] USEMI Hw interrupt;
  1342. [26] UPB Parity error; [27] UPB Hw interrupt; [28] CSDM Parity error;
  1343. [29] CSDM Hw interrupt; [30] CCM Parity error; [31] CCM Hw interrupt; */
  1344. #define MISC_REG_AEU_INVERTER_2_FUNC_0 0xa230
  1345. #define MISC_REG_AEU_INVERTER_2_FUNC_1 0xa240
  1346. /* [RW 10] [7:0] = mask 8 attention output signals toward IGU function0;
  1347. [9:8] = raserved. Zero = mask; one = unmask */
  1348. #define MISC_REG_AEU_MASK_ATTN_FUNC_0 0xa060
  1349. #define MISC_REG_AEU_MASK_ATTN_FUNC_1 0xa064
  1350. /* [RW 1] If set a system kill occurred */
  1351. #define MISC_REG_AEU_SYS_KILL_OCCURRED 0xa610
  1352. /* [RW 32] Represent the status of the input vector to the AEU when a system
  1353. kill occurred. The register is reset in por reset. Mapped as follows: [0]
  1354. NIG attention for function0; [1] NIG attention for function1; [2] GPIO1
  1355. mcp; [3] GPIO2 mcp; [4] GPIO3 mcp; [5] GPIO4 mcp; [6] GPIO1 function 1;
  1356. [7] GPIO2 function 1; [8] GPIO3 function 1; [9] GPIO4 function 1; [10]
  1357. PCIE glue/PXP VPD event function0; [11] PCIE glue/PXP VPD event
  1358. function1; [12] PCIE glue/PXP Expansion ROM event0; [13] PCIE glue/PXP
  1359. Expansion ROM event1; [14] SPIO4; [15] SPIO5; [16] MSI/X indication for
  1360. mcp; [17] MSI/X indication for function 1; [18] BRB Parity error; [19]
  1361. BRB Hw interrupt; [20] PRS Parity error; [21] PRS Hw interrupt; [22] SRC
  1362. Parity error; [23] SRC Hw interrupt; [24] TSDM Parity error; [25] TSDM Hw
  1363. interrupt; [26] TCM Parity error; [27] TCM Hw interrupt; [28] TSEMI
  1364. Parity error; [29] TSEMI Hw interrupt; [30] PBF Parity error; [31] PBF Hw
  1365. interrupt; */
  1366. #define MISC_REG_AEU_SYS_KILL_STATUS_0 0xa600
  1367. #define MISC_REG_AEU_SYS_KILL_STATUS_1 0xa604
  1368. #define MISC_REG_AEU_SYS_KILL_STATUS_2 0xa608
  1369. #define MISC_REG_AEU_SYS_KILL_STATUS_3 0xa60c
  1370. /* [R 4] This field indicates the type of the device. '0' - 2 Ports; '1' - 1
  1371. Port. */
  1372. #define MISC_REG_BOND_ID 0xa400
  1373. /* [R 8] These bits indicate the metal revision of the chip. This value
  1374. starts at 0x00 for each all-layer tape-out and increments by one for each
  1375. tape-out. */
  1376. #define MISC_REG_CHIP_METAL 0xa404
  1377. /* [R 16] These bits indicate the part number for the chip. */
  1378. #define MISC_REG_CHIP_NUM 0xa408
  1379. /* [R 4] These bits indicate the base revision of the chip. This value
  1380. starts at 0x0 for the A0 tape-out and increments by one for each
  1381. all-layer tape-out. */
  1382. #define MISC_REG_CHIP_REV 0xa40c
  1383. /* [RW 32] The following driver registers(1...16) represent 16 drivers and
  1384. 32 clients. Each client can be controlled by one driver only. One in each
  1385. bit represent that this driver control the appropriate client (Ex: bit 5
  1386. is set means this driver control client number 5). addr1 = set; addr0 =
  1387. clear; read from both addresses will give the same result = status. write
  1388. to address 1 will set a request to control all the clients that their
  1389. appropriate bit (in the write command) is set. if the client is free (the
  1390. appropriate bit in all the other drivers is clear) one will be written to
  1391. that driver register; if the client isn't free the bit will remain zero.
  1392. if the appropriate bit is set (the driver request to gain control on a
  1393. client it already controls the ~MISC_REGISTERS_INT_STS.GENERIC_SW
  1394. interrupt will be asserted). write to address 0 will set a request to
  1395. free all the clients that their appropriate bit (in the write command) is
  1396. set. if the appropriate bit is clear (the driver request to free a client
  1397. it doesn't controls the ~MISC_REGISTERS_INT_STS.GENERIC_SW interrupt will
  1398. be asserted). */
  1399. #define MISC_REG_DRIVER_CONTROL_1 0xa510
  1400. #define MISC_REG_DRIVER_CONTROL_7 0xa3c8
  1401. /* [RW 1] e1hmf for WOL. If clr WOL signal o the PXP will be send on bit 0
  1402. only. */
  1403. #define MISC_REG_E1HMF_MODE 0xa5f8
  1404. /* [RW 32] Debug only: spare RW register reset by core reset */
  1405. #define MISC_REG_GENERIC_CR_0 0xa460
  1406. #define MISC_REG_GENERIC_CR_1 0xa464
  1407. /* [RW 32] Debug only: spare RW register reset by por reset */
  1408. #define MISC_REG_GENERIC_POR_1 0xa474
  1409. /* [RW 32] GPIO. [31-28] FLOAT port 0; [27-24] FLOAT port 0; When any of
  1410. these bits is written as a '1'; the corresponding SPIO bit will turn off
  1411. it's drivers and become an input. This is the reset state of all GPIO
  1412. pins. The read value of these bits will be a '1' if that last command
  1413. (#SET; #CLR; or #FLOAT) for this bit was a #FLOAT. (reset value 0xff).
  1414. [23-20] CLR port 1; 19-16] CLR port 0; When any of these bits is written
  1415. as a '1'; the corresponding GPIO bit will drive low. The read value of
  1416. these bits will be a '1' if that last command (#SET; #CLR; or #FLOAT) for
  1417. this bit was a #CLR. (reset value 0). [15-12] SET port 1; 11-8] port 0;
  1418. SET When any of these bits is written as a '1'; the corresponding GPIO
  1419. bit will drive high (if it has that capability). The read value of these
  1420. bits will be a '1' if that last command (#SET; #CLR; or #FLOAT) for this
  1421. bit was a #SET. (reset value 0). [7-4] VALUE port 1; [3-0] VALUE port 0;
  1422. RO; These bits indicate the read value of each of the eight GPIO pins.
  1423. This is the result value of the pin; not the drive value. Writing these
  1424. bits will have not effect. */
  1425. #define MISC_REG_GPIO 0xa490
  1426. /* [RW 8] These bits enable the GPIO_INTs to signals event to the
  1427. IGU/MCP.according to the following map: [0] p0_gpio_0; [1] p0_gpio_1; [2]
  1428. p0_gpio_2; [3] p0_gpio_3; [4] p1_gpio_0; [5] p1_gpio_1; [6] p1_gpio_2;
  1429. [7] p1_gpio_3; */
  1430. #define MISC_REG_GPIO_EVENT_EN 0xa2bc
  1431. /* [RW 32] GPIO INT. [31-28] OLD_CLR port1; [27-24] OLD_CLR port0; Writing a
  1432. '1' to these bit clears the corresponding bit in the #OLD_VALUE register.
  1433. This will acknowledge an interrupt on the falling edge of corresponding
  1434. GPIO input (reset value 0). [23-16] OLD_SET [23-16] port1; OLD_SET port0;
  1435. Writing a '1' to these bit sets the corresponding bit in the #OLD_VALUE
  1436. register. This will acknowledge an interrupt on the rising edge of
  1437. corresponding SPIO input (reset value 0). [15-12] OLD_VALUE [11-8] port1;
  1438. OLD_VALUE port0; RO; These bits indicate the old value of the GPIO input
  1439. value. When the ~INT_STATE bit is set; this bit indicates the OLD value
  1440. of the pin such that if ~INT_STATE is set and this bit is '0'; then the
  1441. interrupt is due to a low to high edge. If ~INT_STATE is set and this bit
  1442. is '1'; then the interrupt is due to a high to low edge (reset value 0).
  1443. [7-4] INT_STATE port1; [3-0] INT_STATE RO port0; These bits indicate the
  1444. current GPIO interrupt state for each GPIO pin. This bit is cleared when
  1445. the appropriate #OLD_SET or #OLD_CLR command bit is written. This bit is
  1446. set when the GPIO input does not match the current value in #OLD_VALUE
  1447. (reset value 0). */
  1448. #define MISC_REG_GPIO_INT 0xa494
  1449. /* [R 28] this field hold the last information that caused reserved
  1450. attention. bits [19:0] - address; [22:20] function; [23] reserved;
  1451. [27:24] the master that caused the attention - according to the following
  1452. encodeing:1 = pxp; 2 = mcp; 3 = usdm; 4 = tsdm; 5 = xsdm; 6 = csdm; 7 =
  1453. dbu; 8 = dmae */
  1454. #define MISC_REG_GRC_RSV_ATTN 0xa3c0
  1455. /* [R 28] this field hold the last information that caused timeout
  1456. attention. bits [19:0] - address; [22:20] function; [23] reserved;
  1457. [27:24] the master that caused the attention - according to the following
  1458. encodeing:1 = pxp; 2 = mcp; 3 = usdm; 4 = tsdm; 5 = xsdm; 6 = csdm; 7 =
  1459. dbu; 8 = dmae */
  1460. #define MISC_REG_GRC_TIMEOUT_ATTN 0xa3c4
  1461. /* [RW 1] Setting this bit enables a timer in the GRC block to timeout any
  1462. access that does not finish within
  1463. ~misc_registers_grc_timout_val.grc_timeout_val cycles. When this bit is
  1464. cleared; this timeout is disabled. If this timeout occurs; the GRC shall
  1465. assert it attention output. */
  1466. #define MISC_REG_GRC_TIMEOUT_EN 0xa280
  1467. /* [RW 28] 28 LSB of LCPLL first register; reset val = 521. inside order of
  1468. the bits is: [2:0] OAC reset value 001) CML output buffer bias control;
  1469. 111 for +40%; 011 for +20%; 001 for 0%; 000 for -20%. [5:3] Icp_ctrl
  1470. (reset value 001) Charge pump current control; 111 for 720u; 011 for
  1471. 600u; 001 for 480u and 000 for 360u. [7:6] Bias_ctrl (reset value 00)
  1472. Global bias control; When bit 7 is high bias current will be 10 0gh; When
  1473. bit 6 is high bias will be 100w; Valid values are 00; 10; 01. [10:8]
  1474. Pll_observe (reset value 010) Bits to control observability. bit 10 is
  1475. for test bias; bit 9 is for test CK; bit 8 is test Vc. [12:11] Vth_ctrl
  1476. (reset value 00) Comparator threshold control. 00 for 0.6V; 01 for 0.54V
  1477. and 10 for 0.66V. [13] pllSeqStart (reset value 0) Enables VCO tuning
  1478. sequencer: 1= sequencer disabled; 0= sequencer enabled (inverted
  1479. internally). [14] reserved (reset value 0) Reset for VCO sequencer is
  1480. connected to RESET input directly. [15] capRetry_en (reset value 0)
  1481. enable retry on cap search failure (inverted). [16] freqMonitor_e (reset
  1482. value 0) bit to continuously monitor vco freq (inverted). [17]
  1483. freqDetRestart_en (reset value 0) bit to enable restart when not freq
  1484. locked (inverted). [18] freqDetRetry_en (reset value 0) bit to enable
  1485. retry on freq det failure(inverted). [19] pllForceFdone_en (reset value
  1486. 0) bit to enable pllForceFdone & pllForceFpass into pllSeq. [20]
  1487. pllForceFdone (reset value 0) bit to force freqDone. [21] pllForceFpass
  1488. (reset value 0) bit to force freqPass. [22] pllForceDone_en (reset value
  1489. 0) bit to enable pllForceCapDone. [23] pllForceCapDone (reset value 0)
  1490. bit to force capDone. [24] pllForceCapPass_en (reset value 0) bit to
  1491. enable pllForceCapPass. [25] pllForceCapPass (reset value 0) bit to force
  1492. capPass. [26] capRestart (reset value 0) bit to force cap sequencer to
  1493. restart. [27] capSelectM_en (reset value 0) bit to enable cap select
  1494. register bits. */
  1495. #define MISC_REG_LCPLL_CTRL_1 0xa2a4
  1496. #define MISC_REG_LCPLL_CTRL_REG_2 0xa2a8
  1497. /* [RW 4] Interrupt mask register #0 read/write */
  1498. #define MISC_REG_MISC_INT_MASK 0xa388
  1499. /* [RW 1] Parity mask register #0 read/write */
  1500. #define MISC_REG_MISC_PRTY_MASK 0xa398
  1501. /* [R 1] Parity register #0 read */
  1502. #define MISC_REG_MISC_PRTY_STS 0xa38c
  1503. #define MISC_REG_NIG_WOL_P0 0xa270
  1504. #define MISC_REG_NIG_WOL_P1 0xa274
  1505. /* [R 1] If set indicate that the pcie_rst_b was asserted without perst
  1506. assertion */
  1507. #define MISC_REG_PCIE_HOT_RESET 0xa618
  1508. /* [RW 32] 32 LSB of storm PLL first register; reset val = 0x 071d2911.
  1509. inside order of the bits is: [0] P1 divider[0] (reset value 1); [1] P1
  1510. divider[1] (reset value 0); [2] P1 divider[2] (reset value 0); [3] P1
  1511. divider[3] (reset value 0); [4] P2 divider[0] (reset value 1); [5] P2
  1512. divider[1] (reset value 0); [6] P2 divider[2] (reset value 0); [7] P2
  1513. divider[3] (reset value 0); [8] ph_det_dis (reset value 1); [9]
  1514. freq_det_dis (reset value 0); [10] Icpx[0] (reset value 0); [11] Icpx[1]
  1515. (reset value 1); [12] Icpx[2] (reset value 0); [13] Icpx[3] (reset value
  1516. 1); [14] Icpx[4] (reset value 0); [15] Icpx[5] (reset value 0); [16]
  1517. Rx[0] (reset value 1); [17] Rx[1] (reset value 0); [18] vc_en (reset
  1518. value 1); [19] vco_rng[0] (reset value 1); [20] vco_rng[1] (reset value
  1519. 1); [21] Kvco_xf[0] (reset value 0); [22] Kvco_xf[1] (reset value 0);
  1520. [23] Kvco_xf[2] (reset value 0); [24] Kvco_xs[0] (reset value 1); [25]
  1521. Kvco_xs[1] (reset value 1); [26] Kvco_xs[2] (reset value 1); [27]
  1522. testd_en (reset value 0); [28] testd_sel[0] (reset value 0); [29]
  1523. testd_sel[1] (reset value 0); [30] testd_sel[2] (reset value 0); [31]
  1524. testa_en (reset value 0); */
  1525. #define MISC_REG_PLL_STORM_CTRL_1 0xa294
  1526. #define MISC_REG_PLL_STORM_CTRL_2 0xa298
  1527. #define MISC_REG_PLL_STORM_CTRL_3 0xa29c
  1528. #define MISC_REG_PLL_STORM_CTRL_4 0xa2a0
  1529. /* [R 1] Status of 4 port mode enable input pin. */
  1530. #define MISC_REG_PORT4MODE_EN 0xa750
  1531. /* [RW 2] 4 port mode enable overwrite.[0] - Overwrite control; if it is 0 -
  1532. * the port4mode_en output is equal to 4 port mode input pin; if it is 1 -
  1533. * the port4mode_en output is equal to bit[1] of this register; [1] -
  1534. * Overwrite value. If bit[0] of this register is 1 this is the value that
  1535. * receives the port4mode_en output . */
  1536. #define MISC_REG_PORT4MODE_EN_OVWR 0xa720
  1537. /* [RW 32] reset reg#2; rite/read one = the specific block is out of reset;
  1538. write/read zero = the specific block is in reset; addr 0-wr- the write
  1539. value will be written to the register; addr 1-set - one will be written
  1540. to all the bits that have the value of one in the data written (bits that
  1541. have the value of zero will not be change) ; addr 2-clear - zero will be
  1542. written to all the bits that have the value of one in the data written
  1543. (bits that have the value of zero will not be change); addr 3-ignore;
  1544. read ignore from all addr except addr 00; inside order of the bits is:
  1545. [0] rst_bmac0; [1] rst_bmac1; [2] rst_emac0; [3] rst_emac1; [4] rst_grc;
  1546. [5] rst_mcp_n_reset_reg_hard_core; [6] rst_ mcp_n_hard_core_rst_b; [7]
  1547. rst_ mcp_n_reset_cmn_cpu; [8] rst_ mcp_n_reset_cmn_core; [9] rst_rbcn;
  1548. [10] rst_dbg; [11] rst_misc_core; [12] rst_dbue (UART); [13]
  1549. Pci_resetmdio_n; [14] rst_emac0_hard_core; [15] rst_emac1_hard_core; 16]
  1550. rst_pxp_rq_rd_wr; 31:17] reserved */
  1551. #define MISC_REG_RESET_REG_2 0xa590
  1552. /* [RW 20] 20 bit GRC address where the scratch-pad of the MCP that is
  1553. shared with the driver resides */
  1554. #define MISC_REG_SHARED_MEM_ADDR 0xa2b4
  1555. /* [RW 32] SPIO. [31-24] FLOAT When any of these bits is written as a '1';
  1556. the corresponding SPIO bit will turn off it's drivers and become an
  1557. input. This is the reset state of all SPIO pins. The read value of these
  1558. bits will be a '1' if that last command (#SET; #CL; or #FLOAT) for this
  1559. bit was a #FLOAT. (reset value 0xff). [23-16] CLR When any of these bits
  1560. is written as a '1'; the corresponding SPIO bit will drive low. The read
  1561. value of these bits will be a '1' if that last command (#SET; #CLR; or
  1562. #FLOAT) for this bit was a #CLR. (reset value 0). [15-8] SET When any of
  1563. these bits is written as a '1'; the corresponding SPIO bit will drive
  1564. high (if it has that capability). The read value of these bits will be a
  1565. '1' if that last command (#SET; #CLR; or #FLOAT) for this bit was a #SET.
  1566. (reset value 0). [7-0] VALUE RO; These bits indicate the read value of
  1567. each of the eight SPIO pins. This is the result value of the pin; not the
  1568. drive value. Writing these bits will have not effect. Each 8 bits field
  1569. is divided as follows: [0] VAUX Enable; when pulsed low; enables supply
  1570. from VAUX. (This is an output pin only; the FLOAT field is not applicable
  1571. for this pin); [1] VAUX Disable; when pulsed low; disables supply form
  1572. VAUX. (This is an output pin only; FLOAT field is not applicable for this
  1573. pin); [2] SEL_VAUX_B - Control to power switching logic. Drive low to
  1574. select VAUX supply. (This is an output pin only; it is not controlled by
  1575. the SET and CLR fields; it is controlled by the Main Power SM; the FLOAT
  1576. field is not applicable for this pin; only the VALUE fields is relevant -
  1577. it reflects the output value); [3] port swap [4] spio_4; [5] spio_5; [6]
  1578. Bit 0 of UMP device ID select; read by UMP firmware; [7] Bit 1 of UMP
  1579. device ID select; read by UMP firmware. */
  1580. #define MISC_REG_SPIO 0xa4fc
  1581. /* [RW 8] These bits enable the SPIO_INTs to signals event to the IGU/MC.
  1582. according to the following map: [3:0] reserved; [4] spio_4 [5] spio_5;
  1583. [7:0] reserved */
  1584. #define MISC_REG_SPIO_EVENT_EN 0xa2b8
  1585. /* [RW 32] SPIO INT. [31-24] OLD_CLR Writing a '1' to these bit clears the
  1586. corresponding bit in the #OLD_VALUE register. This will acknowledge an
  1587. interrupt on the falling edge of corresponding SPIO input (reset value
  1588. 0). [23-16] OLD_SET Writing a '1' to these bit sets the corresponding bit
  1589. in the #OLD_VALUE register. This will acknowledge an interrupt on the
  1590. rising edge of corresponding SPIO input (reset value 0). [15-8] OLD_VALUE
  1591. RO; These bits indicate the old value of the SPIO input value. When the
  1592. ~INT_STATE bit is set; this bit indicates the OLD value of the pin such
  1593. that if ~INT_STATE is set and this bit is '0'; then the interrupt is due
  1594. to a low to high edge. If ~INT_STATE is set and this bit is '1'; then the
  1595. interrupt is due to a high to low edge (reset value 0). [7-0] INT_STATE
  1596. RO; These bits indicate the current SPIO interrupt state for each SPIO
  1597. pin. This bit is cleared when the appropriate #OLD_SET or #OLD_CLR
  1598. command bit is written. This bit is set when the SPIO input does not
  1599. match the current value in #OLD_VALUE (reset value 0). */
  1600. #define MISC_REG_SPIO_INT 0xa500
  1601. /* [RW 32] reload value for counter 4 if reload; the value will be reload if
  1602. the counter reached zero and the reload bit
  1603. (~misc_registers_sw_timer_cfg_4.sw_timer_cfg_4[1] ) is set */
  1604. #define MISC_REG_SW_TIMER_RELOAD_VAL_4 0xa2fc
  1605. /* [RW 32] the value of the counter for sw timers1-8. there are 8 addresses
  1606. in this register. addres 0 - timer 1; address 1 - timer 2, ... address 7 -
  1607. timer 8 */
  1608. #define MISC_REG_SW_TIMER_VAL 0xa5c0
  1609. /* [RW 1] Set by the MCP to remember if one or more of the drivers is/are
  1610. loaded; 0-prepare; -unprepare */
  1611. #define MISC_REG_UNPREPARED 0xa424
  1612. #define NIG_LLH0_BRB1_DRV_MASK_REG_LLH0_BRB1_DRV_MASK_BRCST (0x1<<0)
  1613. #define NIG_LLH0_BRB1_DRV_MASK_REG_LLH0_BRB1_DRV_MASK_MLCST (0x1<<1)
  1614. #define NIG_LLH0_BRB1_DRV_MASK_REG_LLH0_BRB1_DRV_MASK_NO_VLAN (0x1<<4)
  1615. #define NIG_LLH0_BRB1_DRV_MASK_REG_LLH0_BRB1_DRV_MASK_UNCST (0x1<<2)
  1616. #define NIG_LLH0_BRB1_DRV_MASK_REG_LLH0_BRB1_DRV_MASK_VLAN (0x1<<3)
  1617. #define NIG_LLH0_XCM_MASK_REG_LLH0_XCM_MASK_BCN (0x1<<0)
  1618. #define NIG_LLH1_XCM_MASK_REG_LLH1_XCM_MASK_BCN (0x1<<0)
  1619. #define NIG_MASK_INTERRUPT_PORT0_REG_MASK_EMAC0_MISC_MI_INT (0x1<<0)
  1620. #define NIG_MASK_INTERRUPT_PORT0_REG_MASK_SERDES0_LINK_STATUS (0x1<<9)
  1621. #define NIG_MASK_INTERRUPT_PORT0_REG_MASK_XGXS0_LINK10G (0x1<<15)
  1622. #define NIG_MASK_INTERRUPT_PORT0_REG_MASK_XGXS0_LINK_STATUS (0xf<<18)
  1623. /* [RW 1] Input enable for RX_BMAC0 IF */
  1624. #define NIG_REG_BMAC0_IN_EN 0x100ac
  1625. /* [RW 1] output enable for TX_BMAC0 IF */
  1626. #define NIG_REG_BMAC0_OUT_EN 0x100e0
  1627. /* [RW 1] output enable for TX BMAC pause port 0 IF */
  1628. #define NIG_REG_BMAC0_PAUSE_OUT_EN 0x10110
  1629. /* [RW 1] output enable for RX_BMAC0_REGS IF */
  1630. #define NIG_REG_BMAC0_REGS_OUT_EN 0x100e8
  1631. /* [RW 1] output enable for RX BRB1 port0 IF */
  1632. #define NIG_REG_BRB0_OUT_EN 0x100f8
  1633. /* [RW 1] Input enable for TX BRB1 pause port 0 IF */
  1634. #define NIG_REG_BRB0_PAUSE_IN_EN 0x100c4
  1635. /* [RW 1] output enable for RX BRB1 port1 IF */
  1636. #define NIG_REG_BRB1_OUT_EN 0x100fc
  1637. /* [RW 1] Input enable for TX BRB1 pause port 1 IF */
  1638. #define NIG_REG_BRB1_PAUSE_IN_EN 0x100c8
  1639. /* [RW 1] output enable for RX BRB1 LP IF */
  1640. #define NIG_REG_BRB_LB_OUT_EN 0x10100
  1641. /* [WB_W 82] Debug packet to LP from RBC; Data spelling:[63:0] data; 64]
  1642. error; [67:65]eop_bvalid; [68]eop; [69]sop; [70]port_id; 71]flush;
  1643. 72:73]-vnic_num; 81:74]-sideband_info */
  1644. #define NIG_REG_DEBUG_PACKET_LB 0x10800
  1645. /* [RW 1] Input enable for TX Debug packet */
  1646. #define NIG_REG_EGRESS_DEBUG_IN_EN 0x100dc
  1647. /* [RW 1] If 1 - egress drain mode for port0 is active. In this mode all
  1648. packets from PBFare not forwarded to the MAC and just deleted from FIFO.
  1649. First packet may be deleted from the middle. And last packet will be
  1650. always deleted till the end. */
  1651. #define NIG_REG_EGRESS_DRAIN0_MODE 0x10060
  1652. /* [RW 1] Output enable to EMAC0 */
  1653. #define NIG_REG_EGRESS_EMAC0_OUT_EN 0x10120
  1654. /* [RW 1] MAC configuration for packets of port0. If 1 - all packet outputs
  1655. to emac for port0; other way to bmac for port0 */
  1656. #define NIG_REG_EGRESS_EMAC0_PORT 0x10058
  1657. /* [RW 1] Input enable for TX PBF user packet port0 IF */
  1658. #define NIG_REG_EGRESS_PBF0_IN_EN 0x100cc
  1659. /* [RW 1] Input enable for TX PBF user packet port1 IF */
  1660. #define NIG_REG_EGRESS_PBF1_IN_EN 0x100d0
  1661. /* [RW 1] Input enable for TX UMP management packet port0 IF */
  1662. #define NIG_REG_EGRESS_UMP0_IN_EN 0x100d4
  1663. /* [RW 1] Input enable for RX_EMAC0 IF */
  1664. #define NIG_REG_EMAC0_IN_EN 0x100a4
  1665. /* [RW 1] output enable for TX EMAC pause port 0 IF */
  1666. #define NIG_REG_EMAC0_PAUSE_OUT_EN 0x10118
  1667. /* [R 1] status from emac0. This bit is set when MDINT from either the
  1668. EXT_MDINT pin or from the Copper PHY is driven low. This condition must
  1669. be cleared in the attached PHY device that is driving the MINT pin. */
  1670. #define NIG_REG_EMAC0_STATUS_MISC_MI_INT 0x10494
  1671. /* [WB 48] This address space contains BMAC0 registers. The BMAC registers
  1672. are described in appendix A. In order to access the BMAC0 registers; the
  1673. base address; NIG_REGISTERS_INGRESS_BMAC0_MEM; Offset: 0x10c00; should be
  1674. added to each BMAC register offset */
  1675. #define NIG_REG_INGRESS_BMAC0_MEM 0x10c00
  1676. /* [WB 48] This address space contains BMAC1 registers. The BMAC registers
  1677. are described in appendix A. In order to access the BMAC0 registers; the
  1678. base address; NIG_REGISTERS_INGRESS_BMAC1_MEM; Offset: 0x11000; should be
  1679. added to each BMAC register offset */
  1680. #define NIG_REG_INGRESS_BMAC1_MEM 0x11000
  1681. /* [R 1] FIFO empty in EOP descriptor FIFO of LP in NIG_RX_EOP */
  1682. #define NIG_REG_INGRESS_EOP_LB_EMPTY 0x104e0
  1683. /* [RW 17] Debug only. RX_EOP_DSCR_lb_FIFO in NIG_RX_EOP. Data
  1684. packet_length[13:0]; mac_error[14]; trunc_error[15]; parity[16] */
  1685. #define NIG_REG_INGRESS_EOP_LB_FIFO 0x104e4
  1686. /* [RW 27] 0 - must be active for Everest A0; 1- for Everest B0 when latch
  1687. logic for interrupts must be used. Enable per bit of interrupt of
  1688. ~latch_status.latch_status */
  1689. #define NIG_REG_LATCH_BC_0 0x16210
  1690. /* [RW 27] Latch for each interrupt from Unicore.b[0]
  1691. status_emac0_misc_mi_int; b[1] status_emac0_misc_mi_complete;
  1692. b[2]status_emac0_misc_cfg_change; b[3]status_emac0_misc_link_status;
  1693. b[4]status_emac0_misc_link_change; b[5]status_emac0_misc_attn;
  1694. b[6]status_serdes0_mac_crs; b[7]status_serdes0_autoneg_complete;
  1695. b[8]status_serdes0_fiber_rxact; b[9]status_serdes0_link_status;
  1696. b[10]status_serdes0_mr_page_rx; b[11]status_serdes0_cl73_an_complete;
  1697. b[12]status_serdes0_cl73_mr_page_rx; b[13]status_serdes0_rx_sigdet;
  1698. b[14]status_xgxs0_remotemdioreq; b[15]status_xgxs0_link10g;
  1699. b[16]status_xgxs0_autoneg_complete; b[17]status_xgxs0_fiber_rxact;
  1700. b[21:18]status_xgxs0_link_status; b[22]status_xgxs0_mr_page_rx;
  1701. b[23]status_xgxs0_cl73_an_complete; b[24]status_xgxs0_cl73_mr_page_rx;
  1702. b[25]status_xgxs0_rx_sigdet; b[26]status_xgxs0_mac_crs */
  1703. #define NIG_REG_LATCH_STATUS_0 0x18000
  1704. /* [RW 1] led 10g for port 0 */
  1705. #define NIG_REG_LED_10G_P0 0x10320
  1706. /* [RW 1] led 10g for port 1 */
  1707. #define NIG_REG_LED_10G_P1 0x10324
  1708. /* [RW 1] Port0: This bit is set to enable the use of the
  1709. ~nig_registers_led_control_blink_rate_p0.led_control_blink_rate_p0 field
  1710. defined below. If this bit is cleared; then the blink rate will be about
  1711. 8Hz. */
  1712. #define NIG_REG_LED_CONTROL_BLINK_RATE_ENA_P0 0x10318
  1713. /* [RW 12] Port0: Specifies the period of each blink cycle (on + off) for
  1714. Traffic LED in milliseconds. Must be a non-zero value. This 12-bit field
  1715. is reset to 0x080; giving a default blink period of approximately 8Hz. */
  1716. #define NIG_REG_LED_CONTROL_BLINK_RATE_P0 0x10310
  1717. /* [RW 1] Port0: If set along with the
  1718. ~nig_registers_led_control_override_traffic_p0.led_control_override_traffic_p0
  1719. bit and ~nig_registers_led_control_traffic_p0.led_control_traffic_p0 LED
  1720. bit; the Traffic LED will blink with the blink rate specified in
  1721. ~nig_registers_led_control_blink_rate_p0.led_control_blink_rate_p0 and
  1722. ~nig_registers_led_control_blink_rate_ena_p0.led_control_blink_rate_ena_p0
  1723. fields. */
  1724. #define NIG_REG_LED_CONTROL_BLINK_TRAFFIC_P0 0x10308
  1725. /* [RW 1] Port0: If set overrides hardware control of the Traffic LED. The
  1726. Traffic LED will then be controlled via bit ~nig_registers_
  1727. led_control_traffic_p0.led_control_traffic_p0 and bit
  1728. ~nig_registers_led_control_blink_traffic_p0.led_control_blink_traffic_p0 */
  1729. #define NIG_REG_LED_CONTROL_OVERRIDE_TRAFFIC_P0 0x102f8
  1730. /* [RW 1] Port0: If set along with the led_control_override_trafic_p0 bit;
  1731. turns on the Traffic LED. If the led_control_blink_traffic_p0 bit is also
  1732. set; the LED will blink with blink rate specified in
  1733. ~nig_registers_led_control_blink_rate_p0.led_control_blink_rate_p0 and
  1734. ~nig_regsters_led_control_blink_rate_ena_p0.led_control_blink_rate_ena_p0
  1735. fields. */
  1736. #define NIG_REG_LED_CONTROL_TRAFFIC_P0 0x10300
  1737. /* [RW 4] led mode for port0: 0 MAC; 1-3 PHY1; 4 MAC2; 5-7 PHY4; 8-MAC3;
  1738. 9-11PHY7; 12 MAC4; 13-15 PHY10; */
  1739. #define NIG_REG_LED_MODE_P0 0x102f0
  1740. /* [RW 3] for port0 enable for llfc ppp and pause. b0 - brb1 enable; b1-
  1741. tsdm enable; b2- usdm enable */
  1742. #define NIG_REG_LLFC_EGRESS_SRC_ENABLE_0 0x16070
  1743. #define NIG_REG_LLFC_EGRESS_SRC_ENABLE_1 0x16074
  1744. /* [RW 1] SAFC enable for port0. This register may get 1 only when
  1745. ~ppp_enable.ppp_enable = 0 and pause_enable.pause_enable =0 for the same
  1746. port */
  1747. #define NIG_REG_LLFC_ENABLE_0 0x16208
  1748. #define NIG_REG_LLFC_ENABLE_1 0x1620c
  1749. /* [RW 16] classes are high-priority for port0 */
  1750. #define NIG_REG_LLFC_HIGH_PRIORITY_CLASSES_0 0x16058
  1751. #define NIG_REG_LLFC_HIGH_PRIORITY_CLASSES_1 0x1605c
  1752. /* [RW 16] classes are low-priority for port0 */
  1753. #define NIG_REG_LLFC_LOW_PRIORITY_CLASSES_0 0x16060
  1754. #define NIG_REG_LLFC_LOW_PRIORITY_CLASSES_1 0x16064
  1755. /* [RW 1] Output enable of message to LLFC BMAC IF for port0 */
  1756. #define NIG_REG_LLFC_OUT_EN_0 0x160c8
  1757. #define NIG_REG_LLFC_OUT_EN_1 0x160cc
  1758. #define NIG_REG_LLH0_ACPI_PAT_0_CRC 0x1015c
  1759. #define NIG_REG_LLH0_ACPI_PAT_6_LEN 0x10154
  1760. #define NIG_REG_LLH0_BRB1_DRV_MASK 0x10244
  1761. #define NIG_REG_LLH0_BRB1_DRV_MASK_MF 0x16048
  1762. /* [RW 1] send to BRB1 if no match on any of RMP rules. */
  1763. #define NIG_REG_LLH0_BRB1_NOT_MCP 0x1025c
  1764. /* [RW 2] Determine the classification participants. 0: no classification.1:
  1765. classification upon VLAN id. 2: classification upon MAC address. 3:
  1766. classification upon both VLAN id & MAC addr. */
  1767. #define NIG_REG_LLH0_CLS_TYPE 0x16080
  1768. /* [RW 32] cm header for llh0 */
  1769. #define NIG_REG_LLH0_CM_HEADER 0x1007c
  1770. #define NIG_REG_LLH0_DEST_IP_0_1 0x101dc
  1771. #define NIG_REG_LLH0_DEST_MAC_0_0 0x101c0
  1772. /* [RW 16] destination TCP address 1. The LLH will look for this address in
  1773. all incoming packets. */
  1774. #define NIG_REG_LLH0_DEST_TCP_0 0x10220
  1775. /* [RW 16] destination UDP address 1 The LLH will look for this address in
  1776. all incoming packets. */
  1777. #define NIG_REG_LLH0_DEST_UDP_0 0x10214
  1778. #define NIG_REG_LLH0_ERROR_MASK 0x1008c
  1779. /* [RW 8] event id for llh0 */
  1780. #define NIG_REG_LLH0_EVENT_ID 0x10084
  1781. #define NIG_REG_LLH0_FUNC_EN 0x160fc
  1782. #define NIG_REG_LLH0_FUNC_MEM 0x16180
  1783. #define NIG_REG_LLH0_FUNC_MEM_ENABLE 0x16140
  1784. #define NIG_REG_LLH0_FUNC_VLAN_ID 0x16100
  1785. /* [RW 1] Determine the IP version to look for in
  1786. ~nig_registers_llh0_dest_ip_0.llh0_dest_ip_0. 0 - IPv6; 1-IPv4 */
  1787. #define NIG_REG_LLH0_IPV4_IPV6_0 0x10208
  1788. /* [RW 1] t bit for llh0 */
  1789. #define NIG_REG_LLH0_T_BIT 0x10074
  1790. /* [RW 12] VLAN ID 1. In case of VLAN packet the LLH will look for this ID. */
  1791. #define NIG_REG_LLH0_VLAN_ID_0 0x1022c
  1792. /* [RW 8] init credit counter for port0 in LLH */
  1793. #define NIG_REG_LLH0_XCM_INIT_CREDIT 0x10554
  1794. #define NIG_REG_LLH0_XCM_MASK 0x10130
  1795. #define NIG_REG_LLH1_BRB1_DRV_MASK 0x10248
  1796. /* [RW 1] send to BRB1 if no match on any of RMP rules. */
  1797. #define NIG_REG_LLH1_BRB1_NOT_MCP 0x102dc
  1798. /* [RW 2] Determine the classification participants. 0: no classification.1:
  1799. classification upon VLAN id. 2: classification upon MAC address. 3:
  1800. classification upon both VLAN id & MAC addr. */
  1801. #define NIG_REG_LLH1_CLS_TYPE 0x16084
  1802. /* [RW 32] cm header for llh1 */
  1803. #define NIG_REG_LLH1_CM_HEADER 0x10080
  1804. #define NIG_REG_LLH1_ERROR_MASK 0x10090
  1805. /* [RW 8] event id for llh1 */
  1806. #define NIG_REG_LLH1_EVENT_ID 0x10088
  1807. #define NIG_REG_LLH1_FUNC_MEM 0x161c0
  1808. #define NIG_REG_LLH1_FUNC_MEM_ENABLE 0x16160
  1809. #define NIG_REG_LLH1_FUNC_MEM_SIZE 16
  1810. /* [RW 8] init credit counter for port1 in LLH */
  1811. #define NIG_REG_LLH1_XCM_INIT_CREDIT 0x10564
  1812. #define NIG_REG_LLH1_XCM_MASK 0x10134
  1813. /* [RW 1] When this bit is set; the LLH will expect all packets to be with
  1814. e1hov */
  1815. #define NIG_REG_LLH_E1HOV_MODE 0x160d8
  1816. /* [RW 1] When this bit is set; the LLH will classify the packet before
  1817. sending it to the BRB or calculating WoL on it. */
  1818. #define NIG_REG_LLH_MF_MODE 0x16024
  1819. #define NIG_REG_MASK_INTERRUPT_PORT0 0x10330
  1820. #define NIG_REG_MASK_INTERRUPT_PORT1 0x10334
  1821. /* [RW 1] Output signal from NIG to EMAC0. When set enables the EMAC0 block. */
  1822. #define NIG_REG_NIG_EMAC0_EN 0x1003c
  1823. /* [RW 1] Output signal from NIG to EMAC1. When set enables the EMAC1 block. */
  1824. #define NIG_REG_NIG_EMAC1_EN 0x10040
  1825. /* [RW 1] Output signal from NIG to TX_EMAC0. When set indicates to the
  1826. EMAC0 to strip the CRC from the ingress packets. */
  1827. #define NIG_REG_NIG_INGRESS_EMAC0_NO_CRC 0x10044
  1828. /* [R 32] Interrupt register #0 read */
  1829. #define NIG_REG_NIG_INT_STS_0 0x103b0
  1830. #define NIG_REG_NIG_INT_STS_1 0x103c0
  1831. /* [R 32] Legacy E1 and E1H location for parity error status register. */
  1832. #define NIG_REG_NIG_PRTY_STS 0x103d0
  1833. /* [R 32] Parity register #0 read */
  1834. #define NIG_REG_NIG_PRTY_STS_0 0x183bc
  1835. #define NIG_REG_NIG_PRTY_STS_1 0x183cc
  1836. /* [RW 6] Bit-map indicating which L2 hdrs may appear after the basic
  1837. * Ethernet header. */
  1838. #define NIG_REG_P0_HDRS_AFTER_BASIC 0x18038
  1839. /* [RW 1] HW PFC enable bit. Set this bit to enable the PFC functionality in
  1840. * the NIG. Other flow control modes such as PAUSE and SAFC/LLFC should be
  1841. * disabled when this bit is set. */
  1842. #define NIG_REG_P0_HWPFC_ENABLE 0x18078
  1843. #define NIG_REG_P0_LLH_FUNC_MEM2 0x18480
  1844. #define NIG_REG_P0_LLH_FUNC_MEM2_ENABLE 0x18440
  1845. /* [RW 32] Eight 4-bit configurations for specifying which COS (0-15 for
  1846. * future expansion) each priorty is to be mapped to. Bits 3:0 specify the
  1847. * COS for priority 0. Bits 31:28 specify the COS for priority 7. The 3-bit
  1848. * priority field is extracted from the outer-most VLAN in receive packet.
  1849. * Only COS 0 and COS 1 are supported in E2. */
  1850. #define NIG_REG_P0_PKT_PRIORITY_TO_COS 0x18054
  1851. /* [RW 16] Bit-map indicating which SAFC/PFC priorities to map to COS 0. A
  1852. * priority is mapped to COS 0 when the corresponding mask bit is 1. More
  1853. * than one bit may be set; allowing multiple priorities to be mapped to one
  1854. * COS. */
  1855. #define NIG_REG_P0_RX_COS0_PRIORITY_MASK 0x18058
  1856. /* [RW 16] Bit-map indicating which SAFC/PFC priorities to map to COS 1. A
  1857. * priority is mapped to COS 1 when the corresponding mask bit is 1. More
  1858. * than one bit may be set; allowing multiple priorities to be mapped to one
  1859. * COS. */
  1860. #define NIG_REG_P0_RX_COS1_PRIORITY_MASK 0x1805c
  1861. /* [RW 15] Specify which of the credit registers the client is to be mapped
  1862. * to. Bits[2:0] are for client 0; bits [14:12] are for client 4. For
  1863. * clients that are not subject to WFQ credit blocking - their
  1864. * specifications here are not used. */
  1865. #define NIG_REG_P0_TX_ARB_CLIENT_CREDIT_MAP 0x180f0
  1866. /* [RW 5] Specify whether the client competes directly in the strict
  1867. * priority arbiter. The bits are mapped according to client ID (client IDs
  1868. * are defined in tx_arb_priority_client). Default value is set to enable
  1869. * strict priorities for clients 0-2 -- management and debug traffic. */
  1870. #define NIG_REG_P0_TX_ARB_CLIENT_IS_STRICT 0x180e8
  1871. /* [RW 5] Specify whether the client is subject to WFQ credit blocking. The
  1872. * bits are mapped according to client ID (client IDs are defined in
  1873. * tx_arb_priority_client). Default value is 0 for not using WFQ credit
  1874. * blocking. */
  1875. #define NIG_REG_P0_TX_ARB_CLIENT_IS_SUBJECT2WFQ 0x180ec
  1876. /* [RW 32] Specify the upper bound that credit register 0 is allowed to
  1877. * reach. */
  1878. #define NIG_REG_P0_TX_ARB_CREDIT_UPPER_BOUND_0 0x1810c
  1879. #define NIG_REG_P0_TX_ARB_CREDIT_UPPER_BOUND_1 0x18110
  1880. /* [RW 32] Specify the weight (in bytes) to be added to credit register 0
  1881. * when it is time to increment. */
  1882. #define NIG_REG_P0_TX_ARB_CREDIT_WEIGHT_0 0x180f8
  1883. #define NIG_REG_P0_TX_ARB_CREDIT_WEIGHT_1 0x180fc
  1884. /* [RW 12] Specify the number of strict priority arbitration slots between
  1885. * two round-robin arbitration slots to avoid starvation. A value of 0 means
  1886. * no strict priority cycles - the strict priority with anti-starvation
  1887. * arbiter becomes a round-robin arbiter. */
  1888. #define NIG_REG_P0_TX_ARB_NUM_STRICT_ARB_SLOTS 0x180f4
  1889. /* [RW 15] Specify the client number to be assigned to each priority of the
  1890. * strict priority arbiter. Priority 0 is the highest priority. Bits [2:0]
  1891. * are for priority 0 client; bits [14:12] are for priority 4 client. The
  1892. * clients are assigned the following IDs: 0-management; 1-debug traffic
  1893. * from this port; 2-debug traffic from other port; 3-COS0 traffic; 4-COS1
  1894. * traffic. The reset value[14:0] is set to 0x4688 (15'b100_011_010_001_000)
  1895. * for management at priority 0; debug traffic at priorities 1 and 2; COS0
  1896. * traffic at priority 3; and COS1 traffic at priority 4. */
  1897. #define NIG_REG_P0_TX_ARB_PRIORITY_CLIENT 0x180e4
  1898. #define NIG_REG_P1_LLH_FUNC_MEM2 0x184c0
  1899. #define NIG_REG_P1_LLH_FUNC_MEM2_ENABLE 0x18460
  1900. /* [RW 32] Eight 4-bit configurations for specifying which COS (0-15 for
  1901. * future expansion) each priorty is to be mapped to. Bits 3:0 specify the
  1902. * COS for priority 0. Bits 31:28 specify the COS for priority 7. The 3-bit
  1903. * priority field is extracted from the outer-most VLAN in receive packet.
  1904. * Only COS 0 and COS 1 are supported in E2. */
  1905. #define NIG_REG_P1_PKT_PRIORITY_TO_COS 0x181a8
  1906. /* [RW 16] Bit-map indicating which SAFC/PFC priorities to map to COS 0. A
  1907. * priority is mapped to COS 0 when the corresponding mask bit is 1. More
  1908. * than one bit may be set; allowing multiple priorities to be mapped to one
  1909. * COS. */
  1910. #define NIG_REG_P1_RX_COS0_PRIORITY_MASK 0x181ac
  1911. /* [RW 16] Bit-map indicating which SAFC/PFC priorities to map to COS 1. A
  1912. * priority is mapped to COS 1 when the corresponding mask bit is 1. More
  1913. * than one bit may be set; allowing multiple priorities to be mapped to one
  1914. * COS. */
  1915. #define NIG_REG_P1_RX_COS1_PRIORITY_MASK 0x181b0
  1916. /* [RW 1] Pause enable for port0. This register may get 1 only when
  1917. ~safc_enable.safc_enable = 0 and ppp_enable.ppp_enable =0 for the same
  1918. port */
  1919. #define NIG_REG_PAUSE_ENABLE_0 0x160c0
  1920. #define NIG_REG_PAUSE_ENABLE_1 0x160c4
  1921. /* [RW 1] Input enable for RX PBF LP IF */
  1922. #define NIG_REG_PBF_LB_IN_EN 0x100b4
  1923. /* [RW 1] Value of this register will be transmitted to port swap when
  1924. ~nig_registers_strap_override.strap_override =1 */
  1925. #define NIG_REG_PORT_SWAP 0x10394
  1926. /* [RW 1] PPP enable for port0. This register may get 1 only when
  1927. * ~safc_enable.safc_enable = 0 and pause_enable.pause_enable =0 for the
  1928. * same port */
  1929. #define NIG_REG_PPP_ENABLE_0 0x160b0
  1930. #define NIG_REG_PPP_ENABLE_1 0x160b4
  1931. /* [RW 1] output enable for RX parser descriptor IF */
  1932. #define NIG_REG_PRS_EOP_OUT_EN 0x10104
  1933. /* [RW 1] Input enable for RX parser request IF */
  1934. #define NIG_REG_PRS_REQ_IN_EN 0x100b8
  1935. /* [RW 5] control to serdes - CL45 DEVAD */
  1936. #define NIG_REG_SERDES0_CTRL_MD_DEVAD 0x10370
  1937. /* [RW 1] control to serdes; 0 - clause 45; 1 - clause 22 */
  1938. #define NIG_REG_SERDES0_CTRL_MD_ST 0x1036c
  1939. /* [RW 5] control to serdes - CL22 PHY_ADD and CL45 PRTAD */
  1940. #define NIG_REG_SERDES0_CTRL_PHY_ADDR 0x10374
  1941. /* [R 1] status from serdes0 that inputs to interrupt logic of link status */
  1942. #define NIG_REG_SERDES0_STATUS_LINK_STATUS 0x10578
  1943. /* [R 32] Rx statistics : In user packets discarded due to BRB backpressure
  1944. for port0 */
  1945. #define NIG_REG_STAT0_BRB_DISCARD 0x105f0
  1946. /* [R 32] Rx statistics : In user packets truncated due to BRB backpressure
  1947. for port0 */
  1948. #define NIG_REG_STAT0_BRB_TRUNCATE 0x105f8
  1949. /* [WB_R 36] Tx statistics : Number of packets from emac0 or bmac0 that
  1950. between 1024 and 1522 bytes for port0 */
  1951. #define NIG_REG_STAT0_EGRESS_MAC_PKT0 0x10750
  1952. /* [WB_R 36] Tx statistics : Number of packets from emac0 or bmac0 that
  1953. between 1523 bytes and above for port0 */
  1954. #define NIG_REG_STAT0_EGRESS_MAC_PKT1 0x10760
  1955. /* [R 32] Rx statistics : In user packets discarded due to BRB backpressure
  1956. for port1 */
  1957. #define NIG_REG_STAT1_BRB_DISCARD 0x10628
  1958. /* [WB_R 36] Tx statistics : Number of packets from emac1 or bmac1 that
  1959. between 1024 and 1522 bytes for port1 */
  1960. #define NIG_REG_STAT1_EGRESS_MAC_PKT0 0x107a0
  1961. /* [WB_R 36] Tx statistics : Number of packets from emac1 or bmac1 that
  1962. between 1523 bytes and above for port1 */
  1963. #define NIG_REG_STAT1_EGRESS_MAC_PKT1 0x107b0
  1964. /* [WB_R 64] Rx statistics : User octets received for LP */
  1965. #define NIG_REG_STAT2_BRB_OCTET 0x107e0
  1966. #define NIG_REG_STATUS_INTERRUPT_PORT0 0x10328
  1967. #define NIG_REG_STATUS_INTERRUPT_PORT1 0x1032c
  1968. /* [RW 1] port swap mux selection. If this register equal to 0 then port
  1969. swap is equal to SPIO pin that inputs from ifmux_serdes_swap. If 1 then
  1970. ort swap is equal to ~nig_registers_port_swap.port_swap */
  1971. #define NIG_REG_STRAP_OVERRIDE 0x10398
  1972. /* [RW 1] output enable for RX_XCM0 IF */
  1973. #define NIG_REG_XCM0_OUT_EN 0x100f0
  1974. /* [RW 1] output enable for RX_XCM1 IF */
  1975. #define NIG_REG_XCM1_OUT_EN 0x100f4
  1976. /* [RW 1] control to xgxs - remote PHY in-band MDIO */
  1977. #define NIG_REG_XGXS0_CTRL_EXTREMOTEMDIOST 0x10348
  1978. /* [RW 5] control to xgxs - CL45 DEVAD */
  1979. #define NIG_REG_XGXS0_CTRL_MD_DEVAD 0x1033c
  1980. /* [RW 1] control to xgxs; 0 - clause 45; 1 - clause 22 */
  1981. #define NIG_REG_XGXS0_CTRL_MD_ST 0x10338
  1982. /* [RW 5] control to xgxs - CL22 PHY_ADD and CL45 PRTAD */
  1983. #define NIG_REG_XGXS0_CTRL_PHY_ADDR 0x10340
  1984. /* [R 1] status from xgxs0 that inputs to interrupt logic of link10g. */
  1985. #define NIG_REG_XGXS0_STATUS_LINK10G 0x10680
  1986. /* [R 4] status from xgxs0 that inputs to interrupt logic of link status */
  1987. #define NIG_REG_XGXS0_STATUS_LINK_STATUS 0x10684
  1988. /* [RW 2] selection for XGXS lane of port 0 in NIG_MUX block */
  1989. #define NIG_REG_XGXS_LANE_SEL_P0 0x102e8
  1990. /* [RW 1] selection for port0 for NIG_MUX block : 0 = SerDes; 1 = XGXS */
  1991. #define NIG_REG_XGXS_SERDES0_MODE_SEL 0x102e0
  1992. #define NIG_STATUS_INTERRUPT_PORT0_REG_STATUS_EMAC0_MISC_MI_INT (0x1<<0)
  1993. #define NIG_STATUS_INTERRUPT_PORT0_REG_STATUS_SERDES0_LINK_STATUS (0x1<<9)
  1994. #define NIG_STATUS_INTERRUPT_PORT0_REG_STATUS_XGXS0_LINK10G (0x1<<15)
  1995. #define NIG_STATUS_INTERRUPT_PORT0_REG_STATUS_XGXS0_LINK_STATUS (0xf<<18)
  1996. #define NIG_STATUS_INTERRUPT_PORT0_REG_STATUS_XGXS0_LINK_STATUS_SIZE 18
  1997. /* [RW 31] The upper bound of the weight of COS0 in the ETS command arbiter. */
  1998. #define PBF_REG_COS0_UPPER_BOUND 0x15c05c
  1999. /* [RW 31] The weight of COS0 in the ETS command arbiter. */
  2000. #define PBF_REG_COS0_WEIGHT 0x15c054
  2001. /* [RW 31] The upper bound of the weight of COS1 in the ETS command arbiter. */
  2002. #define PBF_REG_COS1_UPPER_BOUND 0x15c060
  2003. /* [RW 31] The weight of COS1 in the ETS command arbiter. */
  2004. #define PBF_REG_COS1_WEIGHT 0x15c058
  2005. /* [RW 1] Disable processing further tasks from port 0 (after ending the
  2006. current task in process). */
  2007. #define PBF_REG_DISABLE_NEW_TASK_PROC_P0 0x14005c
  2008. /* [RW 1] Disable processing further tasks from port 1 (after ending the
  2009. current task in process). */
  2010. #define PBF_REG_DISABLE_NEW_TASK_PROC_P1 0x140060
  2011. /* [RW 1] Disable processing further tasks from port 4 (after ending the
  2012. current task in process). */
  2013. #define PBF_REG_DISABLE_NEW_TASK_PROC_P4 0x14006c
  2014. #define PBF_REG_DISABLE_PF 0x1402e8
  2015. /* [RW 1] Indicates that ETS is performed between the COSes in the command
  2016. * arbiter. If reset strict priority w/ anti-starvation will be performed
  2017. * w/o WFQ. */
  2018. #define PBF_REG_ETS_ENABLED 0x15c050
  2019. /* [RW 6] Bit-map indicating which L2 hdrs may appear after the basic
  2020. * Ethernet header. */
  2021. #define PBF_REG_HDRS_AFTER_BASIC 0x15c0a8
  2022. /* [RW 1] Indicates which COS is conncted to the highest priority in the
  2023. * command arbiter. */
  2024. #define PBF_REG_HIGH_PRIORITY_COS_NUM 0x15c04c
  2025. #define PBF_REG_IF_ENABLE_REG 0x140044
  2026. /* [RW 1] Init bit. When set the initial credits are copied to the credit
  2027. registers (except the port credits). Should be set and then reset after
  2028. the configuration of the block has ended. */
  2029. #define PBF_REG_INIT 0x140000
  2030. /* [RW 1] Init bit for port 0. When set the initial credit of port 0 is
  2031. copied to the credit register. Should be set and then reset after the
  2032. configuration of the port has ended. */
  2033. #define PBF_REG_INIT_P0 0x140004
  2034. /* [RW 1] Init bit for port 1. When set the initial credit of port 1 is
  2035. copied to the credit register. Should be set and then reset after the
  2036. configuration of the port has ended. */
  2037. #define PBF_REG_INIT_P1 0x140008
  2038. /* [RW 1] Init bit for port 4. When set the initial credit of port 4 is
  2039. copied to the credit register. Should be set and then reset after the
  2040. configuration of the port has ended. */
  2041. #define PBF_REG_INIT_P4 0x14000c
  2042. /* [RW 1] Enable for mac interface 0. */
  2043. #define PBF_REG_MAC_IF0_ENABLE 0x140030
  2044. /* [RW 1] Enable for mac interface 1. */
  2045. #define PBF_REG_MAC_IF1_ENABLE 0x140034
  2046. /* [RW 1] Enable for the loopback interface. */
  2047. #define PBF_REG_MAC_LB_ENABLE 0x140040
  2048. /* [RW 6] Bit-map indicating which headers must appear in the packet */
  2049. #define PBF_REG_MUST_HAVE_HDRS 0x15c0c4
  2050. /* [RW 16] The number of strict priority arbitration slots between 2 RR
  2051. * arbitration slots. A value of 0 means no strict priority cycles; i.e. the
  2052. * strict-priority w/ anti-starvation arbiter is a RR arbiter. */
  2053. #define PBF_REG_NUM_STRICT_ARB_SLOTS 0x15c064
  2054. /* [RW 10] Port 0 threshold used by arbiter in 16 byte lines used when pause
  2055. not suppoterd. */
  2056. #define PBF_REG_P0_ARB_THRSH 0x1400e4
  2057. /* [R 11] Current credit for port 0 in the tx port buffers in 16 byte lines. */
  2058. #define PBF_REG_P0_CREDIT 0x140200
  2059. /* [RW 11] Initial credit for port 0 in the tx port buffers in 16 byte
  2060. lines. */
  2061. #define PBF_REG_P0_INIT_CRD 0x1400d0
  2062. /* [RW 1] Indication that pause is enabled for port 0. */
  2063. #define PBF_REG_P0_PAUSE_ENABLE 0x140014
  2064. /* [R 8] Number of tasks in port 0 task queue. */
  2065. #define PBF_REG_P0_TASK_CNT 0x140204
  2066. /* [R 11] Current credit for port 1 in the tx port buffers in 16 byte lines. */
  2067. #define PBF_REG_P1_CREDIT 0x140208
  2068. /* [RW 11] Initial credit for port 1 in the tx port buffers in 16 byte
  2069. lines. */
  2070. #define PBF_REG_P1_INIT_CRD 0x1400d4
  2071. /* [R 8] Number of tasks in port 1 task queue. */
  2072. #define PBF_REG_P1_TASK_CNT 0x14020c
  2073. /* [R 11] Current credit for port 4 in the tx port buffers in 16 byte lines. */
  2074. #define PBF_REG_P4_CREDIT 0x140210
  2075. /* [RW 11] Initial credit for port 4 in the tx port buffers in 16 byte
  2076. lines. */
  2077. #define PBF_REG_P4_INIT_CRD 0x1400e0
  2078. /* [R 8] Number of tasks in port 4 task queue. */
  2079. #define PBF_REG_P4_TASK_CNT 0x140214
  2080. /* [RW 5] Interrupt mask register #0 read/write */
  2081. #define PBF_REG_PBF_INT_MASK 0x1401d4
  2082. /* [R 5] Interrupt register #0 read */
  2083. #define PBF_REG_PBF_INT_STS 0x1401c8
  2084. #define PB_REG_CONTROL 0
  2085. /* [RW 2] Interrupt mask register #0 read/write */
  2086. #define PB_REG_PB_INT_MASK 0x28
  2087. /* [R 2] Interrupt register #0 read */
  2088. #define PB_REG_PB_INT_STS 0x1c
  2089. /* [RW 4] Parity mask register #0 read/write */
  2090. #define PB_REG_PB_PRTY_MASK 0x38
  2091. /* [R 4] Parity register #0 read */
  2092. #define PB_REG_PB_PRTY_STS 0x2c
  2093. #define PGLUE_B_PGLUE_B_INT_STS_REG_ADDRESS_ERROR (0x1<<0)
  2094. #define PGLUE_B_PGLUE_B_INT_STS_REG_CSSNOOP_FIFO_OVERFLOW (0x1<<8)
  2095. #define PGLUE_B_PGLUE_B_INT_STS_REG_INCORRECT_RCV_BEHAVIOR (0x1<<1)
  2096. #define PGLUE_B_PGLUE_B_INT_STS_REG_TCPL_ERROR_ATTN (0x1<<6)
  2097. #define PGLUE_B_PGLUE_B_INT_STS_REG_TCPL_IN_TWO_RCBS_ATTN (0x1<<7)
  2098. #define PGLUE_B_PGLUE_B_INT_STS_REG_VF_GRC_SPACE_VIOLATION_ATTN (0x1<<4)
  2099. #define PGLUE_B_PGLUE_B_INT_STS_REG_VF_LENGTH_VIOLATION_ATTN (0x1<<3)
  2100. #define PGLUE_B_PGLUE_B_INT_STS_REG_VF_MSIX_BAR_VIOLATION_ATTN (0x1<<5)
  2101. #define PGLUE_B_PGLUE_B_INT_STS_REG_WAS_ERROR_ATTN (0x1<<2)
  2102. /* [R 8] Config space A attention dirty bits. Each bit indicates that the
  2103. * corresponding PF generates config space A attention. Set by PXP. Reset by
  2104. * MCP writing 1 to icfg_space_a_request_clr. Note: register contains bits
  2105. * from both paths. */
  2106. #define PGLUE_B_REG_CFG_SPACE_A_REQUEST 0x9010
  2107. /* [R 8] Config space B attention dirty bits. Each bit indicates that the
  2108. * corresponding PF generates config space B attention. Set by PXP. Reset by
  2109. * MCP writing 1 to icfg_space_b_request_clr. Note: register contains bits
  2110. * from both paths. */
  2111. #define PGLUE_B_REG_CFG_SPACE_B_REQUEST 0x9014
  2112. /* [RW 1] Type A PF enable inbound interrupt table for CSDM. 0 - disable; 1
  2113. * - enable. */
  2114. #define PGLUE_B_REG_CSDM_INB_INT_A_PF_ENABLE 0x9194
  2115. /* [RW 18] Type B VF inbound interrupt table for CSDM: bits[17:9]-mask;
  2116. * its[8:0]-address. Bits [1:0] must be zero (DW resolution address). */
  2117. #define PGLUE_B_REG_CSDM_INB_INT_B_VF 0x916c
  2118. /* [RW 1] Type B VF enable inbound interrupt table for CSDM. 0 - disable; 1
  2119. * - enable. */
  2120. #define PGLUE_B_REG_CSDM_INB_INT_B_VF_ENABLE 0x919c
  2121. /* [RW 16] Start offset of CSDM zone A (queue zone) in the internal RAM */
  2122. #define PGLUE_B_REG_CSDM_START_OFFSET_A 0x9100
  2123. /* [RW 16] Start offset of CSDM zone B (legacy zone) in the internal RAM */
  2124. #define PGLUE_B_REG_CSDM_START_OFFSET_B 0x9108
  2125. /* [RW 5] VF Shift of CSDM zone B (legacy zone) in the internal RAM */
  2126. #define PGLUE_B_REG_CSDM_VF_SHIFT_B 0x9110
  2127. /* [RW 1] 0 - Zone A size is 136x32B; 1 - Zone A size is 152x32B. */
  2128. #define PGLUE_B_REG_CSDM_ZONE_A_SIZE_PF 0x91ac
  2129. /* [R 8] FLR request attention dirty bits for PFs 0 to 7. Each bit indicates
  2130. * that the FLR register of the corresponding PF was set. Set by PXP. Reset
  2131. * by MCP writing 1 to flr_request_pf_7_0_clr. Note: register contains bits
  2132. * from both paths. */
  2133. #define PGLUE_B_REG_FLR_REQUEST_PF_7_0 0x9028
  2134. /* [W 8] FLR request attention dirty bits clear for PFs 0 to 7. MCP writes 1
  2135. * to a bit in this register in order to clear the corresponding bit in
  2136. * flr_request_pf_7_0 register. Note: register contains bits from both
  2137. * paths. */
  2138. #define PGLUE_B_REG_FLR_REQUEST_PF_7_0_CLR 0x9418
  2139. /* [R 32] FLR request attention dirty bits for VFs 96 to 127. Each bit
  2140. * indicates that the FLR register of the corresponding VF was set. Set by
  2141. * PXP. Reset by MCP writing 1 to flr_request_vf_127_96_clr. */
  2142. #define PGLUE_B_REG_FLR_REQUEST_VF_127_96 0x9024
  2143. /* [R 32] FLR request attention dirty bits for VFs 0 to 31. Each bit
  2144. * indicates that the FLR register of the corresponding VF was set. Set by
  2145. * PXP. Reset by MCP writing 1 to flr_request_vf_31_0_clr. */
  2146. #define PGLUE_B_REG_FLR_REQUEST_VF_31_0 0x9018
  2147. /* [R 32] FLR request attention dirty bits for VFs 32 to 63. Each bit
  2148. * indicates that the FLR register of the corresponding VF was set. Set by
  2149. * PXP. Reset by MCP writing 1 to flr_request_vf_63_32_clr. */
  2150. #define PGLUE_B_REG_FLR_REQUEST_VF_63_32 0x901c
  2151. /* [R 32] FLR request attention dirty bits for VFs 64 to 95. Each bit
  2152. * indicates that the FLR register of the corresponding VF was set. Set by
  2153. * PXP. Reset by MCP writing 1 to flr_request_vf_95_64_clr. */
  2154. #define PGLUE_B_REG_FLR_REQUEST_VF_95_64 0x9020
  2155. /* [R 8] Each bit indicates an incorrect behavior in user RX interface. Bit
  2156. * 0 - Target memory read arrived with a correctable error. Bit 1 - Target
  2157. * memory read arrived with an uncorrectable error. Bit 2 - Configuration RW
  2158. * arrived with a correctable error. Bit 3 - Configuration RW arrived with
  2159. * an uncorrectable error. Bit 4 - Completion with Configuration Request
  2160. * Retry Status. Bit 5 - Expansion ROM access received with a write request.
  2161. * Bit 6 - Completion with pcie_rx_err of 0000; CMPL_STATUS of non-zero; and
  2162. * pcie_rx_last not asserted. Bit 7 - Completion with pcie_rx_err of 1010;
  2163. * and pcie_rx_last not asserted. */
  2164. #define PGLUE_B_REG_INCORRECT_RCV_DETAILS 0x9068
  2165. #define PGLUE_B_REG_INTERNAL_PFID_ENABLE_MASTER 0x942c
  2166. #define PGLUE_B_REG_INTERNAL_PFID_ENABLE_TARGET_READ 0x9430
  2167. #define PGLUE_B_REG_INTERNAL_PFID_ENABLE_TARGET_WRITE 0x9434
  2168. #define PGLUE_B_REG_INTERNAL_VFID_ENABLE 0x9438
  2169. /* [R 9] Interrupt register #0 read */
  2170. #define PGLUE_B_REG_PGLUE_B_INT_STS 0x9298
  2171. /* [RC 9] Interrupt register #0 read clear */
  2172. #define PGLUE_B_REG_PGLUE_B_INT_STS_CLR 0x929c
  2173. /* [R 2] Parity register #0 read */
  2174. #define PGLUE_B_REG_PGLUE_B_PRTY_STS 0x92a8
  2175. /* [R 13] Details of first request received with error. [2:0] - PFID. [3] -
  2176. * VF_VALID. [9:4] - VFID. [11:10] - Error Code - 0 - Indicates Completion
  2177. * Timeout of a User Tx non-posted request. 1 - unsupported request. 2 -
  2178. * completer abort. 3 - Illegal value for this field. [12] valid - indicates
  2179. * if there was a completion error since the last time this register was
  2180. * cleared. */
  2181. #define PGLUE_B_REG_RX_ERR_DETAILS 0x9080
  2182. /* [R 18] Details of first ATS Translation Completion request received with
  2183. * error. [2:0] - PFID. [3] - VF_VALID. [9:4] - VFID. [11:10] - Error Code -
  2184. * 0 - Indicates Completion Timeout of a User Tx non-posted request. 1 -
  2185. * unsupported request. 2 - completer abort. 3 - Illegal value for this
  2186. * field. [16:12] - ATC OTB EntryID. [17] valid - indicates if there was a
  2187. * completion error since the last time this register was cleared. */
  2188. #define PGLUE_B_REG_RX_TCPL_ERR_DETAILS 0x9084
  2189. /* [W 8] Debug only - Shadow BME bits clear for PFs 0 to 7. MCP writes 1 to
  2190. * a bit in this register in order to clear the corresponding bit in
  2191. * shadow_bme_pf_7_0 register. MCP should never use this unless a
  2192. * work-around is needed. Note: register contains bits from both paths. */
  2193. #define PGLUE_B_REG_SHADOW_BME_PF_7_0_CLR 0x9458
  2194. /* [R 8] SR IOV disabled attention dirty bits. Each bit indicates that the
  2195. * VF enable register of the corresponding PF is written to 0 and was
  2196. * previously 1. Set by PXP. Reset by MCP writing 1 to
  2197. * sr_iov_disabled_request_clr. Note: register contains bits from both
  2198. * paths. */
  2199. #define PGLUE_B_REG_SR_IOV_DISABLED_REQUEST 0x9030
  2200. /* [R 32] Indicates the status of tags 32-63. 0 - tags is used - read
  2201. * completion did not return yet. 1 - tag is unused. Same functionality as
  2202. * pxp2_registers_pgl_exp_rom_data2 for tags 0-31. */
  2203. #define PGLUE_B_REG_TAGS_63_32 0x9244
  2204. /* [RW 1] Type A PF enable inbound interrupt table for TSDM. 0 - disable; 1
  2205. * - enable. */
  2206. #define PGLUE_B_REG_TSDM_INB_INT_A_PF_ENABLE 0x9170
  2207. /* [RW 16] Start offset of TSDM zone A (queue zone) in the internal RAM */
  2208. #define PGLUE_B_REG_TSDM_START_OFFSET_A 0x90c4
  2209. /* [RW 16] Start offset of TSDM zone B (legacy zone) in the internal RAM */
  2210. #define PGLUE_B_REG_TSDM_START_OFFSET_B 0x90cc
  2211. /* [RW 5] VF Shift of TSDM zone B (legacy zone) in the internal RAM */
  2212. #define PGLUE_B_REG_TSDM_VF_SHIFT_B 0x90d4
  2213. /* [RW 1] 0 - Zone A size is 136x32B; 1 - Zone A size is 152x32B. */
  2214. #define PGLUE_B_REG_TSDM_ZONE_A_SIZE_PF 0x91a0
  2215. /* [R 32] Address [31:0] of first read request not submitted due to error */
  2216. #define PGLUE_B_REG_TX_ERR_RD_ADD_31_0 0x9098
  2217. /* [R 32] Address [63:32] of first read request not submitted due to error */
  2218. #define PGLUE_B_REG_TX_ERR_RD_ADD_63_32 0x909c
  2219. /* [R 31] Details of first read request not submitted due to error. [4:0]
  2220. * VQID. [5] TREQ. 1 - Indicates the request is a Translation Request.
  2221. * [20:8] - Length in bytes. [23:21] - PFID. [24] - VF_VALID. [30:25] -
  2222. * VFID. */
  2223. #define PGLUE_B_REG_TX_ERR_RD_DETAILS 0x90a0
  2224. /* [R 26] Details of first read request not submitted due to error. [15:0]
  2225. * Request ID. [19:16] client ID. [20] - last SR. [24:21] - Error type -
  2226. * [21] - Indicates was_error was set; [22] - Indicates BME was cleared;
  2227. * [23] - Indicates FID_enable was cleared; [24] - Indicates VF with parent
  2228. * PF FLR_request or IOV_disable_request dirty bit is set. [25] valid -
  2229. * indicates if there was a request not submitted due to error since the
  2230. * last time this register was cleared. */
  2231. #define PGLUE_B_REG_TX_ERR_RD_DETAILS2 0x90a4
  2232. /* [R 32] Address [31:0] of first write request not submitted due to error */
  2233. #define PGLUE_B_REG_TX_ERR_WR_ADD_31_0 0x9088
  2234. /* [R 32] Address [63:32] of first write request not submitted due to error */
  2235. #define PGLUE_B_REG_TX_ERR_WR_ADD_63_32 0x908c
  2236. /* [R 31] Details of first write request not submitted due to error. [4:0]
  2237. * VQID. [20:8] - Length in bytes. [23:21] - PFID. [24] - VF_VALID. [30:25]
  2238. * - VFID. */
  2239. #define PGLUE_B_REG_TX_ERR_WR_DETAILS 0x9090
  2240. /* [R 26] Details of first write request not submitted due to error. [15:0]
  2241. * Request ID. [19:16] client ID. [20] - last SR. [24:21] - Error type -
  2242. * [21] - Indicates was_error was set; [22] - Indicates BME was cleared;
  2243. * [23] - Indicates FID_enable was cleared; [24] - Indicates VF with parent
  2244. * PF FLR_request or IOV_disable_request dirty bit is set. [25] valid -
  2245. * indicates if there was a request not submitted due to error since the
  2246. * last time this register was cleared. */
  2247. #define PGLUE_B_REG_TX_ERR_WR_DETAILS2 0x9094
  2248. /* [RW 10] Type A PF/VF inbound interrupt table for USDM: bits[9:5]-mask;
  2249. * its[4:0]-address relative to start_offset_a. Bits [1:0] can have any
  2250. * value (Byte resolution address). */
  2251. #define PGLUE_B_REG_USDM_INB_INT_A_0 0x9128
  2252. #define PGLUE_B_REG_USDM_INB_INT_A_1 0x912c
  2253. #define PGLUE_B_REG_USDM_INB_INT_A_2 0x9130
  2254. #define PGLUE_B_REG_USDM_INB_INT_A_3 0x9134
  2255. #define PGLUE_B_REG_USDM_INB_INT_A_4 0x9138
  2256. #define PGLUE_B_REG_USDM_INB_INT_A_5 0x913c
  2257. #define PGLUE_B_REG_USDM_INB_INT_A_6 0x9140
  2258. /* [RW 1] Type A PF enable inbound interrupt table for USDM. 0 - disable; 1
  2259. * - enable. */
  2260. #define PGLUE_B_REG_USDM_INB_INT_A_PF_ENABLE 0x917c
  2261. /* [RW 1] Type A VF enable inbound interrupt table for USDM. 0 - disable; 1
  2262. * - enable. */
  2263. #define PGLUE_B_REG_USDM_INB_INT_A_VF_ENABLE 0x9180
  2264. /* [RW 1] Type B VF enable inbound interrupt table for USDM. 0 - disable; 1
  2265. * - enable. */
  2266. #define PGLUE_B_REG_USDM_INB_INT_B_VF_ENABLE 0x9184
  2267. /* [RW 16] Start offset of USDM zone A (queue zone) in the internal RAM */
  2268. #define PGLUE_B_REG_USDM_START_OFFSET_A 0x90d8
  2269. /* [RW 16] Start offset of USDM zone B (legacy zone) in the internal RAM */
  2270. #define PGLUE_B_REG_USDM_START_OFFSET_B 0x90e0
  2271. /* [RW 5] VF Shift of USDM zone B (legacy zone) in the internal RAM */
  2272. #define PGLUE_B_REG_USDM_VF_SHIFT_B 0x90e8
  2273. /* [RW 1] 0 - Zone A size is 136x32B; 1 - Zone A size is 152x32B. */
  2274. #define PGLUE_B_REG_USDM_ZONE_A_SIZE_PF 0x91a4
  2275. /* [R 26] Details of first target VF request accessing VF GRC space that
  2276. * failed permission check. [14:0] Address. [15] w_nr: 0 - Read; 1 - Write.
  2277. * [21:16] VFID. [24:22] - PFID. [25] valid - indicates if there was a
  2278. * request accessing VF GRC space that failed permission check since the
  2279. * last time this register was cleared. Permission checks are: function
  2280. * permission; R/W permission; address range permission. */
  2281. #define PGLUE_B_REG_VF_GRC_SPACE_VIOLATION_DETAILS 0x9234
  2282. /* [R 31] Details of first target VF request with length violation (too many
  2283. * DWs) accessing BAR0. [12:0] Address in DWs (bits [14:2] of byte address).
  2284. * [14:13] BAR. [20:15] VFID. [23:21] - PFID. [29:24] - Length in DWs. [30]
  2285. * valid - indicates if there was a request with length violation since the
  2286. * last time this register was cleared. Length violations: length of more
  2287. * than 2DWs; length of 2DWs and address not QW aligned; window is GRC and
  2288. * length is more than 1 DW. */
  2289. #define PGLUE_B_REG_VF_LENGTH_VIOLATION_DETAILS 0x9230
  2290. /* [R 8] Was_error indication dirty bits for PFs 0 to 7. Each bit indicates
  2291. * that there was a completion with uncorrectable error for the
  2292. * corresponding PF. Set by PXP. Reset by MCP writing 1 to
  2293. * was_error_pf_7_0_clr. */
  2294. #define PGLUE_B_REG_WAS_ERROR_PF_7_0 0x907c
  2295. /* [W 8] Was_error indication dirty bits clear for PFs 0 to 7. MCP writes 1
  2296. * to a bit in this register in order to clear the corresponding bit in
  2297. * flr_request_pf_7_0 register. */
  2298. #define PGLUE_B_REG_WAS_ERROR_PF_7_0_CLR 0x9470
  2299. /* [R 32] Was_error indication dirty bits for VFs 96 to 127. Each bit
  2300. * indicates that there was a completion with uncorrectable error for the
  2301. * corresponding VF. Set by PXP. Reset by MCP writing 1 to
  2302. * was_error_vf_127_96_clr. */
  2303. #define PGLUE_B_REG_WAS_ERROR_VF_127_96 0x9078
  2304. /* [W 32] Was_error indication dirty bits clear for VFs 96 to 127. MCP
  2305. * writes 1 to a bit in this register in order to clear the corresponding
  2306. * bit in was_error_vf_127_96 register. */
  2307. #define PGLUE_B_REG_WAS_ERROR_VF_127_96_CLR 0x9474
  2308. /* [R 32] Was_error indication dirty bits for VFs 0 to 31. Each bit
  2309. * indicates that there was a completion with uncorrectable error for the
  2310. * corresponding VF. Set by PXP. Reset by MCP writing 1 to
  2311. * was_error_vf_31_0_clr. */
  2312. #define PGLUE_B_REG_WAS_ERROR_VF_31_0 0x906c
  2313. /* [W 32] Was_error indication dirty bits clear for VFs 0 to 31. MCP writes
  2314. * 1 to a bit in this register in order to clear the corresponding bit in
  2315. * was_error_vf_31_0 register. */
  2316. #define PGLUE_B_REG_WAS_ERROR_VF_31_0_CLR 0x9478
  2317. /* [R 32] Was_error indication dirty bits for VFs 32 to 63. Each bit
  2318. * indicates that there was a completion with uncorrectable error for the
  2319. * corresponding VF. Set by PXP. Reset by MCP writing 1 to
  2320. * was_error_vf_63_32_clr. */
  2321. #define PGLUE_B_REG_WAS_ERROR_VF_63_32 0x9070
  2322. /* [W 32] Was_error indication dirty bits clear for VFs 32 to 63. MCP writes
  2323. * 1 to a bit in this register in order to clear the corresponding bit in
  2324. * was_error_vf_63_32 register. */
  2325. #define PGLUE_B_REG_WAS_ERROR_VF_63_32_CLR 0x947c
  2326. /* [R 32] Was_error indication dirty bits for VFs 64 to 95. Each bit
  2327. * indicates that there was a completion with uncorrectable error for the
  2328. * corresponding VF. Set by PXP. Reset by MCP writing 1 to
  2329. * was_error_vf_95_64_clr. */
  2330. #define PGLUE_B_REG_WAS_ERROR_VF_95_64 0x9074
  2331. /* [W 32] Was_error indication dirty bits clear for VFs 64 to 95. MCP writes
  2332. * 1 to a bit in this register in order to clear the corresponding bit in
  2333. * was_error_vf_95_64 register. */
  2334. #define PGLUE_B_REG_WAS_ERROR_VF_95_64_CLR 0x9480
  2335. /* [RW 1] Type A PF enable inbound interrupt table for XSDM. 0 - disable; 1
  2336. * - enable. */
  2337. #define PGLUE_B_REG_XSDM_INB_INT_A_PF_ENABLE 0x9188
  2338. /* [RW 16] Start offset of XSDM zone A (queue zone) in the internal RAM */
  2339. #define PGLUE_B_REG_XSDM_START_OFFSET_A 0x90ec
  2340. /* [RW 16] Start offset of XSDM zone B (legacy zone) in the internal RAM */
  2341. #define PGLUE_B_REG_XSDM_START_OFFSET_B 0x90f4
  2342. /* [RW 5] VF Shift of XSDM zone B (legacy zone) in the internal RAM */
  2343. #define PGLUE_B_REG_XSDM_VF_SHIFT_B 0x90fc
  2344. /* [RW 1] 0 - Zone A size is 136x32B; 1 - Zone A size is 152x32B. */
  2345. #define PGLUE_B_REG_XSDM_ZONE_A_SIZE_PF 0x91a8
  2346. #define PRS_REG_A_PRSU_20 0x40134
  2347. /* [R 8] debug only: CFC load request current credit. Transaction based. */
  2348. #define PRS_REG_CFC_LD_CURRENT_CREDIT 0x40164
  2349. /* [R 8] debug only: CFC search request current credit. Transaction based. */
  2350. #define PRS_REG_CFC_SEARCH_CURRENT_CREDIT 0x40168
  2351. /* [RW 6] The initial credit for the search message to the CFC interface.
  2352. Credit is transaction based. */
  2353. #define PRS_REG_CFC_SEARCH_INITIAL_CREDIT 0x4011c
  2354. /* [RW 24] CID for port 0 if no match */
  2355. #define PRS_REG_CID_PORT_0 0x400fc
  2356. /* [RW 32] The CM header for flush message where 'load existed' bit in CFC
  2357. load response is reset and packet type is 0. Used in packet start message
  2358. to TCM. */
  2359. #define PRS_REG_CM_HDR_FLUSH_LOAD_TYPE_0 0x400dc
  2360. #define PRS_REG_CM_HDR_FLUSH_LOAD_TYPE_1 0x400e0
  2361. #define PRS_REG_CM_HDR_FLUSH_LOAD_TYPE_2 0x400e4
  2362. #define PRS_REG_CM_HDR_FLUSH_LOAD_TYPE_3 0x400e8
  2363. #define PRS_REG_CM_HDR_FLUSH_LOAD_TYPE_4 0x400ec
  2364. #define PRS_REG_CM_HDR_FLUSH_LOAD_TYPE_5 0x400f0
  2365. /* [RW 32] The CM header for flush message where 'load existed' bit in CFC
  2366. load response is set and packet type is 0. Used in packet start message
  2367. to TCM. */
  2368. #define PRS_REG_CM_HDR_FLUSH_NO_LOAD_TYPE_0 0x400bc
  2369. #define PRS_REG_CM_HDR_FLUSH_NO_LOAD_TYPE_1 0x400c0
  2370. #define PRS_REG_CM_HDR_FLUSH_NO_LOAD_TYPE_2 0x400c4
  2371. #define PRS_REG_CM_HDR_FLUSH_NO_LOAD_TYPE_3 0x400c8
  2372. #define PRS_REG_CM_HDR_FLUSH_NO_LOAD_TYPE_4 0x400cc
  2373. #define PRS_REG_CM_HDR_FLUSH_NO_LOAD_TYPE_5 0x400d0
  2374. /* [RW 32] The CM header for a match and packet type 1 for loopback port.
  2375. Used in packet start message to TCM. */
  2376. #define PRS_REG_CM_HDR_LOOPBACK_TYPE_1 0x4009c
  2377. #define PRS_REG_CM_HDR_LOOPBACK_TYPE_2 0x400a0
  2378. #define PRS_REG_CM_HDR_LOOPBACK_TYPE_3 0x400a4
  2379. #define PRS_REG_CM_HDR_LOOPBACK_TYPE_4 0x400a8
  2380. /* [RW 32] The CM header for a match and packet type 0. Used in packet start
  2381. message to TCM. */
  2382. #define PRS_REG_CM_HDR_TYPE_0 0x40078
  2383. #define PRS_REG_CM_HDR_TYPE_1 0x4007c
  2384. #define PRS_REG_CM_HDR_TYPE_2 0x40080
  2385. #define PRS_REG_CM_HDR_TYPE_3 0x40084
  2386. #define PRS_REG_CM_HDR_TYPE_4 0x40088
  2387. /* [RW 32] The CM header in case there was not a match on the connection */
  2388. #define PRS_REG_CM_NO_MATCH_HDR 0x400b8
  2389. /* [RW 1] Indicates if in e1hov mode. 0=non-e1hov mode; 1=e1hov mode. */
  2390. #define PRS_REG_E1HOV_MODE 0x401c8
  2391. /* [RW 8] The 8-bit event ID for a match and packet type 1. Used in packet
  2392. start message to TCM. */
  2393. #define PRS_REG_EVENT_ID_1 0x40054
  2394. #define PRS_REG_EVENT_ID_2 0x40058
  2395. #define PRS_REG_EVENT_ID_3 0x4005c
  2396. /* [RW 16] The Ethernet type value for FCoE */
  2397. #define PRS_REG_FCOE_TYPE 0x401d0
  2398. /* [RW 8] Context region for flush packet with packet type 0. Used in CFC
  2399. load request message. */
  2400. #define PRS_REG_FLUSH_REGIONS_TYPE_0 0x40004
  2401. #define PRS_REG_FLUSH_REGIONS_TYPE_1 0x40008
  2402. #define PRS_REG_FLUSH_REGIONS_TYPE_2 0x4000c
  2403. #define PRS_REG_FLUSH_REGIONS_TYPE_3 0x40010
  2404. #define PRS_REG_FLUSH_REGIONS_TYPE_4 0x40014
  2405. #define PRS_REG_FLUSH_REGIONS_TYPE_5 0x40018
  2406. #define PRS_REG_FLUSH_REGIONS_TYPE_6 0x4001c
  2407. #define PRS_REG_FLUSH_REGIONS_TYPE_7 0x40020
  2408. /* [RW 6] Bit-map indicating which L2 hdrs may appear after the basic
  2409. * Ethernet header. */
  2410. #define PRS_REG_HDRS_AFTER_BASIC 0x40238
  2411. /* [RW 4] The increment value to send in the CFC load request message */
  2412. #define PRS_REG_INC_VALUE 0x40048
  2413. /* [RW 6] Bit-map indicating which headers must appear in the packet */
  2414. #define PRS_REG_MUST_HAVE_HDRS 0x40254
  2415. #define PRS_REG_NIC_MODE 0x40138
  2416. /* [RW 8] The 8-bit event ID for cases where there is no match on the
  2417. connection. Used in packet start message to TCM. */
  2418. #define PRS_REG_NO_MATCH_EVENT_ID 0x40070
  2419. /* [ST 24] The number of input CFC flush packets */
  2420. #define PRS_REG_NUM_OF_CFC_FLUSH_MESSAGES 0x40128
  2421. /* [ST 32] The number of cycles the Parser halted its operation since it
  2422. could not allocate the next serial number */
  2423. #define PRS_REG_NUM_OF_DEAD_CYCLES 0x40130
  2424. /* [ST 24] The number of input packets */
  2425. #define PRS_REG_NUM_OF_PACKETS 0x40124
  2426. /* [ST 24] The number of input transparent flush packets */
  2427. #define PRS_REG_NUM_OF_TRANSPARENT_FLUSH_MESSAGES 0x4012c
  2428. /* [RW 8] Context region for received Ethernet packet with a match and
  2429. packet type 0. Used in CFC load request message */
  2430. #define PRS_REG_PACKET_REGIONS_TYPE_0 0x40028
  2431. #define PRS_REG_PACKET_REGIONS_TYPE_1 0x4002c
  2432. #define PRS_REG_PACKET_REGIONS_TYPE_2 0x40030
  2433. #define PRS_REG_PACKET_REGIONS_TYPE_3 0x40034
  2434. #define PRS_REG_PACKET_REGIONS_TYPE_4 0x40038
  2435. #define PRS_REG_PACKET_REGIONS_TYPE_5 0x4003c
  2436. #define PRS_REG_PACKET_REGIONS_TYPE_6 0x40040
  2437. #define PRS_REG_PACKET_REGIONS_TYPE_7 0x40044
  2438. /* [R 2] debug only: Number of pending requests for CAC on port 0. */
  2439. #define PRS_REG_PENDING_BRB_CAC0_RQ 0x40174
  2440. /* [R 2] debug only: Number of pending requests for header parsing. */
  2441. #define PRS_REG_PENDING_BRB_PRS_RQ 0x40170
  2442. /* [R 1] Interrupt register #0 read */
  2443. #define PRS_REG_PRS_INT_STS 0x40188
  2444. /* [RW 8] Parity mask register #0 read/write */
  2445. #define PRS_REG_PRS_PRTY_MASK 0x401a4
  2446. /* [R 8] Parity register #0 read */
  2447. #define PRS_REG_PRS_PRTY_STS 0x40198
  2448. /* [RW 8] Context region for pure acknowledge packets. Used in CFC load
  2449. request message */
  2450. #define PRS_REG_PURE_REGIONS 0x40024
  2451. /* [R 32] debug only: Serial number status lsb 32 bits. '1' indicates this
  2452. serail number was released by SDM but cannot be used because a previous
  2453. serial number was not released. */
  2454. #define PRS_REG_SERIAL_NUM_STATUS_LSB 0x40154
  2455. /* [R 32] debug only: Serial number status msb 32 bits. '1' indicates this
  2456. serail number was released by SDM but cannot be used because a previous
  2457. serial number was not released. */
  2458. #define PRS_REG_SERIAL_NUM_STATUS_MSB 0x40158
  2459. /* [R 4] debug only: SRC current credit. Transaction based. */
  2460. #define PRS_REG_SRC_CURRENT_CREDIT 0x4016c
  2461. /* [R 8] debug only: TCM current credit. Cycle based. */
  2462. #define PRS_REG_TCM_CURRENT_CREDIT 0x40160
  2463. /* [R 8] debug only: TSDM current credit. Transaction based. */
  2464. #define PRS_REG_TSDM_CURRENT_CREDIT 0x4015c
  2465. #define PXP2_PXP2_INT_MASK_0_REG_PGL_CPL_AFT (0x1<<19)
  2466. #define PXP2_PXP2_INT_MASK_0_REG_PGL_CPL_OF (0x1<<20)
  2467. #define PXP2_PXP2_INT_MASK_0_REG_PGL_PCIE_ATTN (0x1<<22)
  2468. #define PXP2_PXP2_INT_MASK_0_REG_PGL_READ_BLOCKED (0x1<<23)
  2469. #define PXP2_PXP2_INT_MASK_0_REG_PGL_WRITE_BLOCKED (0x1<<24)
  2470. #define PXP2_PXP2_INT_STS_0_REG_WR_PGLUE_EOP_ERROR (0x1<<7)
  2471. #define PXP2_PXP2_INT_STS_CLR_0_REG_WR_PGLUE_EOP_ERROR (0x1<<7)
  2472. /* [R 6] Debug only: Number of used entries in the data FIFO */
  2473. #define PXP2_REG_HST_DATA_FIFO_STATUS 0x12047c
  2474. /* [R 7] Debug only: Number of used entries in the header FIFO */
  2475. #define PXP2_REG_HST_HEADER_FIFO_STATUS 0x120478
  2476. #define PXP2_REG_PGL_ADDR_88_F0 0x120534
  2477. #define PXP2_REG_PGL_ADDR_8C_F0 0x120538
  2478. #define PXP2_REG_PGL_ADDR_90_F0 0x12053c
  2479. #define PXP2_REG_PGL_ADDR_94_F0 0x120540
  2480. #define PXP2_REG_PGL_CONTROL0 0x120490
  2481. #define PXP2_REG_PGL_CONTROL1 0x120514
  2482. #define PXP2_REG_PGL_DEBUG 0x120520
  2483. /* [RW 32] third dword data of expansion rom request. this register is
  2484. special. reading from it provides a vector outstanding read requests. if
  2485. a bit is zero it means that a read request on the corresponding tag did
  2486. not finish yet (not all completions have arrived for it) */
  2487. #define PXP2_REG_PGL_EXP_ROM2 0x120808
  2488. /* [RW 32] Inbound interrupt table for CSDM: bits[31:16]-mask;
  2489. its[15:0]-address */
  2490. #define PXP2_REG_PGL_INT_CSDM_0 0x1204f4
  2491. #define PXP2_REG_PGL_INT_CSDM_1 0x1204f8
  2492. #define PXP2_REG_PGL_INT_CSDM_2 0x1204fc
  2493. #define PXP2_REG_PGL_INT_CSDM_3 0x120500
  2494. #define PXP2_REG_PGL_INT_CSDM_4 0x120504
  2495. #define PXP2_REG_PGL_INT_CSDM_5 0x120508
  2496. #define PXP2_REG_PGL_INT_CSDM_6 0x12050c
  2497. #define PXP2_REG_PGL_INT_CSDM_7 0x120510
  2498. /* [RW 32] Inbound interrupt table for TSDM: bits[31:16]-mask;
  2499. its[15:0]-address */
  2500. #define PXP2_REG_PGL_INT_TSDM_0 0x120494
  2501. #define PXP2_REG_PGL_INT_TSDM_1 0x120498
  2502. #define PXP2_REG_PGL_INT_TSDM_2 0x12049c
  2503. #define PXP2_REG_PGL_INT_TSDM_3 0x1204a0
  2504. #define PXP2_REG_PGL_INT_TSDM_4 0x1204a4
  2505. #define PXP2_REG_PGL_INT_TSDM_5 0x1204a8
  2506. #define PXP2_REG_PGL_INT_TSDM_6 0x1204ac
  2507. #define PXP2_REG_PGL_INT_TSDM_7 0x1204b0
  2508. /* [RW 32] Inbound interrupt table for USDM: bits[31:16]-mask;
  2509. its[15:0]-address */
  2510. #define PXP2_REG_PGL_INT_USDM_0 0x1204b4
  2511. #define PXP2_REG_PGL_INT_USDM_1 0x1204b8
  2512. #define PXP2_REG_PGL_INT_USDM_2 0x1204bc
  2513. #define PXP2_REG_PGL_INT_USDM_3 0x1204c0
  2514. #define PXP2_REG_PGL_INT_USDM_4 0x1204c4
  2515. #define PXP2_REG_PGL_INT_USDM_5 0x1204c8
  2516. #define PXP2_REG_PGL_INT_USDM_6 0x1204cc
  2517. #define PXP2_REG_PGL_INT_USDM_7 0x1204d0
  2518. /* [RW 32] Inbound interrupt table for XSDM: bits[31:16]-mask;
  2519. its[15:0]-address */
  2520. #define PXP2_REG_PGL_INT_XSDM_0 0x1204d4
  2521. #define PXP2_REG_PGL_INT_XSDM_1 0x1204d8
  2522. #define PXP2_REG_PGL_INT_XSDM_2 0x1204dc
  2523. #define PXP2_REG_PGL_INT_XSDM_3 0x1204e0
  2524. #define PXP2_REG_PGL_INT_XSDM_4 0x1204e4
  2525. #define PXP2_REG_PGL_INT_XSDM_5 0x1204e8
  2526. #define PXP2_REG_PGL_INT_XSDM_6 0x1204ec
  2527. #define PXP2_REG_PGL_INT_XSDM_7 0x1204f0
  2528. /* [RW 3] this field allows one function to pretend being another function
  2529. when accessing any BAR mapped resource within the device. the value of
  2530. the field is the number of the function that will be accessed
  2531. effectively. after software write to this bit it must read it in order to
  2532. know that the new value is updated */
  2533. #define PXP2_REG_PGL_PRETEND_FUNC_F0 0x120674
  2534. #define PXP2_REG_PGL_PRETEND_FUNC_F1 0x120678
  2535. #define PXP2_REG_PGL_PRETEND_FUNC_F2 0x12067c
  2536. #define PXP2_REG_PGL_PRETEND_FUNC_F3 0x120680
  2537. #define PXP2_REG_PGL_PRETEND_FUNC_F4 0x120684
  2538. #define PXP2_REG_PGL_PRETEND_FUNC_F5 0x120688
  2539. #define PXP2_REG_PGL_PRETEND_FUNC_F6 0x12068c
  2540. #define PXP2_REG_PGL_PRETEND_FUNC_F7 0x120690
  2541. /* [R 1] this bit indicates that a read request was blocked because of
  2542. bus_master_en was deasserted */
  2543. #define PXP2_REG_PGL_READ_BLOCKED 0x120568
  2544. #define PXP2_REG_PGL_TAGS_LIMIT 0x1205a8
  2545. /* [R 18] debug only */
  2546. #define PXP2_REG_PGL_TXW_CDTS 0x12052c
  2547. /* [R 1] this bit indicates that a write request was blocked because of
  2548. bus_master_en was deasserted */
  2549. #define PXP2_REG_PGL_WRITE_BLOCKED 0x120564
  2550. #define PXP2_REG_PSWRQ_BW_ADD1 0x1201c0
  2551. #define PXP2_REG_PSWRQ_BW_ADD10 0x1201e4
  2552. #define PXP2_REG_PSWRQ_BW_ADD11 0x1201e8
  2553. #define PXP2_REG_PSWRQ_BW_ADD2 0x1201c4
  2554. #define PXP2_REG_PSWRQ_BW_ADD28 0x120228
  2555. #define PXP2_REG_PSWRQ_BW_ADD3 0x1201c8
  2556. #define PXP2_REG_PSWRQ_BW_ADD6 0x1201d4
  2557. #define PXP2_REG_PSWRQ_BW_ADD7 0x1201d8
  2558. #define PXP2_REG_PSWRQ_BW_ADD8 0x1201dc
  2559. #define PXP2_REG_PSWRQ_BW_ADD9 0x1201e0
  2560. #define PXP2_REG_PSWRQ_BW_CREDIT 0x12032c
  2561. #define PXP2_REG_PSWRQ_BW_L1 0x1202b0
  2562. #define PXP2_REG_PSWRQ_BW_L10 0x1202d4
  2563. #define PXP2_REG_PSWRQ_BW_L11 0x1202d8
  2564. #define PXP2_REG_PSWRQ_BW_L2 0x1202b4
  2565. #define PXP2_REG_PSWRQ_BW_L28 0x120318
  2566. #define PXP2_REG_PSWRQ_BW_L3 0x1202b8
  2567. #define PXP2_REG_PSWRQ_BW_L6 0x1202c4
  2568. #define PXP2_REG_PSWRQ_BW_L7 0x1202c8
  2569. #define PXP2_REG_PSWRQ_BW_L8 0x1202cc
  2570. #define PXP2_REG_PSWRQ_BW_L9 0x1202d0
  2571. #define PXP2_REG_PSWRQ_BW_RD 0x120324
  2572. #define PXP2_REG_PSWRQ_BW_UB1 0x120238
  2573. #define PXP2_REG_PSWRQ_BW_UB10 0x12025c
  2574. #define PXP2_REG_PSWRQ_BW_UB11 0x120260
  2575. #define PXP2_REG_PSWRQ_BW_UB2 0x12023c
  2576. #define PXP2_REG_PSWRQ_BW_UB28 0x1202a0
  2577. #define PXP2_REG_PSWRQ_BW_UB3 0x120240
  2578. #define PXP2_REG_PSWRQ_BW_UB6 0x12024c
  2579. #define PXP2_REG_PSWRQ_BW_UB7 0x120250
  2580. #define PXP2_REG_PSWRQ_BW_UB8 0x120254
  2581. #define PXP2_REG_PSWRQ_BW_UB9 0x120258
  2582. #define PXP2_REG_PSWRQ_BW_WR 0x120328
  2583. #define PXP2_REG_PSWRQ_CDU0_L2P 0x120000
  2584. #define PXP2_REG_PSWRQ_QM0_L2P 0x120038
  2585. #define PXP2_REG_PSWRQ_SRC0_L2P 0x120054
  2586. #define PXP2_REG_PSWRQ_TM0_L2P 0x12001c
  2587. #define PXP2_REG_PSWRQ_TSDM0_L2P 0x1200e0
  2588. /* [RW 32] Interrupt mask register #0 read/write */
  2589. #define PXP2_REG_PXP2_INT_MASK_0 0x120578
  2590. /* [R 32] Interrupt register #0 read */
  2591. #define PXP2_REG_PXP2_INT_STS_0 0x12056c
  2592. #define PXP2_REG_PXP2_INT_STS_1 0x120608
  2593. /* [RC 32] Interrupt register #0 read clear */
  2594. #define PXP2_REG_PXP2_INT_STS_CLR_0 0x120570
  2595. /* [RW 32] Parity mask register #0 read/write */
  2596. #define PXP2_REG_PXP2_PRTY_MASK_0 0x120588
  2597. #define PXP2_REG_PXP2_PRTY_MASK_1 0x120598
  2598. /* [R 32] Parity register #0 read */
  2599. #define PXP2_REG_PXP2_PRTY_STS_0 0x12057c
  2600. #define PXP2_REG_PXP2_PRTY_STS_1 0x12058c
  2601. /* [R 1] Debug only: The 'almost full' indication from each fifo (gives
  2602. indication about backpressure) */
  2603. #define PXP2_REG_RD_ALMOST_FULL_0 0x120424
  2604. /* [R 8] Debug only: The blocks counter - number of unused block ids */
  2605. #define PXP2_REG_RD_BLK_CNT 0x120418
  2606. /* [RW 8] Debug only: Total number of available blocks in Tetris Buffer.
  2607. Must be bigger than 6. Normally should not be changed. */
  2608. #define PXP2_REG_RD_BLK_NUM_CFG 0x12040c
  2609. /* [RW 2] CDU byte swapping mode configuration for master read requests */
  2610. #define PXP2_REG_RD_CDURD_SWAP_MODE 0x120404
  2611. /* [RW 1] When '1'; inputs to the PSWRD block are ignored */
  2612. #define PXP2_REG_RD_DISABLE_INPUTS 0x120374
  2613. /* [R 1] PSWRD internal memories initialization is done */
  2614. #define PXP2_REG_RD_INIT_DONE 0x120370
  2615. /* [RW 8] The maximum number of blocks in Tetris Buffer that can be
  2616. allocated for vq10 */
  2617. #define PXP2_REG_RD_MAX_BLKS_VQ10 0x1203a0
  2618. /* [RW 8] The maximum number of blocks in Tetris Buffer that can be
  2619. allocated for vq11 */
  2620. #define PXP2_REG_RD_MAX_BLKS_VQ11 0x1203a4
  2621. /* [RW 8] The maximum number of blocks in Tetris Buffer that can be
  2622. allocated for vq17 */
  2623. #define PXP2_REG_RD_MAX_BLKS_VQ17 0x1203bc
  2624. /* [RW 8] The maximum number of blocks in Tetris Buffer that can be
  2625. allocated for vq18 */
  2626. #define PXP2_REG_RD_MAX_BLKS_VQ18 0x1203c0
  2627. /* [RW 8] The maximum number of blocks in Tetris Buffer that can be
  2628. allocated for vq19 */
  2629. #define PXP2_REG_RD_MAX_BLKS_VQ19 0x1203c4
  2630. /* [RW 8] The maximum number of blocks in Tetris Buffer that can be
  2631. allocated for vq22 */
  2632. #define PXP2_REG_RD_MAX_BLKS_VQ22 0x1203d0
  2633. /* [RW 8] The maximum number of blocks in Tetris Buffer that can be
  2634. allocated for vq25 */
  2635. #define PXP2_REG_RD_MAX_BLKS_VQ25 0x1203dc
  2636. /* [RW 8] The maximum number of blocks in Tetris Buffer that can be
  2637. allocated for vq6 */
  2638. #define PXP2_REG_RD_MAX_BLKS_VQ6 0x120390
  2639. /* [RW 8] The maximum number of blocks in Tetris Buffer that can be
  2640. allocated for vq9 */
  2641. #define PXP2_REG_RD_MAX_BLKS_VQ9 0x12039c
  2642. /* [RW 2] PBF byte swapping mode configuration for master read requests */
  2643. #define PXP2_REG_RD_PBF_SWAP_MODE 0x1203f4
  2644. /* [R 1] Debug only: Indication if delivery ports are idle */
  2645. #define PXP2_REG_RD_PORT_IS_IDLE_0 0x12041c
  2646. #define PXP2_REG_RD_PORT_IS_IDLE_1 0x120420
  2647. /* [RW 2] QM byte swapping mode configuration for master read requests */
  2648. #define PXP2_REG_RD_QM_SWAP_MODE 0x1203f8
  2649. /* [R 7] Debug only: The SR counter - number of unused sub request ids */
  2650. #define PXP2_REG_RD_SR_CNT 0x120414
  2651. /* [RW 2] SRC byte swapping mode configuration for master read requests */
  2652. #define PXP2_REG_RD_SRC_SWAP_MODE 0x120400
  2653. /* [RW 7] Debug only: Total number of available PCI read sub-requests. Must
  2654. be bigger than 1. Normally should not be changed. */
  2655. #define PXP2_REG_RD_SR_NUM_CFG 0x120408
  2656. /* [RW 1] Signals the PSWRD block to start initializing internal memories */
  2657. #define PXP2_REG_RD_START_INIT 0x12036c
  2658. /* [RW 2] TM byte swapping mode configuration for master read requests */
  2659. #define PXP2_REG_RD_TM_SWAP_MODE 0x1203fc
  2660. /* [RW 10] Bandwidth addition to VQ0 write requests */
  2661. #define PXP2_REG_RQ_BW_RD_ADD0 0x1201bc
  2662. /* [RW 10] Bandwidth addition to VQ12 read requests */
  2663. #define PXP2_REG_RQ_BW_RD_ADD12 0x1201ec
  2664. /* [RW 10] Bandwidth addition to VQ13 read requests */
  2665. #define PXP2_REG_RQ_BW_RD_ADD13 0x1201f0
  2666. /* [RW 10] Bandwidth addition to VQ14 read requests */
  2667. #define PXP2_REG_RQ_BW_RD_ADD14 0x1201f4
  2668. /* [RW 10] Bandwidth addition to VQ15 read requests */
  2669. #define PXP2_REG_RQ_BW_RD_ADD15 0x1201f8
  2670. /* [RW 10] Bandwidth addition to VQ16 read requests */
  2671. #define PXP2_REG_RQ_BW_RD_ADD16 0x1201fc
  2672. /* [RW 10] Bandwidth addition to VQ17 read requests */
  2673. #define PXP2_REG_RQ_BW_RD_ADD17 0x120200
  2674. /* [RW 10] Bandwidth addition to VQ18 read requests */
  2675. #define PXP2_REG_RQ_BW_RD_ADD18 0x120204
  2676. /* [RW 10] Bandwidth addition to VQ19 read requests */
  2677. #define PXP2_REG_RQ_BW_RD_ADD19 0x120208
  2678. /* [RW 10] Bandwidth addition to VQ20 read requests */
  2679. #define PXP2_REG_RQ_BW_RD_ADD20 0x12020c
  2680. /* [RW 10] Bandwidth addition to VQ22 read requests */
  2681. #define PXP2_REG_RQ_BW_RD_ADD22 0x120210
  2682. /* [RW 10] Bandwidth addition to VQ23 read requests */
  2683. #define PXP2_REG_RQ_BW_RD_ADD23 0x120214
  2684. /* [RW 10] Bandwidth addition to VQ24 read requests */
  2685. #define PXP2_REG_RQ_BW_RD_ADD24 0x120218
  2686. /* [RW 10] Bandwidth addition to VQ25 read requests */
  2687. #define PXP2_REG_RQ_BW_RD_ADD25 0x12021c
  2688. /* [RW 10] Bandwidth addition to VQ26 read requests */
  2689. #define PXP2_REG_RQ_BW_RD_ADD26 0x120220
  2690. /* [RW 10] Bandwidth addition to VQ27 read requests */
  2691. #define PXP2_REG_RQ_BW_RD_ADD27 0x120224
  2692. /* [RW 10] Bandwidth addition to VQ4 read requests */
  2693. #define PXP2_REG_RQ_BW_RD_ADD4 0x1201cc
  2694. /* [RW 10] Bandwidth addition to VQ5 read requests */
  2695. #define PXP2_REG_RQ_BW_RD_ADD5 0x1201d0
  2696. /* [RW 10] Bandwidth Typical L for VQ0 Read requests */
  2697. #define PXP2_REG_RQ_BW_RD_L0 0x1202ac
  2698. /* [RW 10] Bandwidth Typical L for VQ12 Read requests */
  2699. #define PXP2_REG_RQ_BW_RD_L12 0x1202dc
  2700. /* [RW 10] Bandwidth Typical L for VQ13 Read requests */
  2701. #define PXP2_REG_RQ_BW_RD_L13 0x1202e0
  2702. /* [RW 10] Bandwidth Typical L for VQ14 Read requests */
  2703. #define PXP2_REG_RQ_BW_RD_L14 0x1202e4
  2704. /* [RW 10] Bandwidth Typical L for VQ15 Read requests */
  2705. #define PXP2_REG_RQ_BW_RD_L15 0x1202e8
  2706. /* [RW 10] Bandwidth Typical L for VQ16 Read requests */
  2707. #define PXP2_REG_RQ_BW_RD_L16 0x1202ec
  2708. /* [RW 10] Bandwidth Typical L for VQ17 Read requests */
  2709. #define PXP2_REG_RQ_BW_RD_L17 0x1202f0
  2710. /* [RW 10] Bandwidth Typical L for VQ18 Read requests */
  2711. #define PXP2_REG_RQ_BW_RD_L18 0x1202f4
  2712. /* [RW 10] Bandwidth Typical L for VQ19 Read requests */
  2713. #define PXP2_REG_RQ_BW_RD_L19 0x1202f8
  2714. /* [RW 10] Bandwidth Typical L for VQ20 Read requests */
  2715. #define PXP2_REG_RQ_BW_RD_L20 0x1202fc
  2716. /* [RW 10] Bandwidth Typical L for VQ22 Read requests */
  2717. #define PXP2_REG_RQ_BW_RD_L22 0x120300
  2718. /* [RW 10] Bandwidth Typical L for VQ23 Read requests */
  2719. #define PXP2_REG_RQ_BW_RD_L23 0x120304
  2720. /* [RW 10] Bandwidth Typical L for VQ24 Read requests */
  2721. #define PXP2_REG_RQ_BW_RD_L24 0x120308
  2722. /* [RW 10] Bandwidth Typical L for VQ25 Read requests */
  2723. #define PXP2_REG_RQ_BW_RD_L25 0x12030c
  2724. /* [RW 10] Bandwidth Typical L for VQ26 Read requests */
  2725. #define PXP2_REG_RQ_BW_RD_L26 0x120310
  2726. /* [RW 10] Bandwidth Typical L for VQ27 Read requests */
  2727. #define PXP2_REG_RQ_BW_RD_L27 0x120314
  2728. /* [RW 10] Bandwidth Typical L for VQ4 Read requests */
  2729. #define PXP2_REG_RQ_BW_RD_L4 0x1202bc
  2730. /* [RW 10] Bandwidth Typical L for VQ5 Read- currently not used */
  2731. #define PXP2_REG_RQ_BW_RD_L5 0x1202c0
  2732. /* [RW 7] Bandwidth upper bound for VQ0 read requests */
  2733. #define PXP2_REG_RQ_BW_RD_UBOUND0 0x120234
  2734. /* [RW 7] Bandwidth upper bound for VQ12 read requests */
  2735. #define PXP2_REG_RQ_BW_RD_UBOUND12 0x120264
  2736. /* [RW 7] Bandwidth upper bound for VQ13 read requests */
  2737. #define PXP2_REG_RQ_BW_RD_UBOUND13 0x120268
  2738. /* [RW 7] Bandwidth upper bound for VQ14 read requests */
  2739. #define PXP2_REG_RQ_BW_RD_UBOUND14 0x12026c
  2740. /* [RW 7] Bandwidth upper bound for VQ15 read requests */
  2741. #define PXP2_REG_RQ_BW_RD_UBOUND15 0x120270
  2742. /* [RW 7] Bandwidth upper bound for VQ16 read requests */
  2743. #define PXP2_REG_RQ_BW_RD_UBOUND16 0x120274
  2744. /* [RW 7] Bandwidth upper bound for VQ17 read requests */
  2745. #define PXP2_REG_RQ_BW_RD_UBOUND17 0x120278
  2746. /* [RW 7] Bandwidth upper bound for VQ18 read requests */
  2747. #define PXP2_REG_RQ_BW_RD_UBOUND18 0x12027c
  2748. /* [RW 7] Bandwidth upper bound for VQ19 read requests */
  2749. #define PXP2_REG_RQ_BW_RD_UBOUND19 0x120280
  2750. /* [RW 7] Bandwidth upper bound for VQ20 read requests */
  2751. #define PXP2_REG_RQ_BW_RD_UBOUND20 0x120284
  2752. /* [RW 7] Bandwidth upper bound for VQ22 read requests */
  2753. #define PXP2_REG_RQ_BW_RD_UBOUND22 0x120288
  2754. /* [RW 7] Bandwidth upper bound for VQ23 read requests */
  2755. #define PXP2_REG_RQ_BW_RD_UBOUND23 0x12028c
  2756. /* [RW 7] Bandwidth upper bound for VQ24 read requests */
  2757. #define PXP2_REG_RQ_BW_RD_UBOUND24 0x120290
  2758. /* [RW 7] Bandwidth upper bound for VQ25 read requests */
  2759. #define PXP2_REG_RQ_BW_RD_UBOUND25 0x120294
  2760. /* [RW 7] Bandwidth upper bound for VQ26 read requests */
  2761. #define PXP2_REG_RQ_BW_RD_UBOUND26 0x120298
  2762. /* [RW 7] Bandwidth upper bound for VQ27 read requests */
  2763. #define PXP2_REG_RQ_BW_RD_UBOUND27 0x12029c
  2764. /* [RW 7] Bandwidth upper bound for VQ4 read requests */
  2765. #define PXP2_REG_RQ_BW_RD_UBOUND4 0x120244
  2766. /* [RW 7] Bandwidth upper bound for VQ5 read requests */
  2767. #define PXP2_REG_RQ_BW_RD_UBOUND5 0x120248
  2768. /* [RW 10] Bandwidth addition to VQ29 write requests */
  2769. #define PXP2_REG_RQ_BW_WR_ADD29 0x12022c
  2770. /* [RW 10] Bandwidth addition to VQ30 write requests */
  2771. #define PXP2_REG_RQ_BW_WR_ADD30 0x120230
  2772. /* [RW 10] Bandwidth Typical L for VQ29 Write requests */
  2773. #define PXP2_REG_RQ_BW_WR_L29 0x12031c
  2774. /* [RW 10] Bandwidth Typical L for VQ30 Write requests */
  2775. #define PXP2_REG_RQ_BW_WR_L30 0x120320
  2776. /* [RW 7] Bandwidth upper bound for VQ29 */
  2777. #define PXP2_REG_RQ_BW_WR_UBOUND29 0x1202a4
  2778. /* [RW 7] Bandwidth upper bound for VQ30 */
  2779. #define PXP2_REG_RQ_BW_WR_UBOUND30 0x1202a8
  2780. /* [RW 18] external first_mem_addr field in L2P table for CDU module port 0 */
  2781. #define PXP2_REG_RQ_CDU0_EFIRST_MEM_ADDR 0x120008
  2782. /* [RW 2] Endian mode for cdu */
  2783. #define PXP2_REG_RQ_CDU_ENDIAN_M 0x1201a0
  2784. #define PXP2_REG_RQ_CDU_FIRST_ILT 0x12061c
  2785. #define PXP2_REG_RQ_CDU_LAST_ILT 0x120620
  2786. /* [RW 3] page size in L2P table for CDU module; -4k; -8k; -16k; -32k; -64k;
  2787. -128k */
  2788. #define PXP2_REG_RQ_CDU_P_SIZE 0x120018
  2789. /* [R 1] 1' indicates that the requester has finished its internal
  2790. configuration */
  2791. #define PXP2_REG_RQ_CFG_DONE 0x1201b4
  2792. /* [RW 2] Endian mode for debug */
  2793. #define PXP2_REG_RQ_DBG_ENDIAN_M 0x1201a4
  2794. /* [RW 1] When '1'; requests will enter input buffers but wont get out
  2795. towards the glue */
  2796. #define PXP2_REG_RQ_DISABLE_INPUTS 0x120330
  2797. /* [RW 4] Determines alignment of write SRs when a request is split into
  2798. * several SRs. 0 - 8B aligned. 1 - 64B aligned. 2 - 128B aligned. 3 - 256B
  2799. * aligned. 4 - 512B aligned. */
  2800. #define PXP2_REG_RQ_DRAM_ALIGN 0x1205b0
  2801. /* [RW 4] Determines alignment of read SRs when a request is split into
  2802. * several SRs. 0 - 8B aligned. 1 - 64B aligned. 2 - 128B aligned. 3 - 256B
  2803. * aligned. 4 - 512B aligned. */
  2804. #define PXP2_REG_RQ_DRAM_ALIGN_RD 0x12092c
  2805. /* [RW 1] when set the new alignment method (E2) will be applied; when reset
  2806. * the original alignment method (E1 E1H) will be applied */
  2807. #define PXP2_REG_RQ_DRAM_ALIGN_SEL 0x120930
  2808. /* [RW 1] If 1 ILT failiue will not result in ELT access; An interrupt will
  2809. be asserted */
  2810. #define PXP2_REG_RQ_ELT_DISABLE 0x12066c
  2811. /* [RW 2] Endian mode for hc */
  2812. #define PXP2_REG_RQ_HC_ENDIAN_M 0x1201a8
  2813. /* [RW 1] when '0' ILT logic will work as in A0; otherwise B0; for back
  2814. compatibility needs; Note that different registers are used per mode */
  2815. #define PXP2_REG_RQ_ILT_MODE 0x1205b4
  2816. /* [WB 53] Onchip address table */
  2817. #define PXP2_REG_RQ_ONCHIP_AT 0x122000
  2818. /* [WB 53] Onchip address table - B0 */
  2819. #define PXP2_REG_RQ_ONCHIP_AT_B0 0x128000
  2820. /* [RW 13] Pending read limiter threshold; in Dwords */
  2821. #define PXP2_REG_RQ_PDR_LIMIT 0x12033c
  2822. /* [RW 2] Endian mode for qm */
  2823. #define PXP2_REG_RQ_QM_ENDIAN_M 0x120194
  2824. #define PXP2_REG_RQ_QM_FIRST_ILT 0x120634
  2825. #define PXP2_REG_RQ_QM_LAST_ILT 0x120638
  2826. /* [RW 3] page size in L2P table for QM module; -4k; -8k; -16k; -32k; -64k;
  2827. -128k */
  2828. #define PXP2_REG_RQ_QM_P_SIZE 0x120050
  2829. /* [RW 1] 1' indicates that the RBC has finished configuring the PSWRQ */
  2830. #define PXP2_REG_RQ_RBC_DONE 0x1201b0
  2831. /* [RW 3] Max burst size filed for read requests port 0; 000 - 128B;
  2832. 001:256B; 010: 512B; 11:1K:100:2K; 01:4K */
  2833. #define PXP2_REG_RQ_RD_MBS0 0x120160
  2834. /* [RW 3] Max burst size filed for read requests port 1; 000 - 128B;
  2835. 001:256B; 010: 512B; 11:1K:100:2K; 01:4K */
  2836. #define PXP2_REG_RQ_RD_MBS1 0x120168
  2837. /* [RW 2] Endian mode for src */
  2838. #define PXP2_REG_RQ_SRC_ENDIAN_M 0x12019c
  2839. #define PXP2_REG_RQ_SRC_FIRST_ILT 0x12063c
  2840. #define PXP2_REG_RQ_SRC_LAST_ILT 0x120640
  2841. /* [RW 3] page size in L2P table for SRC module; -4k; -8k; -16k; -32k; -64k;
  2842. -128k */
  2843. #define PXP2_REG_RQ_SRC_P_SIZE 0x12006c
  2844. /* [RW 2] Endian mode for tm */
  2845. #define PXP2_REG_RQ_TM_ENDIAN_M 0x120198
  2846. #define PXP2_REG_RQ_TM_FIRST_ILT 0x120644
  2847. #define PXP2_REG_RQ_TM_LAST_ILT 0x120648
  2848. /* [RW 3] page size in L2P table for TM module; -4k; -8k; -16k; -32k; -64k;
  2849. -128k */
  2850. #define PXP2_REG_RQ_TM_P_SIZE 0x120034
  2851. /* [R 5] Number of entries in the ufifo; his fifo has l2p completions */
  2852. #define PXP2_REG_RQ_UFIFO_NUM_OF_ENTRY 0x12080c
  2853. /* [RW 18] external first_mem_addr field in L2P table for USDM module port 0 */
  2854. #define PXP2_REG_RQ_USDM0_EFIRST_MEM_ADDR 0x120094
  2855. /* [R 8] Number of entries occupied by vq 0 in pswrq memory */
  2856. #define PXP2_REG_RQ_VQ0_ENTRY_CNT 0x120810
  2857. /* [R 8] Number of entries occupied by vq 10 in pswrq memory */
  2858. #define PXP2_REG_RQ_VQ10_ENTRY_CNT 0x120818
  2859. /* [R 8] Number of entries occupied by vq 11 in pswrq memory */
  2860. #define PXP2_REG_RQ_VQ11_ENTRY_CNT 0x120820
  2861. /* [R 8] Number of entries occupied by vq 12 in pswrq memory */
  2862. #define PXP2_REG_RQ_VQ12_ENTRY_CNT 0x120828
  2863. /* [R 8] Number of entries occupied by vq 13 in pswrq memory */
  2864. #define PXP2_REG_RQ_VQ13_ENTRY_CNT 0x120830
  2865. /* [R 8] Number of entries occupied by vq 14 in pswrq memory */
  2866. #define PXP2_REG_RQ_VQ14_ENTRY_CNT 0x120838
  2867. /* [R 8] Number of entries occupied by vq 15 in pswrq memory */
  2868. #define PXP2_REG_RQ_VQ15_ENTRY_CNT 0x120840
  2869. /* [R 8] Number of entries occupied by vq 16 in pswrq memory */
  2870. #define PXP2_REG_RQ_VQ16_ENTRY_CNT 0x120848
  2871. /* [R 8] Number of entries occupied by vq 17 in pswrq memory */
  2872. #define PXP2_REG_RQ_VQ17_ENTRY_CNT 0x120850
  2873. /* [R 8] Number of entries occupied by vq 18 in pswrq memory */
  2874. #define PXP2_REG_RQ_VQ18_ENTRY_CNT 0x120858
  2875. /* [R 8] Number of entries occupied by vq 19 in pswrq memory */
  2876. #define PXP2_REG_RQ_VQ19_ENTRY_CNT 0x120860
  2877. /* [R 8] Number of entries occupied by vq 1 in pswrq memory */
  2878. #define PXP2_REG_RQ_VQ1_ENTRY_CNT 0x120868
  2879. /* [R 8] Number of entries occupied by vq 20 in pswrq memory */
  2880. #define PXP2_REG_RQ_VQ20_ENTRY_CNT 0x120870
  2881. /* [R 8] Number of entries occupied by vq 21 in pswrq memory */
  2882. #define PXP2_REG_RQ_VQ21_ENTRY_CNT 0x120878
  2883. /* [R 8] Number of entries occupied by vq 22 in pswrq memory */
  2884. #define PXP2_REG_RQ_VQ22_ENTRY_CNT 0x120880
  2885. /* [R 8] Number of entries occupied by vq 23 in pswrq memory */
  2886. #define PXP2_REG_RQ_VQ23_ENTRY_CNT 0x120888
  2887. /* [R 8] Number of entries occupied by vq 24 in pswrq memory */
  2888. #define PXP2_REG_RQ_VQ24_ENTRY_CNT 0x120890
  2889. /* [R 8] Number of entries occupied by vq 25 in pswrq memory */
  2890. #define PXP2_REG_RQ_VQ25_ENTRY_CNT 0x120898
  2891. /* [R 8] Number of entries occupied by vq 26 in pswrq memory */
  2892. #define PXP2_REG_RQ_VQ26_ENTRY_CNT 0x1208a0
  2893. /* [R 8] Number of entries occupied by vq 27 in pswrq memory */
  2894. #define PXP2_REG_RQ_VQ27_ENTRY_CNT 0x1208a8
  2895. /* [R 8] Number of entries occupied by vq 28 in pswrq memory */
  2896. #define PXP2_REG_RQ_VQ28_ENTRY_CNT 0x1208b0
  2897. /* [R 8] Number of entries occupied by vq 29 in pswrq memory */
  2898. #define PXP2_REG_RQ_VQ29_ENTRY_CNT 0x1208b8
  2899. /* [R 8] Number of entries occupied by vq 2 in pswrq memory */
  2900. #define PXP2_REG_RQ_VQ2_ENTRY_CNT 0x1208c0
  2901. /* [R 8] Number of entries occupied by vq 30 in pswrq memory */
  2902. #define PXP2_REG_RQ_VQ30_ENTRY_CNT 0x1208c8
  2903. /* [R 8] Number of entries occupied by vq 31 in pswrq memory */
  2904. #define PXP2_REG_RQ_VQ31_ENTRY_CNT 0x1208d0
  2905. /* [R 8] Number of entries occupied by vq 3 in pswrq memory */
  2906. #define PXP2_REG_RQ_VQ3_ENTRY_CNT 0x1208d8
  2907. /* [R 8] Number of entries occupied by vq 4 in pswrq memory */
  2908. #define PXP2_REG_RQ_VQ4_ENTRY_CNT 0x1208e0
  2909. /* [R 8] Number of entries occupied by vq 5 in pswrq memory */
  2910. #define PXP2_REG_RQ_VQ5_ENTRY_CNT 0x1208e8
  2911. /* [R 8] Number of entries occupied by vq 6 in pswrq memory */
  2912. #define PXP2_REG_RQ_VQ6_ENTRY_CNT 0x1208f0
  2913. /* [R 8] Number of entries occupied by vq 7 in pswrq memory */
  2914. #define PXP2_REG_RQ_VQ7_ENTRY_CNT 0x1208f8
  2915. /* [R 8] Number of entries occupied by vq 8 in pswrq memory */
  2916. #define PXP2_REG_RQ_VQ8_ENTRY_CNT 0x120900
  2917. /* [R 8] Number of entries occupied by vq 9 in pswrq memory */
  2918. #define PXP2_REG_RQ_VQ9_ENTRY_CNT 0x120908
  2919. /* [RW 3] Max burst size filed for write requests port 0; 000 - 128B;
  2920. 001:256B; 010: 512B; */
  2921. #define PXP2_REG_RQ_WR_MBS0 0x12015c
  2922. /* [RW 3] Max burst size filed for write requests port 1; 000 - 128B;
  2923. 001:256B; 010: 512B; */
  2924. #define PXP2_REG_RQ_WR_MBS1 0x120164
  2925. /* [RW 2] 0 - 128B; - 256B; - 512B; - 1024B; when the payload in the
  2926. buffer reaches this number has_payload will be asserted */
  2927. #define PXP2_REG_WR_CDU_MPS 0x1205f0
  2928. /* [RW 2] 0 - 128B; - 256B; - 512B; - 1024B; when the payload in the
  2929. buffer reaches this number has_payload will be asserted */
  2930. #define PXP2_REG_WR_CSDM_MPS 0x1205d0
  2931. /* [RW 2] 0 - 128B; - 256B; - 512B; - 1024B; when the payload in the
  2932. buffer reaches this number has_payload will be asserted */
  2933. #define PXP2_REG_WR_DBG_MPS 0x1205e8
  2934. /* [RW 2] 0 - 128B; - 256B; - 512B; - 1024B; when the payload in the
  2935. buffer reaches this number has_payload will be asserted */
  2936. #define PXP2_REG_WR_DMAE_MPS 0x1205ec
  2937. /* [RW 10] if Number of entries in dmae fifo will be higher than this
  2938. threshold then has_payload indication will be asserted; the default value
  2939. should be equal to &gt; write MBS size! */
  2940. #define PXP2_REG_WR_DMAE_TH 0x120368
  2941. /* [RW 2] 0 - 128B; - 256B; - 512B; - 1024B; when the payload in the
  2942. buffer reaches this number has_payload will be asserted */
  2943. #define PXP2_REG_WR_HC_MPS 0x1205c8
  2944. /* [RW 2] 0 - 128B; - 256B; - 512B; - 1024B; when the payload in the
  2945. buffer reaches this number has_payload will be asserted */
  2946. #define PXP2_REG_WR_QM_MPS 0x1205dc
  2947. /* [RW 1] 0 - working in A0 mode; - working in B0 mode */
  2948. #define PXP2_REG_WR_REV_MODE 0x120670
  2949. /* [RW 2] 0 - 128B; - 256B; - 512B; - 1024B; when the payload in the
  2950. buffer reaches this number has_payload will be asserted */
  2951. #define PXP2_REG_WR_SRC_MPS 0x1205e4
  2952. /* [RW 2] 0 - 128B; - 256B; - 512B; - 1024B; when the payload in the
  2953. buffer reaches this number has_payload will be asserted */
  2954. #define PXP2_REG_WR_TM_MPS 0x1205e0
  2955. /* [RW 2] 0 - 128B; - 256B; - 512B; - 1024B; when the payload in the
  2956. buffer reaches this number has_payload will be asserted */
  2957. #define PXP2_REG_WR_TSDM_MPS 0x1205d4
  2958. /* [RW 10] if Number of entries in usdmdp fifo will be higher than this
  2959. threshold then has_payload indication will be asserted; the default value
  2960. should be equal to &gt; write MBS size! */
  2961. #define PXP2_REG_WR_USDMDP_TH 0x120348
  2962. /* [RW 2] 0 - 128B; - 256B; - 512B; - 1024B; when the payload in the
  2963. buffer reaches this number has_payload will be asserted */
  2964. #define PXP2_REG_WR_USDM_MPS 0x1205cc
  2965. /* [RW 2] 0 - 128B; - 256B; - 512B; - 1024B; when the payload in the
  2966. buffer reaches this number has_payload will be asserted */
  2967. #define PXP2_REG_WR_XSDM_MPS 0x1205d8
  2968. /* [R 1] debug only: Indication if PSWHST arbiter is idle */
  2969. #define PXP_REG_HST_ARB_IS_IDLE 0x103004
  2970. /* [R 8] debug only: A bit mask for all PSWHST arbiter clients. '1' means
  2971. this client is waiting for the arbiter. */
  2972. #define PXP_REG_HST_CLIENTS_WAITING_TO_ARB 0x103008
  2973. /* [RW 1] When 1; doorbells are discarded and not passed to doorbell queue
  2974. block. Should be used for close the gates. */
  2975. #define PXP_REG_HST_DISCARD_DOORBELLS 0x1030a4
  2976. /* [R 1] debug only: '1' means this PSWHST is discarding doorbells. This bit
  2977. should update accoring to 'hst_discard_doorbells' register when the state
  2978. machine is idle */
  2979. #define PXP_REG_HST_DISCARD_DOORBELLS_STATUS 0x1030a0
  2980. /* [RW 1] When 1; new internal writes arriving to the block are discarded.
  2981. Should be used for close the gates. */
  2982. #define PXP_REG_HST_DISCARD_INTERNAL_WRITES 0x1030a8
  2983. /* [R 6] debug only: A bit mask for all PSWHST internal write clients. '1'
  2984. means this PSWHST is discarding inputs from this client. Each bit should
  2985. update accoring to 'hst_discard_internal_writes' register when the state
  2986. machine is idle. */
  2987. #define PXP_REG_HST_DISCARD_INTERNAL_WRITES_STATUS 0x10309c
  2988. /* [WB 160] Used for initialization of the inbound interrupts memory */
  2989. #define PXP_REG_HST_INBOUND_INT 0x103800
  2990. /* [RW 32] Interrupt mask register #0 read/write */
  2991. #define PXP_REG_PXP_INT_MASK_0 0x103074
  2992. #define PXP_REG_PXP_INT_MASK_1 0x103084
  2993. /* [R 32] Interrupt register #0 read */
  2994. #define PXP_REG_PXP_INT_STS_0 0x103068
  2995. #define PXP_REG_PXP_INT_STS_1 0x103078
  2996. /* [RC 32] Interrupt register #0 read clear */
  2997. #define PXP_REG_PXP_INT_STS_CLR_0 0x10306c
  2998. #define PXP_REG_PXP_INT_STS_CLR_1 0x10307c
  2999. /* [RW 27] Parity mask register #0 read/write */
  3000. #define PXP_REG_PXP_PRTY_MASK 0x103094
  3001. /* [R 26] Parity register #0 read */
  3002. #define PXP_REG_PXP_PRTY_STS 0x103088
  3003. /* [RW 4] The activity counter initial increment value sent in the load
  3004. request */
  3005. #define QM_REG_ACTCTRINITVAL_0 0x168040
  3006. #define QM_REG_ACTCTRINITVAL_1 0x168044
  3007. #define QM_REG_ACTCTRINITVAL_2 0x168048
  3008. #define QM_REG_ACTCTRINITVAL_3 0x16804c
  3009. /* [RW 32] The base logical address (in bytes) of each physical queue. The
  3010. index I represents the physical queue number. The 12 lsbs are ignore and
  3011. considered zero so practically there are only 20 bits in this register;
  3012. queues 63-0 */
  3013. #define QM_REG_BASEADDR 0x168900
  3014. /* [RW 32] The base logical address (in bytes) of each physical queue. The
  3015. index I represents the physical queue number. The 12 lsbs are ignore and
  3016. considered zero so practically there are only 20 bits in this register;
  3017. queues 127-64 */
  3018. #define QM_REG_BASEADDR_EXT_A 0x16e100
  3019. /* [RW 16] The byte credit cost for each task. This value is for both ports */
  3020. #define QM_REG_BYTECRDCOST 0x168234
  3021. /* [RW 16] The initial byte credit value for both ports. */
  3022. #define QM_REG_BYTECRDINITVAL 0x168238
  3023. /* [RW 32] A bit per physical queue. If the bit is cleared then the physical
  3024. queue uses port 0 else it uses port 1; queues 31-0 */
  3025. #define QM_REG_BYTECRDPORT_LSB 0x168228
  3026. /* [RW 32] A bit per physical queue. If the bit is cleared then the physical
  3027. queue uses port 0 else it uses port 1; queues 95-64 */
  3028. #define QM_REG_BYTECRDPORT_LSB_EXT_A 0x16e520
  3029. /* [RW 32] A bit per physical queue. If the bit is cleared then the physical
  3030. queue uses port 0 else it uses port 1; queues 63-32 */
  3031. #define QM_REG_BYTECRDPORT_MSB 0x168224
  3032. /* [RW 32] A bit per physical queue. If the bit is cleared then the physical
  3033. queue uses port 0 else it uses port 1; queues 127-96 */
  3034. #define QM_REG_BYTECRDPORT_MSB_EXT_A 0x16e51c
  3035. /* [RW 16] The byte credit value that if above the QM is considered almost
  3036. full */
  3037. #define QM_REG_BYTECREDITAFULLTHR 0x168094
  3038. /* [RW 4] The initial credit for interface */
  3039. #define QM_REG_CMINITCRD_0 0x1680cc
  3040. #define QM_REG_CMINITCRD_1 0x1680d0
  3041. #define QM_REG_CMINITCRD_2 0x1680d4
  3042. #define QM_REG_CMINITCRD_3 0x1680d8
  3043. #define QM_REG_CMINITCRD_4 0x1680dc
  3044. #define QM_REG_CMINITCRD_5 0x1680e0
  3045. #define QM_REG_CMINITCRD_6 0x1680e4
  3046. #define QM_REG_CMINITCRD_7 0x1680e8
  3047. /* [RW 8] A mask bit per CM interface. If this bit is 0 then this interface
  3048. is masked */
  3049. #define QM_REG_CMINTEN 0x1680ec
  3050. /* [RW 12] A bit vector which indicates which one of the queues are tied to
  3051. interface 0 */
  3052. #define QM_REG_CMINTVOQMASK_0 0x1681f4
  3053. #define QM_REG_CMINTVOQMASK_1 0x1681f8
  3054. #define QM_REG_CMINTVOQMASK_2 0x1681fc
  3055. #define QM_REG_CMINTVOQMASK_3 0x168200
  3056. #define QM_REG_CMINTVOQMASK_4 0x168204
  3057. #define QM_REG_CMINTVOQMASK_5 0x168208
  3058. #define QM_REG_CMINTVOQMASK_6 0x16820c
  3059. #define QM_REG_CMINTVOQMASK_7 0x168210
  3060. /* [RW 20] The number of connections divided by 16 which dictates the size
  3061. of each queue which belongs to even function number. */
  3062. #define QM_REG_CONNNUM_0 0x168020
  3063. /* [R 6] Keep the fill level of the fifo from write client 4 */
  3064. #define QM_REG_CQM_WRC_FIFOLVL 0x168018
  3065. /* [RW 8] The context regions sent in the CFC load request */
  3066. #define QM_REG_CTXREG_0 0x168030
  3067. #define QM_REG_CTXREG_1 0x168034
  3068. #define QM_REG_CTXREG_2 0x168038
  3069. #define QM_REG_CTXREG_3 0x16803c
  3070. /* [RW 12] The VOQ mask used to select the VOQs which needs to be full for
  3071. bypass enable */
  3072. #define QM_REG_ENBYPVOQMASK 0x16823c
  3073. /* [RW 32] A bit mask per each physical queue. If a bit is set then the
  3074. physical queue uses the byte credit; queues 31-0 */
  3075. #define QM_REG_ENBYTECRD_LSB 0x168220
  3076. /* [RW 32] A bit mask per each physical queue. If a bit is set then the
  3077. physical queue uses the byte credit; queues 95-64 */
  3078. #define QM_REG_ENBYTECRD_LSB_EXT_A 0x16e518
  3079. /* [RW 32] A bit mask per each physical queue. If a bit is set then the
  3080. physical queue uses the byte credit; queues 63-32 */
  3081. #define QM_REG_ENBYTECRD_MSB 0x16821c
  3082. /* [RW 32] A bit mask per each physical queue. If a bit is set then the
  3083. physical queue uses the byte credit; queues 127-96 */
  3084. #define QM_REG_ENBYTECRD_MSB_EXT_A 0x16e514
  3085. /* [RW 4] If cleared then the secondary interface will not be served by the
  3086. RR arbiter */
  3087. #define QM_REG_ENSEC 0x1680f0
  3088. /* [RW 32] NA */
  3089. #define QM_REG_FUNCNUMSEL_LSB 0x168230
  3090. /* [RW 32] NA */
  3091. #define QM_REG_FUNCNUMSEL_MSB 0x16822c
  3092. /* [RW 32] A mask register to mask the Almost empty signals which will not
  3093. be use for the almost empty indication to the HW block; queues 31:0 */
  3094. #define QM_REG_HWAEMPTYMASK_LSB 0x168218
  3095. /* [RW 32] A mask register to mask the Almost empty signals which will not
  3096. be use for the almost empty indication to the HW block; queues 95-64 */
  3097. #define QM_REG_HWAEMPTYMASK_LSB_EXT_A 0x16e510
  3098. /* [RW 32] A mask register to mask the Almost empty signals which will not
  3099. be use for the almost empty indication to the HW block; queues 63:32 */
  3100. #define QM_REG_HWAEMPTYMASK_MSB 0x168214
  3101. /* [RW 32] A mask register to mask the Almost empty signals which will not
  3102. be use for the almost empty indication to the HW block; queues 127-96 */
  3103. #define QM_REG_HWAEMPTYMASK_MSB_EXT_A 0x16e50c
  3104. /* [RW 4] The number of outstanding request to CFC */
  3105. #define QM_REG_OUTLDREQ 0x168804
  3106. /* [RC 1] A flag to indicate that overflow error occurred in one of the
  3107. queues. */
  3108. #define QM_REG_OVFERROR 0x16805c
  3109. /* [RC 7] the Q where the overflow occurs */
  3110. #define QM_REG_OVFQNUM 0x168058
  3111. /* [R 16] Pause state for physical queues 15-0 */
  3112. #define QM_REG_PAUSESTATE0 0x168410
  3113. /* [R 16] Pause state for physical queues 31-16 */
  3114. #define QM_REG_PAUSESTATE1 0x168414
  3115. /* [R 16] Pause state for physical queues 47-32 */
  3116. #define QM_REG_PAUSESTATE2 0x16e684
  3117. /* [R 16] Pause state for physical queues 63-48 */
  3118. #define QM_REG_PAUSESTATE3 0x16e688
  3119. /* [R 16] Pause state for physical queues 79-64 */
  3120. #define QM_REG_PAUSESTATE4 0x16e68c
  3121. /* [R 16] Pause state for physical queues 95-80 */
  3122. #define QM_REG_PAUSESTATE5 0x16e690
  3123. /* [R 16] Pause state for physical queues 111-96 */
  3124. #define QM_REG_PAUSESTATE6 0x16e694
  3125. /* [R 16] Pause state for physical queues 127-112 */
  3126. #define QM_REG_PAUSESTATE7 0x16e698
  3127. /* [RW 2] The PCI attributes field used in the PCI request. */
  3128. #define QM_REG_PCIREQAT 0x168054
  3129. #define QM_REG_PF_EN 0x16e70c
  3130. /* [R 16] The byte credit of port 0 */
  3131. #define QM_REG_PORT0BYTECRD 0x168300
  3132. /* [R 16] The byte credit of port 1 */
  3133. #define QM_REG_PORT1BYTECRD 0x168304
  3134. /* [RW 3] pci function number of queues 15-0 */
  3135. #define QM_REG_PQ2PCIFUNC_0 0x16e6bc
  3136. #define QM_REG_PQ2PCIFUNC_1 0x16e6c0
  3137. #define QM_REG_PQ2PCIFUNC_2 0x16e6c4
  3138. #define QM_REG_PQ2PCIFUNC_3 0x16e6c8
  3139. #define QM_REG_PQ2PCIFUNC_4 0x16e6cc
  3140. #define QM_REG_PQ2PCIFUNC_5 0x16e6d0
  3141. #define QM_REG_PQ2PCIFUNC_6 0x16e6d4
  3142. #define QM_REG_PQ2PCIFUNC_7 0x16e6d8
  3143. /* [WB 54] Pointer Table Memory for queues 63-0; The mapping is as follow:
  3144. ptrtbl[53:30] read pointer; ptrtbl[29:6] write pointer; ptrtbl[5:4] read
  3145. bank0; ptrtbl[3:2] read bank 1; ptrtbl[1:0] write bank; */
  3146. #define QM_REG_PTRTBL 0x168a00
  3147. /* [WB 54] Pointer Table Memory for queues 127-64; The mapping is as follow:
  3148. ptrtbl[53:30] read pointer; ptrtbl[29:6] write pointer; ptrtbl[5:4] read
  3149. bank0; ptrtbl[3:2] read bank 1; ptrtbl[1:0] write bank; */
  3150. #define QM_REG_PTRTBL_EXT_A 0x16e200
  3151. /* [RW 2] Interrupt mask register #0 read/write */
  3152. #define QM_REG_QM_INT_MASK 0x168444
  3153. /* [R 2] Interrupt register #0 read */
  3154. #define QM_REG_QM_INT_STS 0x168438
  3155. /* [RW 12] Parity mask register #0 read/write */
  3156. #define QM_REG_QM_PRTY_MASK 0x168454
  3157. /* [R 12] Parity register #0 read */
  3158. #define QM_REG_QM_PRTY_STS 0x168448
  3159. /* [R 32] Current queues in pipeline: Queues from 32 to 63 */
  3160. #define QM_REG_QSTATUS_HIGH 0x16802c
  3161. /* [R 32] Current queues in pipeline: Queues from 96 to 127 */
  3162. #define QM_REG_QSTATUS_HIGH_EXT_A 0x16e408
  3163. /* [R 32] Current queues in pipeline: Queues from 0 to 31 */
  3164. #define QM_REG_QSTATUS_LOW 0x168028
  3165. /* [R 32] Current queues in pipeline: Queues from 64 to 95 */
  3166. #define QM_REG_QSTATUS_LOW_EXT_A 0x16e404
  3167. /* [R 24] The number of tasks queued for each queue; queues 63-0 */
  3168. #define QM_REG_QTASKCTR_0 0x168308
  3169. /* [R 24] The number of tasks queued for each queue; queues 127-64 */
  3170. #define QM_REG_QTASKCTR_EXT_A_0 0x16e584
  3171. /* [RW 4] Queue tied to VOQ */
  3172. #define QM_REG_QVOQIDX_0 0x1680f4
  3173. #define QM_REG_QVOQIDX_10 0x16811c
  3174. #define QM_REG_QVOQIDX_100 0x16e49c
  3175. #define QM_REG_QVOQIDX_101 0x16e4a0
  3176. #define QM_REG_QVOQIDX_102 0x16e4a4
  3177. #define QM_REG_QVOQIDX_103 0x16e4a8
  3178. #define QM_REG_QVOQIDX_104 0x16e4ac
  3179. #define QM_REG_QVOQIDX_105 0x16e4b0
  3180. #define QM_REG_QVOQIDX_106 0x16e4b4
  3181. #define QM_REG_QVOQIDX_107 0x16e4b8
  3182. #define QM_REG_QVOQIDX_108 0x16e4bc
  3183. #define QM_REG_QVOQIDX_109 0x16e4c0
  3184. #define QM_REG_QVOQIDX_11 0x168120
  3185. #define QM_REG_QVOQIDX_110 0x16e4c4
  3186. #define QM_REG_QVOQIDX_111 0x16e4c8
  3187. #define QM_REG_QVOQIDX_112 0x16e4cc
  3188. #define QM_REG_QVOQIDX_113 0x16e4d0
  3189. #define QM_REG_QVOQIDX_114 0x16e4d4
  3190. #define QM_REG_QVOQIDX_115 0x16e4d8
  3191. #define QM_REG_QVOQIDX_116 0x16e4dc
  3192. #define QM_REG_QVOQIDX_117 0x16e4e0
  3193. #define QM_REG_QVOQIDX_118 0x16e4e4
  3194. #define QM_REG_QVOQIDX_119 0x16e4e8
  3195. #define QM_REG_QVOQIDX_12 0x168124
  3196. #define QM_REG_QVOQIDX_120 0x16e4ec
  3197. #define QM_REG_QVOQIDX_121 0x16e4f0
  3198. #define QM_REG_QVOQIDX_122 0x16e4f4
  3199. #define QM_REG_QVOQIDX_123 0x16e4f8
  3200. #define QM_REG_QVOQIDX_124 0x16e4fc
  3201. #define QM_REG_QVOQIDX_125 0x16e500
  3202. #define QM_REG_QVOQIDX_126 0x16e504
  3203. #define QM_REG_QVOQIDX_127 0x16e508
  3204. #define QM_REG_QVOQIDX_13 0x168128
  3205. #define QM_REG_QVOQIDX_14 0x16812c
  3206. #define QM_REG_QVOQIDX_15 0x168130
  3207. #define QM_REG_QVOQIDX_16 0x168134
  3208. #define QM_REG_QVOQIDX_17 0x168138
  3209. #define QM_REG_QVOQIDX_21 0x168148
  3210. #define QM_REG_QVOQIDX_22 0x16814c
  3211. #define QM_REG_QVOQIDX_23 0x168150
  3212. #define QM_REG_QVOQIDX_24 0x168154
  3213. #define QM_REG_QVOQIDX_25 0x168158
  3214. #define QM_REG_QVOQIDX_26 0x16815c
  3215. #define QM_REG_QVOQIDX_27 0x168160
  3216. #define QM_REG_QVOQIDX_28 0x168164
  3217. #define QM_REG_QVOQIDX_29 0x168168
  3218. #define QM_REG_QVOQIDX_30 0x16816c
  3219. #define QM_REG_QVOQIDX_31 0x168170
  3220. #define QM_REG_QVOQIDX_32 0x168174
  3221. #define QM_REG_QVOQIDX_33 0x168178
  3222. #define QM_REG_QVOQIDX_34 0x16817c
  3223. #define QM_REG_QVOQIDX_35 0x168180
  3224. #define QM_REG_QVOQIDX_36 0x168184
  3225. #define QM_REG_QVOQIDX_37 0x168188
  3226. #define QM_REG_QVOQIDX_38 0x16818c
  3227. #define QM_REG_QVOQIDX_39 0x168190
  3228. #define QM_REG_QVOQIDX_40 0x168194
  3229. #define QM_REG_QVOQIDX_41 0x168198
  3230. #define QM_REG_QVOQIDX_42 0x16819c
  3231. #define QM_REG_QVOQIDX_43 0x1681a0
  3232. #define QM_REG_QVOQIDX_44 0x1681a4
  3233. #define QM_REG_QVOQIDX_45 0x1681a8
  3234. #define QM_REG_QVOQIDX_46 0x1681ac
  3235. #define QM_REG_QVOQIDX_47 0x1681b0
  3236. #define QM_REG_QVOQIDX_48 0x1681b4
  3237. #define QM_REG_QVOQIDX_49 0x1681b8
  3238. #define QM_REG_QVOQIDX_5 0x168108
  3239. #define QM_REG_QVOQIDX_50 0x1681bc
  3240. #define QM_REG_QVOQIDX_51 0x1681c0
  3241. #define QM_REG_QVOQIDX_52 0x1681c4
  3242. #define QM_REG_QVOQIDX_53 0x1681c8
  3243. #define QM_REG_QVOQIDX_54 0x1681cc
  3244. #define QM_REG_QVOQIDX_55 0x1681d0
  3245. #define QM_REG_QVOQIDX_56 0x1681d4
  3246. #define QM_REG_QVOQIDX_57 0x1681d8
  3247. #define QM_REG_QVOQIDX_58 0x1681dc
  3248. #define QM_REG_QVOQIDX_59 0x1681e0
  3249. #define QM_REG_QVOQIDX_6 0x16810c
  3250. #define QM_REG_QVOQIDX_60 0x1681e4
  3251. #define QM_REG_QVOQIDX_61 0x1681e8
  3252. #define QM_REG_QVOQIDX_62 0x1681ec
  3253. #define QM_REG_QVOQIDX_63 0x1681f0
  3254. #define QM_REG_QVOQIDX_64 0x16e40c
  3255. #define QM_REG_QVOQIDX_65 0x16e410
  3256. #define QM_REG_QVOQIDX_69 0x16e420
  3257. #define QM_REG_QVOQIDX_7 0x168110
  3258. #define QM_REG_QVOQIDX_70 0x16e424
  3259. #define QM_REG_QVOQIDX_71 0x16e428
  3260. #define QM_REG_QVOQIDX_72 0x16e42c
  3261. #define QM_REG_QVOQIDX_73 0x16e430
  3262. #define QM_REG_QVOQIDX_74 0x16e434
  3263. #define QM_REG_QVOQIDX_75 0x16e438
  3264. #define QM_REG_QVOQIDX_76 0x16e43c
  3265. #define QM_REG_QVOQIDX_77 0x16e440
  3266. #define QM_REG_QVOQIDX_78 0x16e444
  3267. #define QM_REG_QVOQIDX_79 0x16e448
  3268. #define QM_REG_QVOQIDX_8 0x168114
  3269. #define QM_REG_QVOQIDX_80 0x16e44c
  3270. #define QM_REG_QVOQIDX_81 0x16e450
  3271. #define QM_REG_QVOQIDX_85 0x16e460
  3272. #define QM_REG_QVOQIDX_86 0x16e464
  3273. #define QM_REG_QVOQIDX_87 0x16e468
  3274. #define QM_REG_QVOQIDX_88 0x16e46c
  3275. #define QM_REG_QVOQIDX_89 0x16e470
  3276. #define QM_REG_QVOQIDX_9 0x168118
  3277. #define QM_REG_QVOQIDX_90 0x16e474
  3278. #define QM_REG_QVOQIDX_91 0x16e478
  3279. #define QM_REG_QVOQIDX_92 0x16e47c
  3280. #define QM_REG_QVOQIDX_93 0x16e480
  3281. #define QM_REG_QVOQIDX_94 0x16e484
  3282. #define QM_REG_QVOQIDX_95 0x16e488
  3283. #define QM_REG_QVOQIDX_96 0x16e48c
  3284. #define QM_REG_QVOQIDX_97 0x16e490
  3285. #define QM_REG_QVOQIDX_98 0x16e494
  3286. #define QM_REG_QVOQIDX_99 0x16e498
  3287. /* [RW 1] Initialization bit command */
  3288. #define QM_REG_SOFT_RESET 0x168428
  3289. /* [RW 8] The credit cost per every task in the QM. A value per each VOQ */
  3290. #define QM_REG_TASKCRDCOST_0 0x16809c
  3291. #define QM_REG_TASKCRDCOST_1 0x1680a0
  3292. #define QM_REG_TASKCRDCOST_2 0x1680a4
  3293. #define QM_REG_TASKCRDCOST_4 0x1680ac
  3294. #define QM_REG_TASKCRDCOST_5 0x1680b0
  3295. /* [R 6] Keep the fill level of the fifo from write client 3 */
  3296. #define QM_REG_TQM_WRC_FIFOLVL 0x168010
  3297. /* [R 6] Keep the fill level of the fifo from write client 2 */
  3298. #define QM_REG_UQM_WRC_FIFOLVL 0x168008
  3299. /* [RC 32] Credit update error register */
  3300. #define QM_REG_VOQCRDERRREG 0x168408
  3301. /* [R 16] The credit value for each VOQ */
  3302. #define QM_REG_VOQCREDIT_0 0x1682d0
  3303. #define QM_REG_VOQCREDIT_1 0x1682d4
  3304. #define QM_REG_VOQCREDIT_4 0x1682e0
  3305. /* [RW 16] The credit value that if above the QM is considered almost full */
  3306. #define QM_REG_VOQCREDITAFULLTHR 0x168090
  3307. /* [RW 16] The init and maximum credit for each VoQ */
  3308. #define QM_REG_VOQINITCREDIT_0 0x168060
  3309. #define QM_REG_VOQINITCREDIT_1 0x168064
  3310. #define QM_REG_VOQINITCREDIT_2 0x168068
  3311. #define QM_REG_VOQINITCREDIT_4 0x168070
  3312. #define QM_REG_VOQINITCREDIT_5 0x168074
  3313. /* [RW 1] The port of which VOQ belongs */
  3314. #define QM_REG_VOQPORT_0 0x1682a0
  3315. #define QM_REG_VOQPORT_1 0x1682a4
  3316. #define QM_REG_VOQPORT_2 0x1682a8
  3317. /* [RW 32] The physical queue number associated with each VOQ; queues 31-0 */
  3318. #define QM_REG_VOQQMASK_0_LSB 0x168240
  3319. /* [RW 32] The physical queue number associated with each VOQ; queues 95-64 */
  3320. #define QM_REG_VOQQMASK_0_LSB_EXT_A 0x16e524
  3321. /* [RW 32] The physical queue number associated with each VOQ; queues 63-32 */
  3322. #define QM_REG_VOQQMASK_0_MSB 0x168244
  3323. /* [RW 32] The physical queue number associated with each VOQ; queues 127-96 */
  3324. #define QM_REG_VOQQMASK_0_MSB_EXT_A 0x16e528
  3325. /* [RW 32] The physical queue number associated with each VOQ; queues 31-0 */
  3326. #define QM_REG_VOQQMASK_10_LSB 0x168290
  3327. /* [RW 32] The physical queue number associated with each VOQ; queues 95-64 */
  3328. #define QM_REG_VOQQMASK_10_LSB_EXT_A 0x16e574
  3329. /* [RW 32] The physical queue number associated with each VOQ; queues 63-32 */
  3330. #define QM_REG_VOQQMASK_10_MSB 0x168294
  3331. /* [RW 32] The physical queue number associated with each VOQ; queues 127-96 */
  3332. #define QM_REG_VOQQMASK_10_MSB_EXT_A 0x16e578
  3333. /* [RW 32] The physical queue number associated with each VOQ; queues 31-0 */
  3334. #define QM_REG_VOQQMASK_11_LSB 0x168298
  3335. /* [RW 32] The physical queue number associated with each VOQ; queues 95-64 */
  3336. #define QM_REG_VOQQMASK_11_LSB_EXT_A 0x16e57c
  3337. /* [RW 32] The physical queue number associated with each VOQ; queues 63-32 */
  3338. #define QM_REG_VOQQMASK_11_MSB 0x16829c
  3339. /* [RW 32] The physical queue number associated with each VOQ; queues 127-96 */
  3340. #define QM_REG_VOQQMASK_11_MSB_EXT_A 0x16e580
  3341. /* [RW 32] The physical queue number associated with each VOQ; queues 31-0 */
  3342. #define QM_REG_VOQQMASK_1_LSB 0x168248
  3343. /* [RW 32] The physical queue number associated with each VOQ; queues 95-64 */
  3344. #define QM_REG_VOQQMASK_1_LSB_EXT_A 0x16e52c
  3345. /* [RW 32] The physical queue number associated with each VOQ; queues 63-32 */
  3346. #define QM_REG_VOQQMASK_1_MSB 0x16824c
  3347. /* [RW 32] The physical queue number associated with each VOQ; queues 127-96 */
  3348. #define QM_REG_VOQQMASK_1_MSB_EXT_A 0x16e530
  3349. /* [RW 32] The physical queue number associated with each VOQ; queues 31-0 */
  3350. #define QM_REG_VOQQMASK_2_LSB 0x168250
  3351. /* [RW 32] The physical queue number associated with each VOQ; queues 95-64 */
  3352. #define QM_REG_VOQQMASK_2_LSB_EXT_A 0x16e534
  3353. /* [RW 32] The physical queue number associated with each VOQ; queues 63-32 */
  3354. #define QM_REG_VOQQMASK_2_MSB 0x168254
  3355. /* [RW 32] The physical queue number associated with each VOQ; queues 127-96 */
  3356. #define QM_REG_VOQQMASK_2_MSB_EXT_A 0x16e538
  3357. /* [RW 32] The physical queue number associated with each VOQ; queues 31-0 */
  3358. #define QM_REG_VOQQMASK_3_LSB 0x168258
  3359. /* [RW 32] The physical queue number associated with each VOQ; queues 95-64 */
  3360. #define QM_REG_VOQQMASK_3_LSB_EXT_A 0x16e53c
  3361. /* [RW 32] The physical queue number associated with each VOQ; queues 127-96 */
  3362. #define QM_REG_VOQQMASK_3_MSB_EXT_A 0x16e540
  3363. /* [RW 32] The physical queue number associated with each VOQ; queues 31-0 */
  3364. #define QM_REG_VOQQMASK_4_LSB 0x168260
  3365. /* [RW 32] The physical queue number associated with each VOQ; queues 95-64 */
  3366. #define QM_REG_VOQQMASK_4_LSB_EXT_A 0x16e544
  3367. /* [RW 32] The physical queue number associated with each VOQ; queues 63-32 */
  3368. #define QM_REG_VOQQMASK_4_MSB 0x168264
  3369. /* [RW 32] The physical queue number associated with each VOQ; queues 127-96 */
  3370. #define QM_REG_VOQQMASK_4_MSB_EXT_A 0x16e548
  3371. /* [RW 32] The physical queue number associated with each VOQ; queues 31-0 */
  3372. #define QM_REG_VOQQMASK_5_LSB 0x168268
  3373. /* [RW 32] The physical queue number associated with each VOQ; queues 95-64 */
  3374. #define QM_REG_VOQQMASK_5_LSB_EXT_A 0x16e54c
  3375. /* [RW 32] The physical queue number associated with each VOQ; queues 63-32 */
  3376. #define QM_REG_VOQQMASK_5_MSB 0x16826c
  3377. /* [RW 32] The physical queue number associated with each VOQ; queues 127-96 */
  3378. #define QM_REG_VOQQMASK_5_MSB_EXT_A 0x16e550
  3379. /* [RW 32] The physical queue number associated with each VOQ; queues 31-0 */
  3380. #define QM_REG_VOQQMASK_6_LSB 0x168270
  3381. /* [RW 32] The physical queue number associated with each VOQ; queues 95-64 */
  3382. #define QM_REG_VOQQMASK_6_LSB_EXT_A 0x16e554
  3383. /* [RW 32] The physical queue number associated with each VOQ; queues 63-32 */
  3384. #define QM_REG_VOQQMASK_6_MSB 0x168274
  3385. /* [RW 32] The physical queue number associated with each VOQ; queues 127-96 */
  3386. #define QM_REG_VOQQMASK_6_MSB_EXT_A 0x16e558
  3387. /* [RW 32] The physical queue number associated with each VOQ; queues 31-0 */
  3388. #define QM_REG_VOQQMASK_7_LSB 0x168278
  3389. /* [RW 32] The physical queue number associated with each VOQ; queues 95-64 */
  3390. #define QM_REG_VOQQMASK_7_LSB_EXT_A 0x16e55c
  3391. /* [RW 32] The physical queue number associated with each VOQ; queues 63-32 */
  3392. #define QM_REG_VOQQMASK_7_MSB 0x16827c
  3393. /* [RW 32] The physical queue number associated with each VOQ; queues 127-96 */
  3394. #define QM_REG_VOQQMASK_7_MSB_EXT_A 0x16e560
  3395. /* [RW 32] The physical queue number associated with each VOQ; queues 31-0 */
  3396. #define QM_REG_VOQQMASK_8_LSB 0x168280
  3397. /* [RW 32] The physical queue number associated with each VOQ; queues 95-64 */
  3398. #define QM_REG_VOQQMASK_8_LSB_EXT_A 0x16e564
  3399. /* [RW 32] The physical queue number associated with each VOQ; queues 63-32 */
  3400. #define QM_REG_VOQQMASK_8_MSB 0x168284
  3401. /* [RW 32] The physical queue number associated with each VOQ; queues 127-96 */
  3402. #define QM_REG_VOQQMASK_8_MSB_EXT_A 0x16e568
  3403. /* [RW 32] The physical queue number associated with each VOQ; queues 31-0 */
  3404. #define QM_REG_VOQQMASK_9_LSB 0x168288
  3405. /* [RW 32] The physical queue number associated with each VOQ; queues 95-64 */
  3406. #define QM_REG_VOQQMASK_9_LSB_EXT_A 0x16e56c
  3407. /* [RW 32] The physical queue number associated with each VOQ; queues 127-96 */
  3408. #define QM_REG_VOQQMASK_9_MSB_EXT_A 0x16e570
  3409. /* [RW 32] Wrr weights */
  3410. #define QM_REG_WRRWEIGHTS_0 0x16880c
  3411. #define QM_REG_WRRWEIGHTS_1 0x168810
  3412. #define QM_REG_WRRWEIGHTS_10 0x168814
  3413. #define QM_REG_WRRWEIGHTS_11 0x168818
  3414. #define QM_REG_WRRWEIGHTS_12 0x16881c
  3415. #define QM_REG_WRRWEIGHTS_13 0x168820
  3416. #define QM_REG_WRRWEIGHTS_14 0x168824
  3417. #define QM_REG_WRRWEIGHTS_15 0x168828
  3418. #define QM_REG_WRRWEIGHTS_16 0x16e000
  3419. #define QM_REG_WRRWEIGHTS_17 0x16e004
  3420. #define QM_REG_WRRWEIGHTS_18 0x16e008
  3421. #define QM_REG_WRRWEIGHTS_19 0x16e00c
  3422. #define QM_REG_WRRWEIGHTS_2 0x16882c
  3423. #define QM_REG_WRRWEIGHTS_20 0x16e010
  3424. #define QM_REG_WRRWEIGHTS_21 0x16e014
  3425. #define QM_REG_WRRWEIGHTS_22 0x16e018
  3426. #define QM_REG_WRRWEIGHTS_23 0x16e01c
  3427. #define QM_REG_WRRWEIGHTS_24 0x16e020
  3428. #define QM_REG_WRRWEIGHTS_25 0x16e024
  3429. #define QM_REG_WRRWEIGHTS_26 0x16e028
  3430. #define QM_REG_WRRWEIGHTS_27 0x16e02c
  3431. #define QM_REG_WRRWEIGHTS_28 0x16e030
  3432. #define QM_REG_WRRWEIGHTS_29 0x16e034
  3433. #define QM_REG_WRRWEIGHTS_3 0x168830
  3434. #define QM_REG_WRRWEIGHTS_30 0x16e038
  3435. #define QM_REG_WRRWEIGHTS_31 0x16e03c
  3436. #define QM_REG_WRRWEIGHTS_4 0x168834
  3437. #define QM_REG_WRRWEIGHTS_5 0x168838
  3438. #define QM_REG_WRRWEIGHTS_6 0x16883c
  3439. #define QM_REG_WRRWEIGHTS_7 0x168840
  3440. #define QM_REG_WRRWEIGHTS_8 0x168844
  3441. #define QM_REG_WRRWEIGHTS_9 0x168848
  3442. /* [R 6] Keep the fill level of the fifo from write client 1 */
  3443. #define QM_REG_XQM_WRC_FIFOLVL 0x168000
  3444. #define SRC_REG_COUNTFREE0 0x40500
  3445. /* [RW 1] If clr the searcher is compatible to E1 A0 - support only two
  3446. ports. If set the searcher support 8 functions. */
  3447. #define SRC_REG_E1HMF_ENABLE 0x404cc
  3448. #define SRC_REG_FIRSTFREE0 0x40510
  3449. #define SRC_REG_KEYRSS0_0 0x40408
  3450. #define SRC_REG_KEYRSS0_7 0x40424
  3451. #define SRC_REG_KEYRSS1_9 0x40454
  3452. #define SRC_REG_KEYSEARCH_0 0x40458
  3453. #define SRC_REG_KEYSEARCH_1 0x4045c
  3454. #define SRC_REG_KEYSEARCH_2 0x40460
  3455. #define SRC_REG_KEYSEARCH_3 0x40464
  3456. #define SRC_REG_KEYSEARCH_4 0x40468
  3457. #define SRC_REG_KEYSEARCH_5 0x4046c
  3458. #define SRC_REG_KEYSEARCH_6 0x40470
  3459. #define SRC_REG_KEYSEARCH_7 0x40474
  3460. #define SRC_REG_KEYSEARCH_8 0x40478
  3461. #define SRC_REG_KEYSEARCH_9 0x4047c
  3462. #define SRC_REG_LASTFREE0 0x40530
  3463. #define SRC_REG_NUMBER_HASH_BITS0 0x40400
  3464. /* [RW 1] Reset internal state machines. */
  3465. #define SRC_REG_SOFT_RST 0x4049c
  3466. /* [R 3] Interrupt register #0 read */
  3467. #define SRC_REG_SRC_INT_STS 0x404ac
  3468. /* [RW 3] Parity mask register #0 read/write */
  3469. #define SRC_REG_SRC_PRTY_MASK 0x404c8
  3470. /* [R 3] Parity register #0 read */
  3471. #define SRC_REG_SRC_PRTY_STS 0x404bc
  3472. /* [R 4] Used to read the value of the XX protection CAM occupancy counter. */
  3473. #define TCM_REG_CAM_OCCUP 0x5017c
  3474. /* [RW 1] CDU AG read Interface enable. If 0 - the request input is
  3475. disregarded; valid output is deasserted; all other signals are treated as
  3476. usual; if 1 - normal activity. */
  3477. #define TCM_REG_CDU_AG_RD_IFEN 0x50034
  3478. /* [RW 1] CDU AG write Interface enable. If 0 - the request and valid input
  3479. are disregarded; all other signals are treated as usual; if 1 - normal
  3480. activity. */
  3481. #define TCM_REG_CDU_AG_WR_IFEN 0x50030
  3482. /* [RW 1] CDU STORM read Interface enable. If 0 - the request input is
  3483. disregarded; valid output is deasserted; all other signals are treated as
  3484. usual; if 1 - normal activity. */
  3485. #define TCM_REG_CDU_SM_RD_IFEN 0x5003c
  3486. /* [RW 1] CDU STORM write Interface enable. If 0 - the request and valid
  3487. input is disregarded; all other signals are treated as usual; if 1 -
  3488. normal activity. */
  3489. #define TCM_REG_CDU_SM_WR_IFEN 0x50038
  3490. /* [RW 4] CFC output initial credit. Max credit available - 15.Write writes
  3491. the initial credit value; read returns the current value of the credit
  3492. counter. Must be initialized to 1 at start-up. */
  3493. #define TCM_REG_CFC_INIT_CRD 0x50204
  3494. /* [RW 3] The weight of the CP input in the WRR mechanism. 0 stands for
  3495. weight 8 (the most prioritised); 1 stands for weight 1(least
  3496. prioritised); 2 stands for weight 2; tc. */
  3497. #define TCM_REG_CP_WEIGHT 0x500c0
  3498. /* [RW 1] Input csem Interface enable. If 0 - the valid input is
  3499. disregarded; acknowledge output is deasserted; all other signals are
  3500. treated as usual; if 1 - normal activity. */
  3501. #define TCM_REG_CSEM_IFEN 0x5002c
  3502. /* [RC 1] Message length mismatch (relative to last indication) at the In#9
  3503. interface. */
  3504. #define TCM_REG_CSEM_LENGTH_MIS 0x50174
  3505. /* [RW 3] The weight of the input csem in the WRR mechanism. 0 stands for
  3506. weight 8 (the most prioritised); 1 stands for weight 1(least
  3507. prioritised); 2 stands for weight 2; tc. */
  3508. #define TCM_REG_CSEM_WEIGHT 0x500bc
  3509. /* [RW 8] The Event ID in case of ErrorFlg is set in the input message. */
  3510. #define TCM_REG_ERR_EVNT_ID 0x500a0
  3511. /* [RW 28] The CM erroneous header for QM and Timers formatting. */
  3512. #define TCM_REG_ERR_TCM_HDR 0x5009c
  3513. /* [RW 8] The Event ID for Timers expiration. */
  3514. #define TCM_REG_EXPR_EVNT_ID 0x500a4
  3515. /* [RW 8] FIC0 output initial credit. Max credit available - 255.Write
  3516. writes the initial credit value; read returns the current value of the
  3517. credit counter. Must be initialized to 64 at start-up. */
  3518. #define TCM_REG_FIC0_INIT_CRD 0x5020c
  3519. /* [RW 8] FIC1 output initial credit. Max credit available - 255.Write
  3520. writes the initial credit value; read returns the current value of the
  3521. credit counter. Must be initialized to 64 at start-up. */
  3522. #define TCM_REG_FIC1_INIT_CRD 0x50210
  3523. /* [RW 1] Arbitration between Input Arbiter groups: 0 - fair Round-Robin; 1
  3524. - strict priority defined by ~tcm_registers_gr_ag_pr.gr_ag_pr;
  3525. ~tcm_registers_gr_ld0_pr.gr_ld0_pr and
  3526. ~tcm_registers_gr_ld1_pr.gr_ld1_pr. */
  3527. #define TCM_REG_GR_ARB_TYPE 0x50114
  3528. /* [RW 2] Load (FIC0) channel group priority. The lowest priority is 0; the
  3529. highest priority is 3. It is supposed that the Store channel is the
  3530. compliment of the other 3 groups. */
  3531. #define TCM_REG_GR_LD0_PR 0x5011c
  3532. /* [RW 2] Load (FIC1) channel group priority. The lowest priority is 0; the
  3533. highest priority is 3. It is supposed that the Store channel is the
  3534. compliment of the other 3 groups. */
  3535. #define TCM_REG_GR_LD1_PR 0x50120
  3536. /* [RW 4] The number of double REG-pairs; loaded from the STORM context and
  3537. sent to STORM; for a specific connection type. The double REG-pairs are
  3538. used to align to STORM context row size of 128 bits. The offset of these
  3539. data in the STORM context is always 0. Index _i stands for the connection
  3540. type (one of 16). */
  3541. #define TCM_REG_N_SM_CTX_LD_0 0x50050
  3542. #define TCM_REG_N_SM_CTX_LD_1 0x50054
  3543. #define TCM_REG_N_SM_CTX_LD_2 0x50058
  3544. #define TCM_REG_N_SM_CTX_LD_3 0x5005c
  3545. #define TCM_REG_N_SM_CTX_LD_4 0x50060
  3546. #define TCM_REG_N_SM_CTX_LD_5 0x50064
  3547. /* [RW 1] Input pbf Interface enable. If 0 - the valid input is disregarded;
  3548. acknowledge output is deasserted; all other signals are treated as usual;
  3549. if 1 - normal activity. */
  3550. #define TCM_REG_PBF_IFEN 0x50024
  3551. /* [RC 1] Message length mismatch (relative to last indication) at the In#7
  3552. interface. */
  3553. #define TCM_REG_PBF_LENGTH_MIS 0x5016c
  3554. /* [RW 3] The weight of the input pbf in the WRR mechanism. 0 stands for
  3555. weight 8 (the most prioritised); 1 stands for weight 1(least
  3556. prioritised); 2 stands for weight 2; tc. */
  3557. #define TCM_REG_PBF_WEIGHT 0x500b4
  3558. #define TCM_REG_PHYS_QNUM0_0 0x500e0
  3559. #define TCM_REG_PHYS_QNUM0_1 0x500e4
  3560. #define TCM_REG_PHYS_QNUM1_0 0x500e8
  3561. #define TCM_REG_PHYS_QNUM1_1 0x500ec
  3562. #define TCM_REG_PHYS_QNUM2_0 0x500f0
  3563. #define TCM_REG_PHYS_QNUM2_1 0x500f4
  3564. #define TCM_REG_PHYS_QNUM3_0 0x500f8
  3565. #define TCM_REG_PHYS_QNUM3_1 0x500fc
  3566. /* [RW 1] Input prs Interface enable. If 0 - the valid input is disregarded;
  3567. acknowledge output is deasserted; all other signals are treated as usual;
  3568. if 1 - normal activity. */
  3569. #define TCM_REG_PRS_IFEN 0x50020
  3570. /* [RC 1] Message length mismatch (relative to last indication) at the In#6
  3571. interface. */
  3572. #define TCM_REG_PRS_LENGTH_MIS 0x50168
  3573. /* [RW 3] The weight of the input prs in the WRR mechanism. 0 stands for
  3574. weight 8 (the most prioritised); 1 stands for weight 1(least
  3575. prioritised); 2 stands for weight 2; tc. */
  3576. #define TCM_REG_PRS_WEIGHT 0x500b0
  3577. /* [RW 8] The Event ID for Timers formatting in case of stop done. */
  3578. #define TCM_REG_STOP_EVNT_ID 0x500a8
  3579. /* [RC 1] Message length mismatch (relative to last indication) at the STORM
  3580. interface. */
  3581. #define TCM_REG_STORM_LENGTH_MIS 0x50160
  3582. /* [RW 1] STORM - CM Interface enable. If 0 - the valid input is
  3583. disregarded; acknowledge output is deasserted; all other signals are
  3584. treated as usual; if 1 - normal activity. */
  3585. #define TCM_REG_STORM_TCM_IFEN 0x50010
  3586. /* [RW 3] The weight of the STORM input in the WRR mechanism. 0 stands for
  3587. weight 8 (the most prioritised); 1 stands for weight 1(least
  3588. prioritised); 2 stands for weight 2; tc. */
  3589. #define TCM_REG_STORM_WEIGHT 0x500ac
  3590. /* [RW 1] CM - CFC Interface enable. If 0 - the valid input is disregarded;
  3591. acknowledge output is deasserted; all other signals are treated as usual;
  3592. if 1 - normal activity. */
  3593. #define TCM_REG_TCM_CFC_IFEN 0x50040
  3594. /* [RW 11] Interrupt mask register #0 read/write */
  3595. #define TCM_REG_TCM_INT_MASK 0x501dc
  3596. /* [R 11] Interrupt register #0 read */
  3597. #define TCM_REG_TCM_INT_STS 0x501d0
  3598. /* [R 27] Parity register #0 read */
  3599. #define TCM_REG_TCM_PRTY_STS 0x501e0
  3600. /* [RW 3] The size of AG context region 0 in REG-pairs. Designates the MS
  3601. REG-pair number (e.g. if region 0 is 6 REG-pairs; the value should be 5).
  3602. Is used to determine the number of the AG context REG-pairs written back;
  3603. when the input message Reg1WbFlg isn't set. */
  3604. #define TCM_REG_TCM_REG0_SZ 0x500d8
  3605. /* [RW 1] CM - STORM 0 Interface enable. If 0 - the acknowledge input is
  3606. disregarded; valid is deasserted; all other signals are treated as usual;
  3607. if 1 - normal activity. */
  3608. #define TCM_REG_TCM_STORM0_IFEN 0x50004
  3609. /* [RW 1] CM - STORM 1 Interface enable. If 0 - the acknowledge input is
  3610. disregarded; valid is deasserted; all other signals are treated as usual;
  3611. if 1 - normal activity. */
  3612. #define TCM_REG_TCM_STORM1_IFEN 0x50008
  3613. /* [RW 1] CM - QM Interface enable. If 0 - the acknowledge input is
  3614. disregarded; valid is deasserted; all other signals are treated as usual;
  3615. if 1 - normal activity. */
  3616. #define TCM_REG_TCM_TQM_IFEN 0x5000c
  3617. /* [RW 1] If set the Q index; received from the QM is inserted to event ID. */
  3618. #define TCM_REG_TCM_TQM_USE_Q 0x500d4
  3619. /* [RW 28] The CM header for Timers expiration command. */
  3620. #define TCM_REG_TM_TCM_HDR 0x50098
  3621. /* [RW 1] Timers - CM Interface enable. If 0 - the valid input is
  3622. disregarded; acknowledge output is deasserted; all other signals are
  3623. treated as usual; if 1 - normal activity. */
  3624. #define TCM_REG_TM_TCM_IFEN 0x5001c
  3625. /* [RW 3] The weight of the Timers input in the WRR mechanism. 0 stands for
  3626. weight 8 (the most prioritised); 1 stands for weight 1(least
  3627. prioritised); 2 stands for weight 2; tc. */
  3628. #define TCM_REG_TM_WEIGHT 0x500d0
  3629. /* [RW 6] QM output initial credit. Max credit available - 32.Write writes
  3630. the initial credit value; read returns the current value of the credit
  3631. counter. Must be initialized to 32 at start-up. */
  3632. #define TCM_REG_TQM_INIT_CRD 0x5021c
  3633. /* [RW 3] The weight of the QM (primary) input in the WRR mechanism. 0
  3634. stands for weight 8 (the most prioritised); 1 stands for weight 1(least
  3635. prioritised); 2 stands for weight 2; tc. */
  3636. #define TCM_REG_TQM_P_WEIGHT 0x500c8
  3637. /* [RW 3] The weight of the QM (secondary) input in the WRR mechanism. 0
  3638. stands for weight 8 (the most prioritised); 1 stands for weight 1(least
  3639. prioritised); 2 stands for weight 2; tc. */
  3640. #define TCM_REG_TQM_S_WEIGHT 0x500cc
  3641. /* [RW 28] The CM header value for QM request (primary). */
  3642. #define TCM_REG_TQM_TCM_HDR_P 0x50090
  3643. /* [RW 28] The CM header value for QM request (secondary). */
  3644. #define TCM_REG_TQM_TCM_HDR_S 0x50094
  3645. /* [RW 1] QM - CM Interface enable. If 0 - the valid input is disregarded;
  3646. acknowledge output is deasserted; all other signals are treated as usual;
  3647. if 1 - normal activity. */
  3648. #define TCM_REG_TQM_TCM_IFEN 0x50014
  3649. /* [RW 1] Input SDM Interface enable. If 0 - the valid input is disregarded;
  3650. acknowledge output is deasserted; all other signals are treated as usual;
  3651. if 1 - normal activity. */
  3652. #define TCM_REG_TSDM_IFEN 0x50018
  3653. /* [RC 1] Message length mismatch (relative to last indication) at the SDM
  3654. interface. */
  3655. #define TCM_REG_TSDM_LENGTH_MIS 0x50164
  3656. /* [RW 3] The weight of the SDM input in the WRR mechanism. 0 stands for
  3657. weight 8 (the most prioritised); 1 stands for weight 1(least
  3658. prioritised); 2 stands for weight 2; tc. */
  3659. #define TCM_REG_TSDM_WEIGHT 0x500c4
  3660. /* [RW 1] Input usem Interface enable. If 0 - the valid input is
  3661. disregarded; acknowledge output is deasserted; all other signals are
  3662. treated as usual; if 1 - normal activity. */
  3663. #define TCM_REG_USEM_IFEN 0x50028
  3664. /* [RC 1] Message length mismatch (relative to last indication) at the In#8
  3665. interface. */
  3666. #define TCM_REG_USEM_LENGTH_MIS 0x50170
  3667. /* [RW 3] The weight of the input usem in the WRR mechanism. 0 stands for
  3668. weight 8 (the most prioritised); 1 stands for weight 1(least
  3669. prioritised); 2 stands for weight 2; tc. */
  3670. #define TCM_REG_USEM_WEIGHT 0x500b8
  3671. /* [RW 21] Indirect access to the descriptor table of the XX protection
  3672. mechanism. The fields are: [5:0] - length of the message; 15:6] - message
  3673. pointer; 20:16] - next pointer. */
  3674. #define TCM_REG_XX_DESCR_TABLE 0x50280
  3675. #define TCM_REG_XX_DESCR_TABLE_SIZE 32
  3676. /* [R 6] Use to read the value of XX protection Free counter. */
  3677. #define TCM_REG_XX_FREE 0x50178
  3678. /* [RW 6] Initial value for the credit counter; responsible for fulfilling
  3679. of the Input Stage XX protection buffer by the XX protection pending
  3680. messages. Max credit available - 127.Write writes the initial credit
  3681. value; read returns the current value of the credit counter. Must be
  3682. initialized to 19 at start-up. */
  3683. #define TCM_REG_XX_INIT_CRD 0x50220
  3684. /* [RW 6] Maximum link list size (messages locked) per connection in the XX
  3685. protection. */
  3686. #define TCM_REG_XX_MAX_LL_SZ 0x50044
  3687. /* [RW 6] The maximum number of pending messages; which may be stored in XX
  3688. protection. ~tcm_registers_xx_free.xx_free is read on read. */
  3689. #define TCM_REG_XX_MSG_NUM 0x50224
  3690. /* [RW 8] The Event ID; sent to the STORM in case of XX overflow. */
  3691. #define TCM_REG_XX_OVFL_EVNT_ID 0x50048
  3692. /* [RW 16] Indirect access to the XX table of the XX protection mechanism.
  3693. The fields are:[4:0] - tail pointer; [10:5] - Link List size; 15:11] -
  3694. header pointer. */
  3695. #define TCM_REG_XX_TABLE 0x50240
  3696. /* [RW 4] Load value for cfc ac credit cnt. */
  3697. #define TM_REG_CFC_AC_CRDCNT_VAL 0x164208
  3698. /* [RW 4] Load value for cfc cld credit cnt. */
  3699. #define TM_REG_CFC_CLD_CRDCNT_VAL 0x164210
  3700. /* [RW 8] Client0 context region. */
  3701. #define TM_REG_CL0_CONT_REGION 0x164030
  3702. /* [RW 8] Client1 context region. */
  3703. #define TM_REG_CL1_CONT_REGION 0x164034
  3704. /* [RW 8] Client2 context region. */
  3705. #define TM_REG_CL2_CONT_REGION 0x164038
  3706. /* [RW 2] Client in High priority client number. */
  3707. #define TM_REG_CLIN_PRIOR0_CLIENT 0x164024
  3708. /* [RW 4] Load value for clout0 cred cnt. */
  3709. #define TM_REG_CLOUT_CRDCNT0_VAL 0x164220
  3710. /* [RW 4] Load value for clout1 cred cnt. */
  3711. #define TM_REG_CLOUT_CRDCNT1_VAL 0x164228
  3712. /* [RW 4] Load value for clout2 cred cnt. */
  3713. #define TM_REG_CLOUT_CRDCNT2_VAL 0x164230
  3714. /* [RW 1] Enable client0 input. */
  3715. #define TM_REG_EN_CL0_INPUT 0x164008
  3716. /* [RW 1] Enable client1 input. */
  3717. #define TM_REG_EN_CL1_INPUT 0x16400c
  3718. /* [RW 1] Enable client2 input. */
  3719. #define TM_REG_EN_CL2_INPUT 0x164010
  3720. #define TM_REG_EN_LINEAR0_TIMER 0x164014
  3721. /* [RW 1] Enable real time counter. */
  3722. #define TM_REG_EN_REAL_TIME_CNT 0x1640d8
  3723. /* [RW 1] Enable for Timers state machines. */
  3724. #define TM_REG_EN_TIMERS 0x164000
  3725. /* [RW 4] Load value for expiration credit cnt. CFC max number of
  3726. outstanding load requests for timers (expiration) context loading. */
  3727. #define TM_REG_EXP_CRDCNT_VAL 0x164238
  3728. /* [RW 32] Linear0 logic address. */
  3729. #define TM_REG_LIN0_LOGIC_ADDR 0x164240
  3730. /* [RW 18] Linear0 Max active cid (in banks of 32 entries). */
  3731. #define TM_REG_LIN0_MAX_ACTIVE_CID 0x164048
  3732. /* [WB 64] Linear0 phy address. */
  3733. #define TM_REG_LIN0_PHY_ADDR 0x164270
  3734. /* [RW 1] Linear0 physical address valid. */
  3735. #define TM_REG_LIN0_PHY_ADDR_VALID 0x164248
  3736. #define TM_REG_LIN0_SCAN_ON 0x1640d0
  3737. /* [RW 24] Linear0 array scan timeout. */
  3738. #define TM_REG_LIN0_SCAN_TIME 0x16403c
  3739. /* [RW 32] Linear1 logic address. */
  3740. #define TM_REG_LIN1_LOGIC_ADDR 0x164250
  3741. /* [WB 64] Linear1 phy address. */
  3742. #define TM_REG_LIN1_PHY_ADDR 0x164280
  3743. /* [RW 1] Linear1 physical address valid. */
  3744. #define TM_REG_LIN1_PHY_ADDR_VALID 0x164258
  3745. /* [RW 6] Linear timer set_clear fifo threshold. */
  3746. #define TM_REG_LIN_SETCLR_FIFO_ALFULL_THR 0x164070
  3747. /* [RW 2] Load value for pci arbiter credit cnt. */
  3748. #define TM_REG_PCIARB_CRDCNT_VAL 0x164260
  3749. /* [RW 20] The amount of hardware cycles for each timer tick. */
  3750. #define TM_REG_TIMER_TICK_SIZE 0x16401c
  3751. /* [RW 8] Timers Context region. */
  3752. #define TM_REG_TM_CONTEXT_REGION 0x164044
  3753. /* [RW 1] Interrupt mask register #0 read/write */
  3754. #define TM_REG_TM_INT_MASK 0x1640fc
  3755. /* [R 1] Interrupt register #0 read */
  3756. #define TM_REG_TM_INT_STS 0x1640f0
  3757. /* [RW 8] The event id for aggregated interrupt 0 */
  3758. #define TSDM_REG_AGG_INT_EVENT_0 0x42038
  3759. #define TSDM_REG_AGG_INT_EVENT_1 0x4203c
  3760. #define TSDM_REG_AGG_INT_EVENT_2 0x42040
  3761. #define TSDM_REG_AGG_INT_EVENT_3 0x42044
  3762. #define TSDM_REG_AGG_INT_EVENT_4 0x42048
  3763. /* [RW 1] The T bit for aggregated interrupt 0 */
  3764. #define TSDM_REG_AGG_INT_T_0 0x420b8
  3765. #define TSDM_REG_AGG_INT_T_1 0x420bc
  3766. /* [RW 13] The start address in the internal RAM for the cfc_rsp lcid */
  3767. #define TSDM_REG_CFC_RSP_START_ADDR 0x42008
  3768. /* [RW 16] The maximum value of the competion counter #0 */
  3769. #define TSDM_REG_CMP_COUNTER_MAX0 0x4201c
  3770. /* [RW 16] The maximum value of the competion counter #1 */
  3771. #define TSDM_REG_CMP_COUNTER_MAX1 0x42020
  3772. /* [RW 16] The maximum value of the competion counter #2 */
  3773. #define TSDM_REG_CMP_COUNTER_MAX2 0x42024
  3774. /* [RW 16] The maximum value of the competion counter #3 */
  3775. #define TSDM_REG_CMP_COUNTER_MAX3 0x42028
  3776. /* [RW 13] The start address in the internal RAM for the completion
  3777. counters. */
  3778. #define TSDM_REG_CMP_COUNTER_START_ADDR 0x4200c
  3779. #define TSDM_REG_ENABLE_IN1 0x42238
  3780. #define TSDM_REG_ENABLE_IN2 0x4223c
  3781. #define TSDM_REG_ENABLE_OUT1 0x42240
  3782. #define TSDM_REG_ENABLE_OUT2 0x42244
  3783. /* [RW 4] The initial number of messages that can be sent to the pxp control
  3784. interface without receiving any ACK. */
  3785. #define TSDM_REG_INIT_CREDIT_PXP_CTRL 0x424bc
  3786. /* [ST 32] The number of ACK after placement messages received */
  3787. #define TSDM_REG_NUM_OF_ACK_AFTER_PLACE 0x4227c
  3788. /* [ST 32] The number of packet end messages received from the parser */
  3789. #define TSDM_REG_NUM_OF_PKT_END_MSG 0x42274
  3790. /* [ST 32] The number of requests received from the pxp async if */
  3791. #define TSDM_REG_NUM_OF_PXP_ASYNC_REQ 0x42278
  3792. /* [ST 32] The number of commands received in queue 0 */
  3793. #define TSDM_REG_NUM_OF_Q0_CMD 0x42248
  3794. /* [ST 32] The number of commands received in queue 10 */
  3795. #define TSDM_REG_NUM_OF_Q10_CMD 0x4226c
  3796. /* [ST 32] The number of commands received in queue 11 */
  3797. #define TSDM_REG_NUM_OF_Q11_CMD 0x42270
  3798. /* [ST 32] The number of commands received in queue 1 */
  3799. #define TSDM_REG_NUM_OF_Q1_CMD 0x4224c
  3800. /* [ST 32] The number of commands received in queue 3 */
  3801. #define TSDM_REG_NUM_OF_Q3_CMD 0x42250
  3802. /* [ST 32] The number of commands received in queue 4 */
  3803. #define TSDM_REG_NUM_OF_Q4_CMD 0x42254
  3804. /* [ST 32] The number of commands received in queue 5 */
  3805. #define TSDM_REG_NUM_OF_Q5_CMD 0x42258
  3806. /* [ST 32] The number of commands received in queue 6 */
  3807. #define TSDM_REG_NUM_OF_Q6_CMD 0x4225c
  3808. /* [ST 32] The number of commands received in queue 7 */
  3809. #define TSDM_REG_NUM_OF_Q7_CMD 0x42260
  3810. /* [ST 32] The number of commands received in queue 8 */
  3811. #define TSDM_REG_NUM_OF_Q8_CMD 0x42264
  3812. /* [ST 32] The number of commands received in queue 9 */
  3813. #define TSDM_REG_NUM_OF_Q9_CMD 0x42268
  3814. /* [RW 13] The start address in the internal RAM for the packet end message */
  3815. #define TSDM_REG_PCK_END_MSG_START_ADDR 0x42014
  3816. /* [RW 13] The start address in the internal RAM for queue counters */
  3817. #define TSDM_REG_Q_COUNTER_START_ADDR 0x42010
  3818. /* [R 1] pxp_ctrl rd_data fifo empty in sdm_dma_rsp block */
  3819. #define TSDM_REG_RSP_PXP_CTRL_RDATA_EMPTY 0x42548
  3820. /* [R 1] parser fifo empty in sdm_sync block */
  3821. #define TSDM_REG_SYNC_PARSER_EMPTY 0x42550
  3822. /* [R 1] parser serial fifo empty in sdm_sync block */
  3823. #define TSDM_REG_SYNC_SYNC_EMPTY 0x42558
  3824. /* [RW 32] Tick for timer counter. Applicable only when
  3825. ~tsdm_registers_timer_tick_enable.timer_tick_enable =1 */
  3826. #define TSDM_REG_TIMER_TICK 0x42000
  3827. /* [RW 32] Interrupt mask register #0 read/write */
  3828. #define TSDM_REG_TSDM_INT_MASK_0 0x4229c
  3829. #define TSDM_REG_TSDM_INT_MASK_1 0x422ac
  3830. /* [R 32] Interrupt register #0 read */
  3831. #define TSDM_REG_TSDM_INT_STS_0 0x42290
  3832. #define TSDM_REG_TSDM_INT_STS_1 0x422a0
  3833. /* [RW 11] Parity mask register #0 read/write */
  3834. #define TSDM_REG_TSDM_PRTY_MASK 0x422bc
  3835. /* [R 11] Parity register #0 read */
  3836. #define TSDM_REG_TSDM_PRTY_STS 0x422b0
  3837. /* [RW 5] The number of time_slots in the arbitration cycle */
  3838. #define TSEM_REG_ARB_CYCLE_SIZE 0x180034
  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 TSEM_REG_ARB_ELEMENT0 0x180020
  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 ~tsem_registers_arb_element0.arb_element0 */
  3847. #define TSEM_REG_ARB_ELEMENT1 0x180024
  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 ~tsem_registers_arb_element0.arb_element0
  3852. and ~tsem_registers_arb_element1.arb_element1 */
  3853. #define TSEM_REG_ARB_ELEMENT2 0x180028
  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 ~tsem_registers_arb_element0.arb_element0 and
  3858. ~tsem_registers_arb_element1.arb_element1 and
  3859. ~tsem_registers_arb_element2.arb_element2 */
  3860. #define TSEM_REG_ARB_ELEMENT3 0x18002c
  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 ~tsem_registers_arb_element0.arb_element0
  3865. and ~tsem_registers_arb_element1.arb_element1 and
  3866. ~tsem_registers_arb_element2.arb_element2 and
  3867. ~tsem_registers_arb_element3.arb_element3 */
  3868. #define TSEM_REG_ARB_ELEMENT4 0x180030
  3869. #define TSEM_REG_ENABLE_IN 0x1800a4
  3870. #define TSEM_REG_ENABLE_OUT 0x1800a8
  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. ~fast_memory.fast_memory should be added to eachsem_fast register offset. */
  3875. #define TSEM_REG_FAST_MEMORY 0x1a0000
  3876. /* [RW 1] Disables input messages from FIC0 May be updated during run_time
  3877. by the microcode */
  3878. #define TSEM_REG_FIC0_DISABLE 0x180224
  3879. /* [RW 1] Disables input messages from FIC1 May be updated during run_time
  3880. by the microcode */
  3881. #define TSEM_REG_FIC1_DISABLE 0x180234
  3882. /* [RW 15] Interrupt table Read and write access to it is not possible in
  3883. the middle of the work */
  3884. #define TSEM_REG_INT_TABLE 0x180400
  3885. /* [ST 24] Statistics register. The number of messages that entered through
  3886. FIC0 */
  3887. #define TSEM_REG_MSG_NUM_FIC0 0x180000
  3888. /* [ST 24] Statistics register. The number of messages that entered through
  3889. FIC1 */
  3890. #define TSEM_REG_MSG_NUM_FIC1 0x180004
  3891. /* [ST 24] Statistics register. The number of messages that were sent to
  3892. FOC0 */
  3893. #define TSEM_REG_MSG_NUM_FOC0 0x180008
  3894. /* [ST 24] Statistics register. The number of messages that were sent to
  3895. FOC1 */
  3896. #define TSEM_REG_MSG_NUM_FOC1 0x18000c
  3897. /* [ST 24] Statistics register. The number of messages that were sent to
  3898. FOC2 */
  3899. #define TSEM_REG_MSG_NUM_FOC2 0x180010
  3900. /* [ST 24] Statistics register. The number of messages that were sent to
  3901. FOC3 */
  3902. #define TSEM_REG_MSG_NUM_FOC3 0x180014
  3903. /* [RW 1] Disables input messages from the passive buffer May be updated
  3904. during run_time by the microcode */
  3905. #define TSEM_REG_PAS_DISABLE 0x18024c
  3906. /* [WB 128] Debug only. Passive buffer memory */
  3907. #define TSEM_REG_PASSIVE_BUFFER 0x181000
  3908. /* [WB 46] pram memory. B45 is parity; b[44:0] - data. */
  3909. #define TSEM_REG_PRAM 0x1c0000
  3910. /* [R 8] Valid sleeping threads indication have bit per thread */
  3911. #define TSEM_REG_SLEEP_THREADS_VALID 0x18026c
  3912. /* [R 1] EXT_STORE FIFO is empty in sem_slow_ls_ext */
  3913. #define TSEM_REG_SLOW_EXT_STORE_EMPTY 0x1802a0
  3914. /* [RW 8] List of free threads . There is a bit per thread. */
  3915. #define TSEM_REG_THREADS_LIST 0x1802e4
  3916. /* [RW 3] The arbitration scheme of time_slot 0 */
  3917. #define TSEM_REG_TS_0_AS 0x180038
  3918. /* [RW 3] The arbitration scheme of time_slot 10 */
  3919. #define TSEM_REG_TS_10_AS 0x180060
  3920. /* [RW 3] The arbitration scheme of time_slot 11 */
  3921. #define TSEM_REG_TS_11_AS 0x180064
  3922. /* [RW 3] The arbitration scheme of time_slot 12 */
  3923. #define TSEM_REG_TS_12_AS 0x180068
  3924. /* [RW 3] The arbitration scheme of time_slot 13 */
  3925. #define TSEM_REG_TS_13_AS 0x18006c
  3926. /* [RW 3] The arbitration scheme of time_slot 14 */
  3927. #define TSEM_REG_TS_14_AS 0x180070
  3928. /* [RW 3] The arbitration scheme of time_slot 15 */
  3929. #define TSEM_REG_TS_15_AS 0x180074
  3930. /* [RW 3] The arbitration scheme of time_slot 16 */
  3931. #define TSEM_REG_TS_16_AS 0x180078
  3932. /* [RW 3] The arbitration scheme of time_slot 17 */
  3933. #define TSEM_REG_TS_17_AS 0x18007c
  3934. /* [RW 3] The arbitration scheme of time_slot 18 */
  3935. #define TSEM_REG_TS_18_AS 0x180080
  3936. /* [RW 3] The arbitration scheme of time_slot 1 */
  3937. #define TSEM_REG_TS_1_AS 0x18003c
  3938. /* [RW 3] The arbitration scheme of time_slot 2 */
  3939. #define TSEM_REG_TS_2_AS 0x180040
  3940. /* [RW 3] The arbitration scheme of time_slot 3 */
  3941. #define TSEM_REG_TS_3_AS 0x180044
  3942. /* [RW 3] The arbitration scheme of time_slot 4 */
  3943. #define TSEM_REG_TS_4_AS 0x180048
  3944. /* [RW 3] The arbitration scheme of time_slot 5 */
  3945. #define TSEM_REG_TS_5_AS 0x18004c
  3946. /* [RW 3] The arbitration scheme of time_slot 6 */
  3947. #define TSEM_REG_TS_6_AS 0x180050
  3948. /* [RW 3] The arbitration scheme of time_slot 7 */
  3949. #define TSEM_REG_TS_7_AS 0x180054
  3950. /* [RW 3] The arbitration scheme of time_slot 8 */
  3951. #define TSEM_REG_TS_8_AS 0x180058
  3952. /* [RW 3] The arbitration scheme of time_slot 9 */
  3953. #define TSEM_REG_TS_9_AS 0x18005c
  3954. /* [RW 32] Interrupt mask register #0 read/write */
  3955. #define TSEM_REG_TSEM_INT_MASK_0 0x180100
  3956. #define TSEM_REG_TSEM_INT_MASK_1 0x180110
  3957. /* [R 32] Interrupt register #0 read */
  3958. #define TSEM_REG_TSEM_INT_STS_0 0x1800f4
  3959. #define TSEM_REG_TSEM_INT_STS_1 0x180104
  3960. /* [RW 32] Parity mask register #0 read/write */
  3961. #define TSEM_REG_TSEM_PRTY_MASK_0 0x180120
  3962. #define TSEM_REG_TSEM_PRTY_MASK_1 0x180130
  3963. /* [R 32] Parity register #0 read */
  3964. #define TSEM_REG_TSEM_PRTY_STS_0 0x180114
  3965. #define TSEM_REG_TSEM_PRTY_STS_1 0x180124
  3966. /* [W 7] VF or PF ID for reset error bit. Values 0-63 reset error bit for 64
  3967. * VF; values 64-67 reset error for 4 PF; values 68-127 are not valid. */
  3968. #define TSEM_REG_VFPF_ERR_NUM 0x180380
  3969. /* [RW 32] Indirect access to AG context with 32-bits granularity. The bits
  3970. * [10:8] of the address should be the offset within the accessed LCID
  3971. * context; the bits [7:0] are the accessed LCID.Example: to write to REG10
  3972. * LCID100. The RBC address should be 12'ha64. */
  3973. #define UCM_REG_AG_CTX 0xe2000
  3974. /* [R 5] Used to read the XX protection CAM occupancy counter. */
  3975. #define UCM_REG_CAM_OCCUP 0xe0170
  3976. /* [RW 1] CDU AG read Interface enable. If 0 - the request input is
  3977. disregarded; valid output is deasserted; all other signals are treated as
  3978. usual; if 1 - normal activity. */
  3979. #define UCM_REG_CDU_AG_RD_IFEN 0xe0038
  3980. /* [RW 1] CDU AG write Interface enable. If 0 - the request and valid input
  3981. are disregarded; all other signals are treated as usual; if 1 - normal
  3982. activity. */
  3983. #define UCM_REG_CDU_AG_WR_IFEN 0xe0034
  3984. /* [RW 1] CDU STORM read Interface enable. If 0 - the request input is
  3985. disregarded; valid output is deasserted; all other signals are treated as
  3986. usual; if 1 - normal activity. */
  3987. #define UCM_REG_CDU_SM_RD_IFEN 0xe0040
  3988. /* [RW 1] CDU STORM write Interface enable. If 0 - the request and valid
  3989. input is disregarded; all other signals are treated as usual; if 1 -
  3990. normal activity. */
  3991. #define UCM_REG_CDU_SM_WR_IFEN 0xe003c
  3992. /* [RW 4] CFC output initial credit. Max credit available - 15.Write writes
  3993. the initial credit value; read returns the current value of the credit
  3994. counter. Must be initialized to 1 at start-up. */
  3995. #define UCM_REG_CFC_INIT_CRD 0xe0204
  3996. /* [RW 3] The weight of the CP input in the WRR mechanism. 0 stands for
  3997. weight 8 (the most prioritised); 1 stands for weight 1(least
  3998. prioritised); 2 stands for weight 2; tc. */
  3999. #define UCM_REG_CP_WEIGHT 0xe00c4
  4000. /* [RW 1] Input csem Interface enable. If 0 - the valid input is
  4001. disregarded; acknowledge output is deasserted; all other signals are
  4002. treated as usual; if 1 - normal activity. */
  4003. #define UCM_REG_CSEM_IFEN 0xe0028
  4004. /* [RC 1] Set when the message length mismatch (relative to last indication)
  4005. at the csem interface is detected. */
  4006. #define UCM_REG_CSEM_LENGTH_MIS 0xe0160
  4007. /* [RW 3] The weight of the input csem in the WRR mechanism. 0 stands for
  4008. weight 8 (the most prioritised); 1 stands for weight 1(least
  4009. prioritised); 2 stands for weight 2; tc. */
  4010. #define UCM_REG_CSEM_WEIGHT 0xe00b8
  4011. /* [RW 1] Input dorq Interface enable. If 0 - the valid input is
  4012. disregarded; acknowledge output is deasserted; all other signals are
  4013. treated as usual; if 1 - normal activity. */
  4014. #define UCM_REG_DORQ_IFEN 0xe0030
  4015. /* [RC 1] Set when the message length mismatch (relative to last indication)
  4016. at the dorq interface is detected. */
  4017. #define UCM_REG_DORQ_LENGTH_MIS 0xe0168
  4018. /* [RW 3] The weight of the input dorq in the WRR mechanism. 0 stands for
  4019. weight 8 (the most prioritised); 1 stands for weight 1(least
  4020. prioritised); 2 stands for weight 2; tc. */
  4021. #define UCM_REG_DORQ_WEIGHT 0xe00c0
  4022. /* [RW 8] The Event ID in case ErrorFlg input message bit is set. */
  4023. #define UCM_REG_ERR_EVNT_ID 0xe00a4
  4024. /* [RW 28] The CM erroneous header for QM and Timers formatting. */
  4025. #define UCM_REG_ERR_UCM_HDR 0xe00a0
  4026. /* [RW 8] The Event ID for Timers expiration. */
  4027. #define UCM_REG_EXPR_EVNT_ID 0xe00a8
  4028. /* [RW 8] FIC0 output initial credit. Max credit available - 255.Write
  4029. writes the initial credit value; read returns the current value of the
  4030. credit counter. Must be initialized to 64 at start-up. */
  4031. #define UCM_REG_FIC0_INIT_CRD 0xe020c
  4032. /* [RW 8] FIC1 output initial credit. Max credit available - 255.Write
  4033. writes the initial credit value; read returns the current value of the
  4034. credit counter. Must be initialized to 64 at start-up. */
  4035. #define UCM_REG_FIC1_INIT_CRD 0xe0210
  4036. /* [RW 1] Arbitration between Input Arbiter groups: 0 - fair Round-Robin; 1
  4037. - strict priority defined by ~ucm_registers_gr_ag_pr.gr_ag_pr;
  4038. ~ucm_registers_gr_ld0_pr.gr_ld0_pr and
  4039. ~ucm_registers_gr_ld1_pr.gr_ld1_pr. */
  4040. #define UCM_REG_GR_ARB_TYPE 0xe0144
  4041. /* [RW 2] Load (FIC0) channel group priority. The lowest priority is 0; the
  4042. highest priority is 3. It is supposed that the Store channel group is
  4043. compliment to the others. */
  4044. #define UCM_REG_GR_LD0_PR 0xe014c
  4045. /* [RW 2] Load (FIC1) channel group priority. The lowest priority is 0; the
  4046. highest priority is 3. It is supposed that the Store channel group is
  4047. compliment to the others. */
  4048. #define UCM_REG_GR_LD1_PR 0xe0150
  4049. /* [RW 2] The queue index for invalidate counter flag decision. */
  4050. #define UCM_REG_INV_CFLG_Q 0xe00e4
  4051. /* [RW 5] The number of double REG-pairs; loaded from the STORM context and
  4052. sent to STORM; for a specific connection type. the double REG-pairs are
  4053. used in order to align to STORM context row size of 128 bits. The offset
  4054. of these data in the STORM context is always 0. Index _i stands for the
  4055. connection type (one of 16). */
  4056. #define UCM_REG_N_SM_CTX_LD_0 0xe0054
  4057. #define UCM_REG_N_SM_CTX_LD_1 0xe0058
  4058. #define UCM_REG_N_SM_CTX_LD_2 0xe005c
  4059. #define UCM_REG_N_SM_CTX_LD_3 0xe0060
  4060. #define UCM_REG_N_SM_CTX_LD_4 0xe0064
  4061. #define UCM_REG_N_SM_CTX_LD_5 0xe0068
  4062. #define UCM_REG_PHYS_QNUM0_0 0xe0110
  4063. #define UCM_REG_PHYS_QNUM0_1 0xe0114
  4064. #define UCM_REG_PHYS_QNUM1_0 0xe0118
  4065. #define UCM_REG_PHYS_QNUM1_1 0xe011c
  4066. #define UCM_REG_PHYS_QNUM2_0 0xe0120
  4067. #define UCM_REG_PHYS_QNUM2_1 0xe0124
  4068. #define UCM_REG_PHYS_QNUM3_0 0xe0128
  4069. #define UCM_REG_PHYS_QNUM3_1 0xe012c
  4070. /* [RW 8] The Event ID for Timers formatting in case of stop done. */
  4071. #define UCM_REG_STOP_EVNT_ID 0xe00ac
  4072. /* [RC 1] Set when the message length mismatch (relative to last indication)
  4073. at the STORM interface is detected. */
  4074. #define UCM_REG_STORM_LENGTH_MIS 0xe0154
  4075. /* [RW 1] STORM - CM Interface enable. If 0 - the valid input is
  4076. disregarded; acknowledge output is deasserted; all other signals are
  4077. treated as usual; if 1 - normal activity. */
  4078. #define UCM_REG_STORM_UCM_IFEN 0xe0010
  4079. /* [RW 3] The weight of the STORM input in the WRR mechanism. 0 stands for
  4080. weight 8 (the most prioritised); 1 stands for weight 1(least
  4081. prioritised); 2 stands for weight 2; tc. */
  4082. #define UCM_REG_STORM_WEIGHT 0xe00b0
  4083. /* [RW 4] Timers output initial credit. Max credit available - 15.Write
  4084. writes the initial credit value; read returns the current value of the
  4085. credit counter. Must be initialized to 4 at start-up. */
  4086. #define UCM_REG_TM_INIT_CRD 0xe021c
  4087. /* [RW 28] The CM header for Timers expiration command. */
  4088. #define UCM_REG_TM_UCM_HDR 0xe009c
  4089. /* [RW 1] Timers - CM Interface enable. If 0 - the valid input is
  4090. disregarded; acknowledge output is deasserted; all other signals are
  4091. treated as usual; if 1 - normal activity. */
  4092. #define UCM_REG_TM_UCM_IFEN 0xe001c
  4093. /* [RW 3] The weight of the Timers input in the WRR mechanism. 0 stands for
  4094. weight 8 (the most prioritised); 1 stands for weight 1(least
  4095. prioritised); 2 stands for weight 2; tc. */
  4096. #define UCM_REG_TM_WEIGHT 0xe00d4
  4097. /* [RW 1] Input tsem Interface enable. If 0 - the valid input is
  4098. disregarded; acknowledge output is deasserted; all other signals are
  4099. treated as usual; if 1 - normal activity. */
  4100. #define UCM_REG_TSEM_IFEN 0xe0024
  4101. /* [RC 1] Set when the message length mismatch (relative to last indication)
  4102. at the tsem interface is detected. */
  4103. #define UCM_REG_TSEM_LENGTH_MIS 0xe015c
  4104. /* [RW 3] The weight of the input tsem in the WRR mechanism. 0 stands for
  4105. weight 8 (the most prioritised); 1 stands for weight 1(least
  4106. prioritised); 2 stands for weight 2; tc. */
  4107. #define UCM_REG_TSEM_WEIGHT 0xe00b4
  4108. /* [RW 1] CM - CFC Interface enable. If 0 - the valid input is disregarded;
  4109. acknowledge output is deasserted; all other signals are treated as usual;
  4110. if 1 - normal activity. */
  4111. #define UCM_REG_UCM_CFC_IFEN 0xe0044
  4112. /* [RW 11] Interrupt mask register #0 read/write */
  4113. #define UCM_REG_UCM_INT_MASK 0xe01d4
  4114. /* [R 11] Interrupt register #0 read */
  4115. #define UCM_REG_UCM_INT_STS 0xe01c8
  4116. /* [R 27] Parity register #0 read */
  4117. #define UCM_REG_UCM_PRTY_STS 0xe01d8
  4118. /* [RW 2] The size of AG context region 0 in REG-pairs. Designates the MS
  4119. REG-pair number (e.g. if region 0 is 6 REG-pairs; the value should be 5).
  4120. Is used to determine the number of the AG context REG-pairs written back;
  4121. when the Reg1WbFlg isn't set. */
  4122. #define UCM_REG_UCM_REG0_SZ 0xe00dc
  4123. /* [RW 1] CM - STORM 0 Interface enable. If 0 - the acknowledge input is
  4124. disregarded; valid is deasserted; all other signals are treated as usual;
  4125. if 1 - normal activity. */
  4126. #define UCM_REG_UCM_STORM0_IFEN 0xe0004
  4127. /* [RW 1] CM - STORM 1 Interface enable. If 0 - the acknowledge input is
  4128. disregarded; valid is deasserted; all other signals are treated as usual;
  4129. if 1 - normal activity. */
  4130. #define UCM_REG_UCM_STORM1_IFEN 0xe0008
  4131. /* [RW 1] CM - Timers Interface enable. If 0 - the valid input is
  4132. disregarded; acknowledge output is deasserted; all other signals are
  4133. treated as usual; if 1 - normal activity. */
  4134. #define UCM_REG_UCM_TM_IFEN 0xe0020
  4135. /* [RW 1] CM - QM Interface enable. If 0 - the acknowledge input is
  4136. disregarded; valid is deasserted; all other signals are treated as usual;
  4137. if 1 - normal activity. */
  4138. #define UCM_REG_UCM_UQM_IFEN 0xe000c
  4139. /* [RW 1] If set the Q index; received from the QM is inserted to event ID. */
  4140. #define UCM_REG_UCM_UQM_USE_Q 0xe00d8
  4141. /* [RW 6] QM output initial credit. Max credit available - 32.Write writes
  4142. the initial credit value; read returns the current value of the credit
  4143. counter. Must be initialized to 32 at start-up. */
  4144. #define UCM_REG_UQM_INIT_CRD 0xe0220
  4145. /* [RW 3] The weight of the QM (primary) input in the WRR mechanism. 0
  4146. stands for weight 8 (the most prioritised); 1 stands for weight 1(least
  4147. prioritised); 2 stands for weight 2; tc. */
  4148. #define UCM_REG_UQM_P_WEIGHT 0xe00cc
  4149. /* [RW 3] The weight of the QM (secondary) input in the WRR mechanism. 0
  4150. stands for weight 8 (the most prioritised); 1 stands for weight 1(least
  4151. prioritised); 2 stands for weight 2; tc. */
  4152. #define UCM_REG_UQM_S_WEIGHT 0xe00d0
  4153. /* [RW 28] The CM header value for QM request (primary). */
  4154. #define UCM_REG_UQM_UCM_HDR_P 0xe0094
  4155. /* [RW 28] The CM header value for QM request (secondary). */
  4156. #define UCM_REG_UQM_UCM_HDR_S 0xe0098
  4157. /* [RW 1] QM - CM Interface enable. If 0 - the valid input is disregarded;
  4158. acknowledge output is deasserted; all other signals are treated as usual;
  4159. if 1 - normal activity. */
  4160. #define UCM_REG_UQM_UCM_IFEN 0xe0014
  4161. /* [RW 1] Input SDM Interface enable. If 0 - the valid input is disregarded;
  4162. acknowledge output is deasserted; all other signals are treated as usual;
  4163. if 1 - normal activity. */
  4164. #define UCM_REG_USDM_IFEN 0xe0018
  4165. /* [RC 1] Set when the message length mismatch (relative to last indication)
  4166. at the SDM interface is detected. */
  4167. #define UCM_REG_USDM_LENGTH_MIS 0xe0158
  4168. /* [RW 3] The weight of the SDM input in the WRR mechanism. 0 stands for
  4169. weight 8 (the most prioritised); 1 stands for weight 1(least
  4170. prioritised); 2 stands for weight 2; tc. */
  4171. #define UCM_REG_USDM_WEIGHT 0xe00c8
  4172. /* [RW 1] Input xsem Interface enable. If 0 - the valid input is
  4173. disregarded; acknowledge output is deasserted; all other signals are
  4174. treated as usual; if 1 - normal activity. */
  4175. #define UCM_REG_XSEM_IFEN 0xe002c
  4176. /* [RC 1] Set when the message length mismatch (relative to last indication)
  4177. at the xsem interface isdetected. */
  4178. #define UCM_REG_XSEM_LENGTH_MIS 0xe0164
  4179. /* [RW 3] The weight of the input xsem in the WRR mechanism. 0 stands for
  4180. weight 8 (the most prioritised); 1 stands for weight 1(least
  4181. prioritised); 2 stands for weight 2; tc. */
  4182. #define UCM_REG_XSEM_WEIGHT 0xe00bc
  4183. /* [RW 20] Indirect access to the descriptor table of the XX protection
  4184. mechanism. The fields are:[5:0] - message length; 14:6] - message
  4185. pointer; 19:15] - next pointer. */
  4186. #define UCM_REG_XX_DESCR_TABLE 0xe0280
  4187. #define UCM_REG_XX_DESCR_TABLE_SIZE 32
  4188. /* [R 6] Use to read the XX protection Free counter. */
  4189. #define UCM_REG_XX_FREE 0xe016c
  4190. /* [RW 6] Initial value for the credit counter; responsible for fulfilling
  4191. of the Input Stage XX protection buffer by the XX protection pending
  4192. messages. Write writes the initial credit value; read returns the current
  4193. value of the credit counter. Must be initialized to 12 at start-up. */
  4194. #define UCM_REG_XX_INIT_CRD 0xe0224
  4195. /* [RW 6] The maximum number of pending messages; which may be stored in XX
  4196. protection. ~ucm_registers_xx_free.xx_free read on read. */
  4197. #define UCM_REG_XX_MSG_NUM 0xe0228
  4198. /* [RW 8] The Event ID; sent to the STORM in case of XX overflow. */
  4199. #define UCM_REG_XX_OVFL_EVNT_ID 0xe004c
  4200. /* [RW 16] Indirect access to the XX table of the XX protection mechanism.
  4201. The fields are: [4:0] - tail pointer; 10:5] - Link List size; 15:11] -
  4202. header pointer. */
  4203. #define UCM_REG_XX_TABLE 0xe0300
  4204. /* [RW 8] The event id for aggregated interrupt 0 */
  4205. #define USDM_REG_AGG_INT_EVENT_0 0xc4038
  4206. #define USDM_REG_AGG_INT_EVENT_1 0xc403c
  4207. #define USDM_REG_AGG_INT_EVENT_2 0xc4040
  4208. #define USDM_REG_AGG_INT_EVENT_4 0xc4048
  4209. #define USDM_REG_AGG_INT_EVENT_5 0xc404c
  4210. #define USDM_REG_AGG_INT_EVENT_6 0xc4050
  4211. /* [RW 1] For each aggregated interrupt index whether the mode is normal (0)
  4212. or auto-mask-mode (1) */
  4213. #define USDM_REG_AGG_INT_MODE_0 0xc41b8
  4214. #define USDM_REG_AGG_INT_MODE_1 0xc41bc
  4215. #define USDM_REG_AGG_INT_MODE_4 0xc41c8
  4216. #define USDM_REG_AGG_INT_MODE_5 0xc41cc
  4217. #define USDM_REG_AGG_INT_MODE_6 0xc41d0
  4218. /* [RW 1] The T bit for aggregated interrupt 5 */
  4219. #define USDM_REG_AGG_INT_T_5 0xc40cc
  4220. #define USDM_REG_AGG_INT_T_6 0xc40d0
  4221. /* [RW 13] The start address in the internal RAM for the cfc_rsp lcid */
  4222. #define USDM_REG_CFC_RSP_START_ADDR 0xc4008
  4223. /* [RW 16] The maximum value of the competion counter #0 */
  4224. #define USDM_REG_CMP_COUNTER_MAX0 0xc401c
  4225. /* [RW 16] The maximum value of the competion counter #1 */
  4226. #define USDM_REG_CMP_COUNTER_MAX1 0xc4020
  4227. /* [RW 16] The maximum value of the competion counter #2 */
  4228. #define USDM_REG_CMP_COUNTER_MAX2 0xc4024
  4229. /* [RW 16] The maximum value of the competion counter #3 */
  4230. #define USDM_REG_CMP_COUNTER_MAX3 0xc4028
  4231. /* [RW 13] The start address in the internal RAM for the completion
  4232. counters. */
  4233. #define USDM_REG_CMP_COUNTER_START_ADDR 0xc400c
  4234. #define USDM_REG_ENABLE_IN1 0xc4238
  4235. #define USDM_REG_ENABLE_IN2 0xc423c
  4236. #define USDM_REG_ENABLE_OUT1 0xc4240
  4237. #define USDM_REG_ENABLE_OUT2 0xc4244
  4238. /* [RW 4] The initial number of messages that can be sent to the pxp control
  4239. interface without receiving any ACK. */
  4240. #define USDM_REG_INIT_CREDIT_PXP_CTRL 0xc44c0
  4241. /* [ST 32] The number of ACK after placement messages received */
  4242. #define USDM_REG_NUM_OF_ACK_AFTER_PLACE 0xc4280
  4243. /* [ST 32] The number of packet end messages received from the parser */
  4244. #define USDM_REG_NUM_OF_PKT_END_MSG 0xc4278
  4245. /* [ST 32] The number of requests received from the pxp async if */
  4246. #define USDM_REG_NUM_OF_PXP_ASYNC_REQ 0xc427c
  4247. /* [ST 32] The number of commands received in queue 0 */
  4248. #define USDM_REG_NUM_OF_Q0_CMD 0xc4248
  4249. /* [ST 32] The number of commands received in queue 10 */
  4250. #define USDM_REG_NUM_OF_Q10_CMD 0xc4270
  4251. /* [ST 32] The number of commands received in queue 11 */
  4252. #define USDM_REG_NUM_OF_Q11_CMD 0xc4274
  4253. /* [ST 32] The number of commands received in queue 1 */
  4254. #define USDM_REG_NUM_OF_Q1_CMD 0xc424c
  4255. /* [ST 32] The number of commands received in queue 2 */
  4256. #define USDM_REG_NUM_OF_Q2_CMD 0xc4250
  4257. /* [ST 32] The number of commands received in queue 3 */
  4258. #define USDM_REG_NUM_OF_Q3_CMD 0xc4254
  4259. /* [ST 32] The number of commands received in queue 4 */
  4260. #define USDM_REG_NUM_OF_Q4_CMD 0xc4258
  4261. /* [ST 32] The number of commands received in queue 5 */
  4262. #define USDM_REG_NUM_OF_Q5_CMD 0xc425c
  4263. /* [ST 32] The number of commands received in queue 6 */
  4264. #define USDM_REG_NUM_OF_Q6_CMD 0xc4260
  4265. /* [ST 32] The number of commands received in queue 7 */
  4266. #define USDM_REG_NUM_OF_Q7_CMD 0xc4264
  4267. /* [ST 32] The number of commands received in queue 8 */
  4268. #define USDM_REG_NUM_OF_Q8_CMD 0xc4268
  4269. /* [ST 32] The number of commands received in queue 9 */
  4270. #define USDM_REG_NUM_OF_Q9_CMD 0xc426c
  4271. /* [RW 13] The start address in the internal RAM for the packet end message */
  4272. #define USDM_REG_PCK_END_MSG_START_ADDR 0xc4014
  4273. /* [RW 13] The start address in the internal RAM for queue counters */
  4274. #define USDM_REG_Q_COUNTER_START_ADDR 0xc4010
  4275. /* [R 1] pxp_ctrl rd_data fifo empty in sdm_dma_rsp block */
  4276. #define USDM_REG_RSP_PXP_CTRL_RDATA_EMPTY 0xc4550
  4277. /* [R 1] parser fifo empty in sdm_sync block */
  4278. #define USDM_REG_SYNC_PARSER_EMPTY 0xc4558
  4279. /* [R 1] parser serial fifo empty in sdm_sync block */
  4280. #define USDM_REG_SYNC_SYNC_EMPTY 0xc4560
  4281. /* [RW 32] Tick for timer counter. Applicable only when
  4282. ~usdm_registers_timer_tick_enable.timer_tick_enable =1 */
  4283. #define USDM_REG_TIMER_TICK 0xc4000
  4284. /* [RW 32] Interrupt mask register #0 read/write */
  4285. #define USDM_REG_USDM_INT_MASK_0 0xc42a0
  4286. #define USDM_REG_USDM_INT_MASK_1 0xc42b0
  4287. /* [R 32] Interrupt register #0 read */
  4288. #define USDM_REG_USDM_INT_STS_0 0xc4294
  4289. #define USDM_REG_USDM_INT_STS_1 0xc42a4
  4290. /* [RW 11] Parity mask register #0 read/write */
  4291. #define USDM_REG_USDM_PRTY_MASK 0xc42c0
  4292. /* [R 11] Parity register #0 read */
  4293. #define USDM_REG_USDM_PRTY_STS 0xc42b4
  4294. /* [RW 5] The number of time_slots in the arbitration cycle */
  4295. #define USEM_REG_ARB_CYCLE_SIZE 0x300034
  4296. /* [RW 3] The source that is associated with arbitration element 0. Source
  4297. decoding is: 0- foc0; 1-fic1; 2-sleeping thread with priority 0; 3-
  4298. sleeping thread with priority 1; 4- sleeping thread with priority 2 */
  4299. #define USEM_REG_ARB_ELEMENT0 0x300020
  4300. /* [RW 3] The source that is associated with arbitration element 1. Source
  4301. decoding is: 0- foc0; 1-fic1; 2-sleeping thread with priority 0; 3-
  4302. sleeping thread with priority 1; 4- sleeping thread with priority 2.
  4303. Could not be equal to register ~usem_registers_arb_element0.arb_element0 */
  4304. #define USEM_REG_ARB_ELEMENT1 0x300024
  4305. /* [RW 3] The source that is associated with arbitration element 2. Source
  4306. decoding is: 0- foc0; 1-fic1; 2-sleeping thread with priority 0; 3-
  4307. sleeping thread with priority 1; 4- sleeping thread with priority 2.
  4308. Could not be equal to register ~usem_registers_arb_element0.arb_element0
  4309. and ~usem_registers_arb_element1.arb_element1 */
  4310. #define USEM_REG_ARB_ELEMENT2 0x300028
  4311. /* [RW 3] The source that is associated with arbitration element 3. Source
  4312. decoding is: 0- foc0; 1-fic1; 2-sleeping thread with priority 0; 3-
  4313. sleeping thread with priority 1; 4- sleeping thread with priority 2.Could
  4314. not be equal to register ~usem_registers_arb_element0.arb_element0 and
  4315. ~usem_registers_arb_element1.arb_element1 and
  4316. ~usem_registers_arb_element2.arb_element2 */
  4317. #define USEM_REG_ARB_ELEMENT3 0x30002c
  4318. /* [RW 3] The source that is associated with arbitration element 4. Source
  4319. decoding is: 0- foc0; 1-fic1; 2-sleeping thread with priority 0; 3-
  4320. sleeping thread with priority 1; 4- sleeping thread with priority 2.
  4321. Could not be equal to register ~usem_registers_arb_element0.arb_element0
  4322. and ~usem_registers_arb_element1.arb_element1 and
  4323. ~usem_registers_arb_element2.arb_element2 and
  4324. ~usem_registers_arb_element3.arb_element3 */
  4325. #define USEM_REG_ARB_ELEMENT4 0x300030
  4326. #define USEM_REG_ENABLE_IN 0x3000a4
  4327. #define USEM_REG_ENABLE_OUT 0x3000a8
  4328. /* [RW 32] This address space contains all registers and memories that are
  4329. placed in SEM_FAST block. The SEM_FAST registers are described in
  4330. appendix B. In order to access the sem_fast registers the base address
  4331. ~fast_memory.fast_memory should be added to eachsem_fast register offset. */
  4332. #define USEM_REG_FAST_MEMORY 0x320000
  4333. /* [RW 1] Disables input messages from FIC0 May be updated during run_time
  4334. by the microcode */
  4335. #define USEM_REG_FIC0_DISABLE 0x300224
  4336. /* [RW 1] Disables input messages from FIC1 May be updated during run_time
  4337. by the microcode */
  4338. #define USEM_REG_FIC1_DISABLE 0x300234
  4339. /* [RW 15] Interrupt table Read and write access to it is not possible in
  4340. the middle of the work */
  4341. #define USEM_REG_INT_TABLE 0x300400
  4342. /* [ST 24] Statistics register. The number of messages that entered through
  4343. FIC0 */
  4344. #define USEM_REG_MSG_NUM_FIC0 0x300000
  4345. /* [ST 24] Statistics register. The number of messages that entered through
  4346. FIC1 */
  4347. #define USEM_REG_MSG_NUM_FIC1 0x300004
  4348. /* [ST 24] Statistics register. The number of messages that were sent to
  4349. FOC0 */
  4350. #define USEM_REG_MSG_NUM_FOC0 0x300008
  4351. /* [ST 24] Statistics register. The number of messages that were sent to
  4352. FOC1 */
  4353. #define USEM_REG_MSG_NUM_FOC1 0x30000c
  4354. /* [ST 24] Statistics register. The number of messages that were sent to
  4355. FOC2 */
  4356. #define USEM_REG_MSG_NUM_FOC2 0x300010
  4357. /* [ST 24] Statistics register. The number of messages that were sent to
  4358. FOC3 */
  4359. #define USEM_REG_MSG_NUM_FOC3 0x300014
  4360. /* [RW 1] Disables input messages from the passive buffer May be updated
  4361. during run_time by the microcode */
  4362. #define USEM_REG_PAS_DISABLE 0x30024c
  4363. /* [WB 128] Debug only. Passive buffer memory */
  4364. #define USEM_REG_PASSIVE_BUFFER 0x302000
  4365. /* [WB 46] pram memory. B45 is parity; b[44:0] - data. */
  4366. #define USEM_REG_PRAM 0x340000
  4367. /* [R 16] Valid sleeping threads indication have bit per thread */
  4368. #define USEM_REG_SLEEP_THREADS_VALID 0x30026c
  4369. /* [R 1] EXT_STORE FIFO is empty in sem_slow_ls_ext */
  4370. #define USEM_REG_SLOW_EXT_STORE_EMPTY 0x3002a0
  4371. /* [RW 16] List of free threads . There is a bit per thread. */
  4372. #define USEM_REG_THREADS_LIST 0x3002e4
  4373. /* [RW 3] The arbitration scheme of time_slot 0 */
  4374. #define USEM_REG_TS_0_AS 0x300038
  4375. /* [RW 3] The arbitration scheme of time_slot 10 */
  4376. #define USEM_REG_TS_10_AS 0x300060
  4377. /* [RW 3] The arbitration scheme of time_slot 11 */
  4378. #define USEM_REG_TS_11_AS 0x300064
  4379. /* [RW 3] The arbitration scheme of time_slot 12 */
  4380. #define USEM_REG_TS_12_AS 0x300068
  4381. /* [RW 3] The arbitration scheme of time_slot 13 */
  4382. #define USEM_REG_TS_13_AS 0x30006c
  4383. /* [RW 3] The arbitration scheme of time_slot 14 */
  4384. #define USEM_REG_TS_14_AS 0x300070
  4385. /* [RW 3] The arbitration scheme of time_slot 15 */
  4386. #define USEM_REG_TS_15_AS 0x300074
  4387. /* [RW 3] The arbitration scheme of time_slot 16 */
  4388. #define USEM_REG_TS_16_AS 0x300078
  4389. /* [RW 3] The arbitration scheme of time_slot 17 */
  4390. #define USEM_REG_TS_17_AS 0x30007c
  4391. /* [RW 3] The arbitration scheme of time_slot 18 */
  4392. #define USEM_REG_TS_18_AS 0x300080
  4393. /* [RW 3] The arbitration scheme of time_slot 1 */
  4394. #define USEM_REG_TS_1_AS 0x30003c
  4395. /* [RW 3] The arbitration scheme of time_slot 2 */
  4396. #define USEM_REG_TS_2_AS 0x300040
  4397. /* [RW 3] The arbitration scheme of time_slot 3 */
  4398. #define USEM_REG_TS_3_AS 0x300044
  4399. /* [RW 3] The arbitration scheme of time_slot 4 */
  4400. #define USEM_REG_TS_4_AS 0x300048
  4401. /* [RW 3] The arbitration scheme of time_slot 5 */
  4402. #define USEM_REG_TS_5_AS 0x30004c
  4403. /* [RW 3] The arbitration scheme of time_slot 6 */
  4404. #define USEM_REG_TS_6_AS 0x300050
  4405. /* [RW 3] The arbitration scheme of time_slot 7 */
  4406. #define USEM_REG_TS_7_AS 0x300054
  4407. /* [RW 3] The arbitration scheme of time_slot 8 */
  4408. #define USEM_REG_TS_8_AS 0x300058
  4409. /* [RW 3] The arbitration scheme of time_slot 9 */
  4410. #define USEM_REG_TS_9_AS 0x30005c
  4411. /* [RW 32] Interrupt mask register #0 read/write */
  4412. #define USEM_REG_USEM_INT_MASK_0 0x300110
  4413. #define USEM_REG_USEM_INT_MASK_1 0x300120
  4414. /* [R 32] Interrupt register #0 read */
  4415. #define USEM_REG_USEM_INT_STS_0 0x300104
  4416. #define USEM_REG_USEM_INT_STS_1 0x300114
  4417. /* [RW 32] Parity mask register #0 read/write */
  4418. #define USEM_REG_USEM_PRTY_MASK_0 0x300130
  4419. #define USEM_REG_USEM_PRTY_MASK_1 0x300140
  4420. /* [R 32] Parity register #0 read */
  4421. #define USEM_REG_USEM_PRTY_STS_0 0x300124
  4422. #define USEM_REG_USEM_PRTY_STS_1 0x300134
  4423. /* [W 7] VF or PF ID for reset error bit. Values 0-63 reset error bit for 64
  4424. * VF; values 64-67 reset error for 4 PF; values 68-127 are not valid. */
  4425. #define USEM_REG_VFPF_ERR_NUM 0x300380
  4426. #define VFC_MEMORIES_RST_REG_CAM_RST (0x1<<0)
  4427. #define VFC_MEMORIES_RST_REG_RAM_RST (0x1<<1)
  4428. #define VFC_REG_MEMORIES_RST 0x1943c
  4429. /* [RW 32] Indirect access to AG context with 32-bits granularity. The bits
  4430. * [12:8] of the address should be the offset within the accessed LCID
  4431. * context; the bits [7:0] are the accessed LCID.Example: to write to REG10
  4432. * LCID100. The RBC address should be 13'ha64. */
  4433. #define XCM_REG_AG_CTX 0x28000
  4434. /* [RW 2] The queue index for registration on Aux1 counter flag. */
  4435. #define XCM_REG_AUX1_Q 0x20134
  4436. /* [RW 2] Per each decision rule the queue index to register to. */
  4437. #define XCM_REG_AUX_CNT_FLG_Q_19 0x201b0
  4438. /* [R 5] Used to read the XX protection CAM occupancy counter. */
  4439. #define XCM_REG_CAM_OCCUP 0x20244
  4440. /* [RW 1] CDU AG read Interface enable. If 0 - the request input is
  4441. disregarded; valid output is deasserted; all other signals are treated as
  4442. usual; if 1 - normal activity. */
  4443. #define XCM_REG_CDU_AG_RD_IFEN 0x20044
  4444. /* [RW 1] CDU AG write Interface enable. If 0 - the request and valid input
  4445. are disregarded; all other signals are treated as usual; if 1 - normal
  4446. activity. */
  4447. #define XCM_REG_CDU_AG_WR_IFEN 0x20040
  4448. /* [RW 1] CDU STORM read Interface enable. If 0 - the request input is
  4449. disregarded; valid output is deasserted; all other signals are treated as
  4450. usual; if 1 - normal activity. */
  4451. #define XCM_REG_CDU_SM_RD_IFEN 0x2004c
  4452. /* [RW 1] CDU STORM write Interface enable. If 0 - the request and valid
  4453. input is disregarded; all other signals are treated as usual; if 1 -
  4454. normal activity. */
  4455. #define XCM_REG_CDU_SM_WR_IFEN 0x20048
  4456. /* [RW 4] CFC output initial credit. Max credit available - 15.Write writes
  4457. the initial credit value; read returns the current value of the credit
  4458. counter. Must be initialized to 1 at start-up. */
  4459. #define XCM_REG_CFC_INIT_CRD 0x20404
  4460. /* [RW 3] The weight of the CP input in the WRR mechanism. 0 stands for
  4461. weight 8 (the most prioritised); 1 stands for weight 1(least
  4462. prioritised); 2 stands for weight 2; tc. */
  4463. #define XCM_REG_CP_WEIGHT 0x200dc
  4464. /* [RW 1] Input csem Interface enable. If 0 - the valid input is
  4465. disregarded; acknowledge output is deasserted; all other signals are
  4466. treated as usual; if 1 - normal activity. */
  4467. #define XCM_REG_CSEM_IFEN 0x20028
  4468. /* [RC 1] Set at message length mismatch (relative to last indication) at
  4469. the csem interface. */
  4470. #define XCM_REG_CSEM_LENGTH_MIS 0x20228
  4471. /* [RW 3] The weight of the input csem in the WRR mechanism. 0 stands for
  4472. weight 8 (the most prioritised); 1 stands for weight 1(least
  4473. prioritised); 2 stands for weight 2; tc. */
  4474. #define XCM_REG_CSEM_WEIGHT 0x200c4
  4475. /* [RW 1] Input dorq Interface enable. If 0 - the valid input is
  4476. disregarded; acknowledge output is deasserted; all other signals are
  4477. treated as usual; if 1 - normal activity. */
  4478. #define XCM_REG_DORQ_IFEN 0x20030
  4479. /* [RC 1] Set at message length mismatch (relative to last indication) at
  4480. the dorq interface. */
  4481. #define XCM_REG_DORQ_LENGTH_MIS 0x20230
  4482. /* [RW 3] The weight of the input dorq in the WRR mechanism. 0 stands for
  4483. weight 8 (the most prioritised); 1 stands for weight 1(least
  4484. prioritised); 2 stands for weight 2; tc. */
  4485. #define XCM_REG_DORQ_WEIGHT 0x200cc
  4486. /* [RW 8] The Event ID in case the ErrorFlg input message bit is set. */
  4487. #define XCM_REG_ERR_EVNT_ID 0x200b0
  4488. /* [RW 28] The CM erroneous header for QM and Timers formatting. */
  4489. #define XCM_REG_ERR_XCM_HDR 0x200ac
  4490. /* [RW 8] The Event ID for Timers expiration. */
  4491. #define XCM_REG_EXPR_EVNT_ID 0x200b4
  4492. /* [RW 8] FIC0 output initial credit. Max credit available - 255.Write
  4493. writes the initial credit value; read returns the current value of the
  4494. credit counter. Must be initialized to 64 at start-up. */
  4495. #define XCM_REG_FIC0_INIT_CRD 0x2040c
  4496. /* [RW 8] FIC1 output initial credit. Max credit available - 255.Write
  4497. writes the initial credit value; read returns the current value of the
  4498. credit counter. Must be initialized to 64 at start-up. */
  4499. #define XCM_REG_FIC1_INIT_CRD 0x20410
  4500. #define XCM_REG_GLB_DEL_ACK_MAX_CNT_0 0x20118
  4501. #define XCM_REG_GLB_DEL_ACK_MAX_CNT_1 0x2011c
  4502. #define XCM_REG_GLB_DEL_ACK_TMR_VAL_0 0x20108
  4503. #define XCM_REG_GLB_DEL_ACK_TMR_VAL_1 0x2010c
  4504. /* [RW 1] Arbitratiojn between Input Arbiter groups: 0 - fair Round-Robin; 1
  4505. - strict priority defined by ~xcm_registers_gr_ag_pr.gr_ag_pr;
  4506. ~xcm_registers_gr_ld0_pr.gr_ld0_pr and
  4507. ~xcm_registers_gr_ld1_pr.gr_ld1_pr. */
  4508. #define XCM_REG_GR_ARB_TYPE 0x2020c
  4509. /* [RW 2] Load (FIC0) channel group priority. The lowest priority is 0; the
  4510. highest priority is 3. It is supposed that the Channel group is the
  4511. compliment of the other 3 groups. */
  4512. #define XCM_REG_GR_LD0_PR 0x20214
  4513. /* [RW 2] Load (FIC1) channel group priority. The lowest priority is 0; the
  4514. highest priority is 3. It is supposed that the Channel group is the
  4515. compliment of the other 3 groups. */
  4516. #define XCM_REG_GR_LD1_PR 0x20218
  4517. /* [RW 1] Input nig0 Interface enable. If 0 - the valid input is
  4518. disregarded; acknowledge output is deasserted; all other signals are
  4519. treated as usual; if 1 - normal activity. */
  4520. #define XCM_REG_NIG0_IFEN 0x20038
  4521. /* [RC 1] Set at message length mismatch (relative to last indication) at
  4522. the nig0 interface. */
  4523. #define XCM_REG_NIG0_LENGTH_MIS 0x20238
  4524. /* [RW 3] The weight of the input nig0 in the WRR mechanism. 0 stands for
  4525. weight 8 (the most prioritised); 1 stands for weight 1(least
  4526. prioritised); 2 stands for weight 2; tc. */
  4527. #define XCM_REG_NIG0_WEIGHT 0x200d4
  4528. /* [RW 1] Input nig1 Interface enable. If 0 - the valid input is
  4529. disregarded; acknowledge output is deasserted; all other signals are
  4530. treated as usual; if 1 - normal activity. */
  4531. #define XCM_REG_NIG1_IFEN 0x2003c
  4532. /* [RC 1] Set at message length mismatch (relative to last indication) at
  4533. the nig1 interface. */
  4534. #define XCM_REG_NIG1_LENGTH_MIS 0x2023c
  4535. /* [RW 5] The number of double REG-pairs; loaded from the STORM context and
  4536. sent to STORM; for a specific connection type. The double REG-pairs are
  4537. used in order to align to STORM context row size of 128 bits. The offset
  4538. of these data in the STORM context is always 0. Index _i stands for the
  4539. connection type (one of 16). */
  4540. #define XCM_REG_N_SM_CTX_LD_0 0x20060
  4541. #define XCM_REG_N_SM_CTX_LD_1 0x20064
  4542. #define XCM_REG_N_SM_CTX_LD_2 0x20068
  4543. #define XCM_REG_N_SM_CTX_LD_3 0x2006c
  4544. #define XCM_REG_N_SM_CTX_LD_4 0x20070
  4545. #define XCM_REG_N_SM_CTX_LD_5 0x20074
  4546. /* [RW 1] Input pbf Interface enable. If 0 - the valid input is disregarded;
  4547. acknowledge output is deasserted; all other signals are treated as usual;
  4548. if 1 - normal activity. */
  4549. #define XCM_REG_PBF_IFEN 0x20034
  4550. /* [RC 1] Set at message length mismatch (relative to last indication) at
  4551. the pbf interface. */
  4552. #define XCM_REG_PBF_LENGTH_MIS 0x20234
  4553. /* [RW 3] The weight of the input pbf in the WRR mechanism. 0 stands for
  4554. weight 8 (the most prioritised); 1 stands for weight 1(least
  4555. prioritised); 2 stands for weight 2; tc. */
  4556. #define XCM_REG_PBF_WEIGHT 0x200d0
  4557. #define XCM_REG_PHYS_QNUM3_0 0x20100
  4558. #define XCM_REG_PHYS_QNUM3_1 0x20104
  4559. /* [RW 8] The Event ID for Timers formatting in case of stop done. */
  4560. #define XCM_REG_STOP_EVNT_ID 0x200b8
  4561. /* [RC 1] Set at message length mismatch (relative to last indication) at
  4562. the STORM interface. */
  4563. #define XCM_REG_STORM_LENGTH_MIS 0x2021c
  4564. /* [RW 3] The weight of the STORM input in the WRR mechanism. 0 stands for
  4565. weight 8 (the most prioritised); 1 stands for weight 1(least
  4566. prioritised); 2 stands for weight 2; tc. */
  4567. #define XCM_REG_STORM_WEIGHT 0x200bc
  4568. /* [RW 1] STORM - CM Interface enable. If 0 - the valid input is
  4569. disregarded; acknowledge output is deasserted; all other signals are
  4570. treated as usual; if 1 - normal activity. */
  4571. #define XCM_REG_STORM_XCM_IFEN 0x20010
  4572. /* [RW 4] Timers output initial credit. Max credit available - 15.Write
  4573. writes the initial credit value; read returns the current value of the
  4574. credit counter. Must be initialized to 4 at start-up. */
  4575. #define XCM_REG_TM_INIT_CRD 0x2041c
  4576. /* [RW 3] The weight of the Timers input in the WRR mechanism. 0 stands for
  4577. weight 8 (the most prioritised); 1 stands for weight 1(least
  4578. prioritised); 2 stands for weight 2; tc. */
  4579. #define XCM_REG_TM_WEIGHT 0x200ec
  4580. /* [RW 28] The CM header for Timers expiration command. */
  4581. #define XCM_REG_TM_XCM_HDR 0x200a8
  4582. /* [RW 1] Timers - CM Interface enable. If 0 - the valid input is
  4583. disregarded; acknowledge output is deasserted; all other signals are
  4584. treated as usual; if 1 - normal activity. */
  4585. #define XCM_REG_TM_XCM_IFEN 0x2001c
  4586. /* [RW 1] Input tsem Interface enable. If 0 - the valid input is
  4587. disregarded; acknowledge output is deasserted; all other signals are
  4588. treated as usual; if 1 - normal activity. */
  4589. #define XCM_REG_TSEM_IFEN 0x20024
  4590. /* [RC 1] Set at message length mismatch (relative to last indication) at
  4591. the tsem interface. */
  4592. #define XCM_REG_TSEM_LENGTH_MIS 0x20224
  4593. /* [RW 3] The weight of the input tsem in the WRR mechanism. 0 stands for
  4594. weight 8 (the most prioritised); 1 stands for weight 1(least
  4595. prioritised); 2 stands for weight 2; tc. */
  4596. #define XCM_REG_TSEM_WEIGHT 0x200c0
  4597. /* [RW 2] The queue index for registration on UNA greater NXT decision rule. */
  4598. #define XCM_REG_UNA_GT_NXT_Q 0x20120
  4599. /* [RW 1] Input usem Interface enable. If 0 - the valid input is
  4600. disregarded; acknowledge output is deasserted; all other signals are
  4601. treated as usual; if 1 - normal activity. */
  4602. #define XCM_REG_USEM_IFEN 0x2002c
  4603. /* [RC 1] Message length mismatch (relative to last indication) at the usem
  4604. interface. */
  4605. #define XCM_REG_USEM_LENGTH_MIS 0x2022c
  4606. /* [RW 3] The weight of the input usem in the WRR mechanism. 0 stands for
  4607. weight 8 (the most prioritised); 1 stands for weight 1(least
  4608. prioritised); 2 stands for weight 2; tc. */
  4609. #define XCM_REG_USEM_WEIGHT 0x200c8
  4610. #define XCM_REG_WU_DA_CNT_CMD00 0x201d4
  4611. #define XCM_REG_WU_DA_CNT_CMD01 0x201d8
  4612. #define XCM_REG_WU_DA_CNT_CMD10 0x201dc
  4613. #define XCM_REG_WU_DA_CNT_CMD11 0x201e0
  4614. #define XCM_REG_WU_DA_CNT_UPD_VAL00 0x201e4
  4615. #define XCM_REG_WU_DA_CNT_UPD_VAL01 0x201e8
  4616. #define XCM_REG_WU_DA_CNT_UPD_VAL10 0x201ec
  4617. #define XCM_REG_WU_DA_CNT_UPD_VAL11 0x201f0
  4618. #define XCM_REG_WU_DA_SET_TMR_CNT_FLG_CMD00 0x201c4
  4619. #define XCM_REG_WU_DA_SET_TMR_CNT_FLG_CMD01 0x201c8
  4620. #define XCM_REG_WU_DA_SET_TMR_CNT_FLG_CMD10 0x201cc
  4621. #define XCM_REG_WU_DA_SET_TMR_CNT_FLG_CMD11 0x201d0
  4622. /* [RW 1] CM - CFC Interface enable. If 0 - the valid input is disregarded;
  4623. acknowledge output is deasserted; all other signals are treated as usual;
  4624. if 1 - normal activity. */
  4625. #define XCM_REG_XCM_CFC_IFEN 0x20050
  4626. /* [RW 14] Interrupt mask register #0 read/write */
  4627. #define XCM_REG_XCM_INT_MASK 0x202b4
  4628. /* [R 14] Interrupt register #0 read */
  4629. #define XCM_REG_XCM_INT_STS 0x202a8
  4630. /* [R 30] Parity register #0 read */
  4631. #define XCM_REG_XCM_PRTY_STS 0x202b8
  4632. /* [RW 4] The size of AG context region 0 in REG-pairs. Designates the MS
  4633. REG-pair number (e.g. if region 0 is 6 REG-pairs; the value should be 5).
  4634. Is used to determine the number of the AG context REG-pairs written back;
  4635. when the Reg1WbFlg isn't set. */
  4636. #define XCM_REG_XCM_REG0_SZ 0x200f4
  4637. /* [RW 1] CM - STORM 0 Interface enable. If 0 - the acknowledge input is
  4638. disregarded; valid is deasserted; all other signals are treated as usual;
  4639. if 1 - normal activity. */
  4640. #define XCM_REG_XCM_STORM0_IFEN 0x20004
  4641. /* [RW 1] CM - STORM 1 Interface enable. If 0 - the acknowledge input is
  4642. disregarded; valid is deasserted; all other signals are treated as usual;
  4643. if 1 - normal activity. */
  4644. #define XCM_REG_XCM_STORM1_IFEN 0x20008
  4645. /* [RW 1] CM - Timers Interface enable. If 0 - the valid input is
  4646. disregarded; acknowledge output is deasserted; all other signals are
  4647. treated as usual; if 1 - normal activity. */
  4648. #define XCM_REG_XCM_TM_IFEN 0x20020
  4649. /* [RW 1] CM - QM Interface enable. If 0 - the acknowledge input is
  4650. disregarded; valid is deasserted; all other signals are treated as usual;
  4651. if 1 - normal activity. */
  4652. #define XCM_REG_XCM_XQM_IFEN 0x2000c
  4653. /* [RW 1] If set the Q index; received from the QM is inserted to event ID. */
  4654. #define XCM_REG_XCM_XQM_USE_Q 0x200f0
  4655. /* [RW 4] The value by which CFC updates the activity counter at QM bypass. */
  4656. #define XCM_REG_XQM_BYP_ACT_UPD 0x200fc
  4657. /* [RW 6] QM output initial credit. Max credit available - 32.Write writes
  4658. the initial credit value; read returns the current value of the credit
  4659. counter. Must be initialized to 32 at start-up. */
  4660. #define XCM_REG_XQM_INIT_CRD 0x20420
  4661. /* [RW 3] The weight of the QM (primary) input in the WRR mechanism. 0
  4662. stands for weight 8 (the most prioritised); 1 stands for weight 1(least
  4663. prioritised); 2 stands for weight 2; tc. */
  4664. #define XCM_REG_XQM_P_WEIGHT 0x200e4
  4665. /* [RW 3] The weight of the QM (secondary) input in the WRR mechanism. 0
  4666. stands for weight 8 (the most prioritised); 1 stands for weight 1(least
  4667. prioritised); 2 stands for weight 2; tc. */
  4668. #define XCM_REG_XQM_S_WEIGHT 0x200e8
  4669. /* [RW 28] The CM header value for QM request (primary). */
  4670. #define XCM_REG_XQM_XCM_HDR_P 0x200a0
  4671. /* [RW 28] The CM header value for QM request (secondary). */
  4672. #define XCM_REG_XQM_XCM_HDR_S 0x200a4
  4673. /* [RW 1] QM - CM Interface enable. If 0 - the valid input is disregarded;
  4674. acknowledge output is deasserted; all other signals are treated as usual;
  4675. if 1 - normal activity. */
  4676. #define XCM_REG_XQM_XCM_IFEN 0x20014
  4677. /* [RW 1] Input SDM Interface enable. If 0 - the valid input is disregarded;
  4678. acknowledge output is deasserted; all other signals are treated as usual;
  4679. if 1 - normal activity. */
  4680. #define XCM_REG_XSDM_IFEN 0x20018
  4681. /* [RC 1] Set at message length mismatch (relative to last indication) at
  4682. the SDM interface. */
  4683. #define XCM_REG_XSDM_LENGTH_MIS 0x20220
  4684. /* [RW 3] The weight of the SDM input in the WRR mechanism. 0 stands for
  4685. weight 8 (the most prioritised); 1 stands for weight 1(least
  4686. prioritised); 2 stands for weight 2; tc. */
  4687. #define XCM_REG_XSDM_WEIGHT 0x200e0
  4688. /* [RW 17] Indirect access to the descriptor table of the XX protection
  4689. mechanism. The fields are: [5:0] - message length; 11:6] - message
  4690. pointer; 16:12] - next pointer. */
  4691. #define XCM_REG_XX_DESCR_TABLE 0x20480
  4692. #define XCM_REG_XX_DESCR_TABLE_SIZE 32
  4693. /* [R 6] Used to read the XX protection Free counter. */
  4694. #define XCM_REG_XX_FREE 0x20240
  4695. /* [RW 6] Initial value for the credit counter; responsible for fulfilling
  4696. of the Input Stage XX protection buffer by the XX protection pending
  4697. messages. Max credit available - 3.Write writes the initial credit value;
  4698. read returns the current value of the credit counter. Must be initialized
  4699. to 2 at start-up. */
  4700. #define XCM_REG_XX_INIT_CRD 0x20424
  4701. /* [RW 6] The maximum number of pending messages; which may be stored in XX
  4702. protection. ~xcm_registers_xx_free.xx_free read on read. */
  4703. #define XCM_REG_XX_MSG_NUM 0x20428
  4704. /* [RW 8] The Event ID; sent to the STORM in case of XX overflow. */
  4705. #define XCM_REG_XX_OVFL_EVNT_ID 0x20058
  4706. /* [RW 16] Indirect access to the XX table of the XX protection mechanism.
  4707. The fields are:[4:0] - tail pointer; 9:5] - Link List size; 14:10] -
  4708. header pointer. */
  4709. #define XCM_REG_XX_TABLE 0x20500
  4710. /* [RW 8] The event id for aggregated interrupt 0 */
  4711. #define XSDM_REG_AGG_INT_EVENT_0 0x166038
  4712. #define XSDM_REG_AGG_INT_EVENT_1 0x16603c
  4713. #define XSDM_REG_AGG_INT_EVENT_10 0x166060
  4714. #define XSDM_REG_AGG_INT_EVENT_11 0x166064
  4715. #define XSDM_REG_AGG_INT_EVENT_12 0x166068
  4716. #define XSDM_REG_AGG_INT_EVENT_13 0x16606c
  4717. #define XSDM_REG_AGG_INT_EVENT_14 0x166070
  4718. #define XSDM_REG_AGG_INT_EVENT_2 0x166040
  4719. #define XSDM_REG_AGG_INT_EVENT_3 0x166044
  4720. #define XSDM_REG_AGG_INT_EVENT_4 0x166048
  4721. #define XSDM_REG_AGG_INT_EVENT_5 0x16604c
  4722. #define XSDM_REG_AGG_INT_EVENT_6 0x166050
  4723. #define XSDM_REG_AGG_INT_EVENT_7 0x166054
  4724. #define XSDM_REG_AGG_INT_EVENT_8 0x166058
  4725. #define XSDM_REG_AGG_INT_EVENT_9 0x16605c
  4726. /* [RW 1] For each aggregated interrupt index whether the mode is normal (0)
  4727. or auto-mask-mode (1) */
  4728. #define XSDM_REG_AGG_INT_MODE_0 0x1661b8
  4729. #define XSDM_REG_AGG_INT_MODE_1 0x1661bc
  4730. /* [RW 13] The start address in the internal RAM for the cfc_rsp lcid */
  4731. #define XSDM_REG_CFC_RSP_START_ADDR 0x166008
  4732. /* [RW 16] The maximum value of the competion counter #0 */
  4733. #define XSDM_REG_CMP_COUNTER_MAX0 0x16601c
  4734. /* [RW 16] The maximum value of the competion counter #1 */
  4735. #define XSDM_REG_CMP_COUNTER_MAX1 0x166020
  4736. /* [RW 16] The maximum value of the competion counter #2 */
  4737. #define XSDM_REG_CMP_COUNTER_MAX2 0x166024
  4738. /* [RW 16] The maximum value of the competion counter #3 */
  4739. #define XSDM_REG_CMP_COUNTER_MAX3 0x166028
  4740. /* [RW 13] The start address in the internal RAM for the completion
  4741. counters. */
  4742. #define XSDM_REG_CMP_COUNTER_START_ADDR 0x16600c
  4743. #define XSDM_REG_ENABLE_IN1 0x166238
  4744. #define XSDM_REG_ENABLE_IN2 0x16623c
  4745. #define XSDM_REG_ENABLE_OUT1 0x166240
  4746. #define XSDM_REG_ENABLE_OUT2 0x166244
  4747. /* [RW 4] The initial number of messages that can be sent to the pxp control
  4748. interface without receiving any ACK. */
  4749. #define XSDM_REG_INIT_CREDIT_PXP_CTRL 0x1664bc
  4750. /* [ST 32] The number of ACK after placement messages received */
  4751. #define XSDM_REG_NUM_OF_ACK_AFTER_PLACE 0x16627c
  4752. /* [ST 32] The number of packet end messages received from the parser */
  4753. #define XSDM_REG_NUM_OF_PKT_END_MSG 0x166274
  4754. /* [ST 32] The number of requests received from the pxp async if */
  4755. #define XSDM_REG_NUM_OF_PXP_ASYNC_REQ 0x166278
  4756. /* [ST 32] The number of commands received in queue 0 */
  4757. #define XSDM_REG_NUM_OF_Q0_CMD 0x166248
  4758. /* [ST 32] The number of commands received in queue 10 */
  4759. #define XSDM_REG_NUM_OF_Q10_CMD 0x16626c
  4760. /* [ST 32] The number of commands received in queue 11 */
  4761. #define XSDM_REG_NUM_OF_Q11_CMD 0x166270
  4762. /* [ST 32] The number of commands received in queue 1 */
  4763. #define XSDM_REG_NUM_OF_Q1_CMD 0x16624c
  4764. /* [ST 32] The number of commands received in queue 3 */
  4765. #define XSDM_REG_NUM_OF_Q3_CMD 0x166250
  4766. /* [ST 32] The number of commands received in queue 4 */
  4767. #define XSDM_REG_NUM_OF_Q4_CMD 0x166254
  4768. /* [ST 32] The number of commands received in queue 5 */
  4769. #define XSDM_REG_NUM_OF_Q5_CMD 0x166258
  4770. /* [ST 32] The number of commands received in queue 6 */
  4771. #define XSDM_REG_NUM_OF_Q6_CMD 0x16625c
  4772. /* [ST 32] The number of commands received in queue 7 */
  4773. #define XSDM_REG_NUM_OF_Q7_CMD 0x166260
  4774. /* [ST 32] The number of commands received in queue 8 */
  4775. #define XSDM_REG_NUM_OF_Q8_CMD 0x166264
  4776. /* [ST 32] The number of commands received in queue 9 */
  4777. #define XSDM_REG_NUM_OF_Q9_CMD 0x166268
  4778. /* [RW 13] The start address in the internal RAM for queue counters */
  4779. #define XSDM_REG_Q_COUNTER_START_ADDR 0x166010
  4780. /* [R 1] pxp_ctrl rd_data fifo empty in sdm_dma_rsp block */
  4781. #define XSDM_REG_RSP_PXP_CTRL_RDATA_EMPTY 0x166548
  4782. /* [R 1] parser fifo empty in sdm_sync block */
  4783. #define XSDM_REG_SYNC_PARSER_EMPTY 0x166550
  4784. /* [R 1] parser serial fifo empty in sdm_sync block */
  4785. #define XSDM_REG_SYNC_SYNC_EMPTY 0x166558
  4786. /* [RW 32] Tick for timer counter. Applicable only when
  4787. ~xsdm_registers_timer_tick_enable.timer_tick_enable =1 */
  4788. #define XSDM_REG_TIMER_TICK 0x166000
  4789. /* [RW 32] Interrupt mask register #0 read/write */
  4790. #define XSDM_REG_XSDM_INT_MASK_0 0x16629c
  4791. #define XSDM_REG_XSDM_INT_MASK_1 0x1662ac
  4792. /* [R 32] Interrupt register #0 read */
  4793. #define XSDM_REG_XSDM_INT_STS_0 0x166290
  4794. #define XSDM_REG_XSDM_INT_STS_1 0x1662a0
  4795. /* [RW 11] Parity mask register #0 read/write */
  4796. #define XSDM_REG_XSDM_PRTY_MASK 0x1662bc
  4797. /* [R 11] Parity register #0 read */
  4798. #define XSDM_REG_XSDM_PRTY_STS 0x1662b0
  4799. /* [RW 5] The number of time_slots in the arbitration cycle */
  4800. #define XSEM_REG_ARB_CYCLE_SIZE 0x280034
  4801. /* [RW 3] The source that is associated with arbitration element 0. Source
  4802. decoding is: 0- foc0; 1-fic1; 2-sleeping thread with priority 0; 3-
  4803. sleeping thread with priority 1; 4- sleeping thread with priority 2 */
  4804. #define XSEM_REG_ARB_ELEMENT0 0x280020
  4805. /* [RW 3] The source that is associated with arbitration element 1. Source
  4806. decoding is: 0- foc0; 1-fic1; 2-sleeping thread with priority 0; 3-
  4807. sleeping thread with priority 1; 4- sleeping thread with priority 2.
  4808. Could not be equal to register ~xsem_registers_arb_element0.arb_element0 */
  4809. #define XSEM_REG_ARB_ELEMENT1 0x280024
  4810. /* [RW 3] The source that is associated with arbitration element 2. Source
  4811. decoding is: 0- foc0; 1-fic1; 2-sleeping thread with priority 0; 3-
  4812. sleeping thread with priority 1; 4- sleeping thread with priority 2.
  4813. Could not be equal to register ~xsem_registers_arb_element0.arb_element0
  4814. and ~xsem_registers_arb_element1.arb_element1 */
  4815. #define XSEM_REG_ARB_ELEMENT2 0x280028
  4816. /* [RW 3] The source that is associated with arbitration element 3. Source
  4817. decoding is: 0- foc0; 1-fic1; 2-sleeping thread with priority 0; 3-
  4818. sleeping thread with priority 1; 4- sleeping thread with priority 2.Could
  4819. not be equal to register ~xsem_registers_arb_element0.arb_element0 and
  4820. ~xsem_registers_arb_element1.arb_element1 and
  4821. ~xsem_registers_arb_element2.arb_element2 */
  4822. #define XSEM_REG_ARB_ELEMENT3 0x28002c
  4823. /* [RW 3] The source that is associated with arbitration element 4. Source
  4824. decoding is: 0- foc0; 1-fic1; 2-sleeping thread with priority 0; 3-
  4825. sleeping thread with priority 1; 4- sleeping thread with priority 2.
  4826. Could not be equal to register ~xsem_registers_arb_element0.arb_element0
  4827. and ~xsem_registers_arb_element1.arb_element1 and
  4828. ~xsem_registers_arb_element2.arb_element2 and
  4829. ~xsem_registers_arb_element3.arb_element3 */
  4830. #define XSEM_REG_ARB_ELEMENT4 0x280030
  4831. #define XSEM_REG_ENABLE_IN 0x2800a4
  4832. #define XSEM_REG_ENABLE_OUT 0x2800a8
  4833. /* [RW 32] This address space contains all registers and memories that are
  4834. placed in SEM_FAST block. The SEM_FAST registers are described in
  4835. appendix B. In order to access the sem_fast registers the base address
  4836. ~fast_memory.fast_memory should be added to eachsem_fast register offset. */
  4837. #define XSEM_REG_FAST_MEMORY 0x2a0000
  4838. /* [RW 1] Disables input messages from FIC0 May be updated during run_time
  4839. by the microcode */
  4840. #define XSEM_REG_FIC0_DISABLE 0x280224
  4841. /* [RW 1] Disables input messages from FIC1 May be updated during run_time
  4842. by the microcode */
  4843. #define XSEM_REG_FIC1_DISABLE 0x280234
  4844. /* [RW 15] Interrupt table Read and write access to it is not possible in
  4845. the middle of the work */
  4846. #define XSEM_REG_INT_TABLE 0x280400
  4847. /* [ST 24] Statistics register. The number of messages that entered through
  4848. FIC0 */
  4849. #define XSEM_REG_MSG_NUM_FIC0 0x280000
  4850. /* [ST 24] Statistics register. The number of messages that entered through
  4851. FIC1 */
  4852. #define XSEM_REG_MSG_NUM_FIC1 0x280004
  4853. /* [ST 24] Statistics register. The number of messages that were sent to
  4854. FOC0 */
  4855. #define XSEM_REG_MSG_NUM_FOC0 0x280008
  4856. /* [ST 24] Statistics register. The number of messages that were sent to
  4857. FOC1 */
  4858. #define XSEM_REG_MSG_NUM_FOC1 0x28000c
  4859. /* [ST 24] Statistics register. The number of messages that were sent to
  4860. FOC2 */
  4861. #define XSEM_REG_MSG_NUM_FOC2 0x280010
  4862. /* [ST 24] Statistics register. The number of messages that were sent to
  4863. FOC3 */
  4864. #define XSEM_REG_MSG_NUM_FOC3 0x280014
  4865. /* [RW 1] Disables input messages from the passive buffer May be updated
  4866. during run_time by the microcode */
  4867. #define XSEM_REG_PAS_DISABLE 0x28024c
  4868. /* [WB 128] Debug only. Passive buffer memory */
  4869. #define XSEM_REG_PASSIVE_BUFFER 0x282000
  4870. /* [WB 46] pram memory. B45 is parity; b[44:0] - data. */
  4871. #define XSEM_REG_PRAM 0x2c0000
  4872. /* [R 16] Valid sleeping threads indication have bit per thread */
  4873. #define XSEM_REG_SLEEP_THREADS_VALID 0x28026c
  4874. /* [R 1] EXT_STORE FIFO is empty in sem_slow_ls_ext */
  4875. #define XSEM_REG_SLOW_EXT_STORE_EMPTY 0x2802a0
  4876. /* [RW 16] List of free threads . There is a bit per thread. */
  4877. #define XSEM_REG_THREADS_LIST 0x2802e4
  4878. /* [RW 3] The arbitration scheme of time_slot 0 */
  4879. #define XSEM_REG_TS_0_AS 0x280038
  4880. /* [RW 3] The arbitration scheme of time_slot 10 */
  4881. #define XSEM_REG_TS_10_AS 0x280060
  4882. /* [RW 3] The arbitration scheme of time_slot 11 */
  4883. #define XSEM_REG_TS_11_AS 0x280064
  4884. /* [RW 3] The arbitration scheme of time_slot 12 */
  4885. #define XSEM_REG_TS_12_AS 0x280068
  4886. /* [RW 3] The arbitration scheme of time_slot 13 */
  4887. #define XSEM_REG_TS_13_AS 0x28006c
  4888. /* [RW 3] The arbitration scheme of time_slot 14 */
  4889. #define XSEM_REG_TS_14_AS 0x280070
  4890. /* [RW 3] The arbitration scheme of time_slot 15 */
  4891. #define XSEM_REG_TS_15_AS 0x280074
  4892. /* [RW 3] The arbitration scheme of time_slot 16 */
  4893. #define XSEM_REG_TS_16_AS 0x280078
  4894. /* [RW 3] The arbitration scheme of time_slot 17 */
  4895. #define XSEM_REG_TS_17_AS 0x28007c
  4896. /* [RW 3] The arbitration scheme of time_slot 18 */
  4897. #define XSEM_REG_TS_18_AS 0x280080
  4898. /* [RW 3] The arbitration scheme of time_slot 1 */
  4899. #define XSEM_REG_TS_1_AS 0x28003c
  4900. /* [RW 3] The arbitration scheme of time_slot 2 */
  4901. #define XSEM_REG_TS_2_AS 0x280040
  4902. /* [RW 3] The arbitration scheme of time_slot 3 */
  4903. #define XSEM_REG_TS_3_AS 0x280044
  4904. /* [RW 3] The arbitration scheme of time_slot 4 */
  4905. #define XSEM_REG_TS_4_AS 0x280048
  4906. /* [RW 3] The arbitration scheme of time_slot 5 */
  4907. #define XSEM_REG_TS_5_AS 0x28004c
  4908. /* [RW 3] The arbitration scheme of time_slot 6 */
  4909. #define XSEM_REG_TS_6_AS 0x280050
  4910. /* [RW 3] The arbitration scheme of time_slot 7 */
  4911. #define XSEM_REG_TS_7_AS 0x280054
  4912. /* [RW 3] The arbitration scheme of time_slot 8 */
  4913. #define XSEM_REG_TS_8_AS 0x280058
  4914. /* [RW 3] The arbitration scheme of time_slot 9 */
  4915. #define XSEM_REG_TS_9_AS 0x28005c
  4916. /* [W 7] VF or PF ID for reset error bit. Values 0-63 reset error bit for 64
  4917. * VF; values 64-67 reset error for 4 PF; values 68-127 are not valid. */
  4918. #define XSEM_REG_VFPF_ERR_NUM 0x280380
  4919. /* [RW 32] Interrupt mask register #0 read/write */
  4920. #define XSEM_REG_XSEM_INT_MASK_0 0x280110
  4921. #define XSEM_REG_XSEM_INT_MASK_1 0x280120
  4922. /* [R 32] Interrupt register #0 read */
  4923. #define XSEM_REG_XSEM_INT_STS_0 0x280104
  4924. #define XSEM_REG_XSEM_INT_STS_1 0x280114
  4925. /* [RW 32] Parity mask register #0 read/write */
  4926. #define XSEM_REG_XSEM_PRTY_MASK_0 0x280130
  4927. #define XSEM_REG_XSEM_PRTY_MASK_1 0x280140
  4928. /* [R 32] Parity register #0 read */
  4929. #define XSEM_REG_XSEM_PRTY_STS_0 0x280124
  4930. #define XSEM_REG_XSEM_PRTY_STS_1 0x280134
  4931. #define MCPR_NVM_ACCESS_ENABLE_EN (1L<<0)
  4932. #define MCPR_NVM_ACCESS_ENABLE_WR_EN (1L<<1)
  4933. #define MCPR_NVM_ADDR_NVM_ADDR_VALUE (0xffffffL<<0)
  4934. #define MCPR_NVM_CFG4_FLASH_SIZE (0x7L<<0)
  4935. #define MCPR_NVM_COMMAND_DOIT (1L<<4)
  4936. #define MCPR_NVM_COMMAND_DONE (1L<<3)
  4937. #define MCPR_NVM_COMMAND_FIRST (1L<<7)
  4938. #define MCPR_NVM_COMMAND_LAST (1L<<8)
  4939. #define MCPR_NVM_COMMAND_WR (1L<<5)
  4940. #define MCPR_NVM_SW_ARB_ARB_ARB1 (1L<<9)
  4941. #define MCPR_NVM_SW_ARB_ARB_REQ_CLR1 (1L<<5)
  4942. #define MCPR_NVM_SW_ARB_ARB_REQ_SET1 (1L<<1)
  4943. #define BIGMAC_REGISTER_BMAC_CONTROL (0x00<<3)
  4944. #define BIGMAC_REGISTER_BMAC_XGXS_CONTROL (0x01<<3)
  4945. #define BIGMAC_REGISTER_CNT_MAX_SIZE (0x05<<3)
  4946. #define BIGMAC_REGISTER_RX_CONTROL (0x21<<3)
  4947. #define BIGMAC_REGISTER_RX_LLFC_MSG_FLDS (0x46<<3)
  4948. #define BIGMAC_REGISTER_RX_MAX_SIZE (0x23<<3)
  4949. #define BIGMAC_REGISTER_RX_STAT_GR64 (0x26<<3)
  4950. #define BIGMAC_REGISTER_RX_STAT_GRIPJ (0x42<<3)
  4951. #define BIGMAC_REGISTER_TX_CONTROL (0x07<<3)
  4952. #define BIGMAC_REGISTER_TX_MAX_SIZE (0x09<<3)
  4953. #define BIGMAC_REGISTER_TX_PAUSE_THRESHOLD (0x0A<<3)
  4954. #define BIGMAC_REGISTER_TX_SOURCE_ADDR (0x08<<3)
  4955. #define BIGMAC_REGISTER_TX_STAT_GTBYT (0x20<<3)
  4956. #define BIGMAC_REGISTER_TX_STAT_GTPKT (0x0C<<3)
  4957. #define BIGMAC2_REGISTER_BMAC_CONTROL (0x00<<3)
  4958. #define BIGMAC2_REGISTER_BMAC_XGXS_CONTROL (0x01<<3)
  4959. #define BIGMAC2_REGISTER_CNT_MAX_SIZE (0x05<<3)
  4960. #define BIGMAC2_REGISTER_PFC_CONTROL (0x06<<3)
  4961. #define BIGMAC2_REGISTER_RX_CONTROL (0x3A<<3)
  4962. #define BIGMAC2_REGISTER_RX_LLFC_MSG_FLDS (0x62<<3)
  4963. #define BIGMAC2_REGISTER_RX_MAX_SIZE (0x3C<<3)
  4964. #define BIGMAC2_REGISTER_RX_STAT_GR64 (0x40<<3)
  4965. #define BIGMAC2_REGISTER_RX_STAT_GRIPJ (0x5f<<3)
  4966. #define BIGMAC2_REGISTER_RX_STAT_GRPP (0x51<<3)
  4967. #define BIGMAC2_REGISTER_TX_CONTROL (0x1C<<3)
  4968. #define BIGMAC2_REGISTER_TX_MAX_SIZE (0x1E<<3)
  4969. #define BIGMAC2_REGISTER_TX_PAUSE_CONTROL (0x20<<3)
  4970. #define BIGMAC2_REGISTER_TX_SOURCE_ADDR (0x1D<<3)
  4971. #define BIGMAC2_REGISTER_TX_STAT_GTBYT (0x39<<3)
  4972. #define BIGMAC2_REGISTER_TX_STAT_GTPOK (0x22<<3)
  4973. #define BIGMAC2_REGISTER_TX_STAT_GTPP (0x24<<3)
  4974. #define EMAC_LED_1000MB_OVERRIDE (1L<<1)
  4975. #define EMAC_LED_100MB_OVERRIDE (1L<<2)
  4976. #define EMAC_LED_10MB_OVERRIDE (1L<<3)
  4977. #define EMAC_LED_2500MB_OVERRIDE (1L<<12)
  4978. #define EMAC_LED_OVERRIDE (1L<<0)
  4979. #define EMAC_LED_TRAFFIC (1L<<6)
  4980. #define EMAC_MDIO_COMM_COMMAND_ADDRESS (0L<<26)
  4981. #define EMAC_MDIO_COMM_COMMAND_READ_45 (3L<<26)
  4982. #define EMAC_MDIO_COMM_COMMAND_WRITE_45 (1L<<26)
  4983. #define EMAC_MDIO_COMM_DATA (0xffffL<<0)
  4984. #define EMAC_MDIO_COMM_START_BUSY (1L<<29)
  4985. #define EMAC_MDIO_MODE_AUTO_POLL (1L<<4)
  4986. #define EMAC_MDIO_MODE_CLAUSE_45 (1L<<31)
  4987. #define EMAC_MDIO_MODE_CLOCK_CNT (0x3fL<<16)
  4988. #define EMAC_MDIO_MODE_CLOCK_CNT_BITSHIFT 16
  4989. #define EMAC_MODE_25G_MODE (1L<<5)
  4990. #define EMAC_MODE_HALF_DUPLEX (1L<<1)
  4991. #define EMAC_MODE_PORT_GMII (2L<<2)
  4992. #define EMAC_MODE_PORT_MII (1L<<2)
  4993. #define EMAC_MODE_PORT_MII_10M (3L<<2)
  4994. #define EMAC_MODE_RESET (1L<<0)
  4995. #define EMAC_REG_EMAC_LED 0xc
  4996. #define EMAC_REG_EMAC_MAC_MATCH 0x10
  4997. #define EMAC_REG_EMAC_MDIO_COMM 0xac
  4998. #define EMAC_REG_EMAC_MDIO_MODE 0xb4
  4999. #define EMAC_REG_EMAC_MODE 0x0
  5000. #define EMAC_REG_EMAC_RX_MODE 0xc8
  5001. #define EMAC_REG_EMAC_RX_MTU_SIZE 0x9c
  5002. #define EMAC_REG_EMAC_RX_STAT_AC 0x180
  5003. #define EMAC_REG_EMAC_RX_STAT_AC_28 0x1f4
  5004. #define EMAC_REG_EMAC_RX_STAT_AC_COUNT 23
  5005. #define EMAC_REG_EMAC_TX_MODE 0xbc
  5006. #define EMAC_REG_EMAC_TX_STAT_AC 0x280
  5007. #define EMAC_REG_EMAC_TX_STAT_AC_COUNT 22
  5008. #define EMAC_REG_RX_PFC_MODE 0x320
  5009. #define EMAC_REG_RX_PFC_MODE_PRIORITIES (1L<<2)
  5010. #define EMAC_REG_RX_PFC_MODE_RX_EN (1L<<1)
  5011. #define EMAC_REG_RX_PFC_MODE_TX_EN (1L<<0)
  5012. #define EMAC_REG_RX_PFC_PARAM 0x324
  5013. #define EMAC_REG_RX_PFC_PARAM_OPCODE_BITSHIFT 0
  5014. #define EMAC_REG_RX_PFC_PARAM_PRIORITY_EN_BITSHIFT 16
  5015. #define EMAC_REG_RX_PFC_STATS_XOFF_RCVD 0x328
  5016. #define EMAC_REG_RX_PFC_STATS_XOFF_RCVD_COUNT (0xffff<<0)
  5017. #define EMAC_REG_RX_PFC_STATS_XOFF_SENT 0x330
  5018. #define EMAC_REG_RX_PFC_STATS_XOFF_SENT_COUNT (0xffff<<0)
  5019. #define EMAC_REG_RX_PFC_STATS_XON_RCVD 0x32c
  5020. #define EMAC_REG_RX_PFC_STATS_XON_RCVD_COUNT (0xffff<<0)
  5021. #define EMAC_REG_RX_PFC_STATS_XON_SENT 0x334
  5022. #define EMAC_REG_RX_PFC_STATS_XON_SENT_COUNT (0xffff<<0)
  5023. #define EMAC_RX_MODE_FLOW_EN (1L<<2)
  5024. #define EMAC_RX_MODE_KEEP_MAC_CONTROL (1L<<3)
  5025. #define EMAC_RX_MODE_KEEP_VLAN_TAG (1L<<10)
  5026. #define EMAC_RX_MODE_PROMISCUOUS (1L<<8)
  5027. #define EMAC_RX_MODE_RESET (1L<<0)
  5028. #define EMAC_RX_MTU_SIZE_JUMBO_ENA (1L<<31)
  5029. #define EMAC_TX_MODE_EXT_PAUSE_EN (1L<<3)
  5030. #define EMAC_TX_MODE_FLOW_EN (1L<<4)
  5031. #define EMAC_TX_MODE_RESET (1L<<0)
  5032. #define MISC_REGISTERS_GPIO_0 0
  5033. #define MISC_REGISTERS_GPIO_1 1
  5034. #define MISC_REGISTERS_GPIO_2 2
  5035. #define MISC_REGISTERS_GPIO_3 3
  5036. #define MISC_REGISTERS_GPIO_CLR_POS 16
  5037. #define MISC_REGISTERS_GPIO_FLOAT (0xffL<<24)
  5038. #define MISC_REGISTERS_GPIO_FLOAT_POS 24
  5039. #define MISC_REGISTERS_GPIO_HIGH 1
  5040. #define MISC_REGISTERS_GPIO_INPUT_HI_Z 2
  5041. #define MISC_REGISTERS_GPIO_INT_CLR_POS 24
  5042. #define MISC_REGISTERS_GPIO_INT_OUTPUT_CLR 0
  5043. #define MISC_REGISTERS_GPIO_INT_OUTPUT_SET 1
  5044. #define MISC_REGISTERS_GPIO_INT_SET_POS 16
  5045. #define MISC_REGISTERS_GPIO_LOW 0
  5046. #define MISC_REGISTERS_GPIO_OUTPUT_HIGH 1
  5047. #define MISC_REGISTERS_GPIO_OUTPUT_LOW 0
  5048. #define MISC_REGISTERS_GPIO_PORT_SHIFT 4
  5049. #define MISC_REGISTERS_GPIO_SET_POS 8
  5050. #define MISC_REGISTERS_RESET_REG_1_CLEAR 0x588
  5051. #define MISC_REGISTERS_RESET_REG_1_RST_HC (0x1<<29)
  5052. #define MISC_REGISTERS_RESET_REG_1_RST_NIG (0x1<<7)
  5053. #define MISC_REGISTERS_RESET_REG_1_RST_PXP (0x1<<26)
  5054. #define MISC_REGISTERS_RESET_REG_1_RST_PXPV (0x1<<27)
  5055. #define MISC_REGISTERS_RESET_REG_1_SET 0x584
  5056. #define MISC_REGISTERS_RESET_REG_2_CLEAR 0x598
  5057. #define MISC_REGISTERS_RESET_REG_2_RST_BMAC0 (0x1<<0)
  5058. #define MISC_REGISTERS_RESET_REG_2_RST_EMAC0_HARD_CORE (0x1<<14)
  5059. #define MISC_REGISTERS_RESET_REG_2_RST_EMAC1_HARD_CORE (0x1<<15)
  5060. #define MISC_REGISTERS_RESET_REG_2_RST_GRC (0x1<<4)
  5061. #define MISC_REGISTERS_RESET_REG_2_RST_MCP_N_HARD_CORE_RST_B (0x1<<6)
  5062. #define MISC_REGISTERS_RESET_REG_2_RST_MCP_N_RESET_REG_HARD_CORE (0x1<<5)
  5063. #define MISC_REGISTERS_RESET_REG_2_RST_MDIO (0x1<<13)
  5064. #define MISC_REGISTERS_RESET_REG_2_RST_MISC_CORE (0x1<<11)
  5065. #define MISC_REGISTERS_RESET_REG_2_RST_RBCN (0x1<<9)
  5066. #define MISC_REGISTERS_RESET_REG_2_SET 0x594
  5067. #define MISC_REGISTERS_RESET_REG_3_CLEAR 0x5a8
  5068. #define MISC_REGISTERS_RESET_REG_3_MISC_NIG_MUX_SERDES0_IDDQ (0x1<<1)
  5069. #define MISC_REGISTERS_RESET_REG_3_MISC_NIG_MUX_SERDES0_PWRDWN (0x1<<2)
  5070. #define MISC_REGISTERS_RESET_REG_3_MISC_NIG_MUX_SERDES0_PWRDWN_SD (0x1<<3)
  5071. #define MISC_REGISTERS_RESET_REG_3_MISC_NIG_MUX_SERDES0_RSTB_HW (0x1<<0)
  5072. #define MISC_REGISTERS_RESET_REG_3_MISC_NIG_MUX_XGXS0_IDDQ (0x1<<5)
  5073. #define MISC_REGISTERS_RESET_REG_3_MISC_NIG_MUX_XGXS0_PWRDWN (0x1<<6)
  5074. #define MISC_REGISTERS_RESET_REG_3_MISC_NIG_MUX_XGXS0_PWRDWN_SD (0x1<<7)
  5075. #define MISC_REGISTERS_RESET_REG_3_MISC_NIG_MUX_XGXS0_RSTB_HW (0x1<<4)
  5076. #define MISC_REGISTERS_RESET_REG_3_MISC_NIG_MUX_XGXS0_TXD_FIFO_RSTB (0x1<<8)
  5077. #define MISC_REGISTERS_RESET_REG_3_SET 0x5a4
  5078. #define MISC_REGISTERS_SPIO_4 4
  5079. #define MISC_REGISTERS_SPIO_5 5
  5080. #define MISC_REGISTERS_SPIO_7 7
  5081. #define MISC_REGISTERS_SPIO_CLR_POS 16
  5082. #define MISC_REGISTERS_SPIO_FLOAT (0xffL<<24)
  5083. #define MISC_REGISTERS_SPIO_FLOAT_POS 24
  5084. #define MISC_REGISTERS_SPIO_INPUT_HI_Z 2
  5085. #define MISC_REGISTERS_SPIO_INT_OLD_SET_POS 16
  5086. #define MISC_REGISTERS_SPIO_OUTPUT_HIGH 1
  5087. #define MISC_REGISTERS_SPIO_OUTPUT_LOW 0
  5088. #define MISC_REGISTERS_SPIO_SET_POS 8
  5089. #define HW_LOCK_MAX_RESOURCE_VALUE 31
  5090. #define HW_LOCK_RESOURCE_GPIO 1
  5091. #define HW_LOCK_RESOURCE_MDIO 0
  5092. #define HW_LOCK_RESOURCE_PORT0_ATT_MASK 3
  5093. #define HW_LOCK_RESOURCE_RESERVED_08 8
  5094. #define HW_LOCK_RESOURCE_SPIO 2
  5095. #define HW_LOCK_RESOURCE_UNDI 5
  5096. #define PRS_FLAG_OVERETH_IPV4 1
  5097. #define AEU_INPUTS_ATTN_BITS_ATC_HW_INTERRUPT (0x1<<4)
  5098. #define AEU_INPUTS_ATTN_BITS_ATC_PARITY_ERROR (0x1<<5)
  5099. #define AEU_INPUTS_ATTN_BITS_BRB_PARITY_ERROR (1<<18)
  5100. #define AEU_INPUTS_ATTN_BITS_CCM_HW_INTERRUPT (1<<31)
  5101. #define AEU_INPUTS_ATTN_BITS_CDU_HW_INTERRUPT (1<<9)
  5102. #define AEU_INPUTS_ATTN_BITS_CDU_PARITY_ERROR (1<<8)
  5103. #define AEU_INPUTS_ATTN_BITS_CFC_HW_INTERRUPT (1<<7)
  5104. #define AEU_INPUTS_ATTN_BITS_CFC_PARITY_ERROR (1<<6)
  5105. #define AEU_INPUTS_ATTN_BITS_CSDM_HW_INTERRUPT (1<<29)
  5106. #define AEU_INPUTS_ATTN_BITS_CSDM_PARITY_ERROR (1<<28)
  5107. #define AEU_INPUTS_ATTN_BITS_CSEMI_HW_INTERRUPT (1<<1)
  5108. #define AEU_INPUTS_ATTN_BITS_CSEMI_PARITY_ERROR (1<<0)
  5109. #define AEU_INPUTS_ATTN_BITS_DEBUG_PARITY_ERROR (1<<18)
  5110. #define AEU_INPUTS_ATTN_BITS_DMAE_HW_INTERRUPT (1<<11)
  5111. #define AEU_INPUTS_ATTN_BITS_DOORBELLQ_HW_INTERRUPT (1<<13)
  5112. #define AEU_INPUTS_ATTN_BITS_DOORBELLQ_PARITY_ERROR (1<<12)
  5113. #define AEU_INPUTS_ATTN_BITS_GPIO3_FUNCTION_0 (1<<5)
  5114. #define AEU_INPUTS_ATTN_BITS_GPIO3_FUNCTION_1 (1<<9)
  5115. #define AEU_INPUTS_ATTN_BITS_IGU_PARITY_ERROR (1<<12)
  5116. #define AEU_INPUTS_ATTN_BITS_MCP_LATCHED_ROM_PARITY (1<<28)
  5117. #define AEU_INPUTS_ATTN_BITS_MCP_LATCHED_SCPAD_PARITY (1<<31)
  5118. #define AEU_INPUTS_ATTN_BITS_MCP_LATCHED_UMP_RX_PARITY (1<<29)
  5119. #define AEU_INPUTS_ATTN_BITS_MCP_LATCHED_UMP_TX_PARITY (1<<30)
  5120. #define AEU_INPUTS_ATTN_BITS_MISC_HW_INTERRUPT (1<<15)
  5121. #define AEU_INPUTS_ATTN_BITS_MISC_PARITY_ERROR (1<<14)
  5122. #define AEU_INPUTS_ATTN_BITS_PARSER_PARITY_ERROR (1<<20)
  5123. #define AEU_INPUTS_ATTN_BITS_PBCLIENT_PARITY_ERROR (1<<0)
  5124. #define AEU_INPUTS_ATTN_BITS_PBF_HW_INTERRUPT (1<<31)
  5125. #define AEU_INPUTS_ATTN_BITS_PGLUE_HW_INTERRUPT (0x1<<2)
  5126. #define AEU_INPUTS_ATTN_BITS_PGLUE_PARITY_ERROR (0x1<<3)
  5127. #define AEU_INPUTS_ATTN_BITS_PXP_HW_INTERRUPT (1<<3)
  5128. #define AEU_INPUTS_ATTN_BITS_PXP_PARITY_ERROR (1<<2)
  5129. #define AEU_INPUTS_ATTN_BITS_PXPPCICLOCKCLIENT_HW_INTERRUPT (1<<5)
  5130. #define AEU_INPUTS_ATTN_BITS_PXPPCICLOCKCLIENT_PARITY_ERROR (1<<4)
  5131. #define AEU_INPUTS_ATTN_BITS_QM_HW_INTERRUPT (1<<3)
  5132. #define AEU_INPUTS_ATTN_BITS_QM_PARITY_ERROR (1<<2)
  5133. #define AEU_INPUTS_ATTN_BITS_SEARCHER_PARITY_ERROR (1<<22)
  5134. #define AEU_INPUTS_ATTN_BITS_SPIO5 (1<<15)
  5135. #define AEU_INPUTS_ATTN_BITS_TCM_HW_INTERRUPT (1<<27)
  5136. #define AEU_INPUTS_ATTN_BITS_TIMERS_HW_INTERRUPT (1<<5)
  5137. #define AEU_INPUTS_ATTN_BITS_TSDM_HW_INTERRUPT (1<<25)
  5138. #define AEU_INPUTS_ATTN_BITS_TSDM_PARITY_ERROR (1<<24)
  5139. #define AEU_INPUTS_ATTN_BITS_TSEMI_HW_INTERRUPT (1<<29)
  5140. #define AEU_INPUTS_ATTN_BITS_TSEMI_PARITY_ERROR (1<<28)
  5141. #define AEU_INPUTS_ATTN_BITS_UCM_HW_INTERRUPT (1<<23)
  5142. #define AEU_INPUTS_ATTN_BITS_UPB_HW_INTERRUPT (1<<27)
  5143. #define AEU_INPUTS_ATTN_BITS_UPB_PARITY_ERROR (1<<26)
  5144. #define AEU_INPUTS_ATTN_BITS_USDM_HW_INTERRUPT (1<<21)
  5145. #define AEU_INPUTS_ATTN_BITS_USDM_PARITY_ERROR (1<<20)
  5146. #define AEU_INPUTS_ATTN_BITS_USEMI_HW_INTERRUPT (1<<25)
  5147. #define AEU_INPUTS_ATTN_BITS_USEMI_PARITY_ERROR (1<<24)
  5148. #define AEU_INPUTS_ATTN_BITS_VAUX_PCI_CORE_PARITY_ERROR (1<<16)
  5149. #define AEU_INPUTS_ATTN_BITS_XCM_HW_INTERRUPT (1<<9)
  5150. #define AEU_INPUTS_ATTN_BITS_XSDM_HW_INTERRUPT (1<<7)
  5151. #define AEU_INPUTS_ATTN_BITS_XSDM_PARITY_ERROR (1<<6)
  5152. #define AEU_INPUTS_ATTN_BITS_XSEMI_HW_INTERRUPT (1<<11)
  5153. #define AEU_INPUTS_ATTN_BITS_XSEMI_PARITY_ERROR (1<<10)
  5154. #define RESERVED_GENERAL_ATTENTION_BIT_0 0
  5155. #define EVEREST_GEN_ATTN_IN_USE_MASK 0x3ffe0
  5156. #define EVEREST_LATCHED_ATTN_IN_USE_MASK 0xffe00000
  5157. #define RESERVED_GENERAL_ATTENTION_BIT_6 6
  5158. #define RESERVED_GENERAL_ATTENTION_BIT_7 7
  5159. #define RESERVED_GENERAL_ATTENTION_BIT_8 8
  5160. #define RESERVED_GENERAL_ATTENTION_BIT_9 9
  5161. #define RESERVED_GENERAL_ATTENTION_BIT_10 10
  5162. #define RESERVED_GENERAL_ATTENTION_BIT_11 11
  5163. #define RESERVED_GENERAL_ATTENTION_BIT_12 12
  5164. #define RESERVED_GENERAL_ATTENTION_BIT_13 13
  5165. #define RESERVED_GENERAL_ATTENTION_BIT_14 14
  5166. #define RESERVED_GENERAL_ATTENTION_BIT_15 15
  5167. #define RESERVED_GENERAL_ATTENTION_BIT_16 16
  5168. #define RESERVED_GENERAL_ATTENTION_BIT_17 17
  5169. #define RESERVED_GENERAL_ATTENTION_BIT_18 18
  5170. #define RESERVED_GENERAL_ATTENTION_BIT_19 19
  5171. #define RESERVED_GENERAL_ATTENTION_BIT_20 20
  5172. #define RESERVED_GENERAL_ATTENTION_BIT_21 21
  5173. /* storm asserts attention bits */
  5174. #define TSTORM_FATAL_ASSERT_ATTENTION_BIT RESERVED_GENERAL_ATTENTION_BIT_7
  5175. #define USTORM_FATAL_ASSERT_ATTENTION_BIT RESERVED_GENERAL_ATTENTION_BIT_8
  5176. #define CSTORM_FATAL_ASSERT_ATTENTION_BIT RESERVED_GENERAL_ATTENTION_BIT_9
  5177. #define XSTORM_FATAL_ASSERT_ATTENTION_BIT RESERVED_GENERAL_ATTENTION_BIT_10
  5178. /* mcp error attention bit */
  5179. #define MCP_FATAL_ASSERT_ATTENTION_BIT RESERVED_GENERAL_ATTENTION_BIT_11
  5180. /*E1H NIG status sync attention mapped to group 4-7*/
  5181. #define LINK_SYNC_ATTENTION_BIT_FUNC_0 RESERVED_GENERAL_ATTENTION_BIT_12
  5182. #define LINK_SYNC_ATTENTION_BIT_FUNC_1 RESERVED_GENERAL_ATTENTION_BIT_13
  5183. #define LINK_SYNC_ATTENTION_BIT_FUNC_2 RESERVED_GENERAL_ATTENTION_BIT_14
  5184. #define LINK_SYNC_ATTENTION_BIT_FUNC_3 RESERVED_GENERAL_ATTENTION_BIT_15
  5185. #define LINK_SYNC_ATTENTION_BIT_FUNC_4 RESERVED_GENERAL_ATTENTION_BIT_16
  5186. #define LINK_SYNC_ATTENTION_BIT_FUNC_5 RESERVED_GENERAL_ATTENTION_BIT_17
  5187. #define LINK_SYNC_ATTENTION_BIT_FUNC_6 RESERVED_GENERAL_ATTENTION_BIT_18
  5188. #define LINK_SYNC_ATTENTION_BIT_FUNC_7 RESERVED_GENERAL_ATTENTION_BIT_19
  5189. #define LATCHED_ATTN_RBCR 23
  5190. #define LATCHED_ATTN_RBCT 24
  5191. #define LATCHED_ATTN_RBCN 25
  5192. #define LATCHED_ATTN_RBCU 26
  5193. #define LATCHED_ATTN_RBCP 27
  5194. #define LATCHED_ATTN_TIMEOUT_GRC 28
  5195. #define LATCHED_ATTN_RSVD_GRC 29
  5196. #define LATCHED_ATTN_ROM_PARITY_MCP 30
  5197. #define LATCHED_ATTN_UM_RX_PARITY_MCP 31
  5198. #define LATCHED_ATTN_UM_TX_PARITY_MCP 32
  5199. #define LATCHED_ATTN_SCPAD_PARITY_MCP 33
  5200. #define GENERAL_ATTEN_WORD(atten_name) ((94 + atten_name) / 32)
  5201. #define GENERAL_ATTEN_OFFSET(atten_name)\
  5202. (1UL << ((94 + atten_name) % 32))
  5203. /*
  5204. * This file defines GRC base address for every block.
  5205. * This file is included by chipsim, asm microcode and cpp microcode.
  5206. * These values are used in Design.xml on regBase attribute
  5207. * Use the base with the generated offsets of specific registers.
  5208. */
  5209. #define GRCBASE_PXPCS 0x000000
  5210. #define GRCBASE_PCICONFIG 0x002000
  5211. #define GRCBASE_PCIREG 0x002400
  5212. #define GRCBASE_EMAC0 0x008000
  5213. #define GRCBASE_EMAC1 0x008400
  5214. #define GRCBASE_DBU 0x008800
  5215. #define GRCBASE_MISC 0x00A000
  5216. #define GRCBASE_DBG 0x00C000
  5217. #define GRCBASE_NIG 0x010000
  5218. #define GRCBASE_XCM 0x020000
  5219. #define GRCBASE_PRS 0x040000
  5220. #define GRCBASE_SRCH 0x040400
  5221. #define GRCBASE_TSDM 0x042000
  5222. #define GRCBASE_TCM 0x050000
  5223. #define GRCBASE_BRB1 0x060000
  5224. #define GRCBASE_MCP 0x080000
  5225. #define GRCBASE_UPB 0x0C1000
  5226. #define GRCBASE_CSDM 0x0C2000
  5227. #define GRCBASE_USDM 0x0C4000
  5228. #define GRCBASE_CCM 0x0D0000
  5229. #define GRCBASE_UCM 0x0E0000
  5230. #define GRCBASE_CDU 0x101000
  5231. #define GRCBASE_DMAE 0x102000
  5232. #define GRCBASE_PXP 0x103000
  5233. #define GRCBASE_CFC 0x104000
  5234. #define GRCBASE_HC 0x108000
  5235. #define GRCBASE_PXP2 0x120000
  5236. #define GRCBASE_PBF 0x140000
  5237. #define GRCBASE_XPB 0x161000
  5238. #define GRCBASE_TIMERS 0x164000
  5239. #define GRCBASE_XSDM 0x166000
  5240. #define GRCBASE_QM 0x168000
  5241. #define GRCBASE_DQ 0x170000
  5242. #define GRCBASE_TSEM 0x180000
  5243. #define GRCBASE_CSEM 0x200000
  5244. #define GRCBASE_XSEM 0x280000
  5245. #define GRCBASE_USEM 0x300000
  5246. #define GRCBASE_MISC_AEU GRCBASE_MISC
  5247. /* offset of configuration space in the pci core register */
  5248. #define PCICFG_OFFSET 0x2000
  5249. #define PCICFG_VENDOR_ID_OFFSET 0x00
  5250. #define PCICFG_DEVICE_ID_OFFSET 0x02
  5251. #define PCICFG_COMMAND_OFFSET 0x04
  5252. #define PCICFG_COMMAND_IO_SPACE (1<<0)
  5253. #define PCICFG_COMMAND_MEM_SPACE (1<<1)
  5254. #define PCICFG_COMMAND_BUS_MASTER (1<<2)
  5255. #define PCICFG_COMMAND_SPECIAL_CYCLES (1<<3)
  5256. #define PCICFG_COMMAND_MWI_CYCLES (1<<4)
  5257. #define PCICFG_COMMAND_VGA_SNOOP (1<<5)
  5258. #define PCICFG_COMMAND_PERR_ENA (1<<6)
  5259. #define PCICFG_COMMAND_STEPPING (1<<7)
  5260. #define PCICFG_COMMAND_SERR_ENA (1<<8)
  5261. #define PCICFG_COMMAND_FAST_B2B (1<<9)
  5262. #define PCICFG_COMMAND_INT_DISABLE (1<<10)
  5263. #define PCICFG_COMMAND_RESERVED (0x1f<<11)
  5264. #define PCICFG_STATUS_OFFSET 0x06
  5265. #define PCICFG_REVESION_ID_OFFSET 0x08
  5266. #define PCICFG_CACHE_LINE_SIZE 0x0c
  5267. #define PCICFG_LATENCY_TIMER 0x0d
  5268. #define PCICFG_BAR_1_LOW 0x10
  5269. #define PCICFG_BAR_1_HIGH 0x14
  5270. #define PCICFG_BAR_2_LOW 0x18
  5271. #define PCICFG_BAR_2_HIGH 0x1c
  5272. #define PCICFG_SUBSYSTEM_VENDOR_ID_OFFSET 0x2c
  5273. #define PCICFG_SUBSYSTEM_ID_OFFSET 0x2e
  5274. #define PCICFG_INT_LINE 0x3c
  5275. #define PCICFG_INT_PIN 0x3d
  5276. #define PCICFG_PM_CAPABILITY 0x48
  5277. #define PCICFG_PM_CAPABILITY_VERSION (0x3<<16)
  5278. #define PCICFG_PM_CAPABILITY_CLOCK (1<<19)
  5279. #define PCICFG_PM_CAPABILITY_RESERVED (1<<20)
  5280. #define PCICFG_PM_CAPABILITY_DSI (1<<21)
  5281. #define PCICFG_PM_CAPABILITY_AUX_CURRENT (0x7<<22)
  5282. #define PCICFG_PM_CAPABILITY_D1_SUPPORT (1<<25)
  5283. #define PCICFG_PM_CAPABILITY_D2_SUPPORT (1<<26)
  5284. #define PCICFG_PM_CAPABILITY_PME_IN_D0 (1<<27)
  5285. #define PCICFG_PM_CAPABILITY_PME_IN_D1 (1<<28)
  5286. #define PCICFG_PM_CAPABILITY_PME_IN_D2 (1<<29)
  5287. #define PCICFG_PM_CAPABILITY_PME_IN_D3_HOT (1<<30)
  5288. #define PCICFG_PM_CAPABILITY_PME_IN_D3_COLD (1<<31)
  5289. #define PCICFG_PM_CSR_OFFSET 0x4c
  5290. #define PCICFG_PM_CSR_STATE (0x3<<0)
  5291. #define PCICFG_PM_CSR_PME_ENABLE (1<<8)
  5292. #define PCICFG_PM_CSR_PME_STATUS (1<<15)
  5293. #define PCICFG_MSI_CAP_ID_OFFSET 0x58
  5294. #define PCICFG_MSI_CONTROL_ENABLE (0x1<<16)
  5295. #define PCICFG_MSI_CONTROL_MCAP (0x7<<17)
  5296. #define PCICFG_MSI_CONTROL_MENA (0x7<<20)
  5297. #define PCICFG_MSI_CONTROL_64_BIT_ADDR_CAP (0x1<<23)
  5298. #define PCICFG_MSI_CONTROL_MSI_PVMASK_CAPABLE (0x1<<24)
  5299. #define PCICFG_GRC_ADDRESS 0x78
  5300. #define PCICFG_GRC_DATA 0x80
  5301. #define PCICFG_MSIX_CAP_ID_OFFSET 0xa0
  5302. #define PCICFG_MSIX_CONTROL_TABLE_SIZE (0x7ff<<16)
  5303. #define PCICFG_MSIX_CONTROL_RESERVED (0x7<<27)
  5304. #define PCICFG_MSIX_CONTROL_FUNC_MASK (0x1<<30)
  5305. #define PCICFG_MSIX_CONTROL_MSIX_ENABLE (0x1<<31)
  5306. #define PCICFG_DEVICE_CONTROL 0xb4
  5307. #define PCICFG_DEVICE_STATUS 0xb6
  5308. #define PCICFG_DEVICE_STATUS_CORR_ERR_DET (1<<0)
  5309. #define PCICFG_DEVICE_STATUS_NON_FATAL_ERR_DET (1<<1)
  5310. #define PCICFG_DEVICE_STATUS_FATAL_ERR_DET (1<<2)
  5311. #define PCICFG_DEVICE_STATUS_UNSUP_REQ_DET (1<<3)
  5312. #define PCICFG_DEVICE_STATUS_AUX_PWR_DET (1<<4)
  5313. #define PCICFG_DEVICE_STATUS_NO_PEND (1<<5)
  5314. #define PCICFG_LINK_CONTROL 0xbc
  5315. #define BAR_USTRORM_INTMEM 0x400000
  5316. #define BAR_CSTRORM_INTMEM 0x410000
  5317. #define BAR_XSTRORM_INTMEM 0x420000
  5318. #define BAR_TSTRORM_INTMEM 0x430000
  5319. /* for accessing the IGU in case of status block ACK */
  5320. #define BAR_IGU_INTMEM 0x440000
  5321. #define BAR_DOORBELL_OFFSET 0x800000
  5322. #define BAR_ME_REGISTER 0x450000
  5323. /* config_2 offset */
  5324. #define GRC_CONFIG_2_SIZE_REG 0x408
  5325. #define PCI_CONFIG_2_BAR1_SIZE (0xfL<<0)
  5326. #define PCI_CONFIG_2_BAR1_SIZE_DISABLED (0L<<0)
  5327. #define PCI_CONFIG_2_BAR1_SIZE_64K (1L<<0)
  5328. #define PCI_CONFIG_2_BAR1_SIZE_128K (2L<<0)
  5329. #define PCI_CONFIG_2_BAR1_SIZE_256K (3L<<0)
  5330. #define PCI_CONFIG_2_BAR1_SIZE_512K (4L<<0)
  5331. #define PCI_CONFIG_2_BAR1_SIZE_1M (5L<<0)
  5332. #define PCI_CONFIG_2_BAR1_SIZE_2M (6L<<0)
  5333. #define PCI_CONFIG_2_BAR1_SIZE_4M (7L<<0)
  5334. #define PCI_CONFIG_2_BAR1_SIZE_8M (8L<<0)
  5335. #define PCI_CONFIG_2_BAR1_SIZE_16M (9L<<0)
  5336. #define PCI_CONFIG_2_BAR1_SIZE_32M (10L<<0)
  5337. #define PCI_CONFIG_2_BAR1_SIZE_64M (11L<<0)
  5338. #define PCI_CONFIG_2_BAR1_SIZE_128M (12L<<0)
  5339. #define PCI_CONFIG_2_BAR1_SIZE_256M (13L<<0)
  5340. #define PCI_CONFIG_2_BAR1_SIZE_512M (14L<<0)
  5341. #define PCI_CONFIG_2_BAR1_SIZE_1G (15L<<0)
  5342. #define PCI_CONFIG_2_BAR1_64ENA (1L<<4)
  5343. #define PCI_CONFIG_2_EXP_ROM_RETRY (1L<<5)
  5344. #define PCI_CONFIG_2_CFG_CYCLE_RETRY (1L<<6)
  5345. #define PCI_CONFIG_2_FIRST_CFG_DONE (1L<<7)
  5346. #define PCI_CONFIG_2_EXP_ROM_SIZE (0xffL<<8)
  5347. #define PCI_CONFIG_2_EXP_ROM_SIZE_DISABLED (0L<<8)
  5348. #define PCI_CONFIG_2_EXP_ROM_SIZE_2K (1L<<8)
  5349. #define PCI_CONFIG_2_EXP_ROM_SIZE_4K (2L<<8)
  5350. #define PCI_CONFIG_2_EXP_ROM_SIZE_8K (3L<<8)
  5351. #define PCI_CONFIG_2_EXP_ROM_SIZE_16K (4L<<8)
  5352. #define PCI_CONFIG_2_EXP_ROM_SIZE_32K (5L<<8)
  5353. #define PCI_CONFIG_2_EXP_ROM_SIZE_64K (6L<<8)
  5354. #define PCI_CONFIG_2_EXP_ROM_SIZE_128K (7L<<8)
  5355. #define PCI_CONFIG_2_EXP_ROM_SIZE_256K (8L<<8)
  5356. #define PCI_CONFIG_2_EXP_ROM_SIZE_512K (9L<<8)
  5357. #define PCI_CONFIG_2_EXP_ROM_SIZE_1M (10L<<8)
  5358. #define PCI_CONFIG_2_EXP_ROM_SIZE_2M (11L<<8)
  5359. #define PCI_CONFIG_2_EXP_ROM_SIZE_4M (12L<<8)
  5360. #define PCI_CONFIG_2_EXP_ROM_SIZE_8M (13L<<8)
  5361. #define PCI_CONFIG_2_EXP_ROM_SIZE_16M (14L<<8)
  5362. #define PCI_CONFIG_2_EXP_ROM_SIZE_32M (15L<<8)
  5363. #define PCI_CONFIG_2_BAR_PREFETCH (1L<<16)
  5364. #define PCI_CONFIG_2_RESERVED0 (0x7fffL<<17)
  5365. /* config_3 offset */
  5366. #define GRC_CONFIG_3_SIZE_REG 0x40c
  5367. #define PCI_CONFIG_3_STICKY_BYTE (0xffL<<0)
  5368. #define PCI_CONFIG_3_FORCE_PME (1L<<24)
  5369. #define PCI_CONFIG_3_PME_STATUS (1L<<25)
  5370. #define PCI_CONFIG_3_PME_ENABLE (1L<<26)
  5371. #define PCI_CONFIG_3_PM_STATE (0x3L<<27)
  5372. #define PCI_CONFIG_3_VAUX_PRESET (1L<<30)
  5373. #define PCI_CONFIG_3_PCI_POWER (1L<<31)
  5374. #define GRC_BAR2_CONFIG 0x4e0
  5375. #define PCI_CONFIG_2_BAR2_SIZE (0xfL<<0)
  5376. #define PCI_CONFIG_2_BAR2_SIZE_DISABLED (0L<<0)
  5377. #define PCI_CONFIG_2_BAR2_SIZE_64K (1L<<0)
  5378. #define PCI_CONFIG_2_BAR2_SIZE_128K (2L<<0)
  5379. #define PCI_CONFIG_2_BAR2_SIZE_256K (3L<<0)
  5380. #define PCI_CONFIG_2_BAR2_SIZE_512K (4L<<0)
  5381. #define PCI_CONFIG_2_BAR2_SIZE_1M (5L<<0)
  5382. #define PCI_CONFIG_2_BAR2_SIZE_2M (6L<<0)
  5383. #define PCI_CONFIG_2_BAR2_SIZE_4M (7L<<0)
  5384. #define PCI_CONFIG_2_BAR2_SIZE_8M (8L<<0)
  5385. #define PCI_CONFIG_2_BAR2_SIZE_16M (9L<<0)
  5386. #define PCI_CONFIG_2_BAR2_SIZE_32M (10L<<0)
  5387. #define PCI_CONFIG_2_BAR2_SIZE_64M (11L<<0)
  5388. #define PCI_CONFIG_2_BAR2_SIZE_128M (12L<<0)
  5389. #define PCI_CONFIG_2_BAR2_SIZE_256M (13L<<0)
  5390. #define PCI_CONFIG_2_BAR2_SIZE_512M (14L<<0)
  5391. #define PCI_CONFIG_2_BAR2_SIZE_1G (15L<<0)
  5392. #define PCI_CONFIG_2_BAR2_64ENA (1L<<4)
  5393. #define PCI_PM_DATA_A 0x410
  5394. #define PCI_PM_DATA_B 0x414
  5395. #define PCI_ID_VAL1 0x434
  5396. #define PCI_ID_VAL2 0x438
  5397. #define PXPCS_TL_CONTROL_5 0x814
  5398. #define PXPCS_TL_CONTROL_5_UNKNOWNTYPE_ERR_ATTN (1 << 29) /*WC*/
  5399. #define PXPCS_TL_CONTROL_5_BOUNDARY4K_ERR_ATTN (1 << 28) /*WC*/
  5400. #define PXPCS_TL_CONTROL_5_MRRS_ERR_ATTN (1 << 27) /*WC*/
  5401. #define PXPCS_TL_CONTROL_5_MPS_ERR_ATTN (1 << 26) /*WC*/
  5402. #define PXPCS_TL_CONTROL_5_TTX_BRIDGE_FORWARD_ERR (1 << 25) /*WC*/
  5403. #define PXPCS_TL_CONTROL_5_TTX_TXINTF_OVERFLOW (1 << 24) /*WC*/
  5404. #define PXPCS_TL_CONTROL_5_PHY_ERR_ATTN (1 << 23) /*RO*/
  5405. #define PXPCS_TL_CONTROL_5_DL_ERR_ATTN (1 << 22) /*RO*/
  5406. #define PXPCS_TL_CONTROL_5_TTX_ERR_NP_TAG_IN_USE (1 << 21) /*WC*/
  5407. #define PXPCS_TL_CONTROL_5_TRX_ERR_UNEXP_RTAG (1 << 20) /*WC*/
  5408. #define PXPCS_TL_CONTROL_5_PRI_SIG_TARGET_ABORT1 (1 << 19) /*WC*/
  5409. #define PXPCS_TL_CONTROL_5_ERR_UNSPPORT1 (1 << 18) /*WC*/
  5410. #define PXPCS_TL_CONTROL_5_ERR_ECRC1 (1 << 17) /*WC*/
  5411. #define PXPCS_TL_CONTROL_5_ERR_MALF_TLP1 (1 << 16) /*WC*/
  5412. #define PXPCS_TL_CONTROL_5_ERR_RX_OFLOW1 (1 << 15) /*WC*/
  5413. #define PXPCS_TL_CONTROL_5_ERR_UNEXP_CPL1 (1 << 14) /*WC*/
  5414. #define PXPCS_TL_CONTROL_5_ERR_MASTER_ABRT1 (1 << 13) /*WC*/
  5415. #define PXPCS_TL_CONTROL_5_ERR_CPL_TIMEOUT1 (1 << 12) /*WC*/
  5416. #define PXPCS_TL_CONTROL_5_ERR_FC_PRTL1 (1 << 11) /*WC*/
  5417. #define PXPCS_TL_CONTROL_5_ERR_PSND_TLP1 (1 << 10) /*WC*/
  5418. #define PXPCS_TL_CONTROL_5_PRI_SIG_TARGET_ABORT (1 << 9) /*WC*/
  5419. #define PXPCS_TL_CONTROL_5_ERR_UNSPPORT (1 << 8) /*WC*/
  5420. #define PXPCS_TL_CONTROL_5_ERR_ECRC (1 << 7) /*WC*/
  5421. #define PXPCS_TL_CONTROL_5_ERR_MALF_TLP (1 << 6) /*WC*/
  5422. #define PXPCS_TL_CONTROL_5_ERR_RX_OFLOW (1 << 5) /*WC*/
  5423. #define PXPCS_TL_CONTROL_5_ERR_UNEXP_CPL (1 << 4) /*WC*/
  5424. #define PXPCS_TL_CONTROL_5_ERR_MASTER_ABRT (1 << 3) /*WC*/
  5425. #define PXPCS_TL_CONTROL_5_ERR_CPL_TIMEOUT (1 << 2) /*WC*/
  5426. #define PXPCS_TL_CONTROL_5_ERR_FC_PRTL (1 << 1) /*WC*/
  5427. #define PXPCS_TL_CONTROL_5_ERR_PSND_TLP (1 << 0) /*WC*/
  5428. #define PXPCS_TL_FUNC345_STAT 0x854
  5429. #define PXPCS_TL_FUNC345_STAT_PRI_SIG_TARGET_ABORT4 (1 << 29) /* WC */
  5430. #define PXPCS_TL_FUNC345_STAT_ERR_UNSPPORT4\
  5431. (1 << 28) /* Unsupported Request Error Status in function4, if \
  5432. set, generate pcie_err_attn output when this error is seen. WC */
  5433. #define PXPCS_TL_FUNC345_STAT_ERR_ECRC4\
  5434. (1 << 27) /* ECRC Error TLP Status Status in function 4, if set, \
  5435. generate pcie_err_attn output when this error is seen.. WC */
  5436. #define PXPCS_TL_FUNC345_STAT_ERR_MALF_TLP4\
  5437. (1 << 26) /* Malformed TLP Status Status in function 4, if set, \
  5438. generate pcie_err_attn output when this error is seen.. WC */
  5439. #define PXPCS_TL_FUNC345_STAT_ERR_RX_OFLOW4\
  5440. (1 << 25) /* Receiver Overflow Status Status in function 4, if \
  5441. set, generate pcie_err_attn output when this error is seen.. WC \
  5442. */
  5443. #define PXPCS_TL_FUNC345_STAT_ERR_UNEXP_CPL4\
  5444. (1 << 24) /* Unexpected Completion Status Status in function 4, \
  5445. if set, generate pcie_err_attn output when this error is seen. WC \
  5446. */
  5447. #define PXPCS_TL_FUNC345_STAT_ERR_MASTER_ABRT4\
  5448. (1 << 23) /* Receive UR Statusin function 4. If set, generate \
  5449. pcie_err_attn output when this error is seen. WC */
  5450. #define PXPCS_TL_FUNC345_STAT_ERR_CPL_TIMEOUT4\
  5451. (1 << 22) /* Completer Timeout Status Status in function 4, if \
  5452. set, generate pcie_err_attn output when this error is seen. WC */
  5453. #define PXPCS_TL_FUNC345_STAT_ERR_FC_PRTL4\
  5454. (1 << 21) /* Flow Control Protocol Error Status Status in \
  5455. function 4, if set, generate pcie_err_attn output when this error \
  5456. is seen. WC */
  5457. #define PXPCS_TL_FUNC345_STAT_ERR_PSND_TLP4\
  5458. (1 << 20) /* Poisoned Error Status Status in function 4, if set, \
  5459. generate pcie_err_attn output when this error is seen.. WC */
  5460. #define PXPCS_TL_FUNC345_STAT_PRI_SIG_TARGET_ABORT3 (1 << 19) /* WC */
  5461. #define PXPCS_TL_FUNC345_STAT_ERR_UNSPPORT3\
  5462. (1 << 18) /* Unsupported Request Error Status in function3, if \
  5463. set, generate pcie_err_attn output when this error is seen. WC */
  5464. #define PXPCS_TL_FUNC345_STAT_ERR_ECRC3\
  5465. (1 << 17) /* ECRC Error TLP Status Status in function 3, if set, \
  5466. generate pcie_err_attn output when this error is seen.. WC */
  5467. #define PXPCS_TL_FUNC345_STAT_ERR_MALF_TLP3\
  5468. (1 << 16) /* Malformed TLP Status Status in function 3, if set, \
  5469. generate pcie_err_attn output when this error is seen.. WC */
  5470. #define PXPCS_TL_FUNC345_STAT_ERR_RX_OFLOW3\
  5471. (1 << 15) /* Receiver Overflow Status Status in function 3, if \
  5472. set, generate pcie_err_attn output when this error is seen.. WC \
  5473. */
  5474. #define PXPCS_TL_FUNC345_STAT_ERR_UNEXP_CPL3\
  5475. (1 << 14) /* Unexpected Completion Status Status in function 3, \
  5476. if set, generate pcie_err_attn output when this error is seen. WC \
  5477. */
  5478. #define PXPCS_TL_FUNC345_STAT_ERR_MASTER_ABRT3\
  5479. (1 << 13) /* Receive UR Statusin function 3. If set, generate \
  5480. pcie_err_attn output when this error is seen. WC */
  5481. #define PXPCS_TL_FUNC345_STAT_ERR_CPL_TIMEOUT3\
  5482. (1 << 12) /* Completer Timeout Status Status in function 3, if \
  5483. set, generate pcie_err_attn output when this error is seen. WC */
  5484. #define PXPCS_TL_FUNC345_STAT_ERR_FC_PRTL3\
  5485. (1 << 11) /* Flow Control Protocol Error Status Status in \
  5486. function 3, if set, generate pcie_err_attn output when this error \
  5487. is seen. WC */
  5488. #define PXPCS_TL_FUNC345_STAT_ERR_PSND_TLP3\
  5489. (1 << 10) /* Poisoned Error Status Status in function 3, if set, \
  5490. generate pcie_err_attn output when this error is seen.. WC */
  5491. #define PXPCS_TL_FUNC345_STAT_PRI_SIG_TARGET_ABORT2 (1 << 9) /* WC */
  5492. #define PXPCS_TL_FUNC345_STAT_ERR_UNSPPORT2\
  5493. (1 << 8) /* Unsupported Request Error Status for Function 2, if \
  5494. set, generate pcie_err_attn output when this error is seen. WC */
  5495. #define PXPCS_TL_FUNC345_STAT_ERR_ECRC2\
  5496. (1 << 7) /* ECRC Error TLP Status Status for Function 2, if set, \
  5497. generate pcie_err_attn output when this error is seen.. WC */
  5498. #define PXPCS_TL_FUNC345_STAT_ERR_MALF_TLP2\
  5499. (1 << 6) /* Malformed TLP Status Status for Function 2, if set, \
  5500. generate pcie_err_attn output when this error is seen.. WC */
  5501. #define PXPCS_TL_FUNC345_STAT_ERR_RX_OFLOW2\
  5502. (1 << 5) /* Receiver Overflow Status Status for Function 2, if \
  5503. set, generate pcie_err_attn output when this error is seen.. WC \
  5504. */
  5505. #define PXPCS_TL_FUNC345_STAT_ERR_UNEXP_CPL2\
  5506. (1 << 4) /* Unexpected Completion Status Status for Function 2, \
  5507. if set, generate pcie_err_attn output when this error is seen. WC \
  5508. */
  5509. #define PXPCS_TL_FUNC345_STAT_ERR_MASTER_ABRT2\
  5510. (1 << 3) /* Receive UR Statusfor Function 2. If set, generate \
  5511. pcie_err_attn output when this error is seen. WC */
  5512. #define PXPCS_TL_FUNC345_STAT_ERR_CPL_TIMEOUT2\
  5513. (1 << 2) /* Completer Timeout Status Status for Function 2, if \
  5514. set, generate pcie_err_attn output when this error is seen. WC */
  5515. #define PXPCS_TL_FUNC345_STAT_ERR_FC_PRTL2\
  5516. (1 << 1) /* Flow Control Protocol Error Status Status for \
  5517. Function 2, if set, generate pcie_err_attn output when this error \
  5518. is seen. WC */
  5519. #define PXPCS_TL_FUNC345_STAT_ERR_PSND_TLP2\
  5520. (1 << 0) /* Poisoned Error Status Status for Function 2, if set, \
  5521. generate pcie_err_attn output when this error is seen.. WC */
  5522. #define PXPCS_TL_FUNC678_STAT 0x85C
  5523. #define PXPCS_TL_FUNC678_STAT_PRI_SIG_TARGET_ABORT7 (1 << 29) /* WC */
  5524. #define PXPCS_TL_FUNC678_STAT_ERR_UNSPPORT7\
  5525. (1 << 28) /* Unsupported Request Error Status in function7, if \
  5526. set, generate pcie_err_attn output when this error is seen. WC */
  5527. #define PXPCS_TL_FUNC678_STAT_ERR_ECRC7\
  5528. (1 << 27) /* ECRC Error TLP Status Status in function 7, if set, \
  5529. generate pcie_err_attn output when this error is seen.. WC */
  5530. #define PXPCS_TL_FUNC678_STAT_ERR_MALF_TLP7\
  5531. (1 << 26) /* Malformed TLP Status Status in function 7, if set, \
  5532. generate pcie_err_attn output when this error is seen.. WC */
  5533. #define PXPCS_TL_FUNC678_STAT_ERR_RX_OFLOW7\
  5534. (1 << 25) /* Receiver Overflow Status Status in function 7, if \
  5535. set, generate pcie_err_attn output when this error is seen.. WC \
  5536. */
  5537. #define PXPCS_TL_FUNC678_STAT_ERR_UNEXP_CPL7\
  5538. (1 << 24) /* Unexpected Completion Status Status in function 7, \
  5539. if set, generate pcie_err_attn output when this error is seen. WC \
  5540. */
  5541. #define PXPCS_TL_FUNC678_STAT_ERR_MASTER_ABRT7\
  5542. (1 << 23) /* Receive UR Statusin function 7. If set, generate \
  5543. pcie_err_attn output when this error is seen. WC */
  5544. #define PXPCS_TL_FUNC678_STAT_ERR_CPL_TIMEOUT7\
  5545. (1 << 22) /* Completer Timeout Status Status in function 7, if \
  5546. set, generate pcie_err_attn output when this error is seen. WC */
  5547. #define PXPCS_TL_FUNC678_STAT_ERR_FC_PRTL7\
  5548. (1 << 21) /* Flow Control Protocol Error Status Status in \
  5549. function 7, if set, generate pcie_err_attn output when this error \
  5550. is seen. WC */
  5551. #define PXPCS_TL_FUNC678_STAT_ERR_PSND_TLP7\
  5552. (1 << 20) /* Poisoned Error Status Status in function 7, if set, \
  5553. generate pcie_err_attn output when this error is seen.. WC */
  5554. #define PXPCS_TL_FUNC678_STAT_PRI_SIG_TARGET_ABORT6 (1 << 19) /* WC */
  5555. #define PXPCS_TL_FUNC678_STAT_ERR_UNSPPORT6\
  5556. (1 << 18) /* Unsupported Request Error Status in function6, if \
  5557. set, generate pcie_err_attn output when this error is seen. WC */
  5558. #define PXPCS_TL_FUNC678_STAT_ERR_ECRC6\
  5559. (1 << 17) /* ECRC Error TLP Status Status in function 6, if set, \
  5560. generate pcie_err_attn output when this error is seen.. WC */
  5561. #define PXPCS_TL_FUNC678_STAT_ERR_MALF_TLP6\
  5562. (1 << 16) /* Malformed TLP Status Status in function 6, if set, \
  5563. generate pcie_err_attn output when this error is seen.. WC */
  5564. #define PXPCS_TL_FUNC678_STAT_ERR_RX_OFLOW6\
  5565. (1 << 15) /* Receiver Overflow Status Status in function 6, if \
  5566. set, generate pcie_err_attn output when this error is seen.. WC \
  5567. */
  5568. #define PXPCS_TL_FUNC678_STAT_ERR_UNEXP_CPL6\
  5569. (1 << 14) /* Unexpected Completion Status Status in function 6, \
  5570. if set, generate pcie_err_attn output when this error is seen. WC \
  5571. */
  5572. #define PXPCS_TL_FUNC678_STAT_ERR_MASTER_ABRT6\
  5573. (1 << 13) /* Receive UR Statusin function 6. If set, generate \
  5574. pcie_err_attn output when this error is seen. WC */
  5575. #define PXPCS_TL_FUNC678_STAT_ERR_CPL_TIMEOUT6\
  5576. (1 << 12) /* Completer Timeout Status Status in function 6, if \
  5577. set, generate pcie_err_attn output when this error is seen. WC */
  5578. #define PXPCS_TL_FUNC678_STAT_ERR_FC_PRTL6\
  5579. (1 << 11) /* Flow Control Protocol Error Status Status in \
  5580. function 6, if set, generate pcie_err_attn output when this error \
  5581. is seen. WC */
  5582. #define PXPCS_TL_FUNC678_STAT_ERR_PSND_TLP6\
  5583. (1 << 10) /* Poisoned Error Status Status in function 6, if set, \
  5584. generate pcie_err_attn output when this error is seen.. WC */
  5585. #define PXPCS_TL_FUNC678_STAT_PRI_SIG_TARGET_ABORT5 (1 << 9) /* WC */
  5586. #define PXPCS_TL_FUNC678_STAT_ERR_UNSPPORT5\
  5587. (1 << 8) /* Unsupported Request Error Status for Function 5, if \
  5588. set, generate pcie_err_attn output when this error is seen. WC */
  5589. #define PXPCS_TL_FUNC678_STAT_ERR_ECRC5\
  5590. (1 << 7) /* ECRC Error TLP Status Status for Function 5, if set, \
  5591. generate pcie_err_attn output when this error is seen.. WC */
  5592. #define PXPCS_TL_FUNC678_STAT_ERR_MALF_TLP5\
  5593. (1 << 6) /* Malformed TLP Status Status for Function 5, if set, \
  5594. generate pcie_err_attn output when this error is seen.. WC */
  5595. #define PXPCS_TL_FUNC678_STAT_ERR_RX_OFLOW5\
  5596. (1 << 5) /* Receiver Overflow Status Status for Function 5, if \
  5597. set, generate pcie_err_attn output when this error is seen.. WC \
  5598. */
  5599. #define PXPCS_TL_FUNC678_STAT_ERR_UNEXP_CPL5\
  5600. (1 << 4) /* Unexpected Completion Status Status for Function 5, \
  5601. if set, generate pcie_err_attn output when this error is seen. WC \
  5602. */
  5603. #define PXPCS_TL_FUNC678_STAT_ERR_MASTER_ABRT5\
  5604. (1 << 3) /* Receive UR Statusfor Function 5. If set, generate \
  5605. pcie_err_attn output when this error is seen. WC */
  5606. #define PXPCS_TL_FUNC678_STAT_ERR_CPL_TIMEOUT5\
  5607. (1 << 2) /* Completer Timeout Status Status for Function 5, if \
  5608. set, generate pcie_err_attn output when this error is seen. WC */
  5609. #define PXPCS_TL_FUNC678_STAT_ERR_FC_PRTL5\
  5610. (1 << 1) /* Flow Control Protocol Error Status Status for \
  5611. Function 5, if set, generate pcie_err_attn output when this error \
  5612. is seen. WC */
  5613. #define PXPCS_TL_FUNC678_STAT_ERR_PSND_TLP5\
  5614. (1 << 0) /* Poisoned Error Status Status for Function 5, if set, \
  5615. generate pcie_err_attn output when this error is seen.. WC */
  5616. #define BAR_USTRORM_INTMEM 0x400000
  5617. #define BAR_CSTRORM_INTMEM 0x410000
  5618. #define BAR_XSTRORM_INTMEM 0x420000
  5619. #define BAR_TSTRORM_INTMEM 0x430000
  5620. /* for accessing the IGU in case of status block ACK */
  5621. #define BAR_IGU_INTMEM 0x440000
  5622. #define BAR_DOORBELL_OFFSET 0x800000
  5623. #define BAR_ME_REGISTER 0x450000
  5624. #define ME_REG_PF_NUM_SHIFT 0
  5625. #define ME_REG_PF_NUM\
  5626. (7L<<ME_REG_PF_NUM_SHIFT) /* Relative PF Num */
  5627. #define ME_REG_VF_VALID (1<<8)
  5628. #define ME_REG_VF_NUM_SHIFT 9
  5629. #define ME_REG_VF_NUM_MASK (0x3f<<ME_REG_VF_NUM_SHIFT)
  5630. #define ME_REG_VF_ERR (0x1<<3)
  5631. #define ME_REG_ABS_PF_NUM_SHIFT 16
  5632. #define ME_REG_ABS_PF_NUM\
  5633. (7L<<ME_REG_ABS_PF_NUM_SHIFT) /* Absolute PF Num */
  5634. #define MDIO_REG_BANK_CL73_IEEEB0 0x0
  5635. #define MDIO_CL73_IEEEB0_CL73_AN_CONTROL 0x0
  5636. #define MDIO_CL73_IEEEB0_CL73_AN_CONTROL_RESTART_AN 0x0200
  5637. #define MDIO_CL73_IEEEB0_CL73_AN_CONTROL_AN_EN 0x1000
  5638. #define MDIO_CL73_IEEEB0_CL73_AN_CONTROL_MAIN_RST 0x8000
  5639. #define MDIO_REG_BANK_CL73_IEEEB1 0x10
  5640. #define MDIO_CL73_IEEEB1_AN_ADV1 0x00
  5641. #define MDIO_CL73_IEEEB1_AN_ADV1_PAUSE 0x0400
  5642. #define MDIO_CL73_IEEEB1_AN_ADV1_ASYMMETRIC 0x0800
  5643. #define MDIO_CL73_IEEEB1_AN_ADV1_PAUSE_BOTH 0x0C00
  5644. #define MDIO_CL73_IEEEB1_AN_ADV1_PAUSE_MASK 0x0C00
  5645. #define MDIO_CL73_IEEEB1_AN_ADV2 0x01
  5646. #define MDIO_CL73_IEEEB1_AN_ADV2_ADVR_1000M 0x0000
  5647. #define MDIO_CL73_IEEEB1_AN_ADV2_ADVR_1000M_KX 0x0020
  5648. #define MDIO_CL73_IEEEB1_AN_ADV2_ADVR_10G_KX4 0x0040
  5649. #define MDIO_CL73_IEEEB1_AN_ADV2_ADVR_10G_KR 0x0080
  5650. #define MDIO_CL73_IEEEB1_AN_LP_ADV1 0x03
  5651. #define MDIO_CL73_IEEEB1_AN_LP_ADV1_PAUSE 0x0400
  5652. #define MDIO_CL73_IEEEB1_AN_LP_ADV1_ASYMMETRIC 0x0800
  5653. #define MDIO_CL73_IEEEB1_AN_LP_ADV1_PAUSE_BOTH 0x0C00
  5654. #define MDIO_CL73_IEEEB1_AN_LP_ADV1_PAUSE_MASK 0x0C00
  5655. #define MDIO_REG_BANK_RX0 0x80b0
  5656. #define MDIO_RX0_RX_STATUS 0x10
  5657. #define MDIO_RX0_RX_STATUS_SIGDET 0x8000
  5658. #define MDIO_RX0_RX_STATUS_RX_SEQ_DONE 0x1000
  5659. #define MDIO_RX0_RX_EQ_BOOST 0x1c
  5660. #define MDIO_RX0_RX_EQ_BOOST_EQUALIZER_CTRL_MASK 0x7
  5661. #define MDIO_RX0_RX_EQ_BOOST_OFFSET_CTRL 0x10
  5662. #define MDIO_REG_BANK_RX1 0x80c0
  5663. #define MDIO_RX1_RX_EQ_BOOST 0x1c
  5664. #define MDIO_RX1_RX_EQ_BOOST_EQUALIZER_CTRL_MASK 0x7
  5665. #define MDIO_RX1_RX_EQ_BOOST_OFFSET_CTRL 0x10
  5666. #define MDIO_REG_BANK_RX2 0x80d0
  5667. #define MDIO_RX2_RX_EQ_BOOST 0x1c
  5668. #define MDIO_RX2_RX_EQ_BOOST_EQUALIZER_CTRL_MASK 0x7
  5669. #define MDIO_RX2_RX_EQ_BOOST_OFFSET_CTRL 0x10
  5670. #define MDIO_REG_BANK_RX3 0x80e0
  5671. #define MDIO_RX3_RX_EQ_BOOST 0x1c
  5672. #define MDIO_RX3_RX_EQ_BOOST_EQUALIZER_CTRL_MASK 0x7
  5673. #define MDIO_RX3_RX_EQ_BOOST_OFFSET_CTRL 0x10
  5674. #define MDIO_REG_BANK_RX_ALL 0x80f0
  5675. #define MDIO_RX_ALL_RX_EQ_BOOST 0x1c
  5676. #define MDIO_RX_ALL_RX_EQ_BOOST_EQUALIZER_CTRL_MASK 0x7
  5677. #define MDIO_RX_ALL_RX_EQ_BOOST_OFFSET_CTRL 0x10
  5678. #define MDIO_REG_BANK_TX0 0x8060
  5679. #define MDIO_TX0_TX_DRIVER 0x17
  5680. #define MDIO_TX0_TX_DRIVER_PREEMPHASIS_MASK 0xf000
  5681. #define MDIO_TX0_TX_DRIVER_PREEMPHASIS_SHIFT 12
  5682. #define MDIO_TX0_TX_DRIVER_IDRIVER_MASK 0x0f00
  5683. #define MDIO_TX0_TX_DRIVER_IDRIVER_SHIFT 8
  5684. #define MDIO_TX0_TX_DRIVER_IPREDRIVER_MASK 0x00f0
  5685. #define MDIO_TX0_TX_DRIVER_IPREDRIVER_SHIFT 4
  5686. #define MDIO_TX0_TX_DRIVER_IFULLSPD_MASK 0x000e
  5687. #define MDIO_TX0_TX_DRIVER_IFULLSPD_SHIFT 1
  5688. #define MDIO_TX0_TX_DRIVER_ICBUF1T 1
  5689. #define MDIO_REG_BANK_TX1 0x8070
  5690. #define MDIO_TX1_TX_DRIVER 0x17
  5691. #define MDIO_TX0_TX_DRIVER_PREEMPHASIS_MASK 0xf000
  5692. #define MDIO_TX0_TX_DRIVER_PREEMPHASIS_SHIFT 12
  5693. #define MDIO_TX0_TX_DRIVER_IDRIVER_MASK 0x0f00
  5694. #define MDIO_TX0_TX_DRIVER_IDRIVER_SHIFT 8
  5695. #define MDIO_TX0_TX_DRIVER_IPREDRIVER_MASK 0x00f0
  5696. #define MDIO_TX0_TX_DRIVER_IPREDRIVER_SHIFT 4
  5697. #define MDIO_TX0_TX_DRIVER_IFULLSPD_MASK 0x000e
  5698. #define MDIO_TX0_TX_DRIVER_IFULLSPD_SHIFT 1
  5699. #define MDIO_TX0_TX_DRIVER_ICBUF1T 1
  5700. #define MDIO_REG_BANK_TX2 0x8080
  5701. #define MDIO_TX2_TX_DRIVER 0x17
  5702. #define MDIO_TX0_TX_DRIVER_PREEMPHASIS_MASK 0xf000
  5703. #define MDIO_TX0_TX_DRIVER_PREEMPHASIS_SHIFT 12
  5704. #define MDIO_TX0_TX_DRIVER_IDRIVER_MASK 0x0f00
  5705. #define MDIO_TX0_TX_DRIVER_IDRIVER_SHIFT 8
  5706. #define MDIO_TX0_TX_DRIVER_IPREDRIVER_MASK 0x00f0
  5707. #define MDIO_TX0_TX_DRIVER_IPREDRIVER_SHIFT 4
  5708. #define MDIO_TX0_TX_DRIVER_IFULLSPD_MASK 0x000e
  5709. #define MDIO_TX0_TX_DRIVER_IFULLSPD_SHIFT 1
  5710. #define MDIO_TX0_TX_DRIVER_ICBUF1T 1
  5711. #define MDIO_REG_BANK_TX3 0x8090
  5712. #define MDIO_TX3_TX_DRIVER 0x17
  5713. #define MDIO_TX0_TX_DRIVER_PREEMPHASIS_MASK 0xf000
  5714. #define MDIO_TX0_TX_DRIVER_PREEMPHASIS_SHIFT 12
  5715. #define MDIO_TX0_TX_DRIVER_IDRIVER_MASK 0x0f00
  5716. #define MDIO_TX0_TX_DRIVER_IDRIVER_SHIFT 8
  5717. #define MDIO_TX0_TX_DRIVER_IPREDRIVER_MASK 0x00f0
  5718. #define MDIO_TX0_TX_DRIVER_IPREDRIVER_SHIFT 4
  5719. #define MDIO_TX0_TX_DRIVER_IFULLSPD_MASK 0x000e
  5720. #define MDIO_TX0_TX_DRIVER_IFULLSPD_SHIFT 1
  5721. #define MDIO_TX0_TX_DRIVER_ICBUF1T 1
  5722. #define MDIO_REG_BANK_XGXS_BLOCK0 0x8000
  5723. #define MDIO_BLOCK0_XGXS_CONTROL 0x10
  5724. #define MDIO_REG_BANK_XGXS_BLOCK1 0x8010
  5725. #define MDIO_BLOCK1_LANE_CTRL0 0x15
  5726. #define MDIO_BLOCK1_LANE_CTRL1 0x16
  5727. #define MDIO_BLOCK1_LANE_CTRL2 0x17
  5728. #define MDIO_BLOCK1_LANE_PRBS 0x19
  5729. #define MDIO_REG_BANK_XGXS_BLOCK2 0x8100
  5730. #define MDIO_XGXS_BLOCK2_RX_LN_SWAP 0x10
  5731. #define MDIO_XGXS_BLOCK2_RX_LN_SWAP_ENABLE 0x8000
  5732. #define MDIO_XGXS_BLOCK2_RX_LN_SWAP_FORCE_ENABLE 0x4000
  5733. #define MDIO_XGXS_BLOCK2_TX_LN_SWAP 0x11
  5734. #define MDIO_XGXS_BLOCK2_TX_LN_SWAP_ENABLE 0x8000
  5735. #define MDIO_XGXS_BLOCK2_UNICORE_MODE_10G 0x14
  5736. #define MDIO_XGXS_BLOCK2_UNICORE_MODE_10G_CX4_XGXS 0x0001
  5737. #define MDIO_XGXS_BLOCK2_UNICORE_MODE_10G_HIGIG_XGXS 0x0010
  5738. #define MDIO_XGXS_BLOCK2_TEST_MODE_LANE 0x15
  5739. #define MDIO_REG_BANK_GP_STATUS 0x8120
  5740. #define MDIO_GP_STATUS_TOP_AN_STATUS1 0x1B
  5741. #define MDIO_GP_STATUS_TOP_AN_STATUS1_CL73_AUTONEG_COMPLETE 0x0001
  5742. #define MDIO_GP_STATUS_TOP_AN_STATUS1_CL37_AUTONEG_COMPLETE 0x0002
  5743. #define MDIO_GP_STATUS_TOP_AN_STATUS1_LINK_STATUS 0x0004
  5744. #define MDIO_GP_STATUS_TOP_AN_STATUS1_DUPLEX_STATUS 0x0008
  5745. #define MDIO_GP_STATUS_TOP_AN_STATUS1_CL73_MR_LP_NP_AN_ABLE 0x0010
  5746. #define MDIO_GP_STATUS_TOP_AN_STATUS1_CL73_LP_NP_BAM_ABLE 0x0020
  5747. #define MDIO_GP_STATUS_TOP_AN_STATUS1_PAUSE_RSOLUTION_TXSIDE 0x0040
  5748. #define MDIO_GP_STATUS_TOP_AN_STATUS1_PAUSE_RSOLUTION_RXSIDE 0x0080
  5749. #define MDIO_GP_STATUS_TOP_AN_STATUS1_ACTUAL_SPEED_MASK 0x3f00
  5750. #define MDIO_GP_STATUS_TOP_AN_STATUS1_ACTUAL_SPEED_10M 0x0000
  5751. #define MDIO_GP_STATUS_TOP_AN_STATUS1_ACTUAL_SPEED_100M 0x0100
  5752. #define MDIO_GP_STATUS_TOP_AN_STATUS1_ACTUAL_SPEED_1G 0x0200
  5753. #define MDIO_GP_STATUS_TOP_AN_STATUS1_ACTUAL_SPEED_2_5G 0x0300
  5754. #define MDIO_GP_STATUS_TOP_AN_STATUS1_ACTUAL_SPEED_5G 0x0400
  5755. #define MDIO_GP_STATUS_TOP_AN_STATUS1_ACTUAL_SPEED_6G 0x0500
  5756. #define MDIO_GP_STATUS_TOP_AN_STATUS1_ACTUAL_SPEED_10G_HIG 0x0600
  5757. #define MDIO_GP_STATUS_TOP_AN_STATUS1_ACTUAL_SPEED_10G_CX4 0x0700
  5758. #define MDIO_GP_STATUS_TOP_AN_STATUS1_ACTUAL_SPEED_12G_HIG 0x0800
  5759. #define MDIO_GP_STATUS_TOP_AN_STATUS1_ACTUAL_SPEED_12_5G 0x0900
  5760. #define MDIO_GP_STATUS_TOP_AN_STATUS1_ACTUAL_SPEED_13G 0x0A00
  5761. #define MDIO_GP_STATUS_TOP_AN_STATUS1_ACTUAL_SPEED_15G 0x0B00
  5762. #define MDIO_GP_STATUS_TOP_AN_STATUS1_ACTUAL_SPEED_16G 0x0C00
  5763. #define MDIO_GP_STATUS_TOP_AN_STATUS1_ACTUAL_SPEED_1G_KX 0x0D00
  5764. #define MDIO_GP_STATUS_TOP_AN_STATUS1_ACTUAL_SPEED_10G_KX4 0x0E00
  5765. #define MDIO_REG_BANK_10G_PARALLEL_DETECT 0x8130
  5766. #define MDIO_10G_PARALLEL_DETECT_PAR_DET_10G_STATUS 0x10
  5767. #define MDIO_10G_PARALLEL_DETECT_PAR_DET_10G_STATUS_PD_LINK 0x8000
  5768. #define MDIO_10G_PARALLEL_DETECT_PAR_DET_10G_CONTROL 0x11
  5769. #define MDIO_10G_PARALLEL_DETECT_PAR_DET_10G_CONTROL_PARDET10G_EN 0x1
  5770. #define MDIO_10G_PARALLEL_DETECT_PAR_DET_10G_LINK 0x13
  5771. #define MDIO_10G_PARALLEL_DETECT_PAR_DET_10G_LINK_CNT (0xb71<<1)
  5772. #define MDIO_REG_BANK_SERDES_DIGITAL 0x8300
  5773. #define MDIO_SERDES_DIGITAL_A_1000X_CONTROL1 0x10
  5774. #define MDIO_SERDES_DIGITAL_A_1000X_CONTROL1_FIBER_MODE 0x0001
  5775. #define MDIO_SERDES_DIGITAL_A_1000X_CONTROL1_TBI_IF 0x0002
  5776. #define MDIO_SERDES_DIGITAL_A_1000X_CONTROL1_SIGNAL_DETECT_EN 0x0004
  5777. #define MDIO_SERDES_DIGITAL_A_1000X_CONTROL1_INVERT_SIGNAL_DETECT 0x0008
  5778. #define MDIO_SERDES_DIGITAL_A_1000X_CONTROL1_AUTODET 0x0010
  5779. #define MDIO_SERDES_DIGITAL_A_1000X_CONTROL1_MSTR_MODE 0x0020
  5780. #define MDIO_SERDES_DIGITAL_A_1000X_CONTROL2 0x11
  5781. #define MDIO_SERDES_DIGITAL_A_1000X_CONTROL2_PRL_DT_EN 0x0001
  5782. #define MDIO_SERDES_DIGITAL_A_1000X_CONTROL2_AN_FST_TMR 0x0040
  5783. #define MDIO_SERDES_DIGITAL_A_1000X_STATUS1 0x14
  5784. #define MDIO_SERDES_DIGITAL_A_1000X_STATUS1_SGMII 0x0001
  5785. #define MDIO_SERDES_DIGITAL_A_1000X_STATUS1_LINK 0x0002
  5786. #define MDIO_SERDES_DIGITAL_A_1000X_STATUS1_DUPLEX 0x0004
  5787. #define MDIO_SERDES_DIGITAL_A_1000X_STATUS1_SPEED_MASK 0x0018
  5788. #define MDIO_SERDES_DIGITAL_A_1000X_STATUS1_SPEED_SHIFT 3
  5789. #define MDIO_SERDES_DIGITAL_A_1000X_STATUS1_SPEED_2_5G 0x0018
  5790. #define MDIO_SERDES_DIGITAL_A_1000X_STATUS1_SPEED_1G 0x0010
  5791. #define MDIO_SERDES_DIGITAL_A_1000X_STATUS1_SPEED_100M 0x0008
  5792. #define MDIO_SERDES_DIGITAL_A_1000X_STATUS1_SPEED_10M 0x0000
  5793. #define MDIO_SERDES_DIGITAL_A_1000X_STATUS2 0x15
  5794. #define MDIO_SERDES_DIGITAL_A_1000X_STATUS2_AN_DISABLED 0x0002
  5795. #define MDIO_SERDES_DIGITAL_MISC1 0x18
  5796. #define MDIO_SERDES_DIGITAL_MISC1_REFCLK_SEL_MASK 0xE000
  5797. #define MDIO_SERDES_DIGITAL_MISC1_REFCLK_SEL_25M 0x0000
  5798. #define MDIO_SERDES_DIGITAL_MISC1_REFCLK_SEL_100M 0x2000
  5799. #define MDIO_SERDES_DIGITAL_MISC1_REFCLK_SEL_125M 0x4000
  5800. #define MDIO_SERDES_DIGITAL_MISC1_REFCLK_SEL_156_25M 0x6000
  5801. #define MDIO_SERDES_DIGITAL_MISC1_REFCLK_SEL_187_5M 0x8000
  5802. #define MDIO_SERDES_DIGITAL_MISC1_FORCE_SPEED_SEL 0x0010
  5803. #define MDIO_SERDES_DIGITAL_MISC1_FORCE_SPEED_MASK 0x000f
  5804. #define MDIO_SERDES_DIGITAL_MISC1_FORCE_SPEED_2_5G 0x0000
  5805. #define MDIO_SERDES_DIGITAL_MISC1_FORCE_SPEED_5G 0x0001
  5806. #define MDIO_SERDES_DIGITAL_MISC1_FORCE_SPEED_6G 0x0002
  5807. #define MDIO_SERDES_DIGITAL_MISC1_FORCE_SPEED_10G_HIG 0x0003
  5808. #define MDIO_SERDES_DIGITAL_MISC1_FORCE_SPEED_10G_CX4 0x0004
  5809. #define MDIO_SERDES_DIGITAL_MISC1_FORCE_SPEED_12G 0x0005
  5810. #define MDIO_SERDES_DIGITAL_MISC1_FORCE_SPEED_12_5G 0x0006
  5811. #define MDIO_SERDES_DIGITAL_MISC1_FORCE_SPEED_13G 0x0007
  5812. #define MDIO_SERDES_DIGITAL_MISC1_FORCE_SPEED_15G 0x0008
  5813. #define MDIO_SERDES_DIGITAL_MISC1_FORCE_SPEED_16G 0x0009
  5814. #define MDIO_REG_BANK_OVER_1G 0x8320
  5815. #define MDIO_OVER_1G_DIGCTL_3_4 0x14
  5816. #define MDIO_OVER_1G_DIGCTL_3_4_MP_ID_MASK 0xffe0
  5817. #define MDIO_OVER_1G_DIGCTL_3_4_MP_ID_SHIFT 5
  5818. #define MDIO_OVER_1G_UP1 0x19
  5819. #define MDIO_OVER_1G_UP1_2_5G 0x0001
  5820. #define MDIO_OVER_1G_UP1_5G 0x0002
  5821. #define MDIO_OVER_1G_UP1_6G 0x0004
  5822. #define MDIO_OVER_1G_UP1_10G 0x0010
  5823. #define MDIO_OVER_1G_UP1_10GH 0x0008
  5824. #define MDIO_OVER_1G_UP1_12G 0x0020
  5825. #define MDIO_OVER_1G_UP1_12_5G 0x0040
  5826. #define MDIO_OVER_1G_UP1_13G 0x0080
  5827. #define MDIO_OVER_1G_UP1_15G 0x0100
  5828. #define MDIO_OVER_1G_UP1_16G 0x0200
  5829. #define MDIO_OVER_1G_UP2 0x1A
  5830. #define MDIO_OVER_1G_UP2_IPREDRIVER_MASK 0x0007
  5831. #define MDIO_OVER_1G_UP2_IDRIVER_MASK 0x0038
  5832. #define MDIO_OVER_1G_UP2_PREEMPHASIS_MASK 0x03C0
  5833. #define MDIO_OVER_1G_UP3 0x1B
  5834. #define MDIO_OVER_1G_UP3_HIGIG2 0x0001
  5835. #define MDIO_OVER_1G_LP_UP1 0x1C
  5836. #define MDIO_OVER_1G_LP_UP2 0x1D
  5837. #define MDIO_OVER_1G_LP_UP2_MR_ADV_OVER_1G_MASK 0x03ff
  5838. #define MDIO_OVER_1G_LP_UP2_PREEMPHASIS_MASK 0x0780
  5839. #define MDIO_OVER_1G_LP_UP2_PREEMPHASIS_SHIFT 7
  5840. #define MDIO_OVER_1G_LP_UP3 0x1E
  5841. #define MDIO_REG_BANK_REMOTE_PHY 0x8330
  5842. #define MDIO_REMOTE_PHY_MISC_RX_STATUS 0x10
  5843. #define MDIO_REMOTE_PHY_MISC_RX_STATUS_CL37_FSM_RECEIVED_OVER1G_MSG 0x0010
  5844. #define MDIO_REMOTE_PHY_MISC_RX_STATUS_CL37_FSM_RECEIVED_BRCM_OUI_MSG 0x0600
  5845. #define MDIO_REG_BANK_BAM_NEXT_PAGE 0x8350
  5846. #define MDIO_BAM_NEXT_PAGE_MP5_NEXT_PAGE_CTRL 0x10
  5847. #define MDIO_BAM_NEXT_PAGE_MP5_NEXT_PAGE_CTRL_BAM_MODE 0x0001
  5848. #define MDIO_BAM_NEXT_PAGE_MP5_NEXT_PAGE_CTRL_TETON_AN 0x0002
  5849. #define MDIO_REG_BANK_CL73_USERB0 0x8370
  5850. #define MDIO_CL73_USERB0_CL73_UCTRL 0x10
  5851. #define MDIO_CL73_USERB0_CL73_UCTRL_USTAT1_MUXSEL 0x0002
  5852. #define MDIO_CL73_USERB0_CL73_USTAT1 0x11
  5853. #define MDIO_CL73_USERB0_CL73_USTAT1_LINK_STATUS_CHECK 0x0100
  5854. #define MDIO_CL73_USERB0_CL73_USTAT1_AN_GOOD_CHECK_BAM37 0x0400
  5855. #define MDIO_CL73_USERB0_CL73_BAM_CTRL1 0x12
  5856. #define MDIO_CL73_USERB0_CL73_BAM_CTRL1_BAM_EN 0x8000
  5857. #define MDIO_CL73_USERB0_CL73_BAM_CTRL1_BAM_STATION_MNGR_EN 0x4000
  5858. #define MDIO_CL73_USERB0_CL73_BAM_CTRL1_BAM_NP_AFTER_BP_EN 0x2000
  5859. #define MDIO_CL73_USERB0_CL73_BAM_CTRL3 0x14
  5860. #define MDIO_CL73_USERB0_CL73_BAM_CTRL3_USE_CL73_HCD_MR 0x0001
  5861. #define MDIO_REG_BANK_AER_BLOCK 0xFFD0
  5862. #define MDIO_AER_BLOCK_AER_REG 0x1E
  5863. #define MDIO_REG_BANK_COMBO_IEEE0 0xFFE0
  5864. #define MDIO_COMBO_IEEE0_MII_CONTROL 0x10
  5865. #define MDIO_COMBO_IEEO_MII_CONTROL_MAN_SGMII_SP_MASK 0x2040
  5866. #define MDIO_COMBO_IEEO_MII_CONTROL_MAN_SGMII_SP_10 0x0000
  5867. #define MDIO_COMBO_IEEO_MII_CONTROL_MAN_SGMII_SP_100 0x2000
  5868. #define MDIO_COMBO_IEEO_MII_CONTROL_MAN_SGMII_SP_1000 0x0040
  5869. #define MDIO_COMBO_IEEO_MII_CONTROL_FULL_DUPLEX 0x0100
  5870. #define MDIO_COMBO_IEEO_MII_CONTROL_RESTART_AN 0x0200
  5871. #define MDIO_COMBO_IEEO_MII_CONTROL_AN_EN 0x1000
  5872. #define MDIO_COMBO_IEEO_MII_CONTROL_LOOPBACK 0x4000
  5873. #define MDIO_COMBO_IEEO_MII_CONTROL_RESET 0x8000
  5874. #define MDIO_COMBO_IEEE0_MII_STATUS 0x11
  5875. #define MDIO_COMBO_IEEE0_MII_STATUS_LINK_PASS 0x0004
  5876. #define MDIO_COMBO_IEEE0_MII_STATUS_AUTONEG_COMPLETE 0x0020
  5877. #define MDIO_COMBO_IEEE0_AUTO_NEG_ADV 0x14
  5878. #define MDIO_COMBO_IEEE0_AUTO_NEG_ADV_FULL_DUPLEX 0x0020
  5879. #define MDIO_COMBO_IEEE0_AUTO_NEG_ADV_HALF_DUPLEX 0x0040
  5880. #define MDIO_COMBO_IEEE0_AUTO_NEG_ADV_PAUSE_MASK 0x0180
  5881. #define MDIO_COMBO_IEEE0_AUTO_NEG_ADV_PAUSE_NONE 0x0000
  5882. #define MDIO_COMBO_IEEE0_AUTO_NEG_ADV_PAUSE_SYMMETRIC 0x0080
  5883. #define MDIO_COMBO_IEEE0_AUTO_NEG_ADV_PAUSE_ASYMMETRIC 0x0100
  5884. #define MDIO_COMBO_IEEE0_AUTO_NEG_ADV_PAUSE_BOTH 0x0180
  5885. #define MDIO_COMBO_IEEE0_AUTO_NEG_ADV_NEXT_PAGE 0x8000
  5886. #define MDIO_COMBO_IEEE0_AUTO_NEG_LINK_PARTNER_ABILITY1 0x15
  5887. #define MDIO_COMBO_IEEE0_AUTO_NEG_LINK_PARTNER_ABILITY1_NEXT_PAGE 0x8000
  5888. #define MDIO_COMBO_IEEE0_AUTO_NEG_LINK_PARTNER_ABILITY1_ACK 0x4000
  5889. #define MDIO_COMBO_IEEE0_AUTO_NEG_LINK_PARTNER_ABILITY1_PAUSE_MASK 0x0180
  5890. #define MDIO_COMBO_IEEE0_AUTO_NEG_LINK_PARTNER_ABILITY1_PAUSE_NONE 0x0000
  5891. #define MDIO_COMBO_IEEE0_AUTO_NEG_LINK_PARTNER_ABILITY1_PAUSE_BOTH 0x0180
  5892. #define MDIO_COMBO_IEEE0_AUTO_NEG_LINK_PARTNER_ABILITY1_HALF_DUP_CAP 0x0040
  5893. #define MDIO_COMBO_IEEE0_AUTO_NEG_LINK_PARTNER_ABILITY1_FULL_DUP_CAP 0x0020
  5894. /*WhenthelinkpartnerisinSGMIImode(bit0=1),then
  5895. bit15=link,bit12=duplex,bits11:10=speed,bit14=acknowledge.
  5896. Theotherbitsarereservedandshouldbezero*/
  5897. #define MDIO_COMBO_IEEE0_AUTO_NEG_LINK_PARTNER_ABILITY1_SGMII_MODE 0x0001
  5898. #define MDIO_PMA_DEVAD 0x1
  5899. /*ieee*/
  5900. #define MDIO_PMA_REG_CTRL 0x0
  5901. #define MDIO_PMA_REG_STATUS 0x1
  5902. #define MDIO_PMA_REG_10G_CTRL2 0x7
  5903. #define MDIO_PMA_REG_RX_SD 0xa
  5904. /*bcm*/
  5905. #define MDIO_PMA_REG_BCM_CTRL 0x0096
  5906. #define MDIO_PMA_REG_FEC_CTRL 0x00ab
  5907. #define MDIO_PMA_REG_RX_ALARM_CTRL 0x9000
  5908. #define MDIO_PMA_REG_LASI_CTRL 0x9002
  5909. #define MDIO_PMA_REG_RX_ALARM 0x9003
  5910. #define MDIO_PMA_REG_TX_ALARM 0x9004
  5911. #define MDIO_PMA_REG_LASI_STATUS 0x9005
  5912. #define MDIO_PMA_REG_PHY_IDENTIFIER 0xc800
  5913. #define MDIO_PMA_REG_DIGITAL_CTRL 0xc808
  5914. #define MDIO_PMA_REG_DIGITAL_STATUS 0xc809
  5915. #define MDIO_PMA_REG_TX_POWER_DOWN 0xca02
  5916. #define MDIO_PMA_REG_CMU_PLL_BYPASS 0xca09
  5917. #define MDIO_PMA_REG_MISC_CTRL 0xca0a
  5918. #define MDIO_PMA_REG_GEN_CTRL 0xca10
  5919. #define MDIO_PMA_REG_GEN_CTRL_ROM_RESET_INTERNAL_MP 0x0188
  5920. #define MDIO_PMA_REG_GEN_CTRL_ROM_MICRO_RESET 0x018a
  5921. #define MDIO_PMA_REG_M8051_MSGIN_REG 0xca12
  5922. #define MDIO_PMA_REG_M8051_MSGOUT_REG 0xca13
  5923. #define MDIO_PMA_REG_ROM_VER1 0xca19
  5924. #define MDIO_PMA_REG_ROM_VER2 0xca1a
  5925. #define MDIO_PMA_REG_EDC_FFE_MAIN 0xca1b
  5926. #define MDIO_PMA_REG_PLL_BANDWIDTH 0xca1d
  5927. #define MDIO_PMA_REG_PLL_CTRL 0xca1e
  5928. #define MDIO_PMA_REG_MISC_CTRL0 0xca23
  5929. #define MDIO_PMA_REG_LRM_MODE 0xca3f
  5930. #define MDIO_PMA_REG_CDR_BANDWIDTH 0xca46
  5931. #define MDIO_PMA_REG_MISC_CTRL1 0xca85
  5932. #define MDIO_PMA_REG_SFP_TWO_WIRE_CTRL 0x8000
  5933. #define MDIO_PMA_REG_SFP_TWO_WIRE_CTRL_STATUS_MASK 0x000c
  5934. #define MDIO_PMA_REG_SFP_TWO_WIRE_STATUS_IDLE 0x0000
  5935. #define MDIO_PMA_REG_SFP_TWO_WIRE_STATUS_COMPLETE 0x0004
  5936. #define MDIO_PMA_REG_SFP_TWO_WIRE_STATUS_IN_PROGRESS 0x0008
  5937. #define MDIO_PMA_REG_SFP_TWO_WIRE_STATUS_FAILED 0x000c
  5938. #define MDIO_PMA_REG_SFP_TWO_WIRE_BYTE_CNT 0x8002
  5939. #define MDIO_PMA_REG_SFP_TWO_WIRE_MEM_ADDR 0x8003
  5940. #define MDIO_PMA_REG_8726_TWO_WIRE_DATA_BUF 0xc820
  5941. #define MDIO_PMA_REG_8726_TWO_WIRE_DATA_MASK 0xff
  5942. #define MDIO_PMA_REG_8726_TX_CTRL1 0xca01
  5943. #define MDIO_PMA_REG_8726_TX_CTRL2 0xca05
  5944. #define MDIO_PMA_REG_8727_TWO_WIRE_SLAVE_ADDR 0x8005
  5945. #define MDIO_PMA_REG_8727_TWO_WIRE_DATA_BUF 0x8007
  5946. #define MDIO_PMA_REG_8727_TWO_WIRE_DATA_MASK 0xff
  5947. #define MDIO_PMA_REG_8727_TX_CTRL1 0xca02
  5948. #define MDIO_PMA_REG_8727_TX_CTRL2 0xca05
  5949. #define MDIO_PMA_REG_8727_PCS_OPT_CTRL 0xc808
  5950. #define MDIO_PMA_REG_8727_GPIO_CTRL 0xc80e
  5951. #define MDIO_PMA_REG_8727_PCS_GP 0xc842
  5952. #define MDIO_AN_REG_8727_MISC_CTRL 0x8309
  5953. #define MDIO_PMA_REG_8073_CHIP_REV 0xc801
  5954. #define MDIO_PMA_REG_8073_SPEED_LINK_STATUS 0xc820
  5955. #define MDIO_PMA_REG_8073_XAUI_WA 0xc841
  5956. #define MDIO_PMA_REG_8073_OPT_DIGITAL_CTRL 0xcd08
  5957. #define MDIO_PMA_REG_7101_RESET 0xc000
  5958. #define MDIO_PMA_REG_7107_LED_CNTL 0xc007
  5959. #define MDIO_PMA_REG_7107_LINK_LED_CNTL 0xc009
  5960. #define MDIO_PMA_REG_7101_VER1 0xc026
  5961. #define MDIO_PMA_REG_7101_VER2 0xc027
  5962. #define MDIO_PMA_REG_8481_PMD_SIGNAL 0xa811
  5963. #define MDIO_PMA_REG_8481_LED1_MASK 0xa82c
  5964. #define MDIO_PMA_REG_8481_LED2_MASK 0xa82f
  5965. #define MDIO_PMA_REG_8481_LED3_MASK 0xa832
  5966. #define MDIO_PMA_REG_8481_LED3_BLINK 0xa834
  5967. #define MDIO_PMA_REG_8481_LED5_MASK 0xa838
  5968. #define MDIO_PMA_REG_8481_SIGNAL_MASK 0xa835
  5969. #define MDIO_PMA_REG_8481_LINK_SIGNAL 0xa83b
  5970. #define MDIO_PMA_REG_8481_LINK_SIGNAL_LED4_ENABLE_MASK 0x800
  5971. #define MDIO_PMA_REG_8481_LINK_SIGNAL_LED4_ENABLE_SHIFT 11
  5972. #define MDIO_WIS_DEVAD 0x2
  5973. /*bcm*/
  5974. #define MDIO_WIS_REG_LASI_CNTL 0x9002
  5975. #define MDIO_WIS_REG_LASI_STATUS 0x9005
  5976. #define MDIO_PCS_DEVAD 0x3
  5977. #define MDIO_PCS_REG_STATUS 0x0020
  5978. #define MDIO_PCS_REG_LASI_STATUS 0x9005
  5979. #define MDIO_PCS_REG_7101_DSP_ACCESS 0xD000
  5980. #define MDIO_PCS_REG_7101_SPI_MUX 0xD008
  5981. #define MDIO_PCS_REG_7101_SPI_CTRL_ADDR 0xE12A
  5982. #define MDIO_PCS_REG_7101_SPI_RESET_BIT (5)
  5983. #define MDIO_PCS_REG_7101_SPI_FIFO_ADDR 0xE02A
  5984. #define MDIO_PCS_REG_7101_SPI_FIFO_ADDR_WRITE_ENABLE_CMD (6)
  5985. #define MDIO_PCS_REG_7101_SPI_FIFO_ADDR_BULK_ERASE_CMD (0xC7)
  5986. #define MDIO_PCS_REG_7101_SPI_FIFO_ADDR_PAGE_PROGRAM_CMD (2)
  5987. #define MDIO_PCS_REG_7101_SPI_BYTES_TO_TRANSFER_ADDR 0xE028
  5988. #define MDIO_XS_DEVAD 0x4
  5989. #define MDIO_XS_PLL_SEQUENCER 0x8000
  5990. #define MDIO_XS_SFX7101_XGXS_TEST1 0xc00a
  5991. #define MDIO_XS_8706_REG_BANK_RX0 0x80bc
  5992. #define MDIO_XS_8706_REG_BANK_RX1 0x80cc
  5993. #define MDIO_XS_8706_REG_BANK_RX2 0x80dc
  5994. #define MDIO_XS_8706_REG_BANK_RX3 0x80ec
  5995. #define MDIO_XS_8706_REG_BANK_RXA 0x80fc
  5996. #define MDIO_XS_REG_8073_RX_CTRL_PCIE 0x80FA
  5997. #define MDIO_AN_DEVAD 0x7
  5998. /*ieee*/
  5999. #define MDIO_AN_REG_CTRL 0x0000
  6000. #define MDIO_AN_REG_STATUS 0x0001
  6001. #define MDIO_AN_REG_STATUS_AN_COMPLETE 0x0020
  6002. #define MDIO_AN_REG_ADV_PAUSE 0x0010
  6003. #define MDIO_AN_REG_ADV_PAUSE_PAUSE 0x0400
  6004. #define MDIO_AN_REG_ADV_PAUSE_ASYMMETRIC 0x0800
  6005. #define MDIO_AN_REG_ADV_PAUSE_BOTH 0x0C00
  6006. #define MDIO_AN_REG_ADV_PAUSE_MASK 0x0C00
  6007. #define MDIO_AN_REG_ADV 0x0011
  6008. #define MDIO_AN_REG_ADV2 0x0012
  6009. #define MDIO_AN_REG_LP_AUTO_NEG 0x0013
  6010. #define MDIO_AN_REG_MASTER_STATUS 0x0021
  6011. /*bcm*/
  6012. #define MDIO_AN_REG_LINK_STATUS 0x8304
  6013. #define MDIO_AN_REG_CL37_CL73 0x8370
  6014. #define MDIO_AN_REG_CL37_AN 0xffe0
  6015. #define MDIO_AN_REG_CL37_FC_LD 0xffe4
  6016. #define MDIO_AN_REG_CL37_FC_LP 0xffe5
  6017. #define MDIO_AN_REG_8073_2_5G 0x8329
  6018. #define MDIO_AN_REG_8073_BAM 0x8350
  6019. #define MDIO_AN_REG_8481_10GBASE_T_AN_CTRL 0x0020
  6020. #define MDIO_AN_REG_8481_LEGACY_MII_CTRL 0xffe0
  6021. #define MDIO_AN_REG_8481_LEGACY_MII_STATUS 0xffe1
  6022. #define MDIO_AN_REG_8481_LEGACY_AN_ADV 0xffe4
  6023. #define MDIO_AN_REG_8481_LEGACY_AN_EXPANSION 0xffe6
  6024. #define MDIO_AN_REG_8481_1000T_CTRL 0xffe9
  6025. #define MDIO_AN_REG_8481_EXPANSION_REG_RD_RW 0xfff5
  6026. #define MDIO_AN_REG_8481_EXPANSION_REG_ACCESS 0xfff7
  6027. #define MDIO_AN_REG_8481_AUX_CTRL 0xfff8
  6028. #define MDIO_AN_REG_8481_LEGACY_SHADOW 0xfffc
  6029. /* BCM84823 only */
  6030. #define MDIO_CTL_DEVAD 0x1e
  6031. #define MDIO_CTL_REG_84823_MEDIA 0x401a
  6032. #define MDIO_CTL_REG_84823_MEDIA_MAC_MASK 0x0018
  6033. /* These pins configure the BCM84823 interface to MAC after reset. */
  6034. #define MDIO_CTL_REG_84823_CTRL_MAC_XFI 0x0008
  6035. #define MDIO_CTL_REG_84823_MEDIA_MAC_XAUI_M 0x0010
  6036. /* These pins configure the BCM84823 interface to Line after reset. */
  6037. #define MDIO_CTL_REG_84823_MEDIA_LINE_MASK 0x0060
  6038. #define MDIO_CTL_REG_84823_MEDIA_LINE_XAUI_L 0x0020
  6039. #define MDIO_CTL_REG_84823_MEDIA_LINE_XFI 0x0040
  6040. /* When this pin is active high during reset, 10GBASE-T core is power
  6041. * down, When it is active low the 10GBASE-T is power up
  6042. */
  6043. #define MDIO_CTL_REG_84823_MEDIA_COPPER_CORE_DOWN 0x0080
  6044. #define MDIO_CTL_REG_84823_MEDIA_PRIORITY_MASK 0x0100
  6045. #define MDIO_CTL_REG_84823_MEDIA_PRIORITY_COPPER 0x0000
  6046. #define MDIO_CTL_REG_84823_MEDIA_PRIORITY_FIBER 0x0100
  6047. #define MDIO_CTL_REG_84823_MEDIA_FIBER_1G 0x1000
  6048. #define IGU_FUNC_BASE 0x0400
  6049. #define IGU_ADDR_MSIX 0x0000
  6050. #define IGU_ADDR_INT_ACK 0x0200
  6051. #define IGU_ADDR_PROD_UPD 0x0201
  6052. #define IGU_ADDR_ATTN_BITS_UPD 0x0202
  6053. #define IGU_ADDR_ATTN_BITS_SET 0x0203
  6054. #define IGU_ADDR_ATTN_BITS_CLR 0x0204
  6055. #define IGU_ADDR_COALESCE_NOW 0x0205
  6056. #define IGU_ADDR_SIMD_MASK 0x0206
  6057. #define IGU_ADDR_SIMD_NOMASK 0x0207
  6058. #define IGU_ADDR_MSI_CTL 0x0210
  6059. #define IGU_ADDR_MSI_ADDR_LO 0x0211
  6060. #define IGU_ADDR_MSI_ADDR_HI 0x0212
  6061. #define IGU_ADDR_MSI_DATA 0x0213
  6062. #define IGU_INT_ENABLE 0
  6063. #define IGU_INT_DISABLE 1
  6064. #define IGU_INT_NOP 2
  6065. #define IGU_INT_NOP2 3
  6066. #define IGU_USE_REGISTER_ustorm_type_0_sb_cleanup 0
  6067. #define IGU_USE_REGISTER_ustorm_type_1_sb_cleanup 1
  6068. #define IGU_USE_REGISTER_cstorm_type_0_sb_cleanup 2
  6069. #define IGU_USE_REGISTER_cstorm_type_1_sb_cleanup 3
  6070. #define COMMAND_REG_INT_ACK 0x0
  6071. #define COMMAND_REG_PROD_UPD 0x4
  6072. #define COMMAND_REG_ATTN_BITS_UPD 0x8
  6073. #define COMMAND_REG_ATTN_BITS_SET 0xc
  6074. #define COMMAND_REG_ATTN_BITS_CLR 0x10
  6075. #define COMMAND_REG_COALESCE_NOW 0x14
  6076. #define COMMAND_REG_SIMD_MASK 0x18
  6077. #define COMMAND_REG_SIMD_NOMASK 0x1c
  6078. #define IGU_MEM_BASE 0x0000
  6079. #define IGU_MEM_MSIX_BASE 0x0000
  6080. #define IGU_MEM_MSIX_UPPER 0x007f
  6081. #define IGU_MEM_MSIX_RESERVED_UPPER 0x01ff
  6082. #define IGU_MEM_PBA_MSIX_BASE 0x0200
  6083. #define IGU_MEM_PBA_MSIX_UPPER 0x0200
  6084. #define IGU_CMD_BACKWARD_COMP_PROD_UPD 0x0201
  6085. #define IGU_MEM_PBA_MSIX_RESERVED_UPPER 0x03ff
  6086. #define IGU_CMD_INT_ACK_BASE 0x0400
  6087. #define IGU_CMD_INT_ACK_UPPER\
  6088. (IGU_CMD_INT_ACK_BASE + MAX_SB_PER_PORT * NUM_OF_PORTS_PER_PATH - 1)
  6089. #define IGU_CMD_INT_ACK_RESERVED_UPPER 0x04ff
  6090. #define IGU_CMD_E2_PROD_UPD_BASE 0x0500
  6091. #define IGU_CMD_E2_PROD_UPD_UPPER\
  6092. (IGU_CMD_E2_PROD_UPD_BASE + MAX_SB_PER_PORT * NUM_OF_PORTS_PER_PATH - 1)
  6093. #define IGU_CMD_E2_PROD_UPD_RESERVED_UPPER 0x059f
  6094. #define IGU_CMD_ATTN_BIT_UPD_UPPER 0x05a0
  6095. #define IGU_CMD_ATTN_BIT_SET_UPPER 0x05a1
  6096. #define IGU_CMD_ATTN_BIT_CLR_UPPER 0x05a2
  6097. #define IGU_REG_SISR_MDPC_WMASK_UPPER 0x05a3
  6098. #define IGU_REG_SISR_MDPC_WMASK_LSB_UPPER 0x05a4
  6099. #define IGU_REG_SISR_MDPC_WMASK_MSB_UPPER 0x05a5
  6100. #define IGU_REG_SISR_MDPC_WOMASK_UPPER 0x05a6
  6101. #define IGU_REG_RESERVED_UPPER 0x05ff
  6102. /* Fields of IGU PF CONFIGRATION REGISTER */
  6103. #define IGU_PF_CONF_FUNC_EN (0x1<<0) /* function enable */
  6104. #define IGU_PF_CONF_MSI_MSIX_EN (0x1<<1) /* MSI/MSIX enable */
  6105. #define IGU_PF_CONF_INT_LINE_EN (0x1<<2) /* INT enable */
  6106. #define IGU_PF_CONF_ATTN_BIT_EN (0x1<<3) /* attention enable */
  6107. #define IGU_PF_CONF_SINGLE_ISR_EN (0x1<<4) /* single ISR mode enable */
  6108. #define IGU_PF_CONF_SIMD_MODE (0x1<<5) /* simd all ones mode */
  6109. /* Fields of IGU VF CONFIGRATION REGISTER */
  6110. #define IGU_VF_CONF_FUNC_EN (0x1<<0) /* function enable */
  6111. #define IGU_VF_CONF_MSI_MSIX_EN (0x1<<1) /* MSI/MSIX enable */
  6112. #define IGU_VF_CONF_PARENT_MASK (0x3<<2) /* Parent PF */
  6113. #define IGU_VF_CONF_PARENT_SHIFT 2 /* Parent PF */
  6114. #define IGU_VF_CONF_SINGLE_ISR_EN (0x1<<4) /* single ISR mode enable */
  6115. #define IGU_BC_DSB_NUM_SEGS 5
  6116. #define IGU_BC_NDSB_NUM_SEGS 2
  6117. #define IGU_NORM_DSB_NUM_SEGS 2
  6118. #define IGU_NORM_NDSB_NUM_SEGS 1
  6119. #define IGU_BC_BASE_DSB_PROD 128
  6120. #define IGU_NORM_BASE_DSB_PROD 136
  6121. #define IGU_CTRL_CMD_TYPE_WR\
  6122. 1
  6123. #define IGU_CTRL_CMD_TYPE_RD\
  6124. 0
  6125. #define IGU_SEG_ACCESS_NORM 0
  6126. #define IGU_SEG_ACCESS_DEF 1
  6127. #define IGU_SEG_ACCESS_ATTN 2
  6128. /* FID (if VF - [6] = 0; [5:0] = VF number; if PF - [6] = 1; \
  6129. [5:2] = 0; [1:0] = PF number) */
  6130. #define IGU_FID_ENCODE_IS_PF (0x1<<6)
  6131. #define IGU_FID_ENCODE_IS_PF_SHIFT 6
  6132. #define IGU_FID_VF_NUM_MASK (0x3f)
  6133. #define IGU_FID_PF_NUM_MASK (0x7)
  6134. #define IGU_REG_MAPPING_MEMORY_VALID (1<<0)
  6135. #define IGU_REG_MAPPING_MEMORY_VECTOR_MASK (0x3F<<1)
  6136. #define IGU_REG_MAPPING_MEMORY_VECTOR_SHIFT 1
  6137. #define IGU_REG_MAPPING_MEMORY_FID_MASK (0x7F<<7)
  6138. #define IGU_REG_MAPPING_MEMORY_FID_SHIFT 7
  6139. #define CDU_REGION_NUMBER_XCM_AG 2
  6140. #define CDU_REGION_NUMBER_UCM_AG 4
  6141. /**
  6142. * String-to-compress [31:8] = CID (all 24 bits)
  6143. * String-to-compress [7:4] = Region
  6144. * String-to-compress [3:0] = Type
  6145. */
  6146. #define CDU_VALID_DATA(_cid, _region, _type)\
  6147. (((_cid) << 8) | (((_region)&0xf)<<4) | (((_type)&0xf)))
  6148. #define CDU_CRC8(_cid, _region, _type)\
  6149. (calc_crc8(CDU_VALID_DATA(_cid, _region, _type), 0xff))
  6150. #define CDU_RSRVD_VALUE_TYPE_A(_cid, _region, _type)\
  6151. (0x80 | ((CDU_CRC8(_cid, _region, _type)) & 0x7f))
  6152. #define CDU_RSRVD_VALUE_TYPE_B(_crc, _type)\
  6153. (0x80 | ((_type)&0xf << 3) | ((CDU_CRC8(_cid, _region, _type)) & 0x7))
  6154. #define CDU_RSRVD_INVALIDATE_CONTEXT_VALUE(_val) ((_val) & ~0x80)
  6155. /******************************************************************************
  6156. * Description:
  6157. * Calculates crc 8 on a word value: polynomial 0-1-2-8
  6158. * Code was translated from Verilog.
  6159. * Return:
  6160. *****************************************************************************/
  6161. static inline u8 calc_crc8(u32 data, u8 crc)
  6162. {
  6163. u8 D[32];
  6164. u8 NewCRC[8];
  6165. u8 C[8];
  6166. u8 crc_res;
  6167. u8 i;
  6168. /* split the data into 31 bits */
  6169. for (i = 0; i < 32; i++) {
  6170. D[i] = (u8)(data & 1);
  6171. data = data >> 1;
  6172. }
  6173. /* split the crc into 8 bits */
  6174. for (i = 0; i < 8; i++) {
  6175. C[i] = crc & 1;
  6176. crc = crc >> 1;
  6177. }
  6178. NewCRC[0] = D[31] ^ D[30] ^ D[28] ^ D[23] ^ D[21] ^ D[19] ^ D[18] ^
  6179. D[16] ^ D[14] ^ D[12] ^ D[8] ^ D[7] ^ D[6] ^ D[0] ^ C[4] ^
  6180. C[6] ^ C[7];
  6181. NewCRC[1] = D[30] ^ D[29] ^ D[28] ^ D[24] ^ D[23] ^ D[22] ^ D[21] ^
  6182. D[20] ^ D[18] ^ D[17] ^ D[16] ^ D[15] ^ D[14] ^ D[13] ^
  6183. D[12] ^ D[9] ^ D[6] ^ D[1] ^ D[0] ^ C[0] ^ C[4] ^ C[5] ^
  6184. C[6];
  6185. NewCRC[2] = D[29] ^ D[28] ^ D[25] ^ D[24] ^ D[22] ^ D[17] ^ D[15] ^
  6186. D[13] ^ D[12] ^ D[10] ^ D[8] ^ D[6] ^ D[2] ^ D[1] ^ D[0] ^
  6187. C[0] ^ C[1] ^ C[4] ^ C[5];
  6188. NewCRC[3] = D[30] ^ D[29] ^ D[26] ^ D[25] ^ D[23] ^ D[18] ^ D[16] ^
  6189. D[14] ^ D[13] ^ D[11] ^ D[9] ^ D[7] ^ D[3] ^ D[2] ^ D[1] ^
  6190. C[1] ^ C[2] ^ C[5] ^ C[6];
  6191. NewCRC[4] = D[31] ^ D[30] ^ D[27] ^ D[26] ^ D[24] ^ D[19] ^ D[17] ^
  6192. D[15] ^ D[14] ^ D[12] ^ D[10] ^ D[8] ^ D[4] ^ D[3] ^ D[2] ^
  6193. C[0] ^ C[2] ^ C[3] ^ C[6] ^ C[7];
  6194. NewCRC[5] = D[31] ^ D[28] ^ D[27] ^ D[25] ^ D[20] ^ D[18] ^ D[16] ^
  6195. D[15] ^ D[13] ^ D[11] ^ D[9] ^ D[5] ^ D[4] ^ D[3] ^ C[1] ^
  6196. C[3] ^ C[4] ^ C[7];
  6197. NewCRC[6] = D[29] ^ D[28] ^ D[26] ^ D[21] ^ D[19] ^ D[17] ^ D[16] ^
  6198. D[14] ^ D[12] ^ D[10] ^ D[6] ^ D[5] ^ D[4] ^ C[2] ^ C[4] ^
  6199. C[5];
  6200. NewCRC[7] = D[30] ^ D[29] ^ D[27] ^ D[22] ^ D[20] ^ D[18] ^ D[17] ^
  6201. D[15] ^ D[13] ^ D[11] ^ D[7] ^ D[6] ^ D[5] ^ C[3] ^ C[5] ^
  6202. C[6];
  6203. crc_res = 0;
  6204. for (i = 0; i < 8; i++)
  6205. crc_res |= (NewCRC[i] << i);
  6206. return crc_res;
  6207. }