wlan_firmware_service_v01.c 180 KB

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