wlan_firmware_service_v01.c 146 KB

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