wlan_firmware_service_v01.c 173 KB

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