wlan_firmware_service_v01.c 162 KB

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