wlan_firmware_service_v01.c 154 KB

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