wlan_firmware_service_v01.c 156 KB

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