wlan_firmware_service_v01.c 172 KB

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