wlan_firmware_service_v01.c 164 KB

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