bnx2x_reg.h 385 KB

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