wlan_firmware_service_v01.c 140 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495
  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_EOTI,
  1741. .array_type = NO_ARRAY,
  1742. .tlv_type = QMI_COMMON_TLV_TYPE,
  1743. },
  1744. };
  1745. EXPORT_SYMBOL(wlfw_cap_resp_msg_v01_ei);
  1746. struct qmi_elem_info wlfw_bdf_download_req_msg_v01_ei[] = {
  1747. {
  1748. .data_type = QMI_UNSIGNED_1_BYTE,
  1749. .elem_len = 1,
  1750. .elem_size = sizeof(u8),
  1751. .array_type = NO_ARRAY,
  1752. .tlv_type = 0x01,
  1753. .offset = offsetof(struct
  1754. wlfw_bdf_download_req_msg_v01,
  1755. valid),
  1756. },
  1757. {
  1758. .data_type = QMI_OPT_FLAG,
  1759. .elem_len = 1,
  1760. .elem_size = sizeof(u8),
  1761. .array_type = NO_ARRAY,
  1762. .tlv_type = 0x10,
  1763. .offset = offsetof(struct
  1764. wlfw_bdf_download_req_msg_v01,
  1765. file_id_valid),
  1766. },
  1767. {
  1768. .data_type = QMI_SIGNED_4_BYTE_ENUM,
  1769. .elem_len = 1,
  1770. .elem_size = sizeof(enum wlfw_cal_temp_id_enum_v01),
  1771. .array_type = NO_ARRAY,
  1772. .tlv_type = 0x10,
  1773. .offset = offsetof(struct
  1774. wlfw_bdf_download_req_msg_v01,
  1775. file_id),
  1776. },
  1777. {
  1778. .data_type = QMI_OPT_FLAG,
  1779. .elem_len = 1,
  1780. .elem_size = sizeof(u8),
  1781. .array_type = NO_ARRAY,
  1782. .tlv_type = 0x11,
  1783. .offset = offsetof(struct
  1784. wlfw_bdf_download_req_msg_v01,
  1785. total_size_valid),
  1786. },
  1787. {
  1788. .data_type = QMI_UNSIGNED_4_BYTE,
  1789. .elem_len = 1,
  1790. .elem_size = sizeof(u32),
  1791. .array_type = NO_ARRAY,
  1792. .tlv_type = 0x11,
  1793. .offset = offsetof(struct
  1794. wlfw_bdf_download_req_msg_v01,
  1795. total_size),
  1796. },
  1797. {
  1798. .data_type = QMI_OPT_FLAG,
  1799. .elem_len = 1,
  1800. .elem_size = sizeof(u8),
  1801. .array_type = NO_ARRAY,
  1802. .tlv_type = 0x12,
  1803. .offset = offsetof(struct
  1804. wlfw_bdf_download_req_msg_v01,
  1805. seg_id_valid),
  1806. },
  1807. {
  1808. .data_type = QMI_UNSIGNED_4_BYTE,
  1809. .elem_len = 1,
  1810. .elem_size = sizeof(u32),
  1811. .array_type = NO_ARRAY,
  1812. .tlv_type = 0x12,
  1813. .offset = offsetof(struct
  1814. wlfw_bdf_download_req_msg_v01,
  1815. seg_id),
  1816. },
  1817. {
  1818. .data_type = QMI_OPT_FLAG,
  1819. .elem_len = 1,
  1820. .elem_size = sizeof(u8),
  1821. .array_type = NO_ARRAY,
  1822. .tlv_type = 0x13,
  1823. .offset = offsetof(struct
  1824. wlfw_bdf_download_req_msg_v01,
  1825. data_valid),
  1826. },
  1827. {
  1828. .data_type = QMI_DATA_LEN,
  1829. .elem_len = 1,
  1830. .elem_size = sizeof(u16),
  1831. .array_type = NO_ARRAY,
  1832. .tlv_type = 0x13,
  1833. .offset = offsetof(struct
  1834. wlfw_bdf_download_req_msg_v01,
  1835. data_len),
  1836. },
  1837. {
  1838. .data_type = QMI_UNSIGNED_1_BYTE,
  1839. .elem_len = QMI_WLFW_MAX_DATA_SIZE_V01,
  1840. .elem_size = sizeof(u8),
  1841. .array_type = VAR_LEN_ARRAY,
  1842. .tlv_type = 0x13,
  1843. .offset = offsetof(struct
  1844. wlfw_bdf_download_req_msg_v01,
  1845. data),
  1846. },
  1847. {
  1848. .data_type = QMI_OPT_FLAG,
  1849. .elem_len = 1,
  1850. .elem_size = sizeof(u8),
  1851. .array_type = NO_ARRAY,
  1852. .tlv_type = 0x14,
  1853. .offset = offsetof(struct
  1854. wlfw_bdf_download_req_msg_v01,
  1855. end_valid),
  1856. },
  1857. {
  1858. .data_type = QMI_UNSIGNED_1_BYTE,
  1859. .elem_len = 1,
  1860. .elem_size = sizeof(u8),
  1861. .array_type = NO_ARRAY,
  1862. .tlv_type = 0x14,
  1863. .offset = offsetof(struct
  1864. wlfw_bdf_download_req_msg_v01,
  1865. end),
  1866. },
  1867. {
  1868. .data_type = QMI_OPT_FLAG,
  1869. .elem_len = 1,
  1870. .elem_size = sizeof(u8),
  1871. .array_type = NO_ARRAY,
  1872. .tlv_type = 0x15,
  1873. .offset = offsetof(struct
  1874. wlfw_bdf_download_req_msg_v01,
  1875. bdf_type_valid),
  1876. },
  1877. {
  1878. .data_type = QMI_UNSIGNED_1_BYTE,
  1879. .elem_len = 1,
  1880. .elem_size = sizeof(u8),
  1881. .array_type = NO_ARRAY,
  1882. .tlv_type = 0x15,
  1883. .offset = offsetof(struct
  1884. wlfw_bdf_download_req_msg_v01,
  1885. bdf_type),
  1886. },
  1887. {
  1888. .data_type = QMI_EOTI,
  1889. .array_type = NO_ARRAY,
  1890. .tlv_type = QMI_COMMON_TLV_TYPE,
  1891. },
  1892. };
  1893. EXPORT_SYMBOL(wlfw_bdf_download_req_msg_v01_ei);
  1894. struct qmi_elem_info wlfw_bdf_download_resp_msg_v01_ei[] = {
  1895. {
  1896. .data_type = QMI_STRUCT,
  1897. .elem_len = 1,
  1898. .elem_size = sizeof(struct qmi_response_type_v01),
  1899. .array_type = NO_ARRAY,
  1900. .tlv_type = 0x02,
  1901. .offset = offsetof(struct
  1902. wlfw_bdf_download_resp_msg_v01,
  1903. resp),
  1904. .ei_array = qmi_response_type_v01_ei,
  1905. },
  1906. {
  1907. .data_type = QMI_OPT_FLAG,
  1908. .elem_len = 1,
  1909. .elem_size = sizeof(u8),
  1910. .array_type = NO_ARRAY,
  1911. .tlv_type = 0x10,
  1912. .offset = offsetof(struct
  1913. wlfw_bdf_download_resp_msg_v01,
  1914. host_bdf_data_valid),
  1915. },
  1916. {
  1917. .data_type = QMI_UNSIGNED_8_BYTE,
  1918. .elem_len = 1,
  1919. .elem_size = sizeof(u64),
  1920. .array_type = NO_ARRAY,
  1921. .tlv_type = 0x10,
  1922. .offset = offsetof(struct
  1923. wlfw_bdf_download_resp_msg_v01,
  1924. host_bdf_data),
  1925. },
  1926. {
  1927. .data_type = QMI_EOTI,
  1928. .array_type = NO_ARRAY,
  1929. .tlv_type = QMI_COMMON_TLV_TYPE,
  1930. },
  1931. };
  1932. EXPORT_SYMBOL(wlfw_bdf_download_resp_msg_v01_ei);
  1933. struct qmi_elem_info wlfw_cal_report_req_msg_v01_ei[] = {
  1934. {
  1935. .data_type = QMI_DATA_LEN,
  1936. .elem_len = 1,
  1937. .elem_size = sizeof(u8),
  1938. .array_type = NO_ARRAY,
  1939. .tlv_type = 0x01,
  1940. .offset = offsetof(struct
  1941. wlfw_cal_report_req_msg_v01,
  1942. meta_data_len),
  1943. },
  1944. {
  1945. .data_type = QMI_SIGNED_4_BYTE_ENUM,
  1946. .elem_len = QMI_WLFW_MAX_NUM_CAL_V01,
  1947. .elem_size = sizeof(enum wlfw_cal_temp_id_enum_v01),
  1948. .array_type = VAR_LEN_ARRAY,
  1949. .tlv_type = 0x01,
  1950. .offset = offsetof(struct
  1951. wlfw_cal_report_req_msg_v01,
  1952. meta_data),
  1953. },
  1954. {
  1955. .data_type = QMI_OPT_FLAG,
  1956. .elem_len = 1,
  1957. .elem_size = sizeof(u8),
  1958. .array_type = NO_ARRAY,
  1959. .tlv_type = 0x10,
  1960. .offset = offsetof(struct
  1961. wlfw_cal_report_req_msg_v01,
  1962. xo_cal_data_valid),
  1963. },
  1964. {
  1965. .data_type = QMI_UNSIGNED_1_BYTE,
  1966. .elem_len = 1,
  1967. .elem_size = sizeof(u8),
  1968. .array_type = NO_ARRAY,
  1969. .tlv_type = 0x10,
  1970. .offset = offsetof(struct
  1971. wlfw_cal_report_req_msg_v01,
  1972. xo_cal_data),
  1973. },
  1974. {
  1975. .data_type = QMI_OPT_FLAG,
  1976. .elem_len = 1,
  1977. .elem_size = sizeof(u8),
  1978. .array_type = NO_ARRAY,
  1979. .tlv_type = 0x11,
  1980. .offset = offsetof(struct
  1981. wlfw_cal_report_req_msg_v01,
  1982. cal_remove_supported_valid),
  1983. },
  1984. {
  1985. .data_type = QMI_UNSIGNED_1_BYTE,
  1986. .elem_len = 1,
  1987. .elem_size = sizeof(u8),
  1988. .array_type = NO_ARRAY,
  1989. .tlv_type = 0x11,
  1990. .offset = offsetof(struct
  1991. wlfw_cal_report_req_msg_v01,
  1992. cal_remove_supported),
  1993. },
  1994. {
  1995. .data_type = QMI_OPT_FLAG,
  1996. .elem_len = 1,
  1997. .elem_size = sizeof(u8),
  1998. .array_type = NO_ARRAY,
  1999. .tlv_type = 0x12,
  2000. .offset = offsetof(struct
  2001. wlfw_cal_report_req_msg_v01,
  2002. cal_file_download_size_valid),
  2003. },
  2004. {
  2005. .data_type = QMI_UNSIGNED_8_BYTE,
  2006. .elem_len = 1,
  2007. .elem_size = sizeof(u64),
  2008. .array_type = NO_ARRAY,
  2009. .tlv_type = 0x12,
  2010. .offset = offsetof(struct
  2011. wlfw_cal_report_req_msg_v01,
  2012. cal_file_download_size),
  2013. },
  2014. {
  2015. .data_type = QMI_EOTI,
  2016. .array_type = NO_ARRAY,
  2017. .tlv_type = QMI_COMMON_TLV_TYPE,
  2018. },
  2019. };
  2020. EXPORT_SYMBOL(wlfw_cal_report_req_msg_v01_ei);
  2021. struct qmi_elem_info wlfw_cal_report_resp_msg_v01_ei[] = {
  2022. {
  2023. .data_type = QMI_STRUCT,
  2024. .elem_len = 1,
  2025. .elem_size = sizeof(struct qmi_response_type_v01),
  2026. .array_type = NO_ARRAY,
  2027. .tlv_type = 0x02,
  2028. .offset = offsetof(struct
  2029. wlfw_cal_report_resp_msg_v01,
  2030. resp),
  2031. .ei_array = qmi_response_type_v01_ei,
  2032. },
  2033. {
  2034. .data_type = QMI_EOTI,
  2035. .array_type = NO_ARRAY,
  2036. .tlv_type = QMI_COMMON_TLV_TYPE,
  2037. },
  2038. };
  2039. EXPORT_SYMBOL(wlfw_cal_report_resp_msg_v01_ei);
  2040. struct qmi_elem_info wlfw_initiate_cal_download_ind_msg_v01_ei[] = {
  2041. {
  2042. .data_type = QMI_SIGNED_4_BYTE_ENUM,
  2043. .elem_len = 1,
  2044. .elem_size = sizeof(enum wlfw_cal_temp_id_enum_v01),
  2045. .array_type = NO_ARRAY,
  2046. .tlv_type = 0x01,
  2047. .offset = offsetof(struct
  2048. wlfw_initiate_cal_download_ind_msg_v01,
  2049. cal_id),
  2050. },
  2051. {
  2052. .data_type = QMI_OPT_FLAG,
  2053. .elem_len = 1,
  2054. .elem_size = sizeof(u8),
  2055. .array_type = NO_ARRAY,
  2056. .tlv_type = 0x10,
  2057. .offset = offsetof(struct
  2058. wlfw_initiate_cal_download_ind_msg_v01,
  2059. total_size_valid),
  2060. },
  2061. {
  2062. .data_type = QMI_UNSIGNED_4_BYTE,
  2063. .elem_len = 1,
  2064. .elem_size = sizeof(u32),
  2065. .array_type = NO_ARRAY,
  2066. .tlv_type = 0x10,
  2067. .offset = offsetof(struct
  2068. wlfw_initiate_cal_download_ind_msg_v01,
  2069. total_size),
  2070. },
  2071. {
  2072. .data_type = QMI_OPT_FLAG,
  2073. .elem_len = 1,
  2074. .elem_size = sizeof(u8),
  2075. .array_type = NO_ARRAY,
  2076. .tlv_type = 0x11,
  2077. .offset = offsetof(struct
  2078. wlfw_initiate_cal_download_ind_msg_v01,
  2079. cal_data_location_valid),
  2080. },
  2081. {
  2082. .data_type = QMI_UNSIGNED_4_BYTE,
  2083. .elem_len = 1,
  2084. .elem_size = sizeof(u32),
  2085. .array_type = NO_ARRAY,
  2086. .tlv_type = 0x11,
  2087. .offset = offsetof(struct
  2088. wlfw_initiate_cal_download_ind_msg_v01,
  2089. cal_data_location),
  2090. },
  2091. {
  2092. .data_type = QMI_EOTI,
  2093. .array_type = NO_ARRAY,
  2094. .tlv_type = QMI_COMMON_TLV_TYPE,
  2095. },
  2096. };
  2097. EXPORT_SYMBOL(wlfw_initiate_cal_download_ind_msg_v01_ei);
  2098. struct qmi_elem_info wlfw_cal_download_req_msg_v01_ei[] = {
  2099. {
  2100. .data_type = QMI_UNSIGNED_1_BYTE,
  2101. .elem_len = 1,
  2102. .elem_size = sizeof(u8),
  2103. .array_type = NO_ARRAY,
  2104. .tlv_type = 0x01,
  2105. .offset = offsetof(struct
  2106. wlfw_cal_download_req_msg_v01,
  2107. valid),
  2108. },
  2109. {
  2110. .data_type = QMI_OPT_FLAG,
  2111. .elem_len = 1,
  2112. .elem_size = sizeof(u8),
  2113. .array_type = NO_ARRAY,
  2114. .tlv_type = 0x10,
  2115. .offset = offsetof(struct
  2116. wlfw_cal_download_req_msg_v01,
  2117. file_id_valid),
  2118. },
  2119. {
  2120. .data_type = QMI_SIGNED_4_BYTE_ENUM,
  2121. .elem_len = 1,
  2122. .elem_size = sizeof(enum wlfw_cal_temp_id_enum_v01),
  2123. .array_type = NO_ARRAY,
  2124. .tlv_type = 0x10,
  2125. .offset = offsetof(struct
  2126. wlfw_cal_download_req_msg_v01,
  2127. file_id),
  2128. },
  2129. {
  2130. .data_type = QMI_OPT_FLAG,
  2131. .elem_len = 1,
  2132. .elem_size = sizeof(u8),
  2133. .array_type = NO_ARRAY,
  2134. .tlv_type = 0x11,
  2135. .offset = offsetof(struct
  2136. wlfw_cal_download_req_msg_v01,
  2137. total_size_valid),
  2138. },
  2139. {
  2140. .data_type = QMI_UNSIGNED_4_BYTE,
  2141. .elem_len = 1,
  2142. .elem_size = sizeof(u32),
  2143. .array_type = NO_ARRAY,
  2144. .tlv_type = 0x11,
  2145. .offset = offsetof(struct
  2146. wlfw_cal_download_req_msg_v01,
  2147. total_size),
  2148. },
  2149. {
  2150. .data_type = QMI_OPT_FLAG,
  2151. .elem_len = 1,
  2152. .elem_size = sizeof(u8),
  2153. .array_type = NO_ARRAY,
  2154. .tlv_type = 0x12,
  2155. .offset = offsetof(struct
  2156. wlfw_cal_download_req_msg_v01,
  2157. seg_id_valid),
  2158. },
  2159. {
  2160. .data_type = QMI_UNSIGNED_4_BYTE,
  2161. .elem_len = 1,
  2162. .elem_size = sizeof(u32),
  2163. .array_type = NO_ARRAY,
  2164. .tlv_type = 0x12,
  2165. .offset = offsetof(struct
  2166. wlfw_cal_download_req_msg_v01,
  2167. seg_id),
  2168. },
  2169. {
  2170. .data_type = QMI_OPT_FLAG,
  2171. .elem_len = 1,
  2172. .elem_size = sizeof(u8),
  2173. .array_type = NO_ARRAY,
  2174. .tlv_type = 0x13,
  2175. .offset = offsetof(struct
  2176. wlfw_cal_download_req_msg_v01,
  2177. data_valid),
  2178. },
  2179. {
  2180. .data_type = QMI_DATA_LEN,
  2181. .elem_len = 1,
  2182. .elem_size = sizeof(u16),
  2183. .array_type = NO_ARRAY,
  2184. .tlv_type = 0x13,
  2185. .offset = offsetof(struct
  2186. wlfw_cal_download_req_msg_v01,
  2187. data_len),
  2188. },
  2189. {
  2190. .data_type = QMI_UNSIGNED_1_BYTE,
  2191. .elem_len = QMI_WLFW_MAX_DATA_SIZE_V01,
  2192. .elem_size = sizeof(u8),
  2193. .array_type = VAR_LEN_ARRAY,
  2194. .tlv_type = 0x13,
  2195. .offset = offsetof(struct
  2196. wlfw_cal_download_req_msg_v01,
  2197. data),
  2198. },
  2199. {
  2200. .data_type = QMI_OPT_FLAG,
  2201. .elem_len = 1,
  2202. .elem_size = sizeof(u8),
  2203. .array_type = NO_ARRAY,
  2204. .tlv_type = 0x14,
  2205. .offset = offsetof(struct
  2206. wlfw_cal_download_req_msg_v01,
  2207. end_valid),
  2208. },
  2209. {
  2210. .data_type = QMI_UNSIGNED_1_BYTE,
  2211. .elem_len = 1,
  2212. .elem_size = sizeof(u8),
  2213. .array_type = NO_ARRAY,
  2214. .tlv_type = 0x14,
  2215. .offset = offsetof(struct
  2216. wlfw_cal_download_req_msg_v01,
  2217. end),
  2218. },
  2219. {
  2220. .data_type = QMI_OPT_FLAG,
  2221. .elem_len = 1,
  2222. .elem_size = sizeof(u8),
  2223. .array_type = NO_ARRAY,
  2224. .tlv_type = 0x15,
  2225. .offset = offsetof(struct
  2226. wlfw_cal_download_req_msg_v01,
  2227. cal_data_location_valid),
  2228. },
  2229. {
  2230. .data_type = QMI_UNSIGNED_4_BYTE,
  2231. .elem_len = 1,
  2232. .elem_size = sizeof(u32),
  2233. .array_type = NO_ARRAY,
  2234. .tlv_type = 0x15,
  2235. .offset = offsetof(struct
  2236. wlfw_cal_download_req_msg_v01,
  2237. cal_data_location),
  2238. },
  2239. {
  2240. .data_type = QMI_EOTI,
  2241. .array_type = NO_ARRAY,
  2242. .tlv_type = QMI_COMMON_TLV_TYPE,
  2243. },
  2244. };
  2245. EXPORT_SYMBOL(wlfw_cal_download_req_msg_v01_ei);
  2246. struct qmi_elem_info wlfw_cal_download_resp_msg_v01_ei[] = {
  2247. {
  2248. .data_type = QMI_STRUCT,
  2249. .elem_len = 1,
  2250. .elem_size = sizeof(struct qmi_response_type_v01),
  2251. .array_type = NO_ARRAY,
  2252. .tlv_type = 0x02,
  2253. .offset = offsetof(struct
  2254. wlfw_cal_download_resp_msg_v01,
  2255. resp),
  2256. .ei_array = qmi_response_type_v01_ei,
  2257. },
  2258. {
  2259. .data_type = QMI_EOTI,
  2260. .array_type = NO_ARRAY,
  2261. .tlv_type = QMI_COMMON_TLV_TYPE,
  2262. },
  2263. };
  2264. EXPORT_SYMBOL(wlfw_cal_download_resp_msg_v01_ei);
  2265. struct qmi_elem_info wlfw_initiate_cal_update_ind_msg_v01_ei[] = {
  2266. {
  2267. .data_type = QMI_SIGNED_4_BYTE_ENUM,
  2268. .elem_len = 1,
  2269. .elem_size = sizeof(enum wlfw_cal_temp_id_enum_v01),
  2270. .array_type = NO_ARRAY,
  2271. .tlv_type = 0x01,
  2272. .offset = offsetof(struct
  2273. wlfw_initiate_cal_update_ind_msg_v01,
  2274. cal_id),
  2275. },
  2276. {
  2277. .data_type = QMI_UNSIGNED_4_BYTE,
  2278. .elem_len = 1,
  2279. .elem_size = sizeof(u32),
  2280. .array_type = NO_ARRAY,
  2281. .tlv_type = 0x02,
  2282. .offset = offsetof(struct
  2283. wlfw_initiate_cal_update_ind_msg_v01,
  2284. total_size),
  2285. },
  2286. {
  2287. .data_type = QMI_OPT_FLAG,
  2288. .elem_len = 1,
  2289. .elem_size = sizeof(u8),
  2290. .array_type = NO_ARRAY,
  2291. .tlv_type = 0x10,
  2292. .offset = offsetof(struct
  2293. wlfw_initiate_cal_update_ind_msg_v01,
  2294. cal_data_location_valid),
  2295. },
  2296. {
  2297. .data_type = QMI_UNSIGNED_4_BYTE,
  2298. .elem_len = 1,
  2299. .elem_size = sizeof(u32),
  2300. .array_type = NO_ARRAY,
  2301. .tlv_type = 0x10,
  2302. .offset = offsetof(struct
  2303. wlfw_initiate_cal_update_ind_msg_v01,
  2304. cal_data_location),
  2305. },
  2306. {
  2307. .data_type = QMI_EOTI,
  2308. .array_type = NO_ARRAY,
  2309. .tlv_type = QMI_COMMON_TLV_TYPE,
  2310. },
  2311. };
  2312. EXPORT_SYMBOL(wlfw_initiate_cal_update_ind_msg_v01_ei);
  2313. struct qmi_elem_info wlfw_cal_update_req_msg_v01_ei[] = {
  2314. {
  2315. .data_type = QMI_SIGNED_4_BYTE_ENUM,
  2316. .elem_len = 1,
  2317. .elem_size = sizeof(enum wlfw_cal_temp_id_enum_v01),
  2318. .array_type = NO_ARRAY,
  2319. .tlv_type = 0x01,
  2320. .offset = offsetof(struct
  2321. wlfw_cal_update_req_msg_v01,
  2322. cal_id),
  2323. },
  2324. {
  2325. .data_type = QMI_UNSIGNED_4_BYTE,
  2326. .elem_len = 1,
  2327. .elem_size = sizeof(u32),
  2328. .array_type = NO_ARRAY,
  2329. .tlv_type = 0x02,
  2330. .offset = offsetof(struct
  2331. wlfw_cal_update_req_msg_v01,
  2332. seg_id),
  2333. },
  2334. {
  2335. .data_type = QMI_EOTI,
  2336. .array_type = NO_ARRAY,
  2337. .tlv_type = QMI_COMMON_TLV_TYPE,
  2338. },
  2339. };
  2340. EXPORT_SYMBOL(wlfw_cal_update_req_msg_v01_ei);
  2341. struct qmi_elem_info wlfw_cal_update_resp_msg_v01_ei[] = {
  2342. {
  2343. .data_type = QMI_STRUCT,
  2344. .elem_len = 1,
  2345. .elem_size = sizeof(struct qmi_response_type_v01),
  2346. .array_type = NO_ARRAY,
  2347. .tlv_type = 0x02,
  2348. .offset = offsetof(struct
  2349. wlfw_cal_update_resp_msg_v01,
  2350. resp),
  2351. .ei_array = qmi_response_type_v01_ei,
  2352. },
  2353. {
  2354. .data_type = QMI_OPT_FLAG,
  2355. .elem_len = 1,
  2356. .elem_size = sizeof(u8),
  2357. .array_type = NO_ARRAY,
  2358. .tlv_type = 0x10,
  2359. .offset = offsetof(struct
  2360. wlfw_cal_update_resp_msg_v01,
  2361. file_id_valid),
  2362. },
  2363. {
  2364. .data_type = QMI_SIGNED_4_BYTE_ENUM,
  2365. .elem_len = 1,
  2366. .elem_size = sizeof(enum wlfw_cal_temp_id_enum_v01),
  2367. .array_type = NO_ARRAY,
  2368. .tlv_type = 0x10,
  2369. .offset = offsetof(struct
  2370. wlfw_cal_update_resp_msg_v01,
  2371. file_id),
  2372. },
  2373. {
  2374. .data_type = QMI_OPT_FLAG,
  2375. .elem_len = 1,
  2376. .elem_size = sizeof(u8),
  2377. .array_type = NO_ARRAY,
  2378. .tlv_type = 0x11,
  2379. .offset = offsetof(struct
  2380. wlfw_cal_update_resp_msg_v01,
  2381. total_size_valid),
  2382. },
  2383. {
  2384. .data_type = QMI_UNSIGNED_4_BYTE,
  2385. .elem_len = 1,
  2386. .elem_size = sizeof(u32),
  2387. .array_type = NO_ARRAY,
  2388. .tlv_type = 0x11,
  2389. .offset = offsetof(struct
  2390. wlfw_cal_update_resp_msg_v01,
  2391. total_size),
  2392. },
  2393. {
  2394. .data_type = QMI_OPT_FLAG,
  2395. .elem_len = 1,
  2396. .elem_size = sizeof(u8),
  2397. .array_type = NO_ARRAY,
  2398. .tlv_type = 0x12,
  2399. .offset = offsetof(struct
  2400. wlfw_cal_update_resp_msg_v01,
  2401. seg_id_valid),
  2402. },
  2403. {
  2404. .data_type = QMI_UNSIGNED_4_BYTE,
  2405. .elem_len = 1,
  2406. .elem_size = sizeof(u32),
  2407. .array_type = NO_ARRAY,
  2408. .tlv_type = 0x12,
  2409. .offset = offsetof(struct
  2410. wlfw_cal_update_resp_msg_v01,
  2411. seg_id),
  2412. },
  2413. {
  2414. .data_type = QMI_OPT_FLAG,
  2415. .elem_len = 1,
  2416. .elem_size = sizeof(u8),
  2417. .array_type = NO_ARRAY,
  2418. .tlv_type = 0x13,
  2419. .offset = offsetof(struct
  2420. wlfw_cal_update_resp_msg_v01,
  2421. data_valid),
  2422. },
  2423. {
  2424. .data_type = QMI_DATA_LEN,
  2425. .elem_len = 1,
  2426. .elem_size = sizeof(u16),
  2427. .array_type = NO_ARRAY,
  2428. .tlv_type = 0x13,
  2429. .offset = offsetof(struct
  2430. wlfw_cal_update_resp_msg_v01,
  2431. data_len),
  2432. },
  2433. {
  2434. .data_type = QMI_UNSIGNED_1_BYTE,
  2435. .elem_len = QMI_WLFW_MAX_DATA_SIZE_V01,
  2436. .elem_size = sizeof(u8),
  2437. .array_type = VAR_LEN_ARRAY,
  2438. .tlv_type = 0x13,
  2439. .offset = offsetof(struct
  2440. wlfw_cal_update_resp_msg_v01,
  2441. data),
  2442. },
  2443. {
  2444. .data_type = QMI_OPT_FLAG,
  2445. .elem_len = 1,
  2446. .elem_size = sizeof(u8),
  2447. .array_type = NO_ARRAY,
  2448. .tlv_type = 0x14,
  2449. .offset = offsetof(struct
  2450. wlfw_cal_update_resp_msg_v01,
  2451. end_valid),
  2452. },
  2453. {
  2454. .data_type = QMI_UNSIGNED_1_BYTE,
  2455. .elem_len = 1,
  2456. .elem_size = sizeof(u8),
  2457. .array_type = NO_ARRAY,
  2458. .tlv_type = 0x14,
  2459. .offset = offsetof(struct
  2460. wlfw_cal_update_resp_msg_v01,
  2461. end),
  2462. },
  2463. {
  2464. .data_type = QMI_OPT_FLAG,
  2465. .elem_len = 1,
  2466. .elem_size = sizeof(u8),
  2467. .array_type = NO_ARRAY,
  2468. .tlv_type = 0x15,
  2469. .offset = offsetof(struct
  2470. wlfw_cal_update_resp_msg_v01,
  2471. cal_data_location_valid),
  2472. },
  2473. {
  2474. .data_type = QMI_UNSIGNED_4_BYTE,
  2475. .elem_len = 1,
  2476. .elem_size = sizeof(u32),
  2477. .array_type = NO_ARRAY,
  2478. .tlv_type = 0x15,
  2479. .offset = offsetof(struct
  2480. wlfw_cal_update_resp_msg_v01,
  2481. cal_data_location),
  2482. },
  2483. {
  2484. .data_type = QMI_EOTI,
  2485. .array_type = NO_ARRAY,
  2486. .tlv_type = QMI_COMMON_TLV_TYPE,
  2487. },
  2488. };
  2489. EXPORT_SYMBOL(wlfw_cal_update_resp_msg_v01_ei);
  2490. struct qmi_elem_info wlfw_msa_info_req_msg_v01_ei[] = {
  2491. {
  2492. .data_type = QMI_UNSIGNED_8_BYTE,
  2493. .elem_len = 1,
  2494. .elem_size = sizeof(u64),
  2495. .array_type = NO_ARRAY,
  2496. .tlv_type = 0x01,
  2497. .offset = offsetof(struct
  2498. wlfw_msa_info_req_msg_v01,
  2499. msa_addr),
  2500. },
  2501. {
  2502. .data_type = QMI_UNSIGNED_4_BYTE,
  2503. .elem_len = 1,
  2504. .elem_size = sizeof(u32),
  2505. .array_type = NO_ARRAY,
  2506. .tlv_type = 0x02,
  2507. .offset = offsetof(struct
  2508. wlfw_msa_info_req_msg_v01,
  2509. size),
  2510. },
  2511. {
  2512. .data_type = QMI_EOTI,
  2513. .array_type = NO_ARRAY,
  2514. .tlv_type = QMI_COMMON_TLV_TYPE,
  2515. },
  2516. };
  2517. EXPORT_SYMBOL(wlfw_msa_info_req_msg_v01_ei);
  2518. struct qmi_elem_info wlfw_msa_info_resp_msg_v01_ei[] = {
  2519. {
  2520. .data_type = QMI_STRUCT,
  2521. .elem_len = 1,
  2522. .elem_size = sizeof(struct qmi_response_type_v01),
  2523. .array_type = NO_ARRAY,
  2524. .tlv_type = 0x02,
  2525. .offset = offsetof(struct
  2526. wlfw_msa_info_resp_msg_v01,
  2527. resp),
  2528. .ei_array = qmi_response_type_v01_ei,
  2529. },
  2530. {
  2531. .data_type = QMI_DATA_LEN,
  2532. .elem_len = 1,
  2533. .elem_size = sizeof(u8),
  2534. .array_type = NO_ARRAY,
  2535. .tlv_type = 0x03,
  2536. .offset = offsetof(struct
  2537. wlfw_msa_info_resp_msg_v01,
  2538. mem_region_info_len),
  2539. },
  2540. {
  2541. .data_type = QMI_STRUCT,
  2542. .elem_len = QMI_WLFW_MAX_NUM_MEMORY_REGIONS_V01,
  2543. .elem_size = sizeof(struct wlfw_memory_region_info_s_v01),
  2544. .array_type = VAR_LEN_ARRAY,
  2545. .tlv_type = 0x03,
  2546. .offset = offsetof(struct
  2547. wlfw_msa_info_resp_msg_v01,
  2548. mem_region_info),
  2549. .ei_array = wlfw_memory_region_info_s_v01_ei,
  2550. },
  2551. {
  2552. .data_type = QMI_EOTI,
  2553. .array_type = NO_ARRAY,
  2554. .tlv_type = QMI_COMMON_TLV_TYPE,
  2555. },
  2556. };
  2557. EXPORT_SYMBOL(wlfw_msa_info_resp_msg_v01_ei);
  2558. struct qmi_elem_info wlfw_msa_ready_req_msg_v01_ei[] = {
  2559. {
  2560. .data_type = QMI_EOTI,
  2561. .array_type = NO_ARRAY,
  2562. .tlv_type = QMI_COMMON_TLV_TYPE,
  2563. },
  2564. };
  2565. EXPORT_SYMBOL(wlfw_msa_ready_req_msg_v01_ei);
  2566. struct qmi_elem_info wlfw_msa_ready_resp_msg_v01_ei[] = {
  2567. {
  2568. .data_type = QMI_STRUCT,
  2569. .elem_len = 1,
  2570. .elem_size = sizeof(struct qmi_response_type_v01),
  2571. .array_type = NO_ARRAY,
  2572. .tlv_type = 0x02,
  2573. .offset = offsetof(struct
  2574. wlfw_msa_ready_resp_msg_v01,
  2575. resp),
  2576. .ei_array = qmi_response_type_v01_ei,
  2577. },
  2578. {
  2579. .data_type = QMI_EOTI,
  2580. .array_type = NO_ARRAY,
  2581. .tlv_type = QMI_COMMON_TLV_TYPE,
  2582. },
  2583. };
  2584. EXPORT_SYMBOL(wlfw_msa_ready_resp_msg_v01_ei);
  2585. struct qmi_elem_info wlfw_ini_req_msg_v01_ei[] = {
  2586. {
  2587. .data_type = QMI_OPT_FLAG,
  2588. .elem_len = 1,
  2589. .elem_size = sizeof(u8),
  2590. .array_type = NO_ARRAY,
  2591. .tlv_type = 0x10,
  2592. .offset = offsetof(struct
  2593. wlfw_ini_req_msg_v01,
  2594. enablefwlog_valid),
  2595. },
  2596. {
  2597. .data_type = QMI_UNSIGNED_1_BYTE,
  2598. .elem_len = 1,
  2599. .elem_size = sizeof(u8),
  2600. .array_type = NO_ARRAY,
  2601. .tlv_type = 0x10,
  2602. .offset = offsetof(struct
  2603. wlfw_ini_req_msg_v01,
  2604. enablefwlog),
  2605. },
  2606. {
  2607. .data_type = QMI_EOTI,
  2608. .array_type = NO_ARRAY,
  2609. .tlv_type = QMI_COMMON_TLV_TYPE,
  2610. },
  2611. };
  2612. EXPORT_SYMBOL(wlfw_ini_req_msg_v01_ei);
  2613. struct qmi_elem_info wlfw_ini_resp_msg_v01_ei[] = {
  2614. {
  2615. .data_type = QMI_STRUCT,
  2616. .elem_len = 1,
  2617. .elem_size = sizeof(struct qmi_response_type_v01),
  2618. .array_type = NO_ARRAY,
  2619. .tlv_type = 0x02,
  2620. .offset = offsetof(struct
  2621. wlfw_ini_resp_msg_v01,
  2622. resp),
  2623. .ei_array = qmi_response_type_v01_ei,
  2624. },
  2625. {
  2626. .data_type = QMI_EOTI,
  2627. .array_type = NO_ARRAY,
  2628. .tlv_type = QMI_COMMON_TLV_TYPE,
  2629. },
  2630. };
  2631. EXPORT_SYMBOL(wlfw_ini_resp_msg_v01_ei);
  2632. struct qmi_elem_info wlfw_athdiag_read_req_msg_v01_ei[] = {
  2633. {
  2634. .data_type = QMI_UNSIGNED_4_BYTE,
  2635. .elem_len = 1,
  2636. .elem_size = sizeof(u32),
  2637. .array_type = NO_ARRAY,
  2638. .tlv_type = 0x01,
  2639. .offset = offsetof(struct
  2640. wlfw_athdiag_read_req_msg_v01,
  2641. offset),
  2642. },
  2643. {
  2644. .data_type = QMI_UNSIGNED_4_BYTE,
  2645. .elem_len = 1,
  2646. .elem_size = sizeof(u32),
  2647. .array_type = NO_ARRAY,
  2648. .tlv_type = 0x02,
  2649. .offset = offsetof(struct
  2650. wlfw_athdiag_read_req_msg_v01,
  2651. mem_type),
  2652. },
  2653. {
  2654. .data_type = QMI_UNSIGNED_4_BYTE,
  2655. .elem_len = 1,
  2656. .elem_size = sizeof(u32),
  2657. .array_type = NO_ARRAY,
  2658. .tlv_type = 0x03,
  2659. .offset = offsetof(struct
  2660. wlfw_athdiag_read_req_msg_v01,
  2661. data_len),
  2662. },
  2663. {
  2664. .data_type = QMI_EOTI,
  2665. .array_type = NO_ARRAY,
  2666. .tlv_type = QMI_COMMON_TLV_TYPE,
  2667. },
  2668. };
  2669. EXPORT_SYMBOL(wlfw_athdiag_read_req_msg_v01_ei);
  2670. struct qmi_elem_info wlfw_athdiag_read_resp_msg_v01_ei[] = {
  2671. {
  2672. .data_type = QMI_STRUCT,
  2673. .elem_len = 1,
  2674. .elem_size = sizeof(struct qmi_response_type_v01),
  2675. .array_type = NO_ARRAY,
  2676. .tlv_type = 0x02,
  2677. .offset = offsetof(struct
  2678. wlfw_athdiag_read_resp_msg_v01,
  2679. resp),
  2680. .ei_array = qmi_response_type_v01_ei,
  2681. },
  2682. {
  2683. .data_type = QMI_OPT_FLAG,
  2684. .elem_len = 1,
  2685. .elem_size = sizeof(u8),
  2686. .array_type = NO_ARRAY,
  2687. .tlv_type = 0x10,
  2688. .offset = offsetof(struct
  2689. wlfw_athdiag_read_resp_msg_v01,
  2690. data_valid),
  2691. },
  2692. {
  2693. .data_type = QMI_DATA_LEN,
  2694. .elem_len = 1,
  2695. .elem_size = sizeof(u16),
  2696. .array_type = NO_ARRAY,
  2697. .tlv_type = 0x10,
  2698. .offset = offsetof(struct
  2699. wlfw_athdiag_read_resp_msg_v01,
  2700. data_len),
  2701. },
  2702. {
  2703. .data_type = QMI_UNSIGNED_1_BYTE,
  2704. .elem_len = QMI_WLFW_MAX_ATHDIAG_DATA_SIZE_V01,
  2705. .elem_size = sizeof(u8),
  2706. .array_type = VAR_LEN_ARRAY,
  2707. .tlv_type = 0x10,
  2708. .offset = offsetof(struct
  2709. wlfw_athdiag_read_resp_msg_v01,
  2710. data),
  2711. },
  2712. {
  2713. .data_type = QMI_EOTI,
  2714. .array_type = NO_ARRAY,
  2715. .tlv_type = QMI_COMMON_TLV_TYPE,
  2716. },
  2717. };
  2718. EXPORT_SYMBOL(wlfw_athdiag_read_resp_msg_v01_ei);
  2719. struct qmi_elem_info wlfw_athdiag_write_req_msg_v01_ei[] = {
  2720. {
  2721. .data_type = QMI_UNSIGNED_4_BYTE,
  2722. .elem_len = 1,
  2723. .elem_size = sizeof(u32),
  2724. .array_type = NO_ARRAY,
  2725. .tlv_type = 0x01,
  2726. .offset = offsetof(struct
  2727. wlfw_athdiag_write_req_msg_v01,
  2728. offset),
  2729. },
  2730. {
  2731. .data_type = QMI_UNSIGNED_4_BYTE,
  2732. .elem_len = 1,
  2733. .elem_size = sizeof(u32),
  2734. .array_type = NO_ARRAY,
  2735. .tlv_type = 0x02,
  2736. .offset = offsetof(struct
  2737. wlfw_athdiag_write_req_msg_v01,
  2738. mem_type),
  2739. },
  2740. {
  2741. .data_type = QMI_DATA_LEN,
  2742. .elem_len = 1,
  2743. .elem_size = sizeof(u16),
  2744. .array_type = NO_ARRAY,
  2745. .tlv_type = 0x03,
  2746. .offset = offsetof(struct
  2747. wlfw_athdiag_write_req_msg_v01,
  2748. data_len),
  2749. },
  2750. {
  2751. .data_type = QMI_UNSIGNED_1_BYTE,
  2752. .elem_len = QMI_WLFW_MAX_ATHDIAG_DATA_SIZE_V01,
  2753. .elem_size = sizeof(u8),
  2754. .array_type = VAR_LEN_ARRAY,
  2755. .tlv_type = 0x03,
  2756. .offset = offsetof(struct
  2757. wlfw_athdiag_write_req_msg_v01,
  2758. data),
  2759. },
  2760. {
  2761. .data_type = QMI_EOTI,
  2762. .array_type = NO_ARRAY,
  2763. .tlv_type = QMI_COMMON_TLV_TYPE,
  2764. },
  2765. };
  2766. EXPORT_SYMBOL(wlfw_athdiag_write_req_msg_v01_ei);
  2767. struct qmi_elem_info wlfw_athdiag_write_resp_msg_v01_ei[] = {
  2768. {
  2769. .data_type = QMI_STRUCT,
  2770. .elem_len = 1,
  2771. .elem_size = sizeof(struct qmi_response_type_v01),
  2772. .array_type = NO_ARRAY,
  2773. .tlv_type = 0x02,
  2774. .offset = offsetof(struct
  2775. wlfw_athdiag_write_resp_msg_v01,
  2776. resp),
  2777. .ei_array = qmi_response_type_v01_ei,
  2778. },
  2779. {
  2780. .data_type = QMI_EOTI,
  2781. .array_type = NO_ARRAY,
  2782. .tlv_type = QMI_COMMON_TLV_TYPE,
  2783. },
  2784. };
  2785. EXPORT_SYMBOL(wlfw_athdiag_write_resp_msg_v01_ei);
  2786. struct qmi_elem_info wlfw_vbatt_req_msg_v01_ei[] = {
  2787. {
  2788. .data_type = QMI_UNSIGNED_8_BYTE,
  2789. .elem_len = 1,
  2790. .elem_size = sizeof(u64),
  2791. .array_type = NO_ARRAY,
  2792. .tlv_type = 0x01,
  2793. .offset = offsetof(struct
  2794. wlfw_vbatt_req_msg_v01,
  2795. voltage_uv),
  2796. },
  2797. {
  2798. .data_type = QMI_EOTI,
  2799. .array_type = NO_ARRAY,
  2800. .tlv_type = QMI_COMMON_TLV_TYPE,
  2801. },
  2802. };
  2803. EXPORT_SYMBOL(wlfw_vbatt_req_msg_v01_ei);
  2804. struct qmi_elem_info wlfw_vbatt_resp_msg_v01_ei[] = {
  2805. {
  2806. .data_type = QMI_STRUCT,
  2807. .elem_len = 1,
  2808. .elem_size = sizeof(struct qmi_response_type_v01),
  2809. .array_type = NO_ARRAY,
  2810. .tlv_type = 0x02,
  2811. .offset = offsetof(struct
  2812. wlfw_vbatt_resp_msg_v01,
  2813. resp),
  2814. .ei_array = qmi_response_type_v01_ei,
  2815. },
  2816. {
  2817. .data_type = QMI_EOTI,
  2818. .array_type = NO_ARRAY,
  2819. .tlv_type = QMI_COMMON_TLV_TYPE,
  2820. },
  2821. };
  2822. EXPORT_SYMBOL(wlfw_vbatt_resp_msg_v01_ei);
  2823. struct qmi_elem_info wlfw_mac_addr_req_msg_v01_ei[] = {
  2824. {
  2825. .data_type = QMI_OPT_FLAG,
  2826. .elem_len = 1,
  2827. .elem_size = sizeof(u8),
  2828. .array_type = NO_ARRAY,
  2829. .tlv_type = 0x10,
  2830. .offset = offsetof(struct
  2831. wlfw_mac_addr_req_msg_v01,
  2832. mac_addr_valid),
  2833. },
  2834. {
  2835. .data_type = QMI_UNSIGNED_1_BYTE,
  2836. .elem_len = QMI_WLFW_MAC_ADDR_SIZE_V01,
  2837. .elem_size = sizeof(u8),
  2838. .array_type = STATIC_ARRAY,
  2839. .tlv_type = 0x10,
  2840. .offset = offsetof(struct
  2841. wlfw_mac_addr_req_msg_v01,
  2842. mac_addr),
  2843. },
  2844. {
  2845. .data_type = QMI_EOTI,
  2846. .array_type = NO_ARRAY,
  2847. .tlv_type = QMI_COMMON_TLV_TYPE,
  2848. },
  2849. };
  2850. EXPORT_SYMBOL(wlfw_mac_addr_req_msg_v01_ei);
  2851. struct qmi_elem_info wlfw_mac_addr_resp_msg_v01_ei[] = {
  2852. {
  2853. .data_type = QMI_STRUCT,
  2854. .elem_len = 1,
  2855. .elem_size = sizeof(struct qmi_response_type_v01),
  2856. .array_type = NO_ARRAY,
  2857. .tlv_type = 0x02,
  2858. .offset = offsetof(struct
  2859. wlfw_mac_addr_resp_msg_v01,
  2860. resp),
  2861. .ei_array = qmi_response_type_v01_ei,
  2862. },
  2863. {
  2864. .data_type = QMI_EOTI,
  2865. .array_type = NO_ARRAY,
  2866. .tlv_type = QMI_COMMON_TLV_TYPE,
  2867. },
  2868. };
  2869. EXPORT_SYMBOL(wlfw_mac_addr_resp_msg_v01_ei);
  2870. struct qmi_elem_info wlfw_host_cap_req_msg_v01_ei[] = {
  2871. {
  2872. .data_type = QMI_OPT_FLAG,
  2873. .elem_len = 1,
  2874. .elem_size = sizeof(u8),
  2875. .array_type = NO_ARRAY,
  2876. .tlv_type = 0x10,
  2877. .offset = offsetof(struct
  2878. wlfw_host_cap_req_msg_v01,
  2879. num_clients_valid),
  2880. },
  2881. {
  2882. .data_type = QMI_UNSIGNED_4_BYTE,
  2883. .elem_len = 1,
  2884. .elem_size = sizeof(u32),
  2885. .array_type = NO_ARRAY,
  2886. .tlv_type = 0x10,
  2887. .offset = offsetof(struct
  2888. wlfw_host_cap_req_msg_v01,
  2889. num_clients),
  2890. },
  2891. {
  2892. .data_type = QMI_OPT_FLAG,
  2893. .elem_len = 1,
  2894. .elem_size = sizeof(u8),
  2895. .array_type = NO_ARRAY,
  2896. .tlv_type = 0x11,
  2897. .offset = offsetof(struct
  2898. wlfw_host_cap_req_msg_v01,
  2899. wake_msi_valid),
  2900. },
  2901. {
  2902. .data_type = QMI_UNSIGNED_4_BYTE,
  2903. .elem_len = 1,
  2904. .elem_size = sizeof(u32),
  2905. .array_type = NO_ARRAY,
  2906. .tlv_type = 0x11,
  2907. .offset = offsetof(struct
  2908. wlfw_host_cap_req_msg_v01,
  2909. wake_msi),
  2910. },
  2911. {
  2912. .data_type = QMI_OPT_FLAG,
  2913. .elem_len = 1,
  2914. .elem_size = sizeof(u8),
  2915. .array_type = NO_ARRAY,
  2916. .tlv_type = 0x12,
  2917. .offset = offsetof(struct
  2918. wlfw_host_cap_req_msg_v01,
  2919. gpios_valid),
  2920. },
  2921. {
  2922. .data_type = QMI_DATA_LEN,
  2923. .elem_len = 1,
  2924. .elem_size = sizeof(u8),
  2925. .array_type = NO_ARRAY,
  2926. .tlv_type = 0x12,
  2927. .offset = offsetof(struct
  2928. wlfw_host_cap_req_msg_v01,
  2929. gpios_len),
  2930. },
  2931. {
  2932. .data_type = QMI_UNSIGNED_4_BYTE,
  2933. .elem_len = QMI_WLFW_MAX_NUM_GPIO_V01,
  2934. .elem_size = sizeof(u32),
  2935. .array_type = VAR_LEN_ARRAY,
  2936. .tlv_type = 0x12,
  2937. .offset = offsetof(struct
  2938. wlfw_host_cap_req_msg_v01,
  2939. gpios),
  2940. },
  2941. {
  2942. .data_type = QMI_OPT_FLAG,
  2943. .elem_len = 1,
  2944. .elem_size = sizeof(u8),
  2945. .array_type = NO_ARRAY,
  2946. .tlv_type = 0x13,
  2947. .offset = offsetof(struct
  2948. wlfw_host_cap_req_msg_v01,
  2949. nm_modem_valid),
  2950. },
  2951. {
  2952. .data_type = QMI_UNSIGNED_1_BYTE,
  2953. .elem_len = 1,
  2954. .elem_size = sizeof(u8),
  2955. .array_type = NO_ARRAY,
  2956. .tlv_type = 0x13,
  2957. .offset = offsetof(struct
  2958. wlfw_host_cap_req_msg_v01,
  2959. nm_modem),
  2960. },
  2961. {
  2962. .data_type = QMI_OPT_FLAG,
  2963. .elem_len = 1,
  2964. .elem_size = sizeof(u8),
  2965. .array_type = NO_ARRAY,
  2966. .tlv_type = 0x14,
  2967. .offset = offsetof(struct
  2968. wlfw_host_cap_req_msg_v01,
  2969. bdf_support_valid),
  2970. },
  2971. {
  2972. .data_type = QMI_UNSIGNED_1_BYTE,
  2973. .elem_len = 1,
  2974. .elem_size = sizeof(u8),
  2975. .array_type = NO_ARRAY,
  2976. .tlv_type = 0x14,
  2977. .offset = offsetof(struct
  2978. wlfw_host_cap_req_msg_v01,
  2979. bdf_support),
  2980. },
  2981. {
  2982. .data_type = QMI_OPT_FLAG,
  2983. .elem_len = 1,
  2984. .elem_size = sizeof(u8),
  2985. .array_type = NO_ARRAY,
  2986. .tlv_type = 0x15,
  2987. .offset = offsetof(struct
  2988. wlfw_host_cap_req_msg_v01,
  2989. bdf_cache_support_valid),
  2990. },
  2991. {
  2992. .data_type = QMI_UNSIGNED_1_BYTE,
  2993. .elem_len = 1,
  2994. .elem_size = sizeof(u8),
  2995. .array_type = NO_ARRAY,
  2996. .tlv_type = 0x15,
  2997. .offset = offsetof(struct
  2998. wlfw_host_cap_req_msg_v01,
  2999. bdf_cache_support),
  3000. },
  3001. {
  3002. .data_type = QMI_OPT_FLAG,
  3003. .elem_len = 1,
  3004. .elem_size = sizeof(u8),
  3005. .array_type = NO_ARRAY,
  3006. .tlv_type = 0x16,
  3007. .offset = offsetof(struct
  3008. wlfw_host_cap_req_msg_v01,
  3009. m3_support_valid),
  3010. },
  3011. {
  3012. .data_type = QMI_UNSIGNED_1_BYTE,
  3013. .elem_len = 1,
  3014. .elem_size = sizeof(u8),
  3015. .array_type = NO_ARRAY,
  3016. .tlv_type = 0x16,
  3017. .offset = offsetof(struct
  3018. wlfw_host_cap_req_msg_v01,
  3019. m3_support),
  3020. },
  3021. {
  3022. .data_type = QMI_OPT_FLAG,
  3023. .elem_len = 1,
  3024. .elem_size = sizeof(u8),
  3025. .array_type = NO_ARRAY,
  3026. .tlv_type = 0x17,
  3027. .offset = offsetof(struct
  3028. wlfw_host_cap_req_msg_v01,
  3029. m3_cache_support_valid),
  3030. },
  3031. {
  3032. .data_type = QMI_UNSIGNED_1_BYTE,
  3033. .elem_len = 1,
  3034. .elem_size = sizeof(u8),
  3035. .array_type = NO_ARRAY,
  3036. .tlv_type = 0x17,
  3037. .offset = offsetof(struct
  3038. wlfw_host_cap_req_msg_v01,
  3039. m3_cache_support),
  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 = 0x18,
  3047. .offset = offsetof(struct
  3048. wlfw_host_cap_req_msg_v01,
  3049. cal_filesys_support_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 = 0x18,
  3057. .offset = offsetof(struct
  3058. wlfw_host_cap_req_msg_v01,
  3059. cal_filesys_support),
  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 = 0x19,
  3067. .offset = offsetof(struct
  3068. wlfw_host_cap_req_msg_v01,
  3069. cal_cache_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 = 0x19,
  3077. .offset = offsetof(struct
  3078. wlfw_host_cap_req_msg_v01,
  3079. cal_cache_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 = 0x1A,
  3087. .offset = offsetof(struct
  3088. wlfw_host_cap_req_msg_v01,
  3089. cal_done_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 = 0x1A,
  3097. .offset = offsetof(struct
  3098. wlfw_host_cap_req_msg_v01,
  3099. cal_done),
  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 = 0x1B,
  3107. .offset = offsetof(struct
  3108. wlfw_host_cap_req_msg_v01,
  3109. mem_bucket_valid),
  3110. },
  3111. {
  3112. .data_type = QMI_UNSIGNED_4_BYTE,
  3113. .elem_len = 1,
  3114. .elem_size = sizeof(u32),
  3115. .array_type = NO_ARRAY,
  3116. .tlv_type = 0x1B,
  3117. .offset = offsetof(struct
  3118. wlfw_host_cap_req_msg_v01,
  3119. mem_bucket),
  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 = 0x1C,
  3127. .offset = offsetof(struct
  3128. wlfw_host_cap_req_msg_v01,
  3129. mem_cfg_mode_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 = 0x1C,
  3137. .offset = offsetof(struct
  3138. wlfw_host_cap_req_msg_v01,
  3139. mem_cfg_mode),
  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 = 0x1D,
  3147. .offset = offsetof(struct
  3148. wlfw_host_cap_req_msg_v01,
  3149. cal_duration_valid),
  3150. },
  3151. {
  3152. .data_type = QMI_UNSIGNED_2_BYTE,
  3153. .elem_len = 1,
  3154. .elem_size = sizeof(u16),
  3155. .array_type = NO_ARRAY,
  3156. .tlv_type = 0x1D,
  3157. .offset = offsetof(struct
  3158. wlfw_host_cap_req_msg_v01,
  3159. cal_duration),
  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 = 0x1E,
  3167. .offset = offsetof(struct
  3168. wlfw_host_cap_req_msg_v01,
  3169. platform_name_valid),
  3170. },
  3171. {
  3172. .data_type = QMI_STRING,
  3173. .elem_len = QMI_WLFW_MAX_PLATFORM_NAME_LEN_V01 + 1,
  3174. .elem_size = sizeof(char),
  3175. .array_type = NO_ARRAY,
  3176. .tlv_type = 0x1E,
  3177. .offset = offsetof(struct
  3178. wlfw_host_cap_req_msg_v01,
  3179. platform_name),
  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 = 0x1F,
  3187. .offset = offsetof(struct
  3188. wlfw_host_cap_req_msg_v01,
  3189. ddr_range_valid),
  3190. },
  3191. {
  3192. .data_type = QMI_STRUCT,
  3193. .elem_len = QMI_WLFW_MAX_HOST_DDR_RANGE_SIZE_V01,
  3194. .elem_size = sizeof(struct wlfw_host_ddr_range_s_v01),
  3195. .array_type = STATIC_ARRAY,
  3196. .tlv_type = 0x1F,
  3197. .offset = offsetof(struct
  3198. wlfw_host_cap_req_msg_v01,
  3199. ddr_range),
  3200. .ei_array = wlfw_host_ddr_range_s_v01_ei,
  3201. },
  3202. {
  3203. .data_type = QMI_OPT_FLAG,
  3204. .elem_len = 1,
  3205. .elem_size = sizeof(u8),
  3206. .array_type = NO_ARRAY,
  3207. .tlv_type = 0x20,
  3208. .offset = offsetof(struct
  3209. wlfw_host_cap_req_msg_v01,
  3210. host_build_type_valid),
  3211. },
  3212. {
  3213. .data_type = QMI_SIGNED_4_BYTE_ENUM,
  3214. .elem_len = 1,
  3215. .elem_size = sizeof(enum wlfw_host_build_type_v01),
  3216. .array_type = NO_ARRAY,
  3217. .tlv_type = 0x20,
  3218. .offset = offsetof(struct
  3219. wlfw_host_cap_req_msg_v01,
  3220. host_build_type),
  3221. },
  3222. {
  3223. .data_type = QMI_OPT_FLAG,
  3224. .elem_len = 1,
  3225. .elem_size = sizeof(u8),
  3226. .array_type = NO_ARRAY,
  3227. .tlv_type = 0x21,
  3228. .offset = offsetof(struct
  3229. wlfw_host_cap_req_msg_v01,
  3230. mlo_capable_valid),
  3231. },
  3232. {
  3233. .data_type = QMI_UNSIGNED_1_BYTE,
  3234. .elem_len = 1,
  3235. .elem_size = sizeof(u8),
  3236. .array_type = NO_ARRAY,
  3237. .tlv_type = 0x21,
  3238. .offset = offsetof(struct
  3239. wlfw_host_cap_req_msg_v01,
  3240. mlo_capable),
  3241. },
  3242. {
  3243. .data_type = QMI_OPT_FLAG,
  3244. .elem_len = 1,
  3245. .elem_size = sizeof(u8),
  3246. .array_type = NO_ARRAY,
  3247. .tlv_type = 0x22,
  3248. .offset = offsetof(struct
  3249. wlfw_host_cap_req_msg_v01,
  3250. mlo_chip_id_valid),
  3251. },
  3252. {
  3253. .data_type = QMI_UNSIGNED_2_BYTE,
  3254. .elem_len = 1,
  3255. .elem_size = sizeof(u16),
  3256. .array_type = NO_ARRAY,
  3257. .tlv_type = 0x22,
  3258. .offset = offsetof(struct
  3259. wlfw_host_cap_req_msg_v01,
  3260. mlo_chip_id),
  3261. },
  3262. {
  3263. .data_type = QMI_OPT_FLAG,
  3264. .elem_len = 1,
  3265. .elem_size = sizeof(u8),
  3266. .array_type = NO_ARRAY,
  3267. .tlv_type = 0x23,
  3268. .offset = offsetof(struct
  3269. wlfw_host_cap_req_msg_v01,
  3270. mlo_group_id_valid),
  3271. },
  3272. {
  3273. .data_type = QMI_UNSIGNED_1_BYTE,
  3274. .elem_len = 1,
  3275. .elem_size = sizeof(u8),
  3276. .array_type = NO_ARRAY,
  3277. .tlv_type = 0x23,
  3278. .offset = offsetof(struct
  3279. wlfw_host_cap_req_msg_v01,
  3280. mlo_group_id),
  3281. },
  3282. {
  3283. .data_type = QMI_OPT_FLAG,
  3284. .elem_len = 1,
  3285. .elem_size = sizeof(u8),
  3286. .array_type = NO_ARRAY,
  3287. .tlv_type = 0x24,
  3288. .offset = offsetof(struct
  3289. wlfw_host_cap_req_msg_v01,
  3290. max_mlo_peer_valid),
  3291. },
  3292. {
  3293. .data_type = QMI_UNSIGNED_2_BYTE,
  3294. .elem_len = 1,
  3295. .elem_size = sizeof(u16),
  3296. .array_type = NO_ARRAY,
  3297. .tlv_type = 0x24,
  3298. .offset = offsetof(struct
  3299. wlfw_host_cap_req_msg_v01,
  3300. max_mlo_peer),
  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 = 0x25,
  3308. .offset = offsetof(struct
  3309. wlfw_host_cap_req_msg_v01,
  3310. mlo_num_chips_valid),
  3311. },
  3312. {
  3313. .data_type = QMI_UNSIGNED_1_BYTE,
  3314. .elem_len = 1,
  3315. .elem_size = sizeof(u8),
  3316. .array_type = NO_ARRAY,
  3317. .tlv_type = 0x25,
  3318. .offset = offsetof(struct
  3319. wlfw_host_cap_req_msg_v01,
  3320. mlo_num_chips),
  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 = 0x26,
  3328. .offset = offsetof(struct
  3329. wlfw_host_cap_req_msg_v01,
  3330. mlo_chip_info_valid),
  3331. },
  3332. {
  3333. .data_type = QMI_STRUCT,
  3334. .elem_len = QMI_WLFW_MAX_NUM_MLO_CHIPS_V01,
  3335. .elem_size = sizeof(struct wlfw_host_mlo_chip_info_s_v01),
  3336. .array_type = STATIC_ARRAY,
  3337. .tlv_type = 0x26,
  3338. .offset = offsetof(struct
  3339. wlfw_host_cap_req_msg_v01,
  3340. mlo_chip_info),
  3341. .ei_array = wlfw_host_mlo_chip_info_s_v01_ei,
  3342. },
  3343. {
  3344. .data_type = QMI_OPT_FLAG,
  3345. .elem_len = 1,
  3346. .elem_size = sizeof(u8),
  3347. .array_type = NO_ARRAY,
  3348. .tlv_type = 0x27,
  3349. .offset = offsetof(struct
  3350. wlfw_host_cap_req_msg_v01,
  3351. feature_list_valid),
  3352. },
  3353. {
  3354. .data_type = QMI_UNSIGNED_8_BYTE,
  3355. .elem_len = 1,
  3356. .elem_size = sizeof(u64),
  3357. .array_type = NO_ARRAY,
  3358. .tlv_type = 0x27,
  3359. .offset = offsetof(struct
  3360. wlfw_host_cap_req_msg_v01,
  3361. feature_list),
  3362. },
  3363. {
  3364. .data_type = QMI_OPT_FLAG,
  3365. .elem_len = 1,
  3366. .elem_size = sizeof(u8),
  3367. .array_type = NO_ARRAY,
  3368. .tlv_type = 0x28,
  3369. .offset = offsetof(struct
  3370. wlfw_host_cap_req_msg_v01,
  3371. num_wlan_clients_valid),
  3372. },
  3373. {
  3374. .data_type = QMI_UNSIGNED_2_BYTE,
  3375. .elem_len = 1,
  3376. .elem_size = sizeof(u16),
  3377. .array_type = NO_ARRAY,
  3378. .tlv_type = 0x28,
  3379. .offset = offsetof(struct
  3380. wlfw_host_cap_req_msg_v01,
  3381. num_wlan_clients),
  3382. },
  3383. {
  3384. .data_type = QMI_OPT_FLAG,
  3385. .elem_len = 1,
  3386. .elem_size = sizeof(u8),
  3387. .array_type = NO_ARRAY,
  3388. .tlv_type = 0x29,
  3389. .offset = offsetof(struct
  3390. wlfw_host_cap_req_msg_v01,
  3391. num_wlan_vaps_valid),
  3392. },
  3393. {
  3394. .data_type = QMI_UNSIGNED_1_BYTE,
  3395. .elem_len = 1,
  3396. .elem_size = sizeof(u8),
  3397. .array_type = NO_ARRAY,
  3398. .tlv_type = 0x29,
  3399. .offset = offsetof(struct
  3400. wlfw_host_cap_req_msg_v01,
  3401. num_wlan_vaps),
  3402. },
  3403. {
  3404. .data_type = QMI_OPT_FLAG,
  3405. .elem_len = 1,
  3406. .elem_size = sizeof(u8),
  3407. .array_type = NO_ARRAY,
  3408. .tlv_type = 0x2A,
  3409. .offset = offsetof(struct
  3410. wlfw_host_cap_req_msg_v01,
  3411. wake_msi_addr_valid),
  3412. },
  3413. {
  3414. .data_type = QMI_UNSIGNED_4_BYTE,
  3415. .elem_len = 1,
  3416. .elem_size = sizeof(u32),
  3417. .array_type = NO_ARRAY,
  3418. .tlv_type = 0x2A,
  3419. .offset = offsetof(struct
  3420. wlfw_host_cap_req_msg_v01,
  3421. wake_msi_addr),
  3422. },
  3423. {
  3424. .data_type = QMI_EOTI,
  3425. .array_type = NO_ARRAY,
  3426. .tlv_type = QMI_COMMON_TLV_TYPE,
  3427. },
  3428. };
  3429. EXPORT_SYMBOL(wlfw_host_cap_req_msg_v01_ei);
  3430. struct qmi_elem_info wlfw_host_cap_resp_msg_v01_ei[] = {
  3431. {
  3432. .data_type = QMI_STRUCT,
  3433. .elem_len = 1,
  3434. .elem_size = sizeof(struct qmi_response_type_v01),
  3435. .array_type = NO_ARRAY,
  3436. .tlv_type = 0x02,
  3437. .offset = offsetof(struct
  3438. wlfw_host_cap_resp_msg_v01,
  3439. resp),
  3440. .ei_array = qmi_response_type_v01_ei,
  3441. },
  3442. {
  3443. .data_type = QMI_EOTI,
  3444. .array_type = NO_ARRAY,
  3445. .tlv_type = QMI_COMMON_TLV_TYPE,
  3446. },
  3447. };
  3448. EXPORT_SYMBOL(wlfw_host_cap_resp_msg_v01_ei);
  3449. struct qmi_elem_info wlfw_request_mem_ind_msg_v01_ei[] = {
  3450. {
  3451. .data_type = QMI_DATA_LEN,
  3452. .elem_len = 1,
  3453. .elem_size = sizeof(u8),
  3454. .array_type = NO_ARRAY,
  3455. .tlv_type = 0x01,
  3456. .offset = offsetof(struct
  3457. wlfw_request_mem_ind_msg_v01,
  3458. mem_seg_len),
  3459. },
  3460. {
  3461. .data_type = QMI_STRUCT,
  3462. .elem_len = QMI_WLFW_MAX_NUM_MEM_SEG_V01,
  3463. .elem_size = sizeof(struct wlfw_mem_seg_s_v01),
  3464. .array_type = VAR_LEN_ARRAY,
  3465. .tlv_type = 0x01,
  3466. .offset = offsetof(struct
  3467. wlfw_request_mem_ind_msg_v01,
  3468. mem_seg),
  3469. .ei_array = wlfw_mem_seg_s_v01_ei,
  3470. },
  3471. {
  3472. .data_type = QMI_EOTI,
  3473. .array_type = NO_ARRAY,
  3474. .tlv_type = QMI_COMMON_TLV_TYPE,
  3475. },
  3476. };
  3477. EXPORT_SYMBOL(wlfw_request_mem_ind_msg_v01_ei);
  3478. struct qmi_elem_info wlfw_respond_mem_req_msg_v01_ei[] = {
  3479. {
  3480. .data_type = QMI_DATA_LEN,
  3481. .elem_len = 1,
  3482. .elem_size = sizeof(u8),
  3483. .array_type = NO_ARRAY,
  3484. .tlv_type = 0x01,
  3485. .offset = offsetof(struct
  3486. wlfw_respond_mem_req_msg_v01,
  3487. mem_seg_len),
  3488. },
  3489. {
  3490. .data_type = QMI_STRUCT,
  3491. .elem_len = QMI_WLFW_MAX_NUM_MEM_SEG_V01,
  3492. .elem_size = sizeof(struct wlfw_mem_seg_resp_s_v01),
  3493. .array_type = VAR_LEN_ARRAY,
  3494. .tlv_type = 0x01,
  3495. .offset = offsetof(struct
  3496. wlfw_respond_mem_req_msg_v01,
  3497. mem_seg),
  3498. .ei_array = wlfw_mem_seg_resp_s_v01_ei,
  3499. },
  3500. {
  3501. .data_type = QMI_EOTI,
  3502. .array_type = NO_ARRAY,
  3503. .tlv_type = QMI_COMMON_TLV_TYPE,
  3504. },
  3505. };
  3506. EXPORT_SYMBOL(wlfw_respond_mem_req_msg_v01_ei);
  3507. struct qmi_elem_info wlfw_respond_mem_resp_msg_v01_ei[] = {
  3508. {
  3509. .data_type = QMI_STRUCT,
  3510. .elem_len = 1,
  3511. .elem_size = sizeof(struct qmi_response_type_v01),
  3512. .array_type = NO_ARRAY,
  3513. .tlv_type = 0x02,
  3514. .offset = offsetof(struct
  3515. wlfw_respond_mem_resp_msg_v01,
  3516. resp),
  3517. .ei_array = qmi_response_type_v01_ei,
  3518. },
  3519. {
  3520. .data_type = QMI_EOTI,
  3521. .array_type = NO_ARRAY,
  3522. .tlv_type = QMI_COMMON_TLV_TYPE,
  3523. },
  3524. };
  3525. EXPORT_SYMBOL(wlfw_respond_mem_resp_msg_v01_ei);
  3526. struct qmi_elem_info wlfw_fw_mem_ready_ind_msg_v01_ei[] = {
  3527. {
  3528. .data_type = QMI_EOTI,
  3529. .array_type = NO_ARRAY,
  3530. .tlv_type = QMI_COMMON_TLV_TYPE,
  3531. },
  3532. };
  3533. EXPORT_SYMBOL(wlfw_fw_mem_ready_ind_msg_v01_ei);
  3534. struct qmi_elem_info wlfw_fw_init_done_ind_msg_v01_ei[] = {
  3535. {
  3536. .data_type = QMI_OPT_FLAG,
  3537. .elem_len = 1,
  3538. .elem_size = sizeof(u8),
  3539. .array_type = NO_ARRAY,
  3540. .tlv_type = 0x10,
  3541. .offset = offsetof(struct
  3542. wlfw_fw_init_done_ind_msg_v01,
  3543. hang_data_addr_offset_valid),
  3544. },
  3545. {
  3546. .data_type = QMI_UNSIGNED_4_BYTE,
  3547. .elem_len = 1,
  3548. .elem_size = sizeof(u32),
  3549. .array_type = NO_ARRAY,
  3550. .tlv_type = 0x10,
  3551. .offset = offsetof(struct
  3552. wlfw_fw_init_done_ind_msg_v01,
  3553. hang_data_addr_offset),
  3554. },
  3555. {
  3556. .data_type = QMI_OPT_FLAG,
  3557. .elem_len = 1,
  3558. .elem_size = sizeof(u8),
  3559. .array_type = NO_ARRAY,
  3560. .tlv_type = 0x11,
  3561. .offset = offsetof(struct
  3562. wlfw_fw_init_done_ind_msg_v01,
  3563. hang_data_length_valid),
  3564. },
  3565. {
  3566. .data_type = QMI_UNSIGNED_2_BYTE,
  3567. .elem_len = 1,
  3568. .elem_size = sizeof(u16),
  3569. .array_type = NO_ARRAY,
  3570. .tlv_type = 0x11,
  3571. .offset = offsetof(struct
  3572. wlfw_fw_init_done_ind_msg_v01,
  3573. hang_data_length),
  3574. },
  3575. {
  3576. .data_type = QMI_EOTI,
  3577. .array_type = NO_ARRAY,
  3578. .tlv_type = QMI_COMMON_TLV_TYPE,
  3579. },
  3580. };
  3581. EXPORT_SYMBOL(wlfw_fw_init_done_ind_msg_v01_ei);
  3582. struct qmi_elem_info wlfw_rejuvenate_ind_msg_v01_ei[] = {
  3583. {
  3584. .data_type = QMI_OPT_FLAG,
  3585. .elem_len = 1,
  3586. .elem_size = sizeof(u8),
  3587. .array_type = NO_ARRAY,
  3588. .tlv_type = 0x10,
  3589. .offset = offsetof(struct
  3590. wlfw_rejuvenate_ind_msg_v01,
  3591. cause_for_rejuvenation_valid),
  3592. },
  3593. {
  3594. .data_type = QMI_UNSIGNED_1_BYTE,
  3595. .elem_len = 1,
  3596. .elem_size = sizeof(u8),
  3597. .array_type = NO_ARRAY,
  3598. .tlv_type = 0x10,
  3599. .offset = offsetof(struct
  3600. wlfw_rejuvenate_ind_msg_v01,
  3601. cause_for_rejuvenation),
  3602. },
  3603. {
  3604. .data_type = QMI_OPT_FLAG,
  3605. .elem_len = 1,
  3606. .elem_size = sizeof(u8),
  3607. .array_type = NO_ARRAY,
  3608. .tlv_type = 0x11,
  3609. .offset = offsetof(struct
  3610. wlfw_rejuvenate_ind_msg_v01,
  3611. requesting_sub_system_valid),
  3612. },
  3613. {
  3614. .data_type = QMI_UNSIGNED_1_BYTE,
  3615. .elem_len = 1,
  3616. .elem_size = sizeof(u8),
  3617. .array_type = NO_ARRAY,
  3618. .tlv_type = 0x11,
  3619. .offset = offsetof(struct
  3620. wlfw_rejuvenate_ind_msg_v01,
  3621. requesting_sub_system),
  3622. },
  3623. {
  3624. .data_type = QMI_OPT_FLAG,
  3625. .elem_len = 1,
  3626. .elem_size = sizeof(u8),
  3627. .array_type = NO_ARRAY,
  3628. .tlv_type = 0x12,
  3629. .offset = offsetof(struct
  3630. wlfw_rejuvenate_ind_msg_v01,
  3631. line_number_valid),
  3632. },
  3633. {
  3634. .data_type = QMI_UNSIGNED_2_BYTE,
  3635. .elem_len = 1,
  3636. .elem_size = sizeof(u16),
  3637. .array_type = NO_ARRAY,
  3638. .tlv_type = 0x12,
  3639. .offset = offsetof(struct
  3640. wlfw_rejuvenate_ind_msg_v01,
  3641. line_number),
  3642. },
  3643. {
  3644. .data_type = QMI_OPT_FLAG,
  3645. .elem_len = 1,
  3646. .elem_size = sizeof(u8),
  3647. .array_type = NO_ARRAY,
  3648. .tlv_type = 0x13,
  3649. .offset = offsetof(struct
  3650. wlfw_rejuvenate_ind_msg_v01,
  3651. function_name_valid),
  3652. },
  3653. {
  3654. .data_type = QMI_STRING,
  3655. .elem_len = QMI_WLFW_FUNCTION_NAME_LEN_V01 + 1,
  3656. .elem_size = sizeof(char),
  3657. .array_type = NO_ARRAY,
  3658. .tlv_type = 0x13,
  3659. .offset = offsetof(struct
  3660. wlfw_rejuvenate_ind_msg_v01,
  3661. function_name),
  3662. },
  3663. {
  3664. .data_type = QMI_EOTI,
  3665. .array_type = NO_ARRAY,
  3666. .tlv_type = QMI_COMMON_TLV_TYPE,
  3667. },
  3668. };
  3669. EXPORT_SYMBOL(wlfw_rejuvenate_ind_msg_v01_ei);
  3670. struct qmi_elem_info wlfw_rejuvenate_ack_req_msg_v01_ei[] = {
  3671. {
  3672. .data_type = QMI_EOTI,
  3673. .array_type = NO_ARRAY,
  3674. .tlv_type = QMI_COMMON_TLV_TYPE,
  3675. },
  3676. };
  3677. EXPORT_SYMBOL(wlfw_rejuvenate_ack_req_msg_v01_ei);
  3678. struct qmi_elem_info wlfw_rejuvenate_ack_resp_msg_v01_ei[] = {
  3679. {
  3680. .data_type = QMI_STRUCT,
  3681. .elem_len = 1,
  3682. .elem_size = sizeof(struct qmi_response_type_v01),
  3683. .array_type = NO_ARRAY,
  3684. .tlv_type = 0x02,
  3685. .offset = offsetof(struct
  3686. wlfw_rejuvenate_ack_resp_msg_v01,
  3687. resp),
  3688. .ei_array = qmi_response_type_v01_ei,
  3689. },
  3690. {
  3691. .data_type = QMI_EOTI,
  3692. .array_type = NO_ARRAY,
  3693. .tlv_type = QMI_COMMON_TLV_TYPE,
  3694. },
  3695. };
  3696. EXPORT_SYMBOL(wlfw_rejuvenate_ack_resp_msg_v01_ei);
  3697. struct qmi_elem_info wlfw_dynamic_feature_mask_req_msg_v01_ei[] = {
  3698. {
  3699. .data_type = QMI_OPT_FLAG,
  3700. .elem_len = 1,
  3701. .elem_size = sizeof(u8),
  3702. .array_type = NO_ARRAY,
  3703. .tlv_type = 0x10,
  3704. .offset = offsetof(struct
  3705. wlfw_dynamic_feature_mask_req_msg_v01,
  3706. mask_valid),
  3707. },
  3708. {
  3709. .data_type = QMI_UNSIGNED_8_BYTE,
  3710. .elem_len = 1,
  3711. .elem_size = sizeof(u64),
  3712. .array_type = NO_ARRAY,
  3713. .tlv_type = 0x10,
  3714. .offset = offsetof(struct
  3715. wlfw_dynamic_feature_mask_req_msg_v01,
  3716. mask),
  3717. },
  3718. {
  3719. .data_type = QMI_EOTI,
  3720. .array_type = NO_ARRAY,
  3721. .tlv_type = QMI_COMMON_TLV_TYPE,
  3722. },
  3723. };
  3724. EXPORT_SYMBOL(wlfw_dynamic_feature_mask_req_msg_v01_ei);
  3725. struct qmi_elem_info wlfw_dynamic_feature_mask_resp_msg_v01_ei[] = {
  3726. {
  3727. .data_type = QMI_STRUCT,
  3728. .elem_len = 1,
  3729. .elem_size = sizeof(struct qmi_response_type_v01),
  3730. .array_type = NO_ARRAY,
  3731. .tlv_type = 0x02,
  3732. .offset = offsetof(struct
  3733. wlfw_dynamic_feature_mask_resp_msg_v01,
  3734. resp),
  3735. .ei_array = qmi_response_type_v01_ei,
  3736. },
  3737. {
  3738. .data_type = QMI_OPT_FLAG,
  3739. .elem_len = 1,
  3740. .elem_size = sizeof(u8),
  3741. .array_type = NO_ARRAY,
  3742. .tlv_type = 0x10,
  3743. .offset = offsetof(struct
  3744. wlfw_dynamic_feature_mask_resp_msg_v01,
  3745. prev_mask_valid),
  3746. },
  3747. {
  3748. .data_type = QMI_UNSIGNED_8_BYTE,
  3749. .elem_len = 1,
  3750. .elem_size = sizeof(u64),
  3751. .array_type = NO_ARRAY,
  3752. .tlv_type = 0x10,
  3753. .offset = offsetof(struct
  3754. wlfw_dynamic_feature_mask_resp_msg_v01,
  3755. prev_mask),
  3756. },
  3757. {
  3758. .data_type = QMI_OPT_FLAG,
  3759. .elem_len = 1,
  3760. .elem_size = sizeof(u8),
  3761. .array_type = NO_ARRAY,
  3762. .tlv_type = 0x11,
  3763. .offset = offsetof(struct
  3764. wlfw_dynamic_feature_mask_resp_msg_v01,
  3765. curr_mask_valid),
  3766. },
  3767. {
  3768. .data_type = QMI_UNSIGNED_8_BYTE,
  3769. .elem_len = 1,
  3770. .elem_size = sizeof(u64),
  3771. .array_type = NO_ARRAY,
  3772. .tlv_type = 0x11,
  3773. .offset = offsetof(struct
  3774. wlfw_dynamic_feature_mask_resp_msg_v01,
  3775. curr_mask),
  3776. },
  3777. {
  3778. .data_type = QMI_EOTI,
  3779. .array_type = NO_ARRAY,
  3780. .tlv_type = QMI_COMMON_TLV_TYPE,
  3781. },
  3782. };
  3783. EXPORT_SYMBOL(wlfw_dynamic_feature_mask_resp_msg_v01_ei);
  3784. struct qmi_elem_info wlfw_m3_info_req_msg_v01_ei[] = {
  3785. {
  3786. .data_type = QMI_UNSIGNED_8_BYTE,
  3787. .elem_len = 1,
  3788. .elem_size = sizeof(u64),
  3789. .array_type = NO_ARRAY,
  3790. .tlv_type = 0x01,
  3791. .offset = offsetof(struct
  3792. wlfw_m3_info_req_msg_v01,
  3793. addr),
  3794. },
  3795. {
  3796. .data_type = QMI_UNSIGNED_4_BYTE,
  3797. .elem_len = 1,
  3798. .elem_size = sizeof(u32),
  3799. .array_type = NO_ARRAY,
  3800. .tlv_type = 0x02,
  3801. .offset = offsetof(struct
  3802. wlfw_m3_info_req_msg_v01,
  3803. size),
  3804. },
  3805. {
  3806. .data_type = QMI_EOTI,
  3807. .array_type = NO_ARRAY,
  3808. .tlv_type = QMI_COMMON_TLV_TYPE,
  3809. },
  3810. };
  3811. EXPORT_SYMBOL(wlfw_m3_info_req_msg_v01_ei);
  3812. struct qmi_elem_info wlfw_m3_info_resp_msg_v01_ei[] = {
  3813. {
  3814. .data_type = QMI_STRUCT,
  3815. .elem_len = 1,
  3816. .elem_size = sizeof(struct qmi_response_type_v01),
  3817. .array_type = NO_ARRAY,
  3818. .tlv_type = 0x02,
  3819. .offset = offsetof(struct
  3820. wlfw_m3_info_resp_msg_v01,
  3821. resp),
  3822. .ei_array = qmi_response_type_v01_ei,
  3823. },
  3824. {
  3825. .data_type = QMI_EOTI,
  3826. .array_type = NO_ARRAY,
  3827. .tlv_type = QMI_COMMON_TLV_TYPE,
  3828. },
  3829. };
  3830. EXPORT_SYMBOL(wlfw_m3_info_resp_msg_v01_ei);
  3831. struct qmi_elem_info wlfw_xo_cal_ind_msg_v01_ei[] = {
  3832. {
  3833. .data_type = QMI_UNSIGNED_1_BYTE,
  3834. .elem_len = 1,
  3835. .elem_size = sizeof(u8),
  3836. .array_type = NO_ARRAY,
  3837. .tlv_type = 0x01,
  3838. .offset = offsetof(struct
  3839. wlfw_xo_cal_ind_msg_v01,
  3840. xo_cal_data),
  3841. },
  3842. {
  3843. .data_type = QMI_EOTI,
  3844. .array_type = NO_ARRAY,
  3845. .tlv_type = QMI_COMMON_TLV_TYPE,
  3846. },
  3847. };
  3848. EXPORT_SYMBOL(wlfw_xo_cal_ind_msg_v01_ei);
  3849. struct qmi_elem_info wlfw_cal_done_ind_msg_v01_ei[] = {
  3850. {
  3851. .data_type = QMI_OPT_FLAG,
  3852. .elem_len = 1,
  3853. .elem_size = sizeof(u8),
  3854. .array_type = NO_ARRAY,
  3855. .tlv_type = 0x10,
  3856. .offset = offsetof(struct
  3857. wlfw_cal_done_ind_msg_v01,
  3858. cal_file_upload_size_valid),
  3859. },
  3860. {
  3861. .data_type = QMI_UNSIGNED_8_BYTE,
  3862. .elem_len = 1,
  3863. .elem_size = sizeof(u64),
  3864. .array_type = NO_ARRAY,
  3865. .tlv_type = 0x10,
  3866. .offset = offsetof(struct
  3867. wlfw_cal_done_ind_msg_v01,
  3868. cal_file_upload_size),
  3869. },
  3870. {
  3871. .data_type = QMI_EOTI,
  3872. .array_type = NO_ARRAY,
  3873. .tlv_type = QMI_COMMON_TLV_TYPE,
  3874. },
  3875. };
  3876. EXPORT_SYMBOL(wlfw_cal_done_ind_msg_v01_ei);
  3877. struct qmi_elem_info wlfw_qdss_trace_req_mem_ind_msg_v01_ei[] = {
  3878. {
  3879. .data_type = QMI_DATA_LEN,
  3880. .elem_len = 1,
  3881. .elem_size = sizeof(u8),
  3882. .array_type = NO_ARRAY,
  3883. .tlv_type = 0x01,
  3884. .offset = offsetof(struct
  3885. wlfw_qdss_trace_req_mem_ind_msg_v01,
  3886. mem_seg_len),
  3887. },
  3888. {
  3889. .data_type = QMI_STRUCT,
  3890. .elem_len = QMI_WLFW_MAX_NUM_MEM_SEG_V01,
  3891. .elem_size = sizeof(struct wlfw_mem_seg_s_v01),
  3892. .array_type = VAR_LEN_ARRAY,
  3893. .tlv_type = 0x01,
  3894. .offset = offsetof(struct
  3895. wlfw_qdss_trace_req_mem_ind_msg_v01,
  3896. mem_seg),
  3897. .ei_array = wlfw_mem_seg_s_v01_ei,
  3898. },
  3899. {
  3900. .data_type = QMI_EOTI,
  3901. .array_type = NO_ARRAY,
  3902. .tlv_type = QMI_COMMON_TLV_TYPE,
  3903. },
  3904. };
  3905. EXPORT_SYMBOL(wlfw_qdss_trace_req_mem_ind_msg_v01_ei);
  3906. struct qmi_elem_info wlfw_qdss_trace_mem_info_req_msg_v01_ei[] = {
  3907. {
  3908. .data_type = QMI_DATA_LEN,
  3909. .elem_len = 1,
  3910. .elem_size = sizeof(u8),
  3911. .array_type = NO_ARRAY,
  3912. .tlv_type = 0x01,
  3913. .offset = offsetof(struct
  3914. wlfw_qdss_trace_mem_info_req_msg_v01,
  3915. mem_seg_len),
  3916. },
  3917. {
  3918. .data_type = QMI_STRUCT,
  3919. .elem_len = QMI_WLFW_MAX_NUM_MEM_SEG_V01,
  3920. .elem_size = sizeof(struct wlfw_mem_seg_resp_s_v01),
  3921. .array_type = VAR_LEN_ARRAY,
  3922. .tlv_type = 0x01,
  3923. .offset = offsetof(struct
  3924. wlfw_qdss_trace_mem_info_req_msg_v01,
  3925. mem_seg),
  3926. .ei_array = wlfw_mem_seg_resp_s_v01_ei,
  3927. },
  3928. {
  3929. .data_type = QMI_EOTI,
  3930. .array_type = NO_ARRAY,
  3931. .tlv_type = QMI_COMMON_TLV_TYPE,
  3932. },
  3933. };
  3934. EXPORT_SYMBOL(wlfw_qdss_trace_mem_info_req_msg_v01_ei);
  3935. struct qmi_elem_info wlfw_qdss_trace_mem_info_resp_msg_v01_ei[] = {
  3936. {
  3937. .data_type = QMI_STRUCT,
  3938. .elem_len = 1,
  3939. .elem_size = sizeof(struct qmi_response_type_v01),
  3940. .array_type = NO_ARRAY,
  3941. .tlv_type = 0x02,
  3942. .offset = offsetof(struct
  3943. wlfw_qdss_trace_mem_info_resp_msg_v01,
  3944. resp),
  3945. .ei_array = qmi_response_type_v01_ei,
  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_qdss_trace_mem_info_resp_msg_v01_ei);
  3954. struct qmi_elem_info wlfw_qdss_trace_save_ind_msg_v01_ei[] = {
  3955. {
  3956. .data_type = QMI_UNSIGNED_4_BYTE,
  3957. .elem_len = 1,
  3958. .elem_size = sizeof(u32),
  3959. .array_type = NO_ARRAY,
  3960. .tlv_type = 0x01,
  3961. .offset = offsetof(struct
  3962. wlfw_qdss_trace_save_ind_msg_v01,
  3963. source),
  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_qdss_trace_save_ind_msg_v01,
  3973. total_size),
  3974. },
  3975. {
  3976. .data_type = QMI_OPT_FLAG,
  3977. .elem_len = 1,
  3978. .elem_size = sizeof(u8),
  3979. .array_type = NO_ARRAY,
  3980. .tlv_type = 0x10,
  3981. .offset = offsetof(struct
  3982. wlfw_qdss_trace_save_ind_msg_v01,
  3983. mem_seg_valid),
  3984. },
  3985. {
  3986. .data_type = QMI_DATA_LEN,
  3987. .elem_len = 1,
  3988. .elem_size = sizeof(u8),
  3989. .array_type = NO_ARRAY,
  3990. .tlv_type = 0x10,
  3991. .offset = offsetof(struct
  3992. wlfw_qdss_trace_save_ind_msg_v01,
  3993. mem_seg_len),
  3994. },
  3995. {
  3996. .data_type = QMI_STRUCT,
  3997. .elem_len = QMI_WLFW_MAX_NUM_MEM_SEG_V01,
  3998. .elem_size = sizeof(struct wlfw_mem_seg_resp_s_v01),
  3999. .array_type = VAR_LEN_ARRAY,
  4000. .tlv_type = 0x10,
  4001. .offset = offsetof(struct
  4002. wlfw_qdss_trace_save_ind_msg_v01,
  4003. mem_seg),
  4004. .ei_array = wlfw_mem_seg_resp_s_v01_ei,
  4005. },
  4006. {
  4007. .data_type = QMI_OPT_FLAG,
  4008. .elem_len = 1,
  4009. .elem_size = sizeof(u8),
  4010. .array_type = NO_ARRAY,
  4011. .tlv_type = 0x11,
  4012. .offset = offsetof(struct
  4013. wlfw_qdss_trace_save_ind_msg_v01,
  4014. file_name_valid),
  4015. },
  4016. {
  4017. .data_type = QMI_STRING,
  4018. .elem_len = QMI_WLFW_MAX_STR_LEN_V01 + 1,
  4019. .elem_size = sizeof(char),
  4020. .array_type = NO_ARRAY,
  4021. .tlv_type = 0x11,
  4022. .offset = offsetof(struct
  4023. wlfw_qdss_trace_save_ind_msg_v01,
  4024. file_name),
  4025. },
  4026. {
  4027. .data_type = QMI_EOTI,
  4028. .array_type = NO_ARRAY,
  4029. .tlv_type = QMI_COMMON_TLV_TYPE,
  4030. },
  4031. };
  4032. EXPORT_SYMBOL(wlfw_qdss_trace_save_ind_msg_v01_ei);
  4033. struct qmi_elem_info wlfw_qdss_trace_data_req_msg_v01_ei[] = {
  4034. {
  4035. .data_type = QMI_UNSIGNED_4_BYTE,
  4036. .elem_len = 1,
  4037. .elem_size = sizeof(u32),
  4038. .array_type = NO_ARRAY,
  4039. .tlv_type = 0x01,
  4040. .offset = offsetof(struct
  4041. wlfw_qdss_trace_data_req_msg_v01,
  4042. seg_id),
  4043. },
  4044. {
  4045. .data_type = QMI_EOTI,
  4046. .array_type = NO_ARRAY,
  4047. .tlv_type = QMI_COMMON_TLV_TYPE,
  4048. },
  4049. };
  4050. EXPORT_SYMBOL(wlfw_qdss_trace_data_req_msg_v01_ei);
  4051. struct qmi_elem_info wlfw_qdss_trace_data_resp_msg_v01_ei[] = {
  4052. {
  4053. .data_type = QMI_STRUCT,
  4054. .elem_len = 1,
  4055. .elem_size = sizeof(struct qmi_response_type_v01),
  4056. .array_type = NO_ARRAY,
  4057. .tlv_type = 0x02,
  4058. .offset = offsetof(struct
  4059. wlfw_qdss_trace_data_resp_msg_v01,
  4060. resp),
  4061. .ei_array = qmi_response_type_v01_ei,
  4062. },
  4063. {
  4064. .data_type = QMI_OPT_FLAG,
  4065. .elem_len = 1,
  4066. .elem_size = sizeof(u8),
  4067. .array_type = NO_ARRAY,
  4068. .tlv_type = 0x10,
  4069. .offset = offsetof(struct
  4070. wlfw_qdss_trace_data_resp_msg_v01,
  4071. total_size_valid),
  4072. },
  4073. {
  4074. .data_type = QMI_UNSIGNED_4_BYTE,
  4075. .elem_len = 1,
  4076. .elem_size = sizeof(u32),
  4077. .array_type = NO_ARRAY,
  4078. .tlv_type = 0x10,
  4079. .offset = offsetof(struct
  4080. wlfw_qdss_trace_data_resp_msg_v01,
  4081. total_size),
  4082. },
  4083. {
  4084. .data_type = QMI_OPT_FLAG,
  4085. .elem_len = 1,
  4086. .elem_size = sizeof(u8),
  4087. .array_type = NO_ARRAY,
  4088. .tlv_type = 0x11,
  4089. .offset = offsetof(struct
  4090. wlfw_qdss_trace_data_resp_msg_v01,
  4091. seg_id_valid),
  4092. },
  4093. {
  4094. .data_type = QMI_UNSIGNED_4_BYTE,
  4095. .elem_len = 1,
  4096. .elem_size = sizeof(u32),
  4097. .array_type = NO_ARRAY,
  4098. .tlv_type = 0x11,
  4099. .offset = offsetof(struct
  4100. wlfw_qdss_trace_data_resp_msg_v01,
  4101. seg_id),
  4102. },
  4103. {
  4104. .data_type = QMI_OPT_FLAG,
  4105. .elem_len = 1,
  4106. .elem_size = sizeof(u8),
  4107. .array_type = NO_ARRAY,
  4108. .tlv_type = 0x12,
  4109. .offset = offsetof(struct
  4110. wlfw_qdss_trace_data_resp_msg_v01,
  4111. data_valid),
  4112. },
  4113. {
  4114. .data_type = QMI_DATA_LEN,
  4115. .elem_len = 1,
  4116. .elem_size = sizeof(u16),
  4117. .array_type = NO_ARRAY,
  4118. .tlv_type = 0x12,
  4119. .offset = offsetof(struct
  4120. wlfw_qdss_trace_data_resp_msg_v01,
  4121. data_len),
  4122. },
  4123. {
  4124. .data_type = QMI_UNSIGNED_1_BYTE,
  4125. .elem_len = QMI_WLFW_MAX_DATA_SIZE_V01,
  4126. .elem_size = sizeof(u8),
  4127. .array_type = VAR_LEN_ARRAY,
  4128. .tlv_type = 0x12,
  4129. .offset = offsetof(struct
  4130. wlfw_qdss_trace_data_resp_msg_v01,
  4131. data),
  4132. },
  4133. {
  4134. .data_type = QMI_OPT_FLAG,
  4135. .elem_len = 1,
  4136. .elem_size = sizeof(u8),
  4137. .array_type = NO_ARRAY,
  4138. .tlv_type = 0x13,
  4139. .offset = offsetof(struct
  4140. wlfw_qdss_trace_data_resp_msg_v01,
  4141. end_valid),
  4142. },
  4143. {
  4144. .data_type = QMI_UNSIGNED_1_BYTE,
  4145. .elem_len = 1,
  4146. .elem_size = sizeof(u8),
  4147. .array_type = NO_ARRAY,
  4148. .tlv_type = 0x13,
  4149. .offset = offsetof(struct
  4150. wlfw_qdss_trace_data_resp_msg_v01,
  4151. end),
  4152. },
  4153. {
  4154. .data_type = QMI_EOTI,
  4155. .array_type = NO_ARRAY,
  4156. .tlv_type = QMI_COMMON_TLV_TYPE,
  4157. },
  4158. };
  4159. EXPORT_SYMBOL(wlfw_qdss_trace_data_resp_msg_v01_ei);
  4160. struct qmi_elem_info wlfw_qdss_trace_config_download_req_msg_v01_ei[] = {
  4161. {
  4162. .data_type = QMI_OPT_FLAG,
  4163. .elem_len = 1,
  4164. .elem_size = sizeof(u8),
  4165. .array_type = NO_ARRAY,
  4166. .tlv_type = 0x10,
  4167. .offset = offsetof(struct
  4168. wlfw_qdss_trace_config_download_req_msg_v01,
  4169. total_size_valid),
  4170. },
  4171. {
  4172. .data_type = QMI_UNSIGNED_4_BYTE,
  4173. .elem_len = 1,
  4174. .elem_size = sizeof(u32),
  4175. .array_type = NO_ARRAY,
  4176. .tlv_type = 0x10,
  4177. .offset = offsetof(struct
  4178. wlfw_qdss_trace_config_download_req_msg_v01,
  4179. total_size),
  4180. },
  4181. {
  4182. .data_type = QMI_OPT_FLAG,
  4183. .elem_len = 1,
  4184. .elem_size = sizeof(u8),
  4185. .array_type = NO_ARRAY,
  4186. .tlv_type = 0x11,
  4187. .offset = offsetof(struct
  4188. wlfw_qdss_trace_config_download_req_msg_v01,
  4189. seg_id_valid),
  4190. },
  4191. {
  4192. .data_type = QMI_UNSIGNED_4_BYTE,
  4193. .elem_len = 1,
  4194. .elem_size = sizeof(u32),
  4195. .array_type = NO_ARRAY,
  4196. .tlv_type = 0x11,
  4197. .offset = offsetof(struct
  4198. wlfw_qdss_trace_config_download_req_msg_v01,
  4199. seg_id),
  4200. },
  4201. {
  4202. .data_type = QMI_OPT_FLAG,
  4203. .elem_len = 1,
  4204. .elem_size = sizeof(u8),
  4205. .array_type = NO_ARRAY,
  4206. .tlv_type = 0x12,
  4207. .offset = offsetof(struct
  4208. wlfw_qdss_trace_config_download_req_msg_v01,
  4209. data_valid),
  4210. },
  4211. {
  4212. .data_type = QMI_DATA_LEN,
  4213. .elem_len = 1,
  4214. .elem_size = sizeof(u16),
  4215. .array_type = NO_ARRAY,
  4216. .tlv_type = 0x12,
  4217. .offset = offsetof(struct
  4218. wlfw_qdss_trace_config_download_req_msg_v01,
  4219. data_len),
  4220. },
  4221. {
  4222. .data_type = QMI_UNSIGNED_1_BYTE,
  4223. .elem_len = QMI_WLFW_MAX_DATA_SIZE_V01,
  4224. .elem_size = sizeof(u8),
  4225. .array_type = VAR_LEN_ARRAY,
  4226. .tlv_type = 0x12,
  4227. .offset = offsetof(struct
  4228. wlfw_qdss_trace_config_download_req_msg_v01,
  4229. data),
  4230. },
  4231. {
  4232. .data_type = QMI_OPT_FLAG,
  4233. .elem_len = 1,
  4234. .elem_size = sizeof(u8),
  4235. .array_type = NO_ARRAY,
  4236. .tlv_type = 0x13,
  4237. .offset = offsetof(struct
  4238. wlfw_qdss_trace_config_download_req_msg_v01,
  4239. end_valid),
  4240. },
  4241. {
  4242. .data_type = QMI_UNSIGNED_1_BYTE,
  4243. .elem_len = 1,
  4244. .elem_size = sizeof(u8),
  4245. .array_type = NO_ARRAY,
  4246. .tlv_type = 0x13,
  4247. .offset = offsetof(struct
  4248. wlfw_qdss_trace_config_download_req_msg_v01,
  4249. end),
  4250. },
  4251. {
  4252. .data_type = QMI_EOTI,
  4253. .array_type = NO_ARRAY,
  4254. .tlv_type = QMI_COMMON_TLV_TYPE,
  4255. },
  4256. };
  4257. EXPORT_SYMBOL(wlfw_qdss_trace_config_download_req_msg_v01_ei);
  4258. struct qmi_elem_info wlfw_qdss_trace_config_download_resp_msg_v01_ei[] = {
  4259. {
  4260. .data_type = QMI_STRUCT,
  4261. .elem_len = 1,
  4262. .elem_size = sizeof(struct qmi_response_type_v01),
  4263. .array_type = NO_ARRAY,
  4264. .tlv_type = 0x02,
  4265. .offset = offsetof(struct
  4266. wlfw_qdss_trace_config_download_resp_msg_v01,
  4267. resp),
  4268. .ei_array = qmi_response_type_v01_ei,
  4269. },
  4270. {
  4271. .data_type = QMI_EOTI,
  4272. .array_type = NO_ARRAY,
  4273. .tlv_type = QMI_COMMON_TLV_TYPE,
  4274. },
  4275. };
  4276. EXPORT_SYMBOL(wlfw_qdss_trace_config_download_resp_msg_v01_ei);
  4277. struct qmi_elem_info wlfw_qdss_trace_mode_req_msg_v01_ei[] = {
  4278. {
  4279. .data_type = QMI_OPT_FLAG,
  4280. .elem_len = 1,
  4281. .elem_size = sizeof(u8),
  4282. .array_type = NO_ARRAY,
  4283. .tlv_type = 0x10,
  4284. .offset = offsetof(struct
  4285. wlfw_qdss_trace_mode_req_msg_v01,
  4286. mode_valid),
  4287. },
  4288. {
  4289. .data_type = QMI_SIGNED_4_BYTE_ENUM,
  4290. .elem_len = 1,
  4291. .elem_size = sizeof(enum wlfw_qdss_trace_mode_enum_v01),
  4292. .array_type = NO_ARRAY,
  4293. .tlv_type = 0x10,
  4294. .offset = offsetof(struct
  4295. wlfw_qdss_trace_mode_req_msg_v01,
  4296. mode),
  4297. },
  4298. {
  4299. .data_type = QMI_OPT_FLAG,
  4300. .elem_len = 1,
  4301. .elem_size = sizeof(u8),
  4302. .array_type = NO_ARRAY,
  4303. .tlv_type = 0x11,
  4304. .offset = offsetof(struct
  4305. wlfw_qdss_trace_mode_req_msg_v01,
  4306. option_valid),
  4307. },
  4308. {
  4309. .data_type = QMI_UNSIGNED_8_BYTE,
  4310. .elem_len = 1,
  4311. .elem_size = sizeof(u64),
  4312. .array_type = NO_ARRAY,
  4313. .tlv_type = 0x11,
  4314. .offset = offsetof(struct
  4315. wlfw_qdss_trace_mode_req_msg_v01,
  4316. option),
  4317. },
  4318. {
  4319. .data_type = QMI_OPT_FLAG,
  4320. .elem_len = 1,
  4321. .elem_size = sizeof(u8),
  4322. .array_type = NO_ARRAY,
  4323. .tlv_type = 0x12,
  4324. .offset = offsetof(struct
  4325. wlfw_qdss_trace_mode_req_msg_v01,
  4326. hw_trc_disable_override_valid),
  4327. },
  4328. {
  4329. .data_type = QMI_SIGNED_4_BYTE_ENUM,
  4330. .elem_len = 1,
  4331. .elem_size = sizeof(enum wlfw_qmi_param_value_v01),
  4332. .array_type = NO_ARRAY,
  4333. .tlv_type = 0x12,
  4334. .offset = offsetof(struct
  4335. wlfw_qdss_trace_mode_req_msg_v01,
  4336. hw_trc_disable_override),
  4337. },
  4338. {
  4339. .data_type = QMI_EOTI,
  4340. .array_type = NO_ARRAY,
  4341. .tlv_type = QMI_COMMON_TLV_TYPE,
  4342. },
  4343. };
  4344. EXPORT_SYMBOL(wlfw_qdss_trace_mode_req_msg_v01_ei);
  4345. struct qmi_elem_info wlfw_qdss_trace_mode_resp_msg_v01_ei[] = {
  4346. {
  4347. .data_type = QMI_STRUCT,
  4348. .elem_len = 1,
  4349. .elem_size = sizeof(struct qmi_response_type_v01),
  4350. .array_type = NO_ARRAY,
  4351. .tlv_type = 0x02,
  4352. .offset = offsetof(struct
  4353. wlfw_qdss_trace_mode_resp_msg_v01,
  4354. resp),
  4355. .ei_array = qmi_response_type_v01_ei,
  4356. },
  4357. {
  4358. .data_type = QMI_EOTI,
  4359. .array_type = NO_ARRAY,
  4360. .tlv_type = QMI_COMMON_TLV_TYPE,
  4361. },
  4362. };
  4363. EXPORT_SYMBOL(wlfw_qdss_trace_mode_resp_msg_v01_ei);
  4364. struct qmi_elem_info wlfw_qdss_trace_free_ind_msg_v01_ei[] = {
  4365. {
  4366. .data_type = QMI_OPT_FLAG,
  4367. .elem_len = 1,
  4368. .elem_size = sizeof(u8),
  4369. .array_type = NO_ARRAY,
  4370. .tlv_type = 0x10,
  4371. .offset = offsetof(struct
  4372. wlfw_qdss_trace_free_ind_msg_v01,
  4373. mem_seg_valid),
  4374. },
  4375. {
  4376. .data_type = QMI_DATA_LEN,
  4377. .elem_len = 1,
  4378. .elem_size = sizeof(u8),
  4379. .array_type = NO_ARRAY,
  4380. .tlv_type = 0x10,
  4381. .offset = offsetof(struct
  4382. wlfw_qdss_trace_free_ind_msg_v01,
  4383. mem_seg_len),
  4384. },
  4385. {
  4386. .data_type = QMI_STRUCT,
  4387. .elem_len = QMI_WLFW_MAX_NUM_MEM_SEG_V01,
  4388. .elem_size = sizeof(struct wlfw_mem_seg_resp_s_v01),
  4389. .array_type = VAR_LEN_ARRAY,
  4390. .tlv_type = 0x10,
  4391. .offset = offsetof(struct
  4392. wlfw_qdss_trace_free_ind_msg_v01,
  4393. mem_seg),
  4394. .ei_array = wlfw_mem_seg_resp_s_v01_ei,
  4395. },
  4396. {
  4397. .data_type = QMI_EOTI,
  4398. .array_type = NO_ARRAY,
  4399. .tlv_type = QMI_COMMON_TLV_TYPE,
  4400. },
  4401. };
  4402. EXPORT_SYMBOL(wlfw_qdss_trace_free_ind_msg_v01_ei);
  4403. struct qmi_elem_info wlfw_shutdown_req_msg_v01_ei[] = {
  4404. {
  4405. .data_type = QMI_OPT_FLAG,
  4406. .elem_len = 1,
  4407. .elem_size = sizeof(u8),
  4408. .array_type = NO_ARRAY,
  4409. .tlv_type = 0x10,
  4410. .offset = offsetof(struct
  4411. wlfw_shutdown_req_msg_v01,
  4412. shutdown_valid),
  4413. },
  4414. {
  4415. .data_type = QMI_UNSIGNED_1_BYTE,
  4416. .elem_len = 1,
  4417. .elem_size = sizeof(u8),
  4418. .array_type = NO_ARRAY,
  4419. .tlv_type = 0x10,
  4420. .offset = offsetof(struct
  4421. wlfw_shutdown_req_msg_v01,
  4422. shutdown),
  4423. },
  4424. {
  4425. .data_type = QMI_EOTI,
  4426. .array_type = NO_ARRAY,
  4427. .tlv_type = QMI_COMMON_TLV_TYPE,
  4428. },
  4429. };
  4430. EXPORT_SYMBOL(wlfw_shutdown_req_msg_v01_ei);
  4431. struct qmi_elem_info wlfw_shutdown_resp_msg_v01_ei[] = {
  4432. {
  4433. .data_type = QMI_STRUCT,
  4434. .elem_len = 1,
  4435. .elem_size = sizeof(struct qmi_response_type_v01),
  4436. .array_type = NO_ARRAY,
  4437. .tlv_type = 0x02,
  4438. .offset = offsetof(struct
  4439. wlfw_shutdown_resp_msg_v01,
  4440. resp),
  4441. .ei_array = qmi_response_type_v01_ei,
  4442. },
  4443. {
  4444. .data_type = QMI_EOTI,
  4445. .array_type = NO_ARRAY,
  4446. .tlv_type = QMI_COMMON_TLV_TYPE,
  4447. },
  4448. };
  4449. EXPORT_SYMBOL(wlfw_shutdown_resp_msg_v01_ei);
  4450. struct qmi_elem_info wlfw_antenna_switch_req_msg_v01_ei[] = {
  4451. {
  4452. .data_type = QMI_EOTI,
  4453. .array_type = NO_ARRAY,
  4454. .tlv_type = QMI_COMMON_TLV_TYPE,
  4455. },
  4456. };
  4457. EXPORT_SYMBOL(wlfw_antenna_switch_req_msg_v01_ei);
  4458. struct qmi_elem_info wlfw_antenna_switch_resp_msg_v01_ei[] = {
  4459. {
  4460. .data_type = QMI_STRUCT,
  4461. .elem_len = 1,
  4462. .elem_size = sizeof(struct qmi_response_type_v01),
  4463. .array_type = NO_ARRAY,
  4464. .tlv_type = 0x02,
  4465. .offset = offsetof(struct
  4466. wlfw_antenna_switch_resp_msg_v01,
  4467. resp),
  4468. .ei_array = qmi_response_type_v01_ei,
  4469. },
  4470. {
  4471. .data_type = QMI_OPT_FLAG,
  4472. .elem_len = 1,
  4473. .elem_size = sizeof(u8),
  4474. .array_type = NO_ARRAY,
  4475. .tlv_type = 0x10,
  4476. .offset = offsetof(struct
  4477. wlfw_antenna_switch_resp_msg_v01,
  4478. antenna_valid),
  4479. },
  4480. {
  4481. .data_type = QMI_UNSIGNED_8_BYTE,
  4482. .elem_len = 1,
  4483. .elem_size = sizeof(u64),
  4484. .array_type = NO_ARRAY,
  4485. .tlv_type = 0x10,
  4486. .offset = offsetof(struct
  4487. wlfw_antenna_switch_resp_msg_v01,
  4488. antenna),
  4489. },
  4490. {
  4491. .data_type = QMI_EOTI,
  4492. .array_type = NO_ARRAY,
  4493. .tlv_type = QMI_COMMON_TLV_TYPE,
  4494. },
  4495. };
  4496. EXPORT_SYMBOL(wlfw_antenna_switch_resp_msg_v01_ei);
  4497. struct qmi_elem_info wlfw_antenna_grant_req_msg_v01_ei[] = {
  4498. {
  4499. .data_type = QMI_OPT_FLAG,
  4500. .elem_len = 1,
  4501. .elem_size = sizeof(u8),
  4502. .array_type = NO_ARRAY,
  4503. .tlv_type = 0x10,
  4504. .offset = offsetof(struct
  4505. wlfw_antenna_grant_req_msg_v01,
  4506. grant_valid),
  4507. },
  4508. {
  4509. .data_type = QMI_UNSIGNED_8_BYTE,
  4510. .elem_len = 1,
  4511. .elem_size = sizeof(u64),
  4512. .array_type = NO_ARRAY,
  4513. .tlv_type = 0x10,
  4514. .offset = offsetof(struct
  4515. wlfw_antenna_grant_req_msg_v01,
  4516. grant),
  4517. },
  4518. {
  4519. .data_type = QMI_EOTI,
  4520. .array_type = NO_ARRAY,
  4521. .tlv_type = QMI_COMMON_TLV_TYPE,
  4522. },
  4523. };
  4524. EXPORT_SYMBOL(wlfw_antenna_grant_req_msg_v01_ei);
  4525. struct qmi_elem_info wlfw_antenna_grant_resp_msg_v01_ei[] = {
  4526. {
  4527. .data_type = QMI_STRUCT,
  4528. .elem_len = 1,
  4529. .elem_size = sizeof(struct qmi_response_type_v01),
  4530. .array_type = NO_ARRAY,
  4531. .tlv_type = 0x02,
  4532. .offset = offsetof(struct
  4533. wlfw_antenna_grant_resp_msg_v01,
  4534. resp),
  4535. .ei_array = qmi_response_type_v01_ei,
  4536. },
  4537. {
  4538. .data_type = QMI_EOTI,
  4539. .array_type = NO_ARRAY,
  4540. .tlv_type = QMI_COMMON_TLV_TYPE,
  4541. },
  4542. };
  4543. EXPORT_SYMBOL(wlfw_antenna_grant_resp_msg_v01_ei);
  4544. struct qmi_elem_info wlfw_wfc_call_status_req_msg_v01_ei[] = {
  4545. {
  4546. .data_type = QMI_DATA_LEN,
  4547. .elem_len = 1,
  4548. .elem_size = sizeof(u16),
  4549. .array_type = NO_ARRAY,
  4550. .tlv_type = 0x01,
  4551. .offset = offsetof(struct
  4552. wlfw_wfc_call_status_req_msg_v01,
  4553. wfc_call_status_len),
  4554. },
  4555. {
  4556. .data_type = QMI_UNSIGNED_1_BYTE,
  4557. .elem_len = QMI_WLFW_MAX_WFC_CALL_STATUS_DATA_SIZE_V01,
  4558. .elem_size = sizeof(u8),
  4559. .array_type = VAR_LEN_ARRAY,
  4560. .tlv_type = 0x01,
  4561. .offset = offsetof(struct
  4562. wlfw_wfc_call_status_req_msg_v01,
  4563. wfc_call_status),
  4564. },
  4565. {
  4566. .data_type = QMI_OPT_FLAG,
  4567. .elem_len = 1,
  4568. .elem_size = sizeof(u8),
  4569. .array_type = NO_ARRAY,
  4570. .tlv_type = 0x10,
  4571. .offset = offsetof(struct
  4572. wlfw_wfc_call_status_req_msg_v01,
  4573. wfc_call_active_valid),
  4574. },
  4575. {
  4576. .data_type = QMI_UNSIGNED_1_BYTE,
  4577. .elem_len = 1,
  4578. .elem_size = sizeof(u8),
  4579. .array_type = NO_ARRAY,
  4580. .tlv_type = 0x10,
  4581. .offset = offsetof(struct
  4582. wlfw_wfc_call_status_req_msg_v01,
  4583. wfc_call_active),
  4584. },
  4585. {
  4586. .data_type = QMI_OPT_FLAG,
  4587. .elem_len = 1,
  4588. .elem_size = sizeof(u8),
  4589. .array_type = NO_ARRAY,
  4590. .tlv_type = 0x11,
  4591. .offset = offsetof(struct
  4592. wlfw_wfc_call_status_req_msg_v01,
  4593. all_wfc_calls_held_valid),
  4594. },
  4595. {
  4596. .data_type = QMI_UNSIGNED_1_BYTE,
  4597. .elem_len = 1,
  4598. .elem_size = sizeof(u8),
  4599. .array_type = NO_ARRAY,
  4600. .tlv_type = 0x11,
  4601. .offset = offsetof(struct
  4602. wlfw_wfc_call_status_req_msg_v01,
  4603. all_wfc_calls_held),
  4604. },
  4605. {
  4606. .data_type = QMI_OPT_FLAG,
  4607. .elem_len = 1,
  4608. .elem_size = sizeof(u8),
  4609. .array_type = NO_ARRAY,
  4610. .tlv_type = 0x12,
  4611. .offset = offsetof(struct
  4612. wlfw_wfc_call_status_req_msg_v01,
  4613. is_wfc_emergency_valid),
  4614. },
  4615. {
  4616. .data_type = QMI_UNSIGNED_1_BYTE,
  4617. .elem_len = 1,
  4618. .elem_size = sizeof(u8),
  4619. .array_type = NO_ARRAY,
  4620. .tlv_type = 0x12,
  4621. .offset = offsetof(struct
  4622. wlfw_wfc_call_status_req_msg_v01,
  4623. is_wfc_emergency),
  4624. },
  4625. {
  4626. .data_type = QMI_OPT_FLAG,
  4627. .elem_len = 1,
  4628. .elem_size = sizeof(u8),
  4629. .array_type = NO_ARRAY,
  4630. .tlv_type = 0x13,
  4631. .offset = offsetof(struct
  4632. wlfw_wfc_call_status_req_msg_v01,
  4633. twt_ims_start_valid),
  4634. },
  4635. {
  4636. .data_type = QMI_UNSIGNED_8_BYTE,
  4637. .elem_len = 1,
  4638. .elem_size = sizeof(u64),
  4639. .array_type = NO_ARRAY,
  4640. .tlv_type = 0x13,
  4641. .offset = offsetof(struct
  4642. wlfw_wfc_call_status_req_msg_v01,
  4643. twt_ims_start),
  4644. },
  4645. {
  4646. .data_type = QMI_OPT_FLAG,
  4647. .elem_len = 1,
  4648. .elem_size = sizeof(u8),
  4649. .array_type = NO_ARRAY,
  4650. .tlv_type = 0x14,
  4651. .offset = offsetof(struct
  4652. wlfw_wfc_call_status_req_msg_v01,
  4653. twt_ims_int_valid),
  4654. },
  4655. {
  4656. .data_type = QMI_UNSIGNED_2_BYTE,
  4657. .elem_len = 1,
  4658. .elem_size = sizeof(u16),
  4659. .array_type = NO_ARRAY,
  4660. .tlv_type = 0x14,
  4661. .offset = offsetof(struct
  4662. wlfw_wfc_call_status_req_msg_v01,
  4663. twt_ims_int),
  4664. },
  4665. {
  4666. .data_type = QMI_OPT_FLAG,
  4667. .elem_len = 1,
  4668. .elem_size = sizeof(u8),
  4669. .array_type = NO_ARRAY,
  4670. .tlv_type = 0x15,
  4671. .offset = offsetof(struct
  4672. wlfw_wfc_call_status_req_msg_v01,
  4673. media_quality_valid),
  4674. },
  4675. {
  4676. .data_type = QMI_SIGNED_4_BYTE_ENUM,
  4677. .elem_len = 1,
  4678. .elem_size = sizeof(enum wlfw_wfc_media_quality_v01),
  4679. .array_type = NO_ARRAY,
  4680. .tlv_type = 0x15,
  4681. .offset = offsetof(struct
  4682. wlfw_wfc_call_status_req_msg_v01,
  4683. media_quality),
  4684. },
  4685. {
  4686. .data_type = QMI_EOTI,
  4687. .array_type = NO_ARRAY,
  4688. .tlv_type = QMI_COMMON_TLV_TYPE,
  4689. },
  4690. };
  4691. EXPORT_SYMBOL(wlfw_wfc_call_status_req_msg_v01_ei);
  4692. struct qmi_elem_info wlfw_wfc_call_status_resp_msg_v01_ei[] = {
  4693. {
  4694. .data_type = QMI_STRUCT,
  4695. .elem_len = 1,
  4696. .elem_size = sizeof(struct qmi_response_type_v01),
  4697. .array_type = NO_ARRAY,
  4698. .tlv_type = 0x02,
  4699. .offset = offsetof(struct
  4700. wlfw_wfc_call_status_resp_msg_v01,
  4701. resp),
  4702. .ei_array = qmi_response_type_v01_ei,
  4703. },
  4704. {
  4705. .data_type = QMI_EOTI,
  4706. .array_type = NO_ARRAY,
  4707. .tlv_type = QMI_COMMON_TLV_TYPE,
  4708. },
  4709. };
  4710. EXPORT_SYMBOL(wlfw_wfc_call_status_resp_msg_v01_ei);
  4711. struct qmi_elem_info wlfw_get_info_req_msg_v01_ei[] = {
  4712. {
  4713. .data_type = QMI_UNSIGNED_1_BYTE,
  4714. .elem_len = 1,
  4715. .elem_size = sizeof(u8),
  4716. .array_type = NO_ARRAY,
  4717. .tlv_type = 0x01,
  4718. .offset = offsetof(struct
  4719. wlfw_get_info_req_msg_v01,
  4720. type),
  4721. },
  4722. {
  4723. .data_type = QMI_DATA_LEN,
  4724. .elem_len = 1,
  4725. .elem_size = sizeof(u16),
  4726. .array_type = NO_ARRAY,
  4727. .tlv_type = 0x02,
  4728. .offset = offsetof(struct
  4729. wlfw_get_info_req_msg_v01,
  4730. data_len),
  4731. },
  4732. {
  4733. .data_type = QMI_UNSIGNED_1_BYTE,
  4734. .elem_len = QMI_WLFW_MAX_DATA_SIZE_V01,
  4735. .elem_size = sizeof(u8),
  4736. .array_type = VAR_LEN_ARRAY,
  4737. .tlv_type = 0x02,
  4738. .offset = offsetof(struct
  4739. wlfw_get_info_req_msg_v01,
  4740. data),
  4741. },
  4742. {
  4743. .data_type = QMI_EOTI,
  4744. .array_type = NO_ARRAY,
  4745. .tlv_type = QMI_COMMON_TLV_TYPE,
  4746. },
  4747. };
  4748. EXPORT_SYMBOL(wlfw_get_info_req_msg_v01_ei);
  4749. struct qmi_elem_info wlfw_get_info_resp_msg_v01_ei[] = {
  4750. {
  4751. .data_type = QMI_STRUCT,
  4752. .elem_len = 1,
  4753. .elem_size = sizeof(struct qmi_response_type_v01),
  4754. .array_type = NO_ARRAY,
  4755. .tlv_type = 0x02,
  4756. .offset = offsetof(struct
  4757. wlfw_get_info_resp_msg_v01,
  4758. resp),
  4759. .ei_array = qmi_response_type_v01_ei,
  4760. },
  4761. {
  4762. .data_type = QMI_EOTI,
  4763. .array_type = NO_ARRAY,
  4764. .tlv_type = QMI_COMMON_TLV_TYPE,
  4765. },
  4766. };
  4767. EXPORT_SYMBOL(wlfw_get_info_resp_msg_v01_ei);
  4768. struct qmi_elem_info wlfw_respond_get_info_ind_msg_v01_ei[] = {
  4769. {
  4770. .data_type = QMI_DATA_LEN,
  4771. .elem_len = 1,
  4772. .elem_size = sizeof(u16),
  4773. .array_type = NO_ARRAY,
  4774. .tlv_type = 0x01,
  4775. .offset = offsetof(struct
  4776. wlfw_respond_get_info_ind_msg_v01,
  4777. data_len),
  4778. },
  4779. {
  4780. .data_type = QMI_UNSIGNED_1_BYTE,
  4781. .elem_len = QMI_WLFW_MAX_DATA_SIZE_V01,
  4782. .elem_size = sizeof(u8),
  4783. .array_type = VAR_LEN_ARRAY,
  4784. .tlv_type = 0x01,
  4785. .offset = offsetof(struct
  4786. wlfw_respond_get_info_ind_msg_v01,
  4787. data),
  4788. },
  4789. {
  4790. .data_type = QMI_OPT_FLAG,
  4791. .elem_len = 1,
  4792. .elem_size = sizeof(u8),
  4793. .array_type = NO_ARRAY,
  4794. .tlv_type = 0x10,
  4795. .offset = offsetof(struct
  4796. wlfw_respond_get_info_ind_msg_v01,
  4797. type_valid),
  4798. },
  4799. {
  4800. .data_type = QMI_UNSIGNED_1_BYTE,
  4801. .elem_len = 1,
  4802. .elem_size = sizeof(u8),
  4803. .array_type = NO_ARRAY,
  4804. .tlv_type = 0x10,
  4805. .offset = offsetof(struct
  4806. wlfw_respond_get_info_ind_msg_v01,
  4807. type),
  4808. },
  4809. {
  4810. .data_type = QMI_OPT_FLAG,
  4811. .elem_len = 1,
  4812. .elem_size = sizeof(u8),
  4813. .array_type = NO_ARRAY,
  4814. .tlv_type = 0x11,
  4815. .offset = offsetof(struct
  4816. wlfw_respond_get_info_ind_msg_v01,
  4817. is_last_valid),
  4818. },
  4819. {
  4820. .data_type = QMI_UNSIGNED_1_BYTE,
  4821. .elem_len = 1,
  4822. .elem_size = sizeof(u8),
  4823. .array_type = NO_ARRAY,
  4824. .tlv_type = 0x11,
  4825. .offset = offsetof(struct
  4826. wlfw_respond_get_info_ind_msg_v01,
  4827. is_last),
  4828. },
  4829. {
  4830. .data_type = QMI_OPT_FLAG,
  4831. .elem_len = 1,
  4832. .elem_size = sizeof(u8),
  4833. .array_type = NO_ARRAY,
  4834. .tlv_type = 0x12,
  4835. .offset = offsetof(struct
  4836. wlfw_respond_get_info_ind_msg_v01,
  4837. seq_no_valid),
  4838. },
  4839. {
  4840. .data_type = QMI_UNSIGNED_4_BYTE,
  4841. .elem_len = 1,
  4842. .elem_size = sizeof(u32),
  4843. .array_type = NO_ARRAY,
  4844. .tlv_type = 0x12,
  4845. .offset = offsetof(struct
  4846. wlfw_respond_get_info_ind_msg_v01,
  4847. seq_no),
  4848. },
  4849. {
  4850. .data_type = QMI_EOTI,
  4851. .array_type = NO_ARRAY,
  4852. .tlv_type = QMI_COMMON_TLV_TYPE,
  4853. },
  4854. };
  4855. EXPORT_SYMBOL(wlfw_respond_get_info_ind_msg_v01_ei);
  4856. struct qmi_elem_info wlfw_device_info_req_msg_v01_ei[] = {
  4857. {
  4858. .data_type = QMI_EOTI,
  4859. .array_type = NO_ARRAY,
  4860. .tlv_type = QMI_COMMON_TLV_TYPE,
  4861. },
  4862. };
  4863. EXPORT_SYMBOL(wlfw_device_info_req_msg_v01_ei);
  4864. struct qmi_elem_info wlfw_device_info_resp_msg_v01_ei[] = {
  4865. {
  4866. .data_type = QMI_STRUCT,
  4867. .elem_len = 1,
  4868. .elem_size = sizeof(struct qmi_response_type_v01),
  4869. .array_type = NO_ARRAY,
  4870. .tlv_type = 0x02,
  4871. .offset = offsetof(struct
  4872. wlfw_device_info_resp_msg_v01,
  4873. resp),
  4874. .ei_array = qmi_response_type_v01_ei,
  4875. },
  4876. {
  4877. .data_type = QMI_OPT_FLAG,
  4878. .elem_len = 1,
  4879. .elem_size = sizeof(u8),
  4880. .array_type = NO_ARRAY,
  4881. .tlv_type = 0x10,
  4882. .offset = offsetof(struct
  4883. wlfw_device_info_resp_msg_v01,
  4884. bar_addr_valid),
  4885. },
  4886. {
  4887. .data_type = QMI_UNSIGNED_8_BYTE,
  4888. .elem_len = 1,
  4889. .elem_size = sizeof(u64),
  4890. .array_type = NO_ARRAY,
  4891. .tlv_type = 0x10,
  4892. .offset = offsetof(struct
  4893. wlfw_device_info_resp_msg_v01,
  4894. bar_addr),
  4895. },
  4896. {
  4897. .data_type = QMI_OPT_FLAG,
  4898. .elem_len = 1,
  4899. .elem_size = sizeof(u8),
  4900. .array_type = NO_ARRAY,
  4901. .tlv_type = 0x11,
  4902. .offset = offsetof(struct
  4903. wlfw_device_info_resp_msg_v01,
  4904. bar_size_valid),
  4905. },
  4906. {
  4907. .data_type = QMI_UNSIGNED_4_BYTE,
  4908. .elem_len = 1,
  4909. .elem_size = sizeof(u32),
  4910. .array_type = NO_ARRAY,
  4911. .tlv_type = 0x11,
  4912. .offset = offsetof(struct
  4913. wlfw_device_info_resp_msg_v01,
  4914. bar_size),
  4915. },
  4916. {
  4917. .data_type = QMI_OPT_FLAG,
  4918. .elem_len = 1,
  4919. .elem_size = sizeof(u8),
  4920. .array_type = NO_ARRAY,
  4921. .tlv_type = 0x12,
  4922. .offset = offsetof(struct
  4923. wlfw_device_info_resp_msg_v01,
  4924. mhi_state_info_addr_valid),
  4925. },
  4926. {
  4927. .data_type = QMI_UNSIGNED_8_BYTE,
  4928. .elem_len = 1,
  4929. .elem_size = sizeof(u64),
  4930. .array_type = NO_ARRAY,
  4931. .tlv_type = 0x12,
  4932. .offset = offsetof(struct
  4933. wlfw_device_info_resp_msg_v01,
  4934. mhi_state_info_addr),
  4935. },
  4936. {
  4937. .data_type = QMI_OPT_FLAG,
  4938. .elem_len = 1,
  4939. .elem_size = sizeof(u8),
  4940. .array_type = NO_ARRAY,
  4941. .tlv_type = 0x13,
  4942. .offset = offsetof(struct
  4943. wlfw_device_info_resp_msg_v01,
  4944. mhi_state_info_size_valid),
  4945. },
  4946. {
  4947. .data_type = QMI_UNSIGNED_4_BYTE,
  4948. .elem_len = 1,
  4949. .elem_size = sizeof(u32),
  4950. .array_type = NO_ARRAY,
  4951. .tlv_type = 0x13,
  4952. .offset = offsetof(struct
  4953. wlfw_device_info_resp_msg_v01,
  4954. mhi_state_info_size),
  4955. },
  4956. {
  4957. .data_type = QMI_EOTI,
  4958. .array_type = NO_ARRAY,
  4959. .tlv_type = QMI_COMMON_TLV_TYPE,
  4960. },
  4961. };
  4962. EXPORT_SYMBOL(wlfw_device_info_resp_msg_v01_ei);
  4963. struct qmi_elem_info wlfw_m3_dump_upload_req_ind_msg_v01_ei[] = {
  4964. {
  4965. .data_type = QMI_UNSIGNED_4_BYTE,
  4966. .elem_len = 1,
  4967. .elem_size = sizeof(u32),
  4968. .array_type = NO_ARRAY,
  4969. .tlv_type = 0x01,
  4970. .offset = offsetof(struct
  4971. wlfw_m3_dump_upload_req_ind_msg_v01,
  4972. pdev_id),
  4973. },
  4974. {
  4975. .data_type = QMI_UNSIGNED_8_BYTE,
  4976. .elem_len = 1,
  4977. .elem_size = sizeof(u64),
  4978. .array_type = NO_ARRAY,
  4979. .tlv_type = 0x02,
  4980. .offset = offsetof(struct
  4981. wlfw_m3_dump_upload_req_ind_msg_v01,
  4982. addr),
  4983. },
  4984. {
  4985. .data_type = QMI_UNSIGNED_8_BYTE,
  4986. .elem_len = 1,
  4987. .elem_size = sizeof(u64),
  4988. .array_type = NO_ARRAY,
  4989. .tlv_type = 0x03,
  4990. .offset = offsetof(struct
  4991. wlfw_m3_dump_upload_req_ind_msg_v01,
  4992. size),
  4993. },
  4994. {
  4995. .data_type = QMI_EOTI,
  4996. .array_type = NO_ARRAY,
  4997. .tlv_type = QMI_COMMON_TLV_TYPE,
  4998. },
  4999. };
  5000. EXPORT_SYMBOL(wlfw_m3_dump_upload_req_ind_msg_v01_ei);
  5001. struct qmi_elem_info wlfw_m3_dump_upload_done_req_msg_v01_ei[] = {
  5002. {
  5003. .data_type = QMI_UNSIGNED_4_BYTE,
  5004. .elem_len = 1,
  5005. .elem_size = sizeof(u32),
  5006. .array_type = NO_ARRAY,
  5007. .tlv_type = 0x01,
  5008. .offset = offsetof(struct
  5009. wlfw_m3_dump_upload_done_req_msg_v01,
  5010. pdev_id),
  5011. },
  5012. {
  5013. .data_type = QMI_UNSIGNED_4_BYTE,
  5014. .elem_len = 1,
  5015. .elem_size = sizeof(u32),
  5016. .array_type = NO_ARRAY,
  5017. .tlv_type = 0x02,
  5018. .offset = offsetof(struct
  5019. wlfw_m3_dump_upload_done_req_msg_v01,
  5020. status),
  5021. },
  5022. {
  5023. .data_type = QMI_EOTI,
  5024. .array_type = NO_ARRAY,
  5025. .tlv_type = QMI_COMMON_TLV_TYPE,
  5026. },
  5027. };
  5028. EXPORT_SYMBOL(wlfw_m3_dump_upload_done_req_msg_v01_ei);
  5029. struct qmi_elem_info wlfw_m3_dump_upload_done_resp_msg_v01_ei[] = {
  5030. {
  5031. .data_type = QMI_STRUCT,
  5032. .elem_len = 1,
  5033. .elem_size = sizeof(struct qmi_response_type_v01),
  5034. .array_type = NO_ARRAY,
  5035. .tlv_type = 0x02,
  5036. .offset = offsetof(struct
  5037. wlfw_m3_dump_upload_done_resp_msg_v01,
  5038. resp),
  5039. .ei_array = qmi_response_type_v01_ei,
  5040. },
  5041. {
  5042. .data_type = QMI_EOTI,
  5043. .array_type = NO_ARRAY,
  5044. .tlv_type = QMI_COMMON_TLV_TYPE,
  5045. },
  5046. };
  5047. EXPORT_SYMBOL(wlfw_m3_dump_upload_done_resp_msg_v01_ei);
  5048. struct qmi_elem_info wlfw_soc_wake_req_msg_v01_ei[] = {
  5049. {
  5050. .data_type = QMI_OPT_FLAG,
  5051. .elem_len = 1,
  5052. .elem_size = sizeof(u8),
  5053. .array_type = NO_ARRAY,
  5054. .tlv_type = 0x10,
  5055. .offset = offsetof(struct
  5056. wlfw_soc_wake_req_msg_v01,
  5057. wake_valid),
  5058. },
  5059. {
  5060. .data_type = QMI_SIGNED_4_BYTE_ENUM,
  5061. .elem_len = 1,
  5062. .elem_size = sizeof(enum wlfw_soc_wake_enum_v01),
  5063. .array_type = NO_ARRAY,
  5064. .tlv_type = 0x10,
  5065. .offset = offsetof(struct
  5066. wlfw_soc_wake_req_msg_v01,
  5067. wake),
  5068. },
  5069. {
  5070. .data_type = QMI_EOTI,
  5071. .array_type = NO_ARRAY,
  5072. .tlv_type = QMI_COMMON_TLV_TYPE,
  5073. },
  5074. };
  5075. EXPORT_SYMBOL(wlfw_soc_wake_req_msg_v01_ei);
  5076. struct qmi_elem_info wlfw_soc_wake_resp_msg_v01_ei[] = {
  5077. {
  5078. .data_type = QMI_STRUCT,
  5079. .elem_len = 1,
  5080. .elem_size = sizeof(struct qmi_response_type_v01),
  5081. .array_type = NO_ARRAY,
  5082. .tlv_type = 0x02,
  5083. .offset = offsetof(struct
  5084. wlfw_soc_wake_resp_msg_v01,
  5085. resp),
  5086. .ei_array = qmi_response_type_v01_ei,
  5087. },
  5088. {
  5089. .data_type = QMI_EOTI,
  5090. .array_type = NO_ARRAY,
  5091. .tlv_type = QMI_COMMON_TLV_TYPE,
  5092. },
  5093. };
  5094. EXPORT_SYMBOL(wlfw_soc_wake_resp_msg_v01_ei);
  5095. struct qmi_elem_info wlfw_power_save_req_msg_v01_ei[] = {
  5096. {
  5097. .data_type = QMI_OPT_FLAG,
  5098. .elem_len = 1,
  5099. .elem_size = sizeof(u8),
  5100. .array_type = NO_ARRAY,
  5101. .tlv_type = 0x10,
  5102. .offset = offsetof(struct
  5103. wlfw_power_save_req_msg_v01,
  5104. power_save_mode_valid),
  5105. },
  5106. {
  5107. .data_type = QMI_SIGNED_4_BYTE_ENUM,
  5108. .elem_len = 1,
  5109. .elem_size = sizeof(enum wlfw_power_save_mode_v01),
  5110. .array_type = NO_ARRAY,
  5111. .tlv_type = 0x10,
  5112. .offset = offsetof(struct
  5113. wlfw_power_save_req_msg_v01,
  5114. power_save_mode),
  5115. },
  5116. {
  5117. .data_type = QMI_EOTI,
  5118. .array_type = NO_ARRAY,
  5119. .tlv_type = QMI_COMMON_TLV_TYPE,
  5120. },
  5121. };
  5122. EXPORT_SYMBOL(wlfw_power_save_req_msg_v01_ei);
  5123. struct qmi_elem_info wlfw_power_save_resp_msg_v01_ei[] = {
  5124. {
  5125. .data_type = QMI_STRUCT,
  5126. .elem_len = 1,
  5127. .elem_size = sizeof(struct qmi_response_type_v01),
  5128. .array_type = NO_ARRAY,
  5129. .tlv_type = 0x02,
  5130. .offset = offsetof(struct
  5131. wlfw_power_save_resp_msg_v01,
  5132. resp),
  5133. .ei_array = qmi_response_type_v01_ei,
  5134. },
  5135. {
  5136. .data_type = QMI_EOTI,
  5137. .array_type = NO_ARRAY,
  5138. .tlv_type = QMI_COMMON_TLV_TYPE,
  5139. },
  5140. };
  5141. EXPORT_SYMBOL(wlfw_power_save_resp_msg_v01_ei);
  5142. struct qmi_elem_info wlfw_wfc_call_twt_config_ind_msg_v01_ei[] = {
  5143. {
  5144. .data_type = QMI_OPT_FLAG,
  5145. .elem_len = 1,
  5146. .elem_size = sizeof(u8),
  5147. .array_type = NO_ARRAY,
  5148. .tlv_type = 0x10,
  5149. .offset = offsetof(struct
  5150. wlfw_wfc_call_twt_config_ind_msg_v01,
  5151. twt_sta_start_valid),
  5152. },
  5153. {
  5154. .data_type = QMI_UNSIGNED_8_BYTE,
  5155. .elem_len = 1,
  5156. .elem_size = sizeof(u64),
  5157. .array_type = NO_ARRAY,
  5158. .tlv_type = 0x10,
  5159. .offset = offsetof(struct
  5160. wlfw_wfc_call_twt_config_ind_msg_v01,
  5161. twt_sta_start),
  5162. },
  5163. {
  5164. .data_type = QMI_OPT_FLAG,
  5165. .elem_len = 1,
  5166. .elem_size = sizeof(u8),
  5167. .array_type = NO_ARRAY,
  5168. .tlv_type = 0x11,
  5169. .offset = offsetof(struct
  5170. wlfw_wfc_call_twt_config_ind_msg_v01,
  5171. twt_sta_int_valid),
  5172. },
  5173. {
  5174. .data_type = QMI_UNSIGNED_2_BYTE,
  5175. .elem_len = 1,
  5176. .elem_size = sizeof(u16),
  5177. .array_type = NO_ARRAY,
  5178. .tlv_type = 0x11,
  5179. .offset = offsetof(struct
  5180. wlfw_wfc_call_twt_config_ind_msg_v01,
  5181. twt_sta_int),
  5182. },
  5183. {
  5184. .data_type = QMI_OPT_FLAG,
  5185. .elem_len = 1,
  5186. .elem_size = sizeof(u8),
  5187. .array_type = NO_ARRAY,
  5188. .tlv_type = 0x12,
  5189. .offset = offsetof(struct
  5190. wlfw_wfc_call_twt_config_ind_msg_v01,
  5191. twt_sta_upo_valid),
  5192. },
  5193. {
  5194. .data_type = QMI_UNSIGNED_2_BYTE,
  5195. .elem_len = 1,
  5196. .elem_size = sizeof(u16),
  5197. .array_type = NO_ARRAY,
  5198. .tlv_type = 0x12,
  5199. .offset = offsetof(struct
  5200. wlfw_wfc_call_twt_config_ind_msg_v01,
  5201. twt_sta_upo),
  5202. },
  5203. {
  5204. .data_type = QMI_OPT_FLAG,
  5205. .elem_len = 1,
  5206. .elem_size = sizeof(u8),
  5207. .array_type = NO_ARRAY,
  5208. .tlv_type = 0x13,
  5209. .offset = offsetof(struct
  5210. wlfw_wfc_call_twt_config_ind_msg_v01,
  5211. twt_sta_sp_valid),
  5212. },
  5213. {
  5214. .data_type = QMI_UNSIGNED_2_BYTE,
  5215. .elem_len = 1,
  5216. .elem_size = sizeof(u16),
  5217. .array_type = NO_ARRAY,
  5218. .tlv_type = 0x13,
  5219. .offset = offsetof(struct
  5220. wlfw_wfc_call_twt_config_ind_msg_v01,
  5221. twt_sta_sp),
  5222. },
  5223. {
  5224. .data_type = QMI_OPT_FLAG,
  5225. .elem_len = 1,
  5226. .elem_size = sizeof(u8),
  5227. .array_type = NO_ARRAY,
  5228. .tlv_type = 0x14,
  5229. .offset = offsetof(struct
  5230. wlfw_wfc_call_twt_config_ind_msg_v01,
  5231. twt_sta_dl_valid),
  5232. },
  5233. {
  5234. .data_type = QMI_UNSIGNED_2_BYTE,
  5235. .elem_len = 1,
  5236. .elem_size = sizeof(u16),
  5237. .array_type = NO_ARRAY,
  5238. .tlv_type = 0x14,
  5239. .offset = offsetof(struct
  5240. wlfw_wfc_call_twt_config_ind_msg_v01,
  5241. twt_sta_dl),
  5242. },
  5243. {
  5244. .data_type = QMI_OPT_FLAG,
  5245. .elem_len = 1,
  5246. .elem_size = sizeof(u8),
  5247. .array_type = NO_ARRAY,
  5248. .tlv_type = 0x15,
  5249. .offset = offsetof(struct
  5250. wlfw_wfc_call_twt_config_ind_msg_v01,
  5251. twt_sta_config_changed_valid),
  5252. },
  5253. {
  5254. .data_type = QMI_UNSIGNED_1_BYTE,
  5255. .elem_len = 1,
  5256. .elem_size = sizeof(u8),
  5257. .array_type = NO_ARRAY,
  5258. .tlv_type = 0x15,
  5259. .offset = offsetof(struct
  5260. wlfw_wfc_call_twt_config_ind_msg_v01,
  5261. twt_sta_config_changed),
  5262. },
  5263. {
  5264. .data_type = QMI_EOTI,
  5265. .array_type = NO_ARRAY,
  5266. .tlv_type = QMI_COMMON_TLV_TYPE,
  5267. },
  5268. };
  5269. EXPORT_SYMBOL(wlfw_wfc_call_twt_config_ind_msg_v01_ei);
  5270. struct qmi_elem_info wlfw_qdss_mem_ready_ind_msg_v01_ei[] = {
  5271. {
  5272. .data_type = QMI_EOTI,
  5273. .array_type = NO_ARRAY,
  5274. .tlv_type = QMI_COMMON_TLV_TYPE,
  5275. },
  5276. };
  5277. EXPORT_SYMBOL(wlfw_qdss_mem_ready_ind_msg_v01_ei);
  5278. struct qmi_elem_info wlfw_pcie_gen_switch_req_msg_v01_ei[] = {
  5279. {
  5280. .data_type = QMI_SIGNED_4_BYTE_ENUM,
  5281. .elem_len = 1,
  5282. .elem_size = sizeof(enum wlfw_pcie_gen_speed_v01),
  5283. .array_type = NO_ARRAY,
  5284. .tlv_type = 0x01,
  5285. .offset = offsetof(struct
  5286. wlfw_pcie_gen_switch_req_msg_v01,
  5287. pcie_speed),
  5288. },
  5289. {
  5290. .data_type = QMI_EOTI,
  5291. .array_type = NO_ARRAY,
  5292. .tlv_type = QMI_COMMON_TLV_TYPE,
  5293. },
  5294. };
  5295. EXPORT_SYMBOL(wlfw_pcie_gen_switch_req_msg_v01_ei);
  5296. struct qmi_elem_info wlfw_pcie_gen_switch_resp_msg_v01_ei[] = {
  5297. {
  5298. .data_type = QMI_STRUCT,
  5299. .elem_len = 1,
  5300. .elem_size = sizeof(struct qmi_response_type_v01),
  5301. .array_type = NO_ARRAY,
  5302. .tlv_type = 0x02,
  5303. .offset = offsetof(struct
  5304. wlfw_pcie_gen_switch_resp_msg_v01,
  5305. resp),
  5306. .ei_array = qmi_response_type_v01_ei,
  5307. },
  5308. {
  5309. .data_type = QMI_EOTI,
  5310. .array_type = NO_ARRAY,
  5311. .tlv_type = QMI_COMMON_TLV_TYPE,
  5312. },
  5313. };
  5314. EXPORT_SYMBOL(wlfw_pcie_gen_switch_resp_msg_v01_ei);
  5315. struct qmi_elem_info wlfw_m3_dump_upload_segments_req_ind_msg_v01_ei[] = {
  5316. {
  5317. .data_type = QMI_UNSIGNED_4_BYTE,
  5318. .elem_len = 1,
  5319. .elem_size = sizeof(u32),
  5320. .array_type = NO_ARRAY,
  5321. .tlv_type = 0x01,
  5322. .offset = offsetof(struct
  5323. wlfw_m3_dump_upload_segments_req_ind_msg_v01,
  5324. pdev_id),
  5325. },
  5326. {
  5327. .data_type = QMI_UNSIGNED_4_BYTE,
  5328. .elem_len = 1,
  5329. .elem_size = sizeof(u32),
  5330. .array_type = NO_ARRAY,
  5331. .tlv_type = 0x02,
  5332. .offset = offsetof(struct
  5333. wlfw_m3_dump_upload_segments_req_ind_msg_v01,
  5334. no_of_valid_segments),
  5335. },
  5336. {
  5337. .data_type = QMI_STRUCT,
  5338. .elem_len = QMI_WLFW_MAX_M3_SEGMENTS_SIZE_V01,
  5339. .elem_size = sizeof(struct wlfw_m3_segment_info_s_v01),
  5340. .array_type = STATIC_ARRAY,
  5341. .tlv_type = 0x03,
  5342. .offset = offsetof(struct
  5343. wlfw_m3_dump_upload_segments_req_ind_msg_v01,
  5344. m3_segment),
  5345. .ei_array = wlfw_m3_segment_info_s_v01_ei,
  5346. },
  5347. {
  5348. .data_type = QMI_EOTI,
  5349. .array_type = NO_ARRAY,
  5350. .tlv_type = QMI_COMMON_TLV_TYPE,
  5351. },
  5352. };
  5353. EXPORT_SYMBOL(wlfw_m3_dump_upload_segments_req_ind_msg_v01_ei);
  5354. /**
  5355. * wlfw_is_valid_dt_node_found - Check if valid device tree node present
  5356. *
  5357. * Valid device tree node means a node with "qcom,wlan" property present and
  5358. * "status" property not disabled.
  5359. *
  5360. * Return: true if valid device tree node found, false if not found
  5361. */
  5362. static bool wlfw_is_valid_dt_node_found(void)
  5363. {
  5364. struct device_node *dn = NULL;
  5365. for_each_node_with_property(dn, "qcom,wlan") {
  5366. if (of_device_is_available(dn))
  5367. break;
  5368. }
  5369. if (dn)
  5370. return true;
  5371. return false;
  5372. }
  5373. static int __init wlfw_init(void)
  5374. {
  5375. if (!wlfw_is_valid_dt_node_found())
  5376. return -ENODEV;
  5377. return 0;
  5378. }
  5379. module_init(wlfw_init);
  5380. MODULE_LICENSE("GPL v2");
  5381. MODULE_DESCRIPTION("WLAN FW QMI service");