bnx2x_reg.h 353 KB

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