cvmx-gmxx-defs.h 226 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930
  1. /***********************license start***************
  2. * Author: Cavium Networks
  3. *
  4. * Contact: support@caviumnetworks.com
  5. * This file is part of the OCTEON SDK
  6. *
  7. * Copyright (c) 2003-2012 Cavium Networks
  8. *
  9. * This file is free software; you can redistribute it and/or modify
  10. * it under the terms of the GNU General Public License, Version 2, as
  11. * published by the Free Software Foundation.
  12. *
  13. * This file is distributed in the hope that it will be useful, but
  14. * AS-IS and WITHOUT ANY WARRANTY; without even the implied warranty
  15. * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE, TITLE, or
  16. * NONINFRINGEMENT. See the GNU General Public License for more
  17. * details.
  18. *
  19. * You should have received a copy of the GNU General Public License
  20. * along with this file; if not, write to the Free Software
  21. * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
  22. * or visit http://www.gnu.org/licenses/.
  23. *
  24. * This file may also be available under a different license from Cavium.
  25. * Contact Cavium Networks for more information
  26. ***********************license end**************************************/
  27. #ifndef __CVMX_GMXX_DEFS_H__
  28. #define __CVMX_GMXX_DEFS_H__
  29. static inline uint64_t CVMX_GMXX_BAD_REG(unsigned long block_id)
  30. {
  31. switch (cvmx_get_octeon_family()) {
  32. case OCTEON_CN30XX & OCTEON_FAMILY_MASK:
  33. case OCTEON_CN50XX & OCTEON_FAMILY_MASK:
  34. case OCTEON_CN31XX & OCTEON_FAMILY_MASK:
  35. case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
  36. case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
  37. case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
  38. return CVMX_ADD_IO_SEG(0x0001180008000518ull) + (block_id) * 0x8000000ull;
  39. case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
  40. case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
  41. case OCTEON_CN38XX & OCTEON_FAMILY_MASK:
  42. case OCTEON_CN58XX & OCTEON_FAMILY_MASK:
  43. case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
  44. return CVMX_ADD_IO_SEG(0x0001180008000518ull) + (block_id) * 0x8000000ull;
  45. case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
  46. return CVMX_ADD_IO_SEG(0x0001180008000518ull) + (block_id) * 0x1000000ull;
  47. }
  48. return CVMX_ADD_IO_SEG(0x0001180008000518ull) + (block_id) * 0x8000000ull;
  49. }
  50. static inline uint64_t CVMX_GMXX_BIST(unsigned long block_id)
  51. {
  52. switch (cvmx_get_octeon_family()) {
  53. case OCTEON_CN30XX & OCTEON_FAMILY_MASK:
  54. case OCTEON_CN50XX & OCTEON_FAMILY_MASK:
  55. case OCTEON_CN31XX & OCTEON_FAMILY_MASK:
  56. case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
  57. case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
  58. case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
  59. return CVMX_ADD_IO_SEG(0x0001180008000400ull) + (block_id) * 0x8000000ull;
  60. case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
  61. case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
  62. case OCTEON_CN38XX & OCTEON_FAMILY_MASK:
  63. case OCTEON_CN58XX & OCTEON_FAMILY_MASK:
  64. case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
  65. return CVMX_ADD_IO_SEG(0x0001180008000400ull) + (block_id) * 0x8000000ull;
  66. case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
  67. return CVMX_ADD_IO_SEG(0x0001180008000400ull) + (block_id) * 0x1000000ull;
  68. }
  69. return CVMX_ADD_IO_SEG(0x0001180008000400ull) + (block_id) * 0x8000000ull;
  70. }
  71. #define CVMX_GMXX_BPID_MAPX(offset, block_id) (CVMX_ADD_IO_SEG(0x0001180008000680ull) + (((offset) & 15) + ((block_id) & 7) * 0x200000ull) * 8)
  72. #define CVMX_GMXX_BPID_MSK(block_id) (CVMX_ADD_IO_SEG(0x0001180008000700ull) + ((block_id) & 7) * 0x1000000ull)
  73. static inline uint64_t CVMX_GMXX_CLK_EN(unsigned long block_id)
  74. {
  75. switch (cvmx_get_octeon_family()) {
  76. case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
  77. case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
  78. case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
  79. return CVMX_ADD_IO_SEG(0x00011800080007F0ull) + (block_id) * 0x8000000ull;
  80. case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
  81. case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
  82. case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
  83. return CVMX_ADD_IO_SEG(0x00011800080007F0ull) + (block_id) * 0x8000000ull;
  84. case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
  85. return CVMX_ADD_IO_SEG(0x00011800080007F0ull) + (block_id) * 0x1000000ull;
  86. }
  87. return CVMX_ADD_IO_SEG(0x00011800080007F0ull) + (block_id) * 0x8000000ull;
  88. }
  89. #define CVMX_GMXX_EBP_DIS(block_id) (CVMX_ADD_IO_SEG(0x0001180008000608ull) + ((block_id) & 7) * 0x1000000ull)
  90. #define CVMX_GMXX_EBP_MSK(block_id) (CVMX_ADD_IO_SEG(0x0001180008000600ull) + ((block_id) & 7) * 0x1000000ull)
  91. static inline uint64_t CVMX_GMXX_HG2_CONTROL(unsigned long block_id)
  92. {
  93. switch (cvmx_get_octeon_family()) {
  94. case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
  95. case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
  96. case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
  97. return CVMX_ADD_IO_SEG(0x0001180008000550ull) + (block_id) * 0x8000000ull;
  98. case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
  99. case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
  100. case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
  101. return CVMX_ADD_IO_SEG(0x0001180008000550ull) + (block_id) * 0x8000000ull;
  102. case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
  103. return CVMX_ADD_IO_SEG(0x0001180008000550ull) + (block_id) * 0x1000000ull;
  104. }
  105. return CVMX_ADD_IO_SEG(0x0001180008000550ull) + (block_id) * 0x8000000ull;
  106. }
  107. static inline uint64_t CVMX_GMXX_INF_MODE(unsigned long block_id)
  108. {
  109. switch (cvmx_get_octeon_family()) {
  110. case OCTEON_CN30XX & OCTEON_FAMILY_MASK:
  111. case OCTEON_CN50XX & OCTEON_FAMILY_MASK:
  112. case OCTEON_CN31XX & OCTEON_FAMILY_MASK:
  113. case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
  114. case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
  115. case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
  116. return CVMX_ADD_IO_SEG(0x00011800080007F8ull) + (block_id) * 0x8000000ull;
  117. case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
  118. case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
  119. case OCTEON_CN38XX & OCTEON_FAMILY_MASK:
  120. case OCTEON_CN58XX & OCTEON_FAMILY_MASK:
  121. case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
  122. return CVMX_ADD_IO_SEG(0x00011800080007F8ull) + (block_id) * 0x8000000ull;
  123. case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
  124. return CVMX_ADD_IO_SEG(0x00011800080007F8ull) + (block_id) * 0x1000000ull;
  125. }
  126. return CVMX_ADD_IO_SEG(0x00011800080007F8ull) + (block_id) * 0x8000000ull;
  127. }
  128. static inline uint64_t CVMX_GMXX_NXA_ADR(unsigned long block_id)
  129. {
  130. switch (cvmx_get_octeon_family()) {
  131. case OCTEON_CN30XX & OCTEON_FAMILY_MASK:
  132. case OCTEON_CN50XX & OCTEON_FAMILY_MASK:
  133. case OCTEON_CN31XX & OCTEON_FAMILY_MASK:
  134. case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
  135. case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
  136. case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
  137. return CVMX_ADD_IO_SEG(0x0001180008000510ull) + (block_id) * 0x8000000ull;
  138. case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
  139. case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
  140. case OCTEON_CN38XX & OCTEON_FAMILY_MASK:
  141. case OCTEON_CN58XX & OCTEON_FAMILY_MASK:
  142. case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
  143. return CVMX_ADD_IO_SEG(0x0001180008000510ull) + (block_id) * 0x8000000ull;
  144. case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
  145. return CVMX_ADD_IO_SEG(0x0001180008000510ull) + (block_id) * 0x1000000ull;
  146. }
  147. return CVMX_ADD_IO_SEG(0x0001180008000510ull) + (block_id) * 0x8000000ull;
  148. }
  149. #define CVMX_GMXX_PIPE_STATUS(block_id) (CVMX_ADD_IO_SEG(0x0001180008000760ull) + ((block_id) & 7) * 0x1000000ull)
  150. static inline uint64_t CVMX_GMXX_PRTX_CBFC_CTL(unsigned long offset, unsigned long block_id)
  151. {
  152. switch (cvmx_get_octeon_family()) {
  153. case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
  154. case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
  155. case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
  156. return CVMX_ADD_IO_SEG(0x0001180008000580ull) + (block_id) * 0x8000000ull;
  157. case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
  158. case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
  159. case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
  160. return CVMX_ADD_IO_SEG(0x0001180008000580ull) + (block_id) * 0x8000000ull;
  161. case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
  162. return CVMX_ADD_IO_SEG(0x0001180008000580ull) + (block_id) * 0x1000000ull;
  163. }
  164. return CVMX_ADD_IO_SEG(0x0001180008000580ull) + (block_id) * 0x8000000ull;
  165. }
  166. static inline uint64_t CVMX_GMXX_PRTX_CFG(unsigned long offset, unsigned long block_id)
  167. {
  168. switch (cvmx_get_octeon_family()) {
  169. case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
  170. return CVMX_ADD_IO_SEG(0x0001180008000010ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  171. case OCTEON_CN30XX & OCTEON_FAMILY_MASK:
  172. case OCTEON_CN50XX & OCTEON_FAMILY_MASK:
  173. return CVMX_ADD_IO_SEG(0x0001180008000010ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  174. case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
  175. case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
  176. return CVMX_ADD_IO_SEG(0x0001180008000010ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  177. case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
  178. case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
  179. case OCTEON_CN38XX & OCTEON_FAMILY_MASK:
  180. case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
  181. case OCTEON_CN58XX & OCTEON_FAMILY_MASK:
  182. return CVMX_ADD_IO_SEG(0x0001180008000010ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  183. case OCTEON_CN31XX & OCTEON_FAMILY_MASK:
  184. return CVMX_ADD_IO_SEG(0x0001180008000010ull) + ((offset) + (block_id) * 0x0ull) * 2048;
  185. case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
  186. return CVMX_ADD_IO_SEG(0x0001180008000010ull) + ((offset) + (block_id) * 0x2000ull) * 2048;
  187. }
  188. return CVMX_ADD_IO_SEG(0x0001180008000010ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  189. }
  190. #define CVMX_GMXX_RXAUI_CTL(block_id) (CVMX_ADD_IO_SEG(0x0001180008000740ull) + ((block_id) & 7) * 0x1000000ull)
  191. static inline uint64_t CVMX_GMXX_RXX_ADR_CAM0(unsigned long offset, unsigned long block_id)
  192. {
  193. switch (cvmx_get_octeon_family()) {
  194. case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
  195. case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
  196. case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
  197. return CVMX_ADD_IO_SEG(0x0001180008000180ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  198. case OCTEON_CN30XX & OCTEON_FAMILY_MASK:
  199. case OCTEON_CN50XX & OCTEON_FAMILY_MASK:
  200. return CVMX_ADD_IO_SEG(0x0001180008000180ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  201. case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
  202. case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
  203. case OCTEON_CN38XX & OCTEON_FAMILY_MASK:
  204. case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
  205. case OCTEON_CN58XX & OCTEON_FAMILY_MASK:
  206. return CVMX_ADD_IO_SEG(0x0001180008000180ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  207. case OCTEON_CN31XX & OCTEON_FAMILY_MASK:
  208. return CVMX_ADD_IO_SEG(0x0001180008000180ull) + ((offset) + (block_id) * 0x0ull) * 2048;
  209. case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
  210. return CVMX_ADD_IO_SEG(0x0001180008000180ull) + ((offset) + (block_id) * 0x2000ull) * 2048;
  211. }
  212. return CVMX_ADD_IO_SEG(0x0001180008000180ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  213. }
  214. static inline uint64_t CVMX_GMXX_RXX_ADR_CAM1(unsigned long offset, unsigned long block_id)
  215. {
  216. switch (cvmx_get_octeon_family()) {
  217. case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
  218. case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
  219. case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
  220. return CVMX_ADD_IO_SEG(0x0001180008000188ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  221. case OCTEON_CN30XX & OCTEON_FAMILY_MASK:
  222. case OCTEON_CN50XX & OCTEON_FAMILY_MASK:
  223. return CVMX_ADD_IO_SEG(0x0001180008000188ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  224. case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
  225. case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
  226. case OCTEON_CN38XX & OCTEON_FAMILY_MASK:
  227. case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
  228. case OCTEON_CN58XX & OCTEON_FAMILY_MASK:
  229. return CVMX_ADD_IO_SEG(0x0001180008000188ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  230. case OCTEON_CN31XX & OCTEON_FAMILY_MASK:
  231. return CVMX_ADD_IO_SEG(0x0001180008000188ull) + ((offset) + (block_id) * 0x0ull) * 2048;
  232. case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
  233. return CVMX_ADD_IO_SEG(0x0001180008000188ull) + ((offset) + (block_id) * 0x2000ull) * 2048;
  234. }
  235. return CVMX_ADD_IO_SEG(0x0001180008000188ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  236. }
  237. static inline uint64_t CVMX_GMXX_RXX_ADR_CAM2(unsigned long offset, unsigned long block_id)
  238. {
  239. switch (cvmx_get_octeon_family()) {
  240. case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
  241. case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
  242. case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
  243. return CVMX_ADD_IO_SEG(0x0001180008000190ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  244. case OCTEON_CN30XX & OCTEON_FAMILY_MASK:
  245. case OCTEON_CN50XX & OCTEON_FAMILY_MASK:
  246. return CVMX_ADD_IO_SEG(0x0001180008000190ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  247. case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
  248. case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
  249. case OCTEON_CN38XX & OCTEON_FAMILY_MASK:
  250. case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
  251. case OCTEON_CN58XX & OCTEON_FAMILY_MASK:
  252. return CVMX_ADD_IO_SEG(0x0001180008000190ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  253. case OCTEON_CN31XX & OCTEON_FAMILY_MASK:
  254. return CVMX_ADD_IO_SEG(0x0001180008000190ull) + ((offset) + (block_id) * 0x0ull) * 2048;
  255. case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
  256. return CVMX_ADD_IO_SEG(0x0001180008000190ull) + ((offset) + (block_id) * 0x2000ull) * 2048;
  257. }
  258. return CVMX_ADD_IO_SEG(0x0001180008000190ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  259. }
  260. static inline uint64_t CVMX_GMXX_RXX_ADR_CAM3(unsigned long offset, unsigned long block_id)
  261. {
  262. switch (cvmx_get_octeon_family()) {
  263. case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
  264. case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
  265. case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
  266. return CVMX_ADD_IO_SEG(0x0001180008000198ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  267. case OCTEON_CN30XX & OCTEON_FAMILY_MASK:
  268. case OCTEON_CN50XX & OCTEON_FAMILY_MASK:
  269. return CVMX_ADD_IO_SEG(0x0001180008000198ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  270. case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
  271. case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
  272. case OCTEON_CN38XX & OCTEON_FAMILY_MASK:
  273. case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
  274. case OCTEON_CN58XX & OCTEON_FAMILY_MASK:
  275. return CVMX_ADD_IO_SEG(0x0001180008000198ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  276. case OCTEON_CN31XX & OCTEON_FAMILY_MASK:
  277. return CVMX_ADD_IO_SEG(0x0001180008000198ull) + ((offset) + (block_id) * 0x0ull) * 2048;
  278. case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
  279. return CVMX_ADD_IO_SEG(0x0001180008000198ull) + ((offset) + (block_id) * 0x2000ull) * 2048;
  280. }
  281. return CVMX_ADD_IO_SEG(0x0001180008000198ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  282. }
  283. static inline uint64_t CVMX_GMXX_RXX_ADR_CAM4(unsigned long offset, unsigned long block_id)
  284. {
  285. switch (cvmx_get_octeon_family()) {
  286. case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
  287. case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
  288. case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
  289. return CVMX_ADD_IO_SEG(0x00011800080001A0ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  290. case OCTEON_CN30XX & OCTEON_FAMILY_MASK:
  291. case OCTEON_CN50XX & OCTEON_FAMILY_MASK:
  292. return CVMX_ADD_IO_SEG(0x00011800080001A0ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  293. case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
  294. case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
  295. case OCTEON_CN38XX & OCTEON_FAMILY_MASK:
  296. case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
  297. case OCTEON_CN58XX & OCTEON_FAMILY_MASK:
  298. return CVMX_ADD_IO_SEG(0x00011800080001A0ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  299. case OCTEON_CN31XX & OCTEON_FAMILY_MASK:
  300. return CVMX_ADD_IO_SEG(0x00011800080001A0ull) + ((offset) + (block_id) * 0x0ull) * 2048;
  301. case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
  302. return CVMX_ADD_IO_SEG(0x00011800080001A0ull) + ((offset) + (block_id) * 0x2000ull) * 2048;
  303. }
  304. return CVMX_ADD_IO_SEG(0x00011800080001A0ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  305. }
  306. static inline uint64_t CVMX_GMXX_RXX_ADR_CAM5(unsigned long offset, unsigned long block_id)
  307. {
  308. switch (cvmx_get_octeon_family()) {
  309. case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
  310. case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
  311. case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
  312. return CVMX_ADD_IO_SEG(0x00011800080001A8ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  313. case OCTEON_CN30XX & OCTEON_FAMILY_MASK:
  314. case OCTEON_CN50XX & OCTEON_FAMILY_MASK:
  315. return CVMX_ADD_IO_SEG(0x00011800080001A8ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  316. case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
  317. case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
  318. case OCTEON_CN38XX & OCTEON_FAMILY_MASK:
  319. case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
  320. case OCTEON_CN58XX & OCTEON_FAMILY_MASK:
  321. return CVMX_ADD_IO_SEG(0x00011800080001A8ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  322. case OCTEON_CN31XX & OCTEON_FAMILY_MASK:
  323. return CVMX_ADD_IO_SEG(0x00011800080001A8ull) + ((offset) + (block_id) * 0x0ull) * 2048;
  324. case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
  325. return CVMX_ADD_IO_SEG(0x00011800080001A8ull) + ((offset) + (block_id) * 0x2000ull) * 2048;
  326. }
  327. return CVMX_ADD_IO_SEG(0x00011800080001A8ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  328. }
  329. static inline uint64_t CVMX_GMXX_RXX_ADR_CAM_ALL_EN(unsigned long offset, unsigned long block_id)
  330. {
  331. switch (cvmx_get_octeon_family()) {
  332. case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
  333. case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
  334. return CVMX_ADD_IO_SEG(0x0001180008000110ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  335. case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
  336. return CVMX_ADD_IO_SEG(0x0001180008000110ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  337. case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
  338. return CVMX_ADD_IO_SEG(0x0001180008000110ull) + ((offset) + (block_id) * 0x2000ull) * 2048;
  339. }
  340. return CVMX_ADD_IO_SEG(0x0001180008000110ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  341. }
  342. static inline uint64_t CVMX_GMXX_RXX_ADR_CAM_EN(unsigned long offset, unsigned long block_id)
  343. {
  344. switch (cvmx_get_octeon_family()) {
  345. case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
  346. return CVMX_ADD_IO_SEG(0x0001180008000108ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  347. case OCTEON_CN30XX & OCTEON_FAMILY_MASK:
  348. case OCTEON_CN50XX & OCTEON_FAMILY_MASK:
  349. return CVMX_ADD_IO_SEG(0x0001180008000108ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  350. case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
  351. case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
  352. return CVMX_ADD_IO_SEG(0x0001180008000108ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  353. case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
  354. case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
  355. case OCTEON_CN38XX & OCTEON_FAMILY_MASK:
  356. case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
  357. case OCTEON_CN58XX & OCTEON_FAMILY_MASK:
  358. return CVMX_ADD_IO_SEG(0x0001180008000108ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  359. case OCTEON_CN31XX & OCTEON_FAMILY_MASK:
  360. return CVMX_ADD_IO_SEG(0x0001180008000108ull) + ((offset) + (block_id) * 0x0ull) * 2048;
  361. case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
  362. return CVMX_ADD_IO_SEG(0x0001180008000108ull) + ((offset) + (block_id) * 0x2000ull) * 2048;
  363. }
  364. return CVMX_ADD_IO_SEG(0x0001180008000108ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  365. }
  366. static inline uint64_t CVMX_GMXX_RXX_ADR_CTL(unsigned long offset, unsigned long block_id)
  367. {
  368. switch (cvmx_get_octeon_family()) {
  369. case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
  370. return CVMX_ADD_IO_SEG(0x0001180008000100ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  371. case OCTEON_CN30XX & OCTEON_FAMILY_MASK:
  372. case OCTEON_CN50XX & OCTEON_FAMILY_MASK:
  373. return CVMX_ADD_IO_SEG(0x0001180008000100ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  374. case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
  375. case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
  376. return CVMX_ADD_IO_SEG(0x0001180008000100ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  377. case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
  378. case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
  379. case OCTEON_CN38XX & OCTEON_FAMILY_MASK:
  380. case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
  381. case OCTEON_CN58XX & OCTEON_FAMILY_MASK:
  382. return CVMX_ADD_IO_SEG(0x0001180008000100ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  383. case OCTEON_CN31XX & OCTEON_FAMILY_MASK:
  384. return CVMX_ADD_IO_SEG(0x0001180008000100ull) + ((offset) + (block_id) * 0x0ull) * 2048;
  385. case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
  386. return CVMX_ADD_IO_SEG(0x0001180008000100ull) + ((offset) + (block_id) * 0x2000ull) * 2048;
  387. }
  388. return CVMX_ADD_IO_SEG(0x0001180008000100ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  389. }
  390. static inline uint64_t CVMX_GMXX_RXX_DECISION(unsigned long offset, unsigned long block_id)
  391. {
  392. switch (cvmx_get_octeon_family()) {
  393. case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
  394. return CVMX_ADD_IO_SEG(0x0001180008000040ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  395. case OCTEON_CN30XX & OCTEON_FAMILY_MASK:
  396. case OCTEON_CN50XX & OCTEON_FAMILY_MASK:
  397. return CVMX_ADD_IO_SEG(0x0001180008000040ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  398. case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
  399. case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
  400. return CVMX_ADD_IO_SEG(0x0001180008000040ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  401. case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
  402. case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
  403. case OCTEON_CN38XX & OCTEON_FAMILY_MASK:
  404. case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
  405. case OCTEON_CN58XX & OCTEON_FAMILY_MASK:
  406. return CVMX_ADD_IO_SEG(0x0001180008000040ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  407. case OCTEON_CN31XX & OCTEON_FAMILY_MASK:
  408. return CVMX_ADD_IO_SEG(0x0001180008000040ull) + ((offset) + (block_id) * 0x0ull) * 2048;
  409. case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
  410. return CVMX_ADD_IO_SEG(0x0001180008000040ull) + ((offset) + (block_id) * 0x2000ull) * 2048;
  411. }
  412. return CVMX_ADD_IO_SEG(0x0001180008000040ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  413. }
  414. static inline uint64_t CVMX_GMXX_RXX_FRM_CHK(unsigned long offset, unsigned long block_id)
  415. {
  416. switch (cvmx_get_octeon_family()) {
  417. case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
  418. return CVMX_ADD_IO_SEG(0x0001180008000020ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  419. case OCTEON_CN30XX & OCTEON_FAMILY_MASK:
  420. case OCTEON_CN50XX & OCTEON_FAMILY_MASK:
  421. return CVMX_ADD_IO_SEG(0x0001180008000020ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  422. case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
  423. case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
  424. return CVMX_ADD_IO_SEG(0x0001180008000020ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  425. case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
  426. case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
  427. case OCTEON_CN38XX & OCTEON_FAMILY_MASK:
  428. case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
  429. case OCTEON_CN58XX & OCTEON_FAMILY_MASK:
  430. return CVMX_ADD_IO_SEG(0x0001180008000020ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  431. case OCTEON_CN31XX & OCTEON_FAMILY_MASK:
  432. return CVMX_ADD_IO_SEG(0x0001180008000020ull) + ((offset) + (block_id) * 0x0ull) * 2048;
  433. case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
  434. return CVMX_ADD_IO_SEG(0x0001180008000020ull) + ((offset) + (block_id) * 0x2000ull) * 2048;
  435. }
  436. return CVMX_ADD_IO_SEG(0x0001180008000020ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  437. }
  438. static inline uint64_t CVMX_GMXX_RXX_FRM_CTL(unsigned long offset, unsigned long block_id)
  439. {
  440. switch (cvmx_get_octeon_family()) {
  441. case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
  442. return CVMX_ADD_IO_SEG(0x0001180008000018ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  443. case OCTEON_CN30XX & OCTEON_FAMILY_MASK:
  444. case OCTEON_CN50XX & OCTEON_FAMILY_MASK:
  445. return CVMX_ADD_IO_SEG(0x0001180008000018ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  446. case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
  447. case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
  448. return CVMX_ADD_IO_SEG(0x0001180008000018ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  449. case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
  450. case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
  451. case OCTEON_CN38XX & OCTEON_FAMILY_MASK:
  452. case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
  453. case OCTEON_CN58XX & OCTEON_FAMILY_MASK:
  454. return CVMX_ADD_IO_SEG(0x0001180008000018ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  455. case OCTEON_CN31XX & OCTEON_FAMILY_MASK:
  456. return CVMX_ADD_IO_SEG(0x0001180008000018ull) + ((offset) + (block_id) * 0x0ull) * 2048;
  457. case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
  458. return CVMX_ADD_IO_SEG(0x0001180008000018ull) + ((offset) + (block_id) * 0x2000ull) * 2048;
  459. }
  460. return CVMX_ADD_IO_SEG(0x0001180008000018ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  461. }
  462. #define CVMX_GMXX_RXX_FRM_MAX(offset, block_id) (CVMX_ADD_IO_SEG(0x0001180008000030ull) + (((offset) & 3) + ((block_id) & 1) * 0x10000ull) * 2048)
  463. #define CVMX_GMXX_RXX_FRM_MIN(offset, block_id) (CVMX_ADD_IO_SEG(0x0001180008000028ull) + (((offset) & 3) + ((block_id) & 1) * 0x10000ull) * 2048)
  464. static inline uint64_t CVMX_GMXX_RXX_IFG(unsigned long offset, unsigned long block_id)
  465. {
  466. switch (cvmx_get_octeon_family()) {
  467. case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
  468. return CVMX_ADD_IO_SEG(0x0001180008000058ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  469. case OCTEON_CN30XX & OCTEON_FAMILY_MASK:
  470. case OCTEON_CN50XX & OCTEON_FAMILY_MASK:
  471. return CVMX_ADD_IO_SEG(0x0001180008000058ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  472. case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
  473. case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
  474. return CVMX_ADD_IO_SEG(0x0001180008000058ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  475. case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
  476. case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
  477. case OCTEON_CN38XX & OCTEON_FAMILY_MASK:
  478. case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
  479. case OCTEON_CN58XX & OCTEON_FAMILY_MASK:
  480. return CVMX_ADD_IO_SEG(0x0001180008000058ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  481. case OCTEON_CN31XX & OCTEON_FAMILY_MASK:
  482. return CVMX_ADD_IO_SEG(0x0001180008000058ull) + ((offset) + (block_id) * 0x0ull) * 2048;
  483. case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
  484. return CVMX_ADD_IO_SEG(0x0001180008000058ull) + ((offset) + (block_id) * 0x2000ull) * 2048;
  485. }
  486. return CVMX_ADD_IO_SEG(0x0001180008000058ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  487. }
  488. static inline uint64_t CVMX_GMXX_RXX_INT_EN(unsigned long offset, unsigned long block_id)
  489. {
  490. switch (cvmx_get_octeon_family()) {
  491. case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
  492. return CVMX_ADD_IO_SEG(0x0001180008000008ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  493. case OCTEON_CN30XX & OCTEON_FAMILY_MASK:
  494. case OCTEON_CN50XX & OCTEON_FAMILY_MASK:
  495. return CVMX_ADD_IO_SEG(0x0001180008000008ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  496. case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
  497. case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
  498. return CVMX_ADD_IO_SEG(0x0001180008000008ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  499. case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
  500. case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
  501. case OCTEON_CN38XX & OCTEON_FAMILY_MASK:
  502. case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
  503. case OCTEON_CN58XX & OCTEON_FAMILY_MASK:
  504. return CVMX_ADD_IO_SEG(0x0001180008000008ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  505. case OCTEON_CN31XX & OCTEON_FAMILY_MASK:
  506. return CVMX_ADD_IO_SEG(0x0001180008000008ull) + ((offset) + (block_id) * 0x0ull) * 2048;
  507. case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
  508. return CVMX_ADD_IO_SEG(0x0001180008000008ull) + ((offset) + (block_id) * 0x2000ull) * 2048;
  509. }
  510. return CVMX_ADD_IO_SEG(0x0001180008000008ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  511. }
  512. static inline uint64_t CVMX_GMXX_RXX_INT_REG(unsigned long offset, unsigned long block_id)
  513. {
  514. switch (cvmx_get_octeon_family()) {
  515. case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
  516. return CVMX_ADD_IO_SEG(0x0001180008000000ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  517. case OCTEON_CN30XX & OCTEON_FAMILY_MASK:
  518. case OCTEON_CN50XX & OCTEON_FAMILY_MASK:
  519. return CVMX_ADD_IO_SEG(0x0001180008000000ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  520. case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
  521. case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
  522. return CVMX_ADD_IO_SEG(0x0001180008000000ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  523. case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
  524. case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
  525. case OCTEON_CN38XX & OCTEON_FAMILY_MASK:
  526. case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
  527. case OCTEON_CN58XX & OCTEON_FAMILY_MASK:
  528. return CVMX_ADD_IO_SEG(0x0001180008000000ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  529. case OCTEON_CN31XX & OCTEON_FAMILY_MASK:
  530. return CVMX_ADD_IO_SEG(0x0001180008000000ull) + ((offset) + (block_id) * 0x0ull) * 2048;
  531. case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
  532. return CVMX_ADD_IO_SEG(0x0001180008000000ull) + ((offset) + (block_id) * 0x2000ull) * 2048;
  533. }
  534. return CVMX_ADD_IO_SEG(0x0001180008000000ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  535. }
  536. static inline uint64_t CVMX_GMXX_RXX_JABBER(unsigned long offset, unsigned long block_id)
  537. {
  538. switch (cvmx_get_octeon_family()) {
  539. case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
  540. return CVMX_ADD_IO_SEG(0x0001180008000038ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  541. case OCTEON_CN30XX & OCTEON_FAMILY_MASK:
  542. case OCTEON_CN50XX & OCTEON_FAMILY_MASK:
  543. return CVMX_ADD_IO_SEG(0x0001180008000038ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  544. case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
  545. case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
  546. return CVMX_ADD_IO_SEG(0x0001180008000038ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  547. case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
  548. case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
  549. case OCTEON_CN38XX & OCTEON_FAMILY_MASK:
  550. case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
  551. case OCTEON_CN58XX & OCTEON_FAMILY_MASK:
  552. return CVMX_ADD_IO_SEG(0x0001180008000038ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  553. case OCTEON_CN31XX & OCTEON_FAMILY_MASK:
  554. return CVMX_ADD_IO_SEG(0x0001180008000038ull) + ((offset) + (block_id) * 0x0ull) * 2048;
  555. case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
  556. return CVMX_ADD_IO_SEG(0x0001180008000038ull) + ((offset) + (block_id) * 0x2000ull) * 2048;
  557. }
  558. return CVMX_ADD_IO_SEG(0x0001180008000038ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  559. }
  560. static inline uint64_t CVMX_GMXX_RXX_PAUSE_DROP_TIME(unsigned long offset, unsigned long block_id)
  561. {
  562. switch (cvmx_get_octeon_family()) {
  563. case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
  564. return CVMX_ADD_IO_SEG(0x0001180008000068ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  565. case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
  566. return CVMX_ADD_IO_SEG(0x0001180008000068ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  567. case OCTEON_CN50XX & OCTEON_FAMILY_MASK:
  568. return CVMX_ADD_IO_SEG(0x0001180008000068ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  569. case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
  570. case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
  571. case OCTEON_CN58XX & OCTEON_FAMILY_MASK:
  572. case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
  573. return CVMX_ADD_IO_SEG(0x0001180008000068ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  574. case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
  575. return CVMX_ADD_IO_SEG(0x0001180008000068ull) + ((offset) + (block_id) * 0x0ull) * 2048;
  576. case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
  577. return CVMX_ADD_IO_SEG(0x0001180008000068ull) + ((offset) + (block_id) * 0x2000ull) * 2048;
  578. }
  579. return CVMX_ADD_IO_SEG(0x0001180008000068ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  580. }
  581. #define CVMX_GMXX_RXX_RX_INBND(offset, block_id) (CVMX_ADD_IO_SEG(0x0001180008000060ull) + (((offset) & 3) + ((block_id) & 1) * 0x10000ull) * 2048)
  582. static inline uint64_t CVMX_GMXX_RXX_STATS_CTL(unsigned long offset, unsigned long block_id)
  583. {
  584. switch (cvmx_get_octeon_family()) {
  585. case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
  586. return CVMX_ADD_IO_SEG(0x0001180008000050ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  587. case OCTEON_CN30XX & OCTEON_FAMILY_MASK:
  588. case OCTEON_CN50XX & OCTEON_FAMILY_MASK:
  589. return CVMX_ADD_IO_SEG(0x0001180008000050ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  590. case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
  591. case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
  592. return CVMX_ADD_IO_SEG(0x0001180008000050ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  593. case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
  594. case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
  595. case OCTEON_CN38XX & OCTEON_FAMILY_MASK:
  596. case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
  597. case OCTEON_CN58XX & OCTEON_FAMILY_MASK:
  598. return CVMX_ADD_IO_SEG(0x0001180008000050ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  599. case OCTEON_CN31XX & OCTEON_FAMILY_MASK:
  600. return CVMX_ADD_IO_SEG(0x0001180008000050ull) + ((offset) + (block_id) * 0x0ull) * 2048;
  601. case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
  602. return CVMX_ADD_IO_SEG(0x0001180008000050ull) + ((offset) + (block_id) * 0x2000ull) * 2048;
  603. }
  604. return CVMX_ADD_IO_SEG(0x0001180008000050ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  605. }
  606. static inline uint64_t CVMX_GMXX_RXX_STATS_OCTS(unsigned long offset, unsigned long block_id)
  607. {
  608. switch (cvmx_get_octeon_family()) {
  609. case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
  610. return CVMX_ADD_IO_SEG(0x0001180008000088ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  611. case OCTEON_CN30XX & OCTEON_FAMILY_MASK:
  612. case OCTEON_CN50XX & OCTEON_FAMILY_MASK:
  613. return CVMX_ADD_IO_SEG(0x0001180008000088ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  614. case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
  615. case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
  616. return CVMX_ADD_IO_SEG(0x0001180008000088ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  617. case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
  618. case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
  619. case OCTEON_CN38XX & OCTEON_FAMILY_MASK:
  620. case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
  621. case OCTEON_CN58XX & OCTEON_FAMILY_MASK:
  622. return CVMX_ADD_IO_SEG(0x0001180008000088ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  623. case OCTEON_CN31XX & OCTEON_FAMILY_MASK:
  624. return CVMX_ADD_IO_SEG(0x0001180008000088ull) + ((offset) + (block_id) * 0x0ull) * 2048;
  625. case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
  626. return CVMX_ADD_IO_SEG(0x0001180008000088ull) + ((offset) + (block_id) * 0x2000ull) * 2048;
  627. }
  628. return CVMX_ADD_IO_SEG(0x0001180008000088ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  629. }
  630. static inline uint64_t CVMX_GMXX_RXX_STATS_OCTS_CTL(unsigned long offset, unsigned long block_id)
  631. {
  632. switch (cvmx_get_octeon_family()) {
  633. case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
  634. return CVMX_ADD_IO_SEG(0x0001180008000098ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  635. case OCTEON_CN30XX & OCTEON_FAMILY_MASK:
  636. case OCTEON_CN50XX & OCTEON_FAMILY_MASK:
  637. return CVMX_ADD_IO_SEG(0x0001180008000098ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  638. case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
  639. case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
  640. return CVMX_ADD_IO_SEG(0x0001180008000098ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  641. case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
  642. case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
  643. case OCTEON_CN38XX & OCTEON_FAMILY_MASK:
  644. case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
  645. case OCTEON_CN58XX & OCTEON_FAMILY_MASK:
  646. return CVMX_ADD_IO_SEG(0x0001180008000098ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  647. case OCTEON_CN31XX & OCTEON_FAMILY_MASK:
  648. return CVMX_ADD_IO_SEG(0x0001180008000098ull) + ((offset) + (block_id) * 0x0ull) * 2048;
  649. case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
  650. return CVMX_ADD_IO_SEG(0x0001180008000098ull) + ((offset) + (block_id) * 0x2000ull) * 2048;
  651. }
  652. return CVMX_ADD_IO_SEG(0x0001180008000098ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  653. }
  654. static inline uint64_t CVMX_GMXX_RXX_STATS_OCTS_DMAC(unsigned long offset, unsigned long block_id)
  655. {
  656. switch (cvmx_get_octeon_family()) {
  657. case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
  658. return CVMX_ADD_IO_SEG(0x00011800080000A8ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  659. case OCTEON_CN30XX & OCTEON_FAMILY_MASK:
  660. case OCTEON_CN50XX & OCTEON_FAMILY_MASK:
  661. return CVMX_ADD_IO_SEG(0x00011800080000A8ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  662. case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
  663. case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
  664. return CVMX_ADD_IO_SEG(0x00011800080000A8ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  665. case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
  666. case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
  667. case OCTEON_CN38XX & OCTEON_FAMILY_MASK:
  668. case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
  669. case OCTEON_CN58XX & OCTEON_FAMILY_MASK:
  670. return CVMX_ADD_IO_SEG(0x00011800080000A8ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  671. case OCTEON_CN31XX & OCTEON_FAMILY_MASK:
  672. return CVMX_ADD_IO_SEG(0x00011800080000A8ull) + ((offset) + (block_id) * 0x0ull) * 2048;
  673. case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
  674. return CVMX_ADD_IO_SEG(0x00011800080000A8ull) + ((offset) + (block_id) * 0x2000ull) * 2048;
  675. }
  676. return CVMX_ADD_IO_SEG(0x00011800080000A8ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  677. }
  678. static inline uint64_t CVMX_GMXX_RXX_STATS_OCTS_DRP(unsigned long offset, unsigned long block_id)
  679. {
  680. switch (cvmx_get_octeon_family()) {
  681. case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
  682. return CVMX_ADD_IO_SEG(0x00011800080000B8ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  683. case OCTEON_CN30XX & OCTEON_FAMILY_MASK:
  684. case OCTEON_CN50XX & OCTEON_FAMILY_MASK:
  685. return CVMX_ADD_IO_SEG(0x00011800080000B8ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  686. case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
  687. case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
  688. return CVMX_ADD_IO_SEG(0x00011800080000B8ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  689. case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
  690. case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
  691. case OCTEON_CN38XX & OCTEON_FAMILY_MASK:
  692. case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
  693. case OCTEON_CN58XX & OCTEON_FAMILY_MASK:
  694. return CVMX_ADD_IO_SEG(0x00011800080000B8ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  695. case OCTEON_CN31XX & OCTEON_FAMILY_MASK:
  696. return CVMX_ADD_IO_SEG(0x00011800080000B8ull) + ((offset) + (block_id) * 0x0ull) * 2048;
  697. case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
  698. return CVMX_ADD_IO_SEG(0x00011800080000B8ull) + ((offset) + (block_id) * 0x2000ull) * 2048;
  699. }
  700. return CVMX_ADD_IO_SEG(0x00011800080000B8ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  701. }
  702. static inline uint64_t CVMX_GMXX_RXX_STATS_PKTS(unsigned long offset, unsigned long block_id)
  703. {
  704. switch (cvmx_get_octeon_family()) {
  705. case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
  706. return CVMX_ADD_IO_SEG(0x0001180008000080ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  707. case OCTEON_CN30XX & OCTEON_FAMILY_MASK:
  708. case OCTEON_CN50XX & OCTEON_FAMILY_MASK:
  709. return CVMX_ADD_IO_SEG(0x0001180008000080ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  710. case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
  711. case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
  712. return CVMX_ADD_IO_SEG(0x0001180008000080ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  713. case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
  714. case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
  715. case OCTEON_CN38XX & OCTEON_FAMILY_MASK:
  716. case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
  717. case OCTEON_CN58XX & OCTEON_FAMILY_MASK:
  718. return CVMX_ADD_IO_SEG(0x0001180008000080ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  719. case OCTEON_CN31XX & OCTEON_FAMILY_MASK:
  720. return CVMX_ADD_IO_SEG(0x0001180008000080ull) + ((offset) + (block_id) * 0x0ull) * 2048;
  721. case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
  722. return CVMX_ADD_IO_SEG(0x0001180008000080ull) + ((offset) + (block_id) * 0x2000ull) * 2048;
  723. }
  724. return CVMX_ADD_IO_SEG(0x0001180008000080ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  725. }
  726. static inline uint64_t CVMX_GMXX_RXX_STATS_PKTS_BAD(unsigned long offset, unsigned long block_id)
  727. {
  728. switch (cvmx_get_octeon_family()) {
  729. case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
  730. return CVMX_ADD_IO_SEG(0x00011800080000C0ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  731. case OCTEON_CN30XX & OCTEON_FAMILY_MASK:
  732. case OCTEON_CN50XX & OCTEON_FAMILY_MASK:
  733. return CVMX_ADD_IO_SEG(0x00011800080000C0ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  734. case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
  735. case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
  736. return CVMX_ADD_IO_SEG(0x00011800080000C0ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  737. case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
  738. case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
  739. case OCTEON_CN38XX & OCTEON_FAMILY_MASK:
  740. case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
  741. case OCTEON_CN58XX & OCTEON_FAMILY_MASK:
  742. return CVMX_ADD_IO_SEG(0x00011800080000C0ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  743. case OCTEON_CN31XX & OCTEON_FAMILY_MASK:
  744. return CVMX_ADD_IO_SEG(0x00011800080000C0ull) + ((offset) + (block_id) * 0x0ull) * 2048;
  745. case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
  746. return CVMX_ADD_IO_SEG(0x00011800080000C0ull) + ((offset) + (block_id) * 0x2000ull) * 2048;
  747. }
  748. return CVMX_ADD_IO_SEG(0x00011800080000C0ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  749. }
  750. static inline uint64_t CVMX_GMXX_RXX_STATS_PKTS_CTL(unsigned long offset, unsigned long block_id)
  751. {
  752. switch (cvmx_get_octeon_family()) {
  753. case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
  754. return CVMX_ADD_IO_SEG(0x0001180008000090ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  755. case OCTEON_CN30XX & OCTEON_FAMILY_MASK:
  756. case OCTEON_CN50XX & OCTEON_FAMILY_MASK:
  757. return CVMX_ADD_IO_SEG(0x0001180008000090ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  758. case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
  759. case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
  760. return CVMX_ADD_IO_SEG(0x0001180008000090ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  761. case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
  762. case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
  763. case OCTEON_CN38XX & OCTEON_FAMILY_MASK:
  764. case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
  765. case OCTEON_CN58XX & OCTEON_FAMILY_MASK:
  766. return CVMX_ADD_IO_SEG(0x0001180008000090ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  767. case OCTEON_CN31XX & OCTEON_FAMILY_MASK:
  768. return CVMX_ADD_IO_SEG(0x0001180008000090ull) + ((offset) + (block_id) * 0x0ull) * 2048;
  769. case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
  770. return CVMX_ADD_IO_SEG(0x0001180008000090ull) + ((offset) + (block_id) * 0x2000ull) * 2048;
  771. }
  772. return CVMX_ADD_IO_SEG(0x0001180008000090ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  773. }
  774. static inline uint64_t CVMX_GMXX_RXX_STATS_PKTS_DMAC(unsigned long offset, unsigned long block_id)
  775. {
  776. switch (cvmx_get_octeon_family()) {
  777. case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
  778. return CVMX_ADD_IO_SEG(0x00011800080000A0ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  779. case OCTEON_CN30XX & OCTEON_FAMILY_MASK:
  780. case OCTEON_CN50XX & OCTEON_FAMILY_MASK:
  781. return CVMX_ADD_IO_SEG(0x00011800080000A0ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  782. case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
  783. case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
  784. return CVMX_ADD_IO_SEG(0x00011800080000A0ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  785. case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
  786. case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
  787. case OCTEON_CN38XX & OCTEON_FAMILY_MASK:
  788. case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
  789. case OCTEON_CN58XX & OCTEON_FAMILY_MASK:
  790. return CVMX_ADD_IO_SEG(0x00011800080000A0ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  791. case OCTEON_CN31XX & OCTEON_FAMILY_MASK:
  792. return CVMX_ADD_IO_SEG(0x00011800080000A0ull) + ((offset) + (block_id) * 0x0ull) * 2048;
  793. case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
  794. return CVMX_ADD_IO_SEG(0x00011800080000A0ull) + ((offset) + (block_id) * 0x2000ull) * 2048;
  795. }
  796. return CVMX_ADD_IO_SEG(0x00011800080000A0ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  797. }
  798. static inline uint64_t CVMX_GMXX_RXX_STATS_PKTS_DRP(unsigned long offset, unsigned long block_id)
  799. {
  800. switch (cvmx_get_octeon_family()) {
  801. case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
  802. return CVMX_ADD_IO_SEG(0x00011800080000B0ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  803. case OCTEON_CN30XX & OCTEON_FAMILY_MASK:
  804. case OCTEON_CN50XX & OCTEON_FAMILY_MASK:
  805. return CVMX_ADD_IO_SEG(0x00011800080000B0ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  806. case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
  807. case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
  808. return CVMX_ADD_IO_SEG(0x00011800080000B0ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  809. case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
  810. case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
  811. case OCTEON_CN38XX & OCTEON_FAMILY_MASK:
  812. case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
  813. case OCTEON_CN58XX & OCTEON_FAMILY_MASK:
  814. return CVMX_ADD_IO_SEG(0x00011800080000B0ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  815. case OCTEON_CN31XX & OCTEON_FAMILY_MASK:
  816. return CVMX_ADD_IO_SEG(0x00011800080000B0ull) + ((offset) + (block_id) * 0x0ull) * 2048;
  817. case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
  818. return CVMX_ADD_IO_SEG(0x00011800080000B0ull) + ((offset) + (block_id) * 0x2000ull) * 2048;
  819. }
  820. return CVMX_ADD_IO_SEG(0x00011800080000B0ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  821. }
  822. static inline uint64_t CVMX_GMXX_RXX_UDD_SKP(unsigned long offset, unsigned long block_id)
  823. {
  824. switch (cvmx_get_octeon_family()) {
  825. case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
  826. return CVMX_ADD_IO_SEG(0x0001180008000048ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  827. case OCTEON_CN30XX & OCTEON_FAMILY_MASK:
  828. case OCTEON_CN50XX & OCTEON_FAMILY_MASK:
  829. return CVMX_ADD_IO_SEG(0x0001180008000048ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  830. case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
  831. case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
  832. return CVMX_ADD_IO_SEG(0x0001180008000048ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  833. case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
  834. case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
  835. case OCTEON_CN38XX & OCTEON_FAMILY_MASK:
  836. case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
  837. case OCTEON_CN58XX & OCTEON_FAMILY_MASK:
  838. return CVMX_ADD_IO_SEG(0x0001180008000048ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  839. case OCTEON_CN31XX & OCTEON_FAMILY_MASK:
  840. return CVMX_ADD_IO_SEG(0x0001180008000048ull) + ((offset) + (block_id) * 0x0ull) * 2048;
  841. case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
  842. return CVMX_ADD_IO_SEG(0x0001180008000048ull) + ((offset) + (block_id) * 0x2000ull) * 2048;
  843. }
  844. return CVMX_ADD_IO_SEG(0x0001180008000048ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  845. }
  846. static inline uint64_t CVMX_GMXX_RX_BP_DROPX(unsigned long offset, unsigned long block_id)
  847. {
  848. switch (cvmx_get_octeon_family()) {
  849. case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
  850. return CVMX_ADD_IO_SEG(0x0001180008000420ull) + ((offset) + (block_id) * 0x1000000ull) * 8;
  851. case OCTEON_CN30XX & OCTEON_FAMILY_MASK:
  852. case OCTEON_CN50XX & OCTEON_FAMILY_MASK:
  853. return CVMX_ADD_IO_SEG(0x0001180008000420ull) + ((offset) + (block_id) * 0x1000000ull) * 8;
  854. case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
  855. case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
  856. return CVMX_ADD_IO_SEG(0x0001180008000420ull) + ((offset) + (block_id) * 0x1000000ull) * 8;
  857. case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
  858. case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
  859. case OCTEON_CN38XX & OCTEON_FAMILY_MASK:
  860. case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
  861. case OCTEON_CN58XX & OCTEON_FAMILY_MASK:
  862. return CVMX_ADD_IO_SEG(0x0001180008000420ull) + ((offset) + (block_id) * 0x1000000ull) * 8;
  863. case OCTEON_CN31XX & OCTEON_FAMILY_MASK:
  864. return CVMX_ADD_IO_SEG(0x0001180008000420ull) + ((offset) + (block_id) * 0x0ull) * 8;
  865. case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
  866. return CVMX_ADD_IO_SEG(0x0001180008000420ull) + ((offset) + (block_id) * 0x200000ull) * 8;
  867. }
  868. return CVMX_ADD_IO_SEG(0x0001180008000420ull) + ((offset) + (block_id) * 0x1000000ull) * 8;
  869. }
  870. static inline uint64_t CVMX_GMXX_RX_BP_OFFX(unsigned long offset, unsigned long block_id)
  871. {
  872. switch (cvmx_get_octeon_family()) {
  873. case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
  874. return CVMX_ADD_IO_SEG(0x0001180008000460ull) + ((offset) + (block_id) * 0x1000000ull) * 8;
  875. case OCTEON_CN30XX & OCTEON_FAMILY_MASK:
  876. case OCTEON_CN50XX & OCTEON_FAMILY_MASK:
  877. return CVMX_ADD_IO_SEG(0x0001180008000460ull) + ((offset) + (block_id) * 0x1000000ull) * 8;
  878. case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
  879. case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
  880. return CVMX_ADD_IO_SEG(0x0001180008000460ull) + ((offset) + (block_id) * 0x1000000ull) * 8;
  881. case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
  882. case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
  883. case OCTEON_CN38XX & OCTEON_FAMILY_MASK:
  884. case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
  885. case OCTEON_CN58XX & OCTEON_FAMILY_MASK:
  886. return CVMX_ADD_IO_SEG(0x0001180008000460ull) + ((offset) + (block_id) * 0x1000000ull) * 8;
  887. case OCTEON_CN31XX & OCTEON_FAMILY_MASK:
  888. return CVMX_ADD_IO_SEG(0x0001180008000460ull) + ((offset) + (block_id) * 0x0ull) * 8;
  889. case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
  890. return CVMX_ADD_IO_SEG(0x0001180008000460ull) + ((offset) + (block_id) * 0x200000ull) * 8;
  891. }
  892. return CVMX_ADD_IO_SEG(0x0001180008000460ull) + ((offset) + (block_id) * 0x1000000ull) * 8;
  893. }
  894. static inline uint64_t CVMX_GMXX_RX_BP_ONX(unsigned long offset, unsigned long block_id)
  895. {
  896. switch (cvmx_get_octeon_family()) {
  897. case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
  898. return CVMX_ADD_IO_SEG(0x0001180008000440ull) + ((offset) + (block_id) * 0x1000000ull) * 8;
  899. case OCTEON_CN30XX & OCTEON_FAMILY_MASK:
  900. case OCTEON_CN50XX & OCTEON_FAMILY_MASK:
  901. return CVMX_ADD_IO_SEG(0x0001180008000440ull) + ((offset) + (block_id) * 0x1000000ull) * 8;
  902. case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
  903. case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
  904. return CVMX_ADD_IO_SEG(0x0001180008000440ull) + ((offset) + (block_id) * 0x1000000ull) * 8;
  905. case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
  906. case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
  907. case OCTEON_CN38XX & OCTEON_FAMILY_MASK:
  908. case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
  909. case OCTEON_CN58XX & OCTEON_FAMILY_MASK:
  910. return CVMX_ADD_IO_SEG(0x0001180008000440ull) + ((offset) + (block_id) * 0x1000000ull) * 8;
  911. case OCTEON_CN31XX & OCTEON_FAMILY_MASK:
  912. return CVMX_ADD_IO_SEG(0x0001180008000440ull) + ((offset) + (block_id) * 0x0ull) * 8;
  913. case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
  914. return CVMX_ADD_IO_SEG(0x0001180008000440ull) + ((offset) + (block_id) * 0x200000ull) * 8;
  915. }
  916. return CVMX_ADD_IO_SEG(0x0001180008000440ull) + ((offset) + (block_id) * 0x1000000ull) * 8;
  917. }
  918. static inline uint64_t CVMX_GMXX_RX_HG2_STATUS(unsigned long block_id)
  919. {
  920. switch (cvmx_get_octeon_family()) {
  921. case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
  922. case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
  923. case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
  924. return CVMX_ADD_IO_SEG(0x0001180008000548ull) + (block_id) * 0x8000000ull;
  925. case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
  926. case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
  927. case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
  928. return CVMX_ADD_IO_SEG(0x0001180008000548ull) + (block_id) * 0x8000000ull;
  929. case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
  930. return CVMX_ADD_IO_SEG(0x0001180008000548ull) + (block_id) * 0x1000000ull;
  931. }
  932. return CVMX_ADD_IO_SEG(0x0001180008000548ull) + (block_id) * 0x8000000ull;
  933. }
  934. #define CVMX_GMXX_RX_PASS_EN(block_id) (CVMX_ADD_IO_SEG(0x00011800080005F8ull) + ((block_id) & 1) * 0x8000000ull)
  935. #define CVMX_GMXX_RX_PASS_MAPX(offset, block_id) (CVMX_ADD_IO_SEG(0x0001180008000600ull) + (((offset) & 15) + ((block_id) & 1) * 0x1000000ull) * 8)
  936. static inline uint64_t CVMX_GMXX_RX_PRTS(unsigned long block_id)
  937. {
  938. switch (cvmx_get_octeon_family()) {
  939. case OCTEON_CN30XX & OCTEON_FAMILY_MASK:
  940. case OCTEON_CN50XX & OCTEON_FAMILY_MASK:
  941. case OCTEON_CN31XX & OCTEON_FAMILY_MASK:
  942. case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
  943. case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
  944. case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
  945. return CVMX_ADD_IO_SEG(0x0001180008000410ull) + (block_id) * 0x8000000ull;
  946. case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
  947. case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
  948. case OCTEON_CN38XX & OCTEON_FAMILY_MASK:
  949. case OCTEON_CN58XX & OCTEON_FAMILY_MASK:
  950. case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
  951. return CVMX_ADD_IO_SEG(0x0001180008000410ull) + (block_id) * 0x8000000ull;
  952. case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
  953. return CVMX_ADD_IO_SEG(0x0001180008000410ull) + (block_id) * 0x1000000ull;
  954. }
  955. return CVMX_ADD_IO_SEG(0x0001180008000410ull) + (block_id) * 0x8000000ull;
  956. }
  957. static inline uint64_t CVMX_GMXX_RX_PRT_INFO(unsigned long block_id)
  958. {
  959. switch (cvmx_get_octeon_family()) {
  960. case OCTEON_CN30XX & OCTEON_FAMILY_MASK:
  961. case OCTEON_CN50XX & OCTEON_FAMILY_MASK:
  962. case OCTEON_CN31XX & OCTEON_FAMILY_MASK:
  963. case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
  964. case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
  965. case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
  966. return CVMX_ADD_IO_SEG(0x00011800080004E8ull) + (block_id) * 0x8000000ull;
  967. case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
  968. case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
  969. case OCTEON_CN38XX & OCTEON_FAMILY_MASK:
  970. case OCTEON_CN58XX & OCTEON_FAMILY_MASK:
  971. case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
  972. return CVMX_ADD_IO_SEG(0x00011800080004E8ull) + (block_id) * 0x8000000ull;
  973. case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
  974. return CVMX_ADD_IO_SEG(0x00011800080004E8ull) + (block_id) * 0x1000000ull;
  975. }
  976. return CVMX_ADD_IO_SEG(0x00011800080004E8ull) + (block_id) * 0x8000000ull;
  977. }
  978. #define CVMX_GMXX_RX_TX_STATUS(block_id) (CVMX_ADD_IO_SEG(0x00011800080007E8ull))
  979. static inline uint64_t CVMX_GMXX_RX_XAUI_BAD_COL(unsigned long block_id)
  980. {
  981. switch (cvmx_get_octeon_family()) {
  982. case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
  983. case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
  984. case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
  985. return CVMX_ADD_IO_SEG(0x0001180008000538ull) + (block_id) * 0x8000000ull;
  986. case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
  987. case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
  988. case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
  989. return CVMX_ADD_IO_SEG(0x0001180008000538ull) + (block_id) * 0x8000000ull;
  990. case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
  991. return CVMX_ADD_IO_SEG(0x0001180008000538ull) + (block_id) * 0x1000000ull;
  992. }
  993. return CVMX_ADD_IO_SEG(0x0001180008000538ull) + (block_id) * 0x8000000ull;
  994. }
  995. static inline uint64_t CVMX_GMXX_RX_XAUI_CTL(unsigned long block_id)
  996. {
  997. switch (cvmx_get_octeon_family()) {
  998. case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
  999. case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
  1000. case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
  1001. return CVMX_ADD_IO_SEG(0x0001180008000530ull) + (block_id) * 0x8000000ull;
  1002. case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
  1003. case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
  1004. case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
  1005. return CVMX_ADD_IO_SEG(0x0001180008000530ull) + (block_id) * 0x8000000ull;
  1006. case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
  1007. return CVMX_ADD_IO_SEG(0x0001180008000530ull) + (block_id) * 0x1000000ull;
  1008. }
  1009. return CVMX_ADD_IO_SEG(0x0001180008000530ull) + (block_id) * 0x8000000ull;
  1010. }
  1011. static inline uint64_t CVMX_GMXX_SMACX(unsigned long offset, unsigned long block_id)
  1012. {
  1013. switch (cvmx_get_octeon_family()) {
  1014. case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
  1015. return CVMX_ADD_IO_SEG(0x0001180008000230ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1016. case OCTEON_CN30XX & OCTEON_FAMILY_MASK:
  1017. case OCTEON_CN50XX & OCTEON_FAMILY_MASK:
  1018. return CVMX_ADD_IO_SEG(0x0001180008000230ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1019. case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
  1020. case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
  1021. return CVMX_ADD_IO_SEG(0x0001180008000230ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1022. case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
  1023. case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
  1024. case OCTEON_CN38XX & OCTEON_FAMILY_MASK:
  1025. case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
  1026. case OCTEON_CN58XX & OCTEON_FAMILY_MASK:
  1027. return CVMX_ADD_IO_SEG(0x0001180008000230ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1028. case OCTEON_CN31XX & OCTEON_FAMILY_MASK:
  1029. return CVMX_ADD_IO_SEG(0x0001180008000230ull) + ((offset) + (block_id) * 0x0ull) * 2048;
  1030. case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
  1031. return CVMX_ADD_IO_SEG(0x0001180008000230ull) + ((offset) + (block_id) * 0x2000ull) * 2048;
  1032. }
  1033. return CVMX_ADD_IO_SEG(0x0001180008000230ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1034. }
  1035. static inline uint64_t CVMX_GMXX_SOFT_BIST(unsigned long block_id)
  1036. {
  1037. switch (cvmx_get_octeon_family()) {
  1038. case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
  1039. return CVMX_ADD_IO_SEG(0x00011800080007E8ull) + (block_id) * 0x8000000ull;
  1040. case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
  1041. return CVMX_ADD_IO_SEG(0x00011800080007E8ull) + (block_id) * 0x8000000ull;
  1042. case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
  1043. return CVMX_ADD_IO_SEG(0x00011800080007E8ull) + (block_id) * 0x1000000ull;
  1044. }
  1045. return CVMX_ADD_IO_SEG(0x00011800080007E8ull) + (block_id) * 0x1000000ull;
  1046. }
  1047. static inline uint64_t CVMX_GMXX_STAT_BP(unsigned long block_id)
  1048. {
  1049. switch (cvmx_get_octeon_family()) {
  1050. case OCTEON_CN30XX & OCTEON_FAMILY_MASK:
  1051. case OCTEON_CN50XX & OCTEON_FAMILY_MASK:
  1052. case OCTEON_CN31XX & OCTEON_FAMILY_MASK:
  1053. case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
  1054. case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
  1055. case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
  1056. return CVMX_ADD_IO_SEG(0x0001180008000520ull) + (block_id) * 0x8000000ull;
  1057. case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
  1058. case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
  1059. case OCTEON_CN38XX & OCTEON_FAMILY_MASK:
  1060. case OCTEON_CN58XX & OCTEON_FAMILY_MASK:
  1061. case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
  1062. return CVMX_ADD_IO_SEG(0x0001180008000520ull) + (block_id) * 0x8000000ull;
  1063. case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
  1064. return CVMX_ADD_IO_SEG(0x0001180008000520ull) + (block_id) * 0x1000000ull;
  1065. }
  1066. return CVMX_ADD_IO_SEG(0x0001180008000520ull) + (block_id) * 0x8000000ull;
  1067. }
  1068. static inline uint64_t CVMX_GMXX_TB_REG(unsigned long block_id)
  1069. {
  1070. switch (cvmx_get_octeon_family()) {
  1071. case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
  1072. case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
  1073. return CVMX_ADD_IO_SEG(0x00011800080007E0ull) + (block_id) * 0x8000000ull;
  1074. case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
  1075. return CVMX_ADD_IO_SEG(0x00011800080007E0ull) + (block_id) * 0x8000000ull;
  1076. case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
  1077. return CVMX_ADD_IO_SEG(0x00011800080007E0ull) + (block_id) * 0x1000000ull;
  1078. }
  1079. return CVMX_ADD_IO_SEG(0x00011800080007E0ull) + (block_id) * 0x8000000ull;
  1080. }
  1081. static inline uint64_t CVMX_GMXX_TXX_APPEND(unsigned long offset, unsigned long block_id)
  1082. {
  1083. switch (cvmx_get_octeon_family()) {
  1084. case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
  1085. return CVMX_ADD_IO_SEG(0x0001180008000218ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1086. case OCTEON_CN30XX & OCTEON_FAMILY_MASK:
  1087. case OCTEON_CN50XX & OCTEON_FAMILY_MASK:
  1088. return CVMX_ADD_IO_SEG(0x0001180008000218ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1089. case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
  1090. case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
  1091. return CVMX_ADD_IO_SEG(0x0001180008000218ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1092. case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
  1093. case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
  1094. case OCTEON_CN38XX & OCTEON_FAMILY_MASK:
  1095. case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
  1096. case OCTEON_CN58XX & OCTEON_FAMILY_MASK:
  1097. return CVMX_ADD_IO_SEG(0x0001180008000218ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1098. case OCTEON_CN31XX & OCTEON_FAMILY_MASK:
  1099. return CVMX_ADD_IO_SEG(0x0001180008000218ull) + ((offset) + (block_id) * 0x0ull) * 2048;
  1100. case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
  1101. return CVMX_ADD_IO_SEG(0x0001180008000218ull) + ((offset) + (block_id) * 0x2000ull) * 2048;
  1102. }
  1103. return CVMX_ADD_IO_SEG(0x0001180008000218ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1104. }
  1105. static inline uint64_t CVMX_GMXX_TXX_BURST(unsigned long offset, unsigned long block_id)
  1106. {
  1107. switch (cvmx_get_octeon_family()) {
  1108. case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
  1109. return CVMX_ADD_IO_SEG(0x0001180008000228ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1110. case OCTEON_CN30XX & OCTEON_FAMILY_MASK:
  1111. case OCTEON_CN50XX & OCTEON_FAMILY_MASK:
  1112. return CVMX_ADD_IO_SEG(0x0001180008000228ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1113. case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
  1114. case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
  1115. return CVMX_ADD_IO_SEG(0x0001180008000228ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1116. case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
  1117. case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
  1118. case OCTEON_CN38XX & OCTEON_FAMILY_MASK:
  1119. case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
  1120. case OCTEON_CN58XX & OCTEON_FAMILY_MASK:
  1121. return CVMX_ADD_IO_SEG(0x0001180008000228ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1122. case OCTEON_CN31XX & OCTEON_FAMILY_MASK:
  1123. return CVMX_ADD_IO_SEG(0x0001180008000228ull) + ((offset) + (block_id) * 0x0ull) * 2048;
  1124. case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
  1125. return CVMX_ADD_IO_SEG(0x0001180008000228ull) + ((offset) + (block_id) * 0x2000ull) * 2048;
  1126. }
  1127. return CVMX_ADD_IO_SEG(0x0001180008000228ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1128. }
  1129. static inline uint64_t CVMX_GMXX_TXX_CBFC_XOFF(unsigned long offset, unsigned long block_id)
  1130. {
  1131. switch (cvmx_get_octeon_family()) {
  1132. case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
  1133. case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
  1134. case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
  1135. return CVMX_ADD_IO_SEG(0x00011800080005A0ull) + (block_id) * 0x8000000ull;
  1136. case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
  1137. case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
  1138. case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
  1139. return CVMX_ADD_IO_SEG(0x00011800080005A0ull) + (block_id) * 0x8000000ull;
  1140. case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
  1141. return CVMX_ADD_IO_SEG(0x00011800080005A0ull) + (block_id) * 0x1000000ull;
  1142. }
  1143. return CVMX_ADD_IO_SEG(0x00011800080005A0ull) + (block_id) * 0x8000000ull;
  1144. }
  1145. static inline uint64_t CVMX_GMXX_TXX_CBFC_XON(unsigned long offset, unsigned long block_id)
  1146. {
  1147. switch (cvmx_get_octeon_family()) {
  1148. case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
  1149. case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
  1150. case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
  1151. return CVMX_ADD_IO_SEG(0x00011800080005C0ull) + (block_id) * 0x8000000ull;
  1152. case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
  1153. case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
  1154. case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
  1155. return CVMX_ADD_IO_SEG(0x00011800080005C0ull) + (block_id) * 0x8000000ull;
  1156. case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
  1157. return CVMX_ADD_IO_SEG(0x00011800080005C0ull) + (block_id) * 0x1000000ull;
  1158. }
  1159. return CVMX_ADD_IO_SEG(0x00011800080005C0ull) + (block_id) * 0x8000000ull;
  1160. }
  1161. #define CVMX_GMXX_TXX_CLK(offset, block_id) (CVMX_ADD_IO_SEG(0x0001180008000208ull) + (((offset) & 3) + ((block_id) & 1) * 0x10000ull) * 2048)
  1162. static inline uint64_t CVMX_GMXX_TXX_CTL(unsigned long offset, unsigned long block_id)
  1163. {
  1164. switch (cvmx_get_octeon_family()) {
  1165. case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
  1166. return CVMX_ADD_IO_SEG(0x0001180008000270ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1167. case OCTEON_CN30XX & OCTEON_FAMILY_MASK:
  1168. case OCTEON_CN50XX & OCTEON_FAMILY_MASK:
  1169. return CVMX_ADD_IO_SEG(0x0001180008000270ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1170. case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
  1171. case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
  1172. return CVMX_ADD_IO_SEG(0x0001180008000270ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1173. case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
  1174. case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
  1175. case OCTEON_CN38XX & OCTEON_FAMILY_MASK:
  1176. case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
  1177. case OCTEON_CN58XX & OCTEON_FAMILY_MASK:
  1178. return CVMX_ADD_IO_SEG(0x0001180008000270ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1179. case OCTEON_CN31XX & OCTEON_FAMILY_MASK:
  1180. return CVMX_ADD_IO_SEG(0x0001180008000270ull) + ((offset) + (block_id) * 0x0ull) * 2048;
  1181. case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
  1182. return CVMX_ADD_IO_SEG(0x0001180008000270ull) + ((offset) + (block_id) * 0x2000ull) * 2048;
  1183. }
  1184. return CVMX_ADD_IO_SEG(0x0001180008000270ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1185. }
  1186. static inline uint64_t CVMX_GMXX_TXX_MIN_PKT(unsigned long offset, unsigned long block_id)
  1187. {
  1188. switch (cvmx_get_octeon_family()) {
  1189. case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
  1190. return CVMX_ADD_IO_SEG(0x0001180008000240ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1191. case OCTEON_CN30XX & OCTEON_FAMILY_MASK:
  1192. case OCTEON_CN50XX & OCTEON_FAMILY_MASK:
  1193. return CVMX_ADD_IO_SEG(0x0001180008000240ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1194. case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
  1195. case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
  1196. return CVMX_ADD_IO_SEG(0x0001180008000240ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1197. case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
  1198. case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
  1199. case OCTEON_CN38XX & OCTEON_FAMILY_MASK:
  1200. case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
  1201. case OCTEON_CN58XX & OCTEON_FAMILY_MASK:
  1202. return CVMX_ADD_IO_SEG(0x0001180008000240ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1203. case OCTEON_CN31XX & OCTEON_FAMILY_MASK:
  1204. return CVMX_ADD_IO_SEG(0x0001180008000240ull) + ((offset) + (block_id) * 0x0ull) * 2048;
  1205. case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
  1206. return CVMX_ADD_IO_SEG(0x0001180008000240ull) + ((offset) + (block_id) * 0x2000ull) * 2048;
  1207. }
  1208. return CVMX_ADD_IO_SEG(0x0001180008000240ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1209. }
  1210. static inline uint64_t CVMX_GMXX_TXX_PAUSE_PKT_INTERVAL(unsigned long offset, unsigned long block_id)
  1211. {
  1212. switch (cvmx_get_octeon_family()) {
  1213. case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
  1214. return CVMX_ADD_IO_SEG(0x0001180008000248ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1215. case OCTEON_CN30XX & OCTEON_FAMILY_MASK:
  1216. case OCTEON_CN50XX & OCTEON_FAMILY_MASK:
  1217. return CVMX_ADD_IO_SEG(0x0001180008000248ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1218. case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
  1219. case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
  1220. return CVMX_ADD_IO_SEG(0x0001180008000248ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1221. case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
  1222. case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
  1223. case OCTEON_CN38XX & OCTEON_FAMILY_MASK:
  1224. case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
  1225. case OCTEON_CN58XX & OCTEON_FAMILY_MASK:
  1226. return CVMX_ADD_IO_SEG(0x0001180008000248ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1227. case OCTEON_CN31XX & OCTEON_FAMILY_MASK:
  1228. return CVMX_ADD_IO_SEG(0x0001180008000248ull) + ((offset) + (block_id) * 0x0ull) * 2048;
  1229. case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
  1230. return CVMX_ADD_IO_SEG(0x0001180008000248ull) + ((offset) + (block_id) * 0x2000ull) * 2048;
  1231. }
  1232. return CVMX_ADD_IO_SEG(0x0001180008000248ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1233. }
  1234. static inline uint64_t CVMX_GMXX_TXX_PAUSE_PKT_TIME(unsigned long offset, unsigned long block_id)
  1235. {
  1236. switch (cvmx_get_octeon_family()) {
  1237. case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
  1238. return CVMX_ADD_IO_SEG(0x0001180008000238ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1239. case OCTEON_CN30XX & OCTEON_FAMILY_MASK:
  1240. case OCTEON_CN50XX & OCTEON_FAMILY_MASK:
  1241. return CVMX_ADD_IO_SEG(0x0001180008000238ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1242. case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
  1243. case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
  1244. return CVMX_ADD_IO_SEG(0x0001180008000238ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1245. case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
  1246. case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
  1247. case OCTEON_CN38XX & OCTEON_FAMILY_MASK:
  1248. case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
  1249. case OCTEON_CN58XX & OCTEON_FAMILY_MASK:
  1250. return CVMX_ADD_IO_SEG(0x0001180008000238ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1251. case OCTEON_CN31XX & OCTEON_FAMILY_MASK:
  1252. return CVMX_ADD_IO_SEG(0x0001180008000238ull) + ((offset) + (block_id) * 0x0ull) * 2048;
  1253. case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
  1254. return CVMX_ADD_IO_SEG(0x0001180008000238ull) + ((offset) + (block_id) * 0x2000ull) * 2048;
  1255. }
  1256. return CVMX_ADD_IO_SEG(0x0001180008000238ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1257. }
  1258. static inline uint64_t CVMX_GMXX_TXX_PAUSE_TOGO(unsigned long offset, unsigned long block_id)
  1259. {
  1260. switch (cvmx_get_octeon_family()) {
  1261. case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
  1262. return CVMX_ADD_IO_SEG(0x0001180008000258ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1263. case OCTEON_CN30XX & OCTEON_FAMILY_MASK:
  1264. case OCTEON_CN50XX & OCTEON_FAMILY_MASK:
  1265. return CVMX_ADD_IO_SEG(0x0001180008000258ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1266. case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
  1267. case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
  1268. return CVMX_ADD_IO_SEG(0x0001180008000258ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1269. case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
  1270. case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
  1271. case OCTEON_CN38XX & OCTEON_FAMILY_MASK:
  1272. case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
  1273. case OCTEON_CN58XX & OCTEON_FAMILY_MASK:
  1274. return CVMX_ADD_IO_SEG(0x0001180008000258ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1275. case OCTEON_CN31XX & OCTEON_FAMILY_MASK:
  1276. return CVMX_ADD_IO_SEG(0x0001180008000258ull) + ((offset) + (block_id) * 0x0ull) * 2048;
  1277. case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
  1278. return CVMX_ADD_IO_SEG(0x0001180008000258ull) + ((offset) + (block_id) * 0x2000ull) * 2048;
  1279. }
  1280. return CVMX_ADD_IO_SEG(0x0001180008000258ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1281. }
  1282. static inline uint64_t CVMX_GMXX_TXX_PAUSE_ZERO(unsigned long offset, unsigned long block_id)
  1283. {
  1284. switch (cvmx_get_octeon_family()) {
  1285. case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
  1286. return CVMX_ADD_IO_SEG(0x0001180008000260ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1287. case OCTEON_CN30XX & OCTEON_FAMILY_MASK:
  1288. case OCTEON_CN50XX & OCTEON_FAMILY_MASK:
  1289. return CVMX_ADD_IO_SEG(0x0001180008000260ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1290. case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
  1291. case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
  1292. return CVMX_ADD_IO_SEG(0x0001180008000260ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1293. case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
  1294. case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
  1295. case OCTEON_CN38XX & OCTEON_FAMILY_MASK:
  1296. case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
  1297. case OCTEON_CN58XX & OCTEON_FAMILY_MASK:
  1298. return CVMX_ADD_IO_SEG(0x0001180008000260ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1299. case OCTEON_CN31XX & OCTEON_FAMILY_MASK:
  1300. return CVMX_ADD_IO_SEG(0x0001180008000260ull) + ((offset) + (block_id) * 0x0ull) * 2048;
  1301. case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
  1302. return CVMX_ADD_IO_SEG(0x0001180008000260ull) + ((offset) + (block_id) * 0x2000ull) * 2048;
  1303. }
  1304. return CVMX_ADD_IO_SEG(0x0001180008000260ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1305. }
  1306. #define CVMX_GMXX_TXX_PIPE(offset, block_id) (CVMX_ADD_IO_SEG(0x0001180008000310ull) + (((offset) & 3) + ((block_id) & 7) * 0x2000ull) * 2048)
  1307. static inline uint64_t CVMX_GMXX_TXX_SGMII_CTL(unsigned long offset, unsigned long block_id)
  1308. {
  1309. switch (cvmx_get_octeon_family()) {
  1310. case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
  1311. return CVMX_ADD_IO_SEG(0x0001180008000300ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1312. case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
  1313. case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
  1314. return CVMX_ADD_IO_SEG(0x0001180008000300ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1315. case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
  1316. case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
  1317. case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
  1318. return CVMX_ADD_IO_SEG(0x0001180008000300ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1319. case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
  1320. return CVMX_ADD_IO_SEG(0x0001180008000300ull) + ((offset) + (block_id) * 0x2000ull) * 2048;
  1321. }
  1322. return CVMX_ADD_IO_SEG(0x0001180008000300ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1323. }
  1324. static inline uint64_t CVMX_GMXX_TXX_SLOT(unsigned long offset, unsigned long block_id)
  1325. {
  1326. switch (cvmx_get_octeon_family()) {
  1327. case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
  1328. return CVMX_ADD_IO_SEG(0x0001180008000220ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1329. case OCTEON_CN30XX & OCTEON_FAMILY_MASK:
  1330. case OCTEON_CN50XX & OCTEON_FAMILY_MASK:
  1331. return CVMX_ADD_IO_SEG(0x0001180008000220ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1332. case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
  1333. case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
  1334. return CVMX_ADD_IO_SEG(0x0001180008000220ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1335. case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
  1336. case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
  1337. case OCTEON_CN38XX & OCTEON_FAMILY_MASK:
  1338. case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
  1339. case OCTEON_CN58XX & OCTEON_FAMILY_MASK:
  1340. return CVMX_ADD_IO_SEG(0x0001180008000220ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1341. case OCTEON_CN31XX & OCTEON_FAMILY_MASK:
  1342. return CVMX_ADD_IO_SEG(0x0001180008000220ull) + ((offset) + (block_id) * 0x0ull) * 2048;
  1343. case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
  1344. return CVMX_ADD_IO_SEG(0x0001180008000220ull) + ((offset) + (block_id) * 0x2000ull) * 2048;
  1345. }
  1346. return CVMX_ADD_IO_SEG(0x0001180008000220ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1347. }
  1348. static inline uint64_t CVMX_GMXX_TXX_SOFT_PAUSE(unsigned long offset, unsigned long block_id)
  1349. {
  1350. switch (cvmx_get_octeon_family()) {
  1351. case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
  1352. return CVMX_ADD_IO_SEG(0x0001180008000250ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1353. case OCTEON_CN30XX & OCTEON_FAMILY_MASK:
  1354. case OCTEON_CN50XX & OCTEON_FAMILY_MASK:
  1355. return CVMX_ADD_IO_SEG(0x0001180008000250ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1356. case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
  1357. case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
  1358. return CVMX_ADD_IO_SEG(0x0001180008000250ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1359. case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
  1360. case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
  1361. case OCTEON_CN38XX & OCTEON_FAMILY_MASK:
  1362. case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
  1363. case OCTEON_CN58XX & OCTEON_FAMILY_MASK:
  1364. return CVMX_ADD_IO_SEG(0x0001180008000250ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1365. case OCTEON_CN31XX & OCTEON_FAMILY_MASK:
  1366. return CVMX_ADD_IO_SEG(0x0001180008000250ull) + ((offset) + (block_id) * 0x0ull) * 2048;
  1367. case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
  1368. return CVMX_ADD_IO_SEG(0x0001180008000250ull) + ((offset) + (block_id) * 0x2000ull) * 2048;
  1369. }
  1370. return CVMX_ADD_IO_SEG(0x0001180008000250ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1371. }
  1372. static inline uint64_t CVMX_GMXX_TXX_STAT0(unsigned long offset, unsigned long block_id)
  1373. {
  1374. switch (cvmx_get_octeon_family()) {
  1375. case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
  1376. return CVMX_ADD_IO_SEG(0x0001180008000280ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1377. case OCTEON_CN30XX & OCTEON_FAMILY_MASK:
  1378. case OCTEON_CN50XX & OCTEON_FAMILY_MASK:
  1379. return CVMX_ADD_IO_SEG(0x0001180008000280ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1380. case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
  1381. case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
  1382. return CVMX_ADD_IO_SEG(0x0001180008000280ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1383. case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
  1384. case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
  1385. case OCTEON_CN38XX & OCTEON_FAMILY_MASK:
  1386. case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
  1387. case OCTEON_CN58XX & OCTEON_FAMILY_MASK:
  1388. return CVMX_ADD_IO_SEG(0x0001180008000280ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1389. case OCTEON_CN31XX & OCTEON_FAMILY_MASK:
  1390. return CVMX_ADD_IO_SEG(0x0001180008000280ull) + ((offset) + (block_id) * 0x0ull) * 2048;
  1391. case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
  1392. return CVMX_ADD_IO_SEG(0x0001180008000280ull) + ((offset) + (block_id) * 0x2000ull) * 2048;
  1393. }
  1394. return CVMX_ADD_IO_SEG(0x0001180008000280ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1395. }
  1396. static inline uint64_t CVMX_GMXX_TXX_STAT1(unsigned long offset, unsigned long block_id)
  1397. {
  1398. switch (cvmx_get_octeon_family()) {
  1399. case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
  1400. return CVMX_ADD_IO_SEG(0x0001180008000288ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1401. case OCTEON_CN30XX & OCTEON_FAMILY_MASK:
  1402. case OCTEON_CN50XX & OCTEON_FAMILY_MASK:
  1403. return CVMX_ADD_IO_SEG(0x0001180008000288ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1404. case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
  1405. case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
  1406. return CVMX_ADD_IO_SEG(0x0001180008000288ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1407. case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
  1408. case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
  1409. case OCTEON_CN38XX & OCTEON_FAMILY_MASK:
  1410. case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
  1411. case OCTEON_CN58XX & OCTEON_FAMILY_MASK:
  1412. return CVMX_ADD_IO_SEG(0x0001180008000288ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1413. case OCTEON_CN31XX & OCTEON_FAMILY_MASK:
  1414. return CVMX_ADD_IO_SEG(0x0001180008000288ull) + ((offset) + (block_id) * 0x0ull) * 2048;
  1415. case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
  1416. return CVMX_ADD_IO_SEG(0x0001180008000288ull) + ((offset) + (block_id) * 0x2000ull) * 2048;
  1417. }
  1418. return CVMX_ADD_IO_SEG(0x0001180008000288ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1419. }
  1420. static inline uint64_t CVMX_GMXX_TXX_STAT2(unsigned long offset, unsigned long block_id)
  1421. {
  1422. switch (cvmx_get_octeon_family()) {
  1423. case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
  1424. return CVMX_ADD_IO_SEG(0x0001180008000290ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1425. case OCTEON_CN30XX & OCTEON_FAMILY_MASK:
  1426. case OCTEON_CN50XX & OCTEON_FAMILY_MASK:
  1427. return CVMX_ADD_IO_SEG(0x0001180008000290ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1428. case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
  1429. case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
  1430. return CVMX_ADD_IO_SEG(0x0001180008000290ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1431. case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
  1432. case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
  1433. case OCTEON_CN38XX & OCTEON_FAMILY_MASK:
  1434. case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
  1435. case OCTEON_CN58XX & OCTEON_FAMILY_MASK:
  1436. return CVMX_ADD_IO_SEG(0x0001180008000290ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1437. case OCTEON_CN31XX & OCTEON_FAMILY_MASK:
  1438. return CVMX_ADD_IO_SEG(0x0001180008000290ull) + ((offset) + (block_id) * 0x0ull) * 2048;
  1439. case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
  1440. return CVMX_ADD_IO_SEG(0x0001180008000290ull) + ((offset) + (block_id) * 0x2000ull) * 2048;
  1441. }
  1442. return CVMX_ADD_IO_SEG(0x0001180008000290ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1443. }
  1444. static inline uint64_t CVMX_GMXX_TXX_STAT3(unsigned long offset, unsigned long block_id)
  1445. {
  1446. switch (cvmx_get_octeon_family()) {
  1447. case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
  1448. return CVMX_ADD_IO_SEG(0x0001180008000298ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1449. case OCTEON_CN30XX & OCTEON_FAMILY_MASK:
  1450. case OCTEON_CN50XX & OCTEON_FAMILY_MASK:
  1451. return CVMX_ADD_IO_SEG(0x0001180008000298ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1452. case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
  1453. case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
  1454. return CVMX_ADD_IO_SEG(0x0001180008000298ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1455. case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
  1456. case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
  1457. case OCTEON_CN38XX & OCTEON_FAMILY_MASK:
  1458. case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
  1459. case OCTEON_CN58XX & OCTEON_FAMILY_MASK:
  1460. return CVMX_ADD_IO_SEG(0x0001180008000298ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1461. case OCTEON_CN31XX & OCTEON_FAMILY_MASK:
  1462. return CVMX_ADD_IO_SEG(0x0001180008000298ull) + ((offset) + (block_id) * 0x0ull) * 2048;
  1463. case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
  1464. return CVMX_ADD_IO_SEG(0x0001180008000298ull) + ((offset) + (block_id) * 0x2000ull) * 2048;
  1465. }
  1466. return CVMX_ADD_IO_SEG(0x0001180008000298ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1467. }
  1468. static inline uint64_t CVMX_GMXX_TXX_STAT4(unsigned long offset, unsigned long block_id)
  1469. {
  1470. switch (cvmx_get_octeon_family()) {
  1471. case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
  1472. return CVMX_ADD_IO_SEG(0x00011800080002A0ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1473. case OCTEON_CN30XX & OCTEON_FAMILY_MASK:
  1474. case OCTEON_CN50XX & OCTEON_FAMILY_MASK:
  1475. return CVMX_ADD_IO_SEG(0x00011800080002A0ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1476. case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
  1477. case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
  1478. return CVMX_ADD_IO_SEG(0x00011800080002A0ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1479. case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
  1480. case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
  1481. case OCTEON_CN38XX & OCTEON_FAMILY_MASK:
  1482. case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
  1483. case OCTEON_CN58XX & OCTEON_FAMILY_MASK:
  1484. return CVMX_ADD_IO_SEG(0x00011800080002A0ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1485. case OCTEON_CN31XX & OCTEON_FAMILY_MASK:
  1486. return CVMX_ADD_IO_SEG(0x00011800080002A0ull) + ((offset) + (block_id) * 0x0ull) * 2048;
  1487. case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
  1488. return CVMX_ADD_IO_SEG(0x00011800080002A0ull) + ((offset) + (block_id) * 0x2000ull) * 2048;
  1489. }
  1490. return CVMX_ADD_IO_SEG(0x00011800080002A0ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1491. }
  1492. static inline uint64_t CVMX_GMXX_TXX_STAT5(unsigned long offset, unsigned long block_id)
  1493. {
  1494. switch (cvmx_get_octeon_family()) {
  1495. case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
  1496. return CVMX_ADD_IO_SEG(0x00011800080002A8ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1497. case OCTEON_CN30XX & OCTEON_FAMILY_MASK:
  1498. case OCTEON_CN50XX & OCTEON_FAMILY_MASK:
  1499. return CVMX_ADD_IO_SEG(0x00011800080002A8ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1500. case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
  1501. case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
  1502. return CVMX_ADD_IO_SEG(0x00011800080002A8ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1503. case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
  1504. case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
  1505. case OCTEON_CN38XX & OCTEON_FAMILY_MASK:
  1506. case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
  1507. case OCTEON_CN58XX & OCTEON_FAMILY_MASK:
  1508. return CVMX_ADD_IO_SEG(0x00011800080002A8ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1509. case OCTEON_CN31XX & OCTEON_FAMILY_MASK:
  1510. return CVMX_ADD_IO_SEG(0x00011800080002A8ull) + ((offset) + (block_id) * 0x0ull) * 2048;
  1511. case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
  1512. return CVMX_ADD_IO_SEG(0x00011800080002A8ull) + ((offset) + (block_id) * 0x2000ull) * 2048;
  1513. }
  1514. return CVMX_ADD_IO_SEG(0x00011800080002A8ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1515. }
  1516. static inline uint64_t CVMX_GMXX_TXX_STAT6(unsigned long offset, unsigned long block_id)
  1517. {
  1518. switch (cvmx_get_octeon_family()) {
  1519. case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
  1520. return CVMX_ADD_IO_SEG(0x00011800080002B0ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1521. case OCTEON_CN30XX & OCTEON_FAMILY_MASK:
  1522. case OCTEON_CN50XX & OCTEON_FAMILY_MASK:
  1523. return CVMX_ADD_IO_SEG(0x00011800080002B0ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1524. case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
  1525. case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
  1526. return CVMX_ADD_IO_SEG(0x00011800080002B0ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1527. case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
  1528. case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
  1529. case OCTEON_CN38XX & OCTEON_FAMILY_MASK:
  1530. case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
  1531. case OCTEON_CN58XX & OCTEON_FAMILY_MASK:
  1532. return CVMX_ADD_IO_SEG(0x00011800080002B0ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1533. case OCTEON_CN31XX & OCTEON_FAMILY_MASK:
  1534. return CVMX_ADD_IO_SEG(0x00011800080002B0ull) + ((offset) + (block_id) * 0x0ull) * 2048;
  1535. case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
  1536. return CVMX_ADD_IO_SEG(0x00011800080002B0ull) + ((offset) + (block_id) * 0x2000ull) * 2048;
  1537. }
  1538. return CVMX_ADD_IO_SEG(0x00011800080002B0ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1539. }
  1540. static inline uint64_t CVMX_GMXX_TXX_STAT7(unsigned long offset, unsigned long block_id)
  1541. {
  1542. switch (cvmx_get_octeon_family()) {
  1543. case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
  1544. return CVMX_ADD_IO_SEG(0x00011800080002B8ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1545. case OCTEON_CN30XX & OCTEON_FAMILY_MASK:
  1546. case OCTEON_CN50XX & OCTEON_FAMILY_MASK:
  1547. return CVMX_ADD_IO_SEG(0x00011800080002B8ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1548. case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
  1549. case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
  1550. return CVMX_ADD_IO_SEG(0x00011800080002B8ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1551. case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
  1552. case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
  1553. case OCTEON_CN38XX & OCTEON_FAMILY_MASK:
  1554. case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
  1555. case OCTEON_CN58XX & OCTEON_FAMILY_MASK:
  1556. return CVMX_ADD_IO_SEG(0x00011800080002B8ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1557. case OCTEON_CN31XX & OCTEON_FAMILY_MASK:
  1558. return CVMX_ADD_IO_SEG(0x00011800080002B8ull) + ((offset) + (block_id) * 0x0ull) * 2048;
  1559. case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
  1560. return CVMX_ADD_IO_SEG(0x00011800080002B8ull) + ((offset) + (block_id) * 0x2000ull) * 2048;
  1561. }
  1562. return CVMX_ADD_IO_SEG(0x00011800080002B8ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1563. }
  1564. static inline uint64_t CVMX_GMXX_TXX_STAT8(unsigned long offset, unsigned long block_id)
  1565. {
  1566. switch (cvmx_get_octeon_family()) {
  1567. case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
  1568. return CVMX_ADD_IO_SEG(0x00011800080002C0ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1569. case OCTEON_CN30XX & OCTEON_FAMILY_MASK:
  1570. case OCTEON_CN50XX & OCTEON_FAMILY_MASK:
  1571. return CVMX_ADD_IO_SEG(0x00011800080002C0ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1572. case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
  1573. case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
  1574. return CVMX_ADD_IO_SEG(0x00011800080002C0ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1575. case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
  1576. case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
  1577. case OCTEON_CN38XX & OCTEON_FAMILY_MASK:
  1578. case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
  1579. case OCTEON_CN58XX & OCTEON_FAMILY_MASK:
  1580. return CVMX_ADD_IO_SEG(0x00011800080002C0ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1581. case OCTEON_CN31XX & OCTEON_FAMILY_MASK:
  1582. return CVMX_ADD_IO_SEG(0x00011800080002C0ull) + ((offset) + (block_id) * 0x0ull) * 2048;
  1583. case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
  1584. return CVMX_ADD_IO_SEG(0x00011800080002C0ull) + ((offset) + (block_id) * 0x2000ull) * 2048;
  1585. }
  1586. return CVMX_ADD_IO_SEG(0x00011800080002C0ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1587. }
  1588. static inline uint64_t CVMX_GMXX_TXX_STAT9(unsigned long offset, unsigned long block_id)
  1589. {
  1590. switch (cvmx_get_octeon_family()) {
  1591. case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
  1592. return CVMX_ADD_IO_SEG(0x00011800080002C8ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1593. case OCTEON_CN30XX & OCTEON_FAMILY_MASK:
  1594. case OCTEON_CN50XX & OCTEON_FAMILY_MASK:
  1595. return CVMX_ADD_IO_SEG(0x00011800080002C8ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1596. case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
  1597. case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
  1598. return CVMX_ADD_IO_SEG(0x00011800080002C8ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1599. case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
  1600. case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
  1601. case OCTEON_CN38XX & OCTEON_FAMILY_MASK:
  1602. case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
  1603. case OCTEON_CN58XX & OCTEON_FAMILY_MASK:
  1604. return CVMX_ADD_IO_SEG(0x00011800080002C8ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1605. case OCTEON_CN31XX & OCTEON_FAMILY_MASK:
  1606. return CVMX_ADD_IO_SEG(0x00011800080002C8ull) + ((offset) + (block_id) * 0x0ull) * 2048;
  1607. case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
  1608. return CVMX_ADD_IO_SEG(0x00011800080002C8ull) + ((offset) + (block_id) * 0x2000ull) * 2048;
  1609. }
  1610. return CVMX_ADD_IO_SEG(0x00011800080002C8ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1611. }
  1612. static inline uint64_t CVMX_GMXX_TXX_STATS_CTL(unsigned long offset, unsigned long block_id)
  1613. {
  1614. switch (cvmx_get_octeon_family()) {
  1615. case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
  1616. return CVMX_ADD_IO_SEG(0x0001180008000268ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1617. case OCTEON_CN30XX & OCTEON_FAMILY_MASK:
  1618. case OCTEON_CN50XX & OCTEON_FAMILY_MASK:
  1619. return CVMX_ADD_IO_SEG(0x0001180008000268ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1620. case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
  1621. case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
  1622. return CVMX_ADD_IO_SEG(0x0001180008000268ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1623. case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
  1624. case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
  1625. case OCTEON_CN38XX & OCTEON_FAMILY_MASK:
  1626. case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
  1627. case OCTEON_CN58XX & OCTEON_FAMILY_MASK:
  1628. return CVMX_ADD_IO_SEG(0x0001180008000268ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1629. case OCTEON_CN31XX & OCTEON_FAMILY_MASK:
  1630. return CVMX_ADD_IO_SEG(0x0001180008000268ull) + ((offset) + (block_id) * 0x0ull) * 2048;
  1631. case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
  1632. return CVMX_ADD_IO_SEG(0x0001180008000268ull) + ((offset) + (block_id) * 0x2000ull) * 2048;
  1633. }
  1634. return CVMX_ADD_IO_SEG(0x0001180008000268ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1635. }
  1636. static inline uint64_t CVMX_GMXX_TXX_THRESH(unsigned long offset, unsigned long block_id)
  1637. {
  1638. switch (cvmx_get_octeon_family()) {
  1639. case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
  1640. return CVMX_ADD_IO_SEG(0x0001180008000210ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1641. case OCTEON_CN30XX & OCTEON_FAMILY_MASK:
  1642. case OCTEON_CN50XX & OCTEON_FAMILY_MASK:
  1643. return CVMX_ADD_IO_SEG(0x0001180008000210ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1644. case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
  1645. case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
  1646. return CVMX_ADD_IO_SEG(0x0001180008000210ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1647. case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
  1648. case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
  1649. case OCTEON_CN38XX & OCTEON_FAMILY_MASK:
  1650. case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
  1651. case OCTEON_CN58XX & OCTEON_FAMILY_MASK:
  1652. return CVMX_ADD_IO_SEG(0x0001180008000210ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1653. case OCTEON_CN31XX & OCTEON_FAMILY_MASK:
  1654. return CVMX_ADD_IO_SEG(0x0001180008000210ull) + ((offset) + (block_id) * 0x0ull) * 2048;
  1655. case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
  1656. return CVMX_ADD_IO_SEG(0x0001180008000210ull) + ((offset) + (block_id) * 0x2000ull) * 2048;
  1657. }
  1658. return CVMX_ADD_IO_SEG(0x0001180008000210ull) + ((offset) + (block_id) * 0x10000ull) * 2048;
  1659. }
  1660. static inline uint64_t CVMX_GMXX_TX_BP(unsigned long block_id)
  1661. {
  1662. switch (cvmx_get_octeon_family()) {
  1663. case OCTEON_CN30XX & OCTEON_FAMILY_MASK:
  1664. case OCTEON_CN50XX & OCTEON_FAMILY_MASK:
  1665. case OCTEON_CN31XX & OCTEON_FAMILY_MASK:
  1666. case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
  1667. case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
  1668. case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
  1669. return CVMX_ADD_IO_SEG(0x00011800080004D0ull) + (block_id) * 0x8000000ull;
  1670. case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
  1671. case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
  1672. case OCTEON_CN38XX & OCTEON_FAMILY_MASK:
  1673. case OCTEON_CN58XX & OCTEON_FAMILY_MASK:
  1674. case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
  1675. return CVMX_ADD_IO_SEG(0x00011800080004D0ull) + (block_id) * 0x8000000ull;
  1676. case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
  1677. return CVMX_ADD_IO_SEG(0x00011800080004D0ull) + (block_id) * 0x1000000ull;
  1678. }
  1679. return CVMX_ADD_IO_SEG(0x00011800080004D0ull) + (block_id) * 0x8000000ull;
  1680. }
  1681. #define CVMX_GMXX_TX_CLK_MSKX(offset, block_id) (CVMX_ADD_IO_SEG(0x0001180008000780ull) + (((offset) & 1) + ((block_id) & 0) * 0x0ull) * 8)
  1682. static inline uint64_t CVMX_GMXX_TX_COL_ATTEMPT(unsigned long block_id)
  1683. {
  1684. switch (cvmx_get_octeon_family()) {
  1685. case OCTEON_CN30XX & OCTEON_FAMILY_MASK:
  1686. case OCTEON_CN50XX & OCTEON_FAMILY_MASK:
  1687. case OCTEON_CN31XX & OCTEON_FAMILY_MASK:
  1688. case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
  1689. case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
  1690. case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
  1691. return CVMX_ADD_IO_SEG(0x0001180008000498ull) + (block_id) * 0x8000000ull;
  1692. case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
  1693. case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
  1694. case OCTEON_CN38XX & OCTEON_FAMILY_MASK:
  1695. case OCTEON_CN58XX & OCTEON_FAMILY_MASK:
  1696. case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
  1697. return CVMX_ADD_IO_SEG(0x0001180008000498ull) + (block_id) * 0x8000000ull;
  1698. case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
  1699. return CVMX_ADD_IO_SEG(0x0001180008000498ull) + (block_id) * 0x1000000ull;
  1700. }
  1701. return CVMX_ADD_IO_SEG(0x0001180008000498ull) + (block_id) * 0x8000000ull;
  1702. }
  1703. static inline uint64_t CVMX_GMXX_TX_CORRUPT(unsigned long block_id)
  1704. {
  1705. switch (cvmx_get_octeon_family()) {
  1706. case OCTEON_CN30XX & OCTEON_FAMILY_MASK:
  1707. case OCTEON_CN50XX & OCTEON_FAMILY_MASK:
  1708. case OCTEON_CN31XX & OCTEON_FAMILY_MASK:
  1709. case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
  1710. case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
  1711. case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
  1712. return CVMX_ADD_IO_SEG(0x00011800080004D8ull) + (block_id) * 0x8000000ull;
  1713. case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
  1714. case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
  1715. case OCTEON_CN38XX & OCTEON_FAMILY_MASK:
  1716. case OCTEON_CN58XX & OCTEON_FAMILY_MASK:
  1717. case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
  1718. return CVMX_ADD_IO_SEG(0x00011800080004D8ull) + (block_id) * 0x8000000ull;
  1719. case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
  1720. return CVMX_ADD_IO_SEG(0x00011800080004D8ull) + (block_id) * 0x1000000ull;
  1721. }
  1722. return CVMX_ADD_IO_SEG(0x00011800080004D8ull) + (block_id) * 0x8000000ull;
  1723. }
  1724. static inline uint64_t CVMX_GMXX_TX_HG2_REG1(unsigned long block_id)
  1725. {
  1726. switch (cvmx_get_octeon_family()) {
  1727. case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
  1728. case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
  1729. case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
  1730. return CVMX_ADD_IO_SEG(0x0001180008000558ull) + (block_id) * 0x8000000ull;
  1731. case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
  1732. case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
  1733. case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
  1734. return CVMX_ADD_IO_SEG(0x0001180008000558ull) + (block_id) * 0x8000000ull;
  1735. case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
  1736. return CVMX_ADD_IO_SEG(0x0001180008000558ull) + (block_id) * 0x1000000ull;
  1737. }
  1738. return CVMX_ADD_IO_SEG(0x0001180008000558ull) + (block_id) * 0x8000000ull;
  1739. }
  1740. static inline uint64_t CVMX_GMXX_TX_HG2_REG2(unsigned long block_id)
  1741. {
  1742. switch (cvmx_get_octeon_family()) {
  1743. case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
  1744. case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
  1745. case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
  1746. return CVMX_ADD_IO_SEG(0x0001180008000560ull) + (block_id) * 0x8000000ull;
  1747. case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
  1748. case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
  1749. case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
  1750. return CVMX_ADD_IO_SEG(0x0001180008000560ull) + (block_id) * 0x8000000ull;
  1751. case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
  1752. return CVMX_ADD_IO_SEG(0x0001180008000560ull) + (block_id) * 0x1000000ull;
  1753. }
  1754. return CVMX_ADD_IO_SEG(0x0001180008000560ull) + (block_id) * 0x8000000ull;
  1755. }
  1756. static inline uint64_t CVMX_GMXX_TX_IFG(unsigned long block_id)
  1757. {
  1758. switch (cvmx_get_octeon_family()) {
  1759. case OCTEON_CN30XX & OCTEON_FAMILY_MASK:
  1760. case OCTEON_CN50XX & OCTEON_FAMILY_MASK:
  1761. case OCTEON_CN31XX & OCTEON_FAMILY_MASK:
  1762. case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
  1763. case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
  1764. case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
  1765. return CVMX_ADD_IO_SEG(0x0001180008000488ull) + (block_id) * 0x8000000ull;
  1766. case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
  1767. case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
  1768. case OCTEON_CN38XX & OCTEON_FAMILY_MASK:
  1769. case OCTEON_CN58XX & OCTEON_FAMILY_MASK:
  1770. case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
  1771. return CVMX_ADD_IO_SEG(0x0001180008000488ull) + (block_id) * 0x8000000ull;
  1772. case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
  1773. return CVMX_ADD_IO_SEG(0x0001180008000488ull) + (block_id) * 0x1000000ull;
  1774. }
  1775. return CVMX_ADD_IO_SEG(0x0001180008000488ull) + (block_id) * 0x8000000ull;
  1776. }
  1777. static inline uint64_t CVMX_GMXX_TX_INT_EN(unsigned long block_id)
  1778. {
  1779. switch (cvmx_get_octeon_family()) {
  1780. case OCTEON_CN30XX & OCTEON_FAMILY_MASK:
  1781. case OCTEON_CN50XX & OCTEON_FAMILY_MASK:
  1782. case OCTEON_CN31XX & OCTEON_FAMILY_MASK:
  1783. case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
  1784. case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
  1785. case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
  1786. return CVMX_ADD_IO_SEG(0x0001180008000508ull) + (block_id) * 0x8000000ull;
  1787. case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
  1788. case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
  1789. case OCTEON_CN38XX & OCTEON_FAMILY_MASK:
  1790. case OCTEON_CN58XX & OCTEON_FAMILY_MASK:
  1791. case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
  1792. return CVMX_ADD_IO_SEG(0x0001180008000508ull) + (block_id) * 0x8000000ull;
  1793. case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
  1794. return CVMX_ADD_IO_SEG(0x0001180008000508ull) + (block_id) * 0x1000000ull;
  1795. }
  1796. return CVMX_ADD_IO_SEG(0x0001180008000508ull) + (block_id) * 0x8000000ull;
  1797. }
  1798. static inline uint64_t CVMX_GMXX_TX_INT_REG(unsigned long block_id)
  1799. {
  1800. switch (cvmx_get_octeon_family()) {
  1801. case OCTEON_CN30XX & OCTEON_FAMILY_MASK:
  1802. case OCTEON_CN50XX & OCTEON_FAMILY_MASK:
  1803. case OCTEON_CN31XX & OCTEON_FAMILY_MASK:
  1804. case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
  1805. case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
  1806. case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
  1807. return CVMX_ADD_IO_SEG(0x0001180008000500ull) + (block_id) * 0x8000000ull;
  1808. case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
  1809. case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
  1810. case OCTEON_CN38XX & OCTEON_FAMILY_MASK:
  1811. case OCTEON_CN58XX & OCTEON_FAMILY_MASK:
  1812. case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
  1813. return CVMX_ADD_IO_SEG(0x0001180008000500ull) + (block_id) * 0x8000000ull;
  1814. case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
  1815. return CVMX_ADD_IO_SEG(0x0001180008000500ull) + (block_id) * 0x1000000ull;
  1816. }
  1817. return CVMX_ADD_IO_SEG(0x0001180008000500ull) + (block_id) * 0x8000000ull;
  1818. }
  1819. static inline uint64_t CVMX_GMXX_TX_JAM(unsigned long block_id)
  1820. {
  1821. switch (cvmx_get_octeon_family()) {
  1822. case OCTEON_CN30XX & OCTEON_FAMILY_MASK:
  1823. case OCTEON_CN50XX & OCTEON_FAMILY_MASK:
  1824. case OCTEON_CN31XX & OCTEON_FAMILY_MASK:
  1825. case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
  1826. case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
  1827. case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
  1828. return CVMX_ADD_IO_SEG(0x0001180008000490ull) + (block_id) * 0x8000000ull;
  1829. case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
  1830. case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
  1831. case OCTEON_CN38XX & OCTEON_FAMILY_MASK:
  1832. case OCTEON_CN58XX & OCTEON_FAMILY_MASK:
  1833. case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
  1834. return CVMX_ADD_IO_SEG(0x0001180008000490ull) + (block_id) * 0x8000000ull;
  1835. case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
  1836. return CVMX_ADD_IO_SEG(0x0001180008000490ull) + (block_id) * 0x1000000ull;
  1837. }
  1838. return CVMX_ADD_IO_SEG(0x0001180008000490ull) + (block_id) * 0x8000000ull;
  1839. }
  1840. static inline uint64_t CVMX_GMXX_TX_LFSR(unsigned long block_id)
  1841. {
  1842. switch (cvmx_get_octeon_family()) {
  1843. case OCTEON_CN30XX & OCTEON_FAMILY_MASK:
  1844. case OCTEON_CN50XX & OCTEON_FAMILY_MASK:
  1845. case OCTEON_CN31XX & OCTEON_FAMILY_MASK:
  1846. case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
  1847. case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
  1848. case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
  1849. return CVMX_ADD_IO_SEG(0x00011800080004F8ull) + (block_id) * 0x8000000ull;
  1850. case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
  1851. case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
  1852. case OCTEON_CN38XX & OCTEON_FAMILY_MASK:
  1853. case OCTEON_CN58XX & OCTEON_FAMILY_MASK:
  1854. case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
  1855. return CVMX_ADD_IO_SEG(0x00011800080004F8ull) + (block_id) * 0x8000000ull;
  1856. case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
  1857. return CVMX_ADD_IO_SEG(0x00011800080004F8ull) + (block_id) * 0x1000000ull;
  1858. }
  1859. return CVMX_ADD_IO_SEG(0x00011800080004F8ull) + (block_id) * 0x8000000ull;
  1860. }
  1861. static inline uint64_t CVMX_GMXX_TX_OVR_BP(unsigned long block_id)
  1862. {
  1863. switch (cvmx_get_octeon_family()) {
  1864. case OCTEON_CN30XX & OCTEON_FAMILY_MASK:
  1865. case OCTEON_CN50XX & OCTEON_FAMILY_MASK:
  1866. case OCTEON_CN31XX & OCTEON_FAMILY_MASK:
  1867. case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
  1868. case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
  1869. case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
  1870. return CVMX_ADD_IO_SEG(0x00011800080004C8ull) + (block_id) * 0x8000000ull;
  1871. case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
  1872. case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
  1873. case OCTEON_CN38XX & OCTEON_FAMILY_MASK:
  1874. case OCTEON_CN58XX & OCTEON_FAMILY_MASK:
  1875. case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
  1876. return CVMX_ADD_IO_SEG(0x00011800080004C8ull) + (block_id) * 0x8000000ull;
  1877. case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
  1878. return CVMX_ADD_IO_SEG(0x00011800080004C8ull) + (block_id) * 0x1000000ull;
  1879. }
  1880. return CVMX_ADD_IO_SEG(0x00011800080004C8ull) + (block_id) * 0x8000000ull;
  1881. }
  1882. static inline uint64_t CVMX_GMXX_TX_PAUSE_PKT_DMAC(unsigned long block_id)
  1883. {
  1884. switch (cvmx_get_octeon_family()) {
  1885. case OCTEON_CN30XX & OCTEON_FAMILY_MASK:
  1886. case OCTEON_CN50XX & OCTEON_FAMILY_MASK:
  1887. case OCTEON_CN31XX & OCTEON_FAMILY_MASK:
  1888. case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
  1889. case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
  1890. case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
  1891. return CVMX_ADD_IO_SEG(0x00011800080004A0ull) + (block_id) * 0x8000000ull;
  1892. case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
  1893. case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
  1894. case OCTEON_CN38XX & OCTEON_FAMILY_MASK:
  1895. case OCTEON_CN58XX & OCTEON_FAMILY_MASK:
  1896. case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
  1897. return CVMX_ADD_IO_SEG(0x00011800080004A0ull) + (block_id) * 0x8000000ull;
  1898. case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
  1899. return CVMX_ADD_IO_SEG(0x00011800080004A0ull) + (block_id) * 0x1000000ull;
  1900. }
  1901. return CVMX_ADD_IO_SEG(0x00011800080004A0ull) + (block_id) * 0x8000000ull;
  1902. }
  1903. static inline uint64_t CVMX_GMXX_TX_PAUSE_PKT_TYPE(unsigned long block_id)
  1904. {
  1905. switch (cvmx_get_octeon_family()) {
  1906. case OCTEON_CN30XX & OCTEON_FAMILY_MASK:
  1907. case OCTEON_CN50XX & OCTEON_FAMILY_MASK:
  1908. case OCTEON_CN31XX & OCTEON_FAMILY_MASK:
  1909. case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
  1910. case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
  1911. case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
  1912. return CVMX_ADD_IO_SEG(0x00011800080004A8ull) + (block_id) * 0x8000000ull;
  1913. case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
  1914. case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
  1915. case OCTEON_CN38XX & OCTEON_FAMILY_MASK:
  1916. case OCTEON_CN58XX & OCTEON_FAMILY_MASK:
  1917. case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
  1918. return CVMX_ADD_IO_SEG(0x00011800080004A8ull) + (block_id) * 0x8000000ull;
  1919. case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
  1920. return CVMX_ADD_IO_SEG(0x00011800080004A8ull) + (block_id) * 0x1000000ull;
  1921. }
  1922. return CVMX_ADD_IO_SEG(0x00011800080004A8ull) + (block_id) * 0x8000000ull;
  1923. }
  1924. static inline uint64_t CVMX_GMXX_TX_PRTS(unsigned long block_id)
  1925. {
  1926. switch (cvmx_get_octeon_family()) {
  1927. case OCTEON_CN30XX & OCTEON_FAMILY_MASK:
  1928. case OCTEON_CN50XX & OCTEON_FAMILY_MASK:
  1929. case OCTEON_CN31XX & OCTEON_FAMILY_MASK:
  1930. case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
  1931. case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
  1932. case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
  1933. return CVMX_ADD_IO_SEG(0x0001180008000480ull) + (block_id) * 0x8000000ull;
  1934. case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
  1935. case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
  1936. case OCTEON_CN38XX & OCTEON_FAMILY_MASK:
  1937. case OCTEON_CN58XX & OCTEON_FAMILY_MASK:
  1938. case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
  1939. return CVMX_ADD_IO_SEG(0x0001180008000480ull) + (block_id) * 0x8000000ull;
  1940. case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
  1941. return CVMX_ADD_IO_SEG(0x0001180008000480ull) + (block_id) * 0x1000000ull;
  1942. }
  1943. return CVMX_ADD_IO_SEG(0x0001180008000480ull) + (block_id) * 0x8000000ull;
  1944. }
  1945. #define CVMX_GMXX_TX_SPI_CTL(block_id) (CVMX_ADD_IO_SEG(0x00011800080004C0ull) + ((block_id) & 1) * 0x8000000ull)
  1946. #define CVMX_GMXX_TX_SPI_DRAIN(block_id) (CVMX_ADD_IO_SEG(0x00011800080004E0ull) + ((block_id) & 1) * 0x8000000ull)
  1947. #define CVMX_GMXX_TX_SPI_MAX(block_id) (CVMX_ADD_IO_SEG(0x00011800080004B0ull) + ((block_id) & 1) * 0x8000000ull)
  1948. #define CVMX_GMXX_TX_SPI_ROUNDX(offset, block_id) (CVMX_ADD_IO_SEG(0x0001180008000680ull) + (((offset) & 31) + ((block_id) & 1) * 0x1000000ull) * 8)
  1949. #define CVMX_GMXX_TX_SPI_THRESH(block_id) (CVMX_ADD_IO_SEG(0x00011800080004B8ull) + ((block_id) & 1) * 0x8000000ull)
  1950. static inline uint64_t CVMX_GMXX_TX_XAUI_CTL(unsigned long block_id)
  1951. {
  1952. switch (cvmx_get_octeon_family()) {
  1953. case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
  1954. case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
  1955. case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
  1956. return CVMX_ADD_IO_SEG(0x0001180008000528ull) + (block_id) * 0x8000000ull;
  1957. case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
  1958. case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
  1959. case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
  1960. return CVMX_ADD_IO_SEG(0x0001180008000528ull) + (block_id) * 0x8000000ull;
  1961. case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
  1962. return CVMX_ADD_IO_SEG(0x0001180008000528ull) + (block_id) * 0x1000000ull;
  1963. }
  1964. return CVMX_ADD_IO_SEG(0x0001180008000528ull) + (block_id) * 0x8000000ull;
  1965. }
  1966. static inline uint64_t CVMX_GMXX_XAUI_EXT_LOOPBACK(unsigned long block_id)
  1967. {
  1968. switch (cvmx_get_octeon_family()) {
  1969. case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
  1970. case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
  1971. case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
  1972. return CVMX_ADD_IO_SEG(0x0001180008000540ull) + (block_id) * 0x8000000ull;
  1973. case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
  1974. case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
  1975. case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
  1976. return CVMX_ADD_IO_SEG(0x0001180008000540ull) + (block_id) * 0x8000000ull;
  1977. case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
  1978. return CVMX_ADD_IO_SEG(0x0001180008000540ull) + (block_id) * 0x1000000ull;
  1979. }
  1980. return CVMX_ADD_IO_SEG(0x0001180008000540ull) + (block_id) * 0x8000000ull;
  1981. }
  1982. union cvmx_gmxx_bad_reg {
  1983. uint64_t u64;
  1984. struct cvmx_gmxx_bad_reg_s {
  1985. #ifdef __BIG_ENDIAN_BITFIELD
  1986. uint64_t reserved_31_63:33;
  1987. uint64_t inb_nxa:4;
  1988. uint64_t statovr:1;
  1989. uint64_t loststat:4;
  1990. uint64_t reserved_18_21:4;
  1991. uint64_t out_ovr:16;
  1992. uint64_t ncb_ovr:1;
  1993. uint64_t out_col:1;
  1994. #else
  1995. uint64_t out_col:1;
  1996. uint64_t ncb_ovr:1;
  1997. uint64_t out_ovr:16;
  1998. uint64_t reserved_18_21:4;
  1999. uint64_t loststat:4;
  2000. uint64_t statovr:1;
  2001. uint64_t inb_nxa:4;
  2002. uint64_t reserved_31_63:33;
  2003. #endif
  2004. } s;
  2005. struct cvmx_gmxx_bad_reg_cn30xx {
  2006. #ifdef __BIG_ENDIAN_BITFIELD
  2007. uint64_t reserved_31_63:33;
  2008. uint64_t inb_nxa:4;
  2009. uint64_t statovr:1;
  2010. uint64_t reserved_25_25:1;
  2011. uint64_t loststat:3;
  2012. uint64_t reserved_5_21:17;
  2013. uint64_t out_ovr:3;
  2014. uint64_t reserved_0_1:2;
  2015. #else
  2016. uint64_t reserved_0_1:2;
  2017. uint64_t out_ovr:3;
  2018. uint64_t reserved_5_21:17;
  2019. uint64_t loststat:3;
  2020. uint64_t reserved_25_25:1;
  2021. uint64_t statovr:1;
  2022. uint64_t inb_nxa:4;
  2023. uint64_t reserved_31_63:33;
  2024. #endif
  2025. } cn30xx;
  2026. struct cvmx_gmxx_bad_reg_cn30xx cn31xx;
  2027. struct cvmx_gmxx_bad_reg_s cn38xx;
  2028. struct cvmx_gmxx_bad_reg_s cn38xxp2;
  2029. struct cvmx_gmxx_bad_reg_cn30xx cn50xx;
  2030. struct cvmx_gmxx_bad_reg_cn52xx {
  2031. #ifdef __BIG_ENDIAN_BITFIELD
  2032. uint64_t reserved_31_63:33;
  2033. uint64_t inb_nxa:4;
  2034. uint64_t statovr:1;
  2035. uint64_t loststat:4;
  2036. uint64_t reserved_6_21:16;
  2037. uint64_t out_ovr:4;
  2038. uint64_t reserved_0_1:2;
  2039. #else
  2040. uint64_t reserved_0_1:2;
  2041. uint64_t out_ovr:4;
  2042. uint64_t reserved_6_21:16;
  2043. uint64_t loststat:4;
  2044. uint64_t statovr:1;
  2045. uint64_t inb_nxa:4;
  2046. uint64_t reserved_31_63:33;
  2047. #endif
  2048. } cn52xx;
  2049. struct cvmx_gmxx_bad_reg_cn52xx cn52xxp1;
  2050. struct cvmx_gmxx_bad_reg_cn52xx cn56xx;
  2051. struct cvmx_gmxx_bad_reg_cn52xx cn56xxp1;
  2052. struct cvmx_gmxx_bad_reg_s cn58xx;
  2053. struct cvmx_gmxx_bad_reg_s cn58xxp1;
  2054. struct cvmx_gmxx_bad_reg_cn52xx cn61xx;
  2055. struct cvmx_gmxx_bad_reg_cn52xx cn63xx;
  2056. struct cvmx_gmxx_bad_reg_cn52xx cn63xxp1;
  2057. struct cvmx_gmxx_bad_reg_cn52xx cn66xx;
  2058. struct cvmx_gmxx_bad_reg_cn52xx cn68xx;
  2059. struct cvmx_gmxx_bad_reg_cn52xx cn68xxp1;
  2060. struct cvmx_gmxx_bad_reg_cn52xx cnf71xx;
  2061. };
  2062. union cvmx_gmxx_bist {
  2063. uint64_t u64;
  2064. struct cvmx_gmxx_bist_s {
  2065. #ifdef __BIG_ENDIAN_BITFIELD
  2066. uint64_t reserved_25_63:39;
  2067. uint64_t status:25;
  2068. #else
  2069. uint64_t status:25;
  2070. uint64_t reserved_25_63:39;
  2071. #endif
  2072. } s;
  2073. struct cvmx_gmxx_bist_cn30xx {
  2074. #ifdef __BIG_ENDIAN_BITFIELD
  2075. uint64_t reserved_10_63:54;
  2076. uint64_t status:10;
  2077. #else
  2078. uint64_t status:10;
  2079. uint64_t reserved_10_63:54;
  2080. #endif
  2081. } cn30xx;
  2082. struct cvmx_gmxx_bist_cn30xx cn31xx;
  2083. struct cvmx_gmxx_bist_cn30xx cn38xx;
  2084. struct cvmx_gmxx_bist_cn30xx cn38xxp2;
  2085. struct cvmx_gmxx_bist_cn50xx {
  2086. #ifdef __BIG_ENDIAN_BITFIELD
  2087. uint64_t reserved_12_63:52;
  2088. uint64_t status:12;
  2089. #else
  2090. uint64_t status:12;
  2091. uint64_t reserved_12_63:52;
  2092. #endif
  2093. } cn50xx;
  2094. struct cvmx_gmxx_bist_cn52xx {
  2095. #ifdef __BIG_ENDIAN_BITFIELD
  2096. uint64_t reserved_16_63:48;
  2097. uint64_t status:16;
  2098. #else
  2099. uint64_t status:16;
  2100. uint64_t reserved_16_63:48;
  2101. #endif
  2102. } cn52xx;
  2103. struct cvmx_gmxx_bist_cn52xx cn52xxp1;
  2104. struct cvmx_gmxx_bist_cn52xx cn56xx;
  2105. struct cvmx_gmxx_bist_cn52xx cn56xxp1;
  2106. struct cvmx_gmxx_bist_cn58xx {
  2107. #ifdef __BIG_ENDIAN_BITFIELD
  2108. uint64_t reserved_17_63:47;
  2109. uint64_t status:17;
  2110. #else
  2111. uint64_t status:17;
  2112. uint64_t reserved_17_63:47;
  2113. #endif
  2114. } cn58xx;
  2115. struct cvmx_gmxx_bist_cn58xx cn58xxp1;
  2116. struct cvmx_gmxx_bist_s cn61xx;
  2117. struct cvmx_gmxx_bist_s cn63xx;
  2118. struct cvmx_gmxx_bist_s cn63xxp1;
  2119. struct cvmx_gmxx_bist_s cn66xx;
  2120. struct cvmx_gmxx_bist_s cn68xx;
  2121. struct cvmx_gmxx_bist_s cn68xxp1;
  2122. struct cvmx_gmxx_bist_s cnf71xx;
  2123. };
  2124. union cvmx_gmxx_bpid_mapx {
  2125. uint64_t u64;
  2126. struct cvmx_gmxx_bpid_mapx_s {
  2127. #ifdef __BIG_ENDIAN_BITFIELD
  2128. uint64_t reserved_17_63:47;
  2129. uint64_t status:1;
  2130. uint64_t reserved_9_15:7;
  2131. uint64_t val:1;
  2132. uint64_t reserved_6_7:2;
  2133. uint64_t bpid:6;
  2134. #else
  2135. uint64_t bpid:6;
  2136. uint64_t reserved_6_7:2;
  2137. uint64_t val:1;
  2138. uint64_t reserved_9_15:7;
  2139. uint64_t status:1;
  2140. uint64_t reserved_17_63:47;
  2141. #endif
  2142. } s;
  2143. struct cvmx_gmxx_bpid_mapx_s cn68xx;
  2144. struct cvmx_gmxx_bpid_mapx_s cn68xxp1;
  2145. };
  2146. union cvmx_gmxx_bpid_msk {
  2147. uint64_t u64;
  2148. struct cvmx_gmxx_bpid_msk_s {
  2149. #ifdef __BIG_ENDIAN_BITFIELD
  2150. uint64_t reserved_48_63:16;
  2151. uint64_t msk_or:16;
  2152. uint64_t reserved_16_31:16;
  2153. uint64_t msk_and:16;
  2154. #else
  2155. uint64_t msk_and:16;
  2156. uint64_t reserved_16_31:16;
  2157. uint64_t msk_or:16;
  2158. uint64_t reserved_48_63:16;
  2159. #endif
  2160. } s;
  2161. struct cvmx_gmxx_bpid_msk_s cn68xx;
  2162. struct cvmx_gmxx_bpid_msk_s cn68xxp1;
  2163. };
  2164. union cvmx_gmxx_clk_en {
  2165. uint64_t u64;
  2166. struct cvmx_gmxx_clk_en_s {
  2167. #ifdef __BIG_ENDIAN_BITFIELD
  2168. uint64_t reserved_1_63:63;
  2169. uint64_t clk_en:1;
  2170. #else
  2171. uint64_t clk_en:1;
  2172. uint64_t reserved_1_63:63;
  2173. #endif
  2174. } s;
  2175. struct cvmx_gmxx_clk_en_s cn52xx;
  2176. struct cvmx_gmxx_clk_en_s cn52xxp1;
  2177. struct cvmx_gmxx_clk_en_s cn56xx;
  2178. struct cvmx_gmxx_clk_en_s cn56xxp1;
  2179. struct cvmx_gmxx_clk_en_s cn61xx;
  2180. struct cvmx_gmxx_clk_en_s cn63xx;
  2181. struct cvmx_gmxx_clk_en_s cn63xxp1;
  2182. struct cvmx_gmxx_clk_en_s cn66xx;
  2183. struct cvmx_gmxx_clk_en_s cn68xx;
  2184. struct cvmx_gmxx_clk_en_s cn68xxp1;
  2185. struct cvmx_gmxx_clk_en_s cnf71xx;
  2186. };
  2187. union cvmx_gmxx_ebp_dis {
  2188. uint64_t u64;
  2189. struct cvmx_gmxx_ebp_dis_s {
  2190. #ifdef __BIG_ENDIAN_BITFIELD
  2191. uint64_t reserved_16_63:48;
  2192. uint64_t dis:16;
  2193. #else
  2194. uint64_t dis:16;
  2195. uint64_t reserved_16_63:48;
  2196. #endif
  2197. } s;
  2198. struct cvmx_gmxx_ebp_dis_s cn68xx;
  2199. struct cvmx_gmxx_ebp_dis_s cn68xxp1;
  2200. };
  2201. union cvmx_gmxx_ebp_msk {
  2202. uint64_t u64;
  2203. struct cvmx_gmxx_ebp_msk_s {
  2204. #ifdef __BIG_ENDIAN_BITFIELD
  2205. uint64_t reserved_16_63:48;
  2206. uint64_t msk:16;
  2207. #else
  2208. uint64_t msk:16;
  2209. uint64_t reserved_16_63:48;
  2210. #endif
  2211. } s;
  2212. struct cvmx_gmxx_ebp_msk_s cn68xx;
  2213. struct cvmx_gmxx_ebp_msk_s cn68xxp1;
  2214. };
  2215. union cvmx_gmxx_hg2_control {
  2216. uint64_t u64;
  2217. struct cvmx_gmxx_hg2_control_s {
  2218. #ifdef __BIG_ENDIAN_BITFIELD
  2219. uint64_t reserved_19_63:45;
  2220. uint64_t hg2tx_en:1;
  2221. uint64_t hg2rx_en:1;
  2222. uint64_t phys_en:1;
  2223. uint64_t logl_en:16;
  2224. #else
  2225. uint64_t logl_en:16;
  2226. uint64_t phys_en:1;
  2227. uint64_t hg2rx_en:1;
  2228. uint64_t hg2tx_en:1;
  2229. uint64_t reserved_19_63:45;
  2230. #endif
  2231. } s;
  2232. struct cvmx_gmxx_hg2_control_s cn52xx;
  2233. struct cvmx_gmxx_hg2_control_s cn52xxp1;
  2234. struct cvmx_gmxx_hg2_control_s cn56xx;
  2235. struct cvmx_gmxx_hg2_control_s cn61xx;
  2236. struct cvmx_gmxx_hg2_control_s cn63xx;
  2237. struct cvmx_gmxx_hg2_control_s cn63xxp1;
  2238. struct cvmx_gmxx_hg2_control_s cn66xx;
  2239. struct cvmx_gmxx_hg2_control_s cn68xx;
  2240. struct cvmx_gmxx_hg2_control_s cn68xxp1;
  2241. struct cvmx_gmxx_hg2_control_s cnf71xx;
  2242. };
  2243. union cvmx_gmxx_inf_mode {
  2244. uint64_t u64;
  2245. struct cvmx_gmxx_inf_mode_s {
  2246. #ifdef __BIG_ENDIAN_BITFIELD
  2247. uint64_t reserved_20_63:44;
  2248. uint64_t rate:4;
  2249. uint64_t reserved_12_15:4;
  2250. uint64_t speed:4;
  2251. uint64_t reserved_7_7:1;
  2252. uint64_t mode:3;
  2253. uint64_t reserved_3_3:1;
  2254. uint64_t p0mii:1;
  2255. uint64_t en:1;
  2256. uint64_t type:1;
  2257. #else
  2258. uint64_t type:1;
  2259. uint64_t en:1;
  2260. uint64_t p0mii:1;
  2261. uint64_t reserved_3_3:1;
  2262. uint64_t mode:3;
  2263. uint64_t reserved_7_7:1;
  2264. uint64_t speed:4;
  2265. uint64_t reserved_12_15:4;
  2266. uint64_t rate:4;
  2267. uint64_t reserved_20_63:44;
  2268. #endif
  2269. } s;
  2270. struct cvmx_gmxx_inf_mode_cn30xx {
  2271. #ifdef __BIG_ENDIAN_BITFIELD
  2272. uint64_t reserved_3_63:61;
  2273. uint64_t p0mii:1;
  2274. uint64_t en:1;
  2275. uint64_t type:1;
  2276. #else
  2277. uint64_t type:1;
  2278. uint64_t en:1;
  2279. uint64_t p0mii:1;
  2280. uint64_t reserved_3_63:61;
  2281. #endif
  2282. } cn30xx;
  2283. struct cvmx_gmxx_inf_mode_cn31xx {
  2284. #ifdef __BIG_ENDIAN_BITFIELD
  2285. uint64_t reserved_2_63:62;
  2286. uint64_t en:1;
  2287. uint64_t type:1;
  2288. #else
  2289. uint64_t type:1;
  2290. uint64_t en:1;
  2291. uint64_t reserved_2_63:62;
  2292. #endif
  2293. } cn31xx;
  2294. struct cvmx_gmxx_inf_mode_cn31xx cn38xx;
  2295. struct cvmx_gmxx_inf_mode_cn31xx cn38xxp2;
  2296. struct cvmx_gmxx_inf_mode_cn30xx cn50xx;
  2297. struct cvmx_gmxx_inf_mode_cn52xx {
  2298. #ifdef __BIG_ENDIAN_BITFIELD
  2299. uint64_t reserved_10_63:54;
  2300. uint64_t speed:2;
  2301. uint64_t reserved_6_7:2;
  2302. uint64_t mode:2;
  2303. uint64_t reserved_2_3:2;
  2304. uint64_t en:1;
  2305. uint64_t type:1;
  2306. #else
  2307. uint64_t type:1;
  2308. uint64_t en:1;
  2309. uint64_t reserved_2_3:2;
  2310. uint64_t mode:2;
  2311. uint64_t reserved_6_7:2;
  2312. uint64_t speed:2;
  2313. uint64_t reserved_10_63:54;
  2314. #endif
  2315. } cn52xx;
  2316. struct cvmx_gmxx_inf_mode_cn52xx cn52xxp1;
  2317. struct cvmx_gmxx_inf_mode_cn52xx cn56xx;
  2318. struct cvmx_gmxx_inf_mode_cn52xx cn56xxp1;
  2319. struct cvmx_gmxx_inf_mode_cn31xx cn58xx;
  2320. struct cvmx_gmxx_inf_mode_cn31xx cn58xxp1;
  2321. struct cvmx_gmxx_inf_mode_cn61xx {
  2322. #ifdef __BIG_ENDIAN_BITFIELD
  2323. uint64_t reserved_12_63:52;
  2324. uint64_t speed:4;
  2325. uint64_t reserved_5_7:3;
  2326. uint64_t mode:1;
  2327. uint64_t reserved_2_3:2;
  2328. uint64_t en:1;
  2329. uint64_t type:1;
  2330. #else
  2331. uint64_t type:1;
  2332. uint64_t en:1;
  2333. uint64_t reserved_2_3:2;
  2334. uint64_t mode:1;
  2335. uint64_t reserved_5_7:3;
  2336. uint64_t speed:4;
  2337. uint64_t reserved_12_63:52;
  2338. #endif
  2339. } cn61xx;
  2340. struct cvmx_gmxx_inf_mode_cn61xx cn63xx;
  2341. struct cvmx_gmxx_inf_mode_cn61xx cn63xxp1;
  2342. struct cvmx_gmxx_inf_mode_cn66xx {
  2343. #ifdef __BIG_ENDIAN_BITFIELD
  2344. uint64_t reserved_20_63:44;
  2345. uint64_t rate:4;
  2346. uint64_t reserved_12_15:4;
  2347. uint64_t speed:4;
  2348. uint64_t reserved_5_7:3;
  2349. uint64_t mode:1;
  2350. uint64_t reserved_2_3:2;
  2351. uint64_t en:1;
  2352. uint64_t type:1;
  2353. #else
  2354. uint64_t type:1;
  2355. uint64_t en:1;
  2356. uint64_t reserved_2_3:2;
  2357. uint64_t mode:1;
  2358. uint64_t reserved_5_7:3;
  2359. uint64_t speed:4;
  2360. uint64_t reserved_12_15:4;
  2361. uint64_t rate:4;
  2362. uint64_t reserved_20_63:44;
  2363. #endif
  2364. } cn66xx;
  2365. struct cvmx_gmxx_inf_mode_cn68xx {
  2366. #ifdef __BIG_ENDIAN_BITFIELD
  2367. uint64_t reserved_12_63:52;
  2368. uint64_t speed:4;
  2369. uint64_t reserved_7_7:1;
  2370. uint64_t mode:3;
  2371. uint64_t reserved_2_3:2;
  2372. uint64_t en:1;
  2373. uint64_t type:1;
  2374. #else
  2375. uint64_t type:1;
  2376. uint64_t en:1;
  2377. uint64_t reserved_2_3:2;
  2378. uint64_t mode:3;
  2379. uint64_t reserved_7_7:1;
  2380. uint64_t speed:4;
  2381. uint64_t reserved_12_63:52;
  2382. #endif
  2383. } cn68xx;
  2384. struct cvmx_gmxx_inf_mode_cn68xx cn68xxp1;
  2385. struct cvmx_gmxx_inf_mode_cn61xx cnf71xx;
  2386. };
  2387. union cvmx_gmxx_nxa_adr {
  2388. uint64_t u64;
  2389. struct cvmx_gmxx_nxa_adr_s {
  2390. #ifdef __BIG_ENDIAN_BITFIELD
  2391. uint64_t reserved_23_63:41;
  2392. uint64_t pipe:7;
  2393. uint64_t reserved_6_15:10;
  2394. uint64_t prt:6;
  2395. #else
  2396. uint64_t prt:6;
  2397. uint64_t reserved_6_15:10;
  2398. uint64_t pipe:7;
  2399. uint64_t reserved_23_63:41;
  2400. #endif
  2401. } s;
  2402. struct cvmx_gmxx_nxa_adr_cn30xx {
  2403. #ifdef __BIG_ENDIAN_BITFIELD
  2404. uint64_t reserved_6_63:58;
  2405. uint64_t prt:6;
  2406. #else
  2407. uint64_t prt:6;
  2408. uint64_t reserved_6_63:58;
  2409. #endif
  2410. } cn30xx;
  2411. struct cvmx_gmxx_nxa_adr_cn30xx cn31xx;
  2412. struct cvmx_gmxx_nxa_adr_cn30xx cn38xx;
  2413. struct cvmx_gmxx_nxa_adr_cn30xx cn38xxp2;
  2414. struct cvmx_gmxx_nxa_adr_cn30xx cn50xx;
  2415. struct cvmx_gmxx_nxa_adr_cn30xx cn52xx;
  2416. struct cvmx_gmxx_nxa_adr_cn30xx cn52xxp1;
  2417. struct cvmx_gmxx_nxa_adr_cn30xx cn56xx;
  2418. struct cvmx_gmxx_nxa_adr_cn30xx cn56xxp1;
  2419. struct cvmx_gmxx_nxa_adr_cn30xx cn58xx;
  2420. struct cvmx_gmxx_nxa_adr_cn30xx cn58xxp1;
  2421. struct cvmx_gmxx_nxa_adr_cn30xx cn61xx;
  2422. struct cvmx_gmxx_nxa_adr_cn30xx cn63xx;
  2423. struct cvmx_gmxx_nxa_adr_cn30xx cn63xxp1;
  2424. struct cvmx_gmxx_nxa_adr_cn30xx cn66xx;
  2425. struct cvmx_gmxx_nxa_adr_s cn68xx;
  2426. struct cvmx_gmxx_nxa_adr_s cn68xxp1;
  2427. struct cvmx_gmxx_nxa_adr_cn30xx cnf71xx;
  2428. };
  2429. union cvmx_gmxx_pipe_status {
  2430. uint64_t u64;
  2431. struct cvmx_gmxx_pipe_status_s {
  2432. #ifdef __BIG_ENDIAN_BITFIELD
  2433. uint64_t reserved_20_63:44;
  2434. uint64_t ovr:4;
  2435. uint64_t reserved_12_15:4;
  2436. uint64_t bp:4;
  2437. uint64_t reserved_4_7:4;
  2438. uint64_t stop:4;
  2439. #else
  2440. uint64_t stop:4;
  2441. uint64_t reserved_4_7:4;
  2442. uint64_t bp:4;
  2443. uint64_t reserved_12_15:4;
  2444. uint64_t ovr:4;
  2445. uint64_t reserved_20_63:44;
  2446. #endif
  2447. } s;
  2448. struct cvmx_gmxx_pipe_status_s cn68xx;
  2449. struct cvmx_gmxx_pipe_status_s cn68xxp1;
  2450. };
  2451. union cvmx_gmxx_prtx_cbfc_ctl {
  2452. uint64_t u64;
  2453. struct cvmx_gmxx_prtx_cbfc_ctl_s {
  2454. #ifdef __BIG_ENDIAN_BITFIELD
  2455. uint64_t phys_en:16;
  2456. uint64_t logl_en:16;
  2457. uint64_t phys_bp:16;
  2458. uint64_t reserved_4_15:12;
  2459. uint64_t bck_en:1;
  2460. uint64_t drp_en:1;
  2461. uint64_t tx_en:1;
  2462. uint64_t rx_en:1;
  2463. #else
  2464. uint64_t rx_en:1;
  2465. uint64_t tx_en:1;
  2466. uint64_t drp_en:1;
  2467. uint64_t bck_en:1;
  2468. uint64_t reserved_4_15:12;
  2469. uint64_t phys_bp:16;
  2470. uint64_t logl_en:16;
  2471. uint64_t phys_en:16;
  2472. #endif
  2473. } s;
  2474. struct cvmx_gmxx_prtx_cbfc_ctl_s cn52xx;
  2475. struct cvmx_gmxx_prtx_cbfc_ctl_s cn56xx;
  2476. struct cvmx_gmxx_prtx_cbfc_ctl_s cn61xx;
  2477. struct cvmx_gmxx_prtx_cbfc_ctl_s cn63xx;
  2478. struct cvmx_gmxx_prtx_cbfc_ctl_s cn63xxp1;
  2479. struct cvmx_gmxx_prtx_cbfc_ctl_s cn66xx;
  2480. struct cvmx_gmxx_prtx_cbfc_ctl_s cn68xx;
  2481. struct cvmx_gmxx_prtx_cbfc_ctl_s cn68xxp1;
  2482. struct cvmx_gmxx_prtx_cbfc_ctl_s cnf71xx;
  2483. };
  2484. union cvmx_gmxx_prtx_cfg {
  2485. uint64_t u64;
  2486. struct cvmx_gmxx_prtx_cfg_s {
  2487. #ifdef __BIG_ENDIAN_BITFIELD
  2488. uint64_t reserved_22_63:42;
  2489. uint64_t pknd:6;
  2490. uint64_t reserved_14_15:2;
  2491. uint64_t tx_idle:1;
  2492. uint64_t rx_idle:1;
  2493. uint64_t reserved_9_11:3;
  2494. uint64_t speed_msb:1;
  2495. uint64_t reserved_4_7:4;
  2496. uint64_t slottime:1;
  2497. uint64_t duplex:1;
  2498. uint64_t speed:1;
  2499. uint64_t en:1;
  2500. #else
  2501. uint64_t en:1;
  2502. uint64_t speed:1;
  2503. uint64_t duplex:1;
  2504. uint64_t slottime:1;
  2505. uint64_t reserved_4_7:4;
  2506. uint64_t speed_msb:1;
  2507. uint64_t reserved_9_11:3;
  2508. uint64_t rx_idle:1;
  2509. uint64_t tx_idle:1;
  2510. uint64_t reserved_14_15:2;
  2511. uint64_t pknd:6;
  2512. uint64_t reserved_22_63:42;
  2513. #endif
  2514. } s;
  2515. struct cvmx_gmxx_prtx_cfg_cn30xx {
  2516. #ifdef __BIG_ENDIAN_BITFIELD
  2517. uint64_t reserved_4_63:60;
  2518. uint64_t slottime:1;
  2519. uint64_t duplex:1;
  2520. uint64_t speed:1;
  2521. uint64_t en:1;
  2522. #else
  2523. uint64_t en:1;
  2524. uint64_t speed:1;
  2525. uint64_t duplex:1;
  2526. uint64_t slottime:1;
  2527. uint64_t reserved_4_63:60;
  2528. #endif
  2529. } cn30xx;
  2530. struct cvmx_gmxx_prtx_cfg_cn30xx cn31xx;
  2531. struct cvmx_gmxx_prtx_cfg_cn30xx cn38xx;
  2532. struct cvmx_gmxx_prtx_cfg_cn30xx cn38xxp2;
  2533. struct cvmx_gmxx_prtx_cfg_cn30xx cn50xx;
  2534. struct cvmx_gmxx_prtx_cfg_cn52xx {
  2535. #ifdef __BIG_ENDIAN_BITFIELD
  2536. uint64_t reserved_14_63:50;
  2537. uint64_t tx_idle:1;
  2538. uint64_t rx_idle:1;
  2539. uint64_t reserved_9_11:3;
  2540. uint64_t speed_msb:1;
  2541. uint64_t reserved_4_7:4;
  2542. uint64_t slottime:1;
  2543. uint64_t duplex:1;
  2544. uint64_t speed:1;
  2545. uint64_t en:1;
  2546. #else
  2547. uint64_t en:1;
  2548. uint64_t speed:1;
  2549. uint64_t duplex:1;
  2550. uint64_t slottime:1;
  2551. uint64_t reserved_4_7:4;
  2552. uint64_t speed_msb:1;
  2553. uint64_t reserved_9_11:3;
  2554. uint64_t rx_idle:1;
  2555. uint64_t tx_idle:1;
  2556. uint64_t reserved_14_63:50;
  2557. #endif
  2558. } cn52xx;
  2559. struct cvmx_gmxx_prtx_cfg_cn52xx cn52xxp1;
  2560. struct cvmx_gmxx_prtx_cfg_cn52xx cn56xx;
  2561. struct cvmx_gmxx_prtx_cfg_cn52xx cn56xxp1;
  2562. struct cvmx_gmxx_prtx_cfg_cn30xx cn58xx;
  2563. struct cvmx_gmxx_prtx_cfg_cn30xx cn58xxp1;
  2564. struct cvmx_gmxx_prtx_cfg_cn52xx cn61xx;
  2565. struct cvmx_gmxx_prtx_cfg_cn52xx cn63xx;
  2566. struct cvmx_gmxx_prtx_cfg_cn52xx cn63xxp1;
  2567. struct cvmx_gmxx_prtx_cfg_cn52xx cn66xx;
  2568. struct cvmx_gmxx_prtx_cfg_s cn68xx;
  2569. struct cvmx_gmxx_prtx_cfg_s cn68xxp1;
  2570. struct cvmx_gmxx_prtx_cfg_cn52xx cnf71xx;
  2571. };
  2572. union cvmx_gmxx_rxx_adr_cam0 {
  2573. uint64_t u64;
  2574. struct cvmx_gmxx_rxx_adr_cam0_s {
  2575. #ifdef __BIG_ENDIAN_BITFIELD
  2576. uint64_t adr:64;
  2577. #else
  2578. uint64_t adr:64;
  2579. #endif
  2580. } s;
  2581. struct cvmx_gmxx_rxx_adr_cam0_s cn30xx;
  2582. struct cvmx_gmxx_rxx_adr_cam0_s cn31xx;
  2583. struct cvmx_gmxx_rxx_adr_cam0_s cn38xx;
  2584. struct cvmx_gmxx_rxx_adr_cam0_s cn38xxp2;
  2585. struct cvmx_gmxx_rxx_adr_cam0_s cn50xx;
  2586. struct cvmx_gmxx_rxx_adr_cam0_s cn52xx;
  2587. struct cvmx_gmxx_rxx_adr_cam0_s cn52xxp1;
  2588. struct cvmx_gmxx_rxx_adr_cam0_s cn56xx;
  2589. struct cvmx_gmxx_rxx_adr_cam0_s cn56xxp1;
  2590. struct cvmx_gmxx_rxx_adr_cam0_s cn58xx;
  2591. struct cvmx_gmxx_rxx_adr_cam0_s cn58xxp1;
  2592. struct cvmx_gmxx_rxx_adr_cam0_s cn61xx;
  2593. struct cvmx_gmxx_rxx_adr_cam0_s cn63xx;
  2594. struct cvmx_gmxx_rxx_adr_cam0_s cn63xxp1;
  2595. struct cvmx_gmxx_rxx_adr_cam0_s cn66xx;
  2596. struct cvmx_gmxx_rxx_adr_cam0_s cn68xx;
  2597. struct cvmx_gmxx_rxx_adr_cam0_s cn68xxp1;
  2598. struct cvmx_gmxx_rxx_adr_cam0_s cnf71xx;
  2599. };
  2600. union cvmx_gmxx_rxx_adr_cam1 {
  2601. uint64_t u64;
  2602. struct cvmx_gmxx_rxx_adr_cam1_s {
  2603. #ifdef __BIG_ENDIAN_BITFIELD
  2604. uint64_t adr:64;
  2605. #else
  2606. uint64_t adr:64;
  2607. #endif
  2608. } s;
  2609. struct cvmx_gmxx_rxx_adr_cam1_s cn30xx;
  2610. struct cvmx_gmxx_rxx_adr_cam1_s cn31xx;
  2611. struct cvmx_gmxx_rxx_adr_cam1_s cn38xx;
  2612. struct cvmx_gmxx_rxx_adr_cam1_s cn38xxp2;
  2613. struct cvmx_gmxx_rxx_adr_cam1_s cn50xx;
  2614. struct cvmx_gmxx_rxx_adr_cam1_s cn52xx;
  2615. struct cvmx_gmxx_rxx_adr_cam1_s cn52xxp1;
  2616. struct cvmx_gmxx_rxx_adr_cam1_s cn56xx;
  2617. struct cvmx_gmxx_rxx_adr_cam1_s cn56xxp1;
  2618. struct cvmx_gmxx_rxx_adr_cam1_s cn58xx;
  2619. struct cvmx_gmxx_rxx_adr_cam1_s cn58xxp1;
  2620. struct cvmx_gmxx_rxx_adr_cam1_s cn61xx;
  2621. struct cvmx_gmxx_rxx_adr_cam1_s cn63xx;
  2622. struct cvmx_gmxx_rxx_adr_cam1_s cn63xxp1;
  2623. struct cvmx_gmxx_rxx_adr_cam1_s cn66xx;
  2624. struct cvmx_gmxx_rxx_adr_cam1_s cn68xx;
  2625. struct cvmx_gmxx_rxx_adr_cam1_s cn68xxp1;
  2626. struct cvmx_gmxx_rxx_adr_cam1_s cnf71xx;
  2627. };
  2628. union cvmx_gmxx_rxx_adr_cam2 {
  2629. uint64_t u64;
  2630. struct cvmx_gmxx_rxx_adr_cam2_s {
  2631. #ifdef __BIG_ENDIAN_BITFIELD
  2632. uint64_t adr:64;
  2633. #else
  2634. uint64_t adr:64;
  2635. #endif
  2636. } s;
  2637. struct cvmx_gmxx_rxx_adr_cam2_s cn30xx;
  2638. struct cvmx_gmxx_rxx_adr_cam2_s cn31xx;
  2639. struct cvmx_gmxx_rxx_adr_cam2_s cn38xx;
  2640. struct cvmx_gmxx_rxx_adr_cam2_s cn38xxp2;
  2641. struct cvmx_gmxx_rxx_adr_cam2_s cn50xx;
  2642. struct cvmx_gmxx_rxx_adr_cam2_s cn52xx;
  2643. struct cvmx_gmxx_rxx_adr_cam2_s cn52xxp1;
  2644. struct cvmx_gmxx_rxx_adr_cam2_s cn56xx;
  2645. struct cvmx_gmxx_rxx_adr_cam2_s cn56xxp1;
  2646. struct cvmx_gmxx_rxx_adr_cam2_s cn58xx;
  2647. struct cvmx_gmxx_rxx_adr_cam2_s cn58xxp1;
  2648. struct cvmx_gmxx_rxx_adr_cam2_s cn61xx;
  2649. struct cvmx_gmxx_rxx_adr_cam2_s cn63xx;
  2650. struct cvmx_gmxx_rxx_adr_cam2_s cn63xxp1;
  2651. struct cvmx_gmxx_rxx_adr_cam2_s cn66xx;
  2652. struct cvmx_gmxx_rxx_adr_cam2_s cn68xx;
  2653. struct cvmx_gmxx_rxx_adr_cam2_s cn68xxp1;
  2654. struct cvmx_gmxx_rxx_adr_cam2_s cnf71xx;
  2655. };
  2656. union cvmx_gmxx_rxx_adr_cam3 {
  2657. uint64_t u64;
  2658. struct cvmx_gmxx_rxx_adr_cam3_s {
  2659. #ifdef __BIG_ENDIAN_BITFIELD
  2660. uint64_t adr:64;
  2661. #else
  2662. uint64_t adr:64;
  2663. #endif
  2664. } s;
  2665. struct cvmx_gmxx_rxx_adr_cam3_s cn30xx;
  2666. struct cvmx_gmxx_rxx_adr_cam3_s cn31xx;
  2667. struct cvmx_gmxx_rxx_adr_cam3_s cn38xx;
  2668. struct cvmx_gmxx_rxx_adr_cam3_s cn38xxp2;
  2669. struct cvmx_gmxx_rxx_adr_cam3_s cn50xx;
  2670. struct cvmx_gmxx_rxx_adr_cam3_s cn52xx;
  2671. struct cvmx_gmxx_rxx_adr_cam3_s cn52xxp1;
  2672. struct cvmx_gmxx_rxx_adr_cam3_s cn56xx;
  2673. struct cvmx_gmxx_rxx_adr_cam3_s cn56xxp1;
  2674. struct cvmx_gmxx_rxx_adr_cam3_s cn58xx;
  2675. struct cvmx_gmxx_rxx_adr_cam3_s cn58xxp1;
  2676. struct cvmx_gmxx_rxx_adr_cam3_s cn61xx;
  2677. struct cvmx_gmxx_rxx_adr_cam3_s cn63xx;
  2678. struct cvmx_gmxx_rxx_adr_cam3_s cn63xxp1;
  2679. struct cvmx_gmxx_rxx_adr_cam3_s cn66xx;
  2680. struct cvmx_gmxx_rxx_adr_cam3_s cn68xx;
  2681. struct cvmx_gmxx_rxx_adr_cam3_s cn68xxp1;
  2682. struct cvmx_gmxx_rxx_adr_cam3_s cnf71xx;
  2683. };
  2684. union cvmx_gmxx_rxx_adr_cam4 {
  2685. uint64_t u64;
  2686. struct cvmx_gmxx_rxx_adr_cam4_s {
  2687. #ifdef __BIG_ENDIAN_BITFIELD
  2688. uint64_t adr:64;
  2689. #else
  2690. uint64_t adr:64;
  2691. #endif
  2692. } s;
  2693. struct cvmx_gmxx_rxx_adr_cam4_s cn30xx;
  2694. struct cvmx_gmxx_rxx_adr_cam4_s cn31xx;
  2695. struct cvmx_gmxx_rxx_adr_cam4_s cn38xx;
  2696. struct cvmx_gmxx_rxx_adr_cam4_s cn38xxp2;
  2697. struct cvmx_gmxx_rxx_adr_cam4_s cn50xx;
  2698. struct cvmx_gmxx_rxx_adr_cam4_s cn52xx;
  2699. struct cvmx_gmxx_rxx_adr_cam4_s cn52xxp1;
  2700. struct cvmx_gmxx_rxx_adr_cam4_s cn56xx;
  2701. struct cvmx_gmxx_rxx_adr_cam4_s cn56xxp1;
  2702. struct cvmx_gmxx_rxx_adr_cam4_s cn58xx;
  2703. struct cvmx_gmxx_rxx_adr_cam4_s cn58xxp1;
  2704. struct cvmx_gmxx_rxx_adr_cam4_s cn61xx;
  2705. struct cvmx_gmxx_rxx_adr_cam4_s cn63xx;
  2706. struct cvmx_gmxx_rxx_adr_cam4_s cn63xxp1;
  2707. struct cvmx_gmxx_rxx_adr_cam4_s cn66xx;
  2708. struct cvmx_gmxx_rxx_adr_cam4_s cn68xx;
  2709. struct cvmx_gmxx_rxx_adr_cam4_s cn68xxp1;
  2710. struct cvmx_gmxx_rxx_adr_cam4_s cnf71xx;
  2711. };
  2712. union cvmx_gmxx_rxx_adr_cam5 {
  2713. uint64_t u64;
  2714. struct cvmx_gmxx_rxx_adr_cam5_s {
  2715. #ifdef __BIG_ENDIAN_BITFIELD
  2716. uint64_t adr:64;
  2717. #else
  2718. uint64_t adr:64;
  2719. #endif
  2720. } s;
  2721. struct cvmx_gmxx_rxx_adr_cam5_s cn30xx;
  2722. struct cvmx_gmxx_rxx_adr_cam5_s cn31xx;
  2723. struct cvmx_gmxx_rxx_adr_cam5_s cn38xx;
  2724. struct cvmx_gmxx_rxx_adr_cam5_s cn38xxp2;
  2725. struct cvmx_gmxx_rxx_adr_cam5_s cn50xx;
  2726. struct cvmx_gmxx_rxx_adr_cam5_s cn52xx;
  2727. struct cvmx_gmxx_rxx_adr_cam5_s cn52xxp1;
  2728. struct cvmx_gmxx_rxx_adr_cam5_s cn56xx;
  2729. struct cvmx_gmxx_rxx_adr_cam5_s cn56xxp1;
  2730. struct cvmx_gmxx_rxx_adr_cam5_s cn58xx;
  2731. struct cvmx_gmxx_rxx_adr_cam5_s cn58xxp1;
  2732. struct cvmx_gmxx_rxx_adr_cam5_s cn61xx;
  2733. struct cvmx_gmxx_rxx_adr_cam5_s cn63xx;
  2734. struct cvmx_gmxx_rxx_adr_cam5_s cn63xxp1;
  2735. struct cvmx_gmxx_rxx_adr_cam5_s cn66xx;
  2736. struct cvmx_gmxx_rxx_adr_cam5_s cn68xx;
  2737. struct cvmx_gmxx_rxx_adr_cam5_s cn68xxp1;
  2738. struct cvmx_gmxx_rxx_adr_cam5_s cnf71xx;
  2739. };
  2740. union cvmx_gmxx_rxx_adr_cam_all_en {
  2741. uint64_t u64;
  2742. struct cvmx_gmxx_rxx_adr_cam_all_en_s {
  2743. #ifdef __BIG_ENDIAN_BITFIELD
  2744. uint64_t reserved_32_63:32;
  2745. uint64_t en:32;
  2746. #else
  2747. uint64_t en:32;
  2748. uint64_t reserved_32_63:32;
  2749. #endif
  2750. } s;
  2751. struct cvmx_gmxx_rxx_adr_cam_all_en_s cn61xx;
  2752. struct cvmx_gmxx_rxx_adr_cam_all_en_s cn66xx;
  2753. struct cvmx_gmxx_rxx_adr_cam_all_en_s cn68xx;
  2754. struct cvmx_gmxx_rxx_adr_cam_all_en_s cnf71xx;
  2755. };
  2756. union cvmx_gmxx_rxx_adr_cam_en {
  2757. uint64_t u64;
  2758. struct cvmx_gmxx_rxx_adr_cam_en_s {
  2759. #ifdef __BIG_ENDIAN_BITFIELD
  2760. uint64_t reserved_8_63:56;
  2761. uint64_t en:8;
  2762. #else
  2763. uint64_t en:8;
  2764. uint64_t reserved_8_63:56;
  2765. #endif
  2766. } s;
  2767. struct cvmx_gmxx_rxx_adr_cam_en_s cn30xx;
  2768. struct cvmx_gmxx_rxx_adr_cam_en_s cn31xx;
  2769. struct cvmx_gmxx_rxx_adr_cam_en_s cn38xx;
  2770. struct cvmx_gmxx_rxx_adr_cam_en_s cn38xxp2;
  2771. struct cvmx_gmxx_rxx_adr_cam_en_s cn50xx;
  2772. struct cvmx_gmxx_rxx_adr_cam_en_s cn52xx;
  2773. struct cvmx_gmxx_rxx_adr_cam_en_s cn52xxp1;
  2774. struct cvmx_gmxx_rxx_adr_cam_en_s cn56xx;
  2775. struct cvmx_gmxx_rxx_adr_cam_en_s cn56xxp1;
  2776. struct cvmx_gmxx_rxx_adr_cam_en_s cn58xx;
  2777. struct cvmx_gmxx_rxx_adr_cam_en_s cn58xxp1;
  2778. struct cvmx_gmxx_rxx_adr_cam_en_s cn61xx;
  2779. struct cvmx_gmxx_rxx_adr_cam_en_s cn63xx;
  2780. struct cvmx_gmxx_rxx_adr_cam_en_s cn63xxp1;
  2781. struct cvmx_gmxx_rxx_adr_cam_en_s cn66xx;
  2782. struct cvmx_gmxx_rxx_adr_cam_en_s cn68xx;
  2783. struct cvmx_gmxx_rxx_adr_cam_en_s cn68xxp1;
  2784. struct cvmx_gmxx_rxx_adr_cam_en_s cnf71xx;
  2785. };
  2786. union cvmx_gmxx_rxx_adr_ctl {
  2787. uint64_t u64;
  2788. struct cvmx_gmxx_rxx_adr_ctl_s {
  2789. #ifdef __BIG_ENDIAN_BITFIELD
  2790. uint64_t reserved_4_63:60;
  2791. uint64_t cam_mode:1;
  2792. uint64_t mcst:2;
  2793. uint64_t bcst:1;
  2794. #else
  2795. uint64_t bcst:1;
  2796. uint64_t mcst:2;
  2797. uint64_t cam_mode:1;
  2798. uint64_t reserved_4_63:60;
  2799. #endif
  2800. } s;
  2801. struct cvmx_gmxx_rxx_adr_ctl_s cn30xx;
  2802. struct cvmx_gmxx_rxx_adr_ctl_s cn31xx;
  2803. struct cvmx_gmxx_rxx_adr_ctl_s cn38xx;
  2804. struct cvmx_gmxx_rxx_adr_ctl_s cn38xxp2;
  2805. struct cvmx_gmxx_rxx_adr_ctl_s cn50xx;
  2806. struct cvmx_gmxx_rxx_adr_ctl_s cn52xx;
  2807. struct cvmx_gmxx_rxx_adr_ctl_s cn52xxp1;
  2808. struct cvmx_gmxx_rxx_adr_ctl_s cn56xx;
  2809. struct cvmx_gmxx_rxx_adr_ctl_s cn56xxp1;
  2810. struct cvmx_gmxx_rxx_adr_ctl_s cn58xx;
  2811. struct cvmx_gmxx_rxx_adr_ctl_s cn58xxp1;
  2812. struct cvmx_gmxx_rxx_adr_ctl_s cn61xx;
  2813. struct cvmx_gmxx_rxx_adr_ctl_s cn63xx;
  2814. struct cvmx_gmxx_rxx_adr_ctl_s cn63xxp1;
  2815. struct cvmx_gmxx_rxx_adr_ctl_s cn66xx;
  2816. struct cvmx_gmxx_rxx_adr_ctl_s cn68xx;
  2817. struct cvmx_gmxx_rxx_adr_ctl_s cn68xxp1;
  2818. struct cvmx_gmxx_rxx_adr_ctl_s cnf71xx;
  2819. };
  2820. union cvmx_gmxx_rxx_decision {
  2821. uint64_t u64;
  2822. struct cvmx_gmxx_rxx_decision_s {
  2823. #ifdef __BIG_ENDIAN_BITFIELD
  2824. uint64_t reserved_5_63:59;
  2825. uint64_t cnt:5;
  2826. #else
  2827. uint64_t cnt:5;
  2828. uint64_t reserved_5_63:59;
  2829. #endif
  2830. } s;
  2831. struct cvmx_gmxx_rxx_decision_s cn30xx;
  2832. struct cvmx_gmxx_rxx_decision_s cn31xx;
  2833. struct cvmx_gmxx_rxx_decision_s cn38xx;
  2834. struct cvmx_gmxx_rxx_decision_s cn38xxp2;
  2835. struct cvmx_gmxx_rxx_decision_s cn50xx;
  2836. struct cvmx_gmxx_rxx_decision_s cn52xx;
  2837. struct cvmx_gmxx_rxx_decision_s cn52xxp1;
  2838. struct cvmx_gmxx_rxx_decision_s cn56xx;
  2839. struct cvmx_gmxx_rxx_decision_s cn56xxp1;
  2840. struct cvmx_gmxx_rxx_decision_s cn58xx;
  2841. struct cvmx_gmxx_rxx_decision_s cn58xxp1;
  2842. struct cvmx_gmxx_rxx_decision_s cn61xx;
  2843. struct cvmx_gmxx_rxx_decision_s cn63xx;
  2844. struct cvmx_gmxx_rxx_decision_s cn63xxp1;
  2845. struct cvmx_gmxx_rxx_decision_s cn66xx;
  2846. struct cvmx_gmxx_rxx_decision_s cn68xx;
  2847. struct cvmx_gmxx_rxx_decision_s cn68xxp1;
  2848. struct cvmx_gmxx_rxx_decision_s cnf71xx;
  2849. };
  2850. union cvmx_gmxx_rxx_frm_chk {
  2851. uint64_t u64;
  2852. struct cvmx_gmxx_rxx_frm_chk_s {
  2853. #ifdef __BIG_ENDIAN_BITFIELD
  2854. uint64_t reserved_10_63:54;
  2855. uint64_t niberr:1;
  2856. uint64_t skperr:1;
  2857. uint64_t rcverr:1;
  2858. uint64_t lenerr:1;
  2859. uint64_t alnerr:1;
  2860. uint64_t fcserr:1;
  2861. uint64_t jabber:1;
  2862. uint64_t maxerr:1;
  2863. uint64_t carext:1;
  2864. uint64_t minerr:1;
  2865. #else
  2866. uint64_t minerr:1;
  2867. uint64_t carext:1;
  2868. uint64_t maxerr:1;
  2869. uint64_t jabber:1;
  2870. uint64_t fcserr:1;
  2871. uint64_t alnerr:1;
  2872. uint64_t lenerr:1;
  2873. uint64_t rcverr:1;
  2874. uint64_t skperr:1;
  2875. uint64_t niberr:1;
  2876. uint64_t reserved_10_63:54;
  2877. #endif
  2878. } s;
  2879. struct cvmx_gmxx_rxx_frm_chk_s cn30xx;
  2880. struct cvmx_gmxx_rxx_frm_chk_s cn31xx;
  2881. struct cvmx_gmxx_rxx_frm_chk_s cn38xx;
  2882. struct cvmx_gmxx_rxx_frm_chk_s cn38xxp2;
  2883. struct cvmx_gmxx_rxx_frm_chk_cn50xx {
  2884. #ifdef __BIG_ENDIAN_BITFIELD
  2885. uint64_t reserved_10_63:54;
  2886. uint64_t niberr:1;
  2887. uint64_t skperr:1;
  2888. uint64_t rcverr:1;
  2889. uint64_t reserved_6_6:1;
  2890. uint64_t alnerr:1;
  2891. uint64_t fcserr:1;
  2892. uint64_t jabber:1;
  2893. uint64_t reserved_2_2:1;
  2894. uint64_t carext:1;
  2895. uint64_t reserved_0_0:1;
  2896. #else
  2897. uint64_t reserved_0_0:1;
  2898. uint64_t carext:1;
  2899. uint64_t reserved_2_2:1;
  2900. uint64_t jabber:1;
  2901. uint64_t fcserr:1;
  2902. uint64_t alnerr:1;
  2903. uint64_t reserved_6_6:1;
  2904. uint64_t rcverr:1;
  2905. uint64_t skperr:1;
  2906. uint64_t niberr:1;
  2907. uint64_t reserved_10_63:54;
  2908. #endif
  2909. } cn50xx;
  2910. struct cvmx_gmxx_rxx_frm_chk_cn52xx {
  2911. #ifdef __BIG_ENDIAN_BITFIELD
  2912. uint64_t reserved_9_63:55;
  2913. uint64_t skperr:1;
  2914. uint64_t rcverr:1;
  2915. uint64_t reserved_5_6:2;
  2916. uint64_t fcserr:1;
  2917. uint64_t jabber:1;
  2918. uint64_t reserved_2_2:1;
  2919. uint64_t carext:1;
  2920. uint64_t reserved_0_0:1;
  2921. #else
  2922. uint64_t reserved_0_0:1;
  2923. uint64_t carext:1;
  2924. uint64_t reserved_2_2:1;
  2925. uint64_t jabber:1;
  2926. uint64_t fcserr:1;
  2927. uint64_t reserved_5_6:2;
  2928. uint64_t rcverr:1;
  2929. uint64_t skperr:1;
  2930. uint64_t reserved_9_63:55;
  2931. #endif
  2932. } cn52xx;
  2933. struct cvmx_gmxx_rxx_frm_chk_cn52xx cn52xxp1;
  2934. struct cvmx_gmxx_rxx_frm_chk_cn52xx cn56xx;
  2935. struct cvmx_gmxx_rxx_frm_chk_cn52xx cn56xxp1;
  2936. struct cvmx_gmxx_rxx_frm_chk_s cn58xx;
  2937. struct cvmx_gmxx_rxx_frm_chk_s cn58xxp1;
  2938. struct cvmx_gmxx_rxx_frm_chk_cn61xx {
  2939. #ifdef __BIG_ENDIAN_BITFIELD
  2940. uint64_t reserved_9_63:55;
  2941. uint64_t skperr:1;
  2942. uint64_t rcverr:1;
  2943. uint64_t reserved_5_6:2;
  2944. uint64_t fcserr:1;
  2945. uint64_t jabber:1;
  2946. uint64_t reserved_2_2:1;
  2947. uint64_t carext:1;
  2948. uint64_t minerr:1;
  2949. #else
  2950. uint64_t minerr:1;
  2951. uint64_t carext:1;
  2952. uint64_t reserved_2_2:1;
  2953. uint64_t jabber:1;
  2954. uint64_t fcserr:1;
  2955. uint64_t reserved_5_6:2;
  2956. uint64_t rcverr:1;
  2957. uint64_t skperr:1;
  2958. uint64_t reserved_9_63:55;
  2959. #endif
  2960. } cn61xx;
  2961. struct cvmx_gmxx_rxx_frm_chk_cn61xx cn63xx;
  2962. struct cvmx_gmxx_rxx_frm_chk_cn61xx cn63xxp1;
  2963. struct cvmx_gmxx_rxx_frm_chk_cn61xx cn66xx;
  2964. struct cvmx_gmxx_rxx_frm_chk_cn61xx cn68xx;
  2965. struct cvmx_gmxx_rxx_frm_chk_cn61xx cn68xxp1;
  2966. struct cvmx_gmxx_rxx_frm_chk_cn61xx cnf71xx;
  2967. };
  2968. union cvmx_gmxx_rxx_frm_ctl {
  2969. uint64_t u64;
  2970. struct cvmx_gmxx_rxx_frm_ctl_s {
  2971. #ifdef __BIG_ENDIAN_BITFIELD
  2972. uint64_t reserved_13_63:51;
  2973. uint64_t ptp_mode:1;
  2974. uint64_t reserved_11_11:1;
  2975. uint64_t null_dis:1;
  2976. uint64_t pre_align:1;
  2977. uint64_t pad_len:1;
  2978. uint64_t vlan_len:1;
  2979. uint64_t pre_free:1;
  2980. uint64_t ctl_smac:1;
  2981. uint64_t ctl_mcst:1;
  2982. uint64_t ctl_bck:1;
  2983. uint64_t ctl_drp:1;
  2984. uint64_t pre_strp:1;
  2985. uint64_t pre_chk:1;
  2986. #else
  2987. uint64_t pre_chk:1;
  2988. uint64_t pre_strp:1;
  2989. uint64_t ctl_drp:1;
  2990. uint64_t ctl_bck:1;
  2991. uint64_t ctl_mcst:1;
  2992. uint64_t ctl_smac:1;
  2993. uint64_t pre_free:1;
  2994. uint64_t vlan_len:1;
  2995. uint64_t pad_len:1;
  2996. uint64_t pre_align:1;
  2997. uint64_t null_dis:1;
  2998. uint64_t reserved_11_11:1;
  2999. uint64_t ptp_mode:1;
  3000. uint64_t reserved_13_63:51;
  3001. #endif
  3002. } s;
  3003. struct cvmx_gmxx_rxx_frm_ctl_cn30xx {
  3004. #ifdef __BIG_ENDIAN_BITFIELD
  3005. uint64_t reserved_9_63:55;
  3006. uint64_t pad_len:1;
  3007. uint64_t vlan_len:1;
  3008. uint64_t pre_free:1;
  3009. uint64_t ctl_smac:1;
  3010. uint64_t ctl_mcst:1;
  3011. uint64_t ctl_bck:1;
  3012. uint64_t ctl_drp:1;
  3013. uint64_t pre_strp:1;
  3014. uint64_t pre_chk:1;
  3015. #else
  3016. uint64_t pre_chk:1;
  3017. uint64_t pre_strp:1;
  3018. uint64_t ctl_drp:1;
  3019. uint64_t ctl_bck:1;
  3020. uint64_t ctl_mcst:1;
  3021. uint64_t ctl_smac:1;
  3022. uint64_t pre_free:1;
  3023. uint64_t vlan_len:1;
  3024. uint64_t pad_len:1;
  3025. uint64_t reserved_9_63:55;
  3026. #endif
  3027. } cn30xx;
  3028. struct cvmx_gmxx_rxx_frm_ctl_cn31xx {
  3029. #ifdef __BIG_ENDIAN_BITFIELD
  3030. uint64_t reserved_8_63:56;
  3031. uint64_t vlan_len:1;
  3032. uint64_t pre_free:1;
  3033. uint64_t ctl_smac:1;
  3034. uint64_t ctl_mcst:1;
  3035. uint64_t ctl_bck:1;
  3036. uint64_t ctl_drp:1;
  3037. uint64_t pre_strp:1;
  3038. uint64_t pre_chk:1;
  3039. #else
  3040. uint64_t pre_chk:1;
  3041. uint64_t pre_strp:1;
  3042. uint64_t ctl_drp:1;
  3043. uint64_t ctl_bck:1;
  3044. uint64_t ctl_mcst:1;
  3045. uint64_t ctl_smac:1;
  3046. uint64_t pre_free:1;
  3047. uint64_t vlan_len:1;
  3048. uint64_t reserved_8_63:56;
  3049. #endif
  3050. } cn31xx;
  3051. struct cvmx_gmxx_rxx_frm_ctl_cn30xx cn38xx;
  3052. struct cvmx_gmxx_rxx_frm_ctl_cn31xx cn38xxp2;
  3053. struct cvmx_gmxx_rxx_frm_ctl_cn50xx {
  3054. #ifdef __BIG_ENDIAN_BITFIELD
  3055. uint64_t reserved_11_63:53;
  3056. uint64_t null_dis:1;
  3057. uint64_t pre_align:1;
  3058. uint64_t reserved_7_8:2;
  3059. uint64_t pre_free:1;
  3060. uint64_t ctl_smac:1;
  3061. uint64_t ctl_mcst:1;
  3062. uint64_t ctl_bck:1;
  3063. uint64_t ctl_drp:1;
  3064. uint64_t pre_strp:1;
  3065. uint64_t pre_chk:1;
  3066. #else
  3067. uint64_t pre_chk:1;
  3068. uint64_t pre_strp:1;
  3069. uint64_t ctl_drp:1;
  3070. uint64_t ctl_bck:1;
  3071. uint64_t ctl_mcst:1;
  3072. uint64_t ctl_smac:1;
  3073. uint64_t pre_free:1;
  3074. uint64_t reserved_7_8:2;
  3075. uint64_t pre_align:1;
  3076. uint64_t null_dis:1;
  3077. uint64_t reserved_11_63:53;
  3078. #endif
  3079. } cn50xx;
  3080. struct cvmx_gmxx_rxx_frm_ctl_cn50xx cn52xx;
  3081. struct cvmx_gmxx_rxx_frm_ctl_cn50xx cn52xxp1;
  3082. struct cvmx_gmxx_rxx_frm_ctl_cn50xx cn56xx;
  3083. struct cvmx_gmxx_rxx_frm_ctl_cn56xxp1 {
  3084. #ifdef __BIG_ENDIAN_BITFIELD
  3085. uint64_t reserved_10_63:54;
  3086. uint64_t pre_align:1;
  3087. uint64_t reserved_7_8:2;
  3088. uint64_t pre_free:1;
  3089. uint64_t ctl_smac:1;
  3090. uint64_t ctl_mcst:1;
  3091. uint64_t ctl_bck:1;
  3092. uint64_t ctl_drp:1;
  3093. uint64_t pre_strp:1;
  3094. uint64_t pre_chk:1;
  3095. #else
  3096. uint64_t pre_chk:1;
  3097. uint64_t pre_strp:1;
  3098. uint64_t ctl_drp:1;
  3099. uint64_t ctl_bck:1;
  3100. uint64_t ctl_mcst:1;
  3101. uint64_t ctl_smac:1;
  3102. uint64_t pre_free:1;
  3103. uint64_t reserved_7_8:2;
  3104. uint64_t pre_align:1;
  3105. uint64_t reserved_10_63:54;
  3106. #endif
  3107. } cn56xxp1;
  3108. struct cvmx_gmxx_rxx_frm_ctl_cn58xx {
  3109. #ifdef __BIG_ENDIAN_BITFIELD
  3110. uint64_t reserved_11_63:53;
  3111. uint64_t null_dis:1;
  3112. uint64_t pre_align:1;
  3113. uint64_t pad_len:1;
  3114. uint64_t vlan_len:1;
  3115. uint64_t pre_free:1;
  3116. uint64_t ctl_smac:1;
  3117. uint64_t ctl_mcst:1;
  3118. uint64_t ctl_bck:1;
  3119. uint64_t ctl_drp:1;
  3120. uint64_t pre_strp:1;
  3121. uint64_t pre_chk:1;
  3122. #else
  3123. uint64_t pre_chk:1;
  3124. uint64_t pre_strp:1;
  3125. uint64_t ctl_drp:1;
  3126. uint64_t ctl_bck:1;
  3127. uint64_t ctl_mcst:1;
  3128. uint64_t ctl_smac:1;
  3129. uint64_t pre_free:1;
  3130. uint64_t vlan_len:1;
  3131. uint64_t pad_len:1;
  3132. uint64_t pre_align:1;
  3133. uint64_t null_dis:1;
  3134. uint64_t reserved_11_63:53;
  3135. #endif
  3136. } cn58xx;
  3137. struct cvmx_gmxx_rxx_frm_ctl_cn30xx cn58xxp1;
  3138. struct cvmx_gmxx_rxx_frm_ctl_cn61xx {
  3139. #ifdef __BIG_ENDIAN_BITFIELD
  3140. uint64_t reserved_13_63:51;
  3141. uint64_t ptp_mode:1;
  3142. uint64_t reserved_11_11:1;
  3143. uint64_t null_dis:1;
  3144. uint64_t pre_align:1;
  3145. uint64_t reserved_7_8:2;
  3146. uint64_t pre_free:1;
  3147. uint64_t ctl_smac:1;
  3148. uint64_t ctl_mcst:1;
  3149. uint64_t ctl_bck:1;
  3150. uint64_t ctl_drp:1;
  3151. uint64_t pre_strp:1;
  3152. uint64_t pre_chk:1;
  3153. #else
  3154. uint64_t pre_chk:1;
  3155. uint64_t pre_strp:1;
  3156. uint64_t ctl_drp:1;
  3157. uint64_t ctl_bck:1;
  3158. uint64_t ctl_mcst:1;
  3159. uint64_t ctl_smac:1;
  3160. uint64_t pre_free:1;
  3161. uint64_t reserved_7_8:2;
  3162. uint64_t pre_align:1;
  3163. uint64_t null_dis:1;
  3164. uint64_t reserved_11_11:1;
  3165. uint64_t ptp_mode:1;
  3166. uint64_t reserved_13_63:51;
  3167. #endif
  3168. } cn61xx;
  3169. struct cvmx_gmxx_rxx_frm_ctl_cn61xx cn63xx;
  3170. struct cvmx_gmxx_rxx_frm_ctl_cn61xx cn63xxp1;
  3171. struct cvmx_gmxx_rxx_frm_ctl_cn61xx cn66xx;
  3172. struct cvmx_gmxx_rxx_frm_ctl_cn61xx cn68xx;
  3173. struct cvmx_gmxx_rxx_frm_ctl_cn61xx cn68xxp1;
  3174. struct cvmx_gmxx_rxx_frm_ctl_cn61xx cnf71xx;
  3175. };
  3176. union cvmx_gmxx_rxx_frm_max {
  3177. uint64_t u64;
  3178. struct cvmx_gmxx_rxx_frm_max_s {
  3179. #ifdef __BIG_ENDIAN_BITFIELD
  3180. uint64_t reserved_16_63:48;
  3181. uint64_t len:16;
  3182. #else
  3183. uint64_t len:16;
  3184. uint64_t reserved_16_63:48;
  3185. #endif
  3186. } s;
  3187. struct cvmx_gmxx_rxx_frm_max_s cn30xx;
  3188. struct cvmx_gmxx_rxx_frm_max_s cn31xx;
  3189. struct cvmx_gmxx_rxx_frm_max_s cn38xx;
  3190. struct cvmx_gmxx_rxx_frm_max_s cn38xxp2;
  3191. struct cvmx_gmxx_rxx_frm_max_s cn58xx;
  3192. struct cvmx_gmxx_rxx_frm_max_s cn58xxp1;
  3193. };
  3194. union cvmx_gmxx_rxx_frm_min {
  3195. uint64_t u64;
  3196. struct cvmx_gmxx_rxx_frm_min_s {
  3197. #ifdef __BIG_ENDIAN_BITFIELD
  3198. uint64_t reserved_16_63:48;
  3199. uint64_t len:16;
  3200. #else
  3201. uint64_t len:16;
  3202. uint64_t reserved_16_63:48;
  3203. #endif
  3204. } s;
  3205. struct cvmx_gmxx_rxx_frm_min_s cn30xx;
  3206. struct cvmx_gmxx_rxx_frm_min_s cn31xx;
  3207. struct cvmx_gmxx_rxx_frm_min_s cn38xx;
  3208. struct cvmx_gmxx_rxx_frm_min_s cn38xxp2;
  3209. struct cvmx_gmxx_rxx_frm_min_s cn58xx;
  3210. struct cvmx_gmxx_rxx_frm_min_s cn58xxp1;
  3211. };
  3212. union cvmx_gmxx_rxx_ifg {
  3213. uint64_t u64;
  3214. struct cvmx_gmxx_rxx_ifg_s {
  3215. #ifdef __BIG_ENDIAN_BITFIELD
  3216. uint64_t reserved_4_63:60;
  3217. uint64_t ifg:4;
  3218. #else
  3219. uint64_t ifg:4;
  3220. uint64_t reserved_4_63:60;
  3221. #endif
  3222. } s;
  3223. struct cvmx_gmxx_rxx_ifg_s cn30xx;
  3224. struct cvmx_gmxx_rxx_ifg_s cn31xx;
  3225. struct cvmx_gmxx_rxx_ifg_s cn38xx;
  3226. struct cvmx_gmxx_rxx_ifg_s cn38xxp2;
  3227. struct cvmx_gmxx_rxx_ifg_s cn50xx;
  3228. struct cvmx_gmxx_rxx_ifg_s cn52xx;
  3229. struct cvmx_gmxx_rxx_ifg_s cn52xxp1;
  3230. struct cvmx_gmxx_rxx_ifg_s cn56xx;
  3231. struct cvmx_gmxx_rxx_ifg_s cn56xxp1;
  3232. struct cvmx_gmxx_rxx_ifg_s cn58xx;
  3233. struct cvmx_gmxx_rxx_ifg_s cn58xxp1;
  3234. struct cvmx_gmxx_rxx_ifg_s cn61xx;
  3235. struct cvmx_gmxx_rxx_ifg_s cn63xx;
  3236. struct cvmx_gmxx_rxx_ifg_s cn63xxp1;
  3237. struct cvmx_gmxx_rxx_ifg_s cn66xx;
  3238. struct cvmx_gmxx_rxx_ifg_s cn68xx;
  3239. struct cvmx_gmxx_rxx_ifg_s cn68xxp1;
  3240. struct cvmx_gmxx_rxx_ifg_s cnf71xx;
  3241. };
  3242. union cvmx_gmxx_rxx_int_en {
  3243. uint64_t u64;
  3244. struct cvmx_gmxx_rxx_int_en_s {
  3245. #ifdef __BIG_ENDIAN_BITFIELD
  3246. uint64_t reserved_29_63:35;
  3247. uint64_t hg2cc:1;
  3248. uint64_t hg2fld:1;
  3249. uint64_t undat:1;
  3250. uint64_t uneop:1;
  3251. uint64_t unsop:1;
  3252. uint64_t bad_term:1;
  3253. uint64_t bad_seq:1;
  3254. uint64_t rem_fault:1;
  3255. uint64_t loc_fault:1;
  3256. uint64_t pause_drp:1;
  3257. uint64_t phy_dupx:1;
  3258. uint64_t phy_spd:1;
  3259. uint64_t phy_link:1;
  3260. uint64_t ifgerr:1;
  3261. uint64_t coldet:1;
  3262. uint64_t falerr:1;
  3263. uint64_t rsverr:1;
  3264. uint64_t pcterr:1;
  3265. uint64_t ovrerr:1;
  3266. uint64_t niberr:1;
  3267. uint64_t skperr:1;
  3268. uint64_t rcverr:1;
  3269. uint64_t lenerr:1;
  3270. uint64_t alnerr:1;
  3271. uint64_t fcserr:1;
  3272. uint64_t jabber:1;
  3273. uint64_t maxerr:1;
  3274. uint64_t carext:1;
  3275. uint64_t minerr:1;
  3276. #else
  3277. uint64_t minerr:1;
  3278. uint64_t carext:1;
  3279. uint64_t maxerr:1;
  3280. uint64_t jabber:1;
  3281. uint64_t fcserr:1;
  3282. uint64_t alnerr:1;
  3283. uint64_t lenerr:1;
  3284. uint64_t rcverr:1;
  3285. uint64_t skperr:1;
  3286. uint64_t niberr:1;
  3287. uint64_t ovrerr:1;
  3288. uint64_t pcterr:1;
  3289. uint64_t rsverr:1;
  3290. uint64_t falerr:1;
  3291. uint64_t coldet:1;
  3292. uint64_t ifgerr:1;
  3293. uint64_t phy_link:1;
  3294. uint64_t phy_spd:1;
  3295. uint64_t phy_dupx:1;
  3296. uint64_t pause_drp:1;
  3297. uint64_t loc_fault:1;
  3298. uint64_t rem_fault:1;
  3299. uint64_t bad_seq:1;
  3300. uint64_t bad_term:1;
  3301. uint64_t unsop:1;
  3302. uint64_t uneop:1;
  3303. uint64_t undat:1;
  3304. uint64_t hg2fld:1;
  3305. uint64_t hg2cc:1;
  3306. uint64_t reserved_29_63:35;
  3307. #endif
  3308. } s;
  3309. struct cvmx_gmxx_rxx_int_en_cn30xx {
  3310. #ifdef __BIG_ENDIAN_BITFIELD
  3311. uint64_t reserved_19_63:45;
  3312. uint64_t phy_dupx:1;
  3313. uint64_t phy_spd:1;
  3314. uint64_t phy_link:1;
  3315. uint64_t ifgerr:1;
  3316. uint64_t coldet:1;
  3317. uint64_t falerr:1;
  3318. uint64_t rsverr:1;
  3319. uint64_t pcterr:1;
  3320. uint64_t ovrerr:1;
  3321. uint64_t niberr:1;
  3322. uint64_t skperr:1;
  3323. uint64_t rcverr:1;
  3324. uint64_t lenerr:1;
  3325. uint64_t alnerr:1;
  3326. uint64_t fcserr:1;
  3327. uint64_t jabber:1;
  3328. uint64_t maxerr:1;
  3329. uint64_t carext:1;
  3330. uint64_t minerr:1;
  3331. #else
  3332. uint64_t minerr:1;
  3333. uint64_t carext:1;
  3334. uint64_t maxerr:1;
  3335. uint64_t jabber:1;
  3336. uint64_t fcserr:1;
  3337. uint64_t alnerr:1;
  3338. uint64_t lenerr:1;
  3339. uint64_t rcverr:1;
  3340. uint64_t skperr:1;
  3341. uint64_t niberr:1;
  3342. uint64_t ovrerr:1;
  3343. uint64_t pcterr:1;
  3344. uint64_t rsverr:1;
  3345. uint64_t falerr:1;
  3346. uint64_t coldet:1;
  3347. uint64_t ifgerr:1;
  3348. uint64_t phy_link:1;
  3349. uint64_t phy_spd:1;
  3350. uint64_t phy_dupx:1;
  3351. uint64_t reserved_19_63:45;
  3352. #endif
  3353. } cn30xx;
  3354. struct cvmx_gmxx_rxx_int_en_cn30xx cn31xx;
  3355. struct cvmx_gmxx_rxx_int_en_cn30xx cn38xx;
  3356. struct cvmx_gmxx_rxx_int_en_cn30xx cn38xxp2;
  3357. struct cvmx_gmxx_rxx_int_en_cn50xx {
  3358. #ifdef __BIG_ENDIAN_BITFIELD
  3359. uint64_t reserved_20_63:44;
  3360. uint64_t pause_drp:1;
  3361. uint64_t phy_dupx:1;
  3362. uint64_t phy_spd:1;
  3363. uint64_t phy_link:1;
  3364. uint64_t ifgerr:1;
  3365. uint64_t coldet:1;
  3366. uint64_t falerr:1;
  3367. uint64_t rsverr:1;
  3368. uint64_t pcterr:1;
  3369. uint64_t ovrerr:1;
  3370. uint64_t niberr:1;
  3371. uint64_t skperr:1;
  3372. uint64_t rcverr:1;
  3373. uint64_t reserved_6_6:1;
  3374. uint64_t alnerr:1;
  3375. uint64_t fcserr:1;
  3376. uint64_t jabber:1;
  3377. uint64_t reserved_2_2:1;
  3378. uint64_t carext:1;
  3379. uint64_t reserved_0_0:1;
  3380. #else
  3381. uint64_t reserved_0_0:1;
  3382. uint64_t carext:1;
  3383. uint64_t reserved_2_2:1;
  3384. uint64_t jabber:1;
  3385. uint64_t fcserr:1;
  3386. uint64_t alnerr:1;
  3387. uint64_t reserved_6_6:1;
  3388. uint64_t rcverr:1;
  3389. uint64_t skperr:1;
  3390. uint64_t niberr:1;
  3391. uint64_t ovrerr:1;
  3392. uint64_t pcterr:1;
  3393. uint64_t rsverr:1;
  3394. uint64_t falerr:1;
  3395. uint64_t coldet:1;
  3396. uint64_t ifgerr:1;
  3397. uint64_t phy_link:1;
  3398. uint64_t phy_spd:1;
  3399. uint64_t phy_dupx:1;
  3400. uint64_t pause_drp:1;
  3401. uint64_t reserved_20_63:44;
  3402. #endif
  3403. } cn50xx;
  3404. struct cvmx_gmxx_rxx_int_en_cn52xx {
  3405. #ifdef __BIG_ENDIAN_BITFIELD
  3406. uint64_t reserved_29_63:35;
  3407. uint64_t hg2cc:1;
  3408. uint64_t hg2fld:1;
  3409. uint64_t undat:1;
  3410. uint64_t uneop:1;
  3411. uint64_t unsop:1;
  3412. uint64_t bad_term:1;
  3413. uint64_t bad_seq:1;
  3414. uint64_t rem_fault:1;
  3415. uint64_t loc_fault:1;
  3416. uint64_t pause_drp:1;
  3417. uint64_t reserved_16_18:3;
  3418. uint64_t ifgerr:1;
  3419. uint64_t coldet:1;
  3420. uint64_t falerr:1;
  3421. uint64_t rsverr:1;
  3422. uint64_t pcterr:1;
  3423. uint64_t ovrerr:1;
  3424. uint64_t reserved_9_9:1;
  3425. uint64_t skperr:1;
  3426. uint64_t rcverr:1;
  3427. uint64_t reserved_5_6:2;
  3428. uint64_t fcserr:1;
  3429. uint64_t jabber:1;
  3430. uint64_t reserved_2_2:1;
  3431. uint64_t carext:1;
  3432. uint64_t reserved_0_0:1;
  3433. #else
  3434. uint64_t reserved_0_0:1;
  3435. uint64_t carext:1;
  3436. uint64_t reserved_2_2:1;
  3437. uint64_t jabber:1;
  3438. uint64_t fcserr:1;
  3439. uint64_t reserved_5_6:2;
  3440. uint64_t rcverr:1;
  3441. uint64_t skperr:1;
  3442. uint64_t reserved_9_9:1;
  3443. uint64_t ovrerr:1;
  3444. uint64_t pcterr:1;
  3445. uint64_t rsverr:1;
  3446. uint64_t falerr:1;
  3447. uint64_t coldet:1;
  3448. uint64_t ifgerr:1;
  3449. uint64_t reserved_16_18:3;
  3450. uint64_t pause_drp:1;
  3451. uint64_t loc_fault:1;
  3452. uint64_t rem_fault:1;
  3453. uint64_t bad_seq:1;
  3454. uint64_t bad_term:1;
  3455. uint64_t unsop:1;
  3456. uint64_t uneop:1;
  3457. uint64_t undat:1;
  3458. uint64_t hg2fld:1;
  3459. uint64_t hg2cc:1;
  3460. uint64_t reserved_29_63:35;
  3461. #endif
  3462. } cn52xx;
  3463. struct cvmx_gmxx_rxx_int_en_cn52xx cn52xxp1;
  3464. struct cvmx_gmxx_rxx_int_en_cn52xx cn56xx;
  3465. struct cvmx_gmxx_rxx_int_en_cn56xxp1 {
  3466. #ifdef __BIG_ENDIAN_BITFIELD
  3467. uint64_t reserved_27_63:37;
  3468. uint64_t undat:1;
  3469. uint64_t uneop:1;
  3470. uint64_t unsop:1;
  3471. uint64_t bad_term:1;
  3472. uint64_t bad_seq:1;
  3473. uint64_t rem_fault:1;
  3474. uint64_t loc_fault:1;
  3475. uint64_t pause_drp:1;
  3476. uint64_t reserved_16_18:3;
  3477. uint64_t ifgerr:1;
  3478. uint64_t coldet:1;
  3479. uint64_t falerr:1;
  3480. uint64_t rsverr:1;
  3481. uint64_t pcterr:1;
  3482. uint64_t ovrerr:1;
  3483. uint64_t reserved_9_9:1;
  3484. uint64_t skperr:1;
  3485. uint64_t rcverr:1;
  3486. uint64_t reserved_5_6:2;
  3487. uint64_t fcserr:1;
  3488. uint64_t jabber:1;
  3489. uint64_t reserved_2_2:1;
  3490. uint64_t carext:1;
  3491. uint64_t reserved_0_0:1;
  3492. #else
  3493. uint64_t reserved_0_0:1;
  3494. uint64_t carext:1;
  3495. uint64_t reserved_2_2:1;
  3496. uint64_t jabber:1;
  3497. uint64_t fcserr:1;
  3498. uint64_t reserved_5_6:2;
  3499. uint64_t rcverr:1;
  3500. uint64_t skperr:1;
  3501. uint64_t reserved_9_9:1;
  3502. uint64_t ovrerr:1;
  3503. uint64_t pcterr:1;
  3504. uint64_t rsverr:1;
  3505. uint64_t falerr:1;
  3506. uint64_t coldet:1;
  3507. uint64_t ifgerr:1;
  3508. uint64_t reserved_16_18:3;
  3509. uint64_t pause_drp:1;
  3510. uint64_t loc_fault:1;
  3511. uint64_t rem_fault:1;
  3512. uint64_t bad_seq:1;
  3513. uint64_t bad_term:1;
  3514. uint64_t unsop:1;
  3515. uint64_t uneop:1;
  3516. uint64_t undat:1;
  3517. uint64_t reserved_27_63:37;
  3518. #endif
  3519. } cn56xxp1;
  3520. struct cvmx_gmxx_rxx_int_en_cn58xx {
  3521. #ifdef __BIG_ENDIAN_BITFIELD
  3522. uint64_t reserved_20_63:44;
  3523. uint64_t pause_drp:1;
  3524. uint64_t phy_dupx:1;
  3525. uint64_t phy_spd:1;
  3526. uint64_t phy_link:1;
  3527. uint64_t ifgerr:1;
  3528. uint64_t coldet:1;
  3529. uint64_t falerr:1;
  3530. uint64_t rsverr:1;
  3531. uint64_t pcterr:1;
  3532. uint64_t ovrerr:1;
  3533. uint64_t niberr:1;
  3534. uint64_t skperr:1;
  3535. uint64_t rcverr:1;
  3536. uint64_t lenerr:1;
  3537. uint64_t alnerr:1;
  3538. uint64_t fcserr:1;
  3539. uint64_t jabber:1;
  3540. uint64_t maxerr:1;
  3541. uint64_t carext:1;
  3542. uint64_t minerr:1;
  3543. #else
  3544. uint64_t minerr:1;
  3545. uint64_t carext:1;
  3546. uint64_t maxerr:1;
  3547. uint64_t jabber:1;
  3548. uint64_t fcserr:1;
  3549. uint64_t alnerr:1;
  3550. uint64_t lenerr:1;
  3551. uint64_t rcverr:1;
  3552. uint64_t skperr:1;
  3553. uint64_t niberr:1;
  3554. uint64_t ovrerr:1;
  3555. uint64_t pcterr:1;
  3556. uint64_t rsverr:1;
  3557. uint64_t falerr:1;
  3558. uint64_t coldet:1;
  3559. uint64_t ifgerr:1;
  3560. uint64_t phy_link:1;
  3561. uint64_t phy_spd:1;
  3562. uint64_t phy_dupx:1;
  3563. uint64_t pause_drp:1;
  3564. uint64_t reserved_20_63:44;
  3565. #endif
  3566. } cn58xx;
  3567. struct cvmx_gmxx_rxx_int_en_cn58xx cn58xxp1;
  3568. struct cvmx_gmxx_rxx_int_en_cn61xx {
  3569. #ifdef __BIG_ENDIAN_BITFIELD
  3570. uint64_t reserved_29_63:35;
  3571. uint64_t hg2cc:1;
  3572. uint64_t hg2fld:1;
  3573. uint64_t undat:1;
  3574. uint64_t uneop:1;
  3575. uint64_t unsop:1;
  3576. uint64_t bad_term:1;
  3577. uint64_t bad_seq:1;
  3578. uint64_t rem_fault:1;
  3579. uint64_t loc_fault:1;
  3580. uint64_t pause_drp:1;
  3581. uint64_t reserved_16_18:3;
  3582. uint64_t ifgerr:1;
  3583. uint64_t coldet:1;
  3584. uint64_t falerr:1;
  3585. uint64_t rsverr:1;
  3586. uint64_t pcterr:1;
  3587. uint64_t ovrerr:1;
  3588. uint64_t reserved_9_9:1;
  3589. uint64_t skperr:1;
  3590. uint64_t rcverr:1;
  3591. uint64_t reserved_5_6:2;
  3592. uint64_t fcserr:1;
  3593. uint64_t jabber:1;
  3594. uint64_t reserved_2_2:1;
  3595. uint64_t carext:1;
  3596. uint64_t minerr:1;
  3597. #else
  3598. uint64_t minerr:1;
  3599. uint64_t carext:1;
  3600. uint64_t reserved_2_2:1;
  3601. uint64_t jabber:1;
  3602. uint64_t fcserr:1;
  3603. uint64_t reserved_5_6:2;
  3604. uint64_t rcverr:1;
  3605. uint64_t skperr:1;
  3606. uint64_t reserved_9_9:1;
  3607. uint64_t ovrerr:1;
  3608. uint64_t pcterr:1;
  3609. uint64_t rsverr:1;
  3610. uint64_t falerr:1;
  3611. uint64_t coldet:1;
  3612. uint64_t ifgerr:1;
  3613. uint64_t reserved_16_18:3;
  3614. uint64_t pause_drp:1;
  3615. uint64_t loc_fault:1;
  3616. uint64_t rem_fault:1;
  3617. uint64_t bad_seq:1;
  3618. uint64_t bad_term:1;
  3619. uint64_t unsop:1;
  3620. uint64_t uneop:1;
  3621. uint64_t undat:1;
  3622. uint64_t hg2fld:1;
  3623. uint64_t hg2cc:1;
  3624. uint64_t reserved_29_63:35;
  3625. #endif
  3626. } cn61xx;
  3627. struct cvmx_gmxx_rxx_int_en_cn61xx cn63xx;
  3628. struct cvmx_gmxx_rxx_int_en_cn61xx cn63xxp1;
  3629. struct cvmx_gmxx_rxx_int_en_cn61xx cn66xx;
  3630. struct cvmx_gmxx_rxx_int_en_cn61xx cn68xx;
  3631. struct cvmx_gmxx_rxx_int_en_cn61xx cn68xxp1;
  3632. struct cvmx_gmxx_rxx_int_en_cn61xx cnf71xx;
  3633. };
  3634. union cvmx_gmxx_rxx_int_reg {
  3635. uint64_t u64;
  3636. struct cvmx_gmxx_rxx_int_reg_s {
  3637. #ifdef __BIG_ENDIAN_BITFIELD
  3638. uint64_t reserved_29_63:35;
  3639. uint64_t hg2cc:1;
  3640. uint64_t hg2fld:1;
  3641. uint64_t undat:1;
  3642. uint64_t uneop:1;
  3643. uint64_t unsop:1;
  3644. uint64_t bad_term:1;
  3645. uint64_t bad_seq:1;
  3646. uint64_t rem_fault:1;
  3647. uint64_t loc_fault:1;
  3648. uint64_t pause_drp:1;
  3649. uint64_t phy_dupx:1;
  3650. uint64_t phy_spd:1;
  3651. uint64_t phy_link:1;
  3652. uint64_t ifgerr:1;
  3653. uint64_t coldet:1;
  3654. uint64_t falerr:1;
  3655. uint64_t rsverr:1;
  3656. uint64_t pcterr:1;
  3657. uint64_t ovrerr:1;
  3658. uint64_t niberr:1;
  3659. uint64_t skperr:1;
  3660. uint64_t rcverr:1;
  3661. uint64_t lenerr:1;
  3662. uint64_t alnerr:1;
  3663. uint64_t fcserr:1;
  3664. uint64_t jabber:1;
  3665. uint64_t maxerr:1;
  3666. uint64_t carext:1;
  3667. uint64_t minerr:1;
  3668. #else
  3669. uint64_t minerr:1;
  3670. uint64_t carext:1;
  3671. uint64_t maxerr:1;
  3672. uint64_t jabber:1;
  3673. uint64_t fcserr:1;
  3674. uint64_t alnerr:1;
  3675. uint64_t lenerr:1;
  3676. uint64_t rcverr:1;
  3677. uint64_t skperr:1;
  3678. uint64_t niberr:1;
  3679. uint64_t ovrerr:1;
  3680. uint64_t pcterr:1;
  3681. uint64_t rsverr:1;
  3682. uint64_t falerr:1;
  3683. uint64_t coldet:1;
  3684. uint64_t ifgerr:1;
  3685. uint64_t phy_link:1;
  3686. uint64_t phy_spd:1;
  3687. uint64_t phy_dupx:1;
  3688. uint64_t pause_drp:1;
  3689. uint64_t loc_fault:1;
  3690. uint64_t rem_fault:1;
  3691. uint64_t bad_seq:1;
  3692. uint64_t bad_term:1;
  3693. uint64_t unsop:1;
  3694. uint64_t uneop:1;
  3695. uint64_t undat:1;
  3696. uint64_t hg2fld:1;
  3697. uint64_t hg2cc:1;
  3698. uint64_t reserved_29_63:35;
  3699. #endif
  3700. } s;
  3701. struct cvmx_gmxx_rxx_int_reg_cn30xx {
  3702. #ifdef __BIG_ENDIAN_BITFIELD
  3703. uint64_t reserved_19_63:45;
  3704. uint64_t phy_dupx:1;
  3705. uint64_t phy_spd:1;
  3706. uint64_t phy_link:1;
  3707. uint64_t ifgerr:1;
  3708. uint64_t coldet:1;
  3709. uint64_t falerr:1;
  3710. uint64_t rsverr:1;
  3711. uint64_t pcterr:1;
  3712. uint64_t ovrerr:1;
  3713. uint64_t niberr:1;
  3714. uint64_t skperr:1;
  3715. uint64_t rcverr:1;
  3716. uint64_t lenerr:1;
  3717. uint64_t alnerr:1;
  3718. uint64_t fcserr:1;
  3719. uint64_t jabber:1;
  3720. uint64_t maxerr:1;
  3721. uint64_t carext:1;
  3722. uint64_t minerr:1;
  3723. #else
  3724. uint64_t minerr:1;
  3725. uint64_t carext:1;
  3726. uint64_t maxerr:1;
  3727. uint64_t jabber:1;
  3728. uint64_t fcserr:1;
  3729. uint64_t alnerr:1;
  3730. uint64_t lenerr:1;
  3731. uint64_t rcverr:1;
  3732. uint64_t skperr:1;
  3733. uint64_t niberr:1;
  3734. uint64_t ovrerr:1;
  3735. uint64_t pcterr:1;
  3736. uint64_t rsverr:1;
  3737. uint64_t falerr:1;
  3738. uint64_t coldet:1;
  3739. uint64_t ifgerr:1;
  3740. uint64_t phy_link:1;
  3741. uint64_t phy_spd:1;
  3742. uint64_t phy_dupx:1;
  3743. uint64_t reserved_19_63:45;
  3744. #endif
  3745. } cn30xx;
  3746. struct cvmx_gmxx_rxx_int_reg_cn30xx cn31xx;
  3747. struct cvmx_gmxx_rxx_int_reg_cn30xx cn38xx;
  3748. struct cvmx_gmxx_rxx_int_reg_cn30xx cn38xxp2;
  3749. struct cvmx_gmxx_rxx_int_reg_cn50xx {
  3750. #ifdef __BIG_ENDIAN_BITFIELD
  3751. uint64_t reserved_20_63:44;
  3752. uint64_t pause_drp:1;
  3753. uint64_t phy_dupx:1;
  3754. uint64_t phy_spd:1;
  3755. uint64_t phy_link:1;
  3756. uint64_t ifgerr:1;
  3757. uint64_t coldet:1;
  3758. uint64_t falerr:1;
  3759. uint64_t rsverr:1;
  3760. uint64_t pcterr:1;
  3761. uint64_t ovrerr:1;
  3762. uint64_t niberr:1;
  3763. uint64_t skperr:1;
  3764. uint64_t rcverr:1;
  3765. uint64_t reserved_6_6:1;
  3766. uint64_t alnerr:1;
  3767. uint64_t fcserr:1;
  3768. uint64_t jabber:1;
  3769. uint64_t reserved_2_2:1;
  3770. uint64_t carext:1;
  3771. uint64_t reserved_0_0:1;
  3772. #else
  3773. uint64_t reserved_0_0:1;
  3774. uint64_t carext:1;
  3775. uint64_t reserved_2_2:1;
  3776. uint64_t jabber:1;
  3777. uint64_t fcserr:1;
  3778. uint64_t alnerr:1;
  3779. uint64_t reserved_6_6:1;
  3780. uint64_t rcverr:1;
  3781. uint64_t skperr:1;
  3782. uint64_t niberr:1;
  3783. uint64_t ovrerr:1;
  3784. uint64_t pcterr:1;
  3785. uint64_t rsverr:1;
  3786. uint64_t falerr:1;
  3787. uint64_t coldet:1;
  3788. uint64_t ifgerr:1;
  3789. uint64_t phy_link:1;
  3790. uint64_t phy_spd:1;
  3791. uint64_t phy_dupx:1;
  3792. uint64_t pause_drp:1;
  3793. uint64_t reserved_20_63:44;
  3794. #endif
  3795. } cn50xx;
  3796. struct cvmx_gmxx_rxx_int_reg_cn52xx {
  3797. #ifdef __BIG_ENDIAN_BITFIELD
  3798. uint64_t reserved_29_63:35;
  3799. uint64_t hg2cc:1;
  3800. uint64_t hg2fld:1;
  3801. uint64_t undat:1;
  3802. uint64_t uneop:1;
  3803. uint64_t unsop:1;
  3804. uint64_t bad_term:1;
  3805. uint64_t bad_seq:1;
  3806. uint64_t rem_fault:1;
  3807. uint64_t loc_fault:1;
  3808. uint64_t pause_drp:1;
  3809. uint64_t reserved_16_18:3;
  3810. uint64_t ifgerr:1;
  3811. uint64_t coldet:1;
  3812. uint64_t falerr:1;
  3813. uint64_t rsverr:1;
  3814. uint64_t pcterr:1;
  3815. uint64_t ovrerr:1;
  3816. uint64_t reserved_9_9:1;
  3817. uint64_t skperr:1;
  3818. uint64_t rcverr:1;
  3819. uint64_t reserved_5_6:2;
  3820. uint64_t fcserr:1;
  3821. uint64_t jabber:1;
  3822. uint64_t reserved_2_2:1;
  3823. uint64_t carext:1;
  3824. uint64_t reserved_0_0:1;
  3825. #else
  3826. uint64_t reserved_0_0:1;
  3827. uint64_t carext:1;
  3828. uint64_t reserved_2_2:1;
  3829. uint64_t jabber:1;
  3830. uint64_t fcserr:1;
  3831. uint64_t reserved_5_6:2;
  3832. uint64_t rcverr:1;
  3833. uint64_t skperr:1;
  3834. uint64_t reserved_9_9:1;
  3835. uint64_t ovrerr:1;
  3836. uint64_t pcterr:1;
  3837. uint64_t rsverr:1;
  3838. uint64_t falerr:1;
  3839. uint64_t coldet:1;
  3840. uint64_t ifgerr:1;
  3841. uint64_t reserved_16_18:3;
  3842. uint64_t pause_drp:1;
  3843. uint64_t loc_fault:1;
  3844. uint64_t rem_fault:1;
  3845. uint64_t bad_seq:1;
  3846. uint64_t bad_term:1;
  3847. uint64_t unsop:1;
  3848. uint64_t uneop:1;
  3849. uint64_t undat:1;
  3850. uint64_t hg2fld:1;
  3851. uint64_t hg2cc:1;
  3852. uint64_t reserved_29_63:35;
  3853. #endif
  3854. } cn52xx;
  3855. struct cvmx_gmxx_rxx_int_reg_cn52xx cn52xxp1;
  3856. struct cvmx_gmxx_rxx_int_reg_cn52xx cn56xx;
  3857. struct cvmx_gmxx_rxx_int_reg_cn56xxp1 {
  3858. #ifdef __BIG_ENDIAN_BITFIELD
  3859. uint64_t reserved_27_63:37;
  3860. uint64_t undat:1;
  3861. uint64_t uneop:1;
  3862. uint64_t unsop:1;
  3863. uint64_t bad_term:1;
  3864. uint64_t bad_seq:1;
  3865. uint64_t rem_fault:1;
  3866. uint64_t loc_fault:1;
  3867. uint64_t pause_drp:1;
  3868. uint64_t reserved_16_18:3;
  3869. uint64_t ifgerr:1;
  3870. uint64_t coldet:1;
  3871. uint64_t falerr:1;
  3872. uint64_t rsverr:1;
  3873. uint64_t pcterr:1;
  3874. uint64_t ovrerr:1;
  3875. uint64_t reserved_9_9:1;
  3876. uint64_t skperr:1;
  3877. uint64_t rcverr:1;
  3878. uint64_t reserved_5_6:2;
  3879. uint64_t fcserr:1;
  3880. uint64_t jabber:1;
  3881. uint64_t reserved_2_2:1;
  3882. uint64_t carext:1;
  3883. uint64_t reserved_0_0:1;
  3884. #else
  3885. uint64_t reserved_0_0:1;
  3886. uint64_t carext:1;
  3887. uint64_t reserved_2_2:1;
  3888. uint64_t jabber:1;
  3889. uint64_t fcserr:1;
  3890. uint64_t reserved_5_6:2;
  3891. uint64_t rcverr:1;
  3892. uint64_t skperr:1;
  3893. uint64_t reserved_9_9:1;
  3894. uint64_t ovrerr:1;
  3895. uint64_t pcterr:1;
  3896. uint64_t rsverr:1;
  3897. uint64_t falerr:1;
  3898. uint64_t coldet:1;
  3899. uint64_t ifgerr:1;
  3900. uint64_t reserved_16_18:3;
  3901. uint64_t pause_drp:1;
  3902. uint64_t loc_fault:1;
  3903. uint64_t rem_fault:1;
  3904. uint64_t bad_seq:1;
  3905. uint64_t bad_term:1;
  3906. uint64_t unsop:1;
  3907. uint64_t uneop:1;
  3908. uint64_t undat:1;
  3909. uint64_t reserved_27_63:37;
  3910. #endif
  3911. } cn56xxp1;
  3912. struct cvmx_gmxx_rxx_int_reg_cn58xx {
  3913. #ifdef __BIG_ENDIAN_BITFIELD
  3914. uint64_t reserved_20_63:44;
  3915. uint64_t pause_drp:1;
  3916. uint64_t phy_dupx:1;
  3917. uint64_t phy_spd:1;
  3918. uint64_t phy_link:1;
  3919. uint64_t ifgerr:1;
  3920. uint64_t coldet:1;
  3921. uint64_t falerr:1;
  3922. uint64_t rsverr:1;
  3923. uint64_t pcterr:1;
  3924. uint64_t ovrerr:1;
  3925. uint64_t niberr:1;
  3926. uint64_t skperr:1;
  3927. uint64_t rcverr:1;
  3928. uint64_t lenerr:1;
  3929. uint64_t alnerr:1;
  3930. uint64_t fcserr:1;
  3931. uint64_t jabber:1;
  3932. uint64_t maxerr:1;
  3933. uint64_t carext:1;
  3934. uint64_t minerr:1;
  3935. #else
  3936. uint64_t minerr:1;
  3937. uint64_t carext:1;
  3938. uint64_t maxerr:1;
  3939. uint64_t jabber:1;
  3940. uint64_t fcserr:1;
  3941. uint64_t alnerr:1;
  3942. uint64_t lenerr:1;
  3943. uint64_t rcverr:1;
  3944. uint64_t skperr:1;
  3945. uint64_t niberr:1;
  3946. uint64_t ovrerr:1;
  3947. uint64_t pcterr:1;
  3948. uint64_t rsverr:1;
  3949. uint64_t falerr:1;
  3950. uint64_t coldet:1;
  3951. uint64_t ifgerr:1;
  3952. uint64_t phy_link:1;
  3953. uint64_t phy_spd:1;
  3954. uint64_t phy_dupx:1;
  3955. uint64_t pause_drp:1;
  3956. uint64_t reserved_20_63:44;
  3957. #endif
  3958. } cn58xx;
  3959. struct cvmx_gmxx_rxx_int_reg_cn58xx cn58xxp1;
  3960. struct cvmx_gmxx_rxx_int_reg_cn61xx {
  3961. #ifdef __BIG_ENDIAN_BITFIELD
  3962. uint64_t reserved_29_63:35;
  3963. uint64_t hg2cc:1;
  3964. uint64_t hg2fld:1;
  3965. uint64_t undat:1;
  3966. uint64_t uneop:1;
  3967. uint64_t unsop:1;
  3968. uint64_t bad_term:1;
  3969. uint64_t bad_seq:1;
  3970. uint64_t rem_fault:1;
  3971. uint64_t loc_fault:1;
  3972. uint64_t pause_drp:1;
  3973. uint64_t reserved_16_18:3;
  3974. uint64_t ifgerr:1;
  3975. uint64_t coldet:1;
  3976. uint64_t falerr:1;
  3977. uint64_t rsverr:1;
  3978. uint64_t pcterr:1;
  3979. uint64_t ovrerr:1;
  3980. uint64_t reserved_9_9:1;
  3981. uint64_t skperr:1;
  3982. uint64_t rcverr:1;
  3983. uint64_t reserved_5_6:2;
  3984. uint64_t fcserr:1;
  3985. uint64_t jabber:1;
  3986. uint64_t reserved_2_2:1;
  3987. uint64_t carext:1;
  3988. uint64_t minerr:1;
  3989. #else
  3990. uint64_t minerr:1;
  3991. uint64_t carext:1;
  3992. uint64_t reserved_2_2:1;
  3993. uint64_t jabber:1;
  3994. uint64_t fcserr:1;
  3995. uint64_t reserved_5_6:2;
  3996. uint64_t rcverr:1;
  3997. uint64_t skperr:1;
  3998. uint64_t reserved_9_9:1;
  3999. uint64_t ovrerr:1;
  4000. uint64_t pcterr:1;
  4001. uint64_t rsverr:1;
  4002. uint64_t falerr:1;
  4003. uint64_t coldet:1;
  4004. uint64_t ifgerr:1;
  4005. uint64_t reserved_16_18:3;
  4006. uint64_t pause_drp:1;
  4007. uint64_t loc_fault:1;
  4008. uint64_t rem_fault:1;
  4009. uint64_t bad_seq:1;
  4010. uint64_t bad_term:1;
  4011. uint64_t unsop:1;
  4012. uint64_t uneop:1;
  4013. uint64_t undat:1;
  4014. uint64_t hg2fld:1;
  4015. uint64_t hg2cc:1;
  4016. uint64_t reserved_29_63:35;
  4017. #endif
  4018. } cn61xx;
  4019. struct cvmx_gmxx_rxx_int_reg_cn61xx cn63xx;
  4020. struct cvmx_gmxx_rxx_int_reg_cn61xx cn63xxp1;
  4021. struct cvmx_gmxx_rxx_int_reg_cn61xx cn66xx;
  4022. struct cvmx_gmxx_rxx_int_reg_cn61xx cn68xx;
  4023. struct cvmx_gmxx_rxx_int_reg_cn61xx cn68xxp1;
  4024. struct cvmx_gmxx_rxx_int_reg_cn61xx cnf71xx;
  4025. };
  4026. union cvmx_gmxx_rxx_jabber {
  4027. uint64_t u64;
  4028. struct cvmx_gmxx_rxx_jabber_s {
  4029. #ifdef __BIG_ENDIAN_BITFIELD
  4030. uint64_t reserved_16_63:48;
  4031. uint64_t cnt:16;
  4032. #else
  4033. uint64_t cnt:16;
  4034. uint64_t reserved_16_63:48;
  4035. #endif
  4036. } s;
  4037. struct cvmx_gmxx_rxx_jabber_s cn30xx;
  4038. struct cvmx_gmxx_rxx_jabber_s cn31xx;
  4039. struct cvmx_gmxx_rxx_jabber_s cn38xx;
  4040. struct cvmx_gmxx_rxx_jabber_s cn38xxp2;
  4041. struct cvmx_gmxx_rxx_jabber_s cn50xx;
  4042. struct cvmx_gmxx_rxx_jabber_s cn52xx;
  4043. struct cvmx_gmxx_rxx_jabber_s cn52xxp1;
  4044. struct cvmx_gmxx_rxx_jabber_s cn56xx;
  4045. struct cvmx_gmxx_rxx_jabber_s cn56xxp1;
  4046. struct cvmx_gmxx_rxx_jabber_s cn58xx;
  4047. struct cvmx_gmxx_rxx_jabber_s cn58xxp1;
  4048. struct cvmx_gmxx_rxx_jabber_s cn61xx;
  4049. struct cvmx_gmxx_rxx_jabber_s cn63xx;
  4050. struct cvmx_gmxx_rxx_jabber_s cn63xxp1;
  4051. struct cvmx_gmxx_rxx_jabber_s cn66xx;
  4052. struct cvmx_gmxx_rxx_jabber_s cn68xx;
  4053. struct cvmx_gmxx_rxx_jabber_s cn68xxp1;
  4054. struct cvmx_gmxx_rxx_jabber_s cnf71xx;
  4055. };
  4056. union cvmx_gmxx_rxx_pause_drop_time {
  4057. uint64_t u64;
  4058. struct cvmx_gmxx_rxx_pause_drop_time_s {
  4059. #ifdef __BIG_ENDIAN_BITFIELD
  4060. uint64_t reserved_16_63:48;
  4061. uint64_t status:16;
  4062. #else
  4063. uint64_t status:16;
  4064. uint64_t reserved_16_63:48;
  4065. #endif
  4066. } s;
  4067. struct cvmx_gmxx_rxx_pause_drop_time_s cn50xx;
  4068. struct cvmx_gmxx_rxx_pause_drop_time_s cn52xx;
  4069. struct cvmx_gmxx_rxx_pause_drop_time_s cn52xxp1;
  4070. struct cvmx_gmxx_rxx_pause_drop_time_s cn56xx;
  4071. struct cvmx_gmxx_rxx_pause_drop_time_s cn56xxp1;
  4072. struct cvmx_gmxx_rxx_pause_drop_time_s cn58xx;
  4073. struct cvmx_gmxx_rxx_pause_drop_time_s cn58xxp1;
  4074. struct cvmx_gmxx_rxx_pause_drop_time_s cn61xx;
  4075. struct cvmx_gmxx_rxx_pause_drop_time_s cn63xx;
  4076. struct cvmx_gmxx_rxx_pause_drop_time_s cn63xxp1;
  4077. struct cvmx_gmxx_rxx_pause_drop_time_s cn66xx;
  4078. struct cvmx_gmxx_rxx_pause_drop_time_s cn68xx;
  4079. struct cvmx_gmxx_rxx_pause_drop_time_s cn68xxp1;
  4080. struct cvmx_gmxx_rxx_pause_drop_time_s cnf71xx;
  4081. };
  4082. union cvmx_gmxx_rxx_rx_inbnd {
  4083. uint64_t u64;
  4084. struct cvmx_gmxx_rxx_rx_inbnd_s {
  4085. #ifdef __BIG_ENDIAN_BITFIELD
  4086. uint64_t reserved_4_63:60;
  4087. uint64_t duplex:1;
  4088. uint64_t speed:2;
  4089. uint64_t status:1;
  4090. #else
  4091. uint64_t status:1;
  4092. uint64_t speed:2;
  4093. uint64_t duplex:1;
  4094. uint64_t reserved_4_63:60;
  4095. #endif
  4096. } s;
  4097. struct cvmx_gmxx_rxx_rx_inbnd_s cn30xx;
  4098. struct cvmx_gmxx_rxx_rx_inbnd_s cn31xx;
  4099. struct cvmx_gmxx_rxx_rx_inbnd_s cn38xx;
  4100. struct cvmx_gmxx_rxx_rx_inbnd_s cn38xxp2;
  4101. struct cvmx_gmxx_rxx_rx_inbnd_s cn50xx;
  4102. struct cvmx_gmxx_rxx_rx_inbnd_s cn58xx;
  4103. struct cvmx_gmxx_rxx_rx_inbnd_s cn58xxp1;
  4104. };
  4105. union cvmx_gmxx_rxx_stats_ctl {
  4106. uint64_t u64;
  4107. struct cvmx_gmxx_rxx_stats_ctl_s {
  4108. #ifdef __BIG_ENDIAN_BITFIELD
  4109. uint64_t reserved_1_63:63;
  4110. uint64_t rd_clr:1;
  4111. #else
  4112. uint64_t rd_clr:1;
  4113. uint64_t reserved_1_63:63;
  4114. #endif
  4115. } s;
  4116. struct cvmx_gmxx_rxx_stats_ctl_s cn30xx;
  4117. struct cvmx_gmxx_rxx_stats_ctl_s cn31xx;
  4118. struct cvmx_gmxx_rxx_stats_ctl_s cn38xx;
  4119. struct cvmx_gmxx_rxx_stats_ctl_s cn38xxp2;
  4120. struct cvmx_gmxx_rxx_stats_ctl_s cn50xx;
  4121. struct cvmx_gmxx_rxx_stats_ctl_s cn52xx;
  4122. struct cvmx_gmxx_rxx_stats_ctl_s cn52xxp1;
  4123. struct cvmx_gmxx_rxx_stats_ctl_s cn56xx;
  4124. struct cvmx_gmxx_rxx_stats_ctl_s cn56xxp1;
  4125. struct cvmx_gmxx_rxx_stats_ctl_s cn58xx;
  4126. struct cvmx_gmxx_rxx_stats_ctl_s cn58xxp1;
  4127. struct cvmx_gmxx_rxx_stats_ctl_s cn61xx;
  4128. struct cvmx_gmxx_rxx_stats_ctl_s cn63xx;
  4129. struct cvmx_gmxx_rxx_stats_ctl_s cn63xxp1;
  4130. struct cvmx_gmxx_rxx_stats_ctl_s cn66xx;
  4131. struct cvmx_gmxx_rxx_stats_ctl_s cn68xx;
  4132. struct cvmx_gmxx_rxx_stats_ctl_s cn68xxp1;
  4133. struct cvmx_gmxx_rxx_stats_ctl_s cnf71xx;
  4134. };
  4135. union cvmx_gmxx_rxx_stats_octs {
  4136. uint64_t u64;
  4137. struct cvmx_gmxx_rxx_stats_octs_s {
  4138. #ifdef __BIG_ENDIAN_BITFIELD
  4139. uint64_t reserved_48_63:16;
  4140. uint64_t cnt:48;
  4141. #else
  4142. uint64_t cnt:48;
  4143. uint64_t reserved_48_63:16;
  4144. #endif
  4145. } s;
  4146. struct cvmx_gmxx_rxx_stats_octs_s cn30xx;
  4147. struct cvmx_gmxx_rxx_stats_octs_s cn31xx;
  4148. struct cvmx_gmxx_rxx_stats_octs_s cn38xx;
  4149. struct cvmx_gmxx_rxx_stats_octs_s cn38xxp2;
  4150. struct cvmx_gmxx_rxx_stats_octs_s cn50xx;
  4151. struct cvmx_gmxx_rxx_stats_octs_s cn52xx;
  4152. struct cvmx_gmxx_rxx_stats_octs_s cn52xxp1;
  4153. struct cvmx_gmxx_rxx_stats_octs_s cn56xx;
  4154. struct cvmx_gmxx_rxx_stats_octs_s cn56xxp1;
  4155. struct cvmx_gmxx_rxx_stats_octs_s cn58xx;
  4156. struct cvmx_gmxx_rxx_stats_octs_s cn58xxp1;
  4157. struct cvmx_gmxx_rxx_stats_octs_s cn61xx;
  4158. struct cvmx_gmxx_rxx_stats_octs_s cn63xx;
  4159. struct cvmx_gmxx_rxx_stats_octs_s cn63xxp1;
  4160. struct cvmx_gmxx_rxx_stats_octs_s cn66xx;
  4161. struct cvmx_gmxx_rxx_stats_octs_s cn68xx;
  4162. struct cvmx_gmxx_rxx_stats_octs_s cn68xxp1;
  4163. struct cvmx_gmxx_rxx_stats_octs_s cnf71xx;
  4164. };
  4165. union cvmx_gmxx_rxx_stats_octs_ctl {
  4166. uint64_t u64;
  4167. struct cvmx_gmxx_rxx_stats_octs_ctl_s {
  4168. #ifdef __BIG_ENDIAN_BITFIELD
  4169. uint64_t reserved_48_63:16;
  4170. uint64_t cnt:48;
  4171. #else
  4172. uint64_t cnt:48;
  4173. uint64_t reserved_48_63:16;
  4174. #endif
  4175. } s;
  4176. struct cvmx_gmxx_rxx_stats_octs_ctl_s cn30xx;
  4177. struct cvmx_gmxx_rxx_stats_octs_ctl_s cn31xx;
  4178. struct cvmx_gmxx_rxx_stats_octs_ctl_s cn38xx;
  4179. struct cvmx_gmxx_rxx_stats_octs_ctl_s cn38xxp2;
  4180. struct cvmx_gmxx_rxx_stats_octs_ctl_s cn50xx;
  4181. struct cvmx_gmxx_rxx_stats_octs_ctl_s cn52xx;
  4182. struct cvmx_gmxx_rxx_stats_octs_ctl_s cn52xxp1;
  4183. struct cvmx_gmxx_rxx_stats_octs_ctl_s cn56xx;
  4184. struct cvmx_gmxx_rxx_stats_octs_ctl_s cn56xxp1;
  4185. struct cvmx_gmxx_rxx_stats_octs_ctl_s cn58xx;
  4186. struct cvmx_gmxx_rxx_stats_octs_ctl_s cn58xxp1;
  4187. struct cvmx_gmxx_rxx_stats_octs_ctl_s cn61xx;
  4188. struct cvmx_gmxx_rxx_stats_octs_ctl_s cn63xx;
  4189. struct cvmx_gmxx_rxx_stats_octs_ctl_s cn63xxp1;
  4190. struct cvmx_gmxx_rxx_stats_octs_ctl_s cn66xx;
  4191. struct cvmx_gmxx_rxx_stats_octs_ctl_s cn68xx;
  4192. struct cvmx_gmxx_rxx_stats_octs_ctl_s cn68xxp1;
  4193. struct cvmx_gmxx_rxx_stats_octs_ctl_s cnf71xx;
  4194. };
  4195. union cvmx_gmxx_rxx_stats_octs_dmac {
  4196. uint64_t u64;
  4197. struct cvmx_gmxx_rxx_stats_octs_dmac_s {
  4198. #ifdef __BIG_ENDIAN_BITFIELD
  4199. uint64_t reserved_48_63:16;
  4200. uint64_t cnt:48;
  4201. #else
  4202. uint64_t cnt:48;
  4203. uint64_t reserved_48_63:16;
  4204. #endif
  4205. } s;
  4206. struct cvmx_gmxx_rxx_stats_octs_dmac_s cn30xx;
  4207. struct cvmx_gmxx_rxx_stats_octs_dmac_s cn31xx;
  4208. struct cvmx_gmxx_rxx_stats_octs_dmac_s cn38xx;
  4209. struct cvmx_gmxx_rxx_stats_octs_dmac_s cn38xxp2;
  4210. struct cvmx_gmxx_rxx_stats_octs_dmac_s cn50xx;
  4211. struct cvmx_gmxx_rxx_stats_octs_dmac_s cn52xx;
  4212. struct cvmx_gmxx_rxx_stats_octs_dmac_s cn52xxp1;
  4213. struct cvmx_gmxx_rxx_stats_octs_dmac_s cn56xx;
  4214. struct cvmx_gmxx_rxx_stats_octs_dmac_s cn56xxp1;
  4215. struct cvmx_gmxx_rxx_stats_octs_dmac_s cn58xx;
  4216. struct cvmx_gmxx_rxx_stats_octs_dmac_s cn58xxp1;
  4217. struct cvmx_gmxx_rxx_stats_octs_dmac_s cn61xx;
  4218. struct cvmx_gmxx_rxx_stats_octs_dmac_s cn63xx;
  4219. struct cvmx_gmxx_rxx_stats_octs_dmac_s cn63xxp1;
  4220. struct cvmx_gmxx_rxx_stats_octs_dmac_s cn66xx;
  4221. struct cvmx_gmxx_rxx_stats_octs_dmac_s cn68xx;
  4222. struct cvmx_gmxx_rxx_stats_octs_dmac_s cn68xxp1;
  4223. struct cvmx_gmxx_rxx_stats_octs_dmac_s cnf71xx;
  4224. };
  4225. union cvmx_gmxx_rxx_stats_octs_drp {
  4226. uint64_t u64;
  4227. struct cvmx_gmxx_rxx_stats_octs_drp_s {
  4228. #ifdef __BIG_ENDIAN_BITFIELD
  4229. uint64_t reserved_48_63:16;
  4230. uint64_t cnt:48;
  4231. #else
  4232. uint64_t cnt:48;
  4233. uint64_t reserved_48_63:16;
  4234. #endif
  4235. } s;
  4236. struct cvmx_gmxx_rxx_stats_octs_drp_s cn30xx;
  4237. struct cvmx_gmxx_rxx_stats_octs_drp_s cn31xx;
  4238. struct cvmx_gmxx_rxx_stats_octs_drp_s cn38xx;
  4239. struct cvmx_gmxx_rxx_stats_octs_drp_s cn38xxp2;
  4240. struct cvmx_gmxx_rxx_stats_octs_drp_s cn50xx;
  4241. struct cvmx_gmxx_rxx_stats_octs_drp_s cn52xx;
  4242. struct cvmx_gmxx_rxx_stats_octs_drp_s cn52xxp1;
  4243. struct cvmx_gmxx_rxx_stats_octs_drp_s cn56xx;
  4244. struct cvmx_gmxx_rxx_stats_octs_drp_s cn56xxp1;
  4245. struct cvmx_gmxx_rxx_stats_octs_drp_s cn58xx;
  4246. struct cvmx_gmxx_rxx_stats_octs_drp_s cn58xxp1;
  4247. struct cvmx_gmxx_rxx_stats_octs_drp_s cn61xx;
  4248. struct cvmx_gmxx_rxx_stats_octs_drp_s cn63xx;
  4249. struct cvmx_gmxx_rxx_stats_octs_drp_s cn63xxp1;
  4250. struct cvmx_gmxx_rxx_stats_octs_drp_s cn66xx;
  4251. struct cvmx_gmxx_rxx_stats_octs_drp_s cn68xx;
  4252. struct cvmx_gmxx_rxx_stats_octs_drp_s cn68xxp1;
  4253. struct cvmx_gmxx_rxx_stats_octs_drp_s cnf71xx;
  4254. };
  4255. union cvmx_gmxx_rxx_stats_pkts {
  4256. uint64_t u64;
  4257. struct cvmx_gmxx_rxx_stats_pkts_s {
  4258. #ifdef __BIG_ENDIAN_BITFIELD
  4259. uint64_t reserved_32_63:32;
  4260. uint64_t cnt:32;
  4261. #else
  4262. uint64_t cnt:32;
  4263. uint64_t reserved_32_63:32;
  4264. #endif
  4265. } s;
  4266. struct cvmx_gmxx_rxx_stats_pkts_s cn30xx;
  4267. struct cvmx_gmxx_rxx_stats_pkts_s cn31xx;
  4268. struct cvmx_gmxx_rxx_stats_pkts_s cn38xx;
  4269. struct cvmx_gmxx_rxx_stats_pkts_s cn38xxp2;
  4270. struct cvmx_gmxx_rxx_stats_pkts_s cn50xx;
  4271. struct cvmx_gmxx_rxx_stats_pkts_s cn52xx;
  4272. struct cvmx_gmxx_rxx_stats_pkts_s cn52xxp1;
  4273. struct cvmx_gmxx_rxx_stats_pkts_s cn56xx;
  4274. struct cvmx_gmxx_rxx_stats_pkts_s cn56xxp1;
  4275. struct cvmx_gmxx_rxx_stats_pkts_s cn58xx;
  4276. struct cvmx_gmxx_rxx_stats_pkts_s cn58xxp1;
  4277. struct cvmx_gmxx_rxx_stats_pkts_s cn61xx;
  4278. struct cvmx_gmxx_rxx_stats_pkts_s cn63xx;
  4279. struct cvmx_gmxx_rxx_stats_pkts_s cn63xxp1;
  4280. struct cvmx_gmxx_rxx_stats_pkts_s cn66xx;
  4281. struct cvmx_gmxx_rxx_stats_pkts_s cn68xx;
  4282. struct cvmx_gmxx_rxx_stats_pkts_s cn68xxp1;
  4283. struct cvmx_gmxx_rxx_stats_pkts_s cnf71xx;
  4284. };
  4285. union cvmx_gmxx_rxx_stats_pkts_bad {
  4286. uint64_t u64;
  4287. struct cvmx_gmxx_rxx_stats_pkts_bad_s {
  4288. #ifdef __BIG_ENDIAN_BITFIELD
  4289. uint64_t reserved_32_63:32;
  4290. uint64_t cnt:32;
  4291. #else
  4292. uint64_t cnt:32;
  4293. uint64_t reserved_32_63:32;
  4294. #endif
  4295. } s;
  4296. struct cvmx_gmxx_rxx_stats_pkts_bad_s cn30xx;
  4297. struct cvmx_gmxx_rxx_stats_pkts_bad_s cn31xx;
  4298. struct cvmx_gmxx_rxx_stats_pkts_bad_s cn38xx;
  4299. struct cvmx_gmxx_rxx_stats_pkts_bad_s cn38xxp2;
  4300. struct cvmx_gmxx_rxx_stats_pkts_bad_s cn50xx;
  4301. struct cvmx_gmxx_rxx_stats_pkts_bad_s cn52xx;
  4302. struct cvmx_gmxx_rxx_stats_pkts_bad_s cn52xxp1;
  4303. struct cvmx_gmxx_rxx_stats_pkts_bad_s cn56xx;
  4304. struct cvmx_gmxx_rxx_stats_pkts_bad_s cn56xxp1;
  4305. struct cvmx_gmxx_rxx_stats_pkts_bad_s cn58xx;
  4306. struct cvmx_gmxx_rxx_stats_pkts_bad_s cn58xxp1;
  4307. struct cvmx_gmxx_rxx_stats_pkts_bad_s cn61xx;
  4308. struct cvmx_gmxx_rxx_stats_pkts_bad_s cn63xx;
  4309. struct cvmx_gmxx_rxx_stats_pkts_bad_s cn63xxp1;
  4310. struct cvmx_gmxx_rxx_stats_pkts_bad_s cn66xx;
  4311. struct cvmx_gmxx_rxx_stats_pkts_bad_s cn68xx;
  4312. struct cvmx_gmxx_rxx_stats_pkts_bad_s cn68xxp1;
  4313. struct cvmx_gmxx_rxx_stats_pkts_bad_s cnf71xx;
  4314. };
  4315. union cvmx_gmxx_rxx_stats_pkts_ctl {
  4316. uint64_t u64;
  4317. struct cvmx_gmxx_rxx_stats_pkts_ctl_s {
  4318. #ifdef __BIG_ENDIAN_BITFIELD
  4319. uint64_t reserved_32_63:32;
  4320. uint64_t cnt:32;
  4321. #else
  4322. uint64_t cnt:32;
  4323. uint64_t reserved_32_63:32;
  4324. #endif
  4325. } s;
  4326. struct cvmx_gmxx_rxx_stats_pkts_ctl_s cn30xx;
  4327. struct cvmx_gmxx_rxx_stats_pkts_ctl_s cn31xx;
  4328. struct cvmx_gmxx_rxx_stats_pkts_ctl_s cn38xx;
  4329. struct cvmx_gmxx_rxx_stats_pkts_ctl_s cn38xxp2;
  4330. struct cvmx_gmxx_rxx_stats_pkts_ctl_s cn50xx;
  4331. struct cvmx_gmxx_rxx_stats_pkts_ctl_s cn52xx;
  4332. struct cvmx_gmxx_rxx_stats_pkts_ctl_s cn52xxp1;
  4333. struct cvmx_gmxx_rxx_stats_pkts_ctl_s cn56xx;
  4334. struct cvmx_gmxx_rxx_stats_pkts_ctl_s cn56xxp1;
  4335. struct cvmx_gmxx_rxx_stats_pkts_ctl_s cn58xx;
  4336. struct cvmx_gmxx_rxx_stats_pkts_ctl_s cn58xxp1;
  4337. struct cvmx_gmxx_rxx_stats_pkts_ctl_s cn61xx;
  4338. struct cvmx_gmxx_rxx_stats_pkts_ctl_s cn63xx;
  4339. struct cvmx_gmxx_rxx_stats_pkts_ctl_s cn63xxp1;
  4340. struct cvmx_gmxx_rxx_stats_pkts_ctl_s cn66xx;
  4341. struct cvmx_gmxx_rxx_stats_pkts_ctl_s cn68xx;
  4342. struct cvmx_gmxx_rxx_stats_pkts_ctl_s cn68xxp1;
  4343. struct cvmx_gmxx_rxx_stats_pkts_ctl_s cnf71xx;
  4344. };
  4345. union cvmx_gmxx_rxx_stats_pkts_dmac {
  4346. uint64_t u64;
  4347. struct cvmx_gmxx_rxx_stats_pkts_dmac_s {
  4348. #ifdef __BIG_ENDIAN_BITFIELD
  4349. uint64_t reserved_32_63:32;
  4350. uint64_t cnt:32;
  4351. #else
  4352. uint64_t cnt:32;
  4353. uint64_t reserved_32_63:32;
  4354. #endif
  4355. } s;
  4356. struct cvmx_gmxx_rxx_stats_pkts_dmac_s cn30xx;
  4357. struct cvmx_gmxx_rxx_stats_pkts_dmac_s cn31xx;
  4358. struct cvmx_gmxx_rxx_stats_pkts_dmac_s cn38xx;
  4359. struct cvmx_gmxx_rxx_stats_pkts_dmac_s cn38xxp2;
  4360. struct cvmx_gmxx_rxx_stats_pkts_dmac_s cn50xx;
  4361. struct cvmx_gmxx_rxx_stats_pkts_dmac_s cn52xx;
  4362. struct cvmx_gmxx_rxx_stats_pkts_dmac_s cn52xxp1;
  4363. struct cvmx_gmxx_rxx_stats_pkts_dmac_s cn56xx;
  4364. struct cvmx_gmxx_rxx_stats_pkts_dmac_s cn56xxp1;
  4365. struct cvmx_gmxx_rxx_stats_pkts_dmac_s cn58xx;
  4366. struct cvmx_gmxx_rxx_stats_pkts_dmac_s cn58xxp1;
  4367. struct cvmx_gmxx_rxx_stats_pkts_dmac_s cn61xx;
  4368. struct cvmx_gmxx_rxx_stats_pkts_dmac_s cn63xx;
  4369. struct cvmx_gmxx_rxx_stats_pkts_dmac_s cn63xxp1;
  4370. struct cvmx_gmxx_rxx_stats_pkts_dmac_s cn66xx;
  4371. struct cvmx_gmxx_rxx_stats_pkts_dmac_s cn68xx;
  4372. struct cvmx_gmxx_rxx_stats_pkts_dmac_s cn68xxp1;
  4373. struct cvmx_gmxx_rxx_stats_pkts_dmac_s cnf71xx;
  4374. };
  4375. union cvmx_gmxx_rxx_stats_pkts_drp {
  4376. uint64_t u64;
  4377. struct cvmx_gmxx_rxx_stats_pkts_drp_s {
  4378. #ifdef __BIG_ENDIAN_BITFIELD
  4379. uint64_t reserved_32_63:32;
  4380. uint64_t cnt:32;
  4381. #else
  4382. uint64_t cnt:32;
  4383. uint64_t reserved_32_63:32;
  4384. #endif
  4385. } s;
  4386. struct cvmx_gmxx_rxx_stats_pkts_drp_s cn30xx;
  4387. struct cvmx_gmxx_rxx_stats_pkts_drp_s cn31xx;
  4388. struct cvmx_gmxx_rxx_stats_pkts_drp_s cn38xx;
  4389. struct cvmx_gmxx_rxx_stats_pkts_drp_s cn38xxp2;
  4390. struct cvmx_gmxx_rxx_stats_pkts_drp_s cn50xx;
  4391. struct cvmx_gmxx_rxx_stats_pkts_drp_s cn52xx;
  4392. struct cvmx_gmxx_rxx_stats_pkts_drp_s cn52xxp1;
  4393. struct cvmx_gmxx_rxx_stats_pkts_drp_s cn56xx;
  4394. struct cvmx_gmxx_rxx_stats_pkts_drp_s cn56xxp1;
  4395. struct cvmx_gmxx_rxx_stats_pkts_drp_s cn58xx;
  4396. struct cvmx_gmxx_rxx_stats_pkts_drp_s cn58xxp1;
  4397. struct cvmx_gmxx_rxx_stats_pkts_drp_s cn61xx;
  4398. struct cvmx_gmxx_rxx_stats_pkts_drp_s cn63xx;
  4399. struct cvmx_gmxx_rxx_stats_pkts_drp_s cn63xxp1;
  4400. struct cvmx_gmxx_rxx_stats_pkts_drp_s cn66xx;
  4401. struct cvmx_gmxx_rxx_stats_pkts_drp_s cn68xx;
  4402. struct cvmx_gmxx_rxx_stats_pkts_drp_s cn68xxp1;
  4403. struct cvmx_gmxx_rxx_stats_pkts_drp_s cnf71xx;
  4404. };
  4405. union cvmx_gmxx_rxx_udd_skp {
  4406. uint64_t u64;
  4407. struct cvmx_gmxx_rxx_udd_skp_s {
  4408. #ifdef __BIG_ENDIAN_BITFIELD
  4409. uint64_t reserved_9_63:55;
  4410. uint64_t fcssel:1;
  4411. uint64_t reserved_7_7:1;
  4412. uint64_t len:7;
  4413. #else
  4414. uint64_t len:7;
  4415. uint64_t reserved_7_7:1;
  4416. uint64_t fcssel:1;
  4417. uint64_t reserved_9_63:55;
  4418. #endif
  4419. } s;
  4420. struct cvmx_gmxx_rxx_udd_skp_s cn30xx;
  4421. struct cvmx_gmxx_rxx_udd_skp_s cn31xx;
  4422. struct cvmx_gmxx_rxx_udd_skp_s cn38xx;
  4423. struct cvmx_gmxx_rxx_udd_skp_s cn38xxp2;
  4424. struct cvmx_gmxx_rxx_udd_skp_s cn50xx;
  4425. struct cvmx_gmxx_rxx_udd_skp_s cn52xx;
  4426. struct cvmx_gmxx_rxx_udd_skp_s cn52xxp1;
  4427. struct cvmx_gmxx_rxx_udd_skp_s cn56xx;
  4428. struct cvmx_gmxx_rxx_udd_skp_s cn56xxp1;
  4429. struct cvmx_gmxx_rxx_udd_skp_s cn58xx;
  4430. struct cvmx_gmxx_rxx_udd_skp_s cn58xxp1;
  4431. struct cvmx_gmxx_rxx_udd_skp_s cn61xx;
  4432. struct cvmx_gmxx_rxx_udd_skp_s cn63xx;
  4433. struct cvmx_gmxx_rxx_udd_skp_s cn63xxp1;
  4434. struct cvmx_gmxx_rxx_udd_skp_s cn66xx;
  4435. struct cvmx_gmxx_rxx_udd_skp_s cn68xx;
  4436. struct cvmx_gmxx_rxx_udd_skp_s cn68xxp1;
  4437. struct cvmx_gmxx_rxx_udd_skp_s cnf71xx;
  4438. };
  4439. union cvmx_gmxx_rx_bp_dropx {
  4440. uint64_t u64;
  4441. struct cvmx_gmxx_rx_bp_dropx_s {
  4442. #ifdef __BIG_ENDIAN_BITFIELD
  4443. uint64_t reserved_6_63:58;
  4444. uint64_t mark:6;
  4445. #else
  4446. uint64_t mark:6;
  4447. uint64_t reserved_6_63:58;
  4448. #endif
  4449. } s;
  4450. struct cvmx_gmxx_rx_bp_dropx_s cn30xx;
  4451. struct cvmx_gmxx_rx_bp_dropx_s cn31xx;
  4452. struct cvmx_gmxx_rx_bp_dropx_s cn38xx;
  4453. struct cvmx_gmxx_rx_bp_dropx_s cn38xxp2;
  4454. struct cvmx_gmxx_rx_bp_dropx_s cn50xx;
  4455. struct cvmx_gmxx_rx_bp_dropx_s cn52xx;
  4456. struct cvmx_gmxx_rx_bp_dropx_s cn52xxp1;
  4457. struct cvmx_gmxx_rx_bp_dropx_s cn56xx;
  4458. struct cvmx_gmxx_rx_bp_dropx_s cn56xxp1;
  4459. struct cvmx_gmxx_rx_bp_dropx_s cn58xx;
  4460. struct cvmx_gmxx_rx_bp_dropx_s cn58xxp1;
  4461. struct cvmx_gmxx_rx_bp_dropx_s cn61xx;
  4462. struct cvmx_gmxx_rx_bp_dropx_s cn63xx;
  4463. struct cvmx_gmxx_rx_bp_dropx_s cn63xxp1;
  4464. struct cvmx_gmxx_rx_bp_dropx_s cn66xx;
  4465. struct cvmx_gmxx_rx_bp_dropx_s cn68xx;
  4466. struct cvmx_gmxx_rx_bp_dropx_s cn68xxp1;
  4467. struct cvmx_gmxx_rx_bp_dropx_s cnf71xx;
  4468. };
  4469. union cvmx_gmxx_rx_bp_offx {
  4470. uint64_t u64;
  4471. struct cvmx_gmxx_rx_bp_offx_s {
  4472. #ifdef __BIG_ENDIAN_BITFIELD
  4473. uint64_t reserved_6_63:58;
  4474. uint64_t mark:6;
  4475. #else
  4476. uint64_t mark:6;
  4477. uint64_t reserved_6_63:58;
  4478. #endif
  4479. } s;
  4480. struct cvmx_gmxx_rx_bp_offx_s cn30xx;
  4481. struct cvmx_gmxx_rx_bp_offx_s cn31xx;
  4482. struct cvmx_gmxx_rx_bp_offx_s cn38xx;
  4483. struct cvmx_gmxx_rx_bp_offx_s cn38xxp2;
  4484. struct cvmx_gmxx_rx_bp_offx_s cn50xx;
  4485. struct cvmx_gmxx_rx_bp_offx_s cn52xx;
  4486. struct cvmx_gmxx_rx_bp_offx_s cn52xxp1;
  4487. struct cvmx_gmxx_rx_bp_offx_s cn56xx;
  4488. struct cvmx_gmxx_rx_bp_offx_s cn56xxp1;
  4489. struct cvmx_gmxx_rx_bp_offx_s cn58xx;
  4490. struct cvmx_gmxx_rx_bp_offx_s cn58xxp1;
  4491. struct cvmx_gmxx_rx_bp_offx_s cn61xx;
  4492. struct cvmx_gmxx_rx_bp_offx_s cn63xx;
  4493. struct cvmx_gmxx_rx_bp_offx_s cn63xxp1;
  4494. struct cvmx_gmxx_rx_bp_offx_s cn66xx;
  4495. struct cvmx_gmxx_rx_bp_offx_s cn68xx;
  4496. struct cvmx_gmxx_rx_bp_offx_s cn68xxp1;
  4497. struct cvmx_gmxx_rx_bp_offx_s cnf71xx;
  4498. };
  4499. union cvmx_gmxx_rx_bp_onx {
  4500. uint64_t u64;
  4501. struct cvmx_gmxx_rx_bp_onx_s {
  4502. #ifdef __BIG_ENDIAN_BITFIELD
  4503. uint64_t reserved_11_63:53;
  4504. uint64_t mark:11;
  4505. #else
  4506. uint64_t mark:11;
  4507. uint64_t reserved_11_63:53;
  4508. #endif
  4509. } s;
  4510. struct cvmx_gmxx_rx_bp_onx_cn30xx {
  4511. #ifdef __BIG_ENDIAN_BITFIELD
  4512. uint64_t reserved_9_63:55;
  4513. uint64_t mark:9;
  4514. #else
  4515. uint64_t mark:9;
  4516. uint64_t reserved_9_63:55;
  4517. #endif
  4518. } cn30xx;
  4519. struct cvmx_gmxx_rx_bp_onx_cn30xx cn31xx;
  4520. struct cvmx_gmxx_rx_bp_onx_cn30xx cn38xx;
  4521. struct cvmx_gmxx_rx_bp_onx_cn30xx cn38xxp2;
  4522. struct cvmx_gmxx_rx_bp_onx_cn30xx cn50xx;
  4523. struct cvmx_gmxx_rx_bp_onx_cn30xx cn52xx;
  4524. struct cvmx_gmxx_rx_bp_onx_cn30xx cn52xxp1;
  4525. struct cvmx_gmxx_rx_bp_onx_cn30xx cn56xx;
  4526. struct cvmx_gmxx_rx_bp_onx_cn30xx cn56xxp1;
  4527. struct cvmx_gmxx_rx_bp_onx_cn30xx cn58xx;
  4528. struct cvmx_gmxx_rx_bp_onx_cn30xx cn58xxp1;
  4529. struct cvmx_gmxx_rx_bp_onx_cn30xx cn61xx;
  4530. struct cvmx_gmxx_rx_bp_onx_cn30xx cn63xx;
  4531. struct cvmx_gmxx_rx_bp_onx_cn30xx cn63xxp1;
  4532. struct cvmx_gmxx_rx_bp_onx_cn30xx cn66xx;
  4533. struct cvmx_gmxx_rx_bp_onx_s cn68xx;
  4534. struct cvmx_gmxx_rx_bp_onx_s cn68xxp1;
  4535. struct cvmx_gmxx_rx_bp_onx_cn30xx cnf71xx;
  4536. };
  4537. union cvmx_gmxx_rx_hg2_status {
  4538. uint64_t u64;
  4539. struct cvmx_gmxx_rx_hg2_status_s {
  4540. #ifdef __BIG_ENDIAN_BITFIELD
  4541. uint64_t reserved_48_63:16;
  4542. uint64_t phtim2go:16;
  4543. uint64_t xof:16;
  4544. uint64_t lgtim2go:16;
  4545. #else
  4546. uint64_t lgtim2go:16;
  4547. uint64_t xof:16;
  4548. uint64_t phtim2go:16;
  4549. uint64_t reserved_48_63:16;
  4550. #endif
  4551. } s;
  4552. struct cvmx_gmxx_rx_hg2_status_s cn52xx;
  4553. struct cvmx_gmxx_rx_hg2_status_s cn52xxp1;
  4554. struct cvmx_gmxx_rx_hg2_status_s cn56xx;
  4555. struct cvmx_gmxx_rx_hg2_status_s cn61xx;
  4556. struct cvmx_gmxx_rx_hg2_status_s cn63xx;
  4557. struct cvmx_gmxx_rx_hg2_status_s cn63xxp1;
  4558. struct cvmx_gmxx_rx_hg2_status_s cn66xx;
  4559. struct cvmx_gmxx_rx_hg2_status_s cn68xx;
  4560. struct cvmx_gmxx_rx_hg2_status_s cn68xxp1;
  4561. struct cvmx_gmxx_rx_hg2_status_s cnf71xx;
  4562. };
  4563. union cvmx_gmxx_rx_pass_en {
  4564. uint64_t u64;
  4565. struct cvmx_gmxx_rx_pass_en_s {
  4566. #ifdef __BIG_ENDIAN_BITFIELD
  4567. uint64_t reserved_16_63:48;
  4568. uint64_t en:16;
  4569. #else
  4570. uint64_t en:16;
  4571. uint64_t reserved_16_63:48;
  4572. #endif
  4573. } s;
  4574. struct cvmx_gmxx_rx_pass_en_s cn38xx;
  4575. struct cvmx_gmxx_rx_pass_en_s cn38xxp2;
  4576. struct cvmx_gmxx_rx_pass_en_s cn58xx;
  4577. struct cvmx_gmxx_rx_pass_en_s cn58xxp1;
  4578. };
  4579. union cvmx_gmxx_rx_pass_mapx {
  4580. uint64_t u64;
  4581. struct cvmx_gmxx_rx_pass_mapx_s {
  4582. #ifdef __BIG_ENDIAN_BITFIELD
  4583. uint64_t reserved_4_63:60;
  4584. uint64_t dprt:4;
  4585. #else
  4586. uint64_t dprt:4;
  4587. uint64_t reserved_4_63:60;
  4588. #endif
  4589. } s;
  4590. struct cvmx_gmxx_rx_pass_mapx_s cn38xx;
  4591. struct cvmx_gmxx_rx_pass_mapx_s cn38xxp2;
  4592. struct cvmx_gmxx_rx_pass_mapx_s cn58xx;
  4593. struct cvmx_gmxx_rx_pass_mapx_s cn58xxp1;
  4594. };
  4595. union cvmx_gmxx_rx_prt_info {
  4596. uint64_t u64;
  4597. struct cvmx_gmxx_rx_prt_info_s {
  4598. #ifdef __BIG_ENDIAN_BITFIELD
  4599. uint64_t reserved_32_63:32;
  4600. uint64_t drop:16;
  4601. uint64_t commit:16;
  4602. #else
  4603. uint64_t commit:16;
  4604. uint64_t drop:16;
  4605. uint64_t reserved_32_63:32;
  4606. #endif
  4607. } s;
  4608. struct cvmx_gmxx_rx_prt_info_cn30xx {
  4609. #ifdef __BIG_ENDIAN_BITFIELD
  4610. uint64_t reserved_19_63:45;
  4611. uint64_t drop:3;
  4612. uint64_t reserved_3_15:13;
  4613. uint64_t commit:3;
  4614. #else
  4615. uint64_t commit:3;
  4616. uint64_t reserved_3_15:13;
  4617. uint64_t drop:3;
  4618. uint64_t reserved_19_63:45;
  4619. #endif
  4620. } cn30xx;
  4621. struct cvmx_gmxx_rx_prt_info_cn30xx cn31xx;
  4622. struct cvmx_gmxx_rx_prt_info_s cn38xx;
  4623. struct cvmx_gmxx_rx_prt_info_cn30xx cn50xx;
  4624. struct cvmx_gmxx_rx_prt_info_cn52xx {
  4625. #ifdef __BIG_ENDIAN_BITFIELD
  4626. uint64_t reserved_20_63:44;
  4627. uint64_t drop:4;
  4628. uint64_t reserved_4_15:12;
  4629. uint64_t commit:4;
  4630. #else
  4631. uint64_t commit:4;
  4632. uint64_t reserved_4_15:12;
  4633. uint64_t drop:4;
  4634. uint64_t reserved_20_63:44;
  4635. #endif
  4636. } cn52xx;
  4637. struct cvmx_gmxx_rx_prt_info_cn52xx cn52xxp1;
  4638. struct cvmx_gmxx_rx_prt_info_cn52xx cn56xx;
  4639. struct cvmx_gmxx_rx_prt_info_cn52xx cn56xxp1;
  4640. struct cvmx_gmxx_rx_prt_info_s cn58xx;
  4641. struct cvmx_gmxx_rx_prt_info_s cn58xxp1;
  4642. struct cvmx_gmxx_rx_prt_info_cn52xx cn61xx;
  4643. struct cvmx_gmxx_rx_prt_info_cn52xx cn63xx;
  4644. struct cvmx_gmxx_rx_prt_info_cn52xx cn63xxp1;
  4645. struct cvmx_gmxx_rx_prt_info_cn52xx cn66xx;
  4646. struct cvmx_gmxx_rx_prt_info_cn52xx cn68xx;
  4647. struct cvmx_gmxx_rx_prt_info_cn52xx cn68xxp1;
  4648. struct cvmx_gmxx_rx_prt_info_cnf71xx {
  4649. #ifdef __BIG_ENDIAN_BITFIELD
  4650. uint64_t reserved_18_63:46;
  4651. uint64_t drop:2;
  4652. uint64_t reserved_2_15:14;
  4653. uint64_t commit:2;
  4654. #else
  4655. uint64_t commit:2;
  4656. uint64_t reserved_2_15:14;
  4657. uint64_t drop:2;
  4658. uint64_t reserved_18_63:46;
  4659. #endif
  4660. } cnf71xx;
  4661. };
  4662. union cvmx_gmxx_rx_prts {
  4663. uint64_t u64;
  4664. struct cvmx_gmxx_rx_prts_s {
  4665. #ifdef __BIG_ENDIAN_BITFIELD
  4666. uint64_t reserved_3_63:61;
  4667. uint64_t prts:3;
  4668. #else
  4669. uint64_t prts:3;
  4670. uint64_t reserved_3_63:61;
  4671. #endif
  4672. } s;
  4673. struct cvmx_gmxx_rx_prts_s cn30xx;
  4674. struct cvmx_gmxx_rx_prts_s cn31xx;
  4675. struct cvmx_gmxx_rx_prts_s cn38xx;
  4676. struct cvmx_gmxx_rx_prts_s cn38xxp2;
  4677. struct cvmx_gmxx_rx_prts_s cn50xx;
  4678. struct cvmx_gmxx_rx_prts_s cn52xx;
  4679. struct cvmx_gmxx_rx_prts_s cn52xxp1;
  4680. struct cvmx_gmxx_rx_prts_s cn56xx;
  4681. struct cvmx_gmxx_rx_prts_s cn56xxp1;
  4682. struct cvmx_gmxx_rx_prts_s cn58xx;
  4683. struct cvmx_gmxx_rx_prts_s cn58xxp1;
  4684. struct cvmx_gmxx_rx_prts_s cn61xx;
  4685. struct cvmx_gmxx_rx_prts_s cn63xx;
  4686. struct cvmx_gmxx_rx_prts_s cn63xxp1;
  4687. struct cvmx_gmxx_rx_prts_s cn66xx;
  4688. struct cvmx_gmxx_rx_prts_s cn68xx;
  4689. struct cvmx_gmxx_rx_prts_s cn68xxp1;
  4690. struct cvmx_gmxx_rx_prts_s cnf71xx;
  4691. };
  4692. union cvmx_gmxx_rx_tx_status {
  4693. uint64_t u64;
  4694. struct cvmx_gmxx_rx_tx_status_s {
  4695. #ifdef __BIG_ENDIAN_BITFIELD
  4696. uint64_t reserved_7_63:57;
  4697. uint64_t tx:3;
  4698. uint64_t reserved_3_3:1;
  4699. uint64_t rx:3;
  4700. #else
  4701. uint64_t rx:3;
  4702. uint64_t reserved_3_3:1;
  4703. uint64_t tx:3;
  4704. uint64_t reserved_7_63:57;
  4705. #endif
  4706. } s;
  4707. struct cvmx_gmxx_rx_tx_status_s cn30xx;
  4708. struct cvmx_gmxx_rx_tx_status_s cn31xx;
  4709. struct cvmx_gmxx_rx_tx_status_s cn50xx;
  4710. };
  4711. union cvmx_gmxx_rx_xaui_bad_col {
  4712. uint64_t u64;
  4713. struct cvmx_gmxx_rx_xaui_bad_col_s {
  4714. #ifdef __BIG_ENDIAN_BITFIELD
  4715. uint64_t reserved_40_63:24;
  4716. uint64_t val:1;
  4717. uint64_t state:3;
  4718. uint64_t lane_rxc:4;
  4719. uint64_t lane_rxd:32;
  4720. #else
  4721. uint64_t lane_rxd:32;
  4722. uint64_t lane_rxc:4;
  4723. uint64_t state:3;
  4724. uint64_t val:1;
  4725. uint64_t reserved_40_63:24;
  4726. #endif
  4727. } s;
  4728. struct cvmx_gmxx_rx_xaui_bad_col_s cn52xx;
  4729. struct cvmx_gmxx_rx_xaui_bad_col_s cn52xxp1;
  4730. struct cvmx_gmxx_rx_xaui_bad_col_s cn56xx;
  4731. struct cvmx_gmxx_rx_xaui_bad_col_s cn56xxp1;
  4732. struct cvmx_gmxx_rx_xaui_bad_col_s cn61xx;
  4733. struct cvmx_gmxx_rx_xaui_bad_col_s cn63xx;
  4734. struct cvmx_gmxx_rx_xaui_bad_col_s cn63xxp1;
  4735. struct cvmx_gmxx_rx_xaui_bad_col_s cn66xx;
  4736. struct cvmx_gmxx_rx_xaui_bad_col_s cn68xx;
  4737. struct cvmx_gmxx_rx_xaui_bad_col_s cn68xxp1;
  4738. struct cvmx_gmxx_rx_xaui_bad_col_s cnf71xx;
  4739. };
  4740. union cvmx_gmxx_rx_xaui_ctl {
  4741. uint64_t u64;
  4742. struct cvmx_gmxx_rx_xaui_ctl_s {
  4743. #ifdef __BIG_ENDIAN_BITFIELD
  4744. uint64_t reserved_2_63:62;
  4745. uint64_t status:2;
  4746. #else
  4747. uint64_t status:2;
  4748. uint64_t reserved_2_63:62;
  4749. #endif
  4750. } s;
  4751. struct cvmx_gmxx_rx_xaui_ctl_s cn52xx;
  4752. struct cvmx_gmxx_rx_xaui_ctl_s cn52xxp1;
  4753. struct cvmx_gmxx_rx_xaui_ctl_s cn56xx;
  4754. struct cvmx_gmxx_rx_xaui_ctl_s cn56xxp1;
  4755. struct cvmx_gmxx_rx_xaui_ctl_s cn61xx;
  4756. struct cvmx_gmxx_rx_xaui_ctl_s cn63xx;
  4757. struct cvmx_gmxx_rx_xaui_ctl_s cn63xxp1;
  4758. struct cvmx_gmxx_rx_xaui_ctl_s cn66xx;
  4759. struct cvmx_gmxx_rx_xaui_ctl_s cn68xx;
  4760. struct cvmx_gmxx_rx_xaui_ctl_s cn68xxp1;
  4761. struct cvmx_gmxx_rx_xaui_ctl_s cnf71xx;
  4762. };
  4763. union cvmx_gmxx_rxaui_ctl {
  4764. uint64_t u64;
  4765. struct cvmx_gmxx_rxaui_ctl_s {
  4766. #ifdef __BIG_ENDIAN_BITFIELD
  4767. uint64_t reserved_1_63:63;
  4768. uint64_t disparity:1;
  4769. #else
  4770. uint64_t disparity:1;
  4771. uint64_t reserved_1_63:63;
  4772. #endif
  4773. } s;
  4774. struct cvmx_gmxx_rxaui_ctl_s cn68xx;
  4775. struct cvmx_gmxx_rxaui_ctl_s cn68xxp1;
  4776. };
  4777. union cvmx_gmxx_smacx {
  4778. uint64_t u64;
  4779. struct cvmx_gmxx_smacx_s {
  4780. #ifdef __BIG_ENDIAN_BITFIELD
  4781. uint64_t reserved_48_63:16;
  4782. uint64_t smac:48;
  4783. #else
  4784. uint64_t smac:48;
  4785. uint64_t reserved_48_63:16;
  4786. #endif
  4787. } s;
  4788. struct cvmx_gmxx_smacx_s cn30xx;
  4789. struct cvmx_gmxx_smacx_s cn31xx;
  4790. struct cvmx_gmxx_smacx_s cn38xx;
  4791. struct cvmx_gmxx_smacx_s cn38xxp2;
  4792. struct cvmx_gmxx_smacx_s cn50xx;
  4793. struct cvmx_gmxx_smacx_s cn52xx;
  4794. struct cvmx_gmxx_smacx_s cn52xxp1;
  4795. struct cvmx_gmxx_smacx_s cn56xx;
  4796. struct cvmx_gmxx_smacx_s cn56xxp1;
  4797. struct cvmx_gmxx_smacx_s cn58xx;
  4798. struct cvmx_gmxx_smacx_s cn58xxp1;
  4799. struct cvmx_gmxx_smacx_s cn61xx;
  4800. struct cvmx_gmxx_smacx_s cn63xx;
  4801. struct cvmx_gmxx_smacx_s cn63xxp1;
  4802. struct cvmx_gmxx_smacx_s cn66xx;
  4803. struct cvmx_gmxx_smacx_s cn68xx;
  4804. struct cvmx_gmxx_smacx_s cn68xxp1;
  4805. struct cvmx_gmxx_smacx_s cnf71xx;
  4806. };
  4807. union cvmx_gmxx_soft_bist {
  4808. uint64_t u64;
  4809. struct cvmx_gmxx_soft_bist_s {
  4810. #ifdef __BIG_ENDIAN_BITFIELD
  4811. uint64_t reserved_2_63:62;
  4812. uint64_t start_bist:1;
  4813. uint64_t clear_bist:1;
  4814. #else
  4815. uint64_t clear_bist:1;
  4816. uint64_t start_bist:1;
  4817. uint64_t reserved_2_63:62;
  4818. #endif
  4819. } s;
  4820. struct cvmx_gmxx_soft_bist_s cn63xx;
  4821. struct cvmx_gmxx_soft_bist_s cn63xxp1;
  4822. struct cvmx_gmxx_soft_bist_s cn66xx;
  4823. struct cvmx_gmxx_soft_bist_s cn68xx;
  4824. struct cvmx_gmxx_soft_bist_s cn68xxp1;
  4825. };
  4826. union cvmx_gmxx_stat_bp {
  4827. uint64_t u64;
  4828. struct cvmx_gmxx_stat_bp_s {
  4829. #ifdef __BIG_ENDIAN_BITFIELD
  4830. uint64_t reserved_17_63:47;
  4831. uint64_t bp:1;
  4832. uint64_t cnt:16;
  4833. #else
  4834. uint64_t cnt:16;
  4835. uint64_t bp:1;
  4836. uint64_t reserved_17_63:47;
  4837. #endif
  4838. } s;
  4839. struct cvmx_gmxx_stat_bp_s cn30xx;
  4840. struct cvmx_gmxx_stat_bp_s cn31xx;
  4841. struct cvmx_gmxx_stat_bp_s cn38xx;
  4842. struct cvmx_gmxx_stat_bp_s cn38xxp2;
  4843. struct cvmx_gmxx_stat_bp_s cn50xx;
  4844. struct cvmx_gmxx_stat_bp_s cn52xx;
  4845. struct cvmx_gmxx_stat_bp_s cn52xxp1;
  4846. struct cvmx_gmxx_stat_bp_s cn56xx;
  4847. struct cvmx_gmxx_stat_bp_s cn56xxp1;
  4848. struct cvmx_gmxx_stat_bp_s cn58xx;
  4849. struct cvmx_gmxx_stat_bp_s cn58xxp1;
  4850. struct cvmx_gmxx_stat_bp_s cn61xx;
  4851. struct cvmx_gmxx_stat_bp_s cn63xx;
  4852. struct cvmx_gmxx_stat_bp_s cn63xxp1;
  4853. struct cvmx_gmxx_stat_bp_s cn66xx;
  4854. struct cvmx_gmxx_stat_bp_s cn68xx;
  4855. struct cvmx_gmxx_stat_bp_s cn68xxp1;
  4856. struct cvmx_gmxx_stat_bp_s cnf71xx;
  4857. };
  4858. union cvmx_gmxx_tb_reg {
  4859. uint64_t u64;
  4860. struct cvmx_gmxx_tb_reg_s {
  4861. #ifdef __BIG_ENDIAN_BITFIELD
  4862. uint64_t reserved_1_63:63;
  4863. uint64_t wr_magic:1;
  4864. #else
  4865. uint64_t wr_magic:1;
  4866. uint64_t reserved_1_63:63;
  4867. #endif
  4868. } s;
  4869. struct cvmx_gmxx_tb_reg_s cn61xx;
  4870. struct cvmx_gmxx_tb_reg_s cn66xx;
  4871. struct cvmx_gmxx_tb_reg_s cn68xx;
  4872. struct cvmx_gmxx_tb_reg_s cnf71xx;
  4873. };
  4874. union cvmx_gmxx_txx_append {
  4875. uint64_t u64;
  4876. struct cvmx_gmxx_txx_append_s {
  4877. #ifdef __BIG_ENDIAN_BITFIELD
  4878. uint64_t reserved_4_63:60;
  4879. uint64_t force_fcs:1;
  4880. uint64_t fcs:1;
  4881. uint64_t pad:1;
  4882. uint64_t preamble:1;
  4883. #else
  4884. uint64_t preamble:1;
  4885. uint64_t pad:1;
  4886. uint64_t fcs:1;
  4887. uint64_t force_fcs:1;
  4888. uint64_t reserved_4_63:60;
  4889. #endif
  4890. } s;
  4891. struct cvmx_gmxx_txx_append_s cn30xx;
  4892. struct cvmx_gmxx_txx_append_s cn31xx;
  4893. struct cvmx_gmxx_txx_append_s cn38xx;
  4894. struct cvmx_gmxx_txx_append_s cn38xxp2;
  4895. struct cvmx_gmxx_txx_append_s cn50xx;
  4896. struct cvmx_gmxx_txx_append_s cn52xx;
  4897. struct cvmx_gmxx_txx_append_s cn52xxp1;
  4898. struct cvmx_gmxx_txx_append_s cn56xx;
  4899. struct cvmx_gmxx_txx_append_s cn56xxp1;
  4900. struct cvmx_gmxx_txx_append_s cn58xx;
  4901. struct cvmx_gmxx_txx_append_s cn58xxp1;
  4902. struct cvmx_gmxx_txx_append_s cn61xx;
  4903. struct cvmx_gmxx_txx_append_s cn63xx;
  4904. struct cvmx_gmxx_txx_append_s cn63xxp1;
  4905. struct cvmx_gmxx_txx_append_s cn66xx;
  4906. struct cvmx_gmxx_txx_append_s cn68xx;
  4907. struct cvmx_gmxx_txx_append_s cn68xxp1;
  4908. struct cvmx_gmxx_txx_append_s cnf71xx;
  4909. };
  4910. union cvmx_gmxx_txx_burst {
  4911. uint64_t u64;
  4912. struct cvmx_gmxx_txx_burst_s {
  4913. #ifdef __BIG_ENDIAN_BITFIELD
  4914. uint64_t reserved_16_63:48;
  4915. uint64_t burst:16;
  4916. #else
  4917. uint64_t burst:16;
  4918. uint64_t reserved_16_63:48;
  4919. #endif
  4920. } s;
  4921. struct cvmx_gmxx_txx_burst_s cn30xx;
  4922. struct cvmx_gmxx_txx_burst_s cn31xx;
  4923. struct cvmx_gmxx_txx_burst_s cn38xx;
  4924. struct cvmx_gmxx_txx_burst_s cn38xxp2;
  4925. struct cvmx_gmxx_txx_burst_s cn50xx;
  4926. struct cvmx_gmxx_txx_burst_s cn52xx;
  4927. struct cvmx_gmxx_txx_burst_s cn52xxp1;
  4928. struct cvmx_gmxx_txx_burst_s cn56xx;
  4929. struct cvmx_gmxx_txx_burst_s cn56xxp1;
  4930. struct cvmx_gmxx_txx_burst_s cn58xx;
  4931. struct cvmx_gmxx_txx_burst_s cn58xxp1;
  4932. struct cvmx_gmxx_txx_burst_s cn61xx;
  4933. struct cvmx_gmxx_txx_burst_s cn63xx;
  4934. struct cvmx_gmxx_txx_burst_s cn63xxp1;
  4935. struct cvmx_gmxx_txx_burst_s cn66xx;
  4936. struct cvmx_gmxx_txx_burst_s cn68xx;
  4937. struct cvmx_gmxx_txx_burst_s cn68xxp1;
  4938. struct cvmx_gmxx_txx_burst_s cnf71xx;
  4939. };
  4940. union cvmx_gmxx_txx_cbfc_xoff {
  4941. uint64_t u64;
  4942. struct cvmx_gmxx_txx_cbfc_xoff_s {
  4943. #ifdef __BIG_ENDIAN_BITFIELD
  4944. uint64_t reserved_16_63:48;
  4945. uint64_t xoff:16;
  4946. #else
  4947. uint64_t xoff:16;
  4948. uint64_t reserved_16_63:48;
  4949. #endif
  4950. } s;
  4951. struct cvmx_gmxx_txx_cbfc_xoff_s cn52xx;
  4952. struct cvmx_gmxx_txx_cbfc_xoff_s cn56xx;
  4953. struct cvmx_gmxx_txx_cbfc_xoff_s cn61xx;
  4954. struct cvmx_gmxx_txx_cbfc_xoff_s cn63xx;
  4955. struct cvmx_gmxx_txx_cbfc_xoff_s cn63xxp1;
  4956. struct cvmx_gmxx_txx_cbfc_xoff_s cn66xx;
  4957. struct cvmx_gmxx_txx_cbfc_xoff_s cn68xx;
  4958. struct cvmx_gmxx_txx_cbfc_xoff_s cn68xxp1;
  4959. struct cvmx_gmxx_txx_cbfc_xoff_s cnf71xx;
  4960. };
  4961. union cvmx_gmxx_txx_cbfc_xon {
  4962. uint64_t u64;
  4963. struct cvmx_gmxx_txx_cbfc_xon_s {
  4964. #ifdef __BIG_ENDIAN_BITFIELD
  4965. uint64_t reserved_16_63:48;
  4966. uint64_t xon:16;
  4967. #else
  4968. uint64_t xon:16;
  4969. uint64_t reserved_16_63:48;
  4970. #endif
  4971. } s;
  4972. struct cvmx_gmxx_txx_cbfc_xon_s cn52xx;
  4973. struct cvmx_gmxx_txx_cbfc_xon_s cn56xx;
  4974. struct cvmx_gmxx_txx_cbfc_xon_s cn61xx;
  4975. struct cvmx_gmxx_txx_cbfc_xon_s cn63xx;
  4976. struct cvmx_gmxx_txx_cbfc_xon_s cn63xxp1;
  4977. struct cvmx_gmxx_txx_cbfc_xon_s cn66xx;
  4978. struct cvmx_gmxx_txx_cbfc_xon_s cn68xx;
  4979. struct cvmx_gmxx_txx_cbfc_xon_s cn68xxp1;
  4980. struct cvmx_gmxx_txx_cbfc_xon_s cnf71xx;
  4981. };
  4982. union cvmx_gmxx_txx_clk {
  4983. uint64_t u64;
  4984. struct cvmx_gmxx_txx_clk_s {
  4985. #ifdef __BIG_ENDIAN_BITFIELD
  4986. uint64_t reserved_6_63:58;
  4987. uint64_t clk_cnt:6;
  4988. #else
  4989. uint64_t clk_cnt:6;
  4990. uint64_t reserved_6_63:58;
  4991. #endif
  4992. } s;
  4993. struct cvmx_gmxx_txx_clk_s cn30xx;
  4994. struct cvmx_gmxx_txx_clk_s cn31xx;
  4995. struct cvmx_gmxx_txx_clk_s cn38xx;
  4996. struct cvmx_gmxx_txx_clk_s cn38xxp2;
  4997. struct cvmx_gmxx_txx_clk_s cn50xx;
  4998. struct cvmx_gmxx_txx_clk_s cn58xx;
  4999. struct cvmx_gmxx_txx_clk_s cn58xxp1;
  5000. };
  5001. union cvmx_gmxx_txx_ctl {
  5002. uint64_t u64;
  5003. struct cvmx_gmxx_txx_ctl_s {
  5004. #ifdef __BIG_ENDIAN_BITFIELD
  5005. uint64_t reserved_2_63:62;
  5006. uint64_t xsdef_en:1;
  5007. uint64_t xscol_en:1;
  5008. #else
  5009. uint64_t xscol_en:1;
  5010. uint64_t xsdef_en:1;
  5011. uint64_t reserved_2_63:62;
  5012. #endif
  5013. } s;
  5014. struct cvmx_gmxx_txx_ctl_s cn30xx;
  5015. struct cvmx_gmxx_txx_ctl_s cn31xx;
  5016. struct cvmx_gmxx_txx_ctl_s cn38xx;
  5017. struct cvmx_gmxx_txx_ctl_s cn38xxp2;
  5018. struct cvmx_gmxx_txx_ctl_s cn50xx;
  5019. struct cvmx_gmxx_txx_ctl_s cn52xx;
  5020. struct cvmx_gmxx_txx_ctl_s cn52xxp1;
  5021. struct cvmx_gmxx_txx_ctl_s cn56xx;
  5022. struct cvmx_gmxx_txx_ctl_s cn56xxp1;
  5023. struct cvmx_gmxx_txx_ctl_s cn58xx;
  5024. struct cvmx_gmxx_txx_ctl_s cn58xxp1;
  5025. struct cvmx_gmxx_txx_ctl_s cn61xx;
  5026. struct cvmx_gmxx_txx_ctl_s cn63xx;
  5027. struct cvmx_gmxx_txx_ctl_s cn63xxp1;
  5028. struct cvmx_gmxx_txx_ctl_s cn66xx;
  5029. struct cvmx_gmxx_txx_ctl_s cn68xx;
  5030. struct cvmx_gmxx_txx_ctl_s cn68xxp1;
  5031. struct cvmx_gmxx_txx_ctl_s cnf71xx;
  5032. };
  5033. union cvmx_gmxx_txx_min_pkt {
  5034. uint64_t u64;
  5035. struct cvmx_gmxx_txx_min_pkt_s {
  5036. #ifdef __BIG_ENDIAN_BITFIELD
  5037. uint64_t reserved_8_63:56;
  5038. uint64_t min_size:8;
  5039. #else
  5040. uint64_t min_size:8;
  5041. uint64_t reserved_8_63:56;
  5042. #endif
  5043. } s;
  5044. struct cvmx_gmxx_txx_min_pkt_s cn30xx;
  5045. struct cvmx_gmxx_txx_min_pkt_s cn31xx;
  5046. struct cvmx_gmxx_txx_min_pkt_s cn38xx;
  5047. struct cvmx_gmxx_txx_min_pkt_s cn38xxp2;
  5048. struct cvmx_gmxx_txx_min_pkt_s cn50xx;
  5049. struct cvmx_gmxx_txx_min_pkt_s cn52xx;
  5050. struct cvmx_gmxx_txx_min_pkt_s cn52xxp1;
  5051. struct cvmx_gmxx_txx_min_pkt_s cn56xx;
  5052. struct cvmx_gmxx_txx_min_pkt_s cn56xxp1;
  5053. struct cvmx_gmxx_txx_min_pkt_s cn58xx;
  5054. struct cvmx_gmxx_txx_min_pkt_s cn58xxp1;
  5055. struct cvmx_gmxx_txx_min_pkt_s cn61xx;
  5056. struct cvmx_gmxx_txx_min_pkt_s cn63xx;
  5057. struct cvmx_gmxx_txx_min_pkt_s cn63xxp1;
  5058. struct cvmx_gmxx_txx_min_pkt_s cn66xx;
  5059. struct cvmx_gmxx_txx_min_pkt_s cn68xx;
  5060. struct cvmx_gmxx_txx_min_pkt_s cn68xxp1;
  5061. struct cvmx_gmxx_txx_min_pkt_s cnf71xx;
  5062. };
  5063. union cvmx_gmxx_txx_pause_pkt_interval {
  5064. uint64_t u64;
  5065. struct cvmx_gmxx_txx_pause_pkt_interval_s {
  5066. #ifdef __BIG_ENDIAN_BITFIELD
  5067. uint64_t reserved_16_63:48;
  5068. uint64_t interval:16;
  5069. #else
  5070. uint64_t interval:16;
  5071. uint64_t reserved_16_63:48;
  5072. #endif
  5073. } s;
  5074. struct cvmx_gmxx_txx_pause_pkt_interval_s cn30xx;
  5075. struct cvmx_gmxx_txx_pause_pkt_interval_s cn31xx;
  5076. struct cvmx_gmxx_txx_pause_pkt_interval_s cn38xx;
  5077. struct cvmx_gmxx_txx_pause_pkt_interval_s cn38xxp2;
  5078. struct cvmx_gmxx_txx_pause_pkt_interval_s cn50xx;
  5079. struct cvmx_gmxx_txx_pause_pkt_interval_s cn52xx;
  5080. struct cvmx_gmxx_txx_pause_pkt_interval_s cn52xxp1;
  5081. struct cvmx_gmxx_txx_pause_pkt_interval_s cn56xx;
  5082. struct cvmx_gmxx_txx_pause_pkt_interval_s cn56xxp1;
  5083. struct cvmx_gmxx_txx_pause_pkt_interval_s cn58xx;
  5084. struct cvmx_gmxx_txx_pause_pkt_interval_s cn58xxp1;
  5085. struct cvmx_gmxx_txx_pause_pkt_interval_s cn61xx;
  5086. struct cvmx_gmxx_txx_pause_pkt_interval_s cn63xx;
  5087. struct cvmx_gmxx_txx_pause_pkt_interval_s cn63xxp1;
  5088. struct cvmx_gmxx_txx_pause_pkt_interval_s cn66xx;
  5089. struct cvmx_gmxx_txx_pause_pkt_interval_s cn68xx;
  5090. struct cvmx_gmxx_txx_pause_pkt_interval_s cn68xxp1;
  5091. struct cvmx_gmxx_txx_pause_pkt_interval_s cnf71xx;
  5092. };
  5093. union cvmx_gmxx_txx_pause_pkt_time {
  5094. uint64_t u64;
  5095. struct cvmx_gmxx_txx_pause_pkt_time_s {
  5096. #ifdef __BIG_ENDIAN_BITFIELD
  5097. uint64_t reserved_16_63:48;
  5098. uint64_t time:16;
  5099. #else
  5100. uint64_t time:16;
  5101. uint64_t reserved_16_63:48;
  5102. #endif
  5103. } s;
  5104. struct cvmx_gmxx_txx_pause_pkt_time_s cn30xx;
  5105. struct cvmx_gmxx_txx_pause_pkt_time_s cn31xx;
  5106. struct cvmx_gmxx_txx_pause_pkt_time_s cn38xx;
  5107. struct cvmx_gmxx_txx_pause_pkt_time_s cn38xxp2;
  5108. struct cvmx_gmxx_txx_pause_pkt_time_s cn50xx;
  5109. struct cvmx_gmxx_txx_pause_pkt_time_s cn52xx;
  5110. struct cvmx_gmxx_txx_pause_pkt_time_s cn52xxp1;
  5111. struct cvmx_gmxx_txx_pause_pkt_time_s cn56xx;
  5112. struct cvmx_gmxx_txx_pause_pkt_time_s cn56xxp1;
  5113. struct cvmx_gmxx_txx_pause_pkt_time_s cn58xx;
  5114. struct cvmx_gmxx_txx_pause_pkt_time_s cn58xxp1;
  5115. struct cvmx_gmxx_txx_pause_pkt_time_s cn61xx;
  5116. struct cvmx_gmxx_txx_pause_pkt_time_s cn63xx;
  5117. struct cvmx_gmxx_txx_pause_pkt_time_s cn63xxp1;
  5118. struct cvmx_gmxx_txx_pause_pkt_time_s cn66xx;
  5119. struct cvmx_gmxx_txx_pause_pkt_time_s cn68xx;
  5120. struct cvmx_gmxx_txx_pause_pkt_time_s cn68xxp1;
  5121. struct cvmx_gmxx_txx_pause_pkt_time_s cnf71xx;
  5122. };
  5123. union cvmx_gmxx_txx_pause_togo {
  5124. uint64_t u64;
  5125. struct cvmx_gmxx_txx_pause_togo_s {
  5126. #ifdef __BIG_ENDIAN_BITFIELD
  5127. uint64_t reserved_32_63:32;
  5128. uint64_t msg_time:16;
  5129. uint64_t time:16;
  5130. #else
  5131. uint64_t time:16;
  5132. uint64_t msg_time:16;
  5133. uint64_t reserved_32_63:32;
  5134. #endif
  5135. } s;
  5136. struct cvmx_gmxx_txx_pause_togo_cn30xx {
  5137. #ifdef __BIG_ENDIAN_BITFIELD
  5138. uint64_t reserved_16_63:48;
  5139. uint64_t time:16;
  5140. #else
  5141. uint64_t time:16;
  5142. uint64_t reserved_16_63:48;
  5143. #endif
  5144. } cn30xx;
  5145. struct cvmx_gmxx_txx_pause_togo_cn30xx cn31xx;
  5146. struct cvmx_gmxx_txx_pause_togo_cn30xx cn38xx;
  5147. struct cvmx_gmxx_txx_pause_togo_cn30xx cn38xxp2;
  5148. struct cvmx_gmxx_txx_pause_togo_cn30xx cn50xx;
  5149. struct cvmx_gmxx_txx_pause_togo_s cn52xx;
  5150. struct cvmx_gmxx_txx_pause_togo_s cn52xxp1;
  5151. struct cvmx_gmxx_txx_pause_togo_s cn56xx;
  5152. struct cvmx_gmxx_txx_pause_togo_cn30xx cn56xxp1;
  5153. struct cvmx_gmxx_txx_pause_togo_cn30xx cn58xx;
  5154. struct cvmx_gmxx_txx_pause_togo_cn30xx cn58xxp1;
  5155. struct cvmx_gmxx_txx_pause_togo_s cn61xx;
  5156. struct cvmx_gmxx_txx_pause_togo_s cn63xx;
  5157. struct cvmx_gmxx_txx_pause_togo_s cn63xxp1;
  5158. struct cvmx_gmxx_txx_pause_togo_s cn66xx;
  5159. struct cvmx_gmxx_txx_pause_togo_s cn68xx;
  5160. struct cvmx_gmxx_txx_pause_togo_s cn68xxp1;
  5161. struct cvmx_gmxx_txx_pause_togo_s cnf71xx;
  5162. };
  5163. union cvmx_gmxx_txx_pause_zero {
  5164. uint64_t u64;
  5165. struct cvmx_gmxx_txx_pause_zero_s {
  5166. #ifdef __BIG_ENDIAN_BITFIELD
  5167. uint64_t reserved_1_63:63;
  5168. uint64_t send:1;
  5169. #else
  5170. uint64_t send:1;
  5171. uint64_t reserved_1_63:63;
  5172. #endif
  5173. } s;
  5174. struct cvmx_gmxx_txx_pause_zero_s cn30xx;
  5175. struct cvmx_gmxx_txx_pause_zero_s cn31xx;
  5176. struct cvmx_gmxx_txx_pause_zero_s cn38xx;
  5177. struct cvmx_gmxx_txx_pause_zero_s cn38xxp2;
  5178. struct cvmx_gmxx_txx_pause_zero_s cn50xx;
  5179. struct cvmx_gmxx_txx_pause_zero_s cn52xx;
  5180. struct cvmx_gmxx_txx_pause_zero_s cn52xxp1;
  5181. struct cvmx_gmxx_txx_pause_zero_s cn56xx;
  5182. struct cvmx_gmxx_txx_pause_zero_s cn56xxp1;
  5183. struct cvmx_gmxx_txx_pause_zero_s cn58xx;
  5184. struct cvmx_gmxx_txx_pause_zero_s cn58xxp1;
  5185. struct cvmx_gmxx_txx_pause_zero_s cn61xx;
  5186. struct cvmx_gmxx_txx_pause_zero_s cn63xx;
  5187. struct cvmx_gmxx_txx_pause_zero_s cn63xxp1;
  5188. struct cvmx_gmxx_txx_pause_zero_s cn66xx;
  5189. struct cvmx_gmxx_txx_pause_zero_s cn68xx;
  5190. struct cvmx_gmxx_txx_pause_zero_s cn68xxp1;
  5191. struct cvmx_gmxx_txx_pause_zero_s cnf71xx;
  5192. };
  5193. union cvmx_gmxx_txx_pipe {
  5194. uint64_t u64;
  5195. struct cvmx_gmxx_txx_pipe_s {
  5196. #ifdef __BIG_ENDIAN_BITFIELD
  5197. uint64_t reserved_33_63:31;
  5198. uint64_t ign_bp:1;
  5199. uint64_t reserved_21_31:11;
  5200. uint64_t nump:5;
  5201. uint64_t reserved_7_15:9;
  5202. uint64_t base:7;
  5203. #else
  5204. uint64_t base:7;
  5205. uint64_t reserved_7_15:9;
  5206. uint64_t nump:5;
  5207. uint64_t reserved_21_31:11;
  5208. uint64_t ign_bp:1;
  5209. uint64_t reserved_33_63:31;
  5210. #endif
  5211. } s;
  5212. struct cvmx_gmxx_txx_pipe_s cn68xx;
  5213. struct cvmx_gmxx_txx_pipe_s cn68xxp1;
  5214. };
  5215. union cvmx_gmxx_txx_sgmii_ctl {
  5216. uint64_t u64;
  5217. struct cvmx_gmxx_txx_sgmii_ctl_s {
  5218. #ifdef __BIG_ENDIAN_BITFIELD
  5219. uint64_t reserved_1_63:63;
  5220. uint64_t align:1;
  5221. #else
  5222. uint64_t align:1;
  5223. uint64_t reserved_1_63:63;
  5224. #endif
  5225. } s;
  5226. struct cvmx_gmxx_txx_sgmii_ctl_s cn52xx;
  5227. struct cvmx_gmxx_txx_sgmii_ctl_s cn52xxp1;
  5228. struct cvmx_gmxx_txx_sgmii_ctl_s cn56xx;
  5229. struct cvmx_gmxx_txx_sgmii_ctl_s cn56xxp1;
  5230. struct cvmx_gmxx_txx_sgmii_ctl_s cn61xx;
  5231. struct cvmx_gmxx_txx_sgmii_ctl_s cn63xx;
  5232. struct cvmx_gmxx_txx_sgmii_ctl_s cn63xxp1;
  5233. struct cvmx_gmxx_txx_sgmii_ctl_s cn66xx;
  5234. struct cvmx_gmxx_txx_sgmii_ctl_s cn68xx;
  5235. struct cvmx_gmxx_txx_sgmii_ctl_s cn68xxp1;
  5236. struct cvmx_gmxx_txx_sgmii_ctl_s cnf71xx;
  5237. };
  5238. union cvmx_gmxx_txx_slot {
  5239. uint64_t u64;
  5240. struct cvmx_gmxx_txx_slot_s {
  5241. #ifdef __BIG_ENDIAN_BITFIELD
  5242. uint64_t reserved_10_63:54;
  5243. uint64_t slot:10;
  5244. #else
  5245. uint64_t slot:10;
  5246. uint64_t reserved_10_63:54;
  5247. #endif
  5248. } s;
  5249. struct cvmx_gmxx_txx_slot_s cn30xx;
  5250. struct cvmx_gmxx_txx_slot_s cn31xx;
  5251. struct cvmx_gmxx_txx_slot_s cn38xx;
  5252. struct cvmx_gmxx_txx_slot_s cn38xxp2;
  5253. struct cvmx_gmxx_txx_slot_s cn50xx;
  5254. struct cvmx_gmxx_txx_slot_s cn52xx;
  5255. struct cvmx_gmxx_txx_slot_s cn52xxp1;
  5256. struct cvmx_gmxx_txx_slot_s cn56xx;
  5257. struct cvmx_gmxx_txx_slot_s cn56xxp1;
  5258. struct cvmx_gmxx_txx_slot_s cn58xx;
  5259. struct cvmx_gmxx_txx_slot_s cn58xxp1;
  5260. struct cvmx_gmxx_txx_slot_s cn61xx;
  5261. struct cvmx_gmxx_txx_slot_s cn63xx;
  5262. struct cvmx_gmxx_txx_slot_s cn63xxp1;
  5263. struct cvmx_gmxx_txx_slot_s cn66xx;
  5264. struct cvmx_gmxx_txx_slot_s cn68xx;
  5265. struct cvmx_gmxx_txx_slot_s cn68xxp1;
  5266. struct cvmx_gmxx_txx_slot_s cnf71xx;
  5267. };
  5268. union cvmx_gmxx_txx_soft_pause {
  5269. uint64_t u64;
  5270. struct cvmx_gmxx_txx_soft_pause_s {
  5271. #ifdef __BIG_ENDIAN_BITFIELD
  5272. uint64_t reserved_16_63:48;
  5273. uint64_t time:16;
  5274. #else
  5275. uint64_t time:16;
  5276. uint64_t reserved_16_63:48;
  5277. #endif
  5278. } s;
  5279. struct cvmx_gmxx_txx_soft_pause_s cn30xx;
  5280. struct cvmx_gmxx_txx_soft_pause_s cn31xx;
  5281. struct cvmx_gmxx_txx_soft_pause_s cn38xx;
  5282. struct cvmx_gmxx_txx_soft_pause_s cn38xxp2;
  5283. struct cvmx_gmxx_txx_soft_pause_s cn50xx;
  5284. struct cvmx_gmxx_txx_soft_pause_s cn52xx;
  5285. struct cvmx_gmxx_txx_soft_pause_s cn52xxp1;
  5286. struct cvmx_gmxx_txx_soft_pause_s cn56xx;
  5287. struct cvmx_gmxx_txx_soft_pause_s cn56xxp1;
  5288. struct cvmx_gmxx_txx_soft_pause_s cn58xx;
  5289. struct cvmx_gmxx_txx_soft_pause_s cn58xxp1;
  5290. struct cvmx_gmxx_txx_soft_pause_s cn61xx;
  5291. struct cvmx_gmxx_txx_soft_pause_s cn63xx;
  5292. struct cvmx_gmxx_txx_soft_pause_s cn63xxp1;
  5293. struct cvmx_gmxx_txx_soft_pause_s cn66xx;
  5294. struct cvmx_gmxx_txx_soft_pause_s cn68xx;
  5295. struct cvmx_gmxx_txx_soft_pause_s cn68xxp1;
  5296. struct cvmx_gmxx_txx_soft_pause_s cnf71xx;
  5297. };
  5298. union cvmx_gmxx_txx_stat0 {
  5299. uint64_t u64;
  5300. struct cvmx_gmxx_txx_stat0_s {
  5301. #ifdef __BIG_ENDIAN_BITFIELD
  5302. uint64_t xsdef:32;
  5303. uint64_t xscol:32;
  5304. #else
  5305. uint64_t xscol:32;
  5306. uint64_t xsdef:32;
  5307. #endif
  5308. } s;
  5309. struct cvmx_gmxx_txx_stat0_s cn30xx;
  5310. struct cvmx_gmxx_txx_stat0_s cn31xx;
  5311. struct cvmx_gmxx_txx_stat0_s cn38xx;
  5312. struct cvmx_gmxx_txx_stat0_s cn38xxp2;
  5313. struct cvmx_gmxx_txx_stat0_s cn50xx;
  5314. struct cvmx_gmxx_txx_stat0_s cn52xx;
  5315. struct cvmx_gmxx_txx_stat0_s cn52xxp1;
  5316. struct cvmx_gmxx_txx_stat0_s cn56xx;
  5317. struct cvmx_gmxx_txx_stat0_s cn56xxp1;
  5318. struct cvmx_gmxx_txx_stat0_s cn58xx;
  5319. struct cvmx_gmxx_txx_stat0_s cn58xxp1;
  5320. struct cvmx_gmxx_txx_stat0_s cn61xx;
  5321. struct cvmx_gmxx_txx_stat0_s cn63xx;
  5322. struct cvmx_gmxx_txx_stat0_s cn63xxp1;
  5323. struct cvmx_gmxx_txx_stat0_s cn66xx;
  5324. struct cvmx_gmxx_txx_stat0_s cn68xx;
  5325. struct cvmx_gmxx_txx_stat0_s cn68xxp1;
  5326. struct cvmx_gmxx_txx_stat0_s cnf71xx;
  5327. };
  5328. union cvmx_gmxx_txx_stat1 {
  5329. uint64_t u64;
  5330. struct cvmx_gmxx_txx_stat1_s {
  5331. #ifdef __BIG_ENDIAN_BITFIELD
  5332. uint64_t scol:32;
  5333. uint64_t mcol:32;
  5334. #else
  5335. uint64_t mcol:32;
  5336. uint64_t scol:32;
  5337. #endif
  5338. } s;
  5339. struct cvmx_gmxx_txx_stat1_s cn30xx;
  5340. struct cvmx_gmxx_txx_stat1_s cn31xx;
  5341. struct cvmx_gmxx_txx_stat1_s cn38xx;
  5342. struct cvmx_gmxx_txx_stat1_s cn38xxp2;
  5343. struct cvmx_gmxx_txx_stat1_s cn50xx;
  5344. struct cvmx_gmxx_txx_stat1_s cn52xx;
  5345. struct cvmx_gmxx_txx_stat1_s cn52xxp1;
  5346. struct cvmx_gmxx_txx_stat1_s cn56xx;
  5347. struct cvmx_gmxx_txx_stat1_s cn56xxp1;
  5348. struct cvmx_gmxx_txx_stat1_s cn58xx;
  5349. struct cvmx_gmxx_txx_stat1_s cn58xxp1;
  5350. struct cvmx_gmxx_txx_stat1_s cn61xx;
  5351. struct cvmx_gmxx_txx_stat1_s cn63xx;
  5352. struct cvmx_gmxx_txx_stat1_s cn63xxp1;
  5353. struct cvmx_gmxx_txx_stat1_s cn66xx;
  5354. struct cvmx_gmxx_txx_stat1_s cn68xx;
  5355. struct cvmx_gmxx_txx_stat1_s cn68xxp1;
  5356. struct cvmx_gmxx_txx_stat1_s cnf71xx;
  5357. };
  5358. union cvmx_gmxx_txx_stat2 {
  5359. uint64_t u64;
  5360. struct cvmx_gmxx_txx_stat2_s {
  5361. #ifdef __BIG_ENDIAN_BITFIELD
  5362. uint64_t reserved_48_63:16;
  5363. uint64_t octs:48;
  5364. #else
  5365. uint64_t octs:48;
  5366. uint64_t reserved_48_63:16;
  5367. #endif
  5368. } s;
  5369. struct cvmx_gmxx_txx_stat2_s cn30xx;
  5370. struct cvmx_gmxx_txx_stat2_s cn31xx;
  5371. struct cvmx_gmxx_txx_stat2_s cn38xx;
  5372. struct cvmx_gmxx_txx_stat2_s cn38xxp2;
  5373. struct cvmx_gmxx_txx_stat2_s cn50xx;
  5374. struct cvmx_gmxx_txx_stat2_s cn52xx;
  5375. struct cvmx_gmxx_txx_stat2_s cn52xxp1;
  5376. struct cvmx_gmxx_txx_stat2_s cn56xx;
  5377. struct cvmx_gmxx_txx_stat2_s cn56xxp1;
  5378. struct cvmx_gmxx_txx_stat2_s cn58xx;
  5379. struct cvmx_gmxx_txx_stat2_s cn58xxp1;
  5380. struct cvmx_gmxx_txx_stat2_s cn61xx;
  5381. struct cvmx_gmxx_txx_stat2_s cn63xx;
  5382. struct cvmx_gmxx_txx_stat2_s cn63xxp1;
  5383. struct cvmx_gmxx_txx_stat2_s cn66xx;
  5384. struct cvmx_gmxx_txx_stat2_s cn68xx;
  5385. struct cvmx_gmxx_txx_stat2_s cn68xxp1;
  5386. struct cvmx_gmxx_txx_stat2_s cnf71xx;
  5387. };
  5388. union cvmx_gmxx_txx_stat3 {
  5389. uint64_t u64;
  5390. struct cvmx_gmxx_txx_stat3_s {
  5391. #ifdef __BIG_ENDIAN_BITFIELD
  5392. uint64_t reserved_32_63:32;
  5393. uint64_t pkts:32;
  5394. #else
  5395. uint64_t pkts:32;
  5396. uint64_t reserved_32_63:32;
  5397. #endif
  5398. } s;
  5399. struct cvmx_gmxx_txx_stat3_s cn30xx;
  5400. struct cvmx_gmxx_txx_stat3_s cn31xx;
  5401. struct cvmx_gmxx_txx_stat3_s cn38xx;
  5402. struct cvmx_gmxx_txx_stat3_s cn38xxp2;
  5403. struct cvmx_gmxx_txx_stat3_s cn50xx;
  5404. struct cvmx_gmxx_txx_stat3_s cn52xx;
  5405. struct cvmx_gmxx_txx_stat3_s cn52xxp1;
  5406. struct cvmx_gmxx_txx_stat3_s cn56xx;
  5407. struct cvmx_gmxx_txx_stat3_s cn56xxp1;
  5408. struct cvmx_gmxx_txx_stat3_s cn58xx;
  5409. struct cvmx_gmxx_txx_stat3_s cn58xxp1;
  5410. struct cvmx_gmxx_txx_stat3_s cn61xx;
  5411. struct cvmx_gmxx_txx_stat3_s cn63xx;
  5412. struct cvmx_gmxx_txx_stat3_s cn63xxp1;
  5413. struct cvmx_gmxx_txx_stat3_s cn66xx;
  5414. struct cvmx_gmxx_txx_stat3_s cn68xx;
  5415. struct cvmx_gmxx_txx_stat3_s cn68xxp1;
  5416. struct cvmx_gmxx_txx_stat3_s cnf71xx;
  5417. };
  5418. union cvmx_gmxx_txx_stat4 {
  5419. uint64_t u64;
  5420. struct cvmx_gmxx_txx_stat4_s {
  5421. #ifdef __BIG_ENDIAN_BITFIELD
  5422. uint64_t hist1:32;
  5423. uint64_t hist0:32;
  5424. #else
  5425. uint64_t hist0:32;
  5426. uint64_t hist1:32;
  5427. #endif
  5428. } s;
  5429. struct cvmx_gmxx_txx_stat4_s cn30xx;
  5430. struct cvmx_gmxx_txx_stat4_s cn31xx;
  5431. struct cvmx_gmxx_txx_stat4_s cn38xx;
  5432. struct cvmx_gmxx_txx_stat4_s cn38xxp2;
  5433. struct cvmx_gmxx_txx_stat4_s cn50xx;
  5434. struct cvmx_gmxx_txx_stat4_s cn52xx;
  5435. struct cvmx_gmxx_txx_stat4_s cn52xxp1;
  5436. struct cvmx_gmxx_txx_stat4_s cn56xx;
  5437. struct cvmx_gmxx_txx_stat4_s cn56xxp1;
  5438. struct cvmx_gmxx_txx_stat4_s cn58xx;
  5439. struct cvmx_gmxx_txx_stat4_s cn58xxp1;
  5440. struct cvmx_gmxx_txx_stat4_s cn61xx;
  5441. struct cvmx_gmxx_txx_stat4_s cn63xx;
  5442. struct cvmx_gmxx_txx_stat4_s cn63xxp1;
  5443. struct cvmx_gmxx_txx_stat4_s cn66xx;
  5444. struct cvmx_gmxx_txx_stat4_s cn68xx;
  5445. struct cvmx_gmxx_txx_stat4_s cn68xxp1;
  5446. struct cvmx_gmxx_txx_stat4_s cnf71xx;
  5447. };
  5448. union cvmx_gmxx_txx_stat5 {
  5449. uint64_t u64;
  5450. struct cvmx_gmxx_txx_stat5_s {
  5451. #ifdef __BIG_ENDIAN_BITFIELD
  5452. uint64_t hist3:32;
  5453. uint64_t hist2:32;
  5454. #else
  5455. uint64_t hist2:32;
  5456. uint64_t hist3:32;
  5457. #endif
  5458. } s;
  5459. struct cvmx_gmxx_txx_stat5_s cn30xx;
  5460. struct cvmx_gmxx_txx_stat5_s cn31xx;
  5461. struct cvmx_gmxx_txx_stat5_s cn38xx;
  5462. struct cvmx_gmxx_txx_stat5_s cn38xxp2;
  5463. struct cvmx_gmxx_txx_stat5_s cn50xx;
  5464. struct cvmx_gmxx_txx_stat5_s cn52xx;
  5465. struct cvmx_gmxx_txx_stat5_s cn52xxp1;
  5466. struct cvmx_gmxx_txx_stat5_s cn56xx;
  5467. struct cvmx_gmxx_txx_stat5_s cn56xxp1;
  5468. struct cvmx_gmxx_txx_stat5_s cn58xx;
  5469. struct cvmx_gmxx_txx_stat5_s cn58xxp1;
  5470. struct cvmx_gmxx_txx_stat5_s cn61xx;
  5471. struct cvmx_gmxx_txx_stat5_s cn63xx;
  5472. struct cvmx_gmxx_txx_stat5_s cn63xxp1;
  5473. struct cvmx_gmxx_txx_stat5_s cn66xx;
  5474. struct cvmx_gmxx_txx_stat5_s cn68xx;
  5475. struct cvmx_gmxx_txx_stat5_s cn68xxp1;
  5476. struct cvmx_gmxx_txx_stat5_s cnf71xx;
  5477. };
  5478. union cvmx_gmxx_txx_stat6 {
  5479. uint64_t u64;
  5480. struct cvmx_gmxx_txx_stat6_s {
  5481. #ifdef __BIG_ENDIAN_BITFIELD
  5482. uint64_t hist5:32;
  5483. uint64_t hist4:32;
  5484. #else
  5485. uint64_t hist4:32;
  5486. uint64_t hist5:32;
  5487. #endif
  5488. } s;
  5489. struct cvmx_gmxx_txx_stat6_s cn30xx;
  5490. struct cvmx_gmxx_txx_stat6_s cn31xx;
  5491. struct cvmx_gmxx_txx_stat6_s cn38xx;
  5492. struct cvmx_gmxx_txx_stat6_s cn38xxp2;
  5493. struct cvmx_gmxx_txx_stat6_s cn50xx;
  5494. struct cvmx_gmxx_txx_stat6_s cn52xx;
  5495. struct cvmx_gmxx_txx_stat6_s cn52xxp1;
  5496. struct cvmx_gmxx_txx_stat6_s cn56xx;
  5497. struct cvmx_gmxx_txx_stat6_s cn56xxp1;
  5498. struct cvmx_gmxx_txx_stat6_s cn58xx;
  5499. struct cvmx_gmxx_txx_stat6_s cn58xxp1;
  5500. struct cvmx_gmxx_txx_stat6_s cn61xx;
  5501. struct cvmx_gmxx_txx_stat6_s cn63xx;
  5502. struct cvmx_gmxx_txx_stat6_s cn63xxp1;
  5503. struct cvmx_gmxx_txx_stat6_s cn66xx;
  5504. struct cvmx_gmxx_txx_stat6_s cn68xx;
  5505. struct cvmx_gmxx_txx_stat6_s cn68xxp1;
  5506. struct cvmx_gmxx_txx_stat6_s cnf71xx;
  5507. };
  5508. union cvmx_gmxx_txx_stat7 {
  5509. uint64_t u64;
  5510. struct cvmx_gmxx_txx_stat7_s {
  5511. #ifdef __BIG_ENDIAN_BITFIELD
  5512. uint64_t hist7:32;
  5513. uint64_t hist6:32;
  5514. #else
  5515. uint64_t hist6:32;
  5516. uint64_t hist7:32;
  5517. #endif
  5518. } s;
  5519. struct cvmx_gmxx_txx_stat7_s cn30xx;
  5520. struct cvmx_gmxx_txx_stat7_s cn31xx;
  5521. struct cvmx_gmxx_txx_stat7_s cn38xx;
  5522. struct cvmx_gmxx_txx_stat7_s cn38xxp2;
  5523. struct cvmx_gmxx_txx_stat7_s cn50xx;
  5524. struct cvmx_gmxx_txx_stat7_s cn52xx;
  5525. struct cvmx_gmxx_txx_stat7_s cn52xxp1;
  5526. struct cvmx_gmxx_txx_stat7_s cn56xx;
  5527. struct cvmx_gmxx_txx_stat7_s cn56xxp1;
  5528. struct cvmx_gmxx_txx_stat7_s cn58xx;
  5529. struct cvmx_gmxx_txx_stat7_s cn58xxp1;
  5530. struct cvmx_gmxx_txx_stat7_s cn61xx;
  5531. struct cvmx_gmxx_txx_stat7_s cn63xx;
  5532. struct cvmx_gmxx_txx_stat7_s cn63xxp1;
  5533. struct cvmx_gmxx_txx_stat7_s cn66xx;
  5534. struct cvmx_gmxx_txx_stat7_s cn68xx;
  5535. struct cvmx_gmxx_txx_stat7_s cn68xxp1;
  5536. struct cvmx_gmxx_txx_stat7_s cnf71xx;
  5537. };
  5538. union cvmx_gmxx_txx_stat8 {
  5539. uint64_t u64;
  5540. struct cvmx_gmxx_txx_stat8_s {
  5541. #ifdef __BIG_ENDIAN_BITFIELD
  5542. uint64_t mcst:32;
  5543. uint64_t bcst:32;
  5544. #else
  5545. uint64_t bcst:32;
  5546. uint64_t mcst:32;
  5547. #endif
  5548. } s;
  5549. struct cvmx_gmxx_txx_stat8_s cn30xx;
  5550. struct cvmx_gmxx_txx_stat8_s cn31xx;
  5551. struct cvmx_gmxx_txx_stat8_s cn38xx;
  5552. struct cvmx_gmxx_txx_stat8_s cn38xxp2;
  5553. struct cvmx_gmxx_txx_stat8_s cn50xx;
  5554. struct cvmx_gmxx_txx_stat8_s cn52xx;
  5555. struct cvmx_gmxx_txx_stat8_s cn52xxp1;
  5556. struct cvmx_gmxx_txx_stat8_s cn56xx;
  5557. struct cvmx_gmxx_txx_stat8_s cn56xxp1;
  5558. struct cvmx_gmxx_txx_stat8_s cn58xx;
  5559. struct cvmx_gmxx_txx_stat8_s cn58xxp1;
  5560. struct cvmx_gmxx_txx_stat8_s cn61xx;
  5561. struct cvmx_gmxx_txx_stat8_s cn63xx;
  5562. struct cvmx_gmxx_txx_stat8_s cn63xxp1;
  5563. struct cvmx_gmxx_txx_stat8_s cn66xx;
  5564. struct cvmx_gmxx_txx_stat8_s cn68xx;
  5565. struct cvmx_gmxx_txx_stat8_s cn68xxp1;
  5566. struct cvmx_gmxx_txx_stat8_s cnf71xx;
  5567. };
  5568. union cvmx_gmxx_txx_stat9 {
  5569. uint64_t u64;
  5570. struct cvmx_gmxx_txx_stat9_s {
  5571. #ifdef __BIG_ENDIAN_BITFIELD
  5572. uint64_t undflw:32;
  5573. uint64_t ctl:32;
  5574. #else
  5575. uint64_t ctl:32;
  5576. uint64_t undflw:32;
  5577. #endif
  5578. } s;
  5579. struct cvmx_gmxx_txx_stat9_s cn30xx;
  5580. struct cvmx_gmxx_txx_stat9_s cn31xx;
  5581. struct cvmx_gmxx_txx_stat9_s cn38xx;
  5582. struct cvmx_gmxx_txx_stat9_s cn38xxp2;
  5583. struct cvmx_gmxx_txx_stat9_s cn50xx;
  5584. struct cvmx_gmxx_txx_stat9_s cn52xx;
  5585. struct cvmx_gmxx_txx_stat9_s cn52xxp1;
  5586. struct cvmx_gmxx_txx_stat9_s cn56xx;
  5587. struct cvmx_gmxx_txx_stat9_s cn56xxp1;
  5588. struct cvmx_gmxx_txx_stat9_s cn58xx;
  5589. struct cvmx_gmxx_txx_stat9_s cn58xxp1;
  5590. struct cvmx_gmxx_txx_stat9_s cn61xx;
  5591. struct cvmx_gmxx_txx_stat9_s cn63xx;
  5592. struct cvmx_gmxx_txx_stat9_s cn63xxp1;
  5593. struct cvmx_gmxx_txx_stat9_s cn66xx;
  5594. struct cvmx_gmxx_txx_stat9_s cn68xx;
  5595. struct cvmx_gmxx_txx_stat9_s cn68xxp1;
  5596. struct cvmx_gmxx_txx_stat9_s cnf71xx;
  5597. };
  5598. union cvmx_gmxx_txx_stats_ctl {
  5599. uint64_t u64;
  5600. struct cvmx_gmxx_txx_stats_ctl_s {
  5601. #ifdef __BIG_ENDIAN_BITFIELD
  5602. uint64_t reserved_1_63:63;
  5603. uint64_t rd_clr:1;
  5604. #else
  5605. uint64_t rd_clr:1;
  5606. uint64_t reserved_1_63:63;
  5607. #endif
  5608. } s;
  5609. struct cvmx_gmxx_txx_stats_ctl_s cn30xx;
  5610. struct cvmx_gmxx_txx_stats_ctl_s cn31xx;
  5611. struct cvmx_gmxx_txx_stats_ctl_s cn38xx;
  5612. struct cvmx_gmxx_txx_stats_ctl_s cn38xxp2;
  5613. struct cvmx_gmxx_txx_stats_ctl_s cn50xx;
  5614. struct cvmx_gmxx_txx_stats_ctl_s cn52xx;
  5615. struct cvmx_gmxx_txx_stats_ctl_s cn52xxp1;
  5616. struct cvmx_gmxx_txx_stats_ctl_s cn56xx;
  5617. struct cvmx_gmxx_txx_stats_ctl_s cn56xxp1;
  5618. struct cvmx_gmxx_txx_stats_ctl_s cn58xx;
  5619. struct cvmx_gmxx_txx_stats_ctl_s cn58xxp1;
  5620. struct cvmx_gmxx_txx_stats_ctl_s cn61xx;
  5621. struct cvmx_gmxx_txx_stats_ctl_s cn63xx;
  5622. struct cvmx_gmxx_txx_stats_ctl_s cn63xxp1;
  5623. struct cvmx_gmxx_txx_stats_ctl_s cn66xx;
  5624. struct cvmx_gmxx_txx_stats_ctl_s cn68xx;
  5625. struct cvmx_gmxx_txx_stats_ctl_s cn68xxp1;
  5626. struct cvmx_gmxx_txx_stats_ctl_s cnf71xx;
  5627. };
  5628. union cvmx_gmxx_txx_thresh {
  5629. uint64_t u64;
  5630. struct cvmx_gmxx_txx_thresh_s {
  5631. #ifdef __BIG_ENDIAN_BITFIELD
  5632. uint64_t reserved_10_63:54;
  5633. uint64_t cnt:10;
  5634. #else
  5635. uint64_t cnt:10;
  5636. uint64_t reserved_10_63:54;
  5637. #endif
  5638. } s;
  5639. struct cvmx_gmxx_txx_thresh_cn30xx {
  5640. #ifdef __BIG_ENDIAN_BITFIELD
  5641. uint64_t reserved_7_63:57;
  5642. uint64_t cnt:7;
  5643. #else
  5644. uint64_t cnt:7;
  5645. uint64_t reserved_7_63:57;
  5646. #endif
  5647. } cn30xx;
  5648. struct cvmx_gmxx_txx_thresh_cn30xx cn31xx;
  5649. struct cvmx_gmxx_txx_thresh_cn38xx {
  5650. #ifdef __BIG_ENDIAN_BITFIELD
  5651. uint64_t reserved_9_63:55;
  5652. uint64_t cnt:9;
  5653. #else
  5654. uint64_t cnt:9;
  5655. uint64_t reserved_9_63:55;
  5656. #endif
  5657. } cn38xx;
  5658. struct cvmx_gmxx_txx_thresh_cn38xx cn38xxp2;
  5659. struct cvmx_gmxx_txx_thresh_cn30xx cn50xx;
  5660. struct cvmx_gmxx_txx_thresh_cn38xx cn52xx;
  5661. struct cvmx_gmxx_txx_thresh_cn38xx cn52xxp1;
  5662. struct cvmx_gmxx_txx_thresh_cn38xx cn56xx;
  5663. struct cvmx_gmxx_txx_thresh_cn38xx cn56xxp1;
  5664. struct cvmx_gmxx_txx_thresh_cn38xx cn58xx;
  5665. struct cvmx_gmxx_txx_thresh_cn38xx cn58xxp1;
  5666. struct cvmx_gmxx_txx_thresh_cn38xx cn61xx;
  5667. struct cvmx_gmxx_txx_thresh_cn38xx cn63xx;
  5668. struct cvmx_gmxx_txx_thresh_cn38xx cn63xxp1;
  5669. struct cvmx_gmxx_txx_thresh_cn38xx cn66xx;
  5670. struct cvmx_gmxx_txx_thresh_s cn68xx;
  5671. struct cvmx_gmxx_txx_thresh_s cn68xxp1;
  5672. struct cvmx_gmxx_txx_thresh_cn38xx cnf71xx;
  5673. };
  5674. union cvmx_gmxx_tx_bp {
  5675. uint64_t u64;
  5676. struct cvmx_gmxx_tx_bp_s {
  5677. #ifdef __BIG_ENDIAN_BITFIELD
  5678. uint64_t reserved_4_63:60;
  5679. uint64_t bp:4;
  5680. #else
  5681. uint64_t bp:4;
  5682. uint64_t reserved_4_63:60;
  5683. #endif
  5684. } s;
  5685. struct cvmx_gmxx_tx_bp_cn30xx {
  5686. #ifdef __BIG_ENDIAN_BITFIELD
  5687. uint64_t reserved_3_63:61;
  5688. uint64_t bp:3;
  5689. #else
  5690. uint64_t bp:3;
  5691. uint64_t reserved_3_63:61;
  5692. #endif
  5693. } cn30xx;
  5694. struct cvmx_gmxx_tx_bp_cn30xx cn31xx;
  5695. struct cvmx_gmxx_tx_bp_s cn38xx;
  5696. struct cvmx_gmxx_tx_bp_s cn38xxp2;
  5697. struct cvmx_gmxx_tx_bp_cn30xx cn50xx;
  5698. struct cvmx_gmxx_tx_bp_s cn52xx;
  5699. struct cvmx_gmxx_tx_bp_s cn52xxp1;
  5700. struct cvmx_gmxx_tx_bp_s cn56xx;
  5701. struct cvmx_gmxx_tx_bp_s cn56xxp1;
  5702. struct cvmx_gmxx_tx_bp_s cn58xx;
  5703. struct cvmx_gmxx_tx_bp_s cn58xxp1;
  5704. struct cvmx_gmxx_tx_bp_s cn61xx;
  5705. struct cvmx_gmxx_tx_bp_s cn63xx;
  5706. struct cvmx_gmxx_tx_bp_s cn63xxp1;
  5707. struct cvmx_gmxx_tx_bp_s cn66xx;
  5708. struct cvmx_gmxx_tx_bp_s cn68xx;
  5709. struct cvmx_gmxx_tx_bp_s cn68xxp1;
  5710. struct cvmx_gmxx_tx_bp_cnf71xx {
  5711. #ifdef __BIG_ENDIAN_BITFIELD
  5712. uint64_t reserved_2_63:62;
  5713. uint64_t bp:2;
  5714. #else
  5715. uint64_t bp:2;
  5716. uint64_t reserved_2_63:62;
  5717. #endif
  5718. } cnf71xx;
  5719. };
  5720. union cvmx_gmxx_tx_clk_mskx {
  5721. uint64_t u64;
  5722. struct cvmx_gmxx_tx_clk_mskx_s {
  5723. #ifdef __BIG_ENDIAN_BITFIELD
  5724. uint64_t reserved_1_63:63;
  5725. uint64_t msk:1;
  5726. #else
  5727. uint64_t msk:1;
  5728. uint64_t reserved_1_63:63;
  5729. #endif
  5730. } s;
  5731. struct cvmx_gmxx_tx_clk_mskx_s cn30xx;
  5732. struct cvmx_gmxx_tx_clk_mskx_s cn50xx;
  5733. };
  5734. union cvmx_gmxx_tx_col_attempt {
  5735. uint64_t u64;
  5736. struct cvmx_gmxx_tx_col_attempt_s {
  5737. #ifdef __BIG_ENDIAN_BITFIELD
  5738. uint64_t reserved_5_63:59;
  5739. uint64_t limit:5;
  5740. #else
  5741. uint64_t limit:5;
  5742. uint64_t reserved_5_63:59;
  5743. #endif
  5744. } s;
  5745. struct cvmx_gmxx_tx_col_attempt_s cn30xx;
  5746. struct cvmx_gmxx_tx_col_attempt_s cn31xx;
  5747. struct cvmx_gmxx_tx_col_attempt_s cn38xx;
  5748. struct cvmx_gmxx_tx_col_attempt_s cn38xxp2;
  5749. struct cvmx_gmxx_tx_col_attempt_s cn50xx;
  5750. struct cvmx_gmxx_tx_col_attempt_s cn52xx;
  5751. struct cvmx_gmxx_tx_col_attempt_s cn52xxp1;
  5752. struct cvmx_gmxx_tx_col_attempt_s cn56xx;
  5753. struct cvmx_gmxx_tx_col_attempt_s cn56xxp1;
  5754. struct cvmx_gmxx_tx_col_attempt_s cn58xx;
  5755. struct cvmx_gmxx_tx_col_attempt_s cn58xxp1;
  5756. struct cvmx_gmxx_tx_col_attempt_s cn61xx;
  5757. struct cvmx_gmxx_tx_col_attempt_s cn63xx;
  5758. struct cvmx_gmxx_tx_col_attempt_s cn63xxp1;
  5759. struct cvmx_gmxx_tx_col_attempt_s cn66xx;
  5760. struct cvmx_gmxx_tx_col_attempt_s cn68xx;
  5761. struct cvmx_gmxx_tx_col_attempt_s cn68xxp1;
  5762. struct cvmx_gmxx_tx_col_attempt_s cnf71xx;
  5763. };
  5764. union cvmx_gmxx_tx_corrupt {
  5765. uint64_t u64;
  5766. struct cvmx_gmxx_tx_corrupt_s {
  5767. #ifdef __BIG_ENDIAN_BITFIELD
  5768. uint64_t reserved_4_63:60;
  5769. uint64_t corrupt:4;
  5770. #else
  5771. uint64_t corrupt:4;
  5772. uint64_t reserved_4_63:60;
  5773. #endif
  5774. } s;
  5775. struct cvmx_gmxx_tx_corrupt_cn30xx {
  5776. #ifdef __BIG_ENDIAN_BITFIELD
  5777. uint64_t reserved_3_63:61;
  5778. uint64_t corrupt:3;
  5779. #else
  5780. uint64_t corrupt:3;
  5781. uint64_t reserved_3_63:61;
  5782. #endif
  5783. } cn30xx;
  5784. struct cvmx_gmxx_tx_corrupt_cn30xx cn31xx;
  5785. struct cvmx_gmxx_tx_corrupt_s cn38xx;
  5786. struct cvmx_gmxx_tx_corrupt_s cn38xxp2;
  5787. struct cvmx_gmxx_tx_corrupt_cn30xx cn50xx;
  5788. struct cvmx_gmxx_tx_corrupt_s cn52xx;
  5789. struct cvmx_gmxx_tx_corrupt_s cn52xxp1;
  5790. struct cvmx_gmxx_tx_corrupt_s cn56xx;
  5791. struct cvmx_gmxx_tx_corrupt_s cn56xxp1;
  5792. struct cvmx_gmxx_tx_corrupt_s cn58xx;
  5793. struct cvmx_gmxx_tx_corrupt_s cn58xxp1;
  5794. struct cvmx_gmxx_tx_corrupt_s cn61xx;
  5795. struct cvmx_gmxx_tx_corrupt_s cn63xx;
  5796. struct cvmx_gmxx_tx_corrupt_s cn63xxp1;
  5797. struct cvmx_gmxx_tx_corrupt_s cn66xx;
  5798. struct cvmx_gmxx_tx_corrupt_s cn68xx;
  5799. struct cvmx_gmxx_tx_corrupt_s cn68xxp1;
  5800. struct cvmx_gmxx_tx_corrupt_cnf71xx {
  5801. #ifdef __BIG_ENDIAN_BITFIELD
  5802. uint64_t reserved_2_63:62;
  5803. uint64_t corrupt:2;
  5804. #else
  5805. uint64_t corrupt:2;
  5806. uint64_t reserved_2_63:62;
  5807. #endif
  5808. } cnf71xx;
  5809. };
  5810. union cvmx_gmxx_tx_hg2_reg1 {
  5811. uint64_t u64;
  5812. struct cvmx_gmxx_tx_hg2_reg1_s {
  5813. #ifdef __BIG_ENDIAN_BITFIELD
  5814. uint64_t reserved_16_63:48;
  5815. uint64_t tx_xof:16;
  5816. #else
  5817. uint64_t tx_xof:16;
  5818. uint64_t reserved_16_63:48;
  5819. #endif
  5820. } s;
  5821. struct cvmx_gmxx_tx_hg2_reg1_s cn52xx;
  5822. struct cvmx_gmxx_tx_hg2_reg1_s cn52xxp1;
  5823. struct cvmx_gmxx_tx_hg2_reg1_s cn56xx;
  5824. struct cvmx_gmxx_tx_hg2_reg1_s cn61xx;
  5825. struct cvmx_gmxx_tx_hg2_reg1_s cn63xx;
  5826. struct cvmx_gmxx_tx_hg2_reg1_s cn63xxp1;
  5827. struct cvmx_gmxx_tx_hg2_reg1_s cn66xx;
  5828. struct cvmx_gmxx_tx_hg2_reg1_s cn68xx;
  5829. struct cvmx_gmxx_tx_hg2_reg1_s cn68xxp1;
  5830. struct cvmx_gmxx_tx_hg2_reg1_s cnf71xx;
  5831. };
  5832. union cvmx_gmxx_tx_hg2_reg2 {
  5833. uint64_t u64;
  5834. struct cvmx_gmxx_tx_hg2_reg2_s {
  5835. #ifdef __BIG_ENDIAN_BITFIELD
  5836. uint64_t reserved_16_63:48;
  5837. uint64_t tx_xon:16;
  5838. #else
  5839. uint64_t tx_xon:16;
  5840. uint64_t reserved_16_63:48;
  5841. #endif
  5842. } s;
  5843. struct cvmx_gmxx_tx_hg2_reg2_s cn52xx;
  5844. struct cvmx_gmxx_tx_hg2_reg2_s cn52xxp1;
  5845. struct cvmx_gmxx_tx_hg2_reg2_s cn56xx;
  5846. struct cvmx_gmxx_tx_hg2_reg2_s cn61xx;
  5847. struct cvmx_gmxx_tx_hg2_reg2_s cn63xx;
  5848. struct cvmx_gmxx_tx_hg2_reg2_s cn63xxp1;
  5849. struct cvmx_gmxx_tx_hg2_reg2_s cn66xx;
  5850. struct cvmx_gmxx_tx_hg2_reg2_s cn68xx;
  5851. struct cvmx_gmxx_tx_hg2_reg2_s cn68xxp1;
  5852. struct cvmx_gmxx_tx_hg2_reg2_s cnf71xx;
  5853. };
  5854. union cvmx_gmxx_tx_ifg {
  5855. uint64_t u64;
  5856. struct cvmx_gmxx_tx_ifg_s {
  5857. #ifdef __BIG_ENDIAN_BITFIELD
  5858. uint64_t reserved_8_63:56;
  5859. uint64_t ifg2:4;
  5860. uint64_t ifg1:4;
  5861. #else
  5862. uint64_t ifg1:4;
  5863. uint64_t ifg2:4;
  5864. uint64_t reserved_8_63:56;
  5865. #endif
  5866. } s;
  5867. struct cvmx_gmxx_tx_ifg_s cn30xx;
  5868. struct cvmx_gmxx_tx_ifg_s cn31xx;
  5869. struct cvmx_gmxx_tx_ifg_s cn38xx;
  5870. struct cvmx_gmxx_tx_ifg_s cn38xxp2;
  5871. struct cvmx_gmxx_tx_ifg_s cn50xx;
  5872. struct cvmx_gmxx_tx_ifg_s cn52xx;
  5873. struct cvmx_gmxx_tx_ifg_s cn52xxp1;
  5874. struct cvmx_gmxx_tx_ifg_s cn56xx;
  5875. struct cvmx_gmxx_tx_ifg_s cn56xxp1;
  5876. struct cvmx_gmxx_tx_ifg_s cn58xx;
  5877. struct cvmx_gmxx_tx_ifg_s cn58xxp1;
  5878. struct cvmx_gmxx_tx_ifg_s cn61xx;
  5879. struct cvmx_gmxx_tx_ifg_s cn63xx;
  5880. struct cvmx_gmxx_tx_ifg_s cn63xxp1;
  5881. struct cvmx_gmxx_tx_ifg_s cn66xx;
  5882. struct cvmx_gmxx_tx_ifg_s cn68xx;
  5883. struct cvmx_gmxx_tx_ifg_s cn68xxp1;
  5884. struct cvmx_gmxx_tx_ifg_s cnf71xx;
  5885. };
  5886. union cvmx_gmxx_tx_int_en {
  5887. uint64_t u64;
  5888. struct cvmx_gmxx_tx_int_en_s {
  5889. #ifdef __BIG_ENDIAN_BITFIELD
  5890. uint64_t reserved_25_63:39;
  5891. uint64_t xchange:1;
  5892. uint64_t ptp_lost:4;
  5893. uint64_t late_col:4;
  5894. uint64_t xsdef:4;
  5895. uint64_t xscol:4;
  5896. uint64_t reserved_6_7:2;
  5897. uint64_t undflw:4;
  5898. uint64_t reserved_1_1:1;
  5899. uint64_t pko_nxa:1;
  5900. #else
  5901. uint64_t pko_nxa:1;
  5902. uint64_t reserved_1_1:1;
  5903. uint64_t undflw:4;
  5904. uint64_t reserved_6_7:2;
  5905. uint64_t xscol:4;
  5906. uint64_t xsdef:4;
  5907. uint64_t late_col:4;
  5908. uint64_t ptp_lost:4;
  5909. uint64_t xchange:1;
  5910. uint64_t reserved_25_63:39;
  5911. #endif
  5912. } s;
  5913. struct cvmx_gmxx_tx_int_en_cn30xx {
  5914. #ifdef __BIG_ENDIAN_BITFIELD
  5915. uint64_t reserved_19_63:45;
  5916. uint64_t late_col:3;
  5917. uint64_t reserved_15_15:1;
  5918. uint64_t xsdef:3;
  5919. uint64_t reserved_11_11:1;
  5920. uint64_t xscol:3;
  5921. uint64_t reserved_5_7:3;
  5922. uint64_t undflw:3;
  5923. uint64_t reserved_1_1:1;
  5924. uint64_t pko_nxa:1;
  5925. #else
  5926. uint64_t pko_nxa:1;
  5927. uint64_t reserved_1_1:1;
  5928. uint64_t undflw:3;
  5929. uint64_t reserved_5_7:3;
  5930. uint64_t xscol:3;
  5931. uint64_t reserved_11_11:1;
  5932. uint64_t xsdef:3;
  5933. uint64_t reserved_15_15:1;
  5934. uint64_t late_col:3;
  5935. uint64_t reserved_19_63:45;
  5936. #endif
  5937. } cn30xx;
  5938. struct cvmx_gmxx_tx_int_en_cn31xx {
  5939. #ifdef __BIG_ENDIAN_BITFIELD
  5940. uint64_t reserved_15_63:49;
  5941. uint64_t xsdef:3;
  5942. uint64_t reserved_11_11:1;
  5943. uint64_t xscol:3;
  5944. uint64_t reserved_5_7:3;
  5945. uint64_t undflw:3;
  5946. uint64_t reserved_1_1:1;
  5947. uint64_t pko_nxa:1;
  5948. #else
  5949. uint64_t pko_nxa:1;
  5950. uint64_t reserved_1_1:1;
  5951. uint64_t undflw:3;
  5952. uint64_t reserved_5_7:3;
  5953. uint64_t xscol:3;
  5954. uint64_t reserved_11_11:1;
  5955. uint64_t xsdef:3;
  5956. uint64_t reserved_15_63:49;
  5957. #endif
  5958. } cn31xx;
  5959. struct cvmx_gmxx_tx_int_en_cn38xx {
  5960. #ifdef __BIG_ENDIAN_BITFIELD
  5961. uint64_t reserved_20_63:44;
  5962. uint64_t late_col:4;
  5963. uint64_t xsdef:4;
  5964. uint64_t xscol:4;
  5965. uint64_t reserved_6_7:2;
  5966. uint64_t undflw:4;
  5967. uint64_t ncb_nxa:1;
  5968. uint64_t pko_nxa:1;
  5969. #else
  5970. uint64_t pko_nxa:1;
  5971. uint64_t ncb_nxa:1;
  5972. uint64_t undflw:4;
  5973. uint64_t reserved_6_7:2;
  5974. uint64_t xscol:4;
  5975. uint64_t xsdef:4;
  5976. uint64_t late_col:4;
  5977. uint64_t reserved_20_63:44;
  5978. #endif
  5979. } cn38xx;
  5980. struct cvmx_gmxx_tx_int_en_cn38xxp2 {
  5981. #ifdef __BIG_ENDIAN_BITFIELD
  5982. uint64_t reserved_16_63:48;
  5983. uint64_t xsdef:4;
  5984. uint64_t xscol:4;
  5985. uint64_t reserved_6_7:2;
  5986. uint64_t undflw:4;
  5987. uint64_t ncb_nxa:1;
  5988. uint64_t pko_nxa:1;
  5989. #else
  5990. uint64_t pko_nxa:1;
  5991. uint64_t ncb_nxa:1;
  5992. uint64_t undflw:4;
  5993. uint64_t reserved_6_7:2;
  5994. uint64_t xscol:4;
  5995. uint64_t xsdef:4;
  5996. uint64_t reserved_16_63:48;
  5997. #endif
  5998. } cn38xxp2;
  5999. struct cvmx_gmxx_tx_int_en_cn30xx cn50xx;
  6000. struct cvmx_gmxx_tx_int_en_cn52xx {
  6001. #ifdef __BIG_ENDIAN_BITFIELD
  6002. uint64_t reserved_20_63:44;
  6003. uint64_t late_col:4;
  6004. uint64_t xsdef:4;
  6005. uint64_t xscol:4;
  6006. uint64_t reserved_6_7:2;
  6007. uint64_t undflw:4;
  6008. uint64_t reserved_1_1:1;
  6009. uint64_t pko_nxa:1;
  6010. #else
  6011. uint64_t pko_nxa:1;
  6012. uint64_t reserved_1_1:1;
  6013. uint64_t undflw:4;
  6014. uint64_t reserved_6_7:2;
  6015. uint64_t xscol:4;
  6016. uint64_t xsdef:4;
  6017. uint64_t late_col:4;
  6018. uint64_t reserved_20_63:44;
  6019. #endif
  6020. } cn52xx;
  6021. struct cvmx_gmxx_tx_int_en_cn52xx cn52xxp1;
  6022. struct cvmx_gmxx_tx_int_en_cn52xx cn56xx;
  6023. struct cvmx_gmxx_tx_int_en_cn52xx cn56xxp1;
  6024. struct cvmx_gmxx_tx_int_en_cn38xx cn58xx;
  6025. struct cvmx_gmxx_tx_int_en_cn38xx cn58xxp1;
  6026. struct cvmx_gmxx_tx_int_en_s cn61xx;
  6027. struct cvmx_gmxx_tx_int_en_cn63xx {
  6028. #ifdef __BIG_ENDIAN_BITFIELD
  6029. uint64_t reserved_24_63:40;
  6030. uint64_t ptp_lost:4;
  6031. uint64_t late_col:4;
  6032. uint64_t xsdef:4;
  6033. uint64_t xscol:4;
  6034. uint64_t reserved_6_7:2;
  6035. uint64_t undflw:4;
  6036. uint64_t reserved_1_1:1;
  6037. uint64_t pko_nxa:1;
  6038. #else
  6039. uint64_t pko_nxa:1;
  6040. uint64_t reserved_1_1:1;
  6041. uint64_t undflw:4;
  6042. uint64_t reserved_6_7:2;
  6043. uint64_t xscol:4;
  6044. uint64_t xsdef:4;
  6045. uint64_t late_col:4;
  6046. uint64_t ptp_lost:4;
  6047. uint64_t reserved_24_63:40;
  6048. #endif
  6049. } cn63xx;
  6050. struct cvmx_gmxx_tx_int_en_cn63xx cn63xxp1;
  6051. struct cvmx_gmxx_tx_int_en_s cn66xx;
  6052. struct cvmx_gmxx_tx_int_en_cn68xx {
  6053. #ifdef __BIG_ENDIAN_BITFIELD
  6054. uint64_t reserved_25_63:39;
  6055. uint64_t xchange:1;
  6056. uint64_t ptp_lost:4;
  6057. uint64_t late_col:4;
  6058. uint64_t xsdef:4;
  6059. uint64_t xscol:4;
  6060. uint64_t reserved_6_7:2;
  6061. uint64_t undflw:4;
  6062. uint64_t pko_nxp:1;
  6063. uint64_t pko_nxa:1;
  6064. #else
  6065. uint64_t pko_nxa:1;
  6066. uint64_t pko_nxp:1;
  6067. uint64_t undflw:4;
  6068. uint64_t reserved_6_7:2;
  6069. uint64_t xscol:4;
  6070. uint64_t xsdef:4;
  6071. uint64_t late_col:4;
  6072. uint64_t ptp_lost:4;
  6073. uint64_t xchange:1;
  6074. uint64_t reserved_25_63:39;
  6075. #endif
  6076. } cn68xx;
  6077. struct cvmx_gmxx_tx_int_en_cn68xx cn68xxp1;
  6078. struct cvmx_gmxx_tx_int_en_cnf71xx {
  6079. #ifdef __BIG_ENDIAN_BITFIELD
  6080. uint64_t reserved_25_63:39;
  6081. uint64_t xchange:1;
  6082. uint64_t reserved_22_23:2;
  6083. uint64_t ptp_lost:2;
  6084. uint64_t reserved_18_19:2;
  6085. uint64_t late_col:2;
  6086. uint64_t reserved_14_15:2;
  6087. uint64_t xsdef:2;
  6088. uint64_t reserved_10_11:2;
  6089. uint64_t xscol:2;
  6090. uint64_t reserved_4_7:4;
  6091. uint64_t undflw:2;
  6092. uint64_t reserved_1_1:1;
  6093. uint64_t pko_nxa:1;
  6094. #else
  6095. uint64_t pko_nxa:1;
  6096. uint64_t reserved_1_1:1;
  6097. uint64_t undflw:2;
  6098. uint64_t reserved_4_7:4;
  6099. uint64_t xscol:2;
  6100. uint64_t reserved_10_11:2;
  6101. uint64_t xsdef:2;
  6102. uint64_t reserved_14_15:2;
  6103. uint64_t late_col:2;
  6104. uint64_t reserved_18_19:2;
  6105. uint64_t ptp_lost:2;
  6106. uint64_t reserved_22_23:2;
  6107. uint64_t xchange:1;
  6108. uint64_t reserved_25_63:39;
  6109. #endif
  6110. } cnf71xx;
  6111. };
  6112. union cvmx_gmxx_tx_int_reg {
  6113. uint64_t u64;
  6114. struct cvmx_gmxx_tx_int_reg_s {
  6115. #ifdef __BIG_ENDIAN_BITFIELD
  6116. uint64_t reserved_25_63:39;
  6117. uint64_t xchange:1;
  6118. uint64_t ptp_lost:4;
  6119. uint64_t late_col:4;
  6120. uint64_t xsdef:4;
  6121. uint64_t xscol:4;
  6122. uint64_t reserved_6_7:2;
  6123. uint64_t undflw:4;
  6124. uint64_t reserved_1_1:1;
  6125. uint64_t pko_nxa:1;
  6126. #else
  6127. uint64_t pko_nxa:1;
  6128. uint64_t reserved_1_1:1;
  6129. uint64_t undflw:4;
  6130. uint64_t reserved_6_7:2;
  6131. uint64_t xscol:4;
  6132. uint64_t xsdef:4;
  6133. uint64_t late_col:4;
  6134. uint64_t ptp_lost:4;
  6135. uint64_t xchange:1;
  6136. uint64_t reserved_25_63:39;
  6137. #endif
  6138. } s;
  6139. struct cvmx_gmxx_tx_int_reg_cn30xx {
  6140. #ifdef __BIG_ENDIAN_BITFIELD
  6141. uint64_t reserved_19_63:45;
  6142. uint64_t late_col:3;
  6143. uint64_t reserved_15_15:1;
  6144. uint64_t xsdef:3;
  6145. uint64_t reserved_11_11:1;
  6146. uint64_t xscol:3;
  6147. uint64_t reserved_5_7:3;
  6148. uint64_t undflw:3;
  6149. uint64_t reserved_1_1:1;
  6150. uint64_t pko_nxa:1;
  6151. #else
  6152. uint64_t pko_nxa:1;
  6153. uint64_t reserved_1_1:1;
  6154. uint64_t undflw:3;
  6155. uint64_t reserved_5_7:3;
  6156. uint64_t xscol:3;
  6157. uint64_t reserved_11_11:1;
  6158. uint64_t xsdef:3;
  6159. uint64_t reserved_15_15:1;
  6160. uint64_t late_col:3;
  6161. uint64_t reserved_19_63:45;
  6162. #endif
  6163. } cn30xx;
  6164. struct cvmx_gmxx_tx_int_reg_cn31xx {
  6165. #ifdef __BIG_ENDIAN_BITFIELD
  6166. uint64_t reserved_15_63:49;
  6167. uint64_t xsdef:3;
  6168. uint64_t reserved_11_11:1;
  6169. uint64_t xscol:3;
  6170. uint64_t reserved_5_7:3;
  6171. uint64_t undflw:3;
  6172. uint64_t reserved_1_1:1;
  6173. uint64_t pko_nxa:1;
  6174. #else
  6175. uint64_t pko_nxa:1;
  6176. uint64_t reserved_1_1:1;
  6177. uint64_t undflw:3;
  6178. uint64_t reserved_5_7:3;
  6179. uint64_t xscol:3;
  6180. uint64_t reserved_11_11:1;
  6181. uint64_t xsdef:3;
  6182. uint64_t reserved_15_63:49;
  6183. #endif
  6184. } cn31xx;
  6185. struct cvmx_gmxx_tx_int_reg_cn38xx {
  6186. #ifdef __BIG_ENDIAN_BITFIELD
  6187. uint64_t reserved_20_63:44;
  6188. uint64_t late_col:4;
  6189. uint64_t xsdef:4;
  6190. uint64_t xscol:4;
  6191. uint64_t reserved_6_7:2;
  6192. uint64_t undflw:4;
  6193. uint64_t ncb_nxa:1;
  6194. uint64_t pko_nxa:1;
  6195. #else
  6196. uint64_t pko_nxa:1;
  6197. uint64_t ncb_nxa:1;
  6198. uint64_t undflw:4;
  6199. uint64_t reserved_6_7:2;
  6200. uint64_t xscol:4;
  6201. uint64_t xsdef:4;
  6202. uint64_t late_col:4;
  6203. uint64_t reserved_20_63:44;
  6204. #endif
  6205. } cn38xx;
  6206. struct cvmx_gmxx_tx_int_reg_cn38xxp2 {
  6207. #ifdef __BIG_ENDIAN_BITFIELD
  6208. uint64_t reserved_16_63:48;
  6209. uint64_t xsdef:4;
  6210. uint64_t xscol:4;
  6211. uint64_t reserved_6_7:2;
  6212. uint64_t undflw:4;
  6213. uint64_t ncb_nxa:1;
  6214. uint64_t pko_nxa:1;
  6215. #else
  6216. uint64_t pko_nxa:1;
  6217. uint64_t ncb_nxa:1;
  6218. uint64_t undflw:4;
  6219. uint64_t reserved_6_7:2;
  6220. uint64_t xscol:4;
  6221. uint64_t xsdef:4;
  6222. uint64_t reserved_16_63:48;
  6223. #endif
  6224. } cn38xxp2;
  6225. struct cvmx_gmxx_tx_int_reg_cn30xx cn50xx;
  6226. struct cvmx_gmxx_tx_int_reg_cn52xx {
  6227. #ifdef __BIG_ENDIAN_BITFIELD
  6228. uint64_t reserved_20_63:44;
  6229. uint64_t late_col:4;
  6230. uint64_t xsdef:4;
  6231. uint64_t xscol:4;
  6232. uint64_t reserved_6_7:2;
  6233. uint64_t undflw:4;
  6234. uint64_t reserved_1_1:1;
  6235. uint64_t pko_nxa:1;
  6236. #else
  6237. uint64_t pko_nxa:1;
  6238. uint64_t reserved_1_1:1;
  6239. uint64_t undflw:4;
  6240. uint64_t reserved_6_7:2;
  6241. uint64_t xscol:4;
  6242. uint64_t xsdef:4;
  6243. uint64_t late_col:4;
  6244. uint64_t reserved_20_63:44;
  6245. #endif
  6246. } cn52xx;
  6247. struct cvmx_gmxx_tx_int_reg_cn52xx cn52xxp1;
  6248. struct cvmx_gmxx_tx_int_reg_cn52xx cn56xx;
  6249. struct cvmx_gmxx_tx_int_reg_cn52xx cn56xxp1;
  6250. struct cvmx_gmxx_tx_int_reg_cn38xx cn58xx;
  6251. struct cvmx_gmxx_tx_int_reg_cn38xx cn58xxp1;
  6252. struct cvmx_gmxx_tx_int_reg_s cn61xx;
  6253. struct cvmx_gmxx_tx_int_reg_cn63xx {
  6254. #ifdef __BIG_ENDIAN_BITFIELD
  6255. uint64_t reserved_24_63:40;
  6256. uint64_t ptp_lost:4;
  6257. uint64_t late_col:4;
  6258. uint64_t xsdef:4;
  6259. uint64_t xscol:4;
  6260. uint64_t reserved_6_7:2;
  6261. uint64_t undflw:4;
  6262. uint64_t reserved_1_1:1;
  6263. uint64_t pko_nxa:1;
  6264. #else
  6265. uint64_t pko_nxa:1;
  6266. uint64_t reserved_1_1:1;
  6267. uint64_t undflw:4;
  6268. uint64_t reserved_6_7:2;
  6269. uint64_t xscol:4;
  6270. uint64_t xsdef:4;
  6271. uint64_t late_col:4;
  6272. uint64_t ptp_lost:4;
  6273. uint64_t reserved_24_63:40;
  6274. #endif
  6275. } cn63xx;
  6276. struct cvmx_gmxx_tx_int_reg_cn63xx cn63xxp1;
  6277. struct cvmx_gmxx_tx_int_reg_s cn66xx;
  6278. struct cvmx_gmxx_tx_int_reg_cn68xx {
  6279. #ifdef __BIG_ENDIAN_BITFIELD
  6280. uint64_t reserved_25_63:39;
  6281. uint64_t xchange:1;
  6282. uint64_t ptp_lost:4;
  6283. uint64_t late_col:4;
  6284. uint64_t xsdef:4;
  6285. uint64_t xscol:4;
  6286. uint64_t reserved_6_7:2;
  6287. uint64_t undflw:4;
  6288. uint64_t pko_nxp:1;
  6289. uint64_t pko_nxa:1;
  6290. #else
  6291. uint64_t pko_nxa:1;
  6292. uint64_t pko_nxp:1;
  6293. uint64_t undflw:4;
  6294. uint64_t reserved_6_7:2;
  6295. uint64_t xscol:4;
  6296. uint64_t xsdef:4;
  6297. uint64_t late_col:4;
  6298. uint64_t ptp_lost:4;
  6299. uint64_t xchange:1;
  6300. uint64_t reserved_25_63:39;
  6301. #endif
  6302. } cn68xx;
  6303. struct cvmx_gmxx_tx_int_reg_cn68xx cn68xxp1;
  6304. struct cvmx_gmxx_tx_int_reg_cnf71xx {
  6305. #ifdef __BIG_ENDIAN_BITFIELD
  6306. uint64_t reserved_25_63:39;
  6307. uint64_t xchange:1;
  6308. uint64_t reserved_22_23:2;
  6309. uint64_t ptp_lost:2;
  6310. uint64_t reserved_18_19:2;
  6311. uint64_t late_col:2;
  6312. uint64_t reserved_14_15:2;
  6313. uint64_t xsdef:2;
  6314. uint64_t reserved_10_11:2;
  6315. uint64_t xscol:2;
  6316. uint64_t reserved_4_7:4;
  6317. uint64_t undflw:2;
  6318. uint64_t reserved_1_1:1;
  6319. uint64_t pko_nxa:1;
  6320. #else
  6321. uint64_t pko_nxa:1;
  6322. uint64_t reserved_1_1:1;
  6323. uint64_t undflw:2;
  6324. uint64_t reserved_4_7:4;
  6325. uint64_t xscol:2;
  6326. uint64_t reserved_10_11:2;
  6327. uint64_t xsdef:2;
  6328. uint64_t reserved_14_15:2;
  6329. uint64_t late_col:2;
  6330. uint64_t reserved_18_19:2;
  6331. uint64_t ptp_lost:2;
  6332. uint64_t reserved_22_23:2;
  6333. uint64_t xchange:1;
  6334. uint64_t reserved_25_63:39;
  6335. #endif
  6336. } cnf71xx;
  6337. };
  6338. union cvmx_gmxx_tx_jam {
  6339. uint64_t u64;
  6340. struct cvmx_gmxx_tx_jam_s {
  6341. #ifdef __BIG_ENDIAN_BITFIELD
  6342. uint64_t reserved_8_63:56;
  6343. uint64_t jam:8;
  6344. #else
  6345. uint64_t jam:8;
  6346. uint64_t reserved_8_63:56;
  6347. #endif
  6348. } s;
  6349. struct cvmx_gmxx_tx_jam_s cn30xx;
  6350. struct cvmx_gmxx_tx_jam_s cn31xx;
  6351. struct cvmx_gmxx_tx_jam_s cn38xx;
  6352. struct cvmx_gmxx_tx_jam_s cn38xxp2;
  6353. struct cvmx_gmxx_tx_jam_s cn50xx;
  6354. struct cvmx_gmxx_tx_jam_s cn52xx;
  6355. struct cvmx_gmxx_tx_jam_s cn52xxp1;
  6356. struct cvmx_gmxx_tx_jam_s cn56xx;
  6357. struct cvmx_gmxx_tx_jam_s cn56xxp1;
  6358. struct cvmx_gmxx_tx_jam_s cn58xx;
  6359. struct cvmx_gmxx_tx_jam_s cn58xxp1;
  6360. struct cvmx_gmxx_tx_jam_s cn61xx;
  6361. struct cvmx_gmxx_tx_jam_s cn63xx;
  6362. struct cvmx_gmxx_tx_jam_s cn63xxp1;
  6363. struct cvmx_gmxx_tx_jam_s cn66xx;
  6364. struct cvmx_gmxx_tx_jam_s cn68xx;
  6365. struct cvmx_gmxx_tx_jam_s cn68xxp1;
  6366. struct cvmx_gmxx_tx_jam_s cnf71xx;
  6367. };
  6368. union cvmx_gmxx_tx_lfsr {
  6369. uint64_t u64;
  6370. struct cvmx_gmxx_tx_lfsr_s {
  6371. #ifdef __BIG_ENDIAN_BITFIELD
  6372. uint64_t reserved_16_63:48;
  6373. uint64_t lfsr:16;
  6374. #else
  6375. uint64_t lfsr:16;
  6376. uint64_t reserved_16_63:48;
  6377. #endif
  6378. } s;
  6379. struct cvmx_gmxx_tx_lfsr_s cn30xx;
  6380. struct cvmx_gmxx_tx_lfsr_s cn31xx;
  6381. struct cvmx_gmxx_tx_lfsr_s cn38xx;
  6382. struct cvmx_gmxx_tx_lfsr_s cn38xxp2;
  6383. struct cvmx_gmxx_tx_lfsr_s cn50xx;
  6384. struct cvmx_gmxx_tx_lfsr_s cn52xx;
  6385. struct cvmx_gmxx_tx_lfsr_s cn52xxp1;
  6386. struct cvmx_gmxx_tx_lfsr_s cn56xx;
  6387. struct cvmx_gmxx_tx_lfsr_s cn56xxp1;
  6388. struct cvmx_gmxx_tx_lfsr_s cn58xx;
  6389. struct cvmx_gmxx_tx_lfsr_s cn58xxp1;
  6390. struct cvmx_gmxx_tx_lfsr_s cn61xx;
  6391. struct cvmx_gmxx_tx_lfsr_s cn63xx;
  6392. struct cvmx_gmxx_tx_lfsr_s cn63xxp1;
  6393. struct cvmx_gmxx_tx_lfsr_s cn66xx;
  6394. struct cvmx_gmxx_tx_lfsr_s cn68xx;
  6395. struct cvmx_gmxx_tx_lfsr_s cn68xxp1;
  6396. struct cvmx_gmxx_tx_lfsr_s cnf71xx;
  6397. };
  6398. union cvmx_gmxx_tx_ovr_bp {
  6399. uint64_t u64;
  6400. struct cvmx_gmxx_tx_ovr_bp_s {
  6401. #ifdef __BIG_ENDIAN_BITFIELD
  6402. uint64_t reserved_48_63:16;
  6403. uint64_t tx_prt_bp:16;
  6404. uint64_t reserved_12_31:20;
  6405. uint64_t en:4;
  6406. uint64_t bp:4;
  6407. uint64_t ign_full:4;
  6408. #else
  6409. uint64_t ign_full:4;
  6410. uint64_t bp:4;
  6411. uint64_t en:4;
  6412. uint64_t reserved_12_31:20;
  6413. uint64_t tx_prt_bp:16;
  6414. uint64_t reserved_48_63:16;
  6415. #endif
  6416. } s;
  6417. struct cvmx_gmxx_tx_ovr_bp_cn30xx {
  6418. #ifdef __BIG_ENDIAN_BITFIELD
  6419. uint64_t reserved_11_63:53;
  6420. uint64_t en:3;
  6421. uint64_t reserved_7_7:1;
  6422. uint64_t bp:3;
  6423. uint64_t reserved_3_3:1;
  6424. uint64_t ign_full:3;
  6425. #else
  6426. uint64_t ign_full:3;
  6427. uint64_t reserved_3_3:1;
  6428. uint64_t bp:3;
  6429. uint64_t reserved_7_7:1;
  6430. uint64_t en:3;
  6431. uint64_t reserved_11_63:53;
  6432. #endif
  6433. } cn30xx;
  6434. struct cvmx_gmxx_tx_ovr_bp_cn30xx cn31xx;
  6435. struct cvmx_gmxx_tx_ovr_bp_cn38xx {
  6436. #ifdef __BIG_ENDIAN_BITFIELD
  6437. uint64_t reserved_12_63:52;
  6438. uint64_t en:4;
  6439. uint64_t bp:4;
  6440. uint64_t ign_full:4;
  6441. #else
  6442. uint64_t ign_full:4;
  6443. uint64_t bp:4;
  6444. uint64_t en:4;
  6445. uint64_t reserved_12_63:52;
  6446. #endif
  6447. } cn38xx;
  6448. struct cvmx_gmxx_tx_ovr_bp_cn38xx cn38xxp2;
  6449. struct cvmx_gmxx_tx_ovr_bp_cn30xx cn50xx;
  6450. struct cvmx_gmxx_tx_ovr_bp_s cn52xx;
  6451. struct cvmx_gmxx_tx_ovr_bp_s cn52xxp1;
  6452. struct cvmx_gmxx_tx_ovr_bp_s cn56xx;
  6453. struct cvmx_gmxx_tx_ovr_bp_s cn56xxp1;
  6454. struct cvmx_gmxx_tx_ovr_bp_cn38xx cn58xx;
  6455. struct cvmx_gmxx_tx_ovr_bp_cn38xx cn58xxp1;
  6456. struct cvmx_gmxx_tx_ovr_bp_s cn61xx;
  6457. struct cvmx_gmxx_tx_ovr_bp_s cn63xx;
  6458. struct cvmx_gmxx_tx_ovr_bp_s cn63xxp1;
  6459. struct cvmx_gmxx_tx_ovr_bp_s cn66xx;
  6460. struct cvmx_gmxx_tx_ovr_bp_s cn68xx;
  6461. struct cvmx_gmxx_tx_ovr_bp_s cn68xxp1;
  6462. struct cvmx_gmxx_tx_ovr_bp_cnf71xx {
  6463. #ifdef __BIG_ENDIAN_BITFIELD
  6464. uint64_t reserved_48_63:16;
  6465. uint64_t tx_prt_bp:16;
  6466. uint64_t reserved_10_31:22;
  6467. uint64_t en:2;
  6468. uint64_t reserved_6_7:2;
  6469. uint64_t bp:2;
  6470. uint64_t reserved_2_3:2;
  6471. uint64_t ign_full:2;
  6472. #else
  6473. uint64_t ign_full:2;
  6474. uint64_t reserved_2_3:2;
  6475. uint64_t bp:2;
  6476. uint64_t reserved_6_7:2;
  6477. uint64_t en:2;
  6478. uint64_t reserved_10_31:22;
  6479. uint64_t tx_prt_bp:16;
  6480. uint64_t reserved_48_63:16;
  6481. #endif
  6482. } cnf71xx;
  6483. };
  6484. union cvmx_gmxx_tx_pause_pkt_dmac {
  6485. uint64_t u64;
  6486. struct cvmx_gmxx_tx_pause_pkt_dmac_s {
  6487. #ifdef __BIG_ENDIAN_BITFIELD
  6488. uint64_t reserved_48_63:16;
  6489. uint64_t dmac:48;
  6490. #else
  6491. uint64_t dmac:48;
  6492. uint64_t reserved_48_63:16;
  6493. #endif
  6494. } s;
  6495. struct cvmx_gmxx_tx_pause_pkt_dmac_s cn30xx;
  6496. struct cvmx_gmxx_tx_pause_pkt_dmac_s cn31xx;
  6497. struct cvmx_gmxx_tx_pause_pkt_dmac_s cn38xx;
  6498. struct cvmx_gmxx_tx_pause_pkt_dmac_s cn38xxp2;
  6499. struct cvmx_gmxx_tx_pause_pkt_dmac_s cn50xx;
  6500. struct cvmx_gmxx_tx_pause_pkt_dmac_s cn52xx;
  6501. struct cvmx_gmxx_tx_pause_pkt_dmac_s cn52xxp1;
  6502. struct cvmx_gmxx_tx_pause_pkt_dmac_s cn56xx;
  6503. struct cvmx_gmxx_tx_pause_pkt_dmac_s cn56xxp1;
  6504. struct cvmx_gmxx_tx_pause_pkt_dmac_s cn58xx;
  6505. struct cvmx_gmxx_tx_pause_pkt_dmac_s cn58xxp1;
  6506. struct cvmx_gmxx_tx_pause_pkt_dmac_s cn61xx;
  6507. struct cvmx_gmxx_tx_pause_pkt_dmac_s cn63xx;
  6508. struct cvmx_gmxx_tx_pause_pkt_dmac_s cn63xxp1;
  6509. struct cvmx_gmxx_tx_pause_pkt_dmac_s cn66xx;
  6510. struct cvmx_gmxx_tx_pause_pkt_dmac_s cn68xx;
  6511. struct cvmx_gmxx_tx_pause_pkt_dmac_s cn68xxp1;
  6512. struct cvmx_gmxx_tx_pause_pkt_dmac_s cnf71xx;
  6513. };
  6514. union cvmx_gmxx_tx_pause_pkt_type {
  6515. uint64_t u64;
  6516. struct cvmx_gmxx_tx_pause_pkt_type_s {
  6517. #ifdef __BIG_ENDIAN_BITFIELD
  6518. uint64_t reserved_16_63:48;
  6519. uint64_t type:16;
  6520. #else
  6521. uint64_t type:16;
  6522. uint64_t reserved_16_63:48;
  6523. #endif
  6524. } s;
  6525. struct cvmx_gmxx_tx_pause_pkt_type_s cn30xx;
  6526. struct cvmx_gmxx_tx_pause_pkt_type_s cn31xx;
  6527. struct cvmx_gmxx_tx_pause_pkt_type_s cn38xx;
  6528. struct cvmx_gmxx_tx_pause_pkt_type_s cn38xxp2;
  6529. struct cvmx_gmxx_tx_pause_pkt_type_s cn50xx;
  6530. struct cvmx_gmxx_tx_pause_pkt_type_s cn52xx;
  6531. struct cvmx_gmxx_tx_pause_pkt_type_s cn52xxp1;
  6532. struct cvmx_gmxx_tx_pause_pkt_type_s cn56xx;
  6533. struct cvmx_gmxx_tx_pause_pkt_type_s cn56xxp1;
  6534. struct cvmx_gmxx_tx_pause_pkt_type_s cn58xx;
  6535. struct cvmx_gmxx_tx_pause_pkt_type_s cn58xxp1;
  6536. struct cvmx_gmxx_tx_pause_pkt_type_s cn61xx;
  6537. struct cvmx_gmxx_tx_pause_pkt_type_s cn63xx;
  6538. struct cvmx_gmxx_tx_pause_pkt_type_s cn63xxp1;
  6539. struct cvmx_gmxx_tx_pause_pkt_type_s cn66xx;
  6540. struct cvmx_gmxx_tx_pause_pkt_type_s cn68xx;
  6541. struct cvmx_gmxx_tx_pause_pkt_type_s cn68xxp1;
  6542. struct cvmx_gmxx_tx_pause_pkt_type_s cnf71xx;
  6543. };
  6544. union cvmx_gmxx_tx_prts {
  6545. uint64_t u64;
  6546. struct cvmx_gmxx_tx_prts_s {
  6547. #ifdef __BIG_ENDIAN_BITFIELD
  6548. uint64_t reserved_5_63:59;
  6549. uint64_t prts:5;
  6550. #else
  6551. uint64_t prts:5;
  6552. uint64_t reserved_5_63:59;
  6553. #endif
  6554. } s;
  6555. struct cvmx_gmxx_tx_prts_s cn30xx;
  6556. struct cvmx_gmxx_tx_prts_s cn31xx;
  6557. struct cvmx_gmxx_tx_prts_s cn38xx;
  6558. struct cvmx_gmxx_tx_prts_s cn38xxp2;
  6559. struct cvmx_gmxx_tx_prts_s cn50xx;
  6560. struct cvmx_gmxx_tx_prts_s cn52xx;
  6561. struct cvmx_gmxx_tx_prts_s cn52xxp1;
  6562. struct cvmx_gmxx_tx_prts_s cn56xx;
  6563. struct cvmx_gmxx_tx_prts_s cn56xxp1;
  6564. struct cvmx_gmxx_tx_prts_s cn58xx;
  6565. struct cvmx_gmxx_tx_prts_s cn58xxp1;
  6566. struct cvmx_gmxx_tx_prts_s cn61xx;
  6567. struct cvmx_gmxx_tx_prts_s cn63xx;
  6568. struct cvmx_gmxx_tx_prts_s cn63xxp1;
  6569. struct cvmx_gmxx_tx_prts_s cn66xx;
  6570. struct cvmx_gmxx_tx_prts_s cn68xx;
  6571. struct cvmx_gmxx_tx_prts_s cn68xxp1;
  6572. struct cvmx_gmxx_tx_prts_s cnf71xx;
  6573. };
  6574. union cvmx_gmxx_tx_spi_ctl {
  6575. uint64_t u64;
  6576. struct cvmx_gmxx_tx_spi_ctl_s {
  6577. #ifdef __BIG_ENDIAN_BITFIELD
  6578. uint64_t reserved_2_63:62;
  6579. uint64_t tpa_clr:1;
  6580. uint64_t cont_pkt:1;
  6581. #else
  6582. uint64_t cont_pkt:1;
  6583. uint64_t tpa_clr:1;
  6584. uint64_t reserved_2_63:62;
  6585. #endif
  6586. } s;
  6587. struct cvmx_gmxx_tx_spi_ctl_s cn38xx;
  6588. struct cvmx_gmxx_tx_spi_ctl_s cn38xxp2;
  6589. struct cvmx_gmxx_tx_spi_ctl_s cn58xx;
  6590. struct cvmx_gmxx_tx_spi_ctl_s cn58xxp1;
  6591. };
  6592. union cvmx_gmxx_tx_spi_drain {
  6593. uint64_t u64;
  6594. struct cvmx_gmxx_tx_spi_drain_s {
  6595. #ifdef __BIG_ENDIAN_BITFIELD
  6596. uint64_t reserved_16_63:48;
  6597. uint64_t drain:16;
  6598. #else
  6599. uint64_t drain:16;
  6600. uint64_t reserved_16_63:48;
  6601. #endif
  6602. } s;
  6603. struct cvmx_gmxx_tx_spi_drain_s cn38xx;
  6604. struct cvmx_gmxx_tx_spi_drain_s cn58xx;
  6605. struct cvmx_gmxx_tx_spi_drain_s cn58xxp1;
  6606. };
  6607. union cvmx_gmxx_tx_spi_max {
  6608. uint64_t u64;
  6609. struct cvmx_gmxx_tx_spi_max_s {
  6610. #ifdef __BIG_ENDIAN_BITFIELD
  6611. uint64_t reserved_23_63:41;
  6612. uint64_t slice:7;
  6613. uint64_t max2:8;
  6614. uint64_t max1:8;
  6615. #else
  6616. uint64_t max1:8;
  6617. uint64_t max2:8;
  6618. uint64_t slice:7;
  6619. uint64_t reserved_23_63:41;
  6620. #endif
  6621. } s;
  6622. struct cvmx_gmxx_tx_spi_max_cn38xx {
  6623. #ifdef __BIG_ENDIAN_BITFIELD
  6624. uint64_t reserved_16_63:48;
  6625. uint64_t max2:8;
  6626. uint64_t max1:8;
  6627. #else
  6628. uint64_t max1:8;
  6629. uint64_t max2:8;
  6630. uint64_t reserved_16_63:48;
  6631. #endif
  6632. } cn38xx;
  6633. struct cvmx_gmxx_tx_spi_max_cn38xx cn38xxp2;
  6634. struct cvmx_gmxx_tx_spi_max_s cn58xx;
  6635. struct cvmx_gmxx_tx_spi_max_s cn58xxp1;
  6636. };
  6637. union cvmx_gmxx_tx_spi_roundx {
  6638. uint64_t u64;
  6639. struct cvmx_gmxx_tx_spi_roundx_s {
  6640. #ifdef __BIG_ENDIAN_BITFIELD
  6641. uint64_t reserved_16_63:48;
  6642. uint64_t round:16;
  6643. #else
  6644. uint64_t round:16;
  6645. uint64_t reserved_16_63:48;
  6646. #endif
  6647. } s;
  6648. struct cvmx_gmxx_tx_spi_roundx_s cn58xx;
  6649. struct cvmx_gmxx_tx_spi_roundx_s cn58xxp1;
  6650. };
  6651. union cvmx_gmxx_tx_spi_thresh {
  6652. uint64_t u64;
  6653. struct cvmx_gmxx_tx_spi_thresh_s {
  6654. #ifdef __BIG_ENDIAN_BITFIELD
  6655. uint64_t reserved_6_63:58;
  6656. uint64_t thresh:6;
  6657. #else
  6658. uint64_t thresh:6;
  6659. uint64_t reserved_6_63:58;
  6660. #endif
  6661. } s;
  6662. struct cvmx_gmxx_tx_spi_thresh_s cn38xx;
  6663. struct cvmx_gmxx_tx_spi_thresh_s cn38xxp2;
  6664. struct cvmx_gmxx_tx_spi_thresh_s cn58xx;
  6665. struct cvmx_gmxx_tx_spi_thresh_s cn58xxp1;
  6666. };
  6667. union cvmx_gmxx_tx_xaui_ctl {
  6668. uint64_t u64;
  6669. struct cvmx_gmxx_tx_xaui_ctl_s {
  6670. #ifdef __BIG_ENDIAN_BITFIELD
  6671. uint64_t reserved_11_63:53;
  6672. uint64_t hg_pause_hgi:2;
  6673. uint64_t hg_en:1;
  6674. uint64_t reserved_7_7:1;
  6675. uint64_t ls_byp:1;
  6676. uint64_t ls:2;
  6677. uint64_t reserved_2_3:2;
  6678. uint64_t uni_en:1;
  6679. uint64_t dic_en:1;
  6680. #else
  6681. uint64_t dic_en:1;
  6682. uint64_t uni_en:1;
  6683. uint64_t reserved_2_3:2;
  6684. uint64_t ls:2;
  6685. uint64_t ls_byp:1;
  6686. uint64_t reserved_7_7:1;
  6687. uint64_t hg_en:1;
  6688. uint64_t hg_pause_hgi:2;
  6689. uint64_t reserved_11_63:53;
  6690. #endif
  6691. } s;
  6692. struct cvmx_gmxx_tx_xaui_ctl_s cn52xx;
  6693. struct cvmx_gmxx_tx_xaui_ctl_s cn52xxp1;
  6694. struct cvmx_gmxx_tx_xaui_ctl_s cn56xx;
  6695. struct cvmx_gmxx_tx_xaui_ctl_s cn56xxp1;
  6696. struct cvmx_gmxx_tx_xaui_ctl_s cn61xx;
  6697. struct cvmx_gmxx_tx_xaui_ctl_s cn63xx;
  6698. struct cvmx_gmxx_tx_xaui_ctl_s cn63xxp1;
  6699. struct cvmx_gmxx_tx_xaui_ctl_s cn66xx;
  6700. struct cvmx_gmxx_tx_xaui_ctl_s cn68xx;
  6701. struct cvmx_gmxx_tx_xaui_ctl_s cn68xxp1;
  6702. struct cvmx_gmxx_tx_xaui_ctl_s cnf71xx;
  6703. };
  6704. union cvmx_gmxx_xaui_ext_loopback {
  6705. uint64_t u64;
  6706. struct cvmx_gmxx_xaui_ext_loopback_s {
  6707. #ifdef __BIG_ENDIAN_BITFIELD
  6708. uint64_t reserved_5_63:59;
  6709. uint64_t en:1;
  6710. uint64_t thresh:4;
  6711. #else
  6712. uint64_t thresh:4;
  6713. uint64_t en:1;
  6714. uint64_t reserved_5_63:59;
  6715. #endif
  6716. } s;
  6717. struct cvmx_gmxx_xaui_ext_loopback_s cn52xx;
  6718. struct cvmx_gmxx_xaui_ext_loopback_s cn52xxp1;
  6719. struct cvmx_gmxx_xaui_ext_loopback_s cn56xx;
  6720. struct cvmx_gmxx_xaui_ext_loopback_s cn56xxp1;
  6721. struct cvmx_gmxx_xaui_ext_loopback_s cn61xx;
  6722. struct cvmx_gmxx_xaui_ext_loopback_s cn63xx;
  6723. struct cvmx_gmxx_xaui_ext_loopback_s cn63xxp1;
  6724. struct cvmx_gmxx_xaui_ext_loopback_s cn66xx;
  6725. struct cvmx_gmxx_xaui_ext_loopback_s cn68xx;
  6726. struct cvmx_gmxx_xaui_ext_loopback_s cn68xxp1;
  6727. struct cvmx_gmxx_xaui_ext_loopback_s cnf71xx;
  6728. };
  6729. #endif