wlan_firmware_service_v01.c 169 KB

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