wlan_firmware_service_v01.c 180 KB

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