bnx2x_reg.h 335 KB

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