wlan_firmware_service_v01.c 159 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /* Copyright (c) 2015-2021, The Linux Foundation. All rights reserved. */
  3. /* Copyright (c) 2021-2022 Qualcomm Innovation Center, Inc. All rights reserved. */
  4. #include "wlan_firmware_service_v01.h"
  5. #include <linux/module.h>
  6. #include <linux/of.h>
  7. static struct qmi_elem_info wlfw_ce_tgt_pipe_cfg_s_v01_ei[] = {
  8. {
  9. .data_type = QMI_UNSIGNED_4_BYTE,
  10. .elem_len = 1,
  11. .elem_size = sizeof(u32),
  12. .array_type = NO_ARRAY,
  13. .tlv_type = 0,
  14. .offset = offsetof(struct
  15. wlfw_ce_tgt_pipe_cfg_s_v01,
  16. pipe_num),
  17. },
  18. {
  19. .data_type = QMI_SIGNED_4_BYTE_ENUM,
  20. .elem_len = 1,
  21. .elem_size = sizeof(enum wlfw_pipedir_enum_v01),
  22. .array_type = NO_ARRAY,
  23. .tlv_type = 0,
  24. .offset = offsetof(struct
  25. wlfw_ce_tgt_pipe_cfg_s_v01,
  26. pipe_dir),
  27. },
  28. {
  29. .data_type = QMI_UNSIGNED_4_BYTE,
  30. .elem_len = 1,
  31. .elem_size = sizeof(u32),
  32. .array_type = NO_ARRAY,
  33. .tlv_type = 0,
  34. .offset = offsetof(struct
  35. wlfw_ce_tgt_pipe_cfg_s_v01,
  36. nentries),
  37. },
  38. {
  39. .data_type = QMI_UNSIGNED_4_BYTE,
  40. .elem_len = 1,
  41. .elem_size = sizeof(u32),
  42. .array_type = NO_ARRAY,
  43. .tlv_type = 0,
  44. .offset = offsetof(struct
  45. wlfw_ce_tgt_pipe_cfg_s_v01,
  46. nbytes_max),
  47. },
  48. {
  49. .data_type = QMI_UNSIGNED_4_BYTE,
  50. .elem_len = 1,
  51. .elem_size = sizeof(u32),
  52. .array_type = NO_ARRAY,
  53. .tlv_type = 0,
  54. .offset = offsetof(struct
  55. wlfw_ce_tgt_pipe_cfg_s_v01,
  56. flags),
  57. },
  58. {
  59. .data_type = QMI_EOTI,
  60. .array_type = NO_ARRAY,
  61. .tlv_type = QMI_COMMON_TLV_TYPE,
  62. },
  63. };
  64. static struct qmi_elem_info wlfw_ce_svc_pipe_cfg_s_v01_ei[] = {
  65. {
  66. .data_type = QMI_UNSIGNED_4_BYTE,
  67. .elem_len = 1,
  68. .elem_size = sizeof(u32),
  69. .array_type = NO_ARRAY,
  70. .tlv_type = 0,
  71. .offset = offsetof(struct
  72. wlfw_ce_svc_pipe_cfg_s_v01,
  73. service_id),
  74. },
  75. {
  76. .data_type = QMI_SIGNED_4_BYTE_ENUM,
  77. .elem_len = 1,
  78. .elem_size = sizeof(enum wlfw_pipedir_enum_v01),
  79. .array_type = NO_ARRAY,
  80. .tlv_type = 0,
  81. .offset = offsetof(struct
  82. wlfw_ce_svc_pipe_cfg_s_v01,
  83. pipe_dir),
  84. },
  85. {
  86. .data_type = QMI_UNSIGNED_4_BYTE,
  87. .elem_len = 1,
  88. .elem_size = sizeof(u32),
  89. .array_type = NO_ARRAY,
  90. .tlv_type = 0,
  91. .offset = offsetof(struct
  92. wlfw_ce_svc_pipe_cfg_s_v01,
  93. pipe_num),
  94. },
  95. {
  96. .data_type = QMI_EOTI,
  97. .array_type = NO_ARRAY,
  98. .tlv_type = QMI_COMMON_TLV_TYPE,
  99. },
  100. };
  101. static struct qmi_elem_info wlfw_shadow_reg_cfg_s_v01_ei[] = {
  102. {
  103. .data_type = QMI_UNSIGNED_2_BYTE,
  104. .elem_len = 1,
  105. .elem_size = sizeof(u16),
  106. .array_type = NO_ARRAY,
  107. .tlv_type = 0,
  108. .offset = offsetof(struct
  109. wlfw_shadow_reg_cfg_s_v01,
  110. id),
  111. },
  112. {
  113. .data_type = QMI_UNSIGNED_2_BYTE,
  114. .elem_len = 1,
  115. .elem_size = sizeof(u16),
  116. .array_type = NO_ARRAY,
  117. .tlv_type = 0,
  118. .offset = offsetof(struct
  119. wlfw_shadow_reg_cfg_s_v01,
  120. offset),
  121. },
  122. {
  123. .data_type = QMI_EOTI,
  124. .array_type = NO_ARRAY,
  125. .tlv_type = QMI_COMMON_TLV_TYPE,
  126. },
  127. };
  128. static struct qmi_elem_info wlfw_shadow_reg_v2_cfg_s_v01_ei[] = {
  129. {
  130. .data_type = QMI_UNSIGNED_4_BYTE,
  131. .elem_len = 1,
  132. .elem_size = sizeof(u32),
  133. .array_type = NO_ARRAY,
  134. .tlv_type = 0,
  135. .offset = offsetof(struct
  136. wlfw_shadow_reg_v2_cfg_s_v01,
  137. addr),
  138. },
  139. {
  140. .data_type = QMI_EOTI,
  141. .array_type = NO_ARRAY,
  142. .tlv_type = QMI_COMMON_TLV_TYPE,
  143. },
  144. };
  145. static struct qmi_elem_info wlfw_rri_over_ddr_cfg_s_v01_ei[] = {
  146. {
  147. .data_type = QMI_UNSIGNED_4_BYTE,
  148. .elem_len = 1,
  149. .elem_size = sizeof(u32),
  150. .array_type = NO_ARRAY,
  151. .tlv_type = 0,
  152. .offset = offsetof(struct
  153. wlfw_rri_over_ddr_cfg_s_v01,
  154. base_addr_low),
  155. },
  156. {
  157. .data_type = QMI_UNSIGNED_4_BYTE,
  158. .elem_len = 1,
  159. .elem_size = sizeof(u32),
  160. .array_type = NO_ARRAY,
  161. .tlv_type = 0,
  162. .offset = offsetof(struct
  163. wlfw_rri_over_ddr_cfg_s_v01,
  164. base_addr_high),
  165. },
  166. {
  167. .data_type = QMI_EOTI,
  168. .array_type = NO_ARRAY,
  169. .tlv_type = QMI_COMMON_TLV_TYPE,
  170. },
  171. };
  172. static struct qmi_elem_info wlfw_msi_cfg_s_v01_ei[] = {
  173. {
  174. .data_type = QMI_UNSIGNED_2_BYTE,
  175. .elem_len = 1,
  176. .elem_size = sizeof(u16),
  177. .array_type = NO_ARRAY,
  178. .tlv_type = 0,
  179. .offset = offsetof(struct
  180. wlfw_msi_cfg_s_v01,
  181. ce_id),
  182. },
  183. {
  184. .data_type = QMI_UNSIGNED_2_BYTE,
  185. .elem_len = 1,
  186. .elem_size = sizeof(u16),
  187. .array_type = NO_ARRAY,
  188. .tlv_type = 0,
  189. .offset = offsetof(struct
  190. wlfw_msi_cfg_s_v01,
  191. msi_vector),
  192. },
  193. {
  194. .data_type = QMI_EOTI,
  195. .array_type = NO_ARRAY,
  196. .tlv_type = QMI_COMMON_TLV_TYPE,
  197. },
  198. };
  199. static struct qmi_elem_info wlfw_memory_region_info_s_v01_ei[] = {
  200. {
  201. .data_type = QMI_UNSIGNED_8_BYTE,
  202. .elem_len = 1,
  203. .elem_size = sizeof(u64),
  204. .array_type = NO_ARRAY,
  205. .tlv_type = 0,
  206. .offset = offsetof(struct
  207. wlfw_memory_region_info_s_v01,
  208. region_addr),
  209. },
  210. {
  211. .data_type = QMI_UNSIGNED_4_BYTE,
  212. .elem_len = 1,
  213. .elem_size = sizeof(u32),
  214. .array_type = NO_ARRAY,
  215. .tlv_type = 0,
  216. .offset = offsetof(struct
  217. wlfw_memory_region_info_s_v01,
  218. size),
  219. },
  220. {
  221. .data_type = QMI_UNSIGNED_1_BYTE,
  222. .elem_len = 1,
  223. .elem_size = sizeof(u8),
  224. .array_type = NO_ARRAY,
  225. .tlv_type = 0,
  226. .offset = offsetof(struct
  227. wlfw_memory_region_info_s_v01,
  228. secure_flag),
  229. },
  230. {
  231. .data_type = QMI_EOTI,
  232. .array_type = NO_ARRAY,
  233. .tlv_type = QMI_COMMON_TLV_TYPE,
  234. },
  235. };
  236. static struct qmi_elem_info wlfw_mem_cfg_s_v01_ei[] = {
  237. {
  238. .data_type = QMI_UNSIGNED_8_BYTE,
  239. .elem_len = 1,
  240. .elem_size = sizeof(u64),
  241. .array_type = NO_ARRAY,
  242. .tlv_type = 0,
  243. .offset = offsetof(struct
  244. wlfw_mem_cfg_s_v01,
  245. offset),
  246. },
  247. {
  248. .data_type = QMI_UNSIGNED_4_BYTE,
  249. .elem_len = 1,
  250. .elem_size = sizeof(u32),
  251. .array_type = NO_ARRAY,
  252. .tlv_type = 0,
  253. .offset = offsetof(struct
  254. wlfw_mem_cfg_s_v01,
  255. size),
  256. },
  257. {
  258. .data_type = QMI_UNSIGNED_1_BYTE,
  259. .elem_len = 1,
  260. .elem_size = sizeof(u8),
  261. .array_type = NO_ARRAY,
  262. .tlv_type = 0,
  263. .offset = offsetof(struct
  264. wlfw_mem_cfg_s_v01,
  265. secure_flag),
  266. },
  267. {
  268. .data_type = QMI_EOTI,
  269. .array_type = NO_ARRAY,
  270. .tlv_type = QMI_COMMON_TLV_TYPE,
  271. },
  272. };
  273. static struct qmi_elem_info wlfw_mem_seg_s_v01_ei[] = {
  274. {
  275. .data_type = QMI_UNSIGNED_4_BYTE,
  276. .elem_len = 1,
  277. .elem_size = sizeof(u32),
  278. .array_type = NO_ARRAY,
  279. .tlv_type = 0,
  280. .offset = offsetof(struct
  281. wlfw_mem_seg_s_v01,
  282. size),
  283. },
  284. {
  285. .data_type = QMI_SIGNED_4_BYTE_ENUM,
  286. .elem_len = 1,
  287. .elem_size = sizeof(enum wlfw_mem_type_enum_v01),
  288. .array_type = NO_ARRAY,
  289. .tlv_type = 0,
  290. .offset = offsetof(struct
  291. wlfw_mem_seg_s_v01,
  292. type),
  293. },
  294. {
  295. .data_type = QMI_DATA_LEN,
  296. .elem_len = 1,
  297. .elem_size = sizeof(u8),
  298. .array_type = NO_ARRAY,
  299. .tlv_type = 0,
  300. .offset = offsetof(struct
  301. wlfw_mem_seg_s_v01,
  302. mem_cfg_len),
  303. },
  304. {
  305. .data_type = QMI_STRUCT,
  306. .elem_len = QMI_WLFW_MAX_NUM_MEM_CFG_V01,
  307. .elem_size = sizeof(struct wlfw_mem_cfg_s_v01),
  308. .array_type = VAR_LEN_ARRAY,
  309. .tlv_type = 0,
  310. .offset = offsetof(struct
  311. wlfw_mem_seg_s_v01,
  312. mem_cfg),
  313. .ei_array = wlfw_mem_cfg_s_v01_ei,
  314. },
  315. {
  316. .data_type = QMI_EOTI,
  317. .array_type = NO_ARRAY,
  318. .tlv_type = QMI_COMMON_TLV_TYPE,
  319. },
  320. };
  321. static struct qmi_elem_info wlfw_mem_seg_resp_s_v01_ei[] = {
  322. {
  323. .data_type = QMI_UNSIGNED_8_BYTE,
  324. .elem_len = 1,
  325. .elem_size = sizeof(u64),
  326. .array_type = NO_ARRAY,
  327. .tlv_type = 0,
  328. .offset = offsetof(struct
  329. wlfw_mem_seg_resp_s_v01,
  330. addr),
  331. },
  332. {
  333. .data_type = QMI_UNSIGNED_4_BYTE,
  334. .elem_len = 1,
  335. .elem_size = sizeof(u32),
  336. .array_type = NO_ARRAY,
  337. .tlv_type = 0,
  338. .offset = offsetof(struct
  339. wlfw_mem_seg_resp_s_v01,
  340. size),
  341. },
  342. {
  343. .data_type = QMI_SIGNED_4_BYTE_ENUM,
  344. .elem_len = 1,
  345. .elem_size = sizeof(enum wlfw_mem_type_enum_v01),
  346. .array_type = NO_ARRAY,
  347. .tlv_type = 0,
  348. .offset = offsetof(struct
  349. wlfw_mem_seg_resp_s_v01,
  350. type),
  351. },
  352. {
  353. .data_type = QMI_UNSIGNED_1_BYTE,
  354. .elem_len = 1,
  355. .elem_size = sizeof(u8),
  356. .array_type = NO_ARRAY,
  357. .tlv_type = 0,
  358. .offset = offsetof(struct
  359. wlfw_mem_seg_resp_s_v01,
  360. restore),
  361. },
  362. {
  363. .data_type = QMI_EOTI,
  364. .array_type = NO_ARRAY,
  365. .tlv_type = QMI_COMMON_TLV_TYPE,
  366. },
  367. };
  368. static struct qmi_elem_info wlfw_rf_chip_info_s_v01_ei[] = {
  369. {
  370. .data_type = QMI_UNSIGNED_4_BYTE,
  371. .elem_len = 1,
  372. .elem_size = sizeof(u32),
  373. .array_type = NO_ARRAY,
  374. .tlv_type = 0,
  375. .offset = offsetof(struct
  376. wlfw_rf_chip_info_s_v01,
  377. chip_id),
  378. },
  379. {
  380. .data_type = QMI_UNSIGNED_4_BYTE,
  381. .elem_len = 1,
  382. .elem_size = sizeof(u32),
  383. .array_type = NO_ARRAY,
  384. .tlv_type = 0,
  385. .offset = offsetof(struct
  386. wlfw_rf_chip_info_s_v01,
  387. chip_family),
  388. },
  389. {
  390. .data_type = QMI_EOTI,
  391. .array_type = NO_ARRAY,
  392. .tlv_type = QMI_COMMON_TLV_TYPE,
  393. },
  394. };
  395. static struct qmi_elem_info wlfw_rf_board_info_s_v01_ei[] = {
  396. {
  397. .data_type = QMI_UNSIGNED_4_BYTE,
  398. .elem_len = 1,
  399. .elem_size = sizeof(u32),
  400. .array_type = NO_ARRAY,
  401. .tlv_type = 0,
  402. .offset = offsetof(struct
  403. wlfw_rf_board_info_s_v01,
  404. board_id),
  405. },
  406. {
  407. .data_type = QMI_EOTI,
  408. .array_type = NO_ARRAY,
  409. .tlv_type = QMI_COMMON_TLV_TYPE,
  410. },
  411. };
  412. static struct qmi_elem_info wlfw_soc_info_s_v01_ei[] = {
  413. {
  414. .data_type = QMI_UNSIGNED_4_BYTE,
  415. .elem_len = 1,
  416. .elem_size = sizeof(u32),
  417. .array_type = NO_ARRAY,
  418. .tlv_type = 0,
  419. .offset = offsetof(struct
  420. wlfw_soc_info_s_v01,
  421. soc_id),
  422. },
  423. {
  424. .data_type = QMI_EOTI,
  425. .array_type = NO_ARRAY,
  426. .tlv_type = QMI_COMMON_TLV_TYPE,
  427. },
  428. };
  429. static struct qmi_elem_info wlfw_fw_version_info_s_v01_ei[] = {
  430. {
  431. .data_type = QMI_UNSIGNED_4_BYTE,
  432. .elem_len = 1,
  433. .elem_size = sizeof(u32),
  434. .array_type = NO_ARRAY,
  435. .tlv_type = 0,
  436. .offset = offsetof(struct
  437. wlfw_fw_version_info_s_v01,
  438. fw_version),
  439. },
  440. {
  441. .data_type = QMI_STRING,
  442. .elem_len = QMI_WLFW_MAX_TIMESTAMP_LEN_V01 + 1,
  443. .elem_size = sizeof(char),
  444. .array_type = NO_ARRAY,
  445. .tlv_type = 0,
  446. .offset = offsetof(struct
  447. wlfw_fw_version_info_s_v01,
  448. fw_build_timestamp),
  449. },
  450. {
  451. .data_type = QMI_EOTI,
  452. .array_type = NO_ARRAY,
  453. .tlv_type = QMI_COMMON_TLV_TYPE,
  454. },
  455. };
  456. static struct qmi_elem_info wlfw_host_ddr_range_s_v01_ei[] = {
  457. {
  458. .data_type = QMI_UNSIGNED_8_BYTE,
  459. .elem_len = 1,
  460. .elem_size = sizeof(u64),
  461. .array_type = NO_ARRAY,
  462. .tlv_type = 0,
  463. .offset = offsetof(struct
  464. wlfw_host_ddr_range_s_v01,
  465. start),
  466. },
  467. {
  468. .data_type = QMI_UNSIGNED_8_BYTE,
  469. .elem_len = 1,
  470. .elem_size = sizeof(u64),
  471. .array_type = NO_ARRAY,
  472. .tlv_type = 0,
  473. .offset = offsetof(struct
  474. wlfw_host_ddr_range_s_v01,
  475. size),
  476. },
  477. {
  478. .data_type = QMI_EOTI,
  479. .array_type = NO_ARRAY,
  480. .tlv_type = QMI_COMMON_TLV_TYPE,
  481. },
  482. };
  483. static struct qmi_elem_info wlfw_m3_segment_info_s_v01_ei[] = {
  484. {
  485. .data_type = QMI_SIGNED_4_BYTE_ENUM,
  486. .elem_len = 1,
  487. .elem_size = sizeof(enum wlfw_m3_segment_type_v01),
  488. .array_type = NO_ARRAY,
  489. .tlv_type = 0,
  490. .offset = offsetof(struct
  491. wlfw_m3_segment_info_s_v01,
  492. type),
  493. },
  494. {
  495. .data_type = QMI_UNSIGNED_8_BYTE,
  496. .elem_len = 1,
  497. .elem_size = sizeof(u64),
  498. .array_type = NO_ARRAY,
  499. .tlv_type = 0,
  500. .offset = offsetof(struct
  501. wlfw_m3_segment_info_s_v01,
  502. addr),
  503. },
  504. {
  505. .data_type = QMI_UNSIGNED_8_BYTE,
  506. .elem_len = 1,
  507. .elem_size = sizeof(u64),
  508. .array_type = NO_ARRAY,
  509. .tlv_type = 0,
  510. .offset = offsetof(struct
  511. wlfw_m3_segment_info_s_v01,
  512. size),
  513. },
  514. {
  515. .data_type = QMI_STRING,
  516. .elem_len = QMI_WLFW_MAX_STR_LEN_V01 + 1,
  517. .elem_size = sizeof(char),
  518. .array_type = NO_ARRAY,
  519. .tlv_type = 0,
  520. .offset = offsetof(struct
  521. wlfw_m3_segment_info_s_v01,
  522. name),
  523. },
  524. {
  525. .data_type = QMI_EOTI,
  526. .array_type = NO_ARRAY,
  527. .tlv_type = QMI_COMMON_TLV_TYPE,
  528. },
  529. };
  530. static struct qmi_elem_info wlfw_dev_mem_info_s_v01_ei[] = {
  531. {
  532. .data_type = QMI_UNSIGNED_8_BYTE,
  533. .elem_len = 1,
  534. .elem_size = sizeof(u64),
  535. .array_type = NO_ARRAY,
  536. .tlv_type = 0,
  537. .offset = offsetof(struct
  538. wlfw_dev_mem_info_s_v01,
  539. start),
  540. },
  541. {
  542. .data_type = QMI_UNSIGNED_8_BYTE,
  543. .elem_len = 1,
  544. .elem_size = sizeof(u64),
  545. .array_type = NO_ARRAY,
  546. .tlv_type = 0,
  547. .offset = offsetof(struct
  548. wlfw_dev_mem_info_s_v01,
  549. size),
  550. },
  551. {
  552. .data_type = QMI_EOTI,
  553. .array_type = NO_ARRAY,
  554. .tlv_type = QMI_COMMON_TLV_TYPE,
  555. },
  556. };
  557. static struct qmi_elem_info wlfw_host_mlo_chip_info_s_v01_ei[] = {
  558. {
  559. .data_type = QMI_UNSIGNED_1_BYTE,
  560. .elem_len = 1,
  561. .elem_size = sizeof(u8),
  562. .array_type = NO_ARRAY,
  563. .tlv_type = 0,
  564. .offset = offsetof(struct
  565. wlfw_host_mlo_chip_info_s_v01,
  566. chip_id),
  567. },
  568. {
  569. .data_type = QMI_UNSIGNED_1_BYTE,
  570. .elem_len = 1,
  571. .elem_size = sizeof(u8),
  572. .array_type = NO_ARRAY,
  573. .tlv_type = 0,
  574. .offset = offsetof(struct
  575. wlfw_host_mlo_chip_info_s_v01,
  576. num_local_links),
  577. },
  578. {
  579. .data_type = QMI_UNSIGNED_1_BYTE,
  580. .elem_len = QMI_WLFW_MAX_NUM_MLO_LINKS_PER_CHIP_V01,
  581. .elem_size = sizeof(u8),
  582. .array_type = STATIC_ARRAY,
  583. .tlv_type = 0,
  584. .offset = offsetof(struct
  585. wlfw_host_mlo_chip_info_s_v01,
  586. hw_link_id),
  587. },
  588. {
  589. .data_type = QMI_UNSIGNED_1_BYTE,
  590. .elem_len = QMI_WLFW_MAX_NUM_MLO_LINKS_PER_CHIP_V01,
  591. .elem_size = sizeof(u8),
  592. .array_type = STATIC_ARRAY,
  593. .tlv_type = 0,
  594. .offset = offsetof(struct
  595. wlfw_host_mlo_chip_info_s_v01,
  596. valid_mlo_link_id),
  597. },
  598. {
  599. .data_type = QMI_EOTI,
  600. .array_type = NO_ARRAY,
  601. .tlv_type = QMI_COMMON_TLV_TYPE,
  602. },
  603. };
  604. static struct qmi_elem_info wlfw_pmu_param_v01_ei[] = {
  605. {
  606. .data_type = QMI_UNSIGNED_1_BYTE,
  607. .elem_len = QMI_WLFW_PMU_PIN_NAME_MAX_LEN_V01,
  608. .elem_size = sizeof(u8),
  609. .array_type = STATIC_ARRAY,
  610. .tlv_type = 0,
  611. .offset = offsetof(struct
  612. wlfw_pmu_param_v01,
  613. pin_name),
  614. },
  615. {
  616. .data_type = QMI_UNSIGNED_4_BYTE,
  617. .elem_len = 1,
  618. .elem_size = sizeof(u32),
  619. .array_type = NO_ARRAY,
  620. .tlv_type = 0,
  621. .offset = offsetof(struct
  622. wlfw_pmu_param_v01,
  623. wake_volt_valid),
  624. },
  625. {
  626. .data_type = QMI_UNSIGNED_4_BYTE,
  627. .elem_len = 1,
  628. .elem_size = sizeof(u32),
  629. .array_type = NO_ARRAY,
  630. .tlv_type = 0,
  631. .offset = offsetof(struct
  632. wlfw_pmu_param_v01,
  633. wake_volt),
  634. },
  635. {
  636. .data_type = QMI_UNSIGNED_4_BYTE,
  637. .elem_len = 1,
  638. .elem_size = sizeof(u32),
  639. .array_type = NO_ARRAY,
  640. .tlv_type = 0,
  641. .offset = offsetof(struct
  642. wlfw_pmu_param_v01,
  643. sleep_volt_valid),
  644. },
  645. {
  646. .data_type = QMI_UNSIGNED_4_BYTE,
  647. .elem_len = 1,
  648. .elem_size = sizeof(u32),
  649. .array_type = NO_ARRAY,
  650. .tlv_type = 0,
  651. .offset = offsetof(struct
  652. wlfw_pmu_param_v01,
  653. sleep_volt),
  654. },
  655. {
  656. .data_type = QMI_EOTI,
  657. .array_type = NO_ARRAY,
  658. .tlv_type = QMI_COMMON_TLV_TYPE,
  659. },
  660. };
  661. static struct qmi_elem_info wlfw_pmu_cfg_v01_ei[] = {
  662. {
  663. .data_type = QMI_DATA_LEN,
  664. .elem_len = 1,
  665. .elem_size = sizeof(u8),
  666. .array_type = NO_ARRAY,
  667. .tlv_type = 0,
  668. .offset = offsetof(struct
  669. wlfw_pmu_cfg_v01,
  670. pmu_param_len),
  671. },
  672. {
  673. .data_type = QMI_STRUCT,
  674. .elem_len = QMI_WLFW_PMU_PARAMS_MAX_V01,
  675. .elem_size = sizeof(struct wlfw_pmu_param_v01),
  676. .array_type = VAR_LEN_ARRAY,
  677. .tlv_type = 0,
  678. .offset = offsetof(struct
  679. wlfw_pmu_cfg_v01,
  680. pmu_param),
  681. .ei_array = wlfw_pmu_param_v01_ei,
  682. },
  683. {
  684. .data_type = QMI_EOTI,
  685. .array_type = NO_ARRAY,
  686. .tlv_type = QMI_COMMON_TLV_TYPE,
  687. },
  688. };
  689. static struct qmi_elem_info wlfw_shadow_reg_v3_cfg_s_v01_ei[] = {
  690. {
  691. .data_type = QMI_UNSIGNED_4_BYTE,
  692. .elem_len = 1,
  693. .elem_size = sizeof(u32),
  694. .array_type = NO_ARRAY,
  695. .tlv_type = 0,
  696. .offset = offsetof(struct
  697. wlfw_shadow_reg_v3_cfg_s_v01,
  698. addr),
  699. },
  700. {
  701. .data_type = QMI_EOTI,
  702. .array_type = NO_ARRAY,
  703. .tlv_type = QMI_COMMON_TLV_TYPE,
  704. },
  705. };
  706. struct qmi_elem_info wlfw_ind_register_req_msg_v01_ei[] = {
  707. {
  708. .data_type = QMI_OPT_FLAG,
  709. .elem_len = 1,
  710. .elem_size = sizeof(u8),
  711. .array_type = NO_ARRAY,
  712. .tlv_type = 0x10,
  713. .offset = offsetof(struct
  714. wlfw_ind_register_req_msg_v01,
  715. fw_ready_enable_valid),
  716. },
  717. {
  718. .data_type = QMI_UNSIGNED_1_BYTE,
  719. .elem_len = 1,
  720. .elem_size = sizeof(u8),
  721. .array_type = NO_ARRAY,
  722. .tlv_type = 0x10,
  723. .offset = offsetof(struct
  724. wlfw_ind_register_req_msg_v01,
  725. fw_ready_enable),
  726. },
  727. {
  728. .data_type = QMI_OPT_FLAG,
  729. .elem_len = 1,
  730. .elem_size = sizeof(u8),
  731. .array_type = NO_ARRAY,
  732. .tlv_type = 0x11,
  733. .offset = offsetof(struct
  734. wlfw_ind_register_req_msg_v01,
  735. initiate_cal_download_enable_valid),
  736. },
  737. {
  738. .data_type = QMI_UNSIGNED_1_BYTE,
  739. .elem_len = 1,
  740. .elem_size = sizeof(u8),
  741. .array_type = NO_ARRAY,
  742. .tlv_type = 0x11,
  743. .offset = offsetof(struct
  744. wlfw_ind_register_req_msg_v01,
  745. initiate_cal_download_enable),
  746. },
  747. {
  748. .data_type = QMI_OPT_FLAG,
  749. .elem_len = 1,
  750. .elem_size = sizeof(u8),
  751. .array_type = NO_ARRAY,
  752. .tlv_type = 0x12,
  753. .offset = offsetof(struct
  754. wlfw_ind_register_req_msg_v01,
  755. initiate_cal_update_enable_valid),
  756. },
  757. {
  758. .data_type = QMI_UNSIGNED_1_BYTE,
  759. .elem_len = 1,
  760. .elem_size = sizeof(u8),
  761. .array_type = NO_ARRAY,
  762. .tlv_type = 0x12,
  763. .offset = offsetof(struct
  764. wlfw_ind_register_req_msg_v01,
  765. initiate_cal_update_enable),
  766. },
  767. {
  768. .data_type = QMI_OPT_FLAG,
  769. .elem_len = 1,
  770. .elem_size = sizeof(u8),
  771. .array_type = NO_ARRAY,
  772. .tlv_type = 0x13,
  773. .offset = offsetof(struct
  774. wlfw_ind_register_req_msg_v01,
  775. msa_ready_enable_valid),
  776. },
  777. {
  778. .data_type = QMI_UNSIGNED_1_BYTE,
  779. .elem_len = 1,
  780. .elem_size = sizeof(u8),
  781. .array_type = NO_ARRAY,
  782. .tlv_type = 0x13,
  783. .offset = offsetof(struct
  784. wlfw_ind_register_req_msg_v01,
  785. msa_ready_enable),
  786. },
  787. {
  788. .data_type = QMI_OPT_FLAG,
  789. .elem_len = 1,
  790. .elem_size = sizeof(u8),
  791. .array_type = NO_ARRAY,
  792. .tlv_type = 0x14,
  793. .offset = offsetof(struct
  794. wlfw_ind_register_req_msg_v01,
  795. pin_connect_result_enable_valid),
  796. },
  797. {
  798. .data_type = QMI_UNSIGNED_1_BYTE,
  799. .elem_len = 1,
  800. .elem_size = sizeof(u8),
  801. .array_type = NO_ARRAY,
  802. .tlv_type = 0x14,
  803. .offset = offsetof(struct
  804. wlfw_ind_register_req_msg_v01,
  805. pin_connect_result_enable),
  806. },
  807. {
  808. .data_type = QMI_OPT_FLAG,
  809. .elem_len = 1,
  810. .elem_size = sizeof(u8),
  811. .array_type = NO_ARRAY,
  812. .tlv_type = 0x15,
  813. .offset = offsetof(struct
  814. wlfw_ind_register_req_msg_v01,
  815. client_id_valid),
  816. },
  817. {
  818. .data_type = QMI_UNSIGNED_4_BYTE,
  819. .elem_len = 1,
  820. .elem_size = sizeof(u32),
  821. .array_type = NO_ARRAY,
  822. .tlv_type = 0x15,
  823. .offset = offsetof(struct
  824. wlfw_ind_register_req_msg_v01,
  825. client_id),
  826. },
  827. {
  828. .data_type = QMI_OPT_FLAG,
  829. .elem_len = 1,
  830. .elem_size = sizeof(u8),
  831. .array_type = NO_ARRAY,
  832. .tlv_type = 0x16,
  833. .offset = offsetof(struct
  834. wlfw_ind_register_req_msg_v01,
  835. request_mem_enable_valid),
  836. },
  837. {
  838. .data_type = QMI_UNSIGNED_1_BYTE,
  839. .elem_len = 1,
  840. .elem_size = sizeof(u8),
  841. .array_type = NO_ARRAY,
  842. .tlv_type = 0x16,
  843. .offset = offsetof(struct
  844. wlfw_ind_register_req_msg_v01,
  845. request_mem_enable),
  846. },
  847. {
  848. .data_type = QMI_OPT_FLAG,
  849. .elem_len = 1,
  850. .elem_size = sizeof(u8),
  851. .array_type = NO_ARRAY,
  852. .tlv_type = 0x17,
  853. .offset = offsetof(struct
  854. wlfw_ind_register_req_msg_v01,
  855. fw_mem_ready_enable_valid),
  856. },
  857. {
  858. .data_type = QMI_UNSIGNED_1_BYTE,
  859. .elem_len = 1,
  860. .elem_size = sizeof(u8),
  861. .array_type = NO_ARRAY,
  862. .tlv_type = 0x17,
  863. .offset = offsetof(struct
  864. wlfw_ind_register_req_msg_v01,
  865. fw_mem_ready_enable),
  866. },
  867. {
  868. .data_type = QMI_OPT_FLAG,
  869. .elem_len = 1,
  870. .elem_size = sizeof(u8),
  871. .array_type = NO_ARRAY,
  872. .tlv_type = 0x18,
  873. .offset = offsetof(struct
  874. wlfw_ind_register_req_msg_v01,
  875. fw_init_done_enable_valid),
  876. },
  877. {
  878. .data_type = QMI_UNSIGNED_1_BYTE,
  879. .elem_len = 1,
  880. .elem_size = sizeof(u8),
  881. .array_type = NO_ARRAY,
  882. .tlv_type = 0x18,
  883. .offset = offsetof(struct
  884. wlfw_ind_register_req_msg_v01,
  885. fw_init_done_enable),
  886. },
  887. {
  888. .data_type = QMI_OPT_FLAG,
  889. .elem_len = 1,
  890. .elem_size = sizeof(u8),
  891. .array_type = NO_ARRAY,
  892. .tlv_type = 0x19,
  893. .offset = offsetof(struct
  894. wlfw_ind_register_req_msg_v01,
  895. rejuvenate_enable_valid),
  896. },
  897. {
  898. .data_type = QMI_UNSIGNED_4_BYTE,
  899. .elem_len = 1,
  900. .elem_size = sizeof(u32),
  901. .array_type = NO_ARRAY,
  902. .tlv_type = 0x19,
  903. .offset = offsetof(struct
  904. wlfw_ind_register_req_msg_v01,
  905. rejuvenate_enable),
  906. },
  907. {
  908. .data_type = QMI_OPT_FLAG,
  909. .elem_len = 1,
  910. .elem_size = sizeof(u8),
  911. .array_type = NO_ARRAY,
  912. .tlv_type = 0x1A,
  913. .offset = offsetof(struct
  914. wlfw_ind_register_req_msg_v01,
  915. xo_cal_enable_valid),
  916. },
  917. {
  918. .data_type = QMI_UNSIGNED_1_BYTE,
  919. .elem_len = 1,
  920. .elem_size = sizeof(u8),
  921. .array_type = NO_ARRAY,
  922. .tlv_type = 0x1A,
  923. .offset = offsetof(struct
  924. wlfw_ind_register_req_msg_v01,
  925. xo_cal_enable),
  926. },
  927. {
  928. .data_type = QMI_OPT_FLAG,
  929. .elem_len = 1,
  930. .elem_size = sizeof(u8),
  931. .array_type = NO_ARRAY,
  932. .tlv_type = 0x1B,
  933. .offset = offsetof(struct
  934. wlfw_ind_register_req_msg_v01,
  935. cal_done_enable_valid),
  936. },
  937. {
  938. .data_type = QMI_UNSIGNED_1_BYTE,
  939. .elem_len = 1,
  940. .elem_size = sizeof(u8),
  941. .array_type = NO_ARRAY,
  942. .tlv_type = 0x1B,
  943. .offset = offsetof(struct
  944. wlfw_ind_register_req_msg_v01,
  945. cal_done_enable),
  946. },
  947. {
  948. .data_type = QMI_OPT_FLAG,
  949. .elem_len = 1,
  950. .elem_size = sizeof(u8),
  951. .array_type = NO_ARRAY,
  952. .tlv_type = 0x1C,
  953. .offset = offsetof(struct
  954. wlfw_ind_register_req_msg_v01,
  955. qdss_trace_req_mem_enable_valid),
  956. },
  957. {
  958. .data_type = QMI_UNSIGNED_1_BYTE,
  959. .elem_len = 1,
  960. .elem_size = sizeof(u8),
  961. .array_type = NO_ARRAY,
  962. .tlv_type = 0x1C,
  963. .offset = offsetof(struct
  964. wlfw_ind_register_req_msg_v01,
  965. qdss_trace_req_mem_enable),
  966. },
  967. {
  968. .data_type = QMI_OPT_FLAG,
  969. .elem_len = 1,
  970. .elem_size = sizeof(u8),
  971. .array_type = NO_ARRAY,
  972. .tlv_type = 0x1D,
  973. .offset = offsetof(struct
  974. wlfw_ind_register_req_msg_v01,
  975. qdss_trace_save_enable_valid),
  976. },
  977. {
  978. .data_type = QMI_UNSIGNED_1_BYTE,
  979. .elem_len = 1,
  980. .elem_size = sizeof(u8),
  981. .array_type = NO_ARRAY,
  982. .tlv_type = 0x1D,
  983. .offset = offsetof(struct
  984. wlfw_ind_register_req_msg_v01,
  985. qdss_trace_save_enable),
  986. },
  987. {
  988. .data_type = QMI_OPT_FLAG,
  989. .elem_len = 1,
  990. .elem_size = sizeof(u8),
  991. .array_type = NO_ARRAY,
  992. .tlv_type = 0x1E,
  993. .offset = offsetof(struct
  994. wlfw_ind_register_req_msg_v01,
  995. qdss_trace_free_enable_valid),
  996. },
  997. {
  998. .data_type = QMI_UNSIGNED_1_BYTE,
  999. .elem_len = 1,
  1000. .elem_size = sizeof(u8),
  1001. .array_type = NO_ARRAY,
  1002. .tlv_type = 0x1E,
  1003. .offset = offsetof(struct
  1004. wlfw_ind_register_req_msg_v01,
  1005. qdss_trace_free_enable),
  1006. },
  1007. {
  1008. .data_type = QMI_OPT_FLAG,
  1009. .elem_len = 1,
  1010. .elem_size = sizeof(u8),
  1011. .array_type = NO_ARRAY,
  1012. .tlv_type = 0x1F,
  1013. .offset = offsetof(struct
  1014. wlfw_ind_register_req_msg_v01,
  1015. respond_get_info_enable_valid),
  1016. },
  1017. {
  1018. .data_type = QMI_UNSIGNED_1_BYTE,
  1019. .elem_len = 1,
  1020. .elem_size = sizeof(u8),
  1021. .array_type = NO_ARRAY,
  1022. .tlv_type = 0x1F,
  1023. .offset = offsetof(struct
  1024. wlfw_ind_register_req_msg_v01,
  1025. respond_get_info_enable),
  1026. },
  1027. {
  1028. .data_type = QMI_OPT_FLAG,
  1029. .elem_len = 1,
  1030. .elem_size = sizeof(u8),
  1031. .array_type = NO_ARRAY,
  1032. .tlv_type = 0x20,
  1033. .offset = offsetof(struct
  1034. wlfw_ind_register_req_msg_v01,
  1035. m3_dump_upload_req_enable_valid),
  1036. },
  1037. {
  1038. .data_type = QMI_UNSIGNED_1_BYTE,
  1039. .elem_len = 1,
  1040. .elem_size = sizeof(u8),
  1041. .array_type = NO_ARRAY,
  1042. .tlv_type = 0x20,
  1043. .offset = offsetof(struct
  1044. wlfw_ind_register_req_msg_v01,
  1045. m3_dump_upload_req_enable),
  1046. },
  1047. {
  1048. .data_type = QMI_OPT_FLAG,
  1049. .elem_len = 1,
  1050. .elem_size = sizeof(u8),
  1051. .array_type = NO_ARRAY,
  1052. .tlv_type = 0x21,
  1053. .offset = offsetof(struct
  1054. wlfw_ind_register_req_msg_v01,
  1055. wfc_call_twt_config_enable_valid),
  1056. },
  1057. {
  1058. .data_type = QMI_UNSIGNED_1_BYTE,
  1059. .elem_len = 1,
  1060. .elem_size = sizeof(u8),
  1061. .array_type = NO_ARRAY,
  1062. .tlv_type = 0x21,
  1063. .offset = offsetof(struct
  1064. wlfw_ind_register_req_msg_v01,
  1065. wfc_call_twt_config_enable),
  1066. },
  1067. {
  1068. .data_type = QMI_OPT_FLAG,
  1069. .elem_len = 1,
  1070. .elem_size = sizeof(u8),
  1071. .array_type = NO_ARRAY,
  1072. .tlv_type = 0x22,
  1073. .offset = offsetof(struct
  1074. wlfw_ind_register_req_msg_v01,
  1075. qdss_mem_ready_enable_valid),
  1076. },
  1077. {
  1078. .data_type = QMI_UNSIGNED_1_BYTE,
  1079. .elem_len = 1,
  1080. .elem_size = sizeof(u8),
  1081. .array_type = NO_ARRAY,
  1082. .tlv_type = 0x22,
  1083. .offset = offsetof(struct
  1084. wlfw_ind_register_req_msg_v01,
  1085. qdss_mem_ready_enable),
  1086. },
  1087. {
  1088. .data_type = QMI_OPT_FLAG,
  1089. .elem_len = 1,
  1090. .elem_size = sizeof(u8),
  1091. .array_type = NO_ARRAY,
  1092. .tlv_type = 0x23,
  1093. .offset = offsetof(struct
  1094. wlfw_ind_register_req_msg_v01,
  1095. m3_dump_upload_segments_req_enable_valid),
  1096. },
  1097. {
  1098. .data_type = QMI_UNSIGNED_1_BYTE,
  1099. .elem_len = 1,
  1100. .elem_size = sizeof(u8),
  1101. .array_type = NO_ARRAY,
  1102. .tlv_type = 0x23,
  1103. .offset = offsetof(struct
  1104. wlfw_ind_register_req_msg_v01,
  1105. m3_dump_upload_segments_req_enable),
  1106. },
  1107. {
  1108. .data_type = QMI_EOTI,
  1109. .array_type = NO_ARRAY,
  1110. .tlv_type = QMI_COMMON_TLV_TYPE,
  1111. },
  1112. };
  1113. EXPORT_SYMBOL(wlfw_ind_register_req_msg_v01_ei);
  1114. struct qmi_elem_info wlfw_ind_register_resp_msg_v01_ei[] = {
  1115. {
  1116. .data_type = QMI_STRUCT,
  1117. .elem_len = 1,
  1118. .elem_size = sizeof(struct qmi_response_type_v01),
  1119. .array_type = NO_ARRAY,
  1120. .tlv_type = 0x02,
  1121. .offset = offsetof(struct
  1122. wlfw_ind_register_resp_msg_v01,
  1123. resp),
  1124. .ei_array = qmi_response_type_v01_ei,
  1125. },
  1126. {
  1127. .data_type = QMI_OPT_FLAG,
  1128. .elem_len = 1,
  1129. .elem_size = sizeof(u8),
  1130. .array_type = NO_ARRAY,
  1131. .tlv_type = 0x10,
  1132. .offset = offsetof(struct
  1133. wlfw_ind_register_resp_msg_v01,
  1134. fw_status_valid),
  1135. },
  1136. {
  1137. .data_type = QMI_UNSIGNED_8_BYTE,
  1138. .elem_len = 1,
  1139. .elem_size = sizeof(u64),
  1140. .array_type = NO_ARRAY,
  1141. .tlv_type = 0x10,
  1142. .offset = offsetof(struct
  1143. wlfw_ind_register_resp_msg_v01,
  1144. fw_status),
  1145. },
  1146. {
  1147. .data_type = QMI_EOTI,
  1148. .array_type = NO_ARRAY,
  1149. .tlv_type = QMI_COMMON_TLV_TYPE,
  1150. },
  1151. };
  1152. EXPORT_SYMBOL(wlfw_ind_register_resp_msg_v01_ei);
  1153. struct qmi_elem_info wlfw_fw_ready_ind_msg_v01_ei[] = {
  1154. {
  1155. .data_type = QMI_EOTI,
  1156. .array_type = NO_ARRAY,
  1157. .tlv_type = QMI_COMMON_TLV_TYPE,
  1158. },
  1159. };
  1160. EXPORT_SYMBOL(wlfw_fw_ready_ind_msg_v01_ei);
  1161. struct qmi_elem_info wlfw_msa_ready_ind_msg_v01_ei[] = {
  1162. {
  1163. .data_type = QMI_OPT_FLAG,
  1164. .elem_len = 1,
  1165. .elem_size = sizeof(u8),
  1166. .array_type = NO_ARRAY,
  1167. .tlv_type = 0x10,
  1168. .offset = offsetof(struct
  1169. wlfw_msa_ready_ind_msg_v01,
  1170. hang_data_addr_offset_valid),
  1171. },
  1172. {
  1173. .data_type = QMI_UNSIGNED_4_BYTE,
  1174. .elem_len = 1,
  1175. .elem_size = sizeof(u32),
  1176. .array_type = NO_ARRAY,
  1177. .tlv_type = 0x10,
  1178. .offset = offsetof(struct
  1179. wlfw_msa_ready_ind_msg_v01,
  1180. hang_data_addr_offset),
  1181. },
  1182. {
  1183. .data_type = QMI_OPT_FLAG,
  1184. .elem_len = 1,
  1185. .elem_size = sizeof(u8),
  1186. .array_type = NO_ARRAY,
  1187. .tlv_type = 0x11,
  1188. .offset = offsetof(struct
  1189. wlfw_msa_ready_ind_msg_v01,
  1190. hang_data_length_valid),
  1191. },
  1192. {
  1193. .data_type = QMI_UNSIGNED_2_BYTE,
  1194. .elem_len = 1,
  1195. .elem_size = sizeof(u16),
  1196. .array_type = NO_ARRAY,
  1197. .tlv_type = 0x11,
  1198. .offset = offsetof(struct
  1199. wlfw_msa_ready_ind_msg_v01,
  1200. hang_data_length),
  1201. },
  1202. {
  1203. .data_type = QMI_EOTI,
  1204. .array_type = NO_ARRAY,
  1205. .tlv_type = QMI_COMMON_TLV_TYPE,
  1206. },
  1207. };
  1208. EXPORT_SYMBOL(wlfw_msa_ready_ind_msg_v01_ei);
  1209. struct qmi_elem_info wlfw_pin_connect_result_ind_msg_v01_ei[] = {
  1210. {
  1211. .data_type = QMI_OPT_FLAG,
  1212. .elem_len = 1,
  1213. .elem_size = sizeof(u8),
  1214. .array_type = NO_ARRAY,
  1215. .tlv_type = 0x10,
  1216. .offset = offsetof(struct
  1217. wlfw_pin_connect_result_ind_msg_v01,
  1218. pwr_pin_result_valid),
  1219. },
  1220. {
  1221. .data_type = QMI_UNSIGNED_4_BYTE,
  1222. .elem_len = 1,
  1223. .elem_size = sizeof(u32),
  1224. .array_type = NO_ARRAY,
  1225. .tlv_type = 0x10,
  1226. .offset = offsetof(struct
  1227. wlfw_pin_connect_result_ind_msg_v01,
  1228. pwr_pin_result),
  1229. },
  1230. {
  1231. .data_type = QMI_OPT_FLAG,
  1232. .elem_len = 1,
  1233. .elem_size = sizeof(u8),
  1234. .array_type = NO_ARRAY,
  1235. .tlv_type = 0x11,
  1236. .offset = offsetof(struct
  1237. wlfw_pin_connect_result_ind_msg_v01,
  1238. phy_io_pin_result_valid),
  1239. },
  1240. {
  1241. .data_type = QMI_UNSIGNED_4_BYTE,
  1242. .elem_len = 1,
  1243. .elem_size = sizeof(u32),
  1244. .array_type = NO_ARRAY,
  1245. .tlv_type = 0x11,
  1246. .offset = offsetof(struct
  1247. wlfw_pin_connect_result_ind_msg_v01,
  1248. phy_io_pin_result),
  1249. },
  1250. {
  1251. .data_type = QMI_OPT_FLAG,
  1252. .elem_len = 1,
  1253. .elem_size = sizeof(u8),
  1254. .array_type = NO_ARRAY,
  1255. .tlv_type = 0x12,
  1256. .offset = offsetof(struct
  1257. wlfw_pin_connect_result_ind_msg_v01,
  1258. rf_pin_result_valid),
  1259. },
  1260. {
  1261. .data_type = QMI_UNSIGNED_4_BYTE,
  1262. .elem_len = 1,
  1263. .elem_size = sizeof(u32),
  1264. .array_type = NO_ARRAY,
  1265. .tlv_type = 0x12,
  1266. .offset = offsetof(struct
  1267. wlfw_pin_connect_result_ind_msg_v01,
  1268. rf_pin_result),
  1269. },
  1270. {
  1271. .data_type = QMI_EOTI,
  1272. .array_type = NO_ARRAY,
  1273. .tlv_type = QMI_COMMON_TLV_TYPE,
  1274. },
  1275. };
  1276. EXPORT_SYMBOL(wlfw_pin_connect_result_ind_msg_v01_ei);
  1277. struct qmi_elem_info wlfw_wlan_mode_req_msg_v01_ei[] = {
  1278. {
  1279. .data_type = QMI_SIGNED_4_BYTE_ENUM,
  1280. .elem_len = 1,
  1281. .elem_size = sizeof(enum wlfw_driver_mode_enum_v01),
  1282. .array_type = NO_ARRAY,
  1283. .tlv_type = 0x01,
  1284. .offset = offsetof(struct
  1285. wlfw_wlan_mode_req_msg_v01,
  1286. mode),
  1287. },
  1288. {
  1289. .data_type = QMI_OPT_FLAG,
  1290. .elem_len = 1,
  1291. .elem_size = sizeof(u8),
  1292. .array_type = NO_ARRAY,
  1293. .tlv_type = 0x10,
  1294. .offset = offsetof(struct
  1295. wlfw_wlan_mode_req_msg_v01,
  1296. hw_debug_valid),
  1297. },
  1298. {
  1299. .data_type = QMI_UNSIGNED_1_BYTE,
  1300. .elem_len = 1,
  1301. .elem_size = sizeof(u8),
  1302. .array_type = NO_ARRAY,
  1303. .tlv_type = 0x10,
  1304. .offset = offsetof(struct
  1305. wlfw_wlan_mode_req_msg_v01,
  1306. hw_debug),
  1307. },
  1308. {
  1309. .data_type = QMI_OPT_FLAG,
  1310. .elem_len = 1,
  1311. .elem_size = sizeof(u8),
  1312. .array_type = NO_ARRAY,
  1313. .tlv_type = 0x11,
  1314. .offset = offsetof(struct
  1315. wlfw_wlan_mode_req_msg_v01,
  1316. xo_cal_data_valid),
  1317. },
  1318. {
  1319. .data_type = QMI_UNSIGNED_1_BYTE,
  1320. .elem_len = 1,
  1321. .elem_size = sizeof(u8),
  1322. .array_type = NO_ARRAY,
  1323. .tlv_type = 0x11,
  1324. .offset = offsetof(struct
  1325. wlfw_wlan_mode_req_msg_v01,
  1326. xo_cal_data),
  1327. },
  1328. {
  1329. .data_type = QMI_OPT_FLAG,
  1330. .elem_len = 1,
  1331. .elem_size = sizeof(u8),
  1332. .array_type = NO_ARRAY,
  1333. .tlv_type = 0x12,
  1334. .offset = offsetof(struct
  1335. wlfw_wlan_mode_req_msg_v01,
  1336. wlan_en_delay_valid),
  1337. },
  1338. {
  1339. .data_type = QMI_UNSIGNED_4_BYTE,
  1340. .elem_len = 1,
  1341. .elem_size = sizeof(u32),
  1342. .array_type = NO_ARRAY,
  1343. .tlv_type = 0x12,
  1344. .offset = offsetof(struct
  1345. wlfw_wlan_mode_req_msg_v01,
  1346. wlan_en_delay),
  1347. },
  1348. {
  1349. .data_type = QMI_EOTI,
  1350. .array_type = NO_ARRAY,
  1351. .tlv_type = QMI_COMMON_TLV_TYPE,
  1352. },
  1353. };
  1354. EXPORT_SYMBOL(wlfw_wlan_mode_req_msg_v01_ei);
  1355. struct qmi_elem_info wlfw_wlan_mode_resp_msg_v01_ei[] = {
  1356. {
  1357. .data_type = QMI_STRUCT,
  1358. .elem_len = 1,
  1359. .elem_size = sizeof(struct qmi_response_type_v01),
  1360. .array_type = NO_ARRAY,
  1361. .tlv_type = 0x02,
  1362. .offset = offsetof(struct
  1363. wlfw_wlan_mode_resp_msg_v01,
  1364. resp),
  1365. .ei_array = qmi_response_type_v01_ei,
  1366. },
  1367. {
  1368. .data_type = QMI_EOTI,
  1369. .array_type = NO_ARRAY,
  1370. .tlv_type = QMI_COMMON_TLV_TYPE,
  1371. },
  1372. };
  1373. EXPORT_SYMBOL(wlfw_wlan_mode_resp_msg_v01_ei);
  1374. struct qmi_elem_info wlfw_wlan_cfg_req_msg_v01_ei[] = {
  1375. {
  1376. .data_type = QMI_OPT_FLAG,
  1377. .elem_len = 1,
  1378. .elem_size = sizeof(u8),
  1379. .array_type = NO_ARRAY,
  1380. .tlv_type = 0x10,
  1381. .offset = offsetof(struct
  1382. wlfw_wlan_cfg_req_msg_v01,
  1383. host_version_valid),
  1384. },
  1385. {
  1386. .data_type = QMI_STRING,
  1387. .elem_len = QMI_WLFW_MAX_STR_LEN_V01 + 1,
  1388. .elem_size = sizeof(char),
  1389. .array_type = NO_ARRAY,
  1390. .tlv_type = 0x10,
  1391. .offset = offsetof(struct
  1392. wlfw_wlan_cfg_req_msg_v01,
  1393. host_version),
  1394. },
  1395. {
  1396. .data_type = QMI_OPT_FLAG,
  1397. .elem_len = 1,
  1398. .elem_size = sizeof(u8),
  1399. .array_type = NO_ARRAY,
  1400. .tlv_type = 0x11,
  1401. .offset = offsetof(struct
  1402. wlfw_wlan_cfg_req_msg_v01,
  1403. tgt_cfg_valid),
  1404. },
  1405. {
  1406. .data_type = QMI_DATA_LEN,
  1407. .elem_len = 1,
  1408. .elem_size = sizeof(u8),
  1409. .array_type = NO_ARRAY,
  1410. .tlv_type = 0x11,
  1411. .offset = offsetof(struct
  1412. wlfw_wlan_cfg_req_msg_v01,
  1413. tgt_cfg_len),
  1414. },
  1415. {
  1416. .data_type = QMI_STRUCT,
  1417. .elem_len = QMI_WLFW_MAX_NUM_CE_V01,
  1418. .elem_size = sizeof(struct wlfw_ce_tgt_pipe_cfg_s_v01),
  1419. .array_type = VAR_LEN_ARRAY,
  1420. .tlv_type = 0x11,
  1421. .offset = offsetof(struct
  1422. wlfw_wlan_cfg_req_msg_v01,
  1423. tgt_cfg),
  1424. .ei_array = wlfw_ce_tgt_pipe_cfg_s_v01_ei,
  1425. },
  1426. {
  1427. .data_type = QMI_OPT_FLAG,
  1428. .elem_len = 1,
  1429. .elem_size = sizeof(u8),
  1430. .array_type = NO_ARRAY,
  1431. .tlv_type = 0x12,
  1432. .offset = offsetof(struct
  1433. wlfw_wlan_cfg_req_msg_v01,
  1434. svc_cfg_valid),
  1435. },
  1436. {
  1437. .data_type = QMI_DATA_LEN,
  1438. .elem_len = 1,
  1439. .elem_size = sizeof(u8),
  1440. .array_type = NO_ARRAY,
  1441. .tlv_type = 0x12,
  1442. .offset = offsetof(struct
  1443. wlfw_wlan_cfg_req_msg_v01,
  1444. svc_cfg_len),
  1445. },
  1446. {
  1447. .data_type = QMI_STRUCT,
  1448. .elem_len = QMI_WLFW_MAX_NUM_SVC_V01,
  1449. .elem_size = sizeof(struct wlfw_ce_svc_pipe_cfg_s_v01),
  1450. .array_type = VAR_LEN_ARRAY,
  1451. .tlv_type = 0x12,
  1452. .offset = offsetof(struct
  1453. wlfw_wlan_cfg_req_msg_v01,
  1454. svc_cfg),
  1455. .ei_array = wlfw_ce_svc_pipe_cfg_s_v01_ei,
  1456. },
  1457. {
  1458. .data_type = QMI_OPT_FLAG,
  1459. .elem_len = 1,
  1460. .elem_size = sizeof(u8),
  1461. .array_type = NO_ARRAY,
  1462. .tlv_type = 0x13,
  1463. .offset = offsetof(struct
  1464. wlfw_wlan_cfg_req_msg_v01,
  1465. shadow_reg_valid),
  1466. },
  1467. {
  1468. .data_type = QMI_DATA_LEN,
  1469. .elem_len = 1,
  1470. .elem_size = sizeof(u8),
  1471. .array_type = NO_ARRAY,
  1472. .tlv_type = 0x13,
  1473. .offset = offsetof(struct
  1474. wlfw_wlan_cfg_req_msg_v01,
  1475. shadow_reg_len),
  1476. },
  1477. {
  1478. .data_type = QMI_STRUCT,
  1479. .elem_len = QMI_WLFW_MAX_NUM_SHADOW_REG_V01,
  1480. .elem_size = sizeof(struct wlfw_shadow_reg_cfg_s_v01),
  1481. .array_type = VAR_LEN_ARRAY,
  1482. .tlv_type = 0x13,
  1483. .offset = offsetof(struct
  1484. wlfw_wlan_cfg_req_msg_v01,
  1485. shadow_reg),
  1486. .ei_array = wlfw_shadow_reg_cfg_s_v01_ei,
  1487. },
  1488. {
  1489. .data_type = QMI_OPT_FLAG,
  1490. .elem_len = 1,
  1491. .elem_size = sizeof(u8),
  1492. .array_type = NO_ARRAY,
  1493. .tlv_type = 0x14,
  1494. .offset = offsetof(struct
  1495. wlfw_wlan_cfg_req_msg_v01,
  1496. shadow_reg_v2_valid),
  1497. },
  1498. {
  1499. .data_type = QMI_DATA_LEN,
  1500. .elem_len = 1,
  1501. .elem_size = sizeof(u8),
  1502. .array_type = NO_ARRAY,
  1503. .tlv_type = 0x14,
  1504. .offset = offsetof(struct
  1505. wlfw_wlan_cfg_req_msg_v01,
  1506. shadow_reg_v2_len),
  1507. },
  1508. {
  1509. .data_type = QMI_STRUCT,
  1510. .elem_len = QMI_WLFW_MAX_NUM_SHADOW_REG_V2_V01,
  1511. .elem_size = sizeof(struct wlfw_shadow_reg_v2_cfg_s_v01),
  1512. .array_type = VAR_LEN_ARRAY,
  1513. .tlv_type = 0x14,
  1514. .offset = offsetof(struct
  1515. wlfw_wlan_cfg_req_msg_v01,
  1516. shadow_reg_v2),
  1517. .ei_array = wlfw_shadow_reg_v2_cfg_s_v01_ei,
  1518. },
  1519. {
  1520. .data_type = QMI_OPT_FLAG,
  1521. .elem_len = 1,
  1522. .elem_size = sizeof(u8),
  1523. .array_type = NO_ARRAY,
  1524. .tlv_type = 0x15,
  1525. .offset = offsetof(struct
  1526. wlfw_wlan_cfg_req_msg_v01,
  1527. rri_over_ddr_cfg_valid),
  1528. },
  1529. {
  1530. .data_type = QMI_STRUCT,
  1531. .elem_len = 1,
  1532. .elem_size = sizeof(struct wlfw_rri_over_ddr_cfg_s_v01),
  1533. .array_type = NO_ARRAY,
  1534. .tlv_type = 0x15,
  1535. .offset = offsetof(struct
  1536. wlfw_wlan_cfg_req_msg_v01,
  1537. rri_over_ddr_cfg),
  1538. .ei_array = wlfw_rri_over_ddr_cfg_s_v01_ei,
  1539. },
  1540. {
  1541. .data_type = QMI_OPT_FLAG,
  1542. .elem_len = 1,
  1543. .elem_size = sizeof(u8),
  1544. .array_type = NO_ARRAY,
  1545. .tlv_type = 0x16,
  1546. .offset = offsetof(struct
  1547. wlfw_wlan_cfg_req_msg_v01,
  1548. msi_cfg_valid),
  1549. },
  1550. {
  1551. .data_type = QMI_DATA_LEN,
  1552. .elem_len = 1,
  1553. .elem_size = sizeof(u8),
  1554. .array_type = NO_ARRAY,
  1555. .tlv_type = 0x16,
  1556. .offset = offsetof(struct
  1557. wlfw_wlan_cfg_req_msg_v01,
  1558. msi_cfg_len),
  1559. },
  1560. {
  1561. .data_type = QMI_STRUCT,
  1562. .elem_len = QMI_WLFW_MAX_NUM_CE_V01,
  1563. .elem_size = sizeof(struct wlfw_msi_cfg_s_v01),
  1564. .array_type = VAR_LEN_ARRAY,
  1565. .tlv_type = 0x16,
  1566. .offset = offsetof(struct
  1567. wlfw_wlan_cfg_req_msg_v01,
  1568. msi_cfg),
  1569. .ei_array = wlfw_msi_cfg_s_v01_ei,
  1570. },
  1571. {
  1572. .data_type = QMI_OPT_FLAG,
  1573. .elem_len = 1,
  1574. .elem_size = sizeof(u8),
  1575. .array_type = NO_ARRAY,
  1576. .tlv_type = 0x17,
  1577. .offset = offsetof(struct
  1578. wlfw_wlan_cfg_req_msg_v01,
  1579. shadow_reg_v3_valid),
  1580. },
  1581. {
  1582. .data_type = QMI_DATA_LEN,
  1583. .elem_len = 1,
  1584. .elem_size = sizeof(u8),
  1585. .array_type = NO_ARRAY,
  1586. .tlv_type = 0x17,
  1587. .offset = offsetof(struct
  1588. wlfw_wlan_cfg_req_msg_v01,
  1589. shadow_reg_v3_len),
  1590. },
  1591. {
  1592. .data_type = QMI_STRUCT,
  1593. .elem_len = QMI_WLFW_MAX_NUM_SHADOW_REG_V3_V01,
  1594. .elem_size = sizeof(struct wlfw_shadow_reg_v3_cfg_s_v01),
  1595. .array_type = VAR_LEN_ARRAY,
  1596. .tlv_type = 0x17,
  1597. .offset = offsetof(struct
  1598. wlfw_wlan_cfg_req_msg_v01,
  1599. shadow_reg_v3),
  1600. .ei_array = wlfw_shadow_reg_v3_cfg_s_v01_ei,
  1601. },
  1602. {
  1603. .data_type = QMI_EOTI,
  1604. .array_type = NO_ARRAY,
  1605. .tlv_type = QMI_COMMON_TLV_TYPE,
  1606. },
  1607. };
  1608. EXPORT_SYMBOL(wlfw_wlan_cfg_req_msg_v01_ei);
  1609. struct qmi_elem_info wlfw_wlan_cfg_resp_msg_v01_ei[] = {
  1610. {
  1611. .data_type = QMI_STRUCT,
  1612. .elem_len = 1,
  1613. .elem_size = sizeof(struct qmi_response_type_v01),
  1614. .array_type = NO_ARRAY,
  1615. .tlv_type = 0x02,
  1616. .offset = offsetof(struct
  1617. wlfw_wlan_cfg_resp_msg_v01,
  1618. resp),
  1619. .ei_array = qmi_response_type_v01_ei,
  1620. },
  1621. {
  1622. .data_type = QMI_EOTI,
  1623. .array_type = NO_ARRAY,
  1624. .tlv_type = QMI_COMMON_TLV_TYPE,
  1625. },
  1626. };
  1627. EXPORT_SYMBOL(wlfw_wlan_cfg_resp_msg_v01_ei);
  1628. struct qmi_elem_info wlfw_cap_req_msg_v01_ei[] = {
  1629. {
  1630. .data_type = QMI_EOTI,
  1631. .array_type = NO_ARRAY,
  1632. .tlv_type = QMI_COMMON_TLV_TYPE,
  1633. },
  1634. };
  1635. EXPORT_SYMBOL(wlfw_cap_req_msg_v01_ei);
  1636. struct qmi_elem_info wlfw_cap_resp_msg_v01_ei[] = {
  1637. {
  1638. .data_type = QMI_STRUCT,
  1639. .elem_len = 1,
  1640. .elem_size = sizeof(struct qmi_response_type_v01),
  1641. .array_type = NO_ARRAY,
  1642. .tlv_type = 0x02,
  1643. .offset = offsetof(struct
  1644. wlfw_cap_resp_msg_v01,
  1645. resp),
  1646. .ei_array = qmi_response_type_v01_ei,
  1647. },
  1648. {
  1649. .data_type = QMI_OPT_FLAG,
  1650. .elem_len = 1,
  1651. .elem_size = sizeof(u8),
  1652. .array_type = NO_ARRAY,
  1653. .tlv_type = 0x10,
  1654. .offset = offsetof(struct
  1655. wlfw_cap_resp_msg_v01,
  1656. chip_info_valid),
  1657. },
  1658. {
  1659. .data_type = QMI_STRUCT,
  1660. .elem_len = 1,
  1661. .elem_size = sizeof(struct wlfw_rf_chip_info_s_v01),
  1662. .array_type = NO_ARRAY,
  1663. .tlv_type = 0x10,
  1664. .offset = offsetof(struct
  1665. wlfw_cap_resp_msg_v01,
  1666. chip_info),
  1667. .ei_array = wlfw_rf_chip_info_s_v01_ei,
  1668. },
  1669. {
  1670. .data_type = QMI_OPT_FLAG,
  1671. .elem_len = 1,
  1672. .elem_size = sizeof(u8),
  1673. .array_type = NO_ARRAY,
  1674. .tlv_type = 0x11,
  1675. .offset = offsetof(struct
  1676. wlfw_cap_resp_msg_v01,
  1677. board_info_valid),
  1678. },
  1679. {
  1680. .data_type = QMI_STRUCT,
  1681. .elem_len = 1,
  1682. .elem_size = sizeof(struct wlfw_rf_board_info_s_v01),
  1683. .array_type = NO_ARRAY,
  1684. .tlv_type = 0x11,
  1685. .offset = offsetof(struct
  1686. wlfw_cap_resp_msg_v01,
  1687. board_info),
  1688. .ei_array = wlfw_rf_board_info_s_v01_ei,
  1689. },
  1690. {
  1691. .data_type = QMI_OPT_FLAG,
  1692. .elem_len = 1,
  1693. .elem_size = sizeof(u8),
  1694. .array_type = NO_ARRAY,
  1695. .tlv_type = 0x12,
  1696. .offset = offsetof(struct
  1697. wlfw_cap_resp_msg_v01,
  1698. soc_info_valid),
  1699. },
  1700. {
  1701. .data_type = QMI_STRUCT,
  1702. .elem_len = 1,
  1703. .elem_size = sizeof(struct wlfw_soc_info_s_v01),
  1704. .array_type = NO_ARRAY,
  1705. .tlv_type = 0x12,
  1706. .offset = offsetof(struct
  1707. wlfw_cap_resp_msg_v01,
  1708. soc_info),
  1709. .ei_array = wlfw_soc_info_s_v01_ei,
  1710. },
  1711. {
  1712. .data_type = QMI_OPT_FLAG,
  1713. .elem_len = 1,
  1714. .elem_size = sizeof(u8),
  1715. .array_type = NO_ARRAY,
  1716. .tlv_type = 0x13,
  1717. .offset = offsetof(struct
  1718. wlfw_cap_resp_msg_v01,
  1719. fw_version_info_valid),
  1720. },
  1721. {
  1722. .data_type = QMI_STRUCT,
  1723. .elem_len = 1,
  1724. .elem_size = sizeof(struct wlfw_fw_version_info_s_v01),
  1725. .array_type = NO_ARRAY,
  1726. .tlv_type = 0x13,
  1727. .offset = offsetof(struct
  1728. wlfw_cap_resp_msg_v01,
  1729. fw_version_info),
  1730. .ei_array = wlfw_fw_version_info_s_v01_ei,
  1731. },
  1732. {
  1733. .data_type = QMI_OPT_FLAG,
  1734. .elem_len = 1,
  1735. .elem_size = sizeof(u8),
  1736. .array_type = NO_ARRAY,
  1737. .tlv_type = 0x14,
  1738. .offset = offsetof(struct
  1739. wlfw_cap_resp_msg_v01,
  1740. fw_build_id_valid),
  1741. },
  1742. {
  1743. .data_type = QMI_STRING,
  1744. .elem_len = QMI_WLFW_MAX_BUILD_ID_LEN_V01 + 1,
  1745. .elem_size = sizeof(char),
  1746. .array_type = NO_ARRAY,
  1747. .tlv_type = 0x14,
  1748. .offset = offsetof(struct
  1749. wlfw_cap_resp_msg_v01,
  1750. fw_build_id),
  1751. },
  1752. {
  1753. .data_type = QMI_OPT_FLAG,
  1754. .elem_len = 1,
  1755. .elem_size = sizeof(u8),
  1756. .array_type = NO_ARRAY,
  1757. .tlv_type = 0x15,
  1758. .offset = offsetof(struct
  1759. wlfw_cap_resp_msg_v01,
  1760. num_macs_valid),
  1761. },
  1762. {
  1763. .data_type = QMI_UNSIGNED_1_BYTE,
  1764. .elem_len = 1,
  1765. .elem_size = sizeof(u8),
  1766. .array_type = NO_ARRAY,
  1767. .tlv_type = 0x15,
  1768. .offset = offsetof(struct
  1769. wlfw_cap_resp_msg_v01,
  1770. num_macs),
  1771. },
  1772. {
  1773. .data_type = QMI_OPT_FLAG,
  1774. .elem_len = 1,
  1775. .elem_size = sizeof(u8),
  1776. .array_type = NO_ARRAY,
  1777. .tlv_type = 0x16,
  1778. .offset = offsetof(struct
  1779. wlfw_cap_resp_msg_v01,
  1780. voltage_mv_valid),
  1781. },
  1782. {
  1783. .data_type = QMI_UNSIGNED_4_BYTE,
  1784. .elem_len = 1,
  1785. .elem_size = sizeof(u32),
  1786. .array_type = NO_ARRAY,
  1787. .tlv_type = 0x16,
  1788. .offset = offsetof(struct
  1789. wlfw_cap_resp_msg_v01,
  1790. voltage_mv),
  1791. },
  1792. {
  1793. .data_type = QMI_OPT_FLAG,
  1794. .elem_len = 1,
  1795. .elem_size = sizeof(u8),
  1796. .array_type = NO_ARRAY,
  1797. .tlv_type = 0x17,
  1798. .offset = offsetof(struct
  1799. wlfw_cap_resp_msg_v01,
  1800. time_freq_hz_valid),
  1801. },
  1802. {
  1803. .data_type = QMI_UNSIGNED_4_BYTE,
  1804. .elem_len = 1,
  1805. .elem_size = sizeof(u32),
  1806. .array_type = NO_ARRAY,
  1807. .tlv_type = 0x17,
  1808. .offset = offsetof(struct
  1809. wlfw_cap_resp_msg_v01,
  1810. time_freq_hz),
  1811. },
  1812. {
  1813. .data_type = QMI_OPT_FLAG,
  1814. .elem_len = 1,
  1815. .elem_size = sizeof(u8),
  1816. .array_type = NO_ARRAY,
  1817. .tlv_type = 0x18,
  1818. .offset = offsetof(struct
  1819. wlfw_cap_resp_msg_v01,
  1820. otp_version_valid),
  1821. },
  1822. {
  1823. .data_type = QMI_UNSIGNED_4_BYTE,
  1824. .elem_len = 1,
  1825. .elem_size = sizeof(u32),
  1826. .array_type = NO_ARRAY,
  1827. .tlv_type = 0x18,
  1828. .offset = offsetof(struct
  1829. wlfw_cap_resp_msg_v01,
  1830. otp_version),
  1831. },
  1832. {
  1833. .data_type = QMI_OPT_FLAG,
  1834. .elem_len = 1,
  1835. .elem_size = sizeof(u8),
  1836. .array_type = NO_ARRAY,
  1837. .tlv_type = 0x19,
  1838. .offset = offsetof(struct
  1839. wlfw_cap_resp_msg_v01,
  1840. eeprom_caldata_read_timeout_valid),
  1841. },
  1842. {
  1843. .data_type = QMI_UNSIGNED_4_BYTE,
  1844. .elem_len = 1,
  1845. .elem_size = sizeof(u32),
  1846. .array_type = NO_ARRAY,
  1847. .tlv_type = 0x19,
  1848. .offset = offsetof(struct
  1849. wlfw_cap_resp_msg_v01,
  1850. eeprom_caldata_read_timeout),
  1851. },
  1852. {
  1853. .data_type = QMI_OPT_FLAG,
  1854. .elem_len = 1,
  1855. .elem_size = sizeof(u8),
  1856. .array_type = NO_ARRAY,
  1857. .tlv_type = 0x1A,
  1858. .offset = offsetof(struct
  1859. wlfw_cap_resp_msg_v01,
  1860. fw_caps_valid),
  1861. },
  1862. {
  1863. .data_type = QMI_UNSIGNED_8_BYTE,
  1864. .elem_len = 1,
  1865. .elem_size = sizeof(u64),
  1866. .array_type = NO_ARRAY,
  1867. .tlv_type = 0x1A,
  1868. .offset = offsetof(struct
  1869. wlfw_cap_resp_msg_v01,
  1870. fw_caps),
  1871. },
  1872. {
  1873. .data_type = QMI_OPT_FLAG,
  1874. .elem_len = 1,
  1875. .elem_size = sizeof(u8),
  1876. .array_type = NO_ARRAY,
  1877. .tlv_type = 0x1B,
  1878. .offset = offsetof(struct
  1879. wlfw_cap_resp_msg_v01,
  1880. rd_card_chain_cap_valid),
  1881. },
  1882. {
  1883. .data_type = QMI_SIGNED_4_BYTE_ENUM,
  1884. .elem_len = 1,
  1885. .elem_size = sizeof(enum wlfw_rd_card_chain_cap_v01),
  1886. .array_type = NO_ARRAY,
  1887. .tlv_type = 0x1B,
  1888. .offset = offsetof(struct
  1889. wlfw_cap_resp_msg_v01,
  1890. rd_card_chain_cap),
  1891. },
  1892. {
  1893. .data_type = QMI_OPT_FLAG,
  1894. .elem_len = 1,
  1895. .elem_size = sizeof(u8),
  1896. .array_type = NO_ARRAY,
  1897. .tlv_type = 0x1C,
  1898. .offset = offsetof(struct
  1899. wlfw_cap_resp_msg_v01,
  1900. dev_mem_info_valid),
  1901. },
  1902. {
  1903. .data_type = QMI_STRUCT,
  1904. .elem_len = QMI_WLFW_MAX_DEV_MEM_NUM_V01,
  1905. .elem_size = sizeof(struct wlfw_dev_mem_info_s_v01),
  1906. .array_type = STATIC_ARRAY,
  1907. .tlv_type = 0x1C,
  1908. .offset = offsetof(struct
  1909. wlfw_cap_resp_msg_v01,
  1910. dev_mem_info),
  1911. .ei_array = wlfw_dev_mem_info_s_v01_ei,
  1912. },
  1913. {
  1914. .data_type = QMI_OPT_FLAG,
  1915. .elem_len = 1,
  1916. .elem_size = sizeof(u8),
  1917. .array_type = NO_ARRAY,
  1918. .tlv_type = 0x1D,
  1919. .offset = offsetof(struct
  1920. wlfw_cap_resp_msg_v01,
  1921. foundry_name_valid),
  1922. },
  1923. {
  1924. .data_type = QMI_STRING,
  1925. .elem_len = QMI_WLFW_MAX_STR_LEN_V01 + 1,
  1926. .elem_size = sizeof(char),
  1927. .array_type = NO_ARRAY,
  1928. .tlv_type = 0x1D,
  1929. .offset = offsetof(struct
  1930. wlfw_cap_resp_msg_v01,
  1931. foundry_name),
  1932. },
  1933. {
  1934. .data_type = QMI_OPT_FLAG,
  1935. .elem_len = 1,
  1936. .elem_size = sizeof(u8),
  1937. .array_type = NO_ARRAY,
  1938. .tlv_type = 0x1E,
  1939. .offset = offsetof(struct
  1940. wlfw_cap_resp_msg_v01,
  1941. hang_data_addr_offset_valid),
  1942. },
  1943. {
  1944. .data_type = QMI_UNSIGNED_4_BYTE,
  1945. .elem_len = 1,
  1946. .elem_size = sizeof(u32),
  1947. .array_type = NO_ARRAY,
  1948. .tlv_type = 0x1E,
  1949. .offset = offsetof(struct
  1950. wlfw_cap_resp_msg_v01,
  1951. hang_data_addr_offset),
  1952. },
  1953. {
  1954. .data_type = QMI_OPT_FLAG,
  1955. .elem_len = 1,
  1956. .elem_size = sizeof(u8),
  1957. .array_type = NO_ARRAY,
  1958. .tlv_type = 0x1F,
  1959. .offset = offsetof(struct
  1960. wlfw_cap_resp_msg_v01,
  1961. hang_data_length_valid),
  1962. },
  1963. {
  1964. .data_type = QMI_UNSIGNED_2_BYTE,
  1965. .elem_len = 1,
  1966. .elem_size = sizeof(u16),
  1967. .array_type = NO_ARRAY,
  1968. .tlv_type = 0x1F,
  1969. .offset = offsetof(struct
  1970. wlfw_cap_resp_msg_v01,
  1971. hang_data_length),
  1972. },
  1973. {
  1974. .data_type = QMI_OPT_FLAG,
  1975. .elem_len = 1,
  1976. .elem_size = sizeof(u8),
  1977. .array_type = NO_ARRAY,
  1978. .tlv_type = 0x20,
  1979. .offset = offsetof(struct
  1980. wlfw_cap_resp_msg_v01,
  1981. bdf_dnld_method_valid),
  1982. },
  1983. {
  1984. .data_type = QMI_SIGNED_4_BYTE_ENUM,
  1985. .elem_len = 1,
  1986. .elem_size = sizeof(enum wlfw_bdf_dnld_method_v01),
  1987. .array_type = NO_ARRAY,
  1988. .tlv_type = 0x20,
  1989. .offset = offsetof(struct
  1990. wlfw_cap_resp_msg_v01,
  1991. bdf_dnld_method),
  1992. },
  1993. {
  1994. .data_type = QMI_OPT_FLAG,
  1995. .elem_len = 1,
  1996. .elem_size = sizeof(u8),
  1997. .array_type = NO_ARRAY,
  1998. .tlv_type = 0x21,
  1999. .offset = offsetof(struct
  2000. wlfw_cap_resp_msg_v01,
  2001. hwid_bitmap_valid),
  2002. },
  2003. {
  2004. .data_type = QMI_UNSIGNED_1_BYTE,
  2005. .elem_len = 1,
  2006. .elem_size = sizeof(u8),
  2007. .array_type = NO_ARRAY,
  2008. .tlv_type = 0x21,
  2009. .offset = offsetof(struct
  2010. wlfw_cap_resp_msg_v01,
  2011. hwid_bitmap),
  2012. },
  2013. {
  2014. .data_type = QMI_OPT_FLAG,
  2015. .elem_len = 1,
  2016. .elem_size = sizeof(u8),
  2017. .array_type = NO_ARRAY,
  2018. .tlv_type = 0x22,
  2019. .offset = offsetof(struct
  2020. wlfw_cap_resp_msg_v01,
  2021. ol_cpr_cfg_valid),
  2022. },
  2023. {
  2024. .data_type = QMI_STRUCT,
  2025. .elem_len = 1,
  2026. .elem_size = sizeof(struct wlfw_pmu_cfg_v01),
  2027. .array_type = NO_ARRAY,
  2028. .tlv_type = 0x22,
  2029. .offset = offsetof(struct
  2030. wlfw_cap_resp_msg_v01,
  2031. ol_cpr_cfg),
  2032. .ei_array = wlfw_pmu_cfg_v01_ei,
  2033. },
  2034. {
  2035. .data_type = QMI_OPT_FLAG,
  2036. .elem_len = 1,
  2037. .elem_size = sizeof(u8),
  2038. .array_type = NO_ARRAY,
  2039. .tlv_type = 0x23,
  2040. .offset = offsetof(struct
  2041. wlfw_cap_resp_msg_v01,
  2042. regdb_mandatory_valid),
  2043. },
  2044. {
  2045. .data_type = QMI_UNSIGNED_1_BYTE,
  2046. .elem_len = 1,
  2047. .elem_size = sizeof(u8),
  2048. .array_type = NO_ARRAY,
  2049. .tlv_type = 0x23,
  2050. .offset = offsetof(struct
  2051. wlfw_cap_resp_msg_v01,
  2052. regdb_mandatory),
  2053. },
  2054. {
  2055. .data_type = QMI_OPT_FLAG,
  2056. .elem_len = 1,
  2057. .elem_size = sizeof(u8),
  2058. .array_type = NO_ARRAY,
  2059. .tlv_type = 0x24,
  2060. .offset = offsetof(struct
  2061. wlfw_cap_resp_msg_v01,
  2062. regdb_support_valid),
  2063. },
  2064. {
  2065. .data_type = QMI_UNSIGNED_1_BYTE,
  2066. .elem_len = 1,
  2067. .elem_size = sizeof(u8),
  2068. .array_type = NO_ARRAY,
  2069. .tlv_type = 0x24,
  2070. .offset = offsetof(struct
  2071. wlfw_cap_resp_msg_v01,
  2072. regdb_support),
  2073. },
  2074. {
  2075. .data_type = QMI_OPT_FLAG,
  2076. .elem_len = 1,
  2077. .elem_size = sizeof(u8),
  2078. .array_type = NO_ARRAY,
  2079. .tlv_type = 0x25,
  2080. .offset = offsetof(struct
  2081. wlfw_cap_resp_msg_v01,
  2082. rxgainlut_support_valid),
  2083. },
  2084. {
  2085. .data_type = QMI_UNSIGNED_1_BYTE,
  2086. .elem_len = 1,
  2087. .elem_size = sizeof(u8),
  2088. .array_type = NO_ARRAY,
  2089. .tlv_type = 0x25,
  2090. .offset = offsetof(struct
  2091. wlfw_cap_resp_msg_v01,
  2092. rxgainlut_support),
  2093. },
  2094. {
  2095. .data_type = QMI_EOTI,
  2096. .array_type = NO_ARRAY,
  2097. .tlv_type = QMI_COMMON_TLV_TYPE,
  2098. },
  2099. };
  2100. EXPORT_SYMBOL(wlfw_cap_resp_msg_v01_ei);
  2101. struct qmi_elem_info wlfw_bdf_download_req_msg_v01_ei[] = {
  2102. {
  2103. .data_type = QMI_UNSIGNED_1_BYTE,
  2104. .elem_len = 1,
  2105. .elem_size = sizeof(u8),
  2106. .array_type = NO_ARRAY,
  2107. .tlv_type = 0x01,
  2108. .offset = offsetof(struct
  2109. wlfw_bdf_download_req_msg_v01,
  2110. valid),
  2111. },
  2112. {
  2113. .data_type = QMI_OPT_FLAG,
  2114. .elem_len = 1,
  2115. .elem_size = sizeof(u8),
  2116. .array_type = NO_ARRAY,
  2117. .tlv_type = 0x10,
  2118. .offset = offsetof(struct
  2119. wlfw_bdf_download_req_msg_v01,
  2120. file_id_valid),
  2121. },
  2122. {
  2123. .data_type = QMI_SIGNED_4_BYTE_ENUM,
  2124. .elem_len = 1,
  2125. .elem_size = sizeof(enum wlfw_cal_temp_id_enum_v01),
  2126. .array_type = NO_ARRAY,
  2127. .tlv_type = 0x10,
  2128. .offset = offsetof(struct
  2129. wlfw_bdf_download_req_msg_v01,
  2130. file_id),
  2131. },
  2132. {
  2133. .data_type = QMI_OPT_FLAG,
  2134. .elem_len = 1,
  2135. .elem_size = sizeof(u8),
  2136. .array_type = NO_ARRAY,
  2137. .tlv_type = 0x11,
  2138. .offset = offsetof(struct
  2139. wlfw_bdf_download_req_msg_v01,
  2140. total_size_valid),
  2141. },
  2142. {
  2143. .data_type = QMI_UNSIGNED_4_BYTE,
  2144. .elem_len = 1,
  2145. .elem_size = sizeof(u32),
  2146. .array_type = NO_ARRAY,
  2147. .tlv_type = 0x11,
  2148. .offset = offsetof(struct
  2149. wlfw_bdf_download_req_msg_v01,
  2150. total_size),
  2151. },
  2152. {
  2153. .data_type = QMI_OPT_FLAG,
  2154. .elem_len = 1,
  2155. .elem_size = sizeof(u8),
  2156. .array_type = NO_ARRAY,
  2157. .tlv_type = 0x12,
  2158. .offset = offsetof(struct
  2159. wlfw_bdf_download_req_msg_v01,
  2160. seg_id_valid),
  2161. },
  2162. {
  2163. .data_type = QMI_UNSIGNED_4_BYTE,
  2164. .elem_len = 1,
  2165. .elem_size = sizeof(u32),
  2166. .array_type = NO_ARRAY,
  2167. .tlv_type = 0x12,
  2168. .offset = offsetof(struct
  2169. wlfw_bdf_download_req_msg_v01,
  2170. seg_id),
  2171. },
  2172. {
  2173. .data_type = QMI_OPT_FLAG,
  2174. .elem_len = 1,
  2175. .elem_size = sizeof(u8),
  2176. .array_type = NO_ARRAY,
  2177. .tlv_type = 0x13,
  2178. .offset = offsetof(struct
  2179. wlfw_bdf_download_req_msg_v01,
  2180. data_valid),
  2181. },
  2182. {
  2183. .data_type = QMI_DATA_LEN,
  2184. .elem_len = 1,
  2185. .elem_size = sizeof(u16),
  2186. .array_type = NO_ARRAY,
  2187. .tlv_type = 0x13,
  2188. .offset = offsetof(struct
  2189. wlfw_bdf_download_req_msg_v01,
  2190. data_len),
  2191. },
  2192. {
  2193. .data_type = QMI_UNSIGNED_1_BYTE,
  2194. .elem_len = QMI_WLFW_MAX_DATA_SIZE_V01,
  2195. .elem_size = sizeof(u8),
  2196. .array_type = VAR_LEN_ARRAY,
  2197. .tlv_type = 0x13,
  2198. .offset = offsetof(struct
  2199. wlfw_bdf_download_req_msg_v01,
  2200. data),
  2201. },
  2202. {
  2203. .data_type = QMI_OPT_FLAG,
  2204. .elem_len = 1,
  2205. .elem_size = sizeof(u8),
  2206. .array_type = NO_ARRAY,
  2207. .tlv_type = 0x14,
  2208. .offset = offsetof(struct
  2209. wlfw_bdf_download_req_msg_v01,
  2210. end_valid),
  2211. },
  2212. {
  2213. .data_type = QMI_UNSIGNED_1_BYTE,
  2214. .elem_len = 1,
  2215. .elem_size = sizeof(u8),
  2216. .array_type = NO_ARRAY,
  2217. .tlv_type = 0x14,
  2218. .offset = offsetof(struct
  2219. wlfw_bdf_download_req_msg_v01,
  2220. end),
  2221. },
  2222. {
  2223. .data_type = QMI_OPT_FLAG,
  2224. .elem_len = 1,
  2225. .elem_size = sizeof(u8),
  2226. .array_type = NO_ARRAY,
  2227. .tlv_type = 0x15,
  2228. .offset = offsetof(struct
  2229. wlfw_bdf_download_req_msg_v01,
  2230. bdf_type_valid),
  2231. },
  2232. {
  2233. .data_type = QMI_UNSIGNED_1_BYTE,
  2234. .elem_len = 1,
  2235. .elem_size = sizeof(u8),
  2236. .array_type = NO_ARRAY,
  2237. .tlv_type = 0x15,
  2238. .offset = offsetof(struct
  2239. wlfw_bdf_download_req_msg_v01,
  2240. bdf_type),
  2241. },
  2242. {
  2243. .data_type = QMI_EOTI,
  2244. .array_type = NO_ARRAY,
  2245. .tlv_type = QMI_COMMON_TLV_TYPE,
  2246. },
  2247. };
  2248. EXPORT_SYMBOL(wlfw_bdf_download_req_msg_v01_ei);
  2249. struct qmi_elem_info wlfw_bdf_download_resp_msg_v01_ei[] = {
  2250. {
  2251. .data_type = QMI_STRUCT,
  2252. .elem_len = 1,
  2253. .elem_size = sizeof(struct qmi_response_type_v01),
  2254. .array_type = NO_ARRAY,
  2255. .tlv_type = 0x02,
  2256. .offset = offsetof(struct
  2257. wlfw_bdf_download_resp_msg_v01,
  2258. resp),
  2259. .ei_array = qmi_response_type_v01_ei,
  2260. },
  2261. {
  2262. .data_type = QMI_OPT_FLAG,
  2263. .elem_len = 1,
  2264. .elem_size = sizeof(u8),
  2265. .array_type = NO_ARRAY,
  2266. .tlv_type = 0x10,
  2267. .offset = offsetof(struct
  2268. wlfw_bdf_download_resp_msg_v01,
  2269. host_bdf_data_valid),
  2270. },
  2271. {
  2272. .data_type = QMI_UNSIGNED_8_BYTE,
  2273. .elem_len = 1,
  2274. .elem_size = sizeof(u64),
  2275. .array_type = NO_ARRAY,
  2276. .tlv_type = 0x10,
  2277. .offset = offsetof(struct
  2278. wlfw_bdf_download_resp_msg_v01,
  2279. host_bdf_data),
  2280. },
  2281. {
  2282. .data_type = QMI_EOTI,
  2283. .array_type = NO_ARRAY,
  2284. .tlv_type = QMI_COMMON_TLV_TYPE,
  2285. },
  2286. };
  2287. EXPORT_SYMBOL(wlfw_bdf_download_resp_msg_v01_ei);
  2288. struct qmi_elem_info wlfw_cal_report_req_msg_v01_ei[] = {
  2289. {
  2290. .data_type = QMI_DATA_LEN,
  2291. .elem_len = 1,
  2292. .elem_size = sizeof(u8),
  2293. .array_type = NO_ARRAY,
  2294. .tlv_type = 0x01,
  2295. .offset = offsetof(struct
  2296. wlfw_cal_report_req_msg_v01,
  2297. meta_data_len),
  2298. },
  2299. {
  2300. .data_type = QMI_SIGNED_4_BYTE_ENUM,
  2301. .elem_len = QMI_WLFW_MAX_NUM_CAL_V01,
  2302. .elem_size = sizeof(enum wlfw_cal_temp_id_enum_v01),
  2303. .array_type = VAR_LEN_ARRAY,
  2304. .tlv_type = 0x01,
  2305. .offset = offsetof(struct
  2306. wlfw_cal_report_req_msg_v01,
  2307. meta_data),
  2308. },
  2309. {
  2310. .data_type = QMI_OPT_FLAG,
  2311. .elem_len = 1,
  2312. .elem_size = sizeof(u8),
  2313. .array_type = NO_ARRAY,
  2314. .tlv_type = 0x10,
  2315. .offset = offsetof(struct
  2316. wlfw_cal_report_req_msg_v01,
  2317. xo_cal_data_valid),
  2318. },
  2319. {
  2320. .data_type = QMI_UNSIGNED_1_BYTE,
  2321. .elem_len = 1,
  2322. .elem_size = sizeof(u8),
  2323. .array_type = NO_ARRAY,
  2324. .tlv_type = 0x10,
  2325. .offset = offsetof(struct
  2326. wlfw_cal_report_req_msg_v01,
  2327. xo_cal_data),
  2328. },
  2329. {
  2330. .data_type = QMI_OPT_FLAG,
  2331. .elem_len = 1,
  2332. .elem_size = sizeof(u8),
  2333. .array_type = NO_ARRAY,
  2334. .tlv_type = 0x11,
  2335. .offset = offsetof(struct
  2336. wlfw_cal_report_req_msg_v01,
  2337. cal_remove_supported_valid),
  2338. },
  2339. {
  2340. .data_type = QMI_UNSIGNED_1_BYTE,
  2341. .elem_len = 1,
  2342. .elem_size = sizeof(u8),
  2343. .array_type = NO_ARRAY,
  2344. .tlv_type = 0x11,
  2345. .offset = offsetof(struct
  2346. wlfw_cal_report_req_msg_v01,
  2347. cal_remove_supported),
  2348. },
  2349. {
  2350. .data_type = QMI_OPT_FLAG,
  2351. .elem_len = 1,
  2352. .elem_size = sizeof(u8),
  2353. .array_type = NO_ARRAY,
  2354. .tlv_type = 0x12,
  2355. .offset = offsetof(struct
  2356. wlfw_cal_report_req_msg_v01,
  2357. cal_file_download_size_valid),
  2358. },
  2359. {
  2360. .data_type = QMI_UNSIGNED_8_BYTE,
  2361. .elem_len = 1,
  2362. .elem_size = sizeof(u64),
  2363. .array_type = NO_ARRAY,
  2364. .tlv_type = 0x12,
  2365. .offset = offsetof(struct
  2366. wlfw_cal_report_req_msg_v01,
  2367. cal_file_download_size),
  2368. },
  2369. {
  2370. .data_type = QMI_EOTI,
  2371. .array_type = NO_ARRAY,
  2372. .tlv_type = QMI_COMMON_TLV_TYPE,
  2373. },
  2374. };
  2375. EXPORT_SYMBOL(wlfw_cal_report_req_msg_v01_ei);
  2376. struct qmi_elem_info wlfw_cal_report_resp_msg_v01_ei[] = {
  2377. {
  2378. .data_type = QMI_STRUCT,
  2379. .elem_len = 1,
  2380. .elem_size = sizeof(struct qmi_response_type_v01),
  2381. .array_type = NO_ARRAY,
  2382. .tlv_type = 0x02,
  2383. .offset = offsetof(struct
  2384. wlfw_cal_report_resp_msg_v01,
  2385. resp),
  2386. .ei_array = qmi_response_type_v01_ei,
  2387. },
  2388. {
  2389. .data_type = QMI_EOTI,
  2390. .array_type = NO_ARRAY,
  2391. .tlv_type = QMI_COMMON_TLV_TYPE,
  2392. },
  2393. };
  2394. EXPORT_SYMBOL(wlfw_cal_report_resp_msg_v01_ei);
  2395. struct qmi_elem_info wlfw_initiate_cal_download_ind_msg_v01_ei[] = {
  2396. {
  2397. .data_type = QMI_SIGNED_4_BYTE_ENUM,
  2398. .elem_len = 1,
  2399. .elem_size = sizeof(enum wlfw_cal_temp_id_enum_v01),
  2400. .array_type = NO_ARRAY,
  2401. .tlv_type = 0x01,
  2402. .offset = offsetof(struct
  2403. wlfw_initiate_cal_download_ind_msg_v01,
  2404. cal_id),
  2405. },
  2406. {
  2407. .data_type = QMI_OPT_FLAG,
  2408. .elem_len = 1,
  2409. .elem_size = sizeof(u8),
  2410. .array_type = NO_ARRAY,
  2411. .tlv_type = 0x10,
  2412. .offset = offsetof(struct
  2413. wlfw_initiate_cal_download_ind_msg_v01,
  2414. total_size_valid),
  2415. },
  2416. {
  2417. .data_type = QMI_UNSIGNED_4_BYTE,
  2418. .elem_len = 1,
  2419. .elem_size = sizeof(u32),
  2420. .array_type = NO_ARRAY,
  2421. .tlv_type = 0x10,
  2422. .offset = offsetof(struct
  2423. wlfw_initiate_cal_download_ind_msg_v01,
  2424. total_size),
  2425. },
  2426. {
  2427. .data_type = QMI_OPT_FLAG,
  2428. .elem_len = 1,
  2429. .elem_size = sizeof(u8),
  2430. .array_type = NO_ARRAY,
  2431. .tlv_type = 0x11,
  2432. .offset = offsetof(struct
  2433. wlfw_initiate_cal_download_ind_msg_v01,
  2434. cal_data_location_valid),
  2435. },
  2436. {
  2437. .data_type = QMI_UNSIGNED_4_BYTE,
  2438. .elem_len = 1,
  2439. .elem_size = sizeof(u32),
  2440. .array_type = NO_ARRAY,
  2441. .tlv_type = 0x11,
  2442. .offset = offsetof(struct
  2443. wlfw_initiate_cal_download_ind_msg_v01,
  2444. cal_data_location),
  2445. },
  2446. {
  2447. .data_type = QMI_EOTI,
  2448. .array_type = NO_ARRAY,
  2449. .tlv_type = QMI_COMMON_TLV_TYPE,
  2450. },
  2451. };
  2452. EXPORT_SYMBOL(wlfw_initiate_cal_download_ind_msg_v01_ei);
  2453. struct qmi_elem_info wlfw_cal_download_req_msg_v01_ei[] = {
  2454. {
  2455. .data_type = QMI_UNSIGNED_1_BYTE,
  2456. .elem_len = 1,
  2457. .elem_size = sizeof(u8),
  2458. .array_type = NO_ARRAY,
  2459. .tlv_type = 0x01,
  2460. .offset = offsetof(struct
  2461. wlfw_cal_download_req_msg_v01,
  2462. valid),
  2463. },
  2464. {
  2465. .data_type = QMI_OPT_FLAG,
  2466. .elem_len = 1,
  2467. .elem_size = sizeof(u8),
  2468. .array_type = NO_ARRAY,
  2469. .tlv_type = 0x10,
  2470. .offset = offsetof(struct
  2471. wlfw_cal_download_req_msg_v01,
  2472. file_id_valid),
  2473. },
  2474. {
  2475. .data_type = QMI_SIGNED_4_BYTE_ENUM,
  2476. .elem_len = 1,
  2477. .elem_size = sizeof(enum wlfw_cal_temp_id_enum_v01),
  2478. .array_type = NO_ARRAY,
  2479. .tlv_type = 0x10,
  2480. .offset = offsetof(struct
  2481. wlfw_cal_download_req_msg_v01,
  2482. file_id),
  2483. },
  2484. {
  2485. .data_type = QMI_OPT_FLAG,
  2486. .elem_len = 1,
  2487. .elem_size = sizeof(u8),
  2488. .array_type = NO_ARRAY,
  2489. .tlv_type = 0x11,
  2490. .offset = offsetof(struct
  2491. wlfw_cal_download_req_msg_v01,
  2492. total_size_valid),
  2493. },
  2494. {
  2495. .data_type = QMI_UNSIGNED_4_BYTE,
  2496. .elem_len = 1,
  2497. .elem_size = sizeof(u32),
  2498. .array_type = NO_ARRAY,
  2499. .tlv_type = 0x11,
  2500. .offset = offsetof(struct
  2501. wlfw_cal_download_req_msg_v01,
  2502. total_size),
  2503. },
  2504. {
  2505. .data_type = QMI_OPT_FLAG,
  2506. .elem_len = 1,
  2507. .elem_size = sizeof(u8),
  2508. .array_type = NO_ARRAY,
  2509. .tlv_type = 0x12,
  2510. .offset = offsetof(struct
  2511. wlfw_cal_download_req_msg_v01,
  2512. seg_id_valid),
  2513. },
  2514. {
  2515. .data_type = QMI_UNSIGNED_4_BYTE,
  2516. .elem_len = 1,
  2517. .elem_size = sizeof(u32),
  2518. .array_type = NO_ARRAY,
  2519. .tlv_type = 0x12,
  2520. .offset = offsetof(struct
  2521. wlfw_cal_download_req_msg_v01,
  2522. seg_id),
  2523. },
  2524. {
  2525. .data_type = QMI_OPT_FLAG,
  2526. .elem_len = 1,
  2527. .elem_size = sizeof(u8),
  2528. .array_type = NO_ARRAY,
  2529. .tlv_type = 0x13,
  2530. .offset = offsetof(struct
  2531. wlfw_cal_download_req_msg_v01,
  2532. data_valid),
  2533. },
  2534. {
  2535. .data_type = QMI_DATA_LEN,
  2536. .elem_len = 1,
  2537. .elem_size = sizeof(u16),
  2538. .array_type = NO_ARRAY,
  2539. .tlv_type = 0x13,
  2540. .offset = offsetof(struct
  2541. wlfw_cal_download_req_msg_v01,
  2542. data_len),
  2543. },
  2544. {
  2545. .data_type = QMI_UNSIGNED_1_BYTE,
  2546. .elem_len = QMI_WLFW_MAX_DATA_SIZE_V01,
  2547. .elem_size = sizeof(u8),
  2548. .array_type = VAR_LEN_ARRAY,
  2549. .tlv_type = 0x13,
  2550. .offset = offsetof(struct
  2551. wlfw_cal_download_req_msg_v01,
  2552. data),
  2553. },
  2554. {
  2555. .data_type = QMI_OPT_FLAG,
  2556. .elem_len = 1,
  2557. .elem_size = sizeof(u8),
  2558. .array_type = NO_ARRAY,
  2559. .tlv_type = 0x14,
  2560. .offset = offsetof(struct
  2561. wlfw_cal_download_req_msg_v01,
  2562. end_valid),
  2563. },
  2564. {
  2565. .data_type = QMI_UNSIGNED_1_BYTE,
  2566. .elem_len = 1,
  2567. .elem_size = sizeof(u8),
  2568. .array_type = NO_ARRAY,
  2569. .tlv_type = 0x14,
  2570. .offset = offsetof(struct
  2571. wlfw_cal_download_req_msg_v01,
  2572. end),
  2573. },
  2574. {
  2575. .data_type = QMI_OPT_FLAG,
  2576. .elem_len = 1,
  2577. .elem_size = sizeof(u8),
  2578. .array_type = NO_ARRAY,
  2579. .tlv_type = 0x15,
  2580. .offset = offsetof(struct
  2581. wlfw_cal_download_req_msg_v01,
  2582. cal_data_location_valid),
  2583. },
  2584. {
  2585. .data_type = QMI_UNSIGNED_4_BYTE,
  2586. .elem_len = 1,
  2587. .elem_size = sizeof(u32),
  2588. .array_type = NO_ARRAY,
  2589. .tlv_type = 0x15,
  2590. .offset = offsetof(struct
  2591. wlfw_cal_download_req_msg_v01,
  2592. cal_data_location),
  2593. },
  2594. {
  2595. .data_type = QMI_EOTI,
  2596. .array_type = NO_ARRAY,
  2597. .tlv_type = QMI_COMMON_TLV_TYPE,
  2598. },
  2599. };
  2600. EXPORT_SYMBOL(wlfw_cal_download_req_msg_v01_ei);
  2601. struct qmi_elem_info wlfw_cal_download_resp_msg_v01_ei[] = {
  2602. {
  2603. .data_type = QMI_STRUCT,
  2604. .elem_len = 1,
  2605. .elem_size = sizeof(struct qmi_response_type_v01),
  2606. .array_type = NO_ARRAY,
  2607. .tlv_type = 0x02,
  2608. .offset = offsetof(struct
  2609. wlfw_cal_download_resp_msg_v01,
  2610. resp),
  2611. .ei_array = qmi_response_type_v01_ei,
  2612. },
  2613. {
  2614. .data_type = QMI_EOTI,
  2615. .array_type = NO_ARRAY,
  2616. .tlv_type = QMI_COMMON_TLV_TYPE,
  2617. },
  2618. };
  2619. EXPORT_SYMBOL(wlfw_cal_download_resp_msg_v01_ei);
  2620. struct qmi_elem_info wlfw_initiate_cal_update_ind_msg_v01_ei[] = {
  2621. {
  2622. .data_type = QMI_SIGNED_4_BYTE_ENUM,
  2623. .elem_len = 1,
  2624. .elem_size = sizeof(enum wlfw_cal_temp_id_enum_v01),
  2625. .array_type = NO_ARRAY,
  2626. .tlv_type = 0x01,
  2627. .offset = offsetof(struct
  2628. wlfw_initiate_cal_update_ind_msg_v01,
  2629. cal_id),
  2630. },
  2631. {
  2632. .data_type = QMI_UNSIGNED_4_BYTE,
  2633. .elem_len = 1,
  2634. .elem_size = sizeof(u32),
  2635. .array_type = NO_ARRAY,
  2636. .tlv_type = 0x02,
  2637. .offset = offsetof(struct
  2638. wlfw_initiate_cal_update_ind_msg_v01,
  2639. total_size),
  2640. },
  2641. {
  2642. .data_type = QMI_OPT_FLAG,
  2643. .elem_len = 1,
  2644. .elem_size = sizeof(u8),
  2645. .array_type = NO_ARRAY,
  2646. .tlv_type = 0x10,
  2647. .offset = offsetof(struct
  2648. wlfw_initiate_cal_update_ind_msg_v01,
  2649. cal_data_location_valid),
  2650. },
  2651. {
  2652. .data_type = QMI_UNSIGNED_4_BYTE,
  2653. .elem_len = 1,
  2654. .elem_size = sizeof(u32),
  2655. .array_type = NO_ARRAY,
  2656. .tlv_type = 0x10,
  2657. .offset = offsetof(struct
  2658. wlfw_initiate_cal_update_ind_msg_v01,
  2659. cal_data_location),
  2660. },
  2661. {
  2662. .data_type = QMI_EOTI,
  2663. .array_type = NO_ARRAY,
  2664. .tlv_type = QMI_COMMON_TLV_TYPE,
  2665. },
  2666. };
  2667. EXPORT_SYMBOL(wlfw_initiate_cal_update_ind_msg_v01_ei);
  2668. struct qmi_elem_info wlfw_cal_update_req_msg_v01_ei[] = {
  2669. {
  2670. .data_type = QMI_SIGNED_4_BYTE_ENUM,
  2671. .elem_len = 1,
  2672. .elem_size = sizeof(enum wlfw_cal_temp_id_enum_v01),
  2673. .array_type = NO_ARRAY,
  2674. .tlv_type = 0x01,
  2675. .offset = offsetof(struct
  2676. wlfw_cal_update_req_msg_v01,
  2677. cal_id),
  2678. },
  2679. {
  2680. .data_type = QMI_UNSIGNED_4_BYTE,
  2681. .elem_len = 1,
  2682. .elem_size = sizeof(u32),
  2683. .array_type = NO_ARRAY,
  2684. .tlv_type = 0x02,
  2685. .offset = offsetof(struct
  2686. wlfw_cal_update_req_msg_v01,
  2687. seg_id),
  2688. },
  2689. {
  2690. .data_type = QMI_EOTI,
  2691. .array_type = NO_ARRAY,
  2692. .tlv_type = QMI_COMMON_TLV_TYPE,
  2693. },
  2694. };
  2695. EXPORT_SYMBOL(wlfw_cal_update_req_msg_v01_ei);
  2696. struct qmi_elem_info wlfw_cal_update_resp_msg_v01_ei[] = {
  2697. {
  2698. .data_type = QMI_STRUCT,
  2699. .elem_len = 1,
  2700. .elem_size = sizeof(struct qmi_response_type_v01),
  2701. .array_type = NO_ARRAY,
  2702. .tlv_type = 0x02,
  2703. .offset = offsetof(struct
  2704. wlfw_cal_update_resp_msg_v01,
  2705. resp),
  2706. .ei_array = qmi_response_type_v01_ei,
  2707. },
  2708. {
  2709. .data_type = QMI_OPT_FLAG,
  2710. .elem_len = 1,
  2711. .elem_size = sizeof(u8),
  2712. .array_type = NO_ARRAY,
  2713. .tlv_type = 0x10,
  2714. .offset = offsetof(struct
  2715. wlfw_cal_update_resp_msg_v01,
  2716. file_id_valid),
  2717. },
  2718. {
  2719. .data_type = QMI_SIGNED_4_BYTE_ENUM,
  2720. .elem_len = 1,
  2721. .elem_size = sizeof(enum wlfw_cal_temp_id_enum_v01),
  2722. .array_type = NO_ARRAY,
  2723. .tlv_type = 0x10,
  2724. .offset = offsetof(struct
  2725. wlfw_cal_update_resp_msg_v01,
  2726. file_id),
  2727. },
  2728. {
  2729. .data_type = QMI_OPT_FLAG,
  2730. .elem_len = 1,
  2731. .elem_size = sizeof(u8),
  2732. .array_type = NO_ARRAY,
  2733. .tlv_type = 0x11,
  2734. .offset = offsetof(struct
  2735. wlfw_cal_update_resp_msg_v01,
  2736. total_size_valid),
  2737. },
  2738. {
  2739. .data_type = QMI_UNSIGNED_4_BYTE,
  2740. .elem_len = 1,
  2741. .elem_size = sizeof(u32),
  2742. .array_type = NO_ARRAY,
  2743. .tlv_type = 0x11,
  2744. .offset = offsetof(struct
  2745. wlfw_cal_update_resp_msg_v01,
  2746. total_size),
  2747. },
  2748. {
  2749. .data_type = QMI_OPT_FLAG,
  2750. .elem_len = 1,
  2751. .elem_size = sizeof(u8),
  2752. .array_type = NO_ARRAY,
  2753. .tlv_type = 0x12,
  2754. .offset = offsetof(struct
  2755. wlfw_cal_update_resp_msg_v01,
  2756. seg_id_valid),
  2757. },
  2758. {
  2759. .data_type = QMI_UNSIGNED_4_BYTE,
  2760. .elem_len = 1,
  2761. .elem_size = sizeof(u32),
  2762. .array_type = NO_ARRAY,
  2763. .tlv_type = 0x12,
  2764. .offset = offsetof(struct
  2765. wlfw_cal_update_resp_msg_v01,
  2766. seg_id),
  2767. },
  2768. {
  2769. .data_type = QMI_OPT_FLAG,
  2770. .elem_len = 1,
  2771. .elem_size = sizeof(u8),
  2772. .array_type = NO_ARRAY,
  2773. .tlv_type = 0x13,
  2774. .offset = offsetof(struct
  2775. wlfw_cal_update_resp_msg_v01,
  2776. data_valid),
  2777. },
  2778. {
  2779. .data_type = QMI_DATA_LEN,
  2780. .elem_len = 1,
  2781. .elem_size = sizeof(u16),
  2782. .array_type = NO_ARRAY,
  2783. .tlv_type = 0x13,
  2784. .offset = offsetof(struct
  2785. wlfw_cal_update_resp_msg_v01,
  2786. data_len),
  2787. },
  2788. {
  2789. .data_type = QMI_UNSIGNED_1_BYTE,
  2790. .elem_len = QMI_WLFW_MAX_DATA_SIZE_V01,
  2791. .elem_size = sizeof(u8),
  2792. .array_type = VAR_LEN_ARRAY,
  2793. .tlv_type = 0x13,
  2794. .offset = offsetof(struct
  2795. wlfw_cal_update_resp_msg_v01,
  2796. data),
  2797. },
  2798. {
  2799. .data_type = QMI_OPT_FLAG,
  2800. .elem_len = 1,
  2801. .elem_size = sizeof(u8),
  2802. .array_type = NO_ARRAY,
  2803. .tlv_type = 0x14,
  2804. .offset = offsetof(struct
  2805. wlfw_cal_update_resp_msg_v01,
  2806. end_valid),
  2807. },
  2808. {
  2809. .data_type = QMI_UNSIGNED_1_BYTE,
  2810. .elem_len = 1,
  2811. .elem_size = sizeof(u8),
  2812. .array_type = NO_ARRAY,
  2813. .tlv_type = 0x14,
  2814. .offset = offsetof(struct
  2815. wlfw_cal_update_resp_msg_v01,
  2816. end),
  2817. },
  2818. {
  2819. .data_type = QMI_OPT_FLAG,
  2820. .elem_len = 1,
  2821. .elem_size = sizeof(u8),
  2822. .array_type = NO_ARRAY,
  2823. .tlv_type = 0x15,
  2824. .offset = offsetof(struct
  2825. wlfw_cal_update_resp_msg_v01,
  2826. cal_data_location_valid),
  2827. },
  2828. {
  2829. .data_type = QMI_UNSIGNED_4_BYTE,
  2830. .elem_len = 1,
  2831. .elem_size = sizeof(u32),
  2832. .array_type = NO_ARRAY,
  2833. .tlv_type = 0x15,
  2834. .offset = offsetof(struct
  2835. wlfw_cal_update_resp_msg_v01,
  2836. cal_data_location),
  2837. },
  2838. {
  2839. .data_type = QMI_EOTI,
  2840. .array_type = NO_ARRAY,
  2841. .tlv_type = QMI_COMMON_TLV_TYPE,
  2842. },
  2843. };
  2844. EXPORT_SYMBOL(wlfw_cal_update_resp_msg_v01_ei);
  2845. struct qmi_elem_info wlfw_msa_info_req_msg_v01_ei[] = {
  2846. {
  2847. .data_type = QMI_UNSIGNED_8_BYTE,
  2848. .elem_len = 1,
  2849. .elem_size = sizeof(u64),
  2850. .array_type = NO_ARRAY,
  2851. .tlv_type = 0x01,
  2852. .offset = offsetof(struct
  2853. wlfw_msa_info_req_msg_v01,
  2854. msa_addr),
  2855. },
  2856. {
  2857. .data_type = QMI_UNSIGNED_4_BYTE,
  2858. .elem_len = 1,
  2859. .elem_size = sizeof(u32),
  2860. .array_type = NO_ARRAY,
  2861. .tlv_type = 0x02,
  2862. .offset = offsetof(struct
  2863. wlfw_msa_info_req_msg_v01,
  2864. size),
  2865. },
  2866. {
  2867. .data_type = QMI_EOTI,
  2868. .array_type = NO_ARRAY,
  2869. .tlv_type = QMI_COMMON_TLV_TYPE,
  2870. },
  2871. };
  2872. EXPORT_SYMBOL(wlfw_msa_info_req_msg_v01_ei);
  2873. struct qmi_elem_info wlfw_msa_info_resp_msg_v01_ei[] = {
  2874. {
  2875. .data_type = QMI_STRUCT,
  2876. .elem_len = 1,
  2877. .elem_size = sizeof(struct qmi_response_type_v01),
  2878. .array_type = NO_ARRAY,
  2879. .tlv_type = 0x02,
  2880. .offset = offsetof(struct
  2881. wlfw_msa_info_resp_msg_v01,
  2882. resp),
  2883. .ei_array = qmi_response_type_v01_ei,
  2884. },
  2885. {
  2886. .data_type = QMI_DATA_LEN,
  2887. .elem_len = 1,
  2888. .elem_size = sizeof(u8),
  2889. .array_type = NO_ARRAY,
  2890. .tlv_type = 0x03,
  2891. .offset = offsetof(struct
  2892. wlfw_msa_info_resp_msg_v01,
  2893. mem_region_info_len),
  2894. },
  2895. {
  2896. .data_type = QMI_STRUCT,
  2897. .elem_len = QMI_WLFW_MAX_NUM_MEMORY_REGIONS_V01,
  2898. .elem_size = sizeof(struct wlfw_memory_region_info_s_v01),
  2899. .array_type = VAR_LEN_ARRAY,
  2900. .tlv_type = 0x03,
  2901. .offset = offsetof(struct
  2902. wlfw_msa_info_resp_msg_v01,
  2903. mem_region_info),
  2904. .ei_array = wlfw_memory_region_info_s_v01_ei,
  2905. },
  2906. {
  2907. .data_type = QMI_EOTI,
  2908. .array_type = NO_ARRAY,
  2909. .tlv_type = QMI_COMMON_TLV_TYPE,
  2910. },
  2911. };
  2912. EXPORT_SYMBOL(wlfw_msa_info_resp_msg_v01_ei);
  2913. struct qmi_elem_info wlfw_msa_ready_req_msg_v01_ei[] = {
  2914. {
  2915. .data_type = QMI_EOTI,
  2916. .array_type = NO_ARRAY,
  2917. .tlv_type = QMI_COMMON_TLV_TYPE,
  2918. },
  2919. };
  2920. EXPORT_SYMBOL(wlfw_msa_ready_req_msg_v01_ei);
  2921. struct qmi_elem_info wlfw_msa_ready_resp_msg_v01_ei[] = {
  2922. {
  2923. .data_type = QMI_STRUCT,
  2924. .elem_len = 1,
  2925. .elem_size = sizeof(struct qmi_response_type_v01),
  2926. .array_type = NO_ARRAY,
  2927. .tlv_type = 0x02,
  2928. .offset = offsetof(struct
  2929. wlfw_msa_ready_resp_msg_v01,
  2930. resp),
  2931. .ei_array = qmi_response_type_v01_ei,
  2932. },
  2933. {
  2934. .data_type = QMI_EOTI,
  2935. .array_type = NO_ARRAY,
  2936. .tlv_type = QMI_COMMON_TLV_TYPE,
  2937. },
  2938. };
  2939. EXPORT_SYMBOL(wlfw_msa_ready_resp_msg_v01_ei);
  2940. struct qmi_elem_info wlfw_ini_req_msg_v01_ei[] = {
  2941. {
  2942. .data_type = QMI_OPT_FLAG,
  2943. .elem_len = 1,
  2944. .elem_size = sizeof(u8),
  2945. .array_type = NO_ARRAY,
  2946. .tlv_type = 0x10,
  2947. .offset = offsetof(struct
  2948. wlfw_ini_req_msg_v01,
  2949. enablefwlog_valid),
  2950. },
  2951. {
  2952. .data_type = QMI_UNSIGNED_1_BYTE,
  2953. .elem_len = 1,
  2954. .elem_size = sizeof(u8),
  2955. .array_type = NO_ARRAY,
  2956. .tlv_type = 0x10,
  2957. .offset = offsetof(struct
  2958. wlfw_ini_req_msg_v01,
  2959. enablefwlog),
  2960. },
  2961. {
  2962. .data_type = QMI_EOTI,
  2963. .array_type = NO_ARRAY,
  2964. .tlv_type = QMI_COMMON_TLV_TYPE,
  2965. },
  2966. };
  2967. EXPORT_SYMBOL(wlfw_ini_req_msg_v01_ei);
  2968. struct qmi_elem_info wlfw_ini_resp_msg_v01_ei[] = {
  2969. {
  2970. .data_type = QMI_STRUCT,
  2971. .elem_len = 1,
  2972. .elem_size = sizeof(struct qmi_response_type_v01),
  2973. .array_type = NO_ARRAY,
  2974. .tlv_type = 0x02,
  2975. .offset = offsetof(struct
  2976. wlfw_ini_resp_msg_v01,
  2977. resp),
  2978. .ei_array = qmi_response_type_v01_ei,
  2979. },
  2980. {
  2981. .data_type = QMI_EOTI,
  2982. .array_type = NO_ARRAY,
  2983. .tlv_type = QMI_COMMON_TLV_TYPE,
  2984. },
  2985. };
  2986. EXPORT_SYMBOL(wlfw_ini_resp_msg_v01_ei);
  2987. struct qmi_elem_info wlfw_athdiag_read_req_msg_v01_ei[] = {
  2988. {
  2989. .data_type = QMI_UNSIGNED_4_BYTE,
  2990. .elem_len = 1,
  2991. .elem_size = sizeof(u32),
  2992. .array_type = NO_ARRAY,
  2993. .tlv_type = 0x01,
  2994. .offset = offsetof(struct
  2995. wlfw_athdiag_read_req_msg_v01,
  2996. offset),
  2997. },
  2998. {
  2999. .data_type = QMI_UNSIGNED_4_BYTE,
  3000. .elem_len = 1,
  3001. .elem_size = sizeof(u32),
  3002. .array_type = NO_ARRAY,
  3003. .tlv_type = 0x02,
  3004. .offset = offsetof(struct
  3005. wlfw_athdiag_read_req_msg_v01,
  3006. mem_type),
  3007. },
  3008. {
  3009. .data_type = QMI_UNSIGNED_4_BYTE,
  3010. .elem_len = 1,
  3011. .elem_size = sizeof(u32),
  3012. .array_type = NO_ARRAY,
  3013. .tlv_type = 0x03,
  3014. .offset = offsetof(struct
  3015. wlfw_athdiag_read_req_msg_v01,
  3016. data_len),
  3017. },
  3018. {
  3019. .data_type = QMI_EOTI,
  3020. .array_type = NO_ARRAY,
  3021. .tlv_type = QMI_COMMON_TLV_TYPE,
  3022. },
  3023. };
  3024. EXPORT_SYMBOL(wlfw_athdiag_read_req_msg_v01_ei);
  3025. struct qmi_elem_info wlfw_athdiag_read_resp_msg_v01_ei[] = {
  3026. {
  3027. .data_type = QMI_STRUCT,
  3028. .elem_len = 1,
  3029. .elem_size = sizeof(struct qmi_response_type_v01),
  3030. .array_type = NO_ARRAY,
  3031. .tlv_type = 0x02,
  3032. .offset = offsetof(struct
  3033. wlfw_athdiag_read_resp_msg_v01,
  3034. resp),
  3035. .ei_array = qmi_response_type_v01_ei,
  3036. },
  3037. {
  3038. .data_type = QMI_OPT_FLAG,
  3039. .elem_len = 1,
  3040. .elem_size = sizeof(u8),
  3041. .array_type = NO_ARRAY,
  3042. .tlv_type = 0x10,
  3043. .offset = offsetof(struct
  3044. wlfw_athdiag_read_resp_msg_v01,
  3045. data_valid),
  3046. },
  3047. {
  3048. .data_type = QMI_DATA_LEN,
  3049. .elem_len = 1,
  3050. .elem_size = sizeof(u16),
  3051. .array_type = NO_ARRAY,
  3052. .tlv_type = 0x10,
  3053. .offset = offsetof(struct
  3054. wlfw_athdiag_read_resp_msg_v01,
  3055. data_len),
  3056. },
  3057. {
  3058. .data_type = QMI_UNSIGNED_1_BYTE,
  3059. .elem_len = QMI_WLFW_MAX_ATHDIAG_DATA_SIZE_V01,
  3060. .elem_size = sizeof(u8),
  3061. .array_type = VAR_LEN_ARRAY,
  3062. .tlv_type = 0x10,
  3063. .offset = offsetof(struct
  3064. wlfw_athdiag_read_resp_msg_v01,
  3065. data),
  3066. },
  3067. {
  3068. .data_type = QMI_EOTI,
  3069. .array_type = NO_ARRAY,
  3070. .tlv_type = QMI_COMMON_TLV_TYPE,
  3071. },
  3072. };
  3073. EXPORT_SYMBOL(wlfw_athdiag_read_resp_msg_v01_ei);
  3074. struct qmi_elem_info wlfw_athdiag_write_req_msg_v01_ei[] = {
  3075. {
  3076. .data_type = QMI_UNSIGNED_4_BYTE,
  3077. .elem_len = 1,
  3078. .elem_size = sizeof(u32),
  3079. .array_type = NO_ARRAY,
  3080. .tlv_type = 0x01,
  3081. .offset = offsetof(struct
  3082. wlfw_athdiag_write_req_msg_v01,
  3083. offset),
  3084. },
  3085. {
  3086. .data_type = QMI_UNSIGNED_4_BYTE,
  3087. .elem_len = 1,
  3088. .elem_size = sizeof(u32),
  3089. .array_type = NO_ARRAY,
  3090. .tlv_type = 0x02,
  3091. .offset = offsetof(struct
  3092. wlfw_athdiag_write_req_msg_v01,
  3093. mem_type),
  3094. },
  3095. {
  3096. .data_type = QMI_DATA_LEN,
  3097. .elem_len = 1,
  3098. .elem_size = sizeof(u16),
  3099. .array_type = NO_ARRAY,
  3100. .tlv_type = 0x03,
  3101. .offset = offsetof(struct
  3102. wlfw_athdiag_write_req_msg_v01,
  3103. data_len),
  3104. },
  3105. {
  3106. .data_type = QMI_UNSIGNED_1_BYTE,
  3107. .elem_len = QMI_WLFW_MAX_ATHDIAG_DATA_SIZE_V01,
  3108. .elem_size = sizeof(u8),
  3109. .array_type = VAR_LEN_ARRAY,
  3110. .tlv_type = 0x03,
  3111. .offset = offsetof(struct
  3112. wlfw_athdiag_write_req_msg_v01,
  3113. data),
  3114. },
  3115. {
  3116. .data_type = QMI_EOTI,
  3117. .array_type = NO_ARRAY,
  3118. .tlv_type = QMI_COMMON_TLV_TYPE,
  3119. },
  3120. };
  3121. EXPORT_SYMBOL(wlfw_athdiag_write_req_msg_v01_ei);
  3122. struct qmi_elem_info wlfw_athdiag_write_resp_msg_v01_ei[] = {
  3123. {
  3124. .data_type = QMI_STRUCT,
  3125. .elem_len = 1,
  3126. .elem_size = sizeof(struct qmi_response_type_v01),
  3127. .array_type = NO_ARRAY,
  3128. .tlv_type = 0x02,
  3129. .offset = offsetof(struct
  3130. wlfw_athdiag_write_resp_msg_v01,
  3131. resp),
  3132. .ei_array = qmi_response_type_v01_ei,
  3133. },
  3134. {
  3135. .data_type = QMI_EOTI,
  3136. .array_type = NO_ARRAY,
  3137. .tlv_type = QMI_COMMON_TLV_TYPE,
  3138. },
  3139. };
  3140. EXPORT_SYMBOL(wlfw_athdiag_write_resp_msg_v01_ei);
  3141. struct qmi_elem_info wlfw_vbatt_req_msg_v01_ei[] = {
  3142. {
  3143. .data_type = QMI_UNSIGNED_8_BYTE,
  3144. .elem_len = 1,
  3145. .elem_size = sizeof(u64),
  3146. .array_type = NO_ARRAY,
  3147. .tlv_type = 0x01,
  3148. .offset = offsetof(struct
  3149. wlfw_vbatt_req_msg_v01,
  3150. voltage_uv),
  3151. },
  3152. {
  3153. .data_type = QMI_EOTI,
  3154. .array_type = NO_ARRAY,
  3155. .tlv_type = QMI_COMMON_TLV_TYPE,
  3156. },
  3157. };
  3158. EXPORT_SYMBOL(wlfw_vbatt_req_msg_v01_ei);
  3159. struct qmi_elem_info wlfw_vbatt_resp_msg_v01_ei[] = {
  3160. {
  3161. .data_type = QMI_STRUCT,
  3162. .elem_len = 1,
  3163. .elem_size = sizeof(struct qmi_response_type_v01),
  3164. .array_type = NO_ARRAY,
  3165. .tlv_type = 0x02,
  3166. .offset = offsetof(struct
  3167. wlfw_vbatt_resp_msg_v01,
  3168. resp),
  3169. .ei_array = qmi_response_type_v01_ei,
  3170. },
  3171. {
  3172. .data_type = QMI_EOTI,
  3173. .array_type = NO_ARRAY,
  3174. .tlv_type = QMI_COMMON_TLV_TYPE,
  3175. },
  3176. };
  3177. EXPORT_SYMBOL(wlfw_vbatt_resp_msg_v01_ei);
  3178. struct qmi_elem_info wlfw_mac_addr_req_msg_v01_ei[] = {
  3179. {
  3180. .data_type = QMI_OPT_FLAG,
  3181. .elem_len = 1,
  3182. .elem_size = sizeof(u8),
  3183. .array_type = NO_ARRAY,
  3184. .tlv_type = 0x10,
  3185. .offset = offsetof(struct
  3186. wlfw_mac_addr_req_msg_v01,
  3187. mac_addr_valid),
  3188. },
  3189. {
  3190. .data_type = QMI_UNSIGNED_1_BYTE,
  3191. .elem_len = QMI_WLFW_MAC_ADDR_SIZE_V01,
  3192. .elem_size = sizeof(u8),
  3193. .array_type = STATIC_ARRAY,
  3194. .tlv_type = 0x10,
  3195. .offset = offsetof(struct
  3196. wlfw_mac_addr_req_msg_v01,
  3197. mac_addr),
  3198. },
  3199. {
  3200. .data_type = QMI_EOTI,
  3201. .array_type = NO_ARRAY,
  3202. .tlv_type = QMI_COMMON_TLV_TYPE,
  3203. },
  3204. };
  3205. EXPORT_SYMBOL(wlfw_mac_addr_req_msg_v01_ei);
  3206. struct qmi_elem_info wlfw_mac_addr_resp_msg_v01_ei[] = {
  3207. {
  3208. .data_type = QMI_STRUCT,
  3209. .elem_len = 1,
  3210. .elem_size = sizeof(struct qmi_response_type_v01),
  3211. .array_type = NO_ARRAY,
  3212. .tlv_type = 0x02,
  3213. .offset = offsetof(struct
  3214. wlfw_mac_addr_resp_msg_v01,
  3215. resp),
  3216. .ei_array = qmi_response_type_v01_ei,
  3217. },
  3218. {
  3219. .data_type = QMI_EOTI,
  3220. .array_type = NO_ARRAY,
  3221. .tlv_type = QMI_COMMON_TLV_TYPE,
  3222. },
  3223. };
  3224. EXPORT_SYMBOL(wlfw_mac_addr_resp_msg_v01_ei);
  3225. struct qmi_elem_info wlfw_host_cap_req_msg_v01_ei[] = {
  3226. {
  3227. .data_type = QMI_OPT_FLAG,
  3228. .elem_len = 1,
  3229. .elem_size = sizeof(u8),
  3230. .array_type = NO_ARRAY,
  3231. .tlv_type = 0x10,
  3232. .offset = offsetof(struct
  3233. wlfw_host_cap_req_msg_v01,
  3234. num_clients_valid),
  3235. },
  3236. {
  3237. .data_type = QMI_UNSIGNED_4_BYTE,
  3238. .elem_len = 1,
  3239. .elem_size = sizeof(u32),
  3240. .array_type = NO_ARRAY,
  3241. .tlv_type = 0x10,
  3242. .offset = offsetof(struct
  3243. wlfw_host_cap_req_msg_v01,
  3244. num_clients),
  3245. },
  3246. {
  3247. .data_type = QMI_OPT_FLAG,
  3248. .elem_len = 1,
  3249. .elem_size = sizeof(u8),
  3250. .array_type = NO_ARRAY,
  3251. .tlv_type = 0x11,
  3252. .offset = offsetof(struct
  3253. wlfw_host_cap_req_msg_v01,
  3254. wake_msi_valid),
  3255. },
  3256. {
  3257. .data_type = QMI_UNSIGNED_4_BYTE,
  3258. .elem_len = 1,
  3259. .elem_size = sizeof(u32),
  3260. .array_type = NO_ARRAY,
  3261. .tlv_type = 0x11,
  3262. .offset = offsetof(struct
  3263. wlfw_host_cap_req_msg_v01,
  3264. wake_msi),
  3265. },
  3266. {
  3267. .data_type = QMI_OPT_FLAG,
  3268. .elem_len = 1,
  3269. .elem_size = sizeof(u8),
  3270. .array_type = NO_ARRAY,
  3271. .tlv_type = 0x12,
  3272. .offset = offsetof(struct
  3273. wlfw_host_cap_req_msg_v01,
  3274. gpios_valid),
  3275. },
  3276. {
  3277. .data_type = QMI_DATA_LEN,
  3278. .elem_len = 1,
  3279. .elem_size = sizeof(u8),
  3280. .array_type = NO_ARRAY,
  3281. .tlv_type = 0x12,
  3282. .offset = offsetof(struct
  3283. wlfw_host_cap_req_msg_v01,
  3284. gpios_len),
  3285. },
  3286. {
  3287. .data_type = QMI_UNSIGNED_4_BYTE,
  3288. .elem_len = QMI_WLFW_MAX_NUM_GPIO_V01,
  3289. .elem_size = sizeof(u32),
  3290. .array_type = VAR_LEN_ARRAY,
  3291. .tlv_type = 0x12,
  3292. .offset = offsetof(struct
  3293. wlfw_host_cap_req_msg_v01,
  3294. gpios),
  3295. },
  3296. {
  3297. .data_type = QMI_OPT_FLAG,
  3298. .elem_len = 1,
  3299. .elem_size = sizeof(u8),
  3300. .array_type = NO_ARRAY,
  3301. .tlv_type = 0x13,
  3302. .offset = offsetof(struct
  3303. wlfw_host_cap_req_msg_v01,
  3304. nm_modem_valid),
  3305. },
  3306. {
  3307. .data_type = QMI_UNSIGNED_1_BYTE,
  3308. .elem_len = 1,
  3309. .elem_size = sizeof(u8),
  3310. .array_type = NO_ARRAY,
  3311. .tlv_type = 0x13,
  3312. .offset = offsetof(struct
  3313. wlfw_host_cap_req_msg_v01,
  3314. nm_modem),
  3315. },
  3316. {
  3317. .data_type = QMI_OPT_FLAG,
  3318. .elem_len = 1,
  3319. .elem_size = sizeof(u8),
  3320. .array_type = NO_ARRAY,
  3321. .tlv_type = 0x14,
  3322. .offset = offsetof(struct
  3323. wlfw_host_cap_req_msg_v01,
  3324. bdf_support_valid),
  3325. },
  3326. {
  3327. .data_type = QMI_UNSIGNED_1_BYTE,
  3328. .elem_len = 1,
  3329. .elem_size = sizeof(u8),
  3330. .array_type = NO_ARRAY,
  3331. .tlv_type = 0x14,
  3332. .offset = offsetof(struct
  3333. wlfw_host_cap_req_msg_v01,
  3334. bdf_support),
  3335. },
  3336. {
  3337. .data_type = QMI_OPT_FLAG,
  3338. .elem_len = 1,
  3339. .elem_size = sizeof(u8),
  3340. .array_type = NO_ARRAY,
  3341. .tlv_type = 0x15,
  3342. .offset = offsetof(struct
  3343. wlfw_host_cap_req_msg_v01,
  3344. bdf_cache_support_valid),
  3345. },
  3346. {
  3347. .data_type = QMI_UNSIGNED_1_BYTE,
  3348. .elem_len = 1,
  3349. .elem_size = sizeof(u8),
  3350. .array_type = NO_ARRAY,
  3351. .tlv_type = 0x15,
  3352. .offset = offsetof(struct
  3353. wlfw_host_cap_req_msg_v01,
  3354. bdf_cache_support),
  3355. },
  3356. {
  3357. .data_type = QMI_OPT_FLAG,
  3358. .elem_len = 1,
  3359. .elem_size = sizeof(u8),
  3360. .array_type = NO_ARRAY,
  3361. .tlv_type = 0x16,
  3362. .offset = offsetof(struct
  3363. wlfw_host_cap_req_msg_v01,
  3364. m3_support_valid),
  3365. },
  3366. {
  3367. .data_type = QMI_UNSIGNED_1_BYTE,
  3368. .elem_len = 1,
  3369. .elem_size = sizeof(u8),
  3370. .array_type = NO_ARRAY,
  3371. .tlv_type = 0x16,
  3372. .offset = offsetof(struct
  3373. wlfw_host_cap_req_msg_v01,
  3374. m3_support),
  3375. },
  3376. {
  3377. .data_type = QMI_OPT_FLAG,
  3378. .elem_len = 1,
  3379. .elem_size = sizeof(u8),
  3380. .array_type = NO_ARRAY,
  3381. .tlv_type = 0x17,
  3382. .offset = offsetof(struct
  3383. wlfw_host_cap_req_msg_v01,
  3384. m3_cache_support_valid),
  3385. },
  3386. {
  3387. .data_type = QMI_UNSIGNED_1_BYTE,
  3388. .elem_len = 1,
  3389. .elem_size = sizeof(u8),
  3390. .array_type = NO_ARRAY,
  3391. .tlv_type = 0x17,
  3392. .offset = offsetof(struct
  3393. wlfw_host_cap_req_msg_v01,
  3394. m3_cache_support),
  3395. },
  3396. {
  3397. .data_type = QMI_OPT_FLAG,
  3398. .elem_len = 1,
  3399. .elem_size = sizeof(u8),
  3400. .array_type = NO_ARRAY,
  3401. .tlv_type = 0x18,
  3402. .offset = offsetof(struct
  3403. wlfw_host_cap_req_msg_v01,
  3404. cal_filesys_support_valid),
  3405. },
  3406. {
  3407. .data_type = QMI_UNSIGNED_1_BYTE,
  3408. .elem_len = 1,
  3409. .elem_size = sizeof(u8),
  3410. .array_type = NO_ARRAY,
  3411. .tlv_type = 0x18,
  3412. .offset = offsetof(struct
  3413. wlfw_host_cap_req_msg_v01,
  3414. cal_filesys_support),
  3415. },
  3416. {
  3417. .data_type = QMI_OPT_FLAG,
  3418. .elem_len = 1,
  3419. .elem_size = sizeof(u8),
  3420. .array_type = NO_ARRAY,
  3421. .tlv_type = 0x19,
  3422. .offset = offsetof(struct
  3423. wlfw_host_cap_req_msg_v01,
  3424. cal_cache_support_valid),
  3425. },
  3426. {
  3427. .data_type = QMI_UNSIGNED_1_BYTE,
  3428. .elem_len = 1,
  3429. .elem_size = sizeof(u8),
  3430. .array_type = NO_ARRAY,
  3431. .tlv_type = 0x19,
  3432. .offset = offsetof(struct
  3433. wlfw_host_cap_req_msg_v01,
  3434. cal_cache_support),
  3435. },
  3436. {
  3437. .data_type = QMI_OPT_FLAG,
  3438. .elem_len = 1,
  3439. .elem_size = sizeof(u8),
  3440. .array_type = NO_ARRAY,
  3441. .tlv_type = 0x1A,
  3442. .offset = offsetof(struct
  3443. wlfw_host_cap_req_msg_v01,
  3444. cal_done_valid),
  3445. },
  3446. {
  3447. .data_type = QMI_UNSIGNED_1_BYTE,
  3448. .elem_len = 1,
  3449. .elem_size = sizeof(u8),
  3450. .array_type = NO_ARRAY,
  3451. .tlv_type = 0x1A,
  3452. .offset = offsetof(struct
  3453. wlfw_host_cap_req_msg_v01,
  3454. cal_done),
  3455. },
  3456. {
  3457. .data_type = QMI_OPT_FLAG,
  3458. .elem_len = 1,
  3459. .elem_size = sizeof(u8),
  3460. .array_type = NO_ARRAY,
  3461. .tlv_type = 0x1B,
  3462. .offset = offsetof(struct
  3463. wlfw_host_cap_req_msg_v01,
  3464. mem_bucket_valid),
  3465. },
  3466. {
  3467. .data_type = QMI_UNSIGNED_4_BYTE,
  3468. .elem_len = 1,
  3469. .elem_size = sizeof(u32),
  3470. .array_type = NO_ARRAY,
  3471. .tlv_type = 0x1B,
  3472. .offset = offsetof(struct
  3473. wlfw_host_cap_req_msg_v01,
  3474. mem_bucket),
  3475. },
  3476. {
  3477. .data_type = QMI_OPT_FLAG,
  3478. .elem_len = 1,
  3479. .elem_size = sizeof(u8),
  3480. .array_type = NO_ARRAY,
  3481. .tlv_type = 0x1C,
  3482. .offset = offsetof(struct
  3483. wlfw_host_cap_req_msg_v01,
  3484. mem_cfg_mode_valid),
  3485. },
  3486. {
  3487. .data_type = QMI_UNSIGNED_1_BYTE,
  3488. .elem_len = 1,
  3489. .elem_size = sizeof(u8),
  3490. .array_type = NO_ARRAY,
  3491. .tlv_type = 0x1C,
  3492. .offset = offsetof(struct
  3493. wlfw_host_cap_req_msg_v01,
  3494. mem_cfg_mode),
  3495. },
  3496. {
  3497. .data_type = QMI_OPT_FLAG,
  3498. .elem_len = 1,
  3499. .elem_size = sizeof(u8),
  3500. .array_type = NO_ARRAY,
  3501. .tlv_type = 0x1D,
  3502. .offset = offsetof(struct
  3503. wlfw_host_cap_req_msg_v01,
  3504. cal_duration_valid),
  3505. },
  3506. {
  3507. .data_type = QMI_UNSIGNED_2_BYTE,
  3508. .elem_len = 1,
  3509. .elem_size = sizeof(u16),
  3510. .array_type = NO_ARRAY,
  3511. .tlv_type = 0x1D,
  3512. .offset = offsetof(struct
  3513. wlfw_host_cap_req_msg_v01,
  3514. cal_duration),
  3515. },
  3516. {
  3517. .data_type = QMI_OPT_FLAG,
  3518. .elem_len = 1,
  3519. .elem_size = sizeof(u8),
  3520. .array_type = NO_ARRAY,
  3521. .tlv_type = 0x1E,
  3522. .offset = offsetof(struct
  3523. wlfw_host_cap_req_msg_v01,
  3524. platform_name_valid),
  3525. },
  3526. {
  3527. .data_type = QMI_STRING,
  3528. .elem_len = QMI_WLFW_MAX_PLATFORM_NAME_LEN_V01 + 1,
  3529. .elem_size = sizeof(char),
  3530. .array_type = NO_ARRAY,
  3531. .tlv_type = 0x1E,
  3532. .offset = offsetof(struct
  3533. wlfw_host_cap_req_msg_v01,
  3534. platform_name),
  3535. },
  3536. {
  3537. .data_type = QMI_OPT_FLAG,
  3538. .elem_len = 1,
  3539. .elem_size = sizeof(u8),
  3540. .array_type = NO_ARRAY,
  3541. .tlv_type = 0x1F,
  3542. .offset = offsetof(struct
  3543. wlfw_host_cap_req_msg_v01,
  3544. ddr_range_valid),
  3545. },
  3546. {
  3547. .data_type = QMI_STRUCT,
  3548. .elem_len = QMI_WLFW_MAX_HOST_DDR_RANGE_SIZE_V01,
  3549. .elem_size = sizeof(struct wlfw_host_ddr_range_s_v01),
  3550. .array_type = STATIC_ARRAY,
  3551. .tlv_type = 0x1F,
  3552. .offset = offsetof(struct
  3553. wlfw_host_cap_req_msg_v01,
  3554. ddr_range),
  3555. .ei_array = wlfw_host_ddr_range_s_v01_ei,
  3556. },
  3557. {
  3558. .data_type = QMI_OPT_FLAG,
  3559. .elem_len = 1,
  3560. .elem_size = sizeof(u8),
  3561. .array_type = NO_ARRAY,
  3562. .tlv_type = 0x20,
  3563. .offset = offsetof(struct
  3564. wlfw_host_cap_req_msg_v01,
  3565. host_build_type_valid),
  3566. },
  3567. {
  3568. .data_type = QMI_SIGNED_4_BYTE_ENUM,
  3569. .elem_len = 1,
  3570. .elem_size = sizeof(enum wlfw_host_build_type_v01),
  3571. .array_type = NO_ARRAY,
  3572. .tlv_type = 0x20,
  3573. .offset = offsetof(struct
  3574. wlfw_host_cap_req_msg_v01,
  3575. host_build_type),
  3576. },
  3577. {
  3578. .data_type = QMI_OPT_FLAG,
  3579. .elem_len = 1,
  3580. .elem_size = sizeof(u8),
  3581. .array_type = NO_ARRAY,
  3582. .tlv_type = 0x21,
  3583. .offset = offsetof(struct
  3584. wlfw_host_cap_req_msg_v01,
  3585. mlo_capable_valid),
  3586. },
  3587. {
  3588. .data_type = QMI_UNSIGNED_1_BYTE,
  3589. .elem_len = 1,
  3590. .elem_size = sizeof(u8),
  3591. .array_type = NO_ARRAY,
  3592. .tlv_type = 0x21,
  3593. .offset = offsetof(struct
  3594. wlfw_host_cap_req_msg_v01,
  3595. mlo_capable),
  3596. },
  3597. {
  3598. .data_type = QMI_OPT_FLAG,
  3599. .elem_len = 1,
  3600. .elem_size = sizeof(u8),
  3601. .array_type = NO_ARRAY,
  3602. .tlv_type = 0x22,
  3603. .offset = offsetof(struct
  3604. wlfw_host_cap_req_msg_v01,
  3605. mlo_chip_id_valid),
  3606. },
  3607. {
  3608. .data_type = QMI_UNSIGNED_2_BYTE,
  3609. .elem_len = 1,
  3610. .elem_size = sizeof(u16),
  3611. .array_type = NO_ARRAY,
  3612. .tlv_type = 0x22,
  3613. .offset = offsetof(struct
  3614. wlfw_host_cap_req_msg_v01,
  3615. mlo_chip_id),
  3616. },
  3617. {
  3618. .data_type = QMI_OPT_FLAG,
  3619. .elem_len = 1,
  3620. .elem_size = sizeof(u8),
  3621. .array_type = NO_ARRAY,
  3622. .tlv_type = 0x23,
  3623. .offset = offsetof(struct
  3624. wlfw_host_cap_req_msg_v01,
  3625. mlo_group_id_valid),
  3626. },
  3627. {
  3628. .data_type = QMI_UNSIGNED_1_BYTE,
  3629. .elem_len = 1,
  3630. .elem_size = sizeof(u8),
  3631. .array_type = NO_ARRAY,
  3632. .tlv_type = 0x23,
  3633. .offset = offsetof(struct
  3634. wlfw_host_cap_req_msg_v01,
  3635. mlo_group_id),
  3636. },
  3637. {
  3638. .data_type = QMI_OPT_FLAG,
  3639. .elem_len = 1,
  3640. .elem_size = sizeof(u8),
  3641. .array_type = NO_ARRAY,
  3642. .tlv_type = 0x24,
  3643. .offset = offsetof(struct
  3644. wlfw_host_cap_req_msg_v01,
  3645. max_mlo_peer_valid),
  3646. },
  3647. {
  3648. .data_type = QMI_UNSIGNED_2_BYTE,
  3649. .elem_len = 1,
  3650. .elem_size = sizeof(u16),
  3651. .array_type = NO_ARRAY,
  3652. .tlv_type = 0x24,
  3653. .offset = offsetof(struct
  3654. wlfw_host_cap_req_msg_v01,
  3655. max_mlo_peer),
  3656. },
  3657. {
  3658. .data_type = QMI_OPT_FLAG,
  3659. .elem_len = 1,
  3660. .elem_size = sizeof(u8),
  3661. .array_type = NO_ARRAY,
  3662. .tlv_type = 0x25,
  3663. .offset = offsetof(struct
  3664. wlfw_host_cap_req_msg_v01,
  3665. mlo_num_chips_valid),
  3666. },
  3667. {
  3668. .data_type = QMI_UNSIGNED_1_BYTE,
  3669. .elem_len = 1,
  3670. .elem_size = sizeof(u8),
  3671. .array_type = NO_ARRAY,
  3672. .tlv_type = 0x25,
  3673. .offset = offsetof(struct
  3674. wlfw_host_cap_req_msg_v01,
  3675. mlo_num_chips),
  3676. },
  3677. {
  3678. .data_type = QMI_OPT_FLAG,
  3679. .elem_len = 1,
  3680. .elem_size = sizeof(u8),
  3681. .array_type = NO_ARRAY,
  3682. .tlv_type = 0x26,
  3683. .offset = offsetof(struct
  3684. wlfw_host_cap_req_msg_v01,
  3685. mlo_chip_info_valid),
  3686. },
  3687. {
  3688. .data_type = QMI_STRUCT,
  3689. .elem_len = QMI_WLFW_MAX_NUM_MLO_CHIPS_V01,
  3690. .elem_size = sizeof(struct wlfw_host_mlo_chip_info_s_v01),
  3691. .array_type = STATIC_ARRAY,
  3692. .tlv_type = 0x26,
  3693. .offset = offsetof(struct
  3694. wlfw_host_cap_req_msg_v01,
  3695. mlo_chip_info),
  3696. .ei_array = wlfw_host_mlo_chip_info_s_v01_ei,
  3697. },
  3698. {
  3699. .data_type = QMI_OPT_FLAG,
  3700. .elem_len = 1,
  3701. .elem_size = sizeof(u8),
  3702. .array_type = NO_ARRAY,
  3703. .tlv_type = 0x27,
  3704. .offset = offsetof(struct
  3705. wlfw_host_cap_req_msg_v01,
  3706. feature_list_valid),
  3707. },
  3708. {
  3709. .data_type = QMI_UNSIGNED_8_BYTE,
  3710. .elem_len = 1,
  3711. .elem_size = sizeof(u64),
  3712. .array_type = NO_ARRAY,
  3713. .tlv_type = 0x27,
  3714. .offset = offsetof(struct
  3715. wlfw_host_cap_req_msg_v01,
  3716. feature_list),
  3717. },
  3718. {
  3719. .data_type = QMI_OPT_FLAG,
  3720. .elem_len = 1,
  3721. .elem_size = sizeof(u8),
  3722. .array_type = NO_ARRAY,
  3723. .tlv_type = 0x28,
  3724. .offset = offsetof(struct
  3725. wlfw_host_cap_req_msg_v01,
  3726. num_wlan_clients_valid),
  3727. },
  3728. {
  3729. .data_type = QMI_UNSIGNED_2_BYTE,
  3730. .elem_len = 1,
  3731. .elem_size = sizeof(u16),
  3732. .array_type = NO_ARRAY,
  3733. .tlv_type = 0x28,
  3734. .offset = offsetof(struct
  3735. wlfw_host_cap_req_msg_v01,
  3736. num_wlan_clients),
  3737. },
  3738. {
  3739. .data_type = QMI_OPT_FLAG,
  3740. .elem_len = 1,
  3741. .elem_size = sizeof(u8),
  3742. .array_type = NO_ARRAY,
  3743. .tlv_type = 0x29,
  3744. .offset = offsetof(struct
  3745. wlfw_host_cap_req_msg_v01,
  3746. num_wlan_vaps_valid),
  3747. },
  3748. {
  3749. .data_type = QMI_UNSIGNED_1_BYTE,
  3750. .elem_len = 1,
  3751. .elem_size = sizeof(u8),
  3752. .array_type = NO_ARRAY,
  3753. .tlv_type = 0x29,
  3754. .offset = offsetof(struct
  3755. wlfw_host_cap_req_msg_v01,
  3756. num_wlan_vaps),
  3757. },
  3758. {
  3759. .data_type = QMI_OPT_FLAG,
  3760. .elem_len = 1,
  3761. .elem_size = sizeof(u8),
  3762. .array_type = NO_ARRAY,
  3763. .tlv_type = 0x2A,
  3764. .offset = offsetof(struct
  3765. wlfw_host_cap_req_msg_v01,
  3766. wake_msi_addr_valid),
  3767. },
  3768. {
  3769. .data_type = QMI_UNSIGNED_4_BYTE,
  3770. .elem_len = 1,
  3771. .elem_size = sizeof(u32),
  3772. .array_type = NO_ARRAY,
  3773. .tlv_type = 0x2A,
  3774. .offset = offsetof(struct
  3775. wlfw_host_cap_req_msg_v01,
  3776. wake_msi_addr),
  3777. },
  3778. {
  3779. .data_type = QMI_OPT_FLAG,
  3780. .elem_len = 1,
  3781. .elem_size = sizeof(u8),
  3782. .array_type = NO_ARRAY,
  3783. .tlv_type = 0x2B,
  3784. .offset = offsetof(struct
  3785. wlfw_host_cap_req_msg_v01,
  3786. wlan_enable_delay_valid),
  3787. },
  3788. {
  3789. .data_type = QMI_UNSIGNED_4_BYTE,
  3790. .elem_len = 1,
  3791. .elem_size = sizeof(u32),
  3792. .array_type = NO_ARRAY,
  3793. .tlv_type = 0x2B,
  3794. .offset = offsetof(struct
  3795. wlfw_host_cap_req_msg_v01,
  3796. wlan_enable_delay),
  3797. },
  3798. {
  3799. .data_type = QMI_OPT_FLAG,
  3800. .elem_len = 1,
  3801. .elem_size = sizeof(u8),
  3802. .array_type = NO_ARRAY,
  3803. .tlv_type = 0x2C,
  3804. .offset = offsetof(struct
  3805. wlfw_host_cap_req_msg_v01,
  3806. ddr_type_valid),
  3807. },
  3808. {
  3809. .data_type = QMI_UNSIGNED_4_BYTE,
  3810. .elem_len = 1,
  3811. .elem_size = sizeof(u32),
  3812. .array_type = NO_ARRAY,
  3813. .tlv_type = 0x2C,
  3814. .offset = offsetof(struct
  3815. wlfw_host_cap_req_msg_v01,
  3816. ddr_type),
  3817. },
  3818. {
  3819. .data_type = QMI_OPT_FLAG,
  3820. .elem_len = 1,
  3821. .elem_size = sizeof(u8),
  3822. .array_type = NO_ARRAY,
  3823. .tlv_type = 0x2D,
  3824. .offset = offsetof(struct
  3825. wlfw_host_cap_req_msg_v01,
  3826. gpio_info_valid),
  3827. },
  3828. {
  3829. .data_type = QMI_DATA_LEN,
  3830. .elem_len = 1,
  3831. .elem_size = sizeof(u8),
  3832. .array_type = NO_ARRAY,
  3833. .tlv_type = 0x2D,
  3834. .offset = offsetof(struct
  3835. wlfw_host_cap_req_msg_v01,
  3836. gpio_info_len),
  3837. },
  3838. {
  3839. .data_type = QMI_UNSIGNED_4_BYTE,
  3840. .elem_len = QMI_WLFW_MAX_NUM_GPIO_INFO_V01,
  3841. .elem_size = sizeof(u32),
  3842. .array_type = VAR_LEN_ARRAY,
  3843. .tlv_type = 0x2D,
  3844. .offset = offsetof(struct
  3845. wlfw_host_cap_req_msg_v01,
  3846. gpio_info),
  3847. },
  3848. {
  3849. .data_type = QMI_OPT_FLAG,
  3850. .elem_len = 1,
  3851. .elem_size = sizeof(u8),
  3852. .array_type = NO_ARRAY,
  3853. .tlv_type = 0x2E,
  3854. .offset = offsetof(struct
  3855. wlfw_host_cap_req_msg_v01,
  3856. fw_ini_cfg_support_valid),
  3857. },
  3858. {
  3859. .data_type = QMI_UNSIGNED_1_BYTE,
  3860. .elem_len = 1,
  3861. .elem_size = sizeof(u8),
  3862. .array_type = NO_ARRAY,
  3863. .tlv_type = 0x2E,
  3864. .offset = offsetof(struct
  3865. wlfw_host_cap_req_msg_v01,
  3866. fw_ini_cfg_support),
  3867. },
  3868. {
  3869. .data_type = QMI_EOTI,
  3870. .array_type = NO_ARRAY,
  3871. .tlv_type = QMI_COMMON_TLV_TYPE,
  3872. },
  3873. };
  3874. EXPORT_SYMBOL(wlfw_host_cap_req_msg_v01_ei);
  3875. struct qmi_elem_info wlfw_host_cap_resp_msg_v01_ei[] = {
  3876. {
  3877. .data_type = QMI_STRUCT,
  3878. .elem_len = 1,
  3879. .elem_size = sizeof(struct qmi_response_type_v01),
  3880. .array_type = NO_ARRAY,
  3881. .tlv_type = 0x02,
  3882. .offset = offsetof(struct
  3883. wlfw_host_cap_resp_msg_v01,
  3884. resp),
  3885. .ei_array = qmi_response_type_v01_ei,
  3886. },
  3887. {
  3888. .data_type = QMI_EOTI,
  3889. .array_type = NO_ARRAY,
  3890. .tlv_type = QMI_COMMON_TLV_TYPE,
  3891. },
  3892. };
  3893. EXPORT_SYMBOL(wlfw_host_cap_resp_msg_v01_ei);
  3894. struct qmi_elem_info wlfw_request_mem_ind_msg_v01_ei[] = {
  3895. {
  3896. .data_type = QMI_DATA_LEN,
  3897. .elem_len = 1,
  3898. .elem_size = sizeof(u8),
  3899. .array_type = NO_ARRAY,
  3900. .tlv_type = 0x01,
  3901. .offset = offsetof(struct
  3902. wlfw_request_mem_ind_msg_v01,
  3903. mem_seg_len),
  3904. },
  3905. {
  3906. .data_type = QMI_STRUCT,
  3907. .elem_len = QMI_WLFW_MAX_NUM_MEM_SEG_V01,
  3908. .elem_size = sizeof(struct wlfw_mem_seg_s_v01),
  3909. .array_type = VAR_LEN_ARRAY,
  3910. .tlv_type = 0x01,
  3911. .offset = offsetof(struct
  3912. wlfw_request_mem_ind_msg_v01,
  3913. mem_seg),
  3914. .ei_array = wlfw_mem_seg_s_v01_ei,
  3915. },
  3916. {
  3917. .data_type = QMI_EOTI,
  3918. .array_type = NO_ARRAY,
  3919. .tlv_type = QMI_COMMON_TLV_TYPE,
  3920. },
  3921. };
  3922. EXPORT_SYMBOL(wlfw_request_mem_ind_msg_v01_ei);
  3923. struct qmi_elem_info wlfw_respond_mem_req_msg_v01_ei[] = {
  3924. {
  3925. .data_type = QMI_DATA_LEN,
  3926. .elem_len = 1,
  3927. .elem_size = sizeof(u8),
  3928. .array_type = NO_ARRAY,
  3929. .tlv_type = 0x01,
  3930. .offset = offsetof(struct
  3931. wlfw_respond_mem_req_msg_v01,
  3932. mem_seg_len),
  3933. },
  3934. {
  3935. .data_type = QMI_STRUCT,
  3936. .elem_len = QMI_WLFW_MAX_NUM_MEM_SEG_V01,
  3937. .elem_size = sizeof(struct wlfw_mem_seg_resp_s_v01),
  3938. .array_type = VAR_LEN_ARRAY,
  3939. .tlv_type = 0x01,
  3940. .offset = offsetof(struct
  3941. wlfw_respond_mem_req_msg_v01,
  3942. mem_seg),
  3943. .ei_array = wlfw_mem_seg_resp_s_v01_ei,
  3944. },
  3945. {
  3946. .data_type = QMI_EOTI,
  3947. .array_type = NO_ARRAY,
  3948. .tlv_type = QMI_COMMON_TLV_TYPE,
  3949. },
  3950. };
  3951. EXPORT_SYMBOL(wlfw_respond_mem_req_msg_v01_ei);
  3952. struct qmi_elem_info wlfw_respond_mem_resp_msg_v01_ei[] = {
  3953. {
  3954. .data_type = QMI_STRUCT,
  3955. .elem_len = 1,
  3956. .elem_size = sizeof(struct qmi_response_type_v01),
  3957. .array_type = NO_ARRAY,
  3958. .tlv_type = 0x02,
  3959. .offset = offsetof(struct
  3960. wlfw_respond_mem_resp_msg_v01,
  3961. resp),
  3962. .ei_array = qmi_response_type_v01_ei,
  3963. },
  3964. {
  3965. .data_type = QMI_EOTI,
  3966. .array_type = NO_ARRAY,
  3967. .tlv_type = QMI_COMMON_TLV_TYPE,
  3968. },
  3969. };
  3970. EXPORT_SYMBOL(wlfw_respond_mem_resp_msg_v01_ei);
  3971. struct qmi_elem_info wlfw_fw_mem_ready_ind_msg_v01_ei[] = {
  3972. {
  3973. .data_type = QMI_EOTI,
  3974. .array_type = NO_ARRAY,
  3975. .tlv_type = QMI_COMMON_TLV_TYPE,
  3976. },
  3977. };
  3978. EXPORT_SYMBOL(wlfw_fw_mem_ready_ind_msg_v01_ei);
  3979. struct qmi_elem_info wlfw_fw_init_done_ind_msg_v01_ei[] = {
  3980. {
  3981. .data_type = QMI_OPT_FLAG,
  3982. .elem_len = 1,
  3983. .elem_size = sizeof(u8),
  3984. .array_type = NO_ARRAY,
  3985. .tlv_type = 0x10,
  3986. .offset = offsetof(struct
  3987. wlfw_fw_init_done_ind_msg_v01,
  3988. hang_data_addr_offset_valid),
  3989. },
  3990. {
  3991. .data_type = QMI_UNSIGNED_4_BYTE,
  3992. .elem_len = 1,
  3993. .elem_size = sizeof(u32),
  3994. .array_type = NO_ARRAY,
  3995. .tlv_type = 0x10,
  3996. .offset = offsetof(struct
  3997. wlfw_fw_init_done_ind_msg_v01,
  3998. hang_data_addr_offset),
  3999. },
  4000. {
  4001. .data_type = QMI_OPT_FLAG,
  4002. .elem_len = 1,
  4003. .elem_size = sizeof(u8),
  4004. .array_type = NO_ARRAY,
  4005. .tlv_type = 0x11,
  4006. .offset = offsetof(struct
  4007. wlfw_fw_init_done_ind_msg_v01,
  4008. hang_data_length_valid),
  4009. },
  4010. {
  4011. .data_type = QMI_UNSIGNED_2_BYTE,
  4012. .elem_len = 1,
  4013. .elem_size = sizeof(u16),
  4014. .array_type = NO_ARRAY,
  4015. .tlv_type = 0x11,
  4016. .offset = offsetof(struct
  4017. wlfw_fw_init_done_ind_msg_v01,
  4018. hang_data_length),
  4019. },
  4020. {
  4021. .data_type = QMI_EOTI,
  4022. .array_type = NO_ARRAY,
  4023. .tlv_type = QMI_COMMON_TLV_TYPE,
  4024. },
  4025. };
  4026. EXPORT_SYMBOL(wlfw_fw_init_done_ind_msg_v01_ei);
  4027. struct qmi_elem_info wlfw_rejuvenate_ind_msg_v01_ei[] = {
  4028. {
  4029. .data_type = QMI_OPT_FLAG,
  4030. .elem_len = 1,
  4031. .elem_size = sizeof(u8),
  4032. .array_type = NO_ARRAY,
  4033. .tlv_type = 0x10,
  4034. .offset = offsetof(struct
  4035. wlfw_rejuvenate_ind_msg_v01,
  4036. cause_for_rejuvenation_valid),
  4037. },
  4038. {
  4039. .data_type = QMI_UNSIGNED_1_BYTE,
  4040. .elem_len = 1,
  4041. .elem_size = sizeof(u8),
  4042. .array_type = NO_ARRAY,
  4043. .tlv_type = 0x10,
  4044. .offset = offsetof(struct
  4045. wlfw_rejuvenate_ind_msg_v01,
  4046. cause_for_rejuvenation),
  4047. },
  4048. {
  4049. .data_type = QMI_OPT_FLAG,
  4050. .elem_len = 1,
  4051. .elem_size = sizeof(u8),
  4052. .array_type = NO_ARRAY,
  4053. .tlv_type = 0x11,
  4054. .offset = offsetof(struct
  4055. wlfw_rejuvenate_ind_msg_v01,
  4056. requesting_sub_system_valid),
  4057. },
  4058. {
  4059. .data_type = QMI_UNSIGNED_1_BYTE,
  4060. .elem_len = 1,
  4061. .elem_size = sizeof(u8),
  4062. .array_type = NO_ARRAY,
  4063. .tlv_type = 0x11,
  4064. .offset = offsetof(struct
  4065. wlfw_rejuvenate_ind_msg_v01,
  4066. requesting_sub_system),
  4067. },
  4068. {
  4069. .data_type = QMI_OPT_FLAG,
  4070. .elem_len = 1,
  4071. .elem_size = sizeof(u8),
  4072. .array_type = NO_ARRAY,
  4073. .tlv_type = 0x12,
  4074. .offset = offsetof(struct
  4075. wlfw_rejuvenate_ind_msg_v01,
  4076. line_number_valid),
  4077. },
  4078. {
  4079. .data_type = QMI_UNSIGNED_2_BYTE,
  4080. .elem_len = 1,
  4081. .elem_size = sizeof(u16),
  4082. .array_type = NO_ARRAY,
  4083. .tlv_type = 0x12,
  4084. .offset = offsetof(struct
  4085. wlfw_rejuvenate_ind_msg_v01,
  4086. line_number),
  4087. },
  4088. {
  4089. .data_type = QMI_OPT_FLAG,
  4090. .elem_len = 1,
  4091. .elem_size = sizeof(u8),
  4092. .array_type = NO_ARRAY,
  4093. .tlv_type = 0x13,
  4094. .offset = offsetof(struct
  4095. wlfw_rejuvenate_ind_msg_v01,
  4096. function_name_valid),
  4097. },
  4098. {
  4099. .data_type = QMI_STRING,
  4100. .elem_len = QMI_WLFW_FUNCTION_NAME_LEN_V01 + 1,
  4101. .elem_size = sizeof(char),
  4102. .array_type = NO_ARRAY,
  4103. .tlv_type = 0x13,
  4104. .offset = offsetof(struct
  4105. wlfw_rejuvenate_ind_msg_v01,
  4106. function_name),
  4107. },
  4108. {
  4109. .data_type = QMI_EOTI,
  4110. .array_type = NO_ARRAY,
  4111. .tlv_type = QMI_COMMON_TLV_TYPE,
  4112. },
  4113. };
  4114. EXPORT_SYMBOL(wlfw_rejuvenate_ind_msg_v01_ei);
  4115. struct qmi_elem_info wlfw_rejuvenate_ack_req_msg_v01_ei[] = {
  4116. {
  4117. .data_type = QMI_EOTI,
  4118. .array_type = NO_ARRAY,
  4119. .tlv_type = QMI_COMMON_TLV_TYPE,
  4120. },
  4121. };
  4122. EXPORT_SYMBOL(wlfw_rejuvenate_ack_req_msg_v01_ei);
  4123. struct qmi_elem_info wlfw_rejuvenate_ack_resp_msg_v01_ei[] = {
  4124. {
  4125. .data_type = QMI_STRUCT,
  4126. .elem_len = 1,
  4127. .elem_size = sizeof(struct qmi_response_type_v01),
  4128. .array_type = NO_ARRAY,
  4129. .tlv_type = 0x02,
  4130. .offset = offsetof(struct
  4131. wlfw_rejuvenate_ack_resp_msg_v01,
  4132. resp),
  4133. .ei_array = qmi_response_type_v01_ei,
  4134. },
  4135. {
  4136. .data_type = QMI_EOTI,
  4137. .array_type = NO_ARRAY,
  4138. .tlv_type = QMI_COMMON_TLV_TYPE,
  4139. },
  4140. };
  4141. EXPORT_SYMBOL(wlfw_rejuvenate_ack_resp_msg_v01_ei);
  4142. struct qmi_elem_info wlfw_dynamic_feature_mask_req_msg_v01_ei[] = {
  4143. {
  4144. .data_type = QMI_OPT_FLAG,
  4145. .elem_len = 1,
  4146. .elem_size = sizeof(u8),
  4147. .array_type = NO_ARRAY,
  4148. .tlv_type = 0x10,
  4149. .offset = offsetof(struct
  4150. wlfw_dynamic_feature_mask_req_msg_v01,
  4151. mask_valid),
  4152. },
  4153. {
  4154. .data_type = QMI_UNSIGNED_8_BYTE,
  4155. .elem_len = 1,
  4156. .elem_size = sizeof(u64),
  4157. .array_type = NO_ARRAY,
  4158. .tlv_type = 0x10,
  4159. .offset = offsetof(struct
  4160. wlfw_dynamic_feature_mask_req_msg_v01,
  4161. mask),
  4162. },
  4163. {
  4164. .data_type = QMI_EOTI,
  4165. .array_type = NO_ARRAY,
  4166. .tlv_type = QMI_COMMON_TLV_TYPE,
  4167. },
  4168. };
  4169. EXPORT_SYMBOL(wlfw_dynamic_feature_mask_req_msg_v01_ei);
  4170. struct qmi_elem_info wlfw_dynamic_feature_mask_resp_msg_v01_ei[] = {
  4171. {
  4172. .data_type = QMI_STRUCT,
  4173. .elem_len = 1,
  4174. .elem_size = sizeof(struct qmi_response_type_v01),
  4175. .array_type = NO_ARRAY,
  4176. .tlv_type = 0x02,
  4177. .offset = offsetof(struct
  4178. wlfw_dynamic_feature_mask_resp_msg_v01,
  4179. resp),
  4180. .ei_array = qmi_response_type_v01_ei,
  4181. },
  4182. {
  4183. .data_type = QMI_OPT_FLAG,
  4184. .elem_len = 1,
  4185. .elem_size = sizeof(u8),
  4186. .array_type = NO_ARRAY,
  4187. .tlv_type = 0x10,
  4188. .offset = offsetof(struct
  4189. wlfw_dynamic_feature_mask_resp_msg_v01,
  4190. prev_mask_valid),
  4191. },
  4192. {
  4193. .data_type = QMI_UNSIGNED_8_BYTE,
  4194. .elem_len = 1,
  4195. .elem_size = sizeof(u64),
  4196. .array_type = NO_ARRAY,
  4197. .tlv_type = 0x10,
  4198. .offset = offsetof(struct
  4199. wlfw_dynamic_feature_mask_resp_msg_v01,
  4200. prev_mask),
  4201. },
  4202. {
  4203. .data_type = QMI_OPT_FLAG,
  4204. .elem_len = 1,
  4205. .elem_size = sizeof(u8),
  4206. .array_type = NO_ARRAY,
  4207. .tlv_type = 0x11,
  4208. .offset = offsetof(struct
  4209. wlfw_dynamic_feature_mask_resp_msg_v01,
  4210. curr_mask_valid),
  4211. },
  4212. {
  4213. .data_type = QMI_UNSIGNED_8_BYTE,
  4214. .elem_len = 1,
  4215. .elem_size = sizeof(u64),
  4216. .array_type = NO_ARRAY,
  4217. .tlv_type = 0x11,
  4218. .offset = offsetof(struct
  4219. wlfw_dynamic_feature_mask_resp_msg_v01,
  4220. curr_mask),
  4221. },
  4222. {
  4223. .data_type = QMI_EOTI,
  4224. .array_type = NO_ARRAY,
  4225. .tlv_type = QMI_COMMON_TLV_TYPE,
  4226. },
  4227. };
  4228. EXPORT_SYMBOL(wlfw_dynamic_feature_mask_resp_msg_v01_ei);
  4229. struct qmi_elem_info wlfw_m3_info_req_msg_v01_ei[] = {
  4230. {
  4231. .data_type = QMI_UNSIGNED_8_BYTE,
  4232. .elem_len = 1,
  4233. .elem_size = sizeof(u64),
  4234. .array_type = NO_ARRAY,
  4235. .tlv_type = 0x01,
  4236. .offset = offsetof(struct
  4237. wlfw_m3_info_req_msg_v01,
  4238. addr),
  4239. },
  4240. {
  4241. .data_type = QMI_UNSIGNED_4_BYTE,
  4242. .elem_len = 1,
  4243. .elem_size = sizeof(u32),
  4244. .array_type = NO_ARRAY,
  4245. .tlv_type = 0x02,
  4246. .offset = offsetof(struct
  4247. wlfw_m3_info_req_msg_v01,
  4248. size),
  4249. },
  4250. {
  4251. .data_type = QMI_EOTI,
  4252. .array_type = NO_ARRAY,
  4253. .tlv_type = QMI_COMMON_TLV_TYPE,
  4254. },
  4255. };
  4256. EXPORT_SYMBOL(wlfw_m3_info_req_msg_v01_ei);
  4257. struct qmi_elem_info wlfw_m3_info_resp_msg_v01_ei[] = {
  4258. {
  4259. .data_type = QMI_STRUCT,
  4260. .elem_len = 1,
  4261. .elem_size = sizeof(struct qmi_response_type_v01),
  4262. .array_type = NO_ARRAY,
  4263. .tlv_type = 0x02,
  4264. .offset = offsetof(struct
  4265. wlfw_m3_info_resp_msg_v01,
  4266. resp),
  4267. .ei_array = qmi_response_type_v01_ei,
  4268. },
  4269. {
  4270. .data_type = QMI_EOTI,
  4271. .array_type = NO_ARRAY,
  4272. .tlv_type = QMI_COMMON_TLV_TYPE,
  4273. },
  4274. };
  4275. EXPORT_SYMBOL(wlfw_m3_info_resp_msg_v01_ei);
  4276. struct qmi_elem_info wlfw_xo_cal_ind_msg_v01_ei[] = {
  4277. {
  4278. .data_type = QMI_UNSIGNED_1_BYTE,
  4279. .elem_len = 1,
  4280. .elem_size = sizeof(u8),
  4281. .array_type = NO_ARRAY,
  4282. .tlv_type = 0x01,
  4283. .offset = offsetof(struct
  4284. wlfw_xo_cal_ind_msg_v01,
  4285. xo_cal_data),
  4286. },
  4287. {
  4288. .data_type = QMI_EOTI,
  4289. .array_type = NO_ARRAY,
  4290. .tlv_type = QMI_COMMON_TLV_TYPE,
  4291. },
  4292. };
  4293. EXPORT_SYMBOL(wlfw_xo_cal_ind_msg_v01_ei);
  4294. struct qmi_elem_info wlfw_cal_done_ind_msg_v01_ei[] = {
  4295. {
  4296. .data_type = QMI_OPT_FLAG,
  4297. .elem_len = 1,
  4298. .elem_size = sizeof(u8),
  4299. .array_type = NO_ARRAY,
  4300. .tlv_type = 0x10,
  4301. .offset = offsetof(struct
  4302. wlfw_cal_done_ind_msg_v01,
  4303. cal_file_upload_size_valid),
  4304. },
  4305. {
  4306. .data_type = QMI_UNSIGNED_8_BYTE,
  4307. .elem_len = 1,
  4308. .elem_size = sizeof(u64),
  4309. .array_type = NO_ARRAY,
  4310. .tlv_type = 0x10,
  4311. .offset = offsetof(struct
  4312. wlfw_cal_done_ind_msg_v01,
  4313. cal_file_upload_size),
  4314. },
  4315. {
  4316. .data_type = QMI_EOTI,
  4317. .array_type = NO_ARRAY,
  4318. .tlv_type = QMI_COMMON_TLV_TYPE,
  4319. },
  4320. };
  4321. EXPORT_SYMBOL(wlfw_cal_done_ind_msg_v01_ei);
  4322. struct qmi_elem_info wlfw_qdss_trace_req_mem_ind_msg_v01_ei[] = {
  4323. {
  4324. .data_type = QMI_DATA_LEN,
  4325. .elem_len = 1,
  4326. .elem_size = sizeof(u8),
  4327. .array_type = NO_ARRAY,
  4328. .tlv_type = 0x01,
  4329. .offset = offsetof(struct
  4330. wlfw_qdss_trace_req_mem_ind_msg_v01,
  4331. mem_seg_len),
  4332. },
  4333. {
  4334. .data_type = QMI_STRUCT,
  4335. .elem_len = QMI_WLFW_MAX_NUM_MEM_SEG_V01,
  4336. .elem_size = sizeof(struct wlfw_mem_seg_s_v01),
  4337. .array_type = VAR_LEN_ARRAY,
  4338. .tlv_type = 0x01,
  4339. .offset = offsetof(struct
  4340. wlfw_qdss_trace_req_mem_ind_msg_v01,
  4341. mem_seg),
  4342. .ei_array = wlfw_mem_seg_s_v01_ei,
  4343. },
  4344. {
  4345. .data_type = QMI_EOTI,
  4346. .array_type = NO_ARRAY,
  4347. .tlv_type = QMI_COMMON_TLV_TYPE,
  4348. },
  4349. };
  4350. EXPORT_SYMBOL(wlfw_qdss_trace_req_mem_ind_msg_v01_ei);
  4351. struct qmi_elem_info wlfw_qdss_trace_mem_info_req_msg_v01_ei[] = {
  4352. {
  4353. .data_type = QMI_DATA_LEN,
  4354. .elem_len = 1,
  4355. .elem_size = sizeof(u8),
  4356. .array_type = NO_ARRAY,
  4357. .tlv_type = 0x01,
  4358. .offset = offsetof(struct
  4359. wlfw_qdss_trace_mem_info_req_msg_v01,
  4360. mem_seg_len),
  4361. },
  4362. {
  4363. .data_type = QMI_STRUCT,
  4364. .elem_len = QMI_WLFW_MAX_NUM_MEM_SEG_V01,
  4365. .elem_size = sizeof(struct wlfw_mem_seg_resp_s_v01),
  4366. .array_type = VAR_LEN_ARRAY,
  4367. .tlv_type = 0x01,
  4368. .offset = offsetof(struct
  4369. wlfw_qdss_trace_mem_info_req_msg_v01,
  4370. mem_seg),
  4371. .ei_array = wlfw_mem_seg_resp_s_v01_ei,
  4372. },
  4373. {
  4374. .data_type = QMI_OPT_FLAG,
  4375. .elem_len = 1,
  4376. .elem_size = sizeof(u8),
  4377. .array_type = NO_ARRAY,
  4378. .tlv_type = 0x10,
  4379. .offset = offsetof(struct
  4380. wlfw_qdss_trace_mem_info_req_msg_v01,
  4381. end_valid),
  4382. },
  4383. {
  4384. .data_type = QMI_UNSIGNED_1_BYTE,
  4385. .elem_len = 1,
  4386. .elem_size = sizeof(u8),
  4387. .array_type = NO_ARRAY,
  4388. .tlv_type = 0x10,
  4389. .offset = offsetof(struct
  4390. wlfw_qdss_trace_mem_info_req_msg_v01,
  4391. end),
  4392. },
  4393. {
  4394. .data_type = QMI_EOTI,
  4395. .array_type = NO_ARRAY,
  4396. .tlv_type = QMI_COMMON_TLV_TYPE,
  4397. },
  4398. };
  4399. EXPORT_SYMBOL(wlfw_qdss_trace_mem_info_req_msg_v01_ei);
  4400. struct qmi_elem_info wlfw_qdss_trace_mem_info_resp_msg_v01_ei[] = {
  4401. {
  4402. .data_type = QMI_STRUCT,
  4403. .elem_len = 1,
  4404. .elem_size = sizeof(struct qmi_response_type_v01),
  4405. .array_type = NO_ARRAY,
  4406. .tlv_type = 0x02,
  4407. .offset = offsetof(struct
  4408. wlfw_qdss_trace_mem_info_resp_msg_v01,
  4409. resp),
  4410. .ei_array = qmi_response_type_v01_ei,
  4411. },
  4412. {
  4413. .data_type = QMI_EOTI,
  4414. .array_type = NO_ARRAY,
  4415. .tlv_type = QMI_COMMON_TLV_TYPE,
  4416. },
  4417. };
  4418. EXPORT_SYMBOL(wlfw_qdss_trace_mem_info_resp_msg_v01_ei);
  4419. struct qmi_elem_info wlfw_qdss_trace_save_ind_msg_v01_ei[] = {
  4420. {
  4421. .data_type = QMI_UNSIGNED_4_BYTE,
  4422. .elem_len = 1,
  4423. .elem_size = sizeof(u32),
  4424. .array_type = NO_ARRAY,
  4425. .tlv_type = 0x01,
  4426. .offset = offsetof(struct
  4427. wlfw_qdss_trace_save_ind_msg_v01,
  4428. source),
  4429. },
  4430. {
  4431. .data_type = QMI_UNSIGNED_4_BYTE,
  4432. .elem_len = 1,
  4433. .elem_size = sizeof(u32),
  4434. .array_type = NO_ARRAY,
  4435. .tlv_type = 0x02,
  4436. .offset = offsetof(struct
  4437. wlfw_qdss_trace_save_ind_msg_v01,
  4438. total_size),
  4439. },
  4440. {
  4441. .data_type = QMI_OPT_FLAG,
  4442. .elem_len = 1,
  4443. .elem_size = sizeof(u8),
  4444. .array_type = NO_ARRAY,
  4445. .tlv_type = 0x10,
  4446. .offset = offsetof(struct
  4447. wlfw_qdss_trace_save_ind_msg_v01,
  4448. mem_seg_valid),
  4449. },
  4450. {
  4451. .data_type = QMI_DATA_LEN,
  4452. .elem_len = 1,
  4453. .elem_size = sizeof(u8),
  4454. .array_type = NO_ARRAY,
  4455. .tlv_type = 0x10,
  4456. .offset = offsetof(struct
  4457. wlfw_qdss_trace_save_ind_msg_v01,
  4458. mem_seg_len),
  4459. },
  4460. {
  4461. .data_type = QMI_STRUCT,
  4462. .elem_len = QMI_WLFW_MAX_NUM_MEM_SEG_V01,
  4463. .elem_size = sizeof(struct wlfw_mem_seg_resp_s_v01),
  4464. .array_type = VAR_LEN_ARRAY,
  4465. .tlv_type = 0x10,
  4466. .offset = offsetof(struct
  4467. wlfw_qdss_trace_save_ind_msg_v01,
  4468. mem_seg),
  4469. .ei_array = wlfw_mem_seg_resp_s_v01_ei,
  4470. },
  4471. {
  4472. .data_type = QMI_OPT_FLAG,
  4473. .elem_len = 1,
  4474. .elem_size = sizeof(u8),
  4475. .array_type = NO_ARRAY,
  4476. .tlv_type = 0x11,
  4477. .offset = offsetof(struct
  4478. wlfw_qdss_trace_save_ind_msg_v01,
  4479. file_name_valid),
  4480. },
  4481. {
  4482. .data_type = QMI_STRING,
  4483. .elem_len = QMI_WLFW_MAX_STR_LEN_V01 + 1,
  4484. .elem_size = sizeof(char),
  4485. .array_type = NO_ARRAY,
  4486. .tlv_type = 0x11,
  4487. .offset = offsetof(struct
  4488. wlfw_qdss_trace_save_ind_msg_v01,
  4489. file_name),
  4490. },
  4491. {
  4492. .data_type = QMI_EOTI,
  4493. .array_type = NO_ARRAY,
  4494. .tlv_type = QMI_COMMON_TLV_TYPE,
  4495. },
  4496. };
  4497. EXPORT_SYMBOL(wlfw_qdss_trace_save_ind_msg_v01_ei);
  4498. struct qmi_elem_info wlfw_qdss_trace_data_req_msg_v01_ei[] = {
  4499. {
  4500. .data_type = QMI_UNSIGNED_4_BYTE,
  4501. .elem_len = 1,
  4502. .elem_size = sizeof(u32),
  4503. .array_type = NO_ARRAY,
  4504. .tlv_type = 0x01,
  4505. .offset = offsetof(struct
  4506. wlfw_qdss_trace_data_req_msg_v01,
  4507. seg_id),
  4508. },
  4509. {
  4510. .data_type = QMI_EOTI,
  4511. .array_type = NO_ARRAY,
  4512. .tlv_type = QMI_COMMON_TLV_TYPE,
  4513. },
  4514. };
  4515. EXPORT_SYMBOL(wlfw_qdss_trace_data_req_msg_v01_ei);
  4516. struct qmi_elem_info wlfw_qdss_trace_data_resp_msg_v01_ei[] = {
  4517. {
  4518. .data_type = QMI_STRUCT,
  4519. .elem_len = 1,
  4520. .elem_size = sizeof(struct qmi_response_type_v01),
  4521. .array_type = NO_ARRAY,
  4522. .tlv_type = 0x02,
  4523. .offset = offsetof(struct
  4524. wlfw_qdss_trace_data_resp_msg_v01,
  4525. resp),
  4526. .ei_array = qmi_response_type_v01_ei,
  4527. },
  4528. {
  4529. .data_type = QMI_OPT_FLAG,
  4530. .elem_len = 1,
  4531. .elem_size = sizeof(u8),
  4532. .array_type = NO_ARRAY,
  4533. .tlv_type = 0x10,
  4534. .offset = offsetof(struct
  4535. wlfw_qdss_trace_data_resp_msg_v01,
  4536. total_size_valid),
  4537. },
  4538. {
  4539. .data_type = QMI_UNSIGNED_4_BYTE,
  4540. .elem_len = 1,
  4541. .elem_size = sizeof(u32),
  4542. .array_type = NO_ARRAY,
  4543. .tlv_type = 0x10,
  4544. .offset = offsetof(struct
  4545. wlfw_qdss_trace_data_resp_msg_v01,
  4546. total_size),
  4547. },
  4548. {
  4549. .data_type = QMI_OPT_FLAG,
  4550. .elem_len = 1,
  4551. .elem_size = sizeof(u8),
  4552. .array_type = NO_ARRAY,
  4553. .tlv_type = 0x11,
  4554. .offset = offsetof(struct
  4555. wlfw_qdss_trace_data_resp_msg_v01,
  4556. seg_id_valid),
  4557. },
  4558. {
  4559. .data_type = QMI_UNSIGNED_4_BYTE,
  4560. .elem_len = 1,
  4561. .elem_size = sizeof(u32),
  4562. .array_type = NO_ARRAY,
  4563. .tlv_type = 0x11,
  4564. .offset = offsetof(struct
  4565. wlfw_qdss_trace_data_resp_msg_v01,
  4566. seg_id),
  4567. },
  4568. {
  4569. .data_type = QMI_OPT_FLAG,
  4570. .elem_len = 1,
  4571. .elem_size = sizeof(u8),
  4572. .array_type = NO_ARRAY,
  4573. .tlv_type = 0x12,
  4574. .offset = offsetof(struct
  4575. wlfw_qdss_trace_data_resp_msg_v01,
  4576. data_valid),
  4577. },
  4578. {
  4579. .data_type = QMI_DATA_LEN,
  4580. .elem_len = 1,
  4581. .elem_size = sizeof(u16),
  4582. .array_type = NO_ARRAY,
  4583. .tlv_type = 0x12,
  4584. .offset = offsetof(struct
  4585. wlfw_qdss_trace_data_resp_msg_v01,
  4586. data_len),
  4587. },
  4588. {
  4589. .data_type = QMI_UNSIGNED_1_BYTE,
  4590. .elem_len = QMI_WLFW_MAX_DATA_SIZE_V01,
  4591. .elem_size = sizeof(u8),
  4592. .array_type = VAR_LEN_ARRAY,
  4593. .tlv_type = 0x12,
  4594. .offset = offsetof(struct
  4595. wlfw_qdss_trace_data_resp_msg_v01,
  4596. data),
  4597. },
  4598. {
  4599. .data_type = QMI_OPT_FLAG,
  4600. .elem_len = 1,
  4601. .elem_size = sizeof(u8),
  4602. .array_type = NO_ARRAY,
  4603. .tlv_type = 0x13,
  4604. .offset = offsetof(struct
  4605. wlfw_qdss_trace_data_resp_msg_v01,
  4606. end_valid),
  4607. },
  4608. {
  4609. .data_type = QMI_UNSIGNED_1_BYTE,
  4610. .elem_len = 1,
  4611. .elem_size = sizeof(u8),
  4612. .array_type = NO_ARRAY,
  4613. .tlv_type = 0x13,
  4614. .offset = offsetof(struct
  4615. wlfw_qdss_trace_data_resp_msg_v01,
  4616. end),
  4617. },
  4618. {
  4619. .data_type = QMI_EOTI,
  4620. .array_type = NO_ARRAY,
  4621. .tlv_type = QMI_COMMON_TLV_TYPE,
  4622. },
  4623. };
  4624. EXPORT_SYMBOL(wlfw_qdss_trace_data_resp_msg_v01_ei);
  4625. struct qmi_elem_info wlfw_qdss_trace_config_download_req_msg_v01_ei[] = {
  4626. {
  4627. .data_type = QMI_OPT_FLAG,
  4628. .elem_len = 1,
  4629. .elem_size = sizeof(u8),
  4630. .array_type = NO_ARRAY,
  4631. .tlv_type = 0x10,
  4632. .offset = offsetof(struct
  4633. wlfw_qdss_trace_config_download_req_msg_v01,
  4634. total_size_valid),
  4635. },
  4636. {
  4637. .data_type = QMI_UNSIGNED_4_BYTE,
  4638. .elem_len = 1,
  4639. .elem_size = sizeof(u32),
  4640. .array_type = NO_ARRAY,
  4641. .tlv_type = 0x10,
  4642. .offset = offsetof(struct
  4643. wlfw_qdss_trace_config_download_req_msg_v01,
  4644. total_size),
  4645. },
  4646. {
  4647. .data_type = QMI_OPT_FLAG,
  4648. .elem_len = 1,
  4649. .elem_size = sizeof(u8),
  4650. .array_type = NO_ARRAY,
  4651. .tlv_type = 0x11,
  4652. .offset = offsetof(struct
  4653. wlfw_qdss_trace_config_download_req_msg_v01,
  4654. seg_id_valid),
  4655. },
  4656. {
  4657. .data_type = QMI_UNSIGNED_4_BYTE,
  4658. .elem_len = 1,
  4659. .elem_size = sizeof(u32),
  4660. .array_type = NO_ARRAY,
  4661. .tlv_type = 0x11,
  4662. .offset = offsetof(struct
  4663. wlfw_qdss_trace_config_download_req_msg_v01,
  4664. seg_id),
  4665. },
  4666. {
  4667. .data_type = QMI_OPT_FLAG,
  4668. .elem_len = 1,
  4669. .elem_size = sizeof(u8),
  4670. .array_type = NO_ARRAY,
  4671. .tlv_type = 0x12,
  4672. .offset = offsetof(struct
  4673. wlfw_qdss_trace_config_download_req_msg_v01,
  4674. data_valid),
  4675. },
  4676. {
  4677. .data_type = QMI_DATA_LEN,
  4678. .elem_len = 1,
  4679. .elem_size = sizeof(u16),
  4680. .array_type = NO_ARRAY,
  4681. .tlv_type = 0x12,
  4682. .offset = offsetof(struct
  4683. wlfw_qdss_trace_config_download_req_msg_v01,
  4684. data_len),
  4685. },
  4686. {
  4687. .data_type = QMI_UNSIGNED_1_BYTE,
  4688. .elem_len = QMI_WLFW_MAX_DATA_SIZE_V01,
  4689. .elem_size = sizeof(u8),
  4690. .array_type = VAR_LEN_ARRAY,
  4691. .tlv_type = 0x12,
  4692. .offset = offsetof(struct
  4693. wlfw_qdss_trace_config_download_req_msg_v01,
  4694. data),
  4695. },
  4696. {
  4697. .data_type = QMI_OPT_FLAG,
  4698. .elem_len = 1,
  4699. .elem_size = sizeof(u8),
  4700. .array_type = NO_ARRAY,
  4701. .tlv_type = 0x13,
  4702. .offset = offsetof(struct
  4703. wlfw_qdss_trace_config_download_req_msg_v01,
  4704. end_valid),
  4705. },
  4706. {
  4707. .data_type = QMI_UNSIGNED_1_BYTE,
  4708. .elem_len = 1,
  4709. .elem_size = sizeof(u8),
  4710. .array_type = NO_ARRAY,
  4711. .tlv_type = 0x13,
  4712. .offset = offsetof(struct
  4713. wlfw_qdss_trace_config_download_req_msg_v01,
  4714. end),
  4715. },
  4716. {
  4717. .data_type = QMI_EOTI,
  4718. .array_type = NO_ARRAY,
  4719. .tlv_type = QMI_COMMON_TLV_TYPE,
  4720. },
  4721. };
  4722. EXPORT_SYMBOL(wlfw_qdss_trace_config_download_req_msg_v01_ei);
  4723. struct qmi_elem_info wlfw_qdss_trace_config_download_resp_msg_v01_ei[] = {
  4724. {
  4725. .data_type = QMI_STRUCT,
  4726. .elem_len = 1,
  4727. .elem_size = sizeof(struct qmi_response_type_v01),
  4728. .array_type = NO_ARRAY,
  4729. .tlv_type = 0x02,
  4730. .offset = offsetof(struct
  4731. wlfw_qdss_trace_config_download_resp_msg_v01,
  4732. resp),
  4733. .ei_array = qmi_response_type_v01_ei,
  4734. },
  4735. {
  4736. .data_type = QMI_EOTI,
  4737. .array_type = NO_ARRAY,
  4738. .tlv_type = QMI_COMMON_TLV_TYPE,
  4739. },
  4740. };
  4741. EXPORT_SYMBOL(wlfw_qdss_trace_config_download_resp_msg_v01_ei);
  4742. struct qmi_elem_info wlfw_qdss_trace_mode_req_msg_v01_ei[] = {
  4743. {
  4744. .data_type = QMI_OPT_FLAG,
  4745. .elem_len = 1,
  4746. .elem_size = sizeof(u8),
  4747. .array_type = NO_ARRAY,
  4748. .tlv_type = 0x10,
  4749. .offset = offsetof(struct
  4750. wlfw_qdss_trace_mode_req_msg_v01,
  4751. mode_valid),
  4752. },
  4753. {
  4754. .data_type = QMI_SIGNED_4_BYTE_ENUM,
  4755. .elem_len = 1,
  4756. .elem_size = sizeof(enum wlfw_qdss_trace_mode_enum_v01),
  4757. .array_type = NO_ARRAY,
  4758. .tlv_type = 0x10,
  4759. .offset = offsetof(struct
  4760. wlfw_qdss_trace_mode_req_msg_v01,
  4761. mode),
  4762. },
  4763. {
  4764. .data_type = QMI_OPT_FLAG,
  4765. .elem_len = 1,
  4766. .elem_size = sizeof(u8),
  4767. .array_type = NO_ARRAY,
  4768. .tlv_type = 0x11,
  4769. .offset = offsetof(struct
  4770. wlfw_qdss_trace_mode_req_msg_v01,
  4771. option_valid),
  4772. },
  4773. {
  4774. .data_type = QMI_UNSIGNED_8_BYTE,
  4775. .elem_len = 1,
  4776. .elem_size = sizeof(u64),
  4777. .array_type = NO_ARRAY,
  4778. .tlv_type = 0x11,
  4779. .offset = offsetof(struct
  4780. wlfw_qdss_trace_mode_req_msg_v01,
  4781. option),
  4782. },
  4783. {
  4784. .data_type = QMI_OPT_FLAG,
  4785. .elem_len = 1,
  4786. .elem_size = sizeof(u8),
  4787. .array_type = NO_ARRAY,
  4788. .tlv_type = 0x12,
  4789. .offset = offsetof(struct
  4790. wlfw_qdss_trace_mode_req_msg_v01,
  4791. hw_trc_disable_override_valid),
  4792. },
  4793. {
  4794. .data_type = QMI_SIGNED_4_BYTE_ENUM,
  4795. .elem_len = 1,
  4796. .elem_size = sizeof(enum wlfw_qmi_param_value_v01),
  4797. .array_type = NO_ARRAY,
  4798. .tlv_type = 0x12,
  4799. .offset = offsetof(struct
  4800. wlfw_qdss_trace_mode_req_msg_v01,
  4801. hw_trc_disable_override),
  4802. },
  4803. {
  4804. .data_type = QMI_EOTI,
  4805. .array_type = NO_ARRAY,
  4806. .tlv_type = QMI_COMMON_TLV_TYPE,
  4807. },
  4808. };
  4809. EXPORT_SYMBOL(wlfw_qdss_trace_mode_req_msg_v01_ei);
  4810. struct qmi_elem_info wlfw_qdss_trace_mode_resp_msg_v01_ei[] = {
  4811. {
  4812. .data_type = QMI_STRUCT,
  4813. .elem_len = 1,
  4814. .elem_size = sizeof(struct qmi_response_type_v01),
  4815. .array_type = NO_ARRAY,
  4816. .tlv_type = 0x02,
  4817. .offset = offsetof(struct
  4818. wlfw_qdss_trace_mode_resp_msg_v01,
  4819. resp),
  4820. .ei_array = qmi_response_type_v01_ei,
  4821. },
  4822. {
  4823. .data_type = QMI_EOTI,
  4824. .array_type = NO_ARRAY,
  4825. .tlv_type = QMI_COMMON_TLV_TYPE,
  4826. },
  4827. };
  4828. EXPORT_SYMBOL(wlfw_qdss_trace_mode_resp_msg_v01_ei);
  4829. struct qmi_elem_info wlfw_qdss_trace_free_ind_msg_v01_ei[] = {
  4830. {
  4831. .data_type = QMI_OPT_FLAG,
  4832. .elem_len = 1,
  4833. .elem_size = sizeof(u8),
  4834. .array_type = NO_ARRAY,
  4835. .tlv_type = 0x10,
  4836. .offset = offsetof(struct
  4837. wlfw_qdss_trace_free_ind_msg_v01,
  4838. mem_seg_valid),
  4839. },
  4840. {
  4841. .data_type = QMI_DATA_LEN,
  4842. .elem_len = 1,
  4843. .elem_size = sizeof(u8),
  4844. .array_type = NO_ARRAY,
  4845. .tlv_type = 0x10,
  4846. .offset = offsetof(struct
  4847. wlfw_qdss_trace_free_ind_msg_v01,
  4848. mem_seg_len),
  4849. },
  4850. {
  4851. .data_type = QMI_STRUCT,
  4852. .elem_len = QMI_WLFW_MAX_NUM_MEM_SEG_V01,
  4853. .elem_size = sizeof(struct wlfw_mem_seg_resp_s_v01),
  4854. .array_type = VAR_LEN_ARRAY,
  4855. .tlv_type = 0x10,
  4856. .offset = offsetof(struct
  4857. wlfw_qdss_trace_free_ind_msg_v01,
  4858. mem_seg),
  4859. .ei_array = wlfw_mem_seg_resp_s_v01_ei,
  4860. },
  4861. {
  4862. .data_type = QMI_EOTI,
  4863. .array_type = NO_ARRAY,
  4864. .tlv_type = QMI_COMMON_TLV_TYPE,
  4865. },
  4866. };
  4867. EXPORT_SYMBOL(wlfw_qdss_trace_free_ind_msg_v01_ei);
  4868. struct qmi_elem_info wlfw_shutdown_req_msg_v01_ei[] = {
  4869. {
  4870. .data_type = QMI_OPT_FLAG,
  4871. .elem_len = 1,
  4872. .elem_size = sizeof(u8),
  4873. .array_type = NO_ARRAY,
  4874. .tlv_type = 0x10,
  4875. .offset = offsetof(struct
  4876. wlfw_shutdown_req_msg_v01,
  4877. shutdown_valid),
  4878. },
  4879. {
  4880. .data_type = QMI_UNSIGNED_1_BYTE,
  4881. .elem_len = 1,
  4882. .elem_size = sizeof(u8),
  4883. .array_type = NO_ARRAY,
  4884. .tlv_type = 0x10,
  4885. .offset = offsetof(struct
  4886. wlfw_shutdown_req_msg_v01,
  4887. shutdown),
  4888. },
  4889. {
  4890. .data_type = QMI_EOTI,
  4891. .array_type = NO_ARRAY,
  4892. .tlv_type = QMI_COMMON_TLV_TYPE,
  4893. },
  4894. };
  4895. EXPORT_SYMBOL(wlfw_shutdown_req_msg_v01_ei);
  4896. struct qmi_elem_info wlfw_shutdown_resp_msg_v01_ei[] = {
  4897. {
  4898. .data_type = QMI_STRUCT,
  4899. .elem_len = 1,
  4900. .elem_size = sizeof(struct qmi_response_type_v01),
  4901. .array_type = NO_ARRAY,
  4902. .tlv_type = 0x02,
  4903. .offset = offsetof(struct
  4904. wlfw_shutdown_resp_msg_v01,
  4905. resp),
  4906. .ei_array = qmi_response_type_v01_ei,
  4907. },
  4908. {
  4909. .data_type = QMI_EOTI,
  4910. .array_type = NO_ARRAY,
  4911. .tlv_type = QMI_COMMON_TLV_TYPE,
  4912. },
  4913. };
  4914. EXPORT_SYMBOL(wlfw_shutdown_resp_msg_v01_ei);
  4915. struct qmi_elem_info wlfw_antenna_switch_req_msg_v01_ei[] = {
  4916. {
  4917. .data_type = QMI_EOTI,
  4918. .array_type = NO_ARRAY,
  4919. .tlv_type = QMI_COMMON_TLV_TYPE,
  4920. },
  4921. };
  4922. EXPORT_SYMBOL(wlfw_antenna_switch_req_msg_v01_ei);
  4923. struct qmi_elem_info wlfw_antenna_switch_resp_msg_v01_ei[] = {
  4924. {
  4925. .data_type = QMI_STRUCT,
  4926. .elem_len = 1,
  4927. .elem_size = sizeof(struct qmi_response_type_v01),
  4928. .array_type = NO_ARRAY,
  4929. .tlv_type = 0x02,
  4930. .offset = offsetof(struct
  4931. wlfw_antenna_switch_resp_msg_v01,
  4932. resp),
  4933. .ei_array = qmi_response_type_v01_ei,
  4934. },
  4935. {
  4936. .data_type = QMI_OPT_FLAG,
  4937. .elem_len = 1,
  4938. .elem_size = sizeof(u8),
  4939. .array_type = NO_ARRAY,
  4940. .tlv_type = 0x10,
  4941. .offset = offsetof(struct
  4942. wlfw_antenna_switch_resp_msg_v01,
  4943. antenna_valid),
  4944. },
  4945. {
  4946. .data_type = QMI_UNSIGNED_8_BYTE,
  4947. .elem_len = 1,
  4948. .elem_size = sizeof(u64),
  4949. .array_type = NO_ARRAY,
  4950. .tlv_type = 0x10,
  4951. .offset = offsetof(struct
  4952. wlfw_antenna_switch_resp_msg_v01,
  4953. antenna),
  4954. },
  4955. {
  4956. .data_type = QMI_EOTI,
  4957. .array_type = NO_ARRAY,
  4958. .tlv_type = QMI_COMMON_TLV_TYPE,
  4959. },
  4960. };
  4961. EXPORT_SYMBOL(wlfw_antenna_switch_resp_msg_v01_ei);
  4962. struct qmi_elem_info wlfw_antenna_grant_req_msg_v01_ei[] = {
  4963. {
  4964. .data_type = QMI_OPT_FLAG,
  4965. .elem_len = 1,
  4966. .elem_size = sizeof(u8),
  4967. .array_type = NO_ARRAY,
  4968. .tlv_type = 0x10,
  4969. .offset = offsetof(struct
  4970. wlfw_antenna_grant_req_msg_v01,
  4971. grant_valid),
  4972. },
  4973. {
  4974. .data_type = QMI_UNSIGNED_8_BYTE,
  4975. .elem_len = 1,
  4976. .elem_size = sizeof(u64),
  4977. .array_type = NO_ARRAY,
  4978. .tlv_type = 0x10,
  4979. .offset = offsetof(struct
  4980. wlfw_antenna_grant_req_msg_v01,
  4981. grant),
  4982. },
  4983. {
  4984. .data_type = QMI_EOTI,
  4985. .array_type = NO_ARRAY,
  4986. .tlv_type = QMI_COMMON_TLV_TYPE,
  4987. },
  4988. };
  4989. EXPORT_SYMBOL(wlfw_antenna_grant_req_msg_v01_ei);
  4990. struct qmi_elem_info wlfw_antenna_grant_resp_msg_v01_ei[] = {
  4991. {
  4992. .data_type = QMI_STRUCT,
  4993. .elem_len = 1,
  4994. .elem_size = sizeof(struct qmi_response_type_v01),
  4995. .array_type = NO_ARRAY,
  4996. .tlv_type = 0x02,
  4997. .offset = offsetof(struct
  4998. wlfw_antenna_grant_resp_msg_v01,
  4999. resp),
  5000. .ei_array = qmi_response_type_v01_ei,
  5001. },
  5002. {
  5003. .data_type = QMI_EOTI,
  5004. .array_type = NO_ARRAY,
  5005. .tlv_type = QMI_COMMON_TLV_TYPE,
  5006. },
  5007. };
  5008. EXPORT_SYMBOL(wlfw_antenna_grant_resp_msg_v01_ei);
  5009. struct qmi_elem_info wlfw_wfc_call_status_req_msg_v01_ei[] = {
  5010. {
  5011. .data_type = QMI_DATA_LEN,
  5012. .elem_len = 1,
  5013. .elem_size = sizeof(u16),
  5014. .array_type = NO_ARRAY,
  5015. .tlv_type = 0x01,
  5016. .offset = offsetof(struct
  5017. wlfw_wfc_call_status_req_msg_v01,
  5018. wfc_call_status_len),
  5019. },
  5020. {
  5021. .data_type = QMI_UNSIGNED_1_BYTE,
  5022. .elem_len = QMI_WLFW_MAX_WFC_CALL_STATUS_DATA_SIZE_V01,
  5023. .elem_size = sizeof(u8),
  5024. .array_type = VAR_LEN_ARRAY,
  5025. .tlv_type = 0x01,
  5026. .offset = offsetof(struct
  5027. wlfw_wfc_call_status_req_msg_v01,
  5028. wfc_call_status),
  5029. },
  5030. {
  5031. .data_type = QMI_OPT_FLAG,
  5032. .elem_len = 1,
  5033. .elem_size = sizeof(u8),
  5034. .array_type = NO_ARRAY,
  5035. .tlv_type = 0x10,
  5036. .offset = offsetof(struct
  5037. wlfw_wfc_call_status_req_msg_v01,
  5038. wfc_call_active_valid),
  5039. },
  5040. {
  5041. .data_type = QMI_UNSIGNED_1_BYTE,
  5042. .elem_len = 1,
  5043. .elem_size = sizeof(u8),
  5044. .array_type = NO_ARRAY,
  5045. .tlv_type = 0x10,
  5046. .offset = offsetof(struct
  5047. wlfw_wfc_call_status_req_msg_v01,
  5048. wfc_call_active),
  5049. },
  5050. {
  5051. .data_type = QMI_OPT_FLAG,
  5052. .elem_len = 1,
  5053. .elem_size = sizeof(u8),
  5054. .array_type = NO_ARRAY,
  5055. .tlv_type = 0x11,
  5056. .offset = offsetof(struct
  5057. wlfw_wfc_call_status_req_msg_v01,
  5058. all_wfc_calls_held_valid),
  5059. },
  5060. {
  5061. .data_type = QMI_UNSIGNED_1_BYTE,
  5062. .elem_len = 1,
  5063. .elem_size = sizeof(u8),
  5064. .array_type = NO_ARRAY,
  5065. .tlv_type = 0x11,
  5066. .offset = offsetof(struct
  5067. wlfw_wfc_call_status_req_msg_v01,
  5068. all_wfc_calls_held),
  5069. },
  5070. {
  5071. .data_type = QMI_OPT_FLAG,
  5072. .elem_len = 1,
  5073. .elem_size = sizeof(u8),
  5074. .array_type = NO_ARRAY,
  5075. .tlv_type = 0x12,
  5076. .offset = offsetof(struct
  5077. wlfw_wfc_call_status_req_msg_v01,
  5078. is_wfc_emergency_valid),
  5079. },
  5080. {
  5081. .data_type = QMI_UNSIGNED_1_BYTE,
  5082. .elem_len = 1,
  5083. .elem_size = sizeof(u8),
  5084. .array_type = NO_ARRAY,
  5085. .tlv_type = 0x12,
  5086. .offset = offsetof(struct
  5087. wlfw_wfc_call_status_req_msg_v01,
  5088. is_wfc_emergency),
  5089. },
  5090. {
  5091. .data_type = QMI_OPT_FLAG,
  5092. .elem_len = 1,
  5093. .elem_size = sizeof(u8),
  5094. .array_type = NO_ARRAY,
  5095. .tlv_type = 0x13,
  5096. .offset = offsetof(struct
  5097. wlfw_wfc_call_status_req_msg_v01,
  5098. twt_ims_start_valid),
  5099. },
  5100. {
  5101. .data_type = QMI_UNSIGNED_8_BYTE,
  5102. .elem_len = 1,
  5103. .elem_size = sizeof(u64),
  5104. .array_type = NO_ARRAY,
  5105. .tlv_type = 0x13,
  5106. .offset = offsetof(struct
  5107. wlfw_wfc_call_status_req_msg_v01,
  5108. twt_ims_start),
  5109. },
  5110. {
  5111. .data_type = QMI_OPT_FLAG,
  5112. .elem_len = 1,
  5113. .elem_size = sizeof(u8),
  5114. .array_type = NO_ARRAY,
  5115. .tlv_type = 0x14,
  5116. .offset = offsetof(struct
  5117. wlfw_wfc_call_status_req_msg_v01,
  5118. twt_ims_int_valid),
  5119. },
  5120. {
  5121. .data_type = QMI_UNSIGNED_2_BYTE,
  5122. .elem_len = 1,
  5123. .elem_size = sizeof(u16),
  5124. .array_type = NO_ARRAY,
  5125. .tlv_type = 0x14,
  5126. .offset = offsetof(struct
  5127. wlfw_wfc_call_status_req_msg_v01,
  5128. twt_ims_int),
  5129. },
  5130. {
  5131. .data_type = QMI_OPT_FLAG,
  5132. .elem_len = 1,
  5133. .elem_size = sizeof(u8),
  5134. .array_type = NO_ARRAY,
  5135. .tlv_type = 0x15,
  5136. .offset = offsetof(struct
  5137. wlfw_wfc_call_status_req_msg_v01,
  5138. media_quality_valid),
  5139. },
  5140. {
  5141. .data_type = QMI_SIGNED_4_BYTE_ENUM,
  5142. .elem_len = 1,
  5143. .elem_size = sizeof(enum wlfw_wfc_media_quality_v01),
  5144. .array_type = NO_ARRAY,
  5145. .tlv_type = 0x15,
  5146. .offset = offsetof(struct
  5147. wlfw_wfc_call_status_req_msg_v01,
  5148. media_quality),
  5149. },
  5150. {
  5151. .data_type = QMI_EOTI,
  5152. .array_type = NO_ARRAY,
  5153. .tlv_type = QMI_COMMON_TLV_TYPE,
  5154. },
  5155. };
  5156. EXPORT_SYMBOL(wlfw_wfc_call_status_req_msg_v01_ei);
  5157. struct qmi_elem_info wlfw_wfc_call_status_resp_msg_v01_ei[] = {
  5158. {
  5159. .data_type = QMI_STRUCT,
  5160. .elem_len = 1,
  5161. .elem_size = sizeof(struct qmi_response_type_v01),
  5162. .array_type = NO_ARRAY,
  5163. .tlv_type = 0x02,
  5164. .offset = offsetof(struct
  5165. wlfw_wfc_call_status_resp_msg_v01,
  5166. resp),
  5167. .ei_array = qmi_response_type_v01_ei,
  5168. },
  5169. {
  5170. .data_type = QMI_EOTI,
  5171. .array_type = NO_ARRAY,
  5172. .tlv_type = QMI_COMMON_TLV_TYPE,
  5173. },
  5174. };
  5175. EXPORT_SYMBOL(wlfw_wfc_call_status_resp_msg_v01_ei);
  5176. struct qmi_elem_info wlfw_get_info_req_msg_v01_ei[] = {
  5177. {
  5178. .data_type = QMI_UNSIGNED_1_BYTE,
  5179. .elem_len = 1,
  5180. .elem_size = sizeof(u8),
  5181. .array_type = NO_ARRAY,
  5182. .tlv_type = 0x01,
  5183. .offset = offsetof(struct
  5184. wlfw_get_info_req_msg_v01,
  5185. type),
  5186. },
  5187. {
  5188. .data_type = QMI_DATA_LEN,
  5189. .elem_len = 1,
  5190. .elem_size = sizeof(u16),
  5191. .array_type = NO_ARRAY,
  5192. .tlv_type = 0x02,
  5193. .offset = offsetof(struct
  5194. wlfw_get_info_req_msg_v01,
  5195. data_len),
  5196. },
  5197. {
  5198. .data_type = QMI_UNSIGNED_1_BYTE,
  5199. .elem_len = QMI_WLFW_MAX_DATA_SIZE_V01,
  5200. .elem_size = sizeof(u8),
  5201. .array_type = VAR_LEN_ARRAY,
  5202. .tlv_type = 0x02,
  5203. .offset = offsetof(struct
  5204. wlfw_get_info_req_msg_v01,
  5205. data),
  5206. },
  5207. {
  5208. .data_type = QMI_EOTI,
  5209. .array_type = NO_ARRAY,
  5210. .tlv_type = QMI_COMMON_TLV_TYPE,
  5211. },
  5212. };
  5213. EXPORT_SYMBOL(wlfw_get_info_req_msg_v01_ei);
  5214. struct qmi_elem_info wlfw_get_info_resp_msg_v01_ei[] = {
  5215. {
  5216. .data_type = QMI_STRUCT,
  5217. .elem_len = 1,
  5218. .elem_size = sizeof(struct qmi_response_type_v01),
  5219. .array_type = NO_ARRAY,
  5220. .tlv_type = 0x02,
  5221. .offset = offsetof(struct
  5222. wlfw_get_info_resp_msg_v01,
  5223. resp),
  5224. .ei_array = qmi_response_type_v01_ei,
  5225. },
  5226. {
  5227. .data_type = QMI_EOTI,
  5228. .array_type = NO_ARRAY,
  5229. .tlv_type = QMI_COMMON_TLV_TYPE,
  5230. },
  5231. };
  5232. EXPORT_SYMBOL(wlfw_get_info_resp_msg_v01_ei);
  5233. struct qmi_elem_info wlfw_respond_get_info_ind_msg_v01_ei[] = {
  5234. {
  5235. .data_type = QMI_DATA_LEN,
  5236. .elem_len = 1,
  5237. .elem_size = sizeof(u16),
  5238. .array_type = NO_ARRAY,
  5239. .tlv_type = 0x01,
  5240. .offset = offsetof(struct
  5241. wlfw_respond_get_info_ind_msg_v01,
  5242. data_len),
  5243. },
  5244. {
  5245. .data_type = QMI_UNSIGNED_1_BYTE,
  5246. .elem_len = QMI_WLFW_MAX_DATA_SIZE_V01,
  5247. .elem_size = sizeof(u8),
  5248. .array_type = VAR_LEN_ARRAY,
  5249. .tlv_type = 0x01,
  5250. .offset = offsetof(struct
  5251. wlfw_respond_get_info_ind_msg_v01,
  5252. data),
  5253. },
  5254. {
  5255. .data_type = QMI_OPT_FLAG,
  5256. .elem_len = 1,
  5257. .elem_size = sizeof(u8),
  5258. .array_type = NO_ARRAY,
  5259. .tlv_type = 0x10,
  5260. .offset = offsetof(struct
  5261. wlfw_respond_get_info_ind_msg_v01,
  5262. type_valid),
  5263. },
  5264. {
  5265. .data_type = QMI_UNSIGNED_1_BYTE,
  5266. .elem_len = 1,
  5267. .elem_size = sizeof(u8),
  5268. .array_type = NO_ARRAY,
  5269. .tlv_type = 0x10,
  5270. .offset = offsetof(struct
  5271. wlfw_respond_get_info_ind_msg_v01,
  5272. type),
  5273. },
  5274. {
  5275. .data_type = QMI_OPT_FLAG,
  5276. .elem_len = 1,
  5277. .elem_size = sizeof(u8),
  5278. .array_type = NO_ARRAY,
  5279. .tlv_type = 0x11,
  5280. .offset = offsetof(struct
  5281. wlfw_respond_get_info_ind_msg_v01,
  5282. is_last_valid),
  5283. },
  5284. {
  5285. .data_type = QMI_UNSIGNED_1_BYTE,
  5286. .elem_len = 1,
  5287. .elem_size = sizeof(u8),
  5288. .array_type = NO_ARRAY,
  5289. .tlv_type = 0x11,
  5290. .offset = offsetof(struct
  5291. wlfw_respond_get_info_ind_msg_v01,
  5292. is_last),
  5293. },
  5294. {
  5295. .data_type = QMI_OPT_FLAG,
  5296. .elem_len = 1,
  5297. .elem_size = sizeof(u8),
  5298. .array_type = NO_ARRAY,
  5299. .tlv_type = 0x12,
  5300. .offset = offsetof(struct
  5301. wlfw_respond_get_info_ind_msg_v01,
  5302. seq_no_valid),
  5303. },
  5304. {
  5305. .data_type = QMI_UNSIGNED_4_BYTE,
  5306. .elem_len = 1,
  5307. .elem_size = sizeof(u32),
  5308. .array_type = NO_ARRAY,
  5309. .tlv_type = 0x12,
  5310. .offset = offsetof(struct
  5311. wlfw_respond_get_info_ind_msg_v01,
  5312. seq_no),
  5313. },
  5314. {
  5315. .data_type = QMI_EOTI,
  5316. .array_type = NO_ARRAY,
  5317. .tlv_type = QMI_COMMON_TLV_TYPE,
  5318. },
  5319. };
  5320. EXPORT_SYMBOL(wlfw_respond_get_info_ind_msg_v01_ei);
  5321. struct qmi_elem_info wlfw_device_info_req_msg_v01_ei[] = {
  5322. {
  5323. .data_type = QMI_EOTI,
  5324. .array_type = NO_ARRAY,
  5325. .tlv_type = QMI_COMMON_TLV_TYPE,
  5326. },
  5327. };
  5328. EXPORT_SYMBOL(wlfw_device_info_req_msg_v01_ei);
  5329. struct qmi_elem_info wlfw_device_info_resp_msg_v01_ei[] = {
  5330. {
  5331. .data_type = QMI_STRUCT,
  5332. .elem_len = 1,
  5333. .elem_size = sizeof(struct qmi_response_type_v01),
  5334. .array_type = NO_ARRAY,
  5335. .tlv_type = 0x02,
  5336. .offset = offsetof(struct
  5337. wlfw_device_info_resp_msg_v01,
  5338. resp),
  5339. .ei_array = qmi_response_type_v01_ei,
  5340. },
  5341. {
  5342. .data_type = QMI_OPT_FLAG,
  5343. .elem_len = 1,
  5344. .elem_size = sizeof(u8),
  5345. .array_type = NO_ARRAY,
  5346. .tlv_type = 0x10,
  5347. .offset = offsetof(struct
  5348. wlfw_device_info_resp_msg_v01,
  5349. bar_addr_valid),
  5350. },
  5351. {
  5352. .data_type = QMI_UNSIGNED_8_BYTE,
  5353. .elem_len = 1,
  5354. .elem_size = sizeof(u64),
  5355. .array_type = NO_ARRAY,
  5356. .tlv_type = 0x10,
  5357. .offset = offsetof(struct
  5358. wlfw_device_info_resp_msg_v01,
  5359. bar_addr),
  5360. },
  5361. {
  5362. .data_type = QMI_OPT_FLAG,
  5363. .elem_len = 1,
  5364. .elem_size = sizeof(u8),
  5365. .array_type = NO_ARRAY,
  5366. .tlv_type = 0x11,
  5367. .offset = offsetof(struct
  5368. wlfw_device_info_resp_msg_v01,
  5369. bar_size_valid),
  5370. },
  5371. {
  5372. .data_type = QMI_UNSIGNED_4_BYTE,
  5373. .elem_len = 1,
  5374. .elem_size = sizeof(u32),
  5375. .array_type = NO_ARRAY,
  5376. .tlv_type = 0x11,
  5377. .offset = offsetof(struct
  5378. wlfw_device_info_resp_msg_v01,
  5379. bar_size),
  5380. },
  5381. {
  5382. .data_type = QMI_OPT_FLAG,
  5383. .elem_len = 1,
  5384. .elem_size = sizeof(u8),
  5385. .array_type = NO_ARRAY,
  5386. .tlv_type = 0x12,
  5387. .offset = offsetof(struct
  5388. wlfw_device_info_resp_msg_v01,
  5389. mhi_state_info_addr_valid),
  5390. },
  5391. {
  5392. .data_type = QMI_UNSIGNED_8_BYTE,
  5393. .elem_len = 1,
  5394. .elem_size = sizeof(u64),
  5395. .array_type = NO_ARRAY,
  5396. .tlv_type = 0x12,
  5397. .offset = offsetof(struct
  5398. wlfw_device_info_resp_msg_v01,
  5399. mhi_state_info_addr),
  5400. },
  5401. {
  5402. .data_type = QMI_OPT_FLAG,
  5403. .elem_len = 1,
  5404. .elem_size = sizeof(u8),
  5405. .array_type = NO_ARRAY,
  5406. .tlv_type = 0x13,
  5407. .offset = offsetof(struct
  5408. wlfw_device_info_resp_msg_v01,
  5409. mhi_state_info_size_valid),
  5410. },
  5411. {
  5412. .data_type = QMI_UNSIGNED_4_BYTE,
  5413. .elem_len = 1,
  5414. .elem_size = sizeof(u32),
  5415. .array_type = NO_ARRAY,
  5416. .tlv_type = 0x13,
  5417. .offset = offsetof(struct
  5418. wlfw_device_info_resp_msg_v01,
  5419. mhi_state_info_size),
  5420. },
  5421. {
  5422. .data_type = QMI_EOTI,
  5423. .array_type = NO_ARRAY,
  5424. .tlv_type = QMI_COMMON_TLV_TYPE,
  5425. },
  5426. };
  5427. EXPORT_SYMBOL(wlfw_device_info_resp_msg_v01_ei);
  5428. struct qmi_elem_info wlfw_m3_dump_upload_req_ind_msg_v01_ei[] = {
  5429. {
  5430. .data_type = QMI_UNSIGNED_4_BYTE,
  5431. .elem_len = 1,
  5432. .elem_size = sizeof(u32),
  5433. .array_type = NO_ARRAY,
  5434. .tlv_type = 0x01,
  5435. .offset = offsetof(struct
  5436. wlfw_m3_dump_upload_req_ind_msg_v01,
  5437. pdev_id),
  5438. },
  5439. {
  5440. .data_type = QMI_UNSIGNED_8_BYTE,
  5441. .elem_len = 1,
  5442. .elem_size = sizeof(u64),
  5443. .array_type = NO_ARRAY,
  5444. .tlv_type = 0x02,
  5445. .offset = offsetof(struct
  5446. wlfw_m3_dump_upload_req_ind_msg_v01,
  5447. addr),
  5448. },
  5449. {
  5450. .data_type = QMI_UNSIGNED_8_BYTE,
  5451. .elem_len = 1,
  5452. .elem_size = sizeof(u64),
  5453. .array_type = NO_ARRAY,
  5454. .tlv_type = 0x03,
  5455. .offset = offsetof(struct
  5456. wlfw_m3_dump_upload_req_ind_msg_v01,
  5457. size),
  5458. },
  5459. {
  5460. .data_type = QMI_EOTI,
  5461. .array_type = NO_ARRAY,
  5462. .tlv_type = QMI_COMMON_TLV_TYPE,
  5463. },
  5464. };
  5465. EXPORT_SYMBOL(wlfw_m3_dump_upload_req_ind_msg_v01_ei);
  5466. struct qmi_elem_info wlfw_m3_dump_upload_done_req_msg_v01_ei[] = {
  5467. {
  5468. .data_type = QMI_UNSIGNED_4_BYTE,
  5469. .elem_len = 1,
  5470. .elem_size = sizeof(u32),
  5471. .array_type = NO_ARRAY,
  5472. .tlv_type = 0x01,
  5473. .offset = offsetof(struct
  5474. wlfw_m3_dump_upload_done_req_msg_v01,
  5475. pdev_id),
  5476. },
  5477. {
  5478. .data_type = QMI_UNSIGNED_4_BYTE,
  5479. .elem_len = 1,
  5480. .elem_size = sizeof(u32),
  5481. .array_type = NO_ARRAY,
  5482. .tlv_type = 0x02,
  5483. .offset = offsetof(struct
  5484. wlfw_m3_dump_upload_done_req_msg_v01,
  5485. status),
  5486. },
  5487. {
  5488. .data_type = QMI_EOTI,
  5489. .array_type = NO_ARRAY,
  5490. .tlv_type = QMI_COMMON_TLV_TYPE,
  5491. },
  5492. };
  5493. EXPORT_SYMBOL(wlfw_m3_dump_upload_done_req_msg_v01_ei);
  5494. struct qmi_elem_info wlfw_m3_dump_upload_done_resp_msg_v01_ei[] = {
  5495. {
  5496. .data_type = QMI_STRUCT,
  5497. .elem_len = 1,
  5498. .elem_size = sizeof(struct qmi_response_type_v01),
  5499. .array_type = NO_ARRAY,
  5500. .tlv_type = 0x02,
  5501. .offset = offsetof(struct
  5502. wlfw_m3_dump_upload_done_resp_msg_v01,
  5503. resp),
  5504. .ei_array = qmi_response_type_v01_ei,
  5505. },
  5506. {
  5507. .data_type = QMI_EOTI,
  5508. .array_type = NO_ARRAY,
  5509. .tlv_type = QMI_COMMON_TLV_TYPE,
  5510. },
  5511. };
  5512. EXPORT_SYMBOL(wlfw_m3_dump_upload_done_resp_msg_v01_ei);
  5513. struct qmi_elem_info wlfw_soc_wake_req_msg_v01_ei[] = {
  5514. {
  5515. .data_type = QMI_OPT_FLAG,
  5516. .elem_len = 1,
  5517. .elem_size = sizeof(u8),
  5518. .array_type = NO_ARRAY,
  5519. .tlv_type = 0x10,
  5520. .offset = offsetof(struct
  5521. wlfw_soc_wake_req_msg_v01,
  5522. wake_valid),
  5523. },
  5524. {
  5525. .data_type = QMI_SIGNED_4_BYTE_ENUM,
  5526. .elem_len = 1,
  5527. .elem_size = sizeof(enum wlfw_soc_wake_enum_v01),
  5528. .array_type = NO_ARRAY,
  5529. .tlv_type = 0x10,
  5530. .offset = offsetof(struct
  5531. wlfw_soc_wake_req_msg_v01,
  5532. wake),
  5533. },
  5534. {
  5535. .data_type = QMI_EOTI,
  5536. .array_type = NO_ARRAY,
  5537. .tlv_type = QMI_COMMON_TLV_TYPE,
  5538. },
  5539. };
  5540. EXPORT_SYMBOL(wlfw_soc_wake_req_msg_v01_ei);
  5541. struct qmi_elem_info wlfw_soc_wake_resp_msg_v01_ei[] = {
  5542. {
  5543. .data_type = QMI_STRUCT,
  5544. .elem_len = 1,
  5545. .elem_size = sizeof(struct qmi_response_type_v01),
  5546. .array_type = NO_ARRAY,
  5547. .tlv_type = 0x02,
  5548. .offset = offsetof(struct
  5549. wlfw_soc_wake_resp_msg_v01,
  5550. resp),
  5551. .ei_array = qmi_response_type_v01_ei,
  5552. },
  5553. {
  5554. .data_type = QMI_EOTI,
  5555. .array_type = NO_ARRAY,
  5556. .tlv_type = QMI_COMMON_TLV_TYPE,
  5557. },
  5558. };
  5559. EXPORT_SYMBOL(wlfw_soc_wake_resp_msg_v01_ei);
  5560. struct qmi_elem_info wlfw_power_save_req_msg_v01_ei[] = {
  5561. {
  5562. .data_type = QMI_OPT_FLAG,
  5563. .elem_len = 1,
  5564. .elem_size = sizeof(u8),
  5565. .array_type = NO_ARRAY,
  5566. .tlv_type = 0x10,
  5567. .offset = offsetof(struct
  5568. wlfw_power_save_req_msg_v01,
  5569. power_save_mode_valid),
  5570. },
  5571. {
  5572. .data_type = QMI_SIGNED_4_BYTE_ENUM,
  5573. .elem_len = 1,
  5574. .elem_size = sizeof(enum wlfw_power_save_mode_v01),
  5575. .array_type = NO_ARRAY,
  5576. .tlv_type = 0x10,
  5577. .offset = offsetof(struct
  5578. wlfw_power_save_req_msg_v01,
  5579. power_save_mode),
  5580. },
  5581. {
  5582. .data_type = QMI_EOTI,
  5583. .array_type = NO_ARRAY,
  5584. .tlv_type = QMI_COMMON_TLV_TYPE,
  5585. },
  5586. };
  5587. EXPORT_SYMBOL(wlfw_power_save_req_msg_v01_ei);
  5588. struct qmi_elem_info wlfw_power_save_resp_msg_v01_ei[] = {
  5589. {
  5590. .data_type = QMI_STRUCT,
  5591. .elem_len = 1,
  5592. .elem_size = sizeof(struct qmi_response_type_v01),
  5593. .array_type = NO_ARRAY,
  5594. .tlv_type = 0x02,
  5595. .offset = offsetof(struct
  5596. wlfw_power_save_resp_msg_v01,
  5597. resp),
  5598. .ei_array = qmi_response_type_v01_ei,
  5599. },
  5600. {
  5601. .data_type = QMI_EOTI,
  5602. .array_type = NO_ARRAY,
  5603. .tlv_type = QMI_COMMON_TLV_TYPE,
  5604. },
  5605. };
  5606. EXPORT_SYMBOL(wlfw_power_save_resp_msg_v01_ei);
  5607. struct qmi_elem_info wlfw_wfc_call_twt_config_ind_msg_v01_ei[] = {
  5608. {
  5609. .data_type = QMI_OPT_FLAG,
  5610. .elem_len = 1,
  5611. .elem_size = sizeof(u8),
  5612. .array_type = NO_ARRAY,
  5613. .tlv_type = 0x10,
  5614. .offset = offsetof(struct
  5615. wlfw_wfc_call_twt_config_ind_msg_v01,
  5616. twt_sta_start_valid),
  5617. },
  5618. {
  5619. .data_type = QMI_UNSIGNED_8_BYTE,
  5620. .elem_len = 1,
  5621. .elem_size = sizeof(u64),
  5622. .array_type = NO_ARRAY,
  5623. .tlv_type = 0x10,
  5624. .offset = offsetof(struct
  5625. wlfw_wfc_call_twt_config_ind_msg_v01,
  5626. twt_sta_start),
  5627. },
  5628. {
  5629. .data_type = QMI_OPT_FLAG,
  5630. .elem_len = 1,
  5631. .elem_size = sizeof(u8),
  5632. .array_type = NO_ARRAY,
  5633. .tlv_type = 0x11,
  5634. .offset = offsetof(struct
  5635. wlfw_wfc_call_twt_config_ind_msg_v01,
  5636. twt_sta_int_valid),
  5637. },
  5638. {
  5639. .data_type = QMI_UNSIGNED_2_BYTE,
  5640. .elem_len = 1,
  5641. .elem_size = sizeof(u16),
  5642. .array_type = NO_ARRAY,
  5643. .tlv_type = 0x11,
  5644. .offset = offsetof(struct
  5645. wlfw_wfc_call_twt_config_ind_msg_v01,
  5646. twt_sta_int),
  5647. },
  5648. {
  5649. .data_type = QMI_OPT_FLAG,
  5650. .elem_len = 1,
  5651. .elem_size = sizeof(u8),
  5652. .array_type = NO_ARRAY,
  5653. .tlv_type = 0x12,
  5654. .offset = offsetof(struct
  5655. wlfw_wfc_call_twt_config_ind_msg_v01,
  5656. twt_sta_upo_valid),
  5657. },
  5658. {
  5659. .data_type = QMI_UNSIGNED_2_BYTE,
  5660. .elem_len = 1,
  5661. .elem_size = sizeof(u16),
  5662. .array_type = NO_ARRAY,
  5663. .tlv_type = 0x12,
  5664. .offset = offsetof(struct
  5665. wlfw_wfc_call_twt_config_ind_msg_v01,
  5666. twt_sta_upo),
  5667. },
  5668. {
  5669. .data_type = QMI_OPT_FLAG,
  5670. .elem_len = 1,
  5671. .elem_size = sizeof(u8),
  5672. .array_type = NO_ARRAY,
  5673. .tlv_type = 0x13,
  5674. .offset = offsetof(struct
  5675. wlfw_wfc_call_twt_config_ind_msg_v01,
  5676. twt_sta_sp_valid),
  5677. },
  5678. {
  5679. .data_type = QMI_UNSIGNED_2_BYTE,
  5680. .elem_len = 1,
  5681. .elem_size = sizeof(u16),
  5682. .array_type = NO_ARRAY,
  5683. .tlv_type = 0x13,
  5684. .offset = offsetof(struct
  5685. wlfw_wfc_call_twt_config_ind_msg_v01,
  5686. twt_sta_sp),
  5687. },
  5688. {
  5689. .data_type = QMI_OPT_FLAG,
  5690. .elem_len = 1,
  5691. .elem_size = sizeof(u8),
  5692. .array_type = NO_ARRAY,
  5693. .tlv_type = 0x14,
  5694. .offset = offsetof(struct
  5695. wlfw_wfc_call_twt_config_ind_msg_v01,
  5696. twt_sta_dl_valid),
  5697. },
  5698. {
  5699. .data_type = QMI_UNSIGNED_2_BYTE,
  5700. .elem_len = 1,
  5701. .elem_size = sizeof(u16),
  5702. .array_type = NO_ARRAY,
  5703. .tlv_type = 0x14,
  5704. .offset = offsetof(struct
  5705. wlfw_wfc_call_twt_config_ind_msg_v01,
  5706. twt_sta_dl),
  5707. },
  5708. {
  5709. .data_type = QMI_OPT_FLAG,
  5710. .elem_len = 1,
  5711. .elem_size = sizeof(u8),
  5712. .array_type = NO_ARRAY,
  5713. .tlv_type = 0x15,
  5714. .offset = offsetof(struct
  5715. wlfw_wfc_call_twt_config_ind_msg_v01,
  5716. twt_sta_config_changed_valid),
  5717. },
  5718. {
  5719. .data_type = QMI_UNSIGNED_1_BYTE,
  5720. .elem_len = 1,
  5721. .elem_size = sizeof(u8),
  5722. .array_type = NO_ARRAY,
  5723. .tlv_type = 0x15,
  5724. .offset = offsetof(struct
  5725. wlfw_wfc_call_twt_config_ind_msg_v01,
  5726. twt_sta_config_changed),
  5727. },
  5728. {
  5729. .data_type = QMI_EOTI,
  5730. .array_type = NO_ARRAY,
  5731. .tlv_type = QMI_COMMON_TLV_TYPE,
  5732. },
  5733. };
  5734. EXPORT_SYMBOL(wlfw_wfc_call_twt_config_ind_msg_v01_ei);
  5735. struct qmi_elem_info wlfw_qdss_mem_ready_ind_msg_v01_ei[] = {
  5736. {
  5737. .data_type = QMI_EOTI,
  5738. .array_type = NO_ARRAY,
  5739. .tlv_type = QMI_COMMON_TLV_TYPE,
  5740. },
  5741. };
  5742. EXPORT_SYMBOL(wlfw_qdss_mem_ready_ind_msg_v01_ei);
  5743. struct qmi_elem_info wlfw_pcie_gen_switch_req_msg_v01_ei[] = {
  5744. {
  5745. .data_type = QMI_SIGNED_4_BYTE_ENUM,
  5746. .elem_len = 1,
  5747. .elem_size = sizeof(enum wlfw_pcie_gen_speed_v01),
  5748. .array_type = NO_ARRAY,
  5749. .tlv_type = 0x01,
  5750. .offset = offsetof(struct
  5751. wlfw_pcie_gen_switch_req_msg_v01,
  5752. pcie_speed),
  5753. },
  5754. {
  5755. .data_type = QMI_EOTI,
  5756. .array_type = NO_ARRAY,
  5757. .tlv_type = QMI_COMMON_TLV_TYPE,
  5758. },
  5759. };
  5760. EXPORT_SYMBOL(wlfw_pcie_gen_switch_req_msg_v01_ei);
  5761. struct qmi_elem_info wlfw_pcie_gen_switch_resp_msg_v01_ei[] = {
  5762. {
  5763. .data_type = QMI_STRUCT,
  5764. .elem_len = 1,
  5765. .elem_size = sizeof(struct qmi_response_type_v01),
  5766. .array_type = NO_ARRAY,
  5767. .tlv_type = 0x02,
  5768. .offset = offsetof(struct
  5769. wlfw_pcie_gen_switch_resp_msg_v01,
  5770. resp),
  5771. .ei_array = qmi_response_type_v01_ei,
  5772. },
  5773. {
  5774. .data_type = QMI_EOTI,
  5775. .array_type = NO_ARRAY,
  5776. .tlv_type = QMI_COMMON_TLV_TYPE,
  5777. },
  5778. };
  5779. EXPORT_SYMBOL(wlfw_pcie_gen_switch_resp_msg_v01_ei);
  5780. struct qmi_elem_info wlfw_m3_dump_upload_segments_req_ind_msg_v01_ei[] = {
  5781. {
  5782. .data_type = QMI_UNSIGNED_4_BYTE,
  5783. .elem_len = 1,
  5784. .elem_size = sizeof(u32),
  5785. .array_type = NO_ARRAY,
  5786. .tlv_type = 0x01,
  5787. .offset = offsetof(struct
  5788. wlfw_m3_dump_upload_segments_req_ind_msg_v01,
  5789. pdev_id),
  5790. },
  5791. {
  5792. .data_type = QMI_UNSIGNED_4_BYTE,
  5793. .elem_len = 1,
  5794. .elem_size = sizeof(u32),
  5795. .array_type = NO_ARRAY,
  5796. .tlv_type = 0x02,
  5797. .offset = offsetof(struct
  5798. wlfw_m3_dump_upload_segments_req_ind_msg_v01,
  5799. no_of_valid_segments),
  5800. },
  5801. {
  5802. .data_type = QMI_STRUCT,
  5803. .elem_len = QMI_WLFW_MAX_M3_SEGMENTS_SIZE_V01,
  5804. .elem_size = sizeof(struct wlfw_m3_segment_info_s_v01),
  5805. .array_type = STATIC_ARRAY,
  5806. .tlv_type = 0x03,
  5807. .offset = offsetof(struct
  5808. wlfw_m3_dump_upload_segments_req_ind_msg_v01,
  5809. m3_segment),
  5810. .ei_array = wlfw_m3_segment_info_s_v01_ei,
  5811. },
  5812. {
  5813. .data_type = QMI_EOTI,
  5814. .array_type = NO_ARRAY,
  5815. .tlv_type = QMI_COMMON_TLV_TYPE,
  5816. },
  5817. };
  5818. EXPORT_SYMBOL(wlfw_m3_dump_upload_segments_req_ind_msg_v01_ei);
  5819. struct qmi_elem_info wlfw_subsys_restart_level_req_msg_v01_ei[] = {
  5820. {
  5821. .data_type = QMI_OPT_FLAG,
  5822. .elem_len = 1,
  5823. .elem_size = sizeof(u8),
  5824. .array_type = NO_ARRAY,
  5825. .tlv_type = 0x10,
  5826. .offset = offsetof(struct
  5827. wlfw_subsys_restart_level_req_msg_v01,
  5828. restart_level_type_valid),
  5829. },
  5830. {
  5831. .data_type = QMI_UNSIGNED_1_BYTE,
  5832. .elem_len = 1,
  5833. .elem_size = sizeof(u8),
  5834. .array_type = NO_ARRAY,
  5835. .tlv_type = 0x10,
  5836. .offset = offsetof(struct
  5837. wlfw_subsys_restart_level_req_msg_v01,
  5838. restart_level_type),
  5839. },
  5840. {
  5841. .data_type = QMI_EOTI,
  5842. .array_type = NO_ARRAY,
  5843. .tlv_type = QMI_COMMON_TLV_TYPE,
  5844. },
  5845. };
  5846. EXPORT_SYMBOL(wlfw_subsys_restart_level_req_msg_v01_ei);
  5847. struct qmi_elem_info wlfw_subsys_restart_level_resp_msg_v01_ei[] = {
  5848. {
  5849. .data_type = QMI_STRUCT,
  5850. .elem_len = 1,
  5851. .elem_size = sizeof(struct qmi_response_type_v01),
  5852. .array_type = NO_ARRAY,
  5853. .tlv_type = 0x02,
  5854. .offset = offsetof(struct
  5855. wlfw_subsys_restart_level_resp_msg_v01,
  5856. resp),
  5857. .ei_array = qmi_response_type_v01_ei,
  5858. },
  5859. {
  5860. .data_type = QMI_EOTI,
  5861. .array_type = NO_ARRAY,
  5862. .tlv_type = QMI_COMMON_TLV_TYPE,
  5863. },
  5864. };
  5865. EXPORT_SYMBOL(wlfw_subsys_restart_level_resp_msg_v01_ei);
  5866. struct qmi_elem_info wlfw_ini_file_download_req_msg_v01_ei[] = {
  5867. {
  5868. .data_type = QMI_OPT_FLAG,
  5869. .elem_len = 1,
  5870. .elem_size = sizeof(u8),
  5871. .array_type = NO_ARRAY,
  5872. .tlv_type = 0x10,
  5873. .offset = offsetof(struct
  5874. wlfw_ini_file_download_req_msg_v01,
  5875. file_type_valid),
  5876. },
  5877. {
  5878. .data_type = QMI_SIGNED_4_BYTE_ENUM,
  5879. .elem_len = 1,
  5880. .elem_size = sizeof(enum wlfw_ini_file_type_v01),
  5881. .array_type = NO_ARRAY,
  5882. .tlv_type = 0x10,
  5883. .offset = offsetof(struct
  5884. wlfw_ini_file_download_req_msg_v01,
  5885. file_type),
  5886. },
  5887. {
  5888. .data_type = QMI_OPT_FLAG,
  5889. .elem_len = 1,
  5890. .elem_size = sizeof(u8),
  5891. .array_type = NO_ARRAY,
  5892. .tlv_type = 0x11,
  5893. .offset = offsetof(struct
  5894. wlfw_ini_file_download_req_msg_v01,
  5895. total_size_valid),
  5896. },
  5897. {
  5898. .data_type = QMI_UNSIGNED_4_BYTE,
  5899. .elem_len = 1,
  5900. .elem_size = sizeof(u32),
  5901. .array_type = NO_ARRAY,
  5902. .tlv_type = 0x11,
  5903. .offset = offsetof(struct
  5904. wlfw_ini_file_download_req_msg_v01,
  5905. total_size),
  5906. },
  5907. {
  5908. .data_type = QMI_OPT_FLAG,
  5909. .elem_len = 1,
  5910. .elem_size = sizeof(u8),
  5911. .array_type = NO_ARRAY,
  5912. .tlv_type = 0x12,
  5913. .offset = offsetof(struct
  5914. wlfw_ini_file_download_req_msg_v01,
  5915. seg_id_valid),
  5916. },
  5917. {
  5918. .data_type = QMI_UNSIGNED_4_BYTE,
  5919. .elem_len = 1,
  5920. .elem_size = sizeof(u32),
  5921. .array_type = NO_ARRAY,
  5922. .tlv_type = 0x12,
  5923. .offset = offsetof(struct
  5924. wlfw_ini_file_download_req_msg_v01,
  5925. seg_id),
  5926. },
  5927. {
  5928. .data_type = QMI_OPT_FLAG,
  5929. .elem_len = 1,
  5930. .elem_size = sizeof(u8),
  5931. .array_type = NO_ARRAY,
  5932. .tlv_type = 0x13,
  5933. .offset = offsetof(struct
  5934. wlfw_ini_file_download_req_msg_v01,
  5935. data_valid),
  5936. },
  5937. {
  5938. .data_type = QMI_DATA_LEN,
  5939. .elem_len = 1,
  5940. .elem_size = sizeof(u16),
  5941. .array_type = NO_ARRAY,
  5942. .tlv_type = 0x13,
  5943. .offset = offsetof(struct
  5944. wlfw_ini_file_download_req_msg_v01,
  5945. data_len),
  5946. },
  5947. {
  5948. .data_type = QMI_UNSIGNED_1_BYTE,
  5949. .elem_len = QMI_WLFW_MAX_DATA_SIZE_V01,
  5950. .elem_size = sizeof(u8),
  5951. .array_type = VAR_LEN_ARRAY,
  5952. .tlv_type = 0x13,
  5953. .offset = offsetof(struct
  5954. wlfw_ini_file_download_req_msg_v01,
  5955. data),
  5956. },
  5957. {
  5958. .data_type = QMI_OPT_FLAG,
  5959. .elem_len = 1,
  5960. .elem_size = sizeof(u8),
  5961. .array_type = NO_ARRAY,
  5962. .tlv_type = 0x14,
  5963. .offset = offsetof(struct
  5964. wlfw_ini_file_download_req_msg_v01,
  5965. end_valid),
  5966. },
  5967. {
  5968. .data_type = QMI_UNSIGNED_1_BYTE,
  5969. .elem_len = 1,
  5970. .elem_size = sizeof(u8),
  5971. .array_type = NO_ARRAY,
  5972. .tlv_type = 0x14,
  5973. .offset = offsetof(struct
  5974. wlfw_ini_file_download_req_msg_v01,
  5975. end),
  5976. },
  5977. {
  5978. .data_type = QMI_EOTI,
  5979. .array_type = NO_ARRAY,
  5980. .tlv_type = QMI_COMMON_TLV_TYPE,
  5981. },
  5982. };
  5983. EXPORT_SYMBOL(wlfw_ini_file_download_req_msg_v01_ei);
  5984. struct qmi_elem_info wlfw_ini_file_download_resp_msg_v01_ei[] = {
  5985. {
  5986. .data_type = QMI_STRUCT,
  5987. .elem_len = 1,
  5988. .elem_size = sizeof(struct qmi_response_type_v01),
  5989. .array_type = NO_ARRAY,
  5990. .tlv_type = 0x02,
  5991. .offset = offsetof(struct
  5992. wlfw_ini_file_download_resp_msg_v01,
  5993. resp),
  5994. .ei_array = qmi_response_type_v01_ei,
  5995. },
  5996. {
  5997. .data_type = QMI_EOTI,
  5998. .array_type = NO_ARRAY,
  5999. .tlv_type = QMI_COMMON_TLV_TYPE,
  6000. },
  6001. };
  6002. EXPORT_SYMBOL(wlfw_ini_file_download_resp_msg_v01_ei);
  6003. struct qmi_elem_info wlfw_phy_cap_req_msg_v01_ei[] = {
  6004. {
  6005. .data_type = QMI_EOTI,
  6006. .array_type = NO_ARRAY,
  6007. .tlv_type = QMI_COMMON_TLV_TYPE,
  6008. },
  6009. };
  6010. EXPORT_SYMBOL(wlfw_phy_cap_req_msg_v01_ei);
  6011. struct qmi_elem_info wlfw_phy_cap_resp_msg_v01_ei[] = {
  6012. {
  6013. .data_type = QMI_STRUCT,
  6014. .elem_len = 1,
  6015. .elem_size = sizeof(struct qmi_response_type_v01),
  6016. .array_type = NO_ARRAY,
  6017. .tlv_type = 0x02,
  6018. .offset = offsetof(struct
  6019. wlfw_phy_cap_resp_msg_v01,
  6020. resp),
  6021. .ei_array = qmi_response_type_v01_ei,
  6022. },
  6023. {
  6024. .data_type = QMI_OPT_FLAG,
  6025. .elem_len = 1,
  6026. .elem_size = sizeof(u8),
  6027. .array_type = NO_ARRAY,
  6028. .tlv_type = 0x10,
  6029. .offset = offsetof(struct
  6030. wlfw_phy_cap_resp_msg_v01,
  6031. num_phy_valid),
  6032. },
  6033. {
  6034. .data_type = QMI_UNSIGNED_1_BYTE,
  6035. .elem_len = 1,
  6036. .elem_size = sizeof(u8),
  6037. .array_type = NO_ARRAY,
  6038. .tlv_type = 0x10,
  6039. .offset = offsetof(struct
  6040. wlfw_phy_cap_resp_msg_v01,
  6041. num_phy),
  6042. },
  6043. {
  6044. .data_type = QMI_OPT_FLAG,
  6045. .elem_len = 1,
  6046. .elem_size = sizeof(u8),
  6047. .array_type = NO_ARRAY,
  6048. .tlv_type = 0x11,
  6049. .offset = offsetof(struct
  6050. wlfw_phy_cap_resp_msg_v01,
  6051. board_id_valid),
  6052. },
  6053. {
  6054. .data_type = QMI_UNSIGNED_4_BYTE,
  6055. .elem_len = 1,
  6056. .elem_size = sizeof(u32),
  6057. .array_type = NO_ARRAY,
  6058. .tlv_type = 0x11,
  6059. .offset = offsetof(struct
  6060. wlfw_phy_cap_resp_msg_v01,
  6061. board_id),
  6062. },
  6063. {
  6064. .data_type = QMI_EOTI,
  6065. .array_type = NO_ARRAY,
  6066. .tlv_type = QMI_COMMON_TLV_TYPE,
  6067. },
  6068. };
  6069. EXPORT_SYMBOL(wlfw_phy_cap_resp_msg_v01_ei);
  6070. /**
  6071. * wlfw_is_valid_dt_node_found - Check if valid device tree node present
  6072. *
  6073. * Valid device tree node means a node with "qcom,wlan" property present and
  6074. * "status" property not disabled.
  6075. *
  6076. * Return: true if valid device tree node found, false if not found
  6077. */
  6078. static bool wlfw_is_valid_dt_node_found(void)
  6079. {
  6080. struct device_node *dn = NULL;
  6081. for_each_node_with_property(dn, "qcom,wlan") {
  6082. if (of_device_is_available(dn))
  6083. break;
  6084. }
  6085. if (dn)
  6086. return true;
  6087. return false;
  6088. }
  6089. static int __init wlfw_init(void)
  6090. {
  6091. if (!wlfw_is_valid_dt_node_found())
  6092. return -ENODEV;
  6093. return 0;
  6094. }
  6095. module_init(wlfw_init);
  6096. MODULE_LICENSE("GPL v2");
  6097. MODULE_DESCRIPTION("WLAN FW QMI service");