wlan_firmware_service_v01.c 182 KB

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