bnx2x_reg.h 320 KB

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