ipa_qmi_service_v01.c 123 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /*
  3. * Copyright (c) 2013-2019, The Linux Foundation. All rights reserved.
  4. */
  5. #include <linux/ipa_qmi_service_v01.h>
  6. #include <linux/soc/qcom/qmi.h>
  7. #include "ipa_qmi_service.h"
  8. /* Type Definitions */
  9. static struct qmi_elem_info ipa3_hdr_tbl_info_type_data_v01_ei[] = {
  10. {
  11. .data_type = QMI_UNSIGNED_4_BYTE,
  12. .elem_len = 1,
  13. .elem_size = sizeof(uint32_t),
  14. .array_type = NO_ARRAY,
  15. .tlv_type = QMI_COMMON_TLV_TYPE,
  16. .offset = offsetof(struct ipa_hdr_tbl_info_type_v01,
  17. modem_offset_start),
  18. },
  19. {
  20. .data_type = QMI_UNSIGNED_4_BYTE,
  21. .elem_len = 1,
  22. .elem_size = sizeof(uint32_t),
  23. .array_type = NO_ARRAY,
  24. .tlv_type = QMI_COMMON_TLV_TYPE,
  25. .offset = offsetof(struct ipa_hdr_tbl_info_type_v01,
  26. modem_offset_end),
  27. },
  28. {
  29. .data_type = QMI_EOTI,
  30. .array_type = NO_ARRAY,
  31. .tlv_type = QMI_COMMON_TLV_TYPE,
  32. },
  33. };
  34. static struct qmi_elem_info ipa3_route_tbl_info_type_data_v01_ei[] = {
  35. {
  36. .data_type = QMI_UNSIGNED_4_BYTE,
  37. .elem_len = 1,
  38. .elem_size = sizeof(uint32_t),
  39. .array_type = NO_ARRAY,
  40. .tlv_type = QMI_COMMON_TLV_TYPE,
  41. .offset = offsetof(struct ipa_route_tbl_info_type_v01,
  42. route_tbl_start_addr),
  43. },
  44. {
  45. .data_type = QMI_UNSIGNED_4_BYTE,
  46. .elem_len = 1,
  47. .elem_size = sizeof(uint32_t),
  48. .array_type = NO_ARRAY,
  49. .tlv_type = QMI_COMMON_TLV_TYPE,
  50. .offset = offsetof(struct ipa_route_tbl_info_type_v01,
  51. num_indices),
  52. },
  53. {
  54. .data_type = QMI_EOTI,
  55. .array_type = NO_ARRAY,
  56. .tlv_type = QMI_COMMON_TLV_TYPE,
  57. },
  58. };
  59. static struct qmi_elem_info ipa3_modem_mem_info_type_data_v01_ei[] = {
  60. {
  61. .data_type = QMI_UNSIGNED_4_BYTE,
  62. .elem_len = 1,
  63. .elem_size = sizeof(uint32_t),
  64. .array_type = NO_ARRAY,
  65. .tlv_type = QMI_COMMON_TLV_TYPE,
  66. .offset = offsetof(struct ipa_modem_mem_info_type_v01,
  67. block_start_addr),
  68. },
  69. {
  70. .data_type = QMI_UNSIGNED_4_BYTE,
  71. .elem_len = 1,
  72. .elem_size = sizeof(uint32_t),
  73. .array_type = NO_ARRAY,
  74. .tlv_type = QMI_COMMON_TLV_TYPE,
  75. .offset = offsetof(struct ipa_modem_mem_info_type_v01,
  76. size),
  77. },
  78. {
  79. .data_type = QMI_EOTI,
  80. .array_type = NO_ARRAY,
  81. .tlv_type = QMI_COMMON_TLV_TYPE,
  82. },
  83. };
  84. static struct qmi_elem_info ipa3_hdr_proc_ctx_tbl_info_type_data_v01_ei[] = {
  85. {
  86. .data_type = QMI_UNSIGNED_4_BYTE,
  87. .elem_len = 1,
  88. .elem_size = sizeof(uint32_t),
  89. .array_type = NO_ARRAY,
  90. .tlv_type = QMI_COMMON_TLV_TYPE,
  91. .offset = offsetof(
  92. struct ipa_hdr_proc_ctx_tbl_info_type_v01,
  93. modem_offset_start),
  94. },
  95. {
  96. .data_type = QMI_UNSIGNED_4_BYTE,
  97. .elem_len = 1,
  98. .elem_size = sizeof(uint32_t),
  99. .array_type = NO_ARRAY,
  100. .tlv_type = QMI_COMMON_TLV_TYPE,
  101. .offset = offsetof(
  102. struct ipa_hdr_proc_ctx_tbl_info_type_v01,
  103. modem_offset_end),
  104. },
  105. {
  106. .data_type = QMI_EOTI,
  107. .array_type = NO_ARRAY,
  108. .tlv_type = QMI_COMMON_TLV_TYPE,
  109. },
  110. };
  111. static struct qmi_elem_info ipa3_zip_tbl_info_type_data_v01_ei[] = {
  112. {
  113. .data_type = QMI_UNSIGNED_4_BYTE,
  114. .elem_len = 1,
  115. .elem_size = sizeof(uint32_t),
  116. .array_type = NO_ARRAY,
  117. .tlv_type = QMI_COMMON_TLV_TYPE,
  118. .offset = offsetof(struct ipa_zip_tbl_info_type_v01,
  119. modem_offset_start),
  120. },
  121. {
  122. .data_type = QMI_UNSIGNED_4_BYTE,
  123. .elem_len = 1,
  124. .elem_size = sizeof(uint32_t),
  125. .array_type = NO_ARRAY,
  126. .tlv_type = QMI_COMMON_TLV_TYPE,
  127. .offset = offsetof(struct ipa_zip_tbl_info_type_v01,
  128. modem_offset_end),
  129. },
  130. {
  131. .data_type = QMI_EOTI,
  132. .array_type = NO_ARRAY,
  133. .tlv_type = QMI_COMMON_TLV_TYPE,
  134. },
  135. };
  136. static struct qmi_elem_info ipa3_ipfltr_range_eq_16_type_data_v01_ei[] = {
  137. {
  138. .data_type = QMI_UNSIGNED_1_BYTE,
  139. .elem_len = 1,
  140. .elem_size = sizeof(uint8_t),
  141. .array_type = NO_ARRAY,
  142. .tlv_type = QMI_COMMON_TLV_TYPE,
  143. .offset = offsetof(
  144. struct ipa_ipfltr_range_eq_16_type_v01,
  145. offset),
  146. },
  147. {
  148. .data_type = QMI_UNSIGNED_2_BYTE,
  149. .elem_len = 1,
  150. .elem_size = sizeof(uint16_t),
  151. .array_type = NO_ARRAY,
  152. .tlv_type = QMI_COMMON_TLV_TYPE,
  153. .offset = offsetof(
  154. struct ipa_ipfltr_range_eq_16_type_v01,
  155. range_low),
  156. },
  157. {
  158. .data_type = QMI_UNSIGNED_2_BYTE,
  159. .elem_len = 1,
  160. .elem_size = sizeof(uint16_t),
  161. .array_type = NO_ARRAY,
  162. .tlv_type = QMI_COMMON_TLV_TYPE,
  163. .offset = offsetof(
  164. struct ipa_ipfltr_range_eq_16_type_v01,
  165. range_high),
  166. },
  167. {
  168. .data_type = QMI_EOTI,
  169. .array_type = NO_ARRAY,
  170. .tlv_type = QMI_COMMON_TLV_TYPE,
  171. },
  172. };
  173. static struct qmi_elem_info ipa3_ipfltr_mask_eq_32_type_data_v01_ei[] = {
  174. {
  175. .data_type = QMI_UNSIGNED_1_BYTE,
  176. .elem_len = 1,
  177. .elem_size = sizeof(uint8_t),
  178. .array_type = NO_ARRAY,
  179. .tlv_type = QMI_COMMON_TLV_TYPE,
  180. .offset = offsetof(
  181. struct ipa_ipfltr_mask_eq_32_type_v01,
  182. offset),
  183. },
  184. {
  185. .data_type = QMI_UNSIGNED_4_BYTE,
  186. .elem_len = 1,
  187. .elem_size = sizeof(uint32_t),
  188. .array_type = NO_ARRAY,
  189. .tlv_type = QMI_COMMON_TLV_TYPE,
  190. .offset = offsetof(
  191. struct ipa_ipfltr_mask_eq_32_type_v01,
  192. mask),
  193. },
  194. {
  195. .data_type = QMI_UNSIGNED_4_BYTE,
  196. .elem_len = 1,
  197. .elem_size = sizeof(uint32_t),
  198. .array_type = NO_ARRAY,
  199. .tlv_type = QMI_COMMON_TLV_TYPE,
  200. .offset = offsetof(
  201. struct ipa_ipfltr_mask_eq_32_type_v01,
  202. value),
  203. },
  204. {
  205. .data_type = QMI_EOTI,
  206. .array_type = NO_ARRAY,
  207. .tlv_type = QMI_COMMON_TLV_TYPE,
  208. },
  209. };
  210. static struct qmi_elem_info ipa3_ipfltr_eq_16_type_data_v01_ei[] = {
  211. {
  212. .data_type = QMI_UNSIGNED_1_BYTE,
  213. .elem_len = 1,
  214. .elem_size = sizeof(uint8_t),
  215. .array_type = NO_ARRAY,
  216. .tlv_type = QMI_COMMON_TLV_TYPE,
  217. .offset = offsetof(
  218. struct ipa_ipfltr_eq_16_type_v01,
  219. offset),
  220. },
  221. {
  222. .data_type = QMI_UNSIGNED_2_BYTE,
  223. .elem_len = 1,
  224. .elem_size = sizeof(uint16_t),
  225. .array_type = NO_ARRAY,
  226. .tlv_type = QMI_COMMON_TLV_TYPE,
  227. .offset = offsetof(struct ipa_ipfltr_eq_16_type_v01,
  228. value),
  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 ipa3_ipfltr_eq_32_type_data_v01_ei[] = {
  237. {
  238. .data_type = QMI_UNSIGNED_1_BYTE,
  239. .elem_len = 1,
  240. .elem_size = sizeof(uint8_t),
  241. .array_type = NO_ARRAY,
  242. .tlv_type = QMI_COMMON_TLV_TYPE,
  243. .offset = offsetof(struct ipa_ipfltr_eq_32_type_v01,
  244. offset),
  245. },
  246. {
  247. .data_type = QMI_UNSIGNED_4_BYTE,
  248. .elem_len = 1,
  249. .elem_size = sizeof(uint32_t),
  250. .array_type = NO_ARRAY,
  251. .tlv_type = QMI_COMMON_TLV_TYPE,
  252. .offset = offsetof(struct ipa_ipfltr_eq_32_type_v01,
  253. value),
  254. },
  255. {
  256. .data_type = QMI_EOTI,
  257. .array_type = NO_ARRAY,
  258. .tlv_type = QMI_COMMON_TLV_TYPE,
  259. },
  260. };
  261. static struct qmi_elem_info ipa3_ipfltr_mask_eq_128_type_data_v01_ei[] = {
  262. {
  263. .data_type = QMI_UNSIGNED_1_BYTE,
  264. .elem_len = 1,
  265. .elem_size = sizeof(uint8_t),
  266. .array_type = NO_ARRAY,
  267. .tlv_type = QMI_COMMON_TLV_TYPE,
  268. .offset = offsetof(
  269. struct ipa_ipfltr_mask_eq_128_type_v01,
  270. offset),
  271. },
  272. {
  273. .data_type = QMI_UNSIGNED_1_BYTE,
  274. .elem_len = 16,
  275. .elem_size = sizeof(uint8_t),
  276. .array_type = STATIC_ARRAY,
  277. .tlv_type = QMI_COMMON_TLV_TYPE,
  278. .offset = offsetof(
  279. struct ipa_ipfltr_mask_eq_128_type_v01,
  280. mask),
  281. },
  282. {
  283. .data_type = QMI_UNSIGNED_1_BYTE,
  284. .elem_len = 16,
  285. .elem_size = sizeof(uint8_t),
  286. .array_type = STATIC_ARRAY,
  287. .tlv_type = QMI_COMMON_TLV_TYPE,
  288. .offset = offsetof(
  289. struct ipa_ipfltr_mask_eq_128_type_v01,
  290. value),
  291. },
  292. {
  293. .data_type = QMI_EOTI,
  294. .array_type = NO_ARRAY,
  295. .tlv_type = QMI_COMMON_TLV_TYPE,
  296. },
  297. };
  298. static struct qmi_elem_info ipa3_filter_rule_type_data_v01_ei[] = {
  299. {
  300. .data_type = QMI_UNSIGNED_2_BYTE,
  301. .elem_len = 1,
  302. .elem_size = sizeof(uint16_t),
  303. .array_type = NO_ARRAY,
  304. .tlv_type = QMI_COMMON_TLV_TYPE,
  305. .offset = offsetof(
  306. struct ipa_filter_rule_type_v01,
  307. rule_eq_bitmap),
  308. },
  309. {
  310. .data_type = QMI_UNSIGNED_1_BYTE,
  311. .elem_len = 1,
  312. .elem_size = sizeof(uint8_t),
  313. .array_type = NO_ARRAY,
  314. .tlv_type = QMI_COMMON_TLV_TYPE,
  315. .offset = offsetof(
  316. struct ipa_filter_rule_type_v01,
  317. tos_eq_present),
  318. },
  319. {
  320. .data_type = QMI_UNSIGNED_1_BYTE,
  321. .elem_len = 1,
  322. .elem_size = sizeof(uint8_t),
  323. .array_type = NO_ARRAY,
  324. .tlv_type = QMI_COMMON_TLV_TYPE,
  325. .offset = offsetof(struct ipa_filter_rule_type_v01,
  326. tos_eq),
  327. },
  328. {
  329. .data_type = QMI_UNSIGNED_1_BYTE,
  330. .elem_len = 1,
  331. .elem_size = sizeof(uint8_t),
  332. .array_type = NO_ARRAY,
  333. .tlv_type = QMI_COMMON_TLV_TYPE,
  334. .offset = offsetof(struct ipa_filter_rule_type_v01,
  335. protocol_eq_present),
  336. },
  337. {
  338. .data_type = QMI_UNSIGNED_1_BYTE,
  339. .elem_len = 1,
  340. .elem_size = sizeof(uint8_t),
  341. .array_type = NO_ARRAY,
  342. .tlv_type = QMI_COMMON_TLV_TYPE,
  343. .offset = offsetof(struct ipa_filter_rule_type_v01,
  344. protocol_eq),
  345. },
  346. {
  347. .data_type = QMI_UNSIGNED_1_BYTE,
  348. .elem_len = 1,
  349. .elem_size = sizeof(uint8_t),
  350. .array_type = NO_ARRAY,
  351. .tlv_type = QMI_COMMON_TLV_TYPE,
  352. .offset = offsetof(struct ipa_filter_rule_type_v01,
  353. num_ihl_offset_range_16),
  354. },
  355. {
  356. .data_type = QMI_STRUCT,
  357. .elem_len = QMI_IPA_IPFLTR_NUM_IHL_RANGE_16_EQNS_V01,
  358. .elem_size = sizeof(
  359. struct ipa_ipfltr_range_eq_16_type_v01),
  360. .array_type = STATIC_ARRAY,
  361. .tlv_type = QMI_COMMON_TLV_TYPE,
  362. .offset = offsetof(struct ipa_filter_rule_type_v01,
  363. ihl_offset_range_16),
  364. .ei_array = ipa3_ipfltr_range_eq_16_type_data_v01_ei,
  365. },
  366. {
  367. .data_type = QMI_UNSIGNED_1_BYTE,
  368. .elem_len = 1,
  369. .elem_size = sizeof(uint8_t),
  370. .array_type = NO_ARRAY,
  371. .tlv_type = QMI_COMMON_TLV_TYPE,
  372. .offset = offsetof(struct ipa_filter_rule_type_v01,
  373. num_offset_meq_32),
  374. },
  375. {
  376. .data_type = QMI_STRUCT,
  377. .elem_len = QMI_IPA_IPFLTR_NUM_MEQ_32_EQNS_V01,
  378. .elem_size = sizeof(struct ipa_ipfltr_mask_eq_32_type_v01),
  379. .array_type = STATIC_ARRAY,
  380. .tlv_type = QMI_COMMON_TLV_TYPE,
  381. .offset = offsetof(struct ipa_filter_rule_type_v01,
  382. offset_meq_32),
  383. .ei_array = ipa3_ipfltr_mask_eq_32_type_data_v01_ei,
  384. },
  385. {
  386. .data_type = QMI_UNSIGNED_1_BYTE,
  387. .elem_len = 1,
  388. .elem_size = sizeof(uint8_t),
  389. .array_type = NO_ARRAY,
  390. .tlv_type = QMI_COMMON_TLV_TYPE,
  391. .offset = offsetof(struct ipa_filter_rule_type_v01,
  392. tc_eq_present),
  393. },
  394. {
  395. .data_type = QMI_UNSIGNED_1_BYTE,
  396. .elem_len = 1,
  397. .elem_size = sizeof(uint8_t),
  398. .array_type = NO_ARRAY,
  399. .tlv_type = QMI_COMMON_TLV_TYPE,
  400. .offset = offsetof(struct ipa_filter_rule_type_v01,
  401. tc_eq),
  402. },
  403. {
  404. .data_type = QMI_UNSIGNED_1_BYTE,
  405. .elem_len = 1,
  406. .elem_size = sizeof(uint8_t),
  407. .array_type = NO_ARRAY,
  408. .tlv_type = QMI_COMMON_TLV_TYPE,
  409. .offset = offsetof(struct ipa_filter_rule_type_v01,
  410. flow_eq_present),
  411. },
  412. {
  413. .data_type = QMI_UNSIGNED_4_BYTE,
  414. .elem_len = 1,
  415. .elem_size = sizeof(uint32_t),
  416. .array_type = NO_ARRAY,
  417. .tlv_type = QMI_COMMON_TLV_TYPE,
  418. .offset = offsetof(struct ipa_filter_rule_type_v01,
  419. flow_eq),
  420. },
  421. {
  422. .data_type = QMI_UNSIGNED_1_BYTE,
  423. .elem_len = 1,
  424. .elem_size = sizeof(uint8_t),
  425. .array_type = NO_ARRAY,
  426. .tlv_type = QMI_COMMON_TLV_TYPE,
  427. .offset = offsetof(struct ipa_filter_rule_type_v01,
  428. ihl_offset_eq_16_present),
  429. },
  430. {
  431. .data_type = QMI_STRUCT,
  432. .elem_len = 1,
  433. .elem_size = sizeof(struct ipa_ipfltr_eq_16_type_v01),
  434. .array_type = NO_ARRAY,
  435. .tlv_type = QMI_COMMON_TLV_TYPE,
  436. .offset = offsetof(struct ipa_filter_rule_type_v01,
  437. ihl_offset_eq_16),
  438. .ei_array = ipa3_ipfltr_eq_16_type_data_v01_ei,
  439. },
  440. {
  441. .data_type = QMI_UNSIGNED_1_BYTE,
  442. .elem_len = 1,
  443. .elem_size = sizeof(uint8_t),
  444. .array_type = NO_ARRAY,
  445. .tlv_type = QMI_COMMON_TLV_TYPE,
  446. .offset = offsetof(struct ipa_filter_rule_type_v01,
  447. ihl_offset_eq_32_present),
  448. },
  449. {
  450. .data_type = QMI_STRUCT,
  451. .elem_len = 1,
  452. .elem_size = sizeof(struct ipa_ipfltr_eq_32_type_v01),
  453. .array_type = NO_ARRAY,
  454. .tlv_type = QMI_COMMON_TLV_TYPE,
  455. .offset = offsetof(struct ipa_filter_rule_type_v01,
  456. ihl_offset_eq_32),
  457. .ei_array = ipa3_ipfltr_eq_32_type_data_v01_ei,
  458. },
  459. {
  460. .data_type = QMI_UNSIGNED_1_BYTE,
  461. .elem_len = 1,
  462. .elem_size = sizeof(uint8_t),
  463. .array_type = NO_ARRAY,
  464. .tlv_type = QMI_COMMON_TLV_TYPE,
  465. .offset = offsetof(struct ipa_filter_rule_type_v01,
  466. num_ihl_offset_meq_32),
  467. },
  468. {
  469. .data_type = QMI_STRUCT,
  470. .elem_len = QMI_IPA_IPFLTR_NUM_IHL_MEQ_32_EQNS_V01,
  471. .elem_size = sizeof(struct ipa_ipfltr_mask_eq_32_type_v01),
  472. .array_type = STATIC_ARRAY,
  473. .tlv_type = QMI_COMMON_TLV_TYPE,
  474. .offset = offsetof(struct ipa_filter_rule_type_v01,
  475. ihl_offset_meq_32),
  476. .ei_array = ipa3_ipfltr_mask_eq_32_type_data_v01_ei,
  477. },
  478. {
  479. .data_type = QMI_UNSIGNED_1_BYTE,
  480. .elem_len = 1,
  481. .elem_size = sizeof(uint8_t),
  482. .array_type = NO_ARRAY,
  483. .tlv_type = QMI_COMMON_TLV_TYPE,
  484. .offset = offsetof(struct ipa_filter_rule_type_v01,
  485. num_offset_meq_128),
  486. },
  487. {
  488. .data_type = QMI_STRUCT,
  489. .elem_len =
  490. QMI_IPA_IPFLTR_NUM_MEQ_128_EQNS_V01,
  491. .elem_size = sizeof(
  492. struct ipa_ipfltr_mask_eq_128_type_v01),
  493. .array_type = STATIC_ARRAY,
  494. .tlv_type = QMI_COMMON_TLV_TYPE,
  495. .offset = offsetof(
  496. struct ipa_filter_rule_type_v01,
  497. offset_meq_128),
  498. .ei_array = ipa3_ipfltr_mask_eq_128_type_data_v01_ei,
  499. },
  500. {
  501. .data_type = QMI_UNSIGNED_1_BYTE,
  502. .elem_len = 1,
  503. .elem_size = sizeof(uint8_t),
  504. .array_type = NO_ARRAY,
  505. .tlv_type = QMI_COMMON_TLV_TYPE,
  506. .offset = offsetof(struct ipa_filter_rule_type_v01,
  507. metadata_meq32_present),
  508. },
  509. {
  510. .data_type = QMI_STRUCT,
  511. .elem_len = 1,
  512. .elem_size = sizeof(struct ipa_ipfltr_mask_eq_32_type_v01),
  513. .array_type = NO_ARRAY,
  514. .tlv_type = QMI_COMMON_TLV_TYPE,
  515. .offset = offsetof(struct ipa_filter_rule_type_v01,
  516. metadata_meq32),
  517. .ei_array = ipa3_ipfltr_mask_eq_32_type_data_v01_ei,
  518. },
  519. {
  520. .data_type = QMI_UNSIGNED_1_BYTE,
  521. .elem_len = 1,
  522. .elem_size = sizeof(uint8_t),
  523. .array_type = NO_ARRAY,
  524. .tlv_type = QMI_COMMON_TLV_TYPE,
  525. .offset = offsetof(struct ipa_filter_rule_type_v01,
  526. ipv4_frag_eq_present),
  527. },
  528. {
  529. .data_type = QMI_EOTI,
  530. .array_type = NO_ARRAY,
  531. .tlv_type = QMI_COMMON_TLV_TYPE,
  532. },
  533. };
  534. static struct qmi_elem_info ipa_filter_spec_type_data_v01_ei[] = {
  535. {
  536. .data_type = QMI_UNSIGNED_4_BYTE,
  537. .elem_len = 1,
  538. .elem_size = sizeof(uint32_t),
  539. .array_type = NO_ARRAY,
  540. .tlv_type = QMI_COMMON_TLV_TYPE,
  541. .offset = offsetof(struct ipa_filter_spec_type_v01,
  542. filter_spec_identifier),
  543. },
  544. {
  545. .data_type = QMI_SIGNED_4_BYTE_ENUM,
  546. .elem_len = 1,
  547. .elem_size = sizeof(uint32_t),
  548. .array_type = NO_ARRAY,
  549. .tlv_type = QMI_COMMON_TLV_TYPE,
  550. .offset = offsetof(struct ipa_filter_spec_type_v01,
  551. ip_type),
  552. },
  553. {
  554. .data_type = QMI_STRUCT,
  555. .elem_len = 1,
  556. .elem_size = sizeof(struct ipa_filter_rule_type_v01),
  557. .array_type = NO_ARRAY,
  558. .tlv_type = QMI_COMMON_TLV_TYPE,
  559. .offset = offsetof(struct ipa_filter_spec_type_v01,
  560. filter_rule),
  561. .ei_array = ipa3_filter_rule_type_data_v01_ei,
  562. },
  563. {
  564. .data_type = QMI_SIGNED_4_BYTE_ENUM,
  565. .elem_len = 1,
  566. .elem_size = sizeof(uint32_t),
  567. .array_type = NO_ARRAY,
  568. .tlv_type = QMI_COMMON_TLV_TYPE,
  569. .offset = offsetof(struct ipa_filter_spec_type_v01,
  570. filter_action),
  571. },
  572. {
  573. .data_type = QMI_UNSIGNED_1_BYTE,
  574. .elem_len = 1,
  575. .elem_size = sizeof(uint8_t),
  576. .array_type = NO_ARRAY,
  577. .tlv_type = QMI_COMMON_TLV_TYPE,
  578. .offset = offsetof(struct ipa_filter_spec_type_v01,
  579. is_routing_table_index_valid),
  580. },
  581. {
  582. .data_type = QMI_UNSIGNED_4_BYTE,
  583. .elem_len = 1,
  584. .elem_size = sizeof(uint32_t),
  585. .array_type = NO_ARRAY,
  586. .tlv_type = QMI_COMMON_TLV_TYPE,
  587. .offset = offsetof(struct ipa_filter_spec_type_v01,
  588. route_table_index),
  589. },
  590. {
  591. .data_type = QMI_UNSIGNED_1_BYTE,
  592. .elem_len = 1,
  593. .elem_size = sizeof(uint8_t),
  594. .array_type = NO_ARRAY,
  595. .tlv_type = QMI_COMMON_TLV_TYPE,
  596. .offset = offsetof(struct ipa_filter_spec_type_v01,
  597. is_mux_id_valid),
  598. },
  599. {
  600. .data_type = QMI_UNSIGNED_4_BYTE,
  601. .elem_len = 1,
  602. .elem_size = sizeof(uint32_t),
  603. .array_type = NO_ARRAY,
  604. .tlv_type = QMI_COMMON_TLV_TYPE,
  605. .offset = offsetof(struct ipa_filter_spec_type_v01,
  606. mux_id),
  607. },
  608. {
  609. .data_type = QMI_EOTI,
  610. .array_type = NO_ARRAY,
  611. .tlv_type = QMI_COMMON_TLV_TYPE,
  612. },
  613. };
  614. static struct qmi_elem_info ipa_filter_spec_ex_type_data_v01_ei[] = {
  615. {
  616. .data_type = QMI_SIGNED_4_BYTE_ENUM,
  617. .elem_len = 1,
  618. .elem_size = sizeof(uint32_t),
  619. .array_type = NO_ARRAY,
  620. .tlv_type = QMI_COMMON_TLV_TYPE,
  621. .offset = offsetof(struct ipa_filter_spec_ex_type_v01,
  622. ip_type),
  623. },
  624. {
  625. .data_type = QMI_STRUCT,
  626. .elem_len = 1,
  627. .elem_size = sizeof(struct ipa_filter_rule_type_v01),
  628. .array_type = NO_ARRAY,
  629. .tlv_type = QMI_COMMON_TLV_TYPE,
  630. .offset = offsetof(struct ipa_filter_spec_ex_type_v01,
  631. filter_rule),
  632. .ei_array = ipa3_filter_rule_type_data_v01_ei,
  633. },
  634. {
  635. .data_type = QMI_SIGNED_4_BYTE_ENUM,
  636. .elem_len = 1,
  637. .elem_size = sizeof(uint32_t),
  638. .array_type = NO_ARRAY,
  639. .tlv_type = QMI_COMMON_TLV_TYPE,
  640. .offset = offsetof(struct ipa_filter_spec_ex_type_v01,
  641. filter_action),
  642. },
  643. {
  644. .data_type = QMI_UNSIGNED_1_BYTE,
  645. .elem_len = 1,
  646. .elem_size = sizeof(uint8_t),
  647. .array_type = NO_ARRAY,
  648. .tlv_type = QMI_COMMON_TLV_TYPE,
  649. .offset = offsetof(struct ipa_filter_spec_ex_type_v01,
  650. is_routing_table_index_valid),
  651. },
  652. {
  653. .data_type = QMI_UNSIGNED_4_BYTE,
  654. .elem_len = 1,
  655. .elem_size = sizeof(uint32_t),
  656. .array_type = NO_ARRAY,
  657. .tlv_type = QMI_COMMON_TLV_TYPE,
  658. .offset = offsetof(struct ipa_filter_spec_ex_type_v01,
  659. route_table_index),
  660. },
  661. {
  662. .data_type = QMI_UNSIGNED_1_BYTE,
  663. .elem_len = 1,
  664. .elem_size = sizeof(uint8_t),
  665. .array_type = NO_ARRAY,
  666. .tlv_type = QMI_COMMON_TLV_TYPE,
  667. .offset = offsetof(struct ipa_filter_spec_ex_type_v01,
  668. is_mux_id_valid),
  669. },
  670. {
  671. .data_type = QMI_UNSIGNED_4_BYTE,
  672. .elem_len = 1,
  673. .elem_size = sizeof(uint32_t),
  674. .array_type = NO_ARRAY,
  675. .tlv_type = QMI_COMMON_TLV_TYPE,
  676. .offset = offsetof(struct ipa_filter_spec_ex_type_v01,
  677. mux_id),
  678. },
  679. {
  680. .data_type = QMI_UNSIGNED_4_BYTE,
  681. .elem_len = 1,
  682. .elem_size = sizeof(uint32_t),
  683. .array_type = NO_ARRAY,
  684. .tlv_type = QMI_COMMON_TLV_TYPE,
  685. .offset = offsetof(struct ipa_filter_spec_ex_type_v01,
  686. rule_id),
  687. },
  688. {
  689. .data_type = QMI_UNSIGNED_1_BYTE,
  690. .elem_len = 1,
  691. .elem_size = sizeof(uint8_t),
  692. .array_type = NO_ARRAY,
  693. .tlv_type = QMI_COMMON_TLV_TYPE,
  694. .offset = offsetof(struct ipa_filter_spec_ex_type_v01,
  695. is_rule_hashable),
  696. },
  697. {
  698. .data_type = QMI_EOTI,
  699. .array_type = NO_ARRAY,
  700. .tlv_type = QMI_COMMON_TLV_TYPE,
  701. },
  702. };
  703. static struct
  704. qmi_elem_info ipa3_filter_rule_identifier_to_handle_map_data_v01_ei[] = {
  705. {
  706. .data_type = QMI_UNSIGNED_4_BYTE,
  707. .elem_len = 1,
  708. .elem_size = sizeof(uint32_t),
  709. .array_type = NO_ARRAY,
  710. .tlv_type = QMI_COMMON_TLV_TYPE,
  711. .offset = offsetof(
  712. struct ipa_filter_rule_identifier_to_handle_map_v01,
  713. filter_spec_identifier),
  714. },
  715. {
  716. .data_type = QMI_UNSIGNED_4_BYTE,
  717. .elem_len = 1,
  718. .elem_size = sizeof(uint32_t),
  719. .array_type = NO_ARRAY,
  720. .tlv_type = QMI_COMMON_TLV_TYPE,
  721. .offset = offsetof(
  722. struct ipa_filter_rule_identifier_to_handle_map_v01,
  723. filter_handle),
  724. },
  725. {
  726. .data_type = QMI_EOTI,
  727. .array_type = NO_ARRAY,
  728. .tlv_type = QMI_COMMON_TLV_TYPE,
  729. },
  730. };
  731. static struct qmi_elem_info ipa3_filter_handle_to_index_map_data_v01_ei[] = {
  732. {
  733. .data_type = QMI_UNSIGNED_4_BYTE,
  734. .elem_len = 1,
  735. .elem_size = sizeof(uint32_t),
  736. .array_type = NO_ARRAY,
  737. .tlv_type = QMI_COMMON_TLV_TYPE,
  738. .offset = offsetof(
  739. struct ipa_filter_handle_to_index_map_v01,
  740. filter_handle),
  741. },
  742. {
  743. .data_type = QMI_UNSIGNED_4_BYTE,
  744. .elem_len = 1,
  745. .elem_size = sizeof(uint32_t),
  746. .array_type = NO_ARRAY,
  747. .tlv_type = QMI_COMMON_TLV_TYPE,
  748. .offset = offsetof(
  749. struct ipa_filter_handle_to_index_map_v01,
  750. filter_index),
  751. },
  752. {
  753. .data_type = QMI_EOTI,
  754. .array_type = NO_ARRAY,
  755. .tlv_type = QMI_COMMON_TLV_TYPE,
  756. },
  757. };
  758. struct qmi_elem_info ipa3_init_modem_driver_req_msg_data_v01_ei[] = {
  759. {
  760. .data_type = QMI_OPT_FLAG,
  761. .elem_len = 1,
  762. .elem_size = sizeof(uint8_t),
  763. .array_type = NO_ARRAY,
  764. .tlv_type = 0x10,
  765. .offset = offsetof(
  766. struct ipa_init_modem_driver_req_msg_v01,
  767. platform_type_valid),
  768. },
  769. {
  770. .data_type = QMI_SIGNED_4_BYTE_ENUM,
  771. .elem_len = 1,
  772. .elem_size = sizeof(uint32_t),
  773. .array_type = NO_ARRAY,
  774. .tlv_type = 0x10,
  775. .offset = offsetof(
  776. struct ipa_init_modem_driver_req_msg_v01,
  777. platform_type),
  778. },
  779. {
  780. .data_type = QMI_OPT_FLAG,
  781. .elem_len = 1,
  782. .elem_size = sizeof(uint8_t),
  783. .array_type = NO_ARRAY,
  784. .tlv_type = 0x11,
  785. .offset = offsetof(
  786. struct ipa_init_modem_driver_req_msg_v01,
  787. hdr_tbl_info_valid),
  788. },
  789. {
  790. .data_type = QMI_STRUCT,
  791. .elem_len = 1,
  792. .elem_size = sizeof(struct ipa_hdr_tbl_info_type_v01),
  793. .array_type = NO_ARRAY,
  794. .tlv_type = 0x11,
  795. .offset = offsetof(
  796. struct ipa_init_modem_driver_req_msg_v01,
  797. hdr_tbl_info),
  798. .ei_array = ipa3_hdr_tbl_info_type_data_v01_ei,
  799. },
  800. {
  801. .data_type = QMI_OPT_FLAG,
  802. .elem_len = 1,
  803. .elem_size = sizeof(uint8_t),
  804. .array_type = NO_ARRAY,
  805. .tlv_type = 0x12,
  806. .offset = offsetof(
  807. struct ipa_init_modem_driver_req_msg_v01,
  808. v4_route_tbl_info_valid),
  809. },
  810. {
  811. .data_type = QMI_STRUCT,
  812. .elem_len = 1,
  813. .elem_size = sizeof(struct ipa_route_tbl_info_type_v01),
  814. .array_type = NO_ARRAY,
  815. .tlv_type = 0x12,
  816. .offset = offsetof(
  817. struct ipa_init_modem_driver_req_msg_v01,
  818. v4_route_tbl_info),
  819. .ei_array = ipa3_route_tbl_info_type_data_v01_ei,
  820. },
  821. {
  822. .data_type = QMI_OPT_FLAG,
  823. .elem_len = 1,
  824. .elem_size = sizeof(uint8_t),
  825. .array_type = NO_ARRAY,
  826. .tlv_type = 0x13,
  827. .offset = offsetof(
  828. struct ipa_init_modem_driver_req_msg_v01,
  829. v6_route_tbl_info_valid),
  830. },
  831. {
  832. .data_type = QMI_STRUCT,
  833. .elem_len = 1,
  834. .elem_size = sizeof(struct ipa_route_tbl_info_type_v01),
  835. .array_type = NO_ARRAY,
  836. .tlv_type = 0x13,
  837. .offset = offsetof(
  838. struct ipa_init_modem_driver_req_msg_v01,
  839. v6_route_tbl_info),
  840. .ei_array = ipa3_route_tbl_info_type_data_v01_ei,
  841. },
  842. {
  843. .data_type = QMI_OPT_FLAG,
  844. .elem_len = 1,
  845. .elem_size = sizeof(uint8_t),
  846. .array_type = NO_ARRAY,
  847. .tlv_type = 0x14,
  848. .offset = offsetof(
  849. struct ipa_init_modem_driver_req_msg_v01,
  850. v4_filter_tbl_start_addr_valid),
  851. },
  852. {
  853. .data_type = QMI_UNSIGNED_4_BYTE,
  854. .elem_len = 1,
  855. .elem_size = sizeof(uint32_t),
  856. .array_type = NO_ARRAY,
  857. .tlv_type = 0x14,
  858. .offset = offsetof(
  859. struct ipa_init_modem_driver_req_msg_v01,
  860. v4_filter_tbl_start_addr),
  861. },
  862. {
  863. .data_type = QMI_OPT_FLAG,
  864. .elem_len = 1,
  865. .elem_size = sizeof(uint8_t),
  866. .array_type = NO_ARRAY,
  867. .tlv_type = 0x15,
  868. .offset = offsetof(
  869. struct ipa_init_modem_driver_req_msg_v01,
  870. v6_filter_tbl_start_addr_valid),
  871. },
  872. {
  873. .data_type = QMI_UNSIGNED_4_BYTE,
  874. .elem_len = 1,
  875. .elem_size = sizeof(uint32_t),
  876. .array_type = NO_ARRAY,
  877. .tlv_type = 0x15,
  878. .offset = offsetof(
  879. struct ipa_init_modem_driver_req_msg_v01,
  880. v6_filter_tbl_start_addr),
  881. },
  882. {
  883. .data_type = QMI_OPT_FLAG,
  884. .elem_len = 1,
  885. .elem_size = sizeof(uint8_t),
  886. .array_type = NO_ARRAY,
  887. .tlv_type = 0x16,
  888. .offset = offsetof(
  889. struct ipa_init_modem_driver_req_msg_v01,
  890. modem_mem_info_valid),
  891. },
  892. {
  893. .data_type = QMI_STRUCT,
  894. .elem_len = 1,
  895. .elem_size = sizeof(struct ipa_modem_mem_info_type_v01),
  896. .array_type = NO_ARRAY,
  897. .tlv_type = 0x16,
  898. .offset = offsetof(
  899. struct ipa_init_modem_driver_req_msg_v01,
  900. modem_mem_info),
  901. .ei_array = ipa3_modem_mem_info_type_data_v01_ei,
  902. },
  903. {
  904. .data_type = QMI_OPT_FLAG,
  905. .elem_len = 1,
  906. .elem_size = sizeof(uint8_t),
  907. .array_type = NO_ARRAY,
  908. .tlv_type = 0x17,
  909. .offset = offsetof(
  910. struct ipa_init_modem_driver_req_msg_v01,
  911. ctrl_comm_dest_end_pt_valid),
  912. },
  913. {
  914. .data_type = QMI_UNSIGNED_4_BYTE,
  915. .elem_len = 1,
  916. .elem_size = sizeof(uint32_t),
  917. .array_type = NO_ARRAY,
  918. .tlv_type = 0x17,
  919. .offset = offsetof(
  920. struct ipa_init_modem_driver_req_msg_v01,
  921. ctrl_comm_dest_end_pt),
  922. },
  923. {
  924. .data_type = QMI_OPT_FLAG,
  925. .elem_len = 1,
  926. .elem_size = sizeof(uint8_t),
  927. .array_type = NO_ARRAY,
  928. .tlv_type = 0x18,
  929. .offset = offsetof(
  930. struct ipa_init_modem_driver_req_msg_v01,
  931. is_ssr_bootup_valid),
  932. },
  933. {
  934. .data_type = QMI_UNSIGNED_1_BYTE,
  935. .elem_len = 1,
  936. .elem_size = sizeof(uint8_t),
  937. .array_type = NO_ARRAY,
  938. .tlv_type = 0x18,
  939. .offset = offsetof(
  940. struct ipa_init_modem_driver_req_msg_v01,
  941. is_ssr_bootup),
  942. },
  943. {
  944. .data_type = QMI_OPT_FLAG,
  945. .elem_len = 1,
  946. .elem_size = sizeof(uint8_t),
  947. .array_type = NO_ARRAY,
  948. .tlv_type = 0x19,
  949. .offset = offsetof(
  950. struct ipa_init_modem_driver_req_msg_v01,
  951. hdr_proc_ctx_tbl_info_valid),
  952. },
  953. {
  954. .data_type = QMI_STRUCT,
  955. .elem_len = 1,
  956. .elem_size = sizeof(
  957. struct ipa_hdr_proc_ctx_tbl_info_type_v01),
  958. .array_type = NO_ARRAY,
  959. .tlv_type = 0x19,
  960. .offset = offsetof(
  961. struct ipa_init_modem_driver_req_msg_v01,
  962. hdr_proc_ctx_tbl_info),
  963. .ei_array = ipa3_hdr_proc_ctx_tbl_info_type_data_v01_ei,
  964. },
  965. {
  966. .data_type = QMI_OPT_FLAG,
  967. .elem_len = 1,
  968. .elem_size = sizeof(uint8_t),
  969. .array_type = NO_ARRAY,
  970. .tlv_type = 0x1A,
  971. .offset = offsetof(
  972. struct ipa_init_modem_driver_req_msg_v01,
  973. zip_tbl_info_valid),
  974. },
  975. {
  976. .data_type = QMI_STRUCT,
  977. .elem_len = 1,
  978. .elem_size = sizeof(struct ipa_zip_tbl_info_type_v01),
  979. .array_type = NO_ARRAY,
  980. .tlv_type = 0x1A,
  981. .offset = offsetof(
  982. struct ipa_init_modem_driver_req_msg_v01,
  983. zip_tbl_info),
  984. .ei_array = ipa3_zip_tbl_info_type_data_v01_ei,
  985. },
  986. {
  987. .data_type = QMI_OPT_FLAG,
  988. .elem_len = 1,
  989. .elem_size = sizeof(uint8_t),
  990. .array_type = NO_ARRAY,
  991. .tlv_type = 0x1B,
  992. .offset = offsetof(
  993. struct ipa_init_modem_driver_req_msg_v01,
  994. v4_hash_route_tbl_info_valid),
  995. },
  996. {
  997. .data_type = QMI_STRUCT,
  998. .elem_len = 1,
  999. .elem_size = sizeof(struct ipa_route_tbl_info_type_v01),
  1000. .array_type = NO_ARRAY,
  1001. .tlv_type = 0x1B,
  1002. .offset = offsetof(
  1003. struct ipa_init_modem_driver_req_msg_v01,
  1004. v4_hash_route_tbl_info),
  1005. .ei_array = ipa3_route_tbl_info_type_data_v01_ei,
  1006. },
  1007. {
  1008. .data_type = QMI_OPT_FLAG,
  1009. .elem_len = 1,
  1010. .elem_size = sizeof(uint8_t),
  1011. .array_type = NO_ARRAY,
  1012. .tlv_type = 0x1C,
  1013. .offset = offsetof(
  1014. struct ipa_init_modem_driver_req_msg_v01,
  1015. v6_hash_route_tbl_info_valid),
  1016. },
  1017. {
  1018. .data_type = QMI_STRUCT,
  1019. .elem_len = 1,
  1020. .elem_size = sizeof(struct ipa_route_tbl_info_type_v01),
  1021. .array_type = NO_ARRAY,
  1022. .tlv_type = 0x1C,
  1023. .offset = offsetof(
  1024. struct ipa_init_modem_driver_req_msg_v01,
  1025. v6_hash_route_tbl_info),
  1026. .ei_array = ipa3_route_tbl_info_type_data_v01_ei,
  1027. },
  1028. {
  1029. .data_type = QMI_OPT_FLAG,
  1030. .elem_len = 1,
  1031. .elem_size = sizeof(uint8_t),
  1032. .array_type = NO_ARRAY,
  1033. .tlv_type = 0x1D,
  1034. .offset = offsetof(
  1035. struct ipa_init_modem_driver_req_msg_v01,
  1036. v4_hash_filter_tbl_start_addr_valid),
  1037. },
  1038. {
  1039. .data_type = QMI_UNSIGNED_4_BYTE,
  1040. .elem_len = 1,
  1041. .elem_size = sizeof(uint32_t),
  1042. .array_type = NO_ARRAY,
  1043. .tlv_type = 0x1D,
  1044. .offset = offsetof(
  1045. struct ipa_init_modem_driver_req_msg_v01,
  1046. v4_hash_filter_tbl_start_addr),
  1047. },
  1048. {
  1049. .data_type = QMI_OPT_FLAG,
  1050. .elem_len = 1,
  1051. .elem_size = sizeof(uint8_t),
  1052. .array_type = NO_ARRAY,
  1053. .tlv_type = 0x1E,
  1054. .offset = offsetof(
  1055. struct ipa_init_modem_driver_req_msg_v01,
  1056. v6_hash_filter_tbl_start_addr_valid),
  1057. },
  1058. {
  1059. .data_type = QMI_UNSIGNED_4_BYTE,
  1060. .elem_len = 1,
  1061. .elem_size = sizeof(uint32_t),
  1062. .array_type = NO_ARRAY,
  1063. .tlv_type = 0x1E,
  1064. .offset = offsetof(
  1065. struct ipa_init_modem_driver_req_msg_v01,
  1066. v6_hash_filter_tbl_start_addr),
  1067. },
  1068. {
  1069. .data_type = QMI_OPT_FLAG,
  1070. .elem_len = 1,
  1071. .elem_size = sizeof(uint8_t),
  1072. .array_type = NO_ARRAY,
  1073. .tlv_type = 0x1F,
  1074. .offset = offsetof(
  1075. struct ipa_init_modem_driver_req_msg_v01,
  1076. hw_stats_quota_base_addr_valid),
  1077. },
  1078. {
  1079. .data_type = QMI_UNSIGNED_4_BYTE,
  1080. .elem_len = 1,
  1081. .elem_size = sizeof(uint32_t),
  1082. .array_type = NO_ARRAY,
  1083. .tlv_type = 0x1F,
  1084. .offset = offsetof(
  1085. struct ipa_init_modem_driver_req_msg_v01,
  1086. hw_stats_quota_base_addr),
  1087. },
  1088. {
  1089. .data_type = QMI_OPT_FLAG,
  1090. .elem_len = 1,
  1091. .elem_size = sizeof(uint8_t),
  1092. .array_type = NO_ARRAY,
  1093. .tlv_type = 0x20,
  1094. .offset = offsetof(
  1095. struct ipa_init_modem_driver_req_msg_v01,
  1096. hw_stats_quota_size_valid),
  1097. },
  1098. {
  1099. .data_type = QMI_UNSIGNED_4_BYTE,
  1100. .elem_len = 1,
  1101. .elem_size = sizeof(uint32_t),
  1102. .array_type = NO_ARRAY,
  1103. .tlv_type = 0x20,
  1104. .offset = offsetof(
  1105. struct ipa_init_modem_driver_req_msg_v01,
  1106. hw_stats_quota_size),
  1107. },
  1108. {
  1109. .data_type = QMI_OPT_FLAG,
  1110. .elem_len = 1,
  1111. .elem_size = sizeof(uint8_t),
  1112. .array_type = NO_ARRAY,
  1113. .tlv_type = 0x21,
  1114. .offset = offsetof(
  1115. struct ipa_init_modem_driver_req_msg_v01,
  1116. hw_drop_stats_base_addr_valid),
  1117. },
  1118. {
  1119. .data_type = QMI_UNSIGNED_4_BYTE,
  1120. .elem_len = 1,
  1121. .elem_size = sizeof(uint32_t),
  1122. .array_type = NO_ARRAY,
  1123. .tlv_type = 0x21,
  1124. .offset = offsetof(
  1125. struct ipa_init_modem_driver_req_msg_v01,
  1126. hw_drop_stats_base_addr),
  1127. },
  1128. {
  1129. .data_type = QMI_OPT_FLAG,
  1130. .elem_len = 1,
  1131. .elem_size = sizeof(uint8_t),
  1132. .array_type = NO_ARRAY,
  1133. .tlv_type = 0x22,
  1134. .offset = offsetof(
  1135. struct ipa_init_modem_driver_req_msg_v01,
  1136. hw_drop_stats_table_size_valid),
  1137. },
  1138. {
  1139. .data_type = QMI_UNSIGNED_4_BYTE,
  1140. .elem_len = 1,
  1141. .elem_size = sizeof(uint32_t),
  1142. .array_type = NO_ARRAY,
  1143. .tlv_type = 0x22,
  1144. .offset = offsetof(
  1145. struct ipa_init_modem_driver_req_msg_v01,
  1146. hw_drop_stats_table_size),
  1147. },
  1148. {
  1149. .data_type = QMI_EOTI,
  1150. .array_type = NO_ARRAY,
  1151. .tlv_type = QMI_COMMON_TLV_TYPE,
  1152. },
  1153. };
  1154. struct qmi_elem_info ipa3_init_modem_driver_resp_msg_data_v01_ei[] = {
  1155. {
  1156. .data_type = QMI_STRUCT,
  1157. .elem_len = 1,
  1158. .elem_size = sizeof(struct qmi_response_type_v01),
  1159. .array_type = NO_ARRAY,
  1160. .tlv_type = 0x02,
  1161. .offset = offsetof(
  1162. struct ipa_init_modem_driver_resp_msg_v01,
  1163. resp),
  1164. .ei_array = qmi_response_type_v01_ei,
  1165. },
  1166. {
  1167. .data_type = QMI_OPT_FLAG,
  1168. .elem_len = 1,
  1169. .elem_size = sizeof(uint8_t),
  1170. .array_type = NO_ARRAY,
  1171. .tlv_type = 0x10,
  1172. .offset = offsetof(
  1173. struct ipa_init_modem_driver_resp_msg_v01,
  1174. ctrl_comm_dest_end_pt_valid),
  1175. },
  1176. {
  1177. .data_type = QMI_UNSIGNED_4_BYTE,
  1178. .elem_len = 1,
  1179. .elem_size = sizeof(uint32_t),
  1180. .array_type = NO_ARRAY,
  1181. .tlv_type = 0x10,
  1182. .offset = offsetof(
  1183. struct ipa_init_modem_driver_resp_msg_v01,
  1184. ctrl_comm_dest_end_pt),
  1185. },
  1186. {
  1187. .data_type = QMI_OPT_FLAG,
  1188. .elem_len = 1,
  1189. .elem_size = sizeof(uint8_t),
  1190. .array_type = NO_ARRAY,
  1191. .tlv_type = 0x11,
  1192. .offset = offsetof(
  1193. struct ipa_init_modem_driver_resp_msg_v01,
  1194. default_end_pt_valid),
  1195. },
  1196. {
  1197. .data_type = QMI_UNSIGNED_4_BYTE,
  1198. .elem_len = 1,
  1199. .elem_size = sizeof(uint32_t),
  1200. .array_type = NO_ARRAY,
  1201. .tlv_type = 0x11,
  1202. .offset = offsetof(
  1203. struct ipa_init_modem_driver_resp_msg_v01,
  1204. default_end_pt),
  1205. },
  1206. {
  1207. .data_type = QMI_OPT_FLAG,
  1208. .elem_len = 1,
  1209. .elem_size = sizeof(uint8_t),
  1210. .array_type = NO_ARRAY,
  1211. .tlv_type = 0x12,
  1212. .offset = offsetof(
  1213. struct ipa_init_modem_driver_resp_msg_v01,
  1214. modem_driver_init_pending_valid),
  1215. },
  1216. {
  1217. .data_type = QMI_UNSIGNED_1_BYTE,
  1218. .elem_len = 1,
  1219. .elem_size = sizeof(uint8_t),
  1220. .array_type = NO_ARRAY,
  1221. .tlv_type = 0x12,
  1222. .offset = offsetof(
  1223. struct ipa_init_modem_driver_resp_msg_v01,
  1224. modem_driver_init_pending),
  1225. },
  1226. {
  1227. .data_type = QMI_EOTI,
  1228. .array_type = NO_ARRAY,
  1229. .tlv_type = QMI_COMMON_TLV_TYPE,
  1230. },
  1231. };
  1232. struct qmi_elem_info ipa3_init_modem_driver_cmplt_req_msg_data_v01_ei[] = {
  1233. {
  1234. .data_type = QMI_UNSIGNED_1_BYTE,
  1235. .elem_len = 1,
  1236. .elem_size = sizeof(uint8_t),
  1237. .array_type = NO_ARRAY,
  1238. .tlv_type = 0x01,
  1239. .offset = offsetof(
  1240. struct ipa_init_modem_driver_cmplt_req_msg_v01,
  1241. status),
  1242. },
  1243. {
  1244. .data_type = QMI_EOTI,
  1245. .array_type = NO_ARRAY,
  1246. .tlv_type = QMI_COMMON_TLV_TYPE,
  1247. },
  1248. };
  1249. struct qmi_elem_info ipa3_init_modem_driver_cmplt_resp_msg_data_v01_ei[] = {
  1250. {
  1251. .data_type = QMI_STRUCT,
  1252. .elem_len = 1,
  1253. .elem_size = sizeof(struct qmi_response_type_v01),
  1254. .array_type = NO_ARRAY,
  1255. .tlv_type = 0x02,
  1256. .offset = offsetof(
  1257. struct ipa_init_modem_driver_cmplt_resp_msg_v01,
  1258. resp),
  1259. .ei_array = qmi_response_type_v01_ei,
  1260. },
  1261. {
  1262. .data_type = QMI_EOTI,
  1263. .array_type = NO_ARRAY,
  1264. .tlv_type = QMI_COMMON_TLV_TYPE,
  1265. },
  1266. };
  1267. struct qmi_elem_info ipa3_indication_reg_req_msg_data_v01_ei[] = {
  1268. {
  1269. .data_type = QMI_OPT_FLAG,
  1270. .elem_len = 1,
  1271. .elem_size = sizeof(uint8_t),
  1272. .array_type = NO_ARRAY,
  1273. .tlv_type = 0x10,
  1274. .offset = offsetof(
  1275. struct ipa_indication_reg_req_msg_v01,
  1276. master_driver_init_complete_valid),
  1277. },
  1278. {
  1279. .data_type = QMI_UNSIGNED_1_BYTE,
  1280. .elem_len = 1,
  1281. .elem_size = sizeof(uint8_t),
  1282. .array_type = NO_ARRAY,
  1283. .tlv_type = 0x10,
  1284. .offset = offsetof(
  1285. struct ipa_indication_reg_req_msg_v01,
  1286. master_driver_init_complete),
  1287. },
  1288. {
  1289. .data_type = QMI_OPT_FLAG,
  1290. .elem_len = 1,
  1291. .elem_size = sizeof(uint8_t),
  1292. .array_type = NO_ARRAY,
  1293. .tlv_type = 0x11,
  1294. .offset = offsetof(
  1295. struct ipa_indication_reg_req_msg_v01,
  1296. data_usage_quota_reached_valid),
  1297. },
  1298. {
  1299. .data_type = QMI_UNSIGNED_1_BYTE,
  1300. .elem_len = 1,
  1301. .elem_size = sizeof(uint8_t),
  1302. .array_type = NO_ARRAY,
  1303. .tlv_type = 0x11,
  1304. .offset = offsetof(
  1305. struct ipa_indication_reg_req_msg_v01,
  1306. data_usage_quota_reached),
  1307. },
  1308. {
  1309. .data_type = QMI_OPT_FLAG,
  1310. .elem_len = 1,
  1311. .elem_size = sizeof(u8),
  1312. .array_type = NO_ARRAY,
  1313. .tlv_type = 0x12,
  1314. .offset = offsetof(
  1315. struct ipa_indication_reg_req_msg_v01,
  1316. ipa_mhi_ready_ind_valid),
  1317. },
  1318. {
  1319. .data_type = QMI_OPT_FLAG,
  1320. .elem_len = 1,
  1321. .elem_size = sizeof(u8),
  1322. .array_type = NO_ARRAY,
  1323. .tlv_type = 0x13,
  1324. .offset = offsetof(
  1325. struct ipa_indication_reg_req_msg_v01,
  1326. endpoint_desc_ind_valid),
  1327. },
  1328. {
  1329. .data_type = QMI_UNSIGNED_1_BYTE,
  1330. .elem_len = 1,
  1331. .elem_size = sizeof(u8),
  1332. .array_type = NO_ARRAY,
  1333. .tlv_type = 0x13,
  1334. .offset = offsetof(
  1335. struct ipa_indication_reg_req_msg_v01,
  1336. endpoint_desc_ind),
  1337. },
  1338. {
  1339. .data_type = QMI_UNSIGNED_1_BYTE,
  1340. .elem_len = 1,
  1341. .elem_size = sizeof(u8),
  1342. .array_type = NO_ARRAY,
  1343. .tlv_type = 0x12,
  1344. .offset = offsetof(
  1345. struct ipa_indication_reg_req_msg_v01,
  1346. ipa_mhi_ready_ind),
  1347. },
  1348. {
  1349. .data_type = QMI_EOTI,
  1350. .array_type = NO_ARRAY,
  1351. .tlv_type = QMI_COMMON_TLV_TYPE,
  1352. },
  1353. };
  1354. struct qmi_elem_info ipa3_indication_reg_resp_msg_data_v01_ei[] = {
  1355. {
  1356. .data_type = QMI_STRUCT,
  1357. .elem_len = 1,
  1358. .elem_size = sizeof(struct qmi_response_type_v01),
  1359. .array_type = NO_ARRAY,
  1360. .tlv_type = 0x02,
  1361. .offset = offsetof(
  1362. struct ipa_indication_reg_resp_msg_v01,
  1363. resp),
  1364. .ei_array = qmi_response_type_v01_ei,
  1365. },
  1366. {
  1367. .data_type = QMI_EOTI,
  1368. .array_type = NO_ARRAY,
  1369. .tlv_type = QMI_COMMON_TLV_TYPE,
  1370. },
  1371. };
  1372. struct qmi_elem_info ipa3_master_driver_init_complt_ind_msg_data_v01_ei[] = {
  1373. {
  1374. .data_type = QMI_STRUCT,
  1375. .elem_len = 1,
  1376. .elem_size = sizeof(struct qmi_response_type_v01),
  1377. .array_type = NO_ARRAY,
  1378. .tlv_type = 0x02,
  1379. .offset = offsetof(struct
  1380. ipa_master_driver_init_complt_ind_msg_v01,
  1381. master_driver_init_status),
  1382. .ei_array = qmi_response_type_v01_ei,
  1383. },
  1384. {
  1385. .data_type = QMI_EOTI,
  1386. .array_type = NO_ARRAY,
  1387. .tlv_type = QMI_COMMON_TLV_TYPE,
  1388. },
  1389. };
  1390. static struct qmi_elem_info ipa_filter_rule_req2_type_v01_ei[] = {
  1391. {
  1392. .data_type = QMI_UNSIGNED_2_BYTE,
  1393. .elem_len = 1,
  1394. .elem_size = sizeof(u16),
  1395. .array_type = NO_ARRAY,
  1396. .tlv_type = 0,
  1397. .offset = offsetof(struct ipa_filter_rule_req2_type_v01,
  1398. rule_eq_bitmap),
  1399. },
  1400. {
  1401. .data_type = QMI_UNSIGNED_1_BYTE,
  1402. .elem_len = 1,
  1403. .elem_size = sizeof(u8),
  1404. .array_type = NO_ARRAY,
  1405. .tlv_type = 0,
  1406. .offset = offsetof(struct ipa_filter_rule_req2_type_v01,
  1407. pure_ack_eq_present),
  1408. },
  1409. {
  1410. .data_type = QMI_UNSIGNED_1_BYTE,
  1411. .elem_len = 1,
  1412. .elem_size = sizeof(u8),
  1413. .array_type = NO_ARRAY,
  1414. .tlv_type = 0,
  1415. .offset = offsetof(struct ipa_filter_rule_req2_type_v01,
  1416. pure_ack_eq),
  1417. },
  1418. {
  1419. .data_type = QMI_UNSIGNED_1_BYTE,
  1420. .elem_len = 1,
  1421. .elem_size = sizeof(u8),
  1422. .array_type = NO_ARRAY,
  1423. .tlv_type = 0,
  1424. .offset = offsetof(struct ipa_filter_rule_req2_type_v01,
  1425. protocol_eq_present),
  1426. },
  1427. {
  1428. .data_type = QMI_UNSIGNED_1_BYTE,
  1429. .elem_len = 1,
  1430. .elem_size = sizeof(u8),
  1431. .array_type = NO_ARRAY,
  1432. .tlv_type = 0,
  1433. .offset = offsetof(struct ipa_filter_rule_req2_type_v01,
  1434. protocol_eq),
  1435. },
  1436. {
  1437. .data_type = QMI_UNSIGNED_1_BYTE,
  1438. .elem_len = 1,
  1439. .elem_size = sizeof(u8),
  1440. .array_type = NO_ARRAY,
  1441. .tlv_type = 0,
  1442. .offset = offsetof(struct ipa_filter_rule_req2_type_v01,
  1443. num_ihl_offset_range_16),
  1444. },
  1445. {
  1446. .data_type = QMI_STRUCT,
  1447. .elem_len = QMI_IPA_IPFLTR_NUM_IHL_RANGE_16_EQNS_V01,
  1448. .elem_size = sizeof(
  1449. struct ipa_ipfltr_range_eq_16_type_v01),
  1450. .array_type = STATIC_ARRAY,
  1451. .tlv_type = 0,
  1452. .offset = offsetof(struct ipa_filter_rule_req2_type_v01,
  1453. ihl_offset_range_16),
  1454. .ei_array = ipa3_ipfltr_range_eq_16_type_data_v01_ei,
  1455. },
  1456. {
  1457. .data_type = QMI_UNSIGNED_1_BYTE,
  1458. .elem_len = 1,
  1459. .elem_size = sizeof(u8),
  1460. .array_type = NO_ARRAY,
  1461. .tlv_type = 0,
  1462. .offset = offsetof(struct ipa_filter_rule_req2_type_v01,
  1463. num_offset_meq_32),
  1464. },
  1465. {
  1466. .data_type = QMI_STRUCT,
  1467. .elem_len = QMI_IPA_IPFLTR_NUM_MEQ_32_EQNS_V01,
  1468. .elem_size = sizeof(struct ipa_ipfltr_mask_eq_32_type_v01),
  1469. .array_type = STATIC_ARRAY,
  1470. .tlv_type = 0,
  1471. .offset = offsetof(struct ipa_filter_rule_req2_type_v01,
  1472. offset_meq_32),
  1473. .ei_array = ipa3_ipfltr_mask_eq_32_type_data_v01_ei,
  1474. },
  1475. {
  1476. .data_type = QMI_UNSIGNED_1_BYTE,
  1477. .elem_len = 1,
  1478. .elem_size = sizeof(u8),
  1479. .array_type = NO_ARRAY,
  1480. .tlv_type = 0,
  1481. .offset = offsetof(struct ipa_filter_rule_req2_type_v01,
  1482. tc_eq_present),
  1483. },
  1484. {
  1485. .data_type = QMI_UNSIGNED_1_BYTE,
  1486. .elem_len = 1,
  1487. .elem_size = sizeof(u8),
  1488. .array_type = NO_ARRAY,
  1489. .tlv_type = 0,
  1490. .offset = offsetof(struct ipa_filter_rule_req2_type_v01,
  1491. tc_eq),
  1492. },
  1493. {
  1494. .data_type = QMI_UNSIGNED_1_BYTE,
  1495. .elem_len = 1,
  1496. .elem_size = sizeof(u8),
  1497. .array_type = NO_ARRAY,
  1498. .tlv_type = 0,
  1499. .offset = offsetof(struct ipa_filter_rule_req2_type_v01,
  1500. flow_eq_present),
  1501. },
  1502. {
  1503. .data_type = QMI_UNSIGNED_4_BYTE,
  1504. .elem_len = 1,
  1505. .elem_size = sizeof(u32),
  1506. .array_type = NO_ARRAY,
  1507. .tlv_type = 0,
  1508. .offset = offsetof(struct ipa_filter_rule_req2_type_v01,
  1509. flow_eq),
  1510. },
  1511. {
  1512. .data_type = QMI_UNSIGNED_1_BYTE,
  1513. .elem_len = 1,
  1514. .elem_size = sizeof(u8),
  1515. .array_type = NO_ARRAY,
  1516. .tlv_type = 0,
  1517. .offset = offsetof(struct ipa_filter_rule_req2_type_v01,
  1518. ihl_offset_eq_16_present),
  1519. },
  1520. {
  1521. .data_type = QMI_STRUCT,
  1522. .elem_len = 1,
  1523. .elem_size = sizeof(struct ipa_ipfltr_eq_16_type_v01),
  1524. .array_type = NO_ARRAY,
  1525. .tlv_type = 0,
  1526. .offset = offsetof(struct ipa_filter_rule_req2_type_v01,
  1527. ihl_offset_eq_16),
  1528. .ei_array = ipa3_ipfltr_eq_16_type_data_v01_ei,
  1529. },
  1530. {
  1531. .data_type = QMI_UNSIGNED_1_BYTE,
  1532. .elem_len = 1,
  1533. .elem_size = sizeof(u8),
  1534. .array_type = NO_ARRAY,
  1535. .tlv_type = 0,
  1536. .offset = offsetof(struct ipa_filter_rule_req2_type_v01,
  1537. ihl_offset_eq_32_present),
  1538. },
  1539. {
  1540. .data_type = QMI_STRUCT,
  1541. .elem_len = 1,
  1542. .elem_size = sizeof(struct ipa_ipfltr_eq_32_type_v01),
  1543. .array_type = NO_ARRAY,
  1544. .tlv_type = 0,
  1545. .offset = offsetof(struct ipa_filter_rule_req2_type_v01,
  1546. ihl_offset_eq_32),
  1547. .ei_array = ipa3_ipfltr_eq_32_type_data_v01_ei,
  1548. },
  1549. {
  1550. .data_type = QMI_UNSIGNED_1_BYTE,
  1551. .elem_len = 1,
  1552. .elem_size = sizeof(u8),
  1553. .array_type = NO_ARRAY,
  1554. .tlv_type = 0,
  1555. .offset = offsetof(struct ipa_filter_rule_req2_type_v01,
  1556. num_ihl_offset_meq_32),
  1557. },
  1558. {
  1559. .data_type = QMI_STRUCT,
  1560. .elem_len = QMI_IPA_IPFLTR_NUM_IHL_MEQ_32_EQNS_V01,
  1561. .elem_size = sizeof(struct ipa_ipfltr_mask_eq_32_type_v01),
  1562. .array_type = STATIC_ARRAY,
  1563. .tlv_type = 0,
  1564. .offset = offsetof(struct ipa_filter_rule_req2_type_v01,
  1565. ihl_offset_meq_32),
  1566. .ei_array = ipa3_ipfltr_mask_eq_32_type_data_v01_ei,
  1567. },
  1568. {
  1569. .data_type = QMI_UNSIGNED_1_BYTE,
  1570. .elem_len = 1,
  1571. .elem_size = sizeof(u8),
  1572. .array_type = NO_ARRAY,
  1573. .tlv_type = 0,
  1574. .offset = offsetof(struct ipa_filter_rule_req2_type_v01,
  1575. num_offset_meq_128),
  1576. },
  1577. {
  1578. .data_type = QMI_STRUCT,
  1579. .elem_len = QMI_IPA_IPFLTR_NUM_MEQ_128_EQNS_V01,
  1580. .elem_size = sizeof(
  1581. struct ipa_ipfltr_mask_eq_128_type_v01),
  1582. .array_type = STATIC_ARRAY,
  1583. .tlv_type = 0,
  1584. .offset = offsetof(struct ipa_filter_rule_req2_type_v01,
  1585. offset_meq_128),
  1586. .ei_array = ipa3_ipfltr_mask_eq_128_type_data_v01_ei,
  1587. },
  1588. {
  1589. .data_type = QMI_UNSIGNED_1_BYTE,
  1590. .elem_len = 1,
  1591. .elem_size = sizeof(u8),
  1592. .array_type = NO_ARRAY,
  1593. .tlv_type = 0,
  1594. .offset = offsetof(struct ipa_filter_rule_req2_type_v01,
  1595. metadata_meq32_present),
  1596. },
  1597. {
  1598. .data_type = QMI_STRUCT,
  1599. .elem_len = 1,
  1600. .elem_size = sizeof(struct ipa_ipfltr_mask_eq_32_type_v01),
  1601. .array_type = NO_ARRAY,
  1602. .tlv_type = 0,
  1603. .offset = offsetof(struct ipa_filter_rule_req2_type_v01,
  1604. metadata_meq32),
  1605. .ei_array = ipa3_ipfltr_mask_eq_32_type_data_v01_ei,
  1606. },
  1607. {
  1608. .data_type = QMI_UNSIGNED_1_BYTE,
  1609. .elem_len = 1,
  1610. .elem_size = sizeof(u8),
  1611. .array_type = NO_ARRAY,
  1612. .tlv_type = 0,
  1613. .offset = offsetof(struct ipa_filter_rule_req2_type_v01,
  1614. ipv4_frag_eq_present),
  1615. },
  1616. {
  1617. .data_type = QMI_EOTI,
  1618. .array_type = NO_ARRAY,
  1619. .tlv_type = QMI_COMMON_TLV_TYPE,
  1620. },
  1621. };
  1622. static struct qmi_elem_info ipa_filter_spec_ex2_type_v01_ei[] = {
  1623. {
  1624. .data_type = QMI_SIGNED_4_BYTE_ENUM,
  1625. .elem_len = 1,
  1626. .elem_size = sizeof(enum ipa_ip_type_enum_v01),
  1627. .array_type = NO_ARRAY,
  1628. .tlv_type = 0,
  1629. .offset = offsetof(struct ipa_filter_spec_ex2_type_v01,
  1630. ip_type),
  1631. },
  1632. {
  1633. .data_type = QMI_STRUCT,
  1634. .elem_len = 1,
  1635. .elem_size = sizeof(struct ipa_filter_rule_req2_type_v01),
  1636. .array_type = NO_ARRAY,
  1637. .tlv_type = 0,
  1638. .offset = offsetof(struct ipa_filter_spec_ex2_type_v01,
  1639. filter_rule),
  1640. .ei_array = ipa_filter_rule_req2_type_v01_ei,
  1641. },
  1642. {
  1643. .data_type = QMI_SIGNED_4_BYTE_ENUM,
  1644. .elem_len = 1,
  1645. .elem_size = sizeof(enum ipa_filter_action_enum_v01),
  1646. .array_type = NO_ARRAY,
  1647. .tlv_type = 0,
  1648. .offset = offsetof(struct ipa_filter_spec_ex2_type_v01,
  1649. filter_action),
  1650. },
  1651. {
  1652. .data_type = QMI_UNSIGNED_1_BYTE,
  1653. .elem_len = 1,
  1654. .elem_size = sizeof(u8),
  1655. .array_type = NO_ARRAY,
  1656. .tlv_type = 0,
  1657. .offset = offsetof(struct ipa_filter_spec_ex2_type_v01,
  1658. is_routing_table_index_valid),
  1659. },
  1660. {
  1661. .data_type = QMI_UNSIGNED_4_BYTE,
  1662. .elem_len = 1,
  1663. .elem_size = sizeof(u32),
  1664. .array_type = NO_ARRAY,
  1665. .tlv_type = 0,
  1666. .offset = offsetof(struct ipa_filter_spec_ex2_type_v01,
  1667. route_table_index),
  1668. },
  1669. {
  1670. .data_type = QMI_UNSIGNED_1_BYTE,
  1671. .elem_len = 1,
  1672. .elem_size = sizeof(u8),
  1673. .array_type = NO_ARRAY,
  1674. .tlv_type = 0,
  1675. .offset = offsetof(struct ipa_filter_spec_ex2_type_v01,
  1676. is_mux_id_valid),
  1677. },
  1678. {
  1679. .data_type = QMI_UNSIGNED_4_BYTE,
  1680. .elem_len = 1,
  1681. .elem_size = sizeof(u32),
  1682. .array_type = NO_ARRAY,
  1683. .tlv_type = 0,
  1684. .offset = offsetof(struct ipa_filter_spec_ex2_type_v01,
  1685. mux_id),
  1686. },
  1687. {
  1688. .data_type = QMI_UNSIGNED_4_BYTE,
  1689. .elem_len = 1,
  1690. .elem_size = sizeof(u32),
  1691. .array_type = NO_ARRAY,
  1692. .tlv_type = 0,
  1693. .offset = offsetof(struct ipa_filter_spec_ex2_type_v01,
  1694. rule_id),
  1695. },
  1696. {
  1697. .data_type = QMI_UNSIGNED_1_BYTE,
  1698. .elem_len = 1,
  1699. .elem_size = sizeof(u8),
  1700. .array_type = NO_ARRAY,
  1701. .tlv_type = 0,
  1702. .offset = offsetof(struct ipa_filter_spec_ex2_type_v01,
  1703. is_rule_hashable),
  1704. },
  1705. {
  1706. .data_type = QMI_EOTI,
  1707. .array_type = NO_ARRAY,
  1708. .tlv_type = QMI_COMMON_TLV_TYPE,
  1709. },
  1710. };
  1711. struct qmi_elem_info ipa3_install_fltr_rule_req_msg_data_v01_ei[] = {
  1712. {
  1713. .data_type = QMI_OPT_FLAG,
  1714. .elem_len = 1,
  1715. .elem_size = sizeof(uint8_t),
  1716. .array_type = NO_ARRAY,
  1717. .tlv_type = 0x10,
  1718. .offset = offsetof(
  1719. struct ipa_install_fltr_rule_req_msg_v01,
  1720. filter_spec_list_valid),
  1721. },
  1722. {
  1723. .data_type = QMI_DATA_LEN,
  1724. .elem_len = 1,
  1725. .elem_size = sizeof(uint8_t),
  1726. .array_type = NO_ARRAY,
  1727. .tlv_type = 0x10,
  1728. .offset = offsetof(
  1729. struct ipa_install_fltr_rule_req_msg_v01,
  1730. filter_spec_list_len),
  1731. },
  1732. {
  1733. .data_type = QMI_STRUCT,
  1734. .elem_len = QMI_IPA_MAX_FILTERS_V01,
  1735. .elem_size = sizeof(struct ipa_filter_spec_type_v01),
  1736. .array_type = VAR_LEN_ARRAY,
  1737. .tlv_type = 0x10,
  1738. .offset = offsetof(
  1739. struct ipa_install_fltr_rule_req_msg_v01,
  1740. filter_spec_list),
  1741. .ei_array = ipa_filter_spec_type_data_v01_ei,
  1742. },
  1743. {
  1744. .data_type = QMI_OPT_FLAG,
  1745. .elem_len = 1,
  1746. .elem_size = sizeof(uint8_t),
  1747. .array_type = NO_ARRAY,
  1748. .tlv_type = 0x11,
  1749. .offset = offsetof(
  1750. struct ipa_install_fltr_rule_req_msg_v01,
  1751. source_pipe_index_valid),
  1752. },
  1753. {
  1754. .data_type = QMI_UNSIGNED_4_BYTE,
  1755. .elem_len = 1,
  1756. .elem_size = sizeof(uint32_t),
  1757. .array_type = NO_ARRAY,
  1758. .tlv_type = 0x11,
  1759. .offset = offsetof(
  1760. struct ipa_install_fltr_rule_req_msg_v01,
  1761. source_pipe_index),
  1762. },
  1763. {
  1764. .data_type = QMI_OPT_FLAG,
  1765. .elem_len = 1,
  1766. .elem_size = sizeof(uint8_t),
  1767. .array_type = NO_ARRAY,
  1768. .tlv_type = 0x12,
  1769. .offset = offsetof(
  1770. struct ipa_install_fltr_rule_req_msg_v01,
  1771. num_ipv4_filters_valid),
  1772. },
  1773. {
  1774. .data_type = QMI_UNSIGNED_4_BYTE,
  1775. .elem_len = 1,
  1776. .elem_size = sizeof(uint32_t),
  1777. .array_type = NO_ARRAY,
  1778. .tlv_type = 0x12,
  1779. .offset = offsetof(
  1780. struct ipa_install_fltr_rule_req_msg_v01,
  1781. num_ipv4_filters),
  1782. },
  1783. {
  1784. .data_type = QMI_OPT_FLAG,
  1785. .elem_len = 1,
  1786. .elem_size = sizeof(uint8_t),
  1787. .array_type = NO_ARRAY,
  1788. .tlv_type = 0x13,
  1789. .offset = offsetof(
  1790. struct ipa_install_fltr_rule_req_msg_v01,
  1791. num_ipv6_filters_valid),
  1792. },
  1793. {
  1794. .data_type = QMI_UNSIGNED_4_BYTE,
  1795. .elem_len = 1,
  1796. .elem_size = sizeof(uint32_t),
  1797. .array_type = NO_ARRAY,
  1798. .tlv_type = 0x13,
  1799. .offset = offsetof(
  1800. struct ipa_install_fltr_rule_req_msg_v01,
  1801. num_ipv6_filters),
  1802. },
  1803. {
  1804. .data_type = QMI_OPT_FLAG,
  1805. .elem_len = 1,
  1806. .elem_size = sizeof(uint8_t),
  1807. .array_type = NO_ARRAY,
  1808. .tlv_type = 0x14,
  1809. .offset = offsetof(
  1810. struct ipa_install_fltr_rule_req_msg_v01,
  1811. xlat_filter_indices_list_valid),
  1812. },
  1813. {
  1814. .data_type = QMI_DATA_LEN,
  1815. .elem_len = 1,
  1816. .elem_size = sizeof(uint8_t),
  1817. .array_type = NO_ARRAY,
  1818. .tlv_type = 0x14,
  1819. .offset = offsetof(
  1820. struct ipa_install_fltr_rule_req_msg_v01,
  1821. xlat_filter_indices_list_len),
  1822. },
  1823. {
  1824. .data_type = QMI_UNSIGNED_4_BYTE,
  1825. .elem_len = QMI_IPA_MAX_FILTERS_V01,
  1826. .elem_size = sizeof(uint32_t),
  1827. .array_type = VAR_LEN_ARRAY,
  1828. .tlv_type = 0x14,
  1829. .offset = offsetof(
  1830. struct ipa_install_fltr_rule_req_msg_v01,
  1831. xlat_filter_indices_list),
  1832. },
  1833. {
  1834. .data_type = QMI_OPT_FLAG,
  1835. .elem_len = 1,
  1836. .elem_size = sizeof(uint8_t),
  1837. .array_type = NO_ARRAY,
  1838. .tlv_type = 0x15,
  1839. .offset = offsetof(
  1840. struct ipa_install_fltr_rule_req_msg_v01,
  1841. filter_spec_ex_list_valid),
  1842. },
  1843. {
  1844. .data_type = QMI_DATA_LEN,
  1845. .elem_len = 1,
  1846. .elem_size = sizeof(uint8_t),
  1847. .array_type = NO_ARRAY,
  1848. .tlv_type = 0x15,
  1849. .offset = offsetof(
  1850. struct ipa_install_fltr_rule_req_msg_v01,
  1851. filter_spec_ex_list_len),
  1852. },
  1853. {
  1854. .data_type = QMI_STRUCT,
  1855. .elem_len = QMI_IPA_MAX_FILTERS_V01,
  1856. .elem_size = sizeof(struct ipa_filter_spec_ex_type_v01),
  1857. .array_type = VAR_LEN_ARRAY,
  1858. .tlv_type = 0x15,
  1859. .offset = offsetof(
  1860. struct ipa_install_fltr_rule_req_msg_v01,
  1861. filter_spec_ex_list),
  1862. .ei_array = ipa_filter_spec_ex_type_data_v01_ei,
  1863. },
  1864. {
  1865. .data_type = QMI_OPT_FLAG,
  1866. .elem_len = 1,
  1867. .elem_size = sizeof(uint8_t),
  1868. .array_type = NO_ARRAY,
  1869. .tlv_type = 0x16,
  1870. .offset = offsetof(
  1871. struct ipa_install_fltr_rule_req_msg_v01,
  1872. filter_spec_ex2_list_valid),
  1873. },
  1874. {
  1875. .data_type = QMI_DATA_LEN,
  1876. .elem_len = 1,
  1877. .elem_size = sizeof(uint8_t),
  1878. .array_type = NO_ARRAY,
  1879. .tlv_type = 0x16,
  1880. .offset = offsetof(
  1881. struct ipa_install_fltr_rule_req_msg_v01,
  1882. filter_spec_ex2_list_len),
  1883. },
  1884. {
  1885. .data_type = QMI_STRUCT,
  1886. .elem_len = QMI_IPA_MAX_FILTERS_V01,
  1887. .elem_size = sizeof(struct ipa_filter_spec_ex2_type_v01),
  1888. .array_type = VAR_LEN_ARRAY,
  1889. .tlv_type = 0x16,
  1890. .offset = offsetof(
  1891. struct ipa_install_fltr_rule_req_msg_v01,
  1892. filter_spec_ex2_list),
  1893. .ei_array = ipa_filter_spec_ex2_type_v01_ei,
  1894. },
  1895. {
  1896. .data_type = QMI_OPT_FLAG,
  1897. .elem_len = 1,
  1898. .elem_size = sizeof(uint8_t),
  1899. .array_type = NO_ARRAY,
  1900. .tlv_type = 0x17,
  1901. .offset = offsetof(
  1902. struct ipa_install_fltr_rule_req_msg_v01,
  1903. ul_firewall_indices_list_valid),
  1904. },
  1905. {
  1906. .data_type = QMI_DATA_LEN,
  1907. .elem_len = 1,
  1908. .elem_size = sizeof(uint8_t),
  1909. .array_type = NO_ARRAY,
  1910. .tlv_type = 0x17,
  1911. .offset = offsetof(
  1912. struct ipa_install_fltr_rule_req_msg_v01,
  1913. ul_firewall_indices_list_len),
  1914. },
  1915. {
  1916. .data_type = QMI_UNSIGNED_4_BYTE,
  1917. .elem_len = QMI_IPA_MAX_FILTERS_V01,
  1918. .elem_size = sizeof(uint32_t),
  1919. .array_type = VAR_LEN_ARRAY,
  1920. .tlv_type = 0x17,
  1921. .offset = offsetof(
  1922. struct ipa_install_fltr_rule_req_msg_v01,
  1923. ul_firewall_indices_list),
  1924. },
  1925. {
  1926. .data_type = QMI_EOTI,
  1927. .array_type = NO_ARRAY,
  1928. .tlv_type = QMI_COMMON_TLV_TYPE,
  1929. },
  1930. };
  1931. struct qmi_elem_info ipa3_install_fltr_rule_resp_msg_data_v01_ei[] = {
  1932. {
  1933. .data_type = QMI_STRUCT,
  1934. .elem_len = 1,
  1935. .elem_size = sizeof(struct qmi_response_type_v01),
  1936. .array_type = NO_ARRAY,
  1937. .tlv_type = 0x02,
  1938. .offset = offsetof(
  1939. struct ipa_install_fltr_rule_resp_msg_v01,
  1940. resp),
  1941. .ei_array = qmi_response_type_v01_ei,
  1942. },
  1943. {
  1944. .data_type = QMI_OPT_FLAG,
  1945. .elem_len = 1,
  1946. .elem_size = sizeof(uint8_t),
  1947. .array_type = NO_ARRAY,
  1948. .tlv_type = 0x10,
  1949. .offset = offsetof(
  1950. struct ipa_install_fltr_rule_resp_msg_v01,
  1951. filter_handle_list_valid),
  1952. },
  1953. {
  1954. .data_type = QMI_DATA_LEN,
  1955. .elem_len = 1,
  1956. .elem_size = sizeof(uint8_t),
  1957. .array_type = NO_ARRAY,
  1958. .tlv_type = 0x10,
  1959. .offset = offsetof(
  1960. struct ipa_install_fltr_rule_resp_msg_v01,
  1961. filter_handle_list_len),
  1962. },
  1963. {
  1964. .data_type = QMI_STRUCT,
  1965. .elem_len = QMI_IPA_MAX_FILTERS_V01,
  1966. .elem_size = sizeof(
  1967. struct ipa_filter_rule_identifier_to_handle_map_v01),
  1968. .array_type = VAR_LEN_ARRAY,
  1969. .tlv_type = 0x10,
  1970. .offset = offsetof(
  1971. struct ipa_install_fltr_rule_resp_msg_v01,
  1972. filter_handle_list),
  1973. .ei_array =
  1974. ipa3_filter_rule_identifier_to_handle_map_data_v01_ei,
  1975. },
  1976. {
  1977. .data_type = QMI_OPT_FLAG,
  1978. .elem_len = 1,
  1979. .elem_size = sizeof(uint8_t),
  1980. .array_type = NO_ARRAY,
  1981. .tlv_type = 0x11,
  1982. .offset = offsetof(
  1983. struct ipa_install_fltr_rule_resp_msg_v01,
  1984. rule_id_valid),
  1985. },
  1986. {
  1987. .data_type = QMI_DATA_LEN,
  1988. .elem_len = 1,
  1989. .elem_size = sizeof(uint8_t),
  1990. .array_type = NO_ARRAY,
  1991. .tlv_type = 0x11,
  1992. .offset = offsetof(
  1993. struct ipa_install_fltr_rule_resp_msg_v01,
  1994. rule_id_len),
  1995. },
  1996. {
  1997. .data_type = QMI_UNSIGNED_4_BYTE,
  1998. .elem_len = QMI_IPA_MAX_FILTERS_V01,
  1999. .elem_size = sizeof(uint32_t),
  2000. .array_type = VAR_LEN_ARRAY,
  2001. .tlv_type = 0x11,
  2002. .offset = offsetof(
  2003. struct ipa_install_fltr_rule_resp_msg_v01,
  2004. rule_id),
  2005. },
  2006. {
  2007. .data_type = QMI_EOTI,
  2008. .array_type = NO_ARRAY,
  2009. .tlv_type = QMI_COMMON_TLV_TYPE,
  2010. },
  2011. };
  2012. struct qmi_elem_info ipa3_fltr_installed_notif_req_msg_data_v01_ei[] = {
  2013. {
  2014. .data_type = QMI_UNSIGNED_4_BYTE,
  2015. .elem_len = 1,
  2016. .elem_size = sizeof(uint32_t),
  2017. .array_type = NO_ARRAY,
  2018. .tlv_type = 0x01,
  2019. .offset = offsetof(
  2020. struct ipa_fltr_installed_notif_req_msg_v01,
  2021. source_pipe_index),
  2022. },
  2023. {
  2024. .data_type = QMI_UNSIGNED_2_BYTE,
  2025. .elem_len = 1,
  2026. .elem_size = sizeof(uint16_t),
  2027. .array_type = NO_ARRAY,
  2028. .tlv_type = 0x02,
  2029. .offset = offsetof(
  2030. struct ipa_fltr_installed_notif_req_msg_v01,
  2031. install_status),
  2032. },
  2033. {
  2034. .data_type = QMI_DATA_LEN,
  2035. .elem_len = 1,
  2036. .elem_size = sizeof(uint8_t),
  2037. .array_type = NO_ARRAY,
  2038. .tlv_type = 0x03,
  2039. .offset = offsetof(
  2040. struct ipa_fltr_installed_notif_req_msg_v01,
  2041. filter_index_list_len),
  2042. },
  2043. {
  2044. .data_type = QMI_STRUCT,
  2045. .elem_len = QMI_IPA_MAX_FILTERS_V01,
  2046. .elem_size = sizeof(
  2047. struct ipa_filter_handle_to_index_map_v01),
  2048. .array_type = VAR_LEN_ARRAY,
  2049. .tlv_type = 0x03,
  2050. .offset = offsetof(
  2051. struct ipa_fltr_installed_notif_req_msg_v01,
  2052. filter_index_list),
  2053. .ei_array = ipa3_filter_handle_to_index_map_data_v01_ei,
  2054. },
  2055. {
  2056. .data_type = QMI_OPT_FLAG,
  2057. .elem_len = 1,
  2058. .elem_size = sizeof(uint8_t),
  2059. .array_type = NO_ARRAY,
  2060. .tlv_type = 0x10,
  2061. .offset = offsetof(
  2062. struct ipa_fltr_installed_notif_req_msg_v01,
  2063. embedded_pipe_index_valid),
  2064. },
  2065. {
  2066. .data_type = QMI_UNSIGNED_4_BYTE,
  2067. .elem_len = 1,
  2068. .elem_size = sizeof(uint32_t),
  2069. .array_type = NO_ARRAY,
  2070. .tlv_type = 0x10,
  2071. .offset = offsetof(
  2072. struct ipa_fltr_installed_notif_req_msg_v01,
  2073. embedded_pipe_index),
  2074. },
  2075. {
  2076. .data_type = QMI_OPT_FLAG,
  2077. .elem_len = 1,
  2078. .elem_size = sizeof(uint8_t),
  2079. .array_type = NO_ARRAY,
  2080. .tlv_type = 0x11,
  2081. .offset = offsetof(
  2082. struct ipa_fltr_installed_notif_req_msg_v01,
  2083. retain_header_valid),
  2084. },
  2085. {
  2086. .data_type = QMI_UNSIGNED_1_BYTE,
  2087. .elem_len = 1,
  2088. .elem_size = sizeof(uint8_t),
  2089. .array_type = NO_ARRAY,
  2090. .tlv_type = 0x11,
  2091. .offset = offsetof(
  2092. struct ipa_fltr_installed_notif_req_msg_v01,
  2093. retain_header),
  2094. },
  2095. {
  2096. .data_type = QMI_OPT_FLAG,
  2097. .elem_len = 1,
  2098. .elem_size = sizeof(uint8_t),
  2099. .array_type = NO_ARRAY,
  2100. .tlv_type = 0x12,
  2101. .offset = offsetof(
  2102. struct ipa_fltr_installed_notif_req_msg_v01,
  2103. embedded_call_mux_id_valid),
  2104. },
  2105. {
  2106. .data_type = QMI_UNSIGNED_4_BYTE,
  2107. .elem_len = 1,
  2108. .elem_size = sizeof(uint32_t),
  2109. .array_type = NO_ARRAY,
  2110. .tlv_type = 0x12,
  2111. .offset = offsetof(
  2112. struct ipa_fltr_installed_notif_req_msg_v01,
  2113. embedded_call_mux_id),
  2114. },
  2115. {
  2116. .data_type = QMI_OPT_FLAG,
  2117. .elem_len = 1,
  2118. .elem_size = sizeof(uint8_t),
  2119. .array_type = NO_ARRAY,
  2120. .tlv_type = 0x13,
  2121. .offset = offsetof(
  2122. struct ipa_fltr_installed_notif_req_msg_v01,
  2123. num_ipv4_filters_valid),
  2124. },
  2125. {
  2126. .data_type = QMI_UNSIGNED_4_BYTE,
  2127. .elem_len = 1,
  2128. .elem_size = sizeof(uint32_t),
  2129. .array_type = NO_ARRAY,
  2130. .tlv_type = 0x13,
  2131. .offset = offsetof(
  2132. struct ipa_fltr_installed_notif_req_msg_v01,
  2133. num_ipv4_filters),
  2134. },
  2135. {
  2136. .data_type = QMI_OPT_FLAG,
  2137. .elem_len = 1,
  2138. .elem_size = sizeof(uint8_t),
  2139. .array_type = NO_ARRAY,
  2140. .tlv_type = 0x14,
  2141. .offset = offsetof(
  2142. struct ipa_fltr_installed_notif_req_msg_v01,
  2143. num_ipv6_filters_valid),
  2144. },
  2145. {
  2146. .data_type = QMI_UNSIGNED_4_BYTE,
  2147. .elem_len = 1,
  2148. .elem_size = sizeof(uint32_t),
  2149. .array_type = NO_ARRAY,
  2150. .tlv_type = 0x14,
  2151. .offset = offsetof(
  2152. struct ipa_fltr_installed_notif_req_msg_v01,
  2153. num_ipv6_filters),
  2154. },
  2155. {
  2156. .data_type = QMI_OPT_FLAG,
  2157. .elem_len = 1,
  2158. .elem_size = sizeof(uint8_t),
  2159. .array_type = NO_ARRAY,
  2160. .tlv_type = 0x15,
  2161. .offset = offsetof(
  2162. struct ipa_fltr_installed_notif_req_msg_v01,
  2163. start_ipv4_filter_idx_valid),
  2164. },
  2165. {
  2166. .data_type = QMI_UNSIGNED_4_BYTE,
  2167. .elem_len = 1,
  2168. .elem_size = sizeof(uint32_t),
  2169. .array_type = NO_ARRAY,
  2170. .tlv_type = 0x15,
  2171. .offset = offsetof(
  2172. struct ipa_fltr_installed_notif_req_msg_v01,
  2173. start_ipv4_filter_idx),
  2174. },
  2175. {
  2176. .data_type = QMI_OPT_FLAG,
  2177. .elem_len = 1,
  2178. .elem_size = sizeof(uint8_t),
  2179. .array_type = NO_ARRAY,
  2180. .tlv_type = 0x16,
  2181. .offset = offsetof(
  2182. struct ipa_fltr_installed_notif_req_msg_v01,
  2183. start_ipv6_filter_idx_valid),
  2184. },
  2185. {
  2186. .data_type = QMI_UNSIGNED_4_BYTE,
  2187. .elem_len = 1,
  2188. .elem_size = sizeof(uint32_t),
  2189. .array_type = NO_ARRAY,
  2190. .tlv_type = 0x16,
  2191. .offset = offsetof(
  2192. struct ipa_fltr_installed_notif_req_msg_v01,
  2193. start_ipv6_filter_idx),
  2194. },
  2195. {
  2196. .data_type = QMI_OPT_FLAG,
  2197. .elem_len = 1,
  2198. .elem_size = sizeof(uint8_t),
  2199. .array_type = NO_ARRAY,
  2200. .tlv_type = 0x17,
  2201. .offset = offsetof(
  2202. struct ipa_fltr_installed_notif_req_msg_v01,
  2203. rule_id_valid),
  2204. },
  2205. {
  2206. .data_type = QMI_DATA_LEN,
  2207. .elem_len = 1,
  2208. .elem_size = sizeof(uint8_t),
  2209. .array_type = NO_ARRAY,
  2210. .tlv_type = 0x17,
  2211. .offset = offsetof(
  2212. struct ipa_fltr_installed_notif_req_msg_v01,
  2213. rule_id_len),
  2214. },
  2215. {
  2216. .data_type = QMI_UNSIGNED_4_BYTE,
  2217. .elem_len = QMI_IPA_MAX_FILTERS_V01,
  2218. .elem_size = sizeof(uint32_t),
  2219. .array_type = VAR_LEN_ARRAY,
  2220. .tlv_type = 0x17,
  2221. .offset = offsetof(
  2222. struct ipa_fltr_installed_notif_req_msg_v01,
  2223. rule_id),
  2224. },
  2225. {
  2226. .data_type = QMI_OPT_FLAG,
  2227. .elem_len = 1,
  2228. .elem_size = sizeof(uint8_t),
  2229. .array_type = NO_ARRAY,
  2230. .tlv_type = 0x18,
  2231. .offset = offsetof(
  2232. struct ipa_fltr_installed_notif_req_msg_v01,
  2233. dst_pipe_id_valid),
  2234. },
  2235. {
  2236. .data_type = QMI_DATA_LEN,
  2237. .elem_len = 1,
  2238. .elem_size = sizeof(uint8_t),
  2239. .array_type = NO_ARRAY,
  2240. .tlv_type = 0x18,
  2241. .offset = offsetof(
  2242. struct ipa_fltr_installed_notif_req_msg_v01,
  2243. dst_pipe_id_len),
  2244. },
  2245. {
  2246. .data_type = QMI_UNSIGNED_4_BYTE,
  2247. .elem_len = QMI_IPA_MAX_CLIENT_DST_PIPES_V01,
  2248. .elem_size = sizeof(uint32_t),
  2249. .array_type = VAR_LEN_ARRAY,
  2250. .tlv_type = 0x18,
  2251. .offset = offsetof(
  2252. struct ipa_fltr_installed_notif_req_msg_v01,
  2253. dst_pipe_id),
  2254. },
  2255. {
  2256. .data_type = QMI_OPT_FLAG,
  2257. .elem_len = 1,
  2258. .elem_size = sizeof(uint8_t),
  2259. .array_type = NO_ARRAY,
  2260. .tlv_type = 0x19,
  2261. .offset = offsetof(
  2262. struct ipa_fltr_installed_notif_req_msg_v01,
  2263. rule_id_ex_valid),
  2264. },
  2265. {
  2266. .data_type = QMI_DATA_LEN,
  2267. .elem_len = 1,
  2268. .elem_size = sizeof(uint32_t),
  2269. .array_type = NO_ARRAY,
  2270. .tlv_type = 0x19,
  2271. .offset = offsetof(
  2272. struct ipa_fltr_installed_notif_req_msg_v01,
  2273. rule_id_ex_len),
  2274. },
  2275. {
  2276. .data_type = QMI_UNSIGNED_4_BYTE,
  2277. .elem_len = QMI_IPA_MAX_FILTERS_EX2_V01,
  2278. .elem_size = sizeof(uint32_t),
  2279. .array_type = VAR_LEN_ARRAY,
  2280. .tlv_type = 0x19,
  2281. .offset = offsetof(
  2282. struct ipa_fltr_installed_notif_req_msg_v01,
  2283. rule_id_ex),
  2284. },
  2285. {
  2286. .data_type = QMI_EOTI,
  2287. .array_type = NO_ARRAY,
  2288. .tlv_type = QMI_COMMON_TLV_TYPE,
  2289. },
  2290. };
  2291. struct qmi_elem_info ipa3_fltr_installed_notif_resp_msg_data_v01_ei[] = {
  2292. {
  2293. .data_type = QMI_STRUCT,
  2294. .elem_len = 1,
  2295. .elem_size = sizeof(struct qmi_response_type_v01),
  2296. .array_type = NO_ARRAY,
  2297. .tlv_type = 0x02,
  2298. .offset = offsetof(
  2299. struct ipa_fltr_installed_notif_resp_msg_v01,
  2300. resp),
  2301. .ei_array = qmi_response_type_v01_ei,
  2302. },
  2303. {
  2304. .data_type = QMI_EOTI,
  2305. .array_type = NO_ARRAY,
  2306. .tlv_type = QMI_COMMON_TLV_TYPE,
  2307. },
  2308. };
  2309. struct qmi_elem_info ipa3_enable_force_clear_datapath_req_msg_data_v01_ei[] = {
  2310. {
  2311. .data_type = QMI_UNSIGNED_4_BYTE,
  2312. .elem_len = 1,
  2313. .elem_size = sizeof(uint32_t),
  2314. .array_type = NO_ARRAY,
  2315. .tlv_type = 0x01,
  2316. .offset = offsetof(
  2317. struct ipa_enable_force_clear_datapath_req_msg_v01,
  2318. source_pipe_bitmask),
  2319. },
  2320. {
  2321. .data_type = QMI_UNSIGNED_4_BYTE,
  2322. .elem_len = 1,
  2323. .elem_size = sizeof(uint32_t),
  2324. .array_type = NO_ARRAY,
  2325. .tlv_type = 0x02,
  2326. .offset = offsetof(
  2327. struct ipa_enable_force_clear_datapath_req_msg_v01,
  2328. request_id),
  2329. },
  2330. {
  2331. .data_type = QMI_OPT_FLAG,
  2332. .elem_len = 1,
  2333. .elem_size = sizeof(uint8_t),
  2334. .array_type = NO_ARRAY,
  2335. .tlv_type = 0x10,
  2336. .offset = offsetof(
  2337. struct ipa_enable_force_clear_datapath_req_msg_v01,
  2338. throttle_source_valid),
  2339. },
  2340. {
  2341. .data_type = QMI_UNSIGNED_1_BYTE,
  2342. .elem_len = 1,
  2343. .elem_size = sizeof(uint8_t),
  2344. .array_type = NO_ARRAY,
  2345. .tlv_type = 0x10,
  2346. .offset = offsetof(
  2347. struct ipa_enable_force_clear_datapath_req_msg_v01,
  2348. throttle_source),
  2349. },
  2350. {
  2351. .data_type = QMI_EOTI,
  2352. .array_type = NO_ARRAY,
  2353. .tlv_type = QMI_COMMON_TLV_TYPE,
  2354. },
  2355. };
  2356. struct qmi_elem_info ipa3_enable_force_clear_datapath_resp_msg_data_v01_ei[] = {
  2357. {
  2358. .data_type = QMI_STRUCT,
  2359. .elem_len = 1,
  2360. .elem_size = sizeof(struct qmi_response_type_v01),
  2361. .array_type = NO_ARRAY,
  2362. .tlv_type = 0x02,
  2363. .offset = offsetof(
  2364. struct ipa_enable_force_clear_datapath_resp_msg_v01,
  2365. resp),
  2366. .ei_array = qmi_response_type_v01_ei,
  2367. },
  2368. {
  2369. .data_type = QMI_EOTI,
  2370. .array_type = NO_ARRAY,
  2371. .tlv_type = QMI_COMMON_TLV_TYPE,
  2372. },
  2373. };
  2374. struct qmi_elem_info ipa3_disable_force_clear_datapath_req_msg_data_v01_ei[] = {
  2375. {
  2376. .data_type = QMI_UNSIGNED_4_BYTE,
  2377. .elem_len = 1,
  2378. .elem_size = sizeof(uint32_t),
  2379. .array_type = NO_ARRAY,
  2380. .tlv_type = 0x01,
  2381. .offset = offsetof(
  2382. struct ipa_disable_force_clear_datapath_req_msg_v01,
  2383. request_id),
  2384. },
  2385. {
  2386. .data_type = QMI_EOTI,
  2387. .array_type = NO_ARRAY,
  2388. .tlv_type = QMI_COMMON_TLV_TYPE,
  2389. },
  2390. };
  2391. struct qmi_elem_info
  2392. ipa3_disable_force_clear_datapath_resp_msg_data_v01_ei[] = {
  2393. {
  2394. .data_type = QMI_STRUCT,
  2395. .elem_len = 1,
  2396. .elem_size = sizeof(struct qmi_response_type_v01),
  2397. .array_type = NO_ARRAY,
  2398. .tlv_type = 0x02,
  2399. .offset = offsetof(
  2400. struct ipa_disable_force_clear_datapath_resp_msg_v01,
  2401. resp),
  2402. .ei_array = qmi_response_type_v01_ei,
  2403. },
  2404. {
  2405. .data_type = QMI_EOTI,
  2406. .array_type = NO_ARRAY,
  2407. .tlv_type = QMI_COMMON_TLV_TYPE,
  2408. },
  2409. };
  2410. struct qmi_elem_info ipa3_config_req_msg_data_v01_ei[] = {
  2411. {
  2412. .data_type = QMI_OPT_FLAG,
  2413. .elem_len = 1,
  2414. .elem_size = sizeof(uint8_t),
  2415. .array_type = NO_ARRAY,
  2416. .tlv_type = 0x10,
  2417. .offset = offsetof(
  2418. struct ipa_config_req_msg_v01,
  2419. peripheral_type_valid),
  2420. },
  2421. {
  2422. .data_type = QMI_SIGNED_4_BYTE_ENUM,
  2423. .elem_len = 1,
  2424. .elem_size = sizeof(uint32_t),
  2425. .array_type = NO_ARRAY,
  2426. .tlv_type = 0x10,
  2427. .offset = offsetof(
  2428. struct ipa_config_req_msg_v01,
  2429. peripheral_type),
  2430. },
  2431. {
  2432. .data_type = QMI_OPT_FLAG,
  2433. .elem_len = 1,
  2434. .elem_size = sizeof(uint8_t),
  2435. .array_type = NO_ARRAY,
  2436. .tlv_type = 0x11,
  2437. .offset = offsetof(
  2438. struct ipa_config_req_msg_v01,
  2439. hw_deaggr_supported_valid),
  2440. },
  2441. {
  2442. .data_type = QMI_UNSIGNED_1_BYTE,
  2443. .elem_len = 1,
  2444. .elem_size = sizeof(uint8_t),
  2445. .array_type = NO_ARRAY,
  2446. .tlv_type = 0x11,
  2447. .offset = offsetof(
  2448. struct ipa_config_req_msg_v01,
  2449. hw_deaggr_supported),
  2450. },
  2451. {
  2452. .data_type = QMI_OPT_FLAG,
  2453. .elem_len = 1,
  2454. .elem_size = sizeof(uint8_t),
  2455. .array_type = NO_ARRAY,
  2456. .tlv_type = 0x12,
  2457. .offset = offsetof(
  2458. struct ipa_config_req_msg_v01,
  2459. max_aggr_frame_size_valid),
  2460. },
  2461. {
  2462. .data_type = QMI_UNSIGNED_4_BYTE,
  2463. .elem_len = 1,
  2464. .elem_size = sizeof(uint32_t),
  2465. .array_type = NO_ARRAY,
  2466. .tlv_type = 0x12,
  2467. .offset = offsetof(
  2468. struct ipa_config_req_msg_v01,
  2469. max_aggr_frame_size),
  2470. },
  2471. {
  2472. .data_type = QMI_OPT_FLAG,
  2473. .elem_len = 1,
  2474. .elem_size = sizeof(uint8_t),
  2475. .array_type = NO_ARRAY,
  2476. .tlv_type = 0x13,
  2477. .offset = offsetof(
  2478. struct ipa_config_req_msg_v01,
  2479. ipa_ingress_pipe_mode_valid),
  2480. },
  2481. {
  2482. .data_type = QMI_SIGNED_4_BYTE_ENUM,
  2483. .elem_len = 1,
  2484. .elem_size = sizeof(uint32_t),
  2485. .array_type = NO_ARRAY,
  2486. .tlv_type = 0x13,
  2487. .offset = offsetof(
  2488. struct ipa_config_req_msg_v01,
  2489. ipa_ingress_pipe_mode),
  2490. },
  2491. {
  2492. .data_type = QMI_OPT_FLAG,
  2493. .elem_len = 1,
  2494. .elem_size = sizeof(uint8_t),
  2495. .array_type = NO_ARRAY,
  2496. .tlv_type = 0x14,
  2497. .offset = offsetof(
  2498. struct ipa_config_req_msg_v01,
  2499. peripheral_speed_info_valid),
  2500. },
  2501. {
  2502. .data_type = QMI_SIGNED_4_BYTE_ENUM,
  2503. .elem_len = 1,
  2504. .elem_size = sizeof(uint32_t),
  2505. .array_type = NO_ARRAY,
  2506. .tlv_type = 0x14,
  2507. .offset = offsetof(
  2508. struct ipa_config_req_msg_v01,
  2509. peripheral_speed_info),
  2510. },
  2511. {
  2512. .data_type = QMI_OPT_FLAG,
  2513. .elem_len = 1,
  2514. .elem_size = sizeof(uint8_t),
  2515. .array_type = NO_ARRAY,
  2516. .tlv_type = 0x15,
  2517. .offset = offsetof(
  2518. struct ipa_config_req_msg_v01,
  2519. dl_accumulation_time_limit_valid),
  2520. },
  2521. {
  2522. .data_type = QMI_SIGNED_4_BYTE_ENUM,
  2523. .elem_len = 1,
  2524. .elem_size = sizeof(uint32_t),
  2525. .array_type = NO_ARRAY,
  2526. .tlv_type = 0x15,
  2527. .offset = offsetof(
  2528. struct ipa_config_req_msg_v01,
  2529. dl_accumulation_time_limit),
  2530. },
  2531. {
  2532. .data_type = QMI_OPT_FLAG,
  2533. .elem_len = 1,
  2534. .elem_size = sizeof(uint8_t),
  2535. .array_type = NO_ARRAY,
  2536. .tlv_type = 0x16,
  2537. .offset = offsetof(
  2538. struct ipa_config_req_msg_v01,
  2539. dl_accumulation_pkt_limit_valid),
  2540. },
  2541. {
  2542. .data_type = QMI_SIGNED_4_BYTE_ENUM,
  2543. .elem_len = 1,
  2544. .elem_size = sizeof(uint32_t),
  2545. .array_type = NO_ARRAY,
  2546. .tlv_type = 0x16,
  2547. .offset = offsetof(
  2548. struct ipa_config_req_msg_v01,
  2549. dl_accumulation_pkt_limit),
  2550. },
  2551. {
  2552. .data_type = QMI_OPT_FLAG,
  2553. .elem_len = 1,
  2554. .elem_size = sizeof(uint8_t),
  2555. .array_type = NO_ARRAY,
  2556. .tlv_type = 0x17,
  2557. .offset = offsetof(
  2558. struct ipa_config_req_msg_v01,
  2559. dl_accumulation_byte_limit_valid),
  2560. },
  2561. {
  2562. .data_type = QMI_SIGNED_4_BYTE_ENUM,
  2563. .elem_len = 1,
  2564. .elem_size = sizeof(uint32_t),
  2565. .array_type = NO_ARRAY,
  2566. .tlv_type = 0x17,
  2567. .offset = offsetof(
  2568. struct ipa_config_req_msg_v01,
  2569. dl_accumulation_byte_limit),
  2570. },
  2571. {
  2572. .data_type = QMI_OPT_FLAG,
  2573. .elem_len = 1,
  2574. .elem_size = sizeof(uint8_t),
  2575. .array_type = NO_ARRAY,
  2576. .tlv_type = 0x18,
  2577. .offset = offsetof(
  2578. struct ipa_config_req_msg_v01,
  2579. ul_accumulation_time_limit_valid),
  2580. },
  2581. {
  2582. .data_type = QMI_SIGNED_4_BYTE_ENUM,
  2583. .elem_len = 1,
  2584. .elem_size = sizeof(uint32_t),
  2585. .array_type = NO_ARRAY,
  2586. .tlv_type = 0x18,
  2587. .offset = offsetof(
  2588. struct ipa_config_req_msg_v01,
  2589. ul_accumulation_time_limit),
  2590. },
  2591. {
  2592. .data_type = QMI_OPT_FLAG,
  2593. .elem_len = 1,
  2594. .elem_size = sizeof(uint8_t),
  2595. .array_type = NO_ARRAY,
  2596. .tlv_type = 0x19,
  2597. .offset = offsetof(
  2598. struct ipa_config_req_msg_v01,
  2599. hw_control_flags_valid),
  2600. },
  2601. {
  2602. .data_type = QMI_SIGNED_4_BYTE_ENUM,
  2603. .elem_len = 1,
  2604. .elem_size = sizeof(uint32_t),
  2605. .array_type = NO_ARRAY,
  2606. .tlv_type = 0x19,
  2607. .offset = offsetof(
  2608. struct ipa_config_req_msg_v01,
  2609. hw_control_flags),
  2610. },
  2611. {
  2612. .data_type = QMI_OPT_FLAG,
  2613. .elem_len = 1,
  2614. .elem_size = sizeof(uint8_t),
  2615. .array_type = NO_ARRAY,
  2616. .tlv_type = 0x1A,
  2617. .offset = offsetof(
  2618. struct ipa_config_req_msg_v01,
  2619. ul_msi_event_threshold_valid),
  2620. },
  2621. {
  2622. .data_type = QMI_SIGNED_4_BYTE_ENUM,
  2623. .elem_len = 1,
  2624. .elem_size = sizeof(uint32_t),
  2625. .array_type = NO_ARRAY,
  2626. .tlv_type = 0x1A,
  2627. .offset = offsetof(
  2628. struct ipa_config_req_msg_v01,
  2629. ul_msi_event_threshold),
  2630. },
  2631. {
  2632. .data_type = QMI_OPT_FLAG,
  2633. .elem_len = 1,
  2634. .elem_size = sizeof(uint8_t),
  2635. .array_type = NO_ARRAY,
  2636. .tlv_type = 0x1B,
  2637. .offset = offsetof(
  2638. struct ipa_config_req_msg_v01,
  2639. dl_msi_event_threshold_valid),
  2640. },
  2641. {
  2642. .data_type = QMI_SIGNED_4_BYTE_ENUM,
  2643. .elem_len = 1,
  2644. .elem_size = sizeof(uint32_t),
  2645. .array_type = NO_ARRAY,
  2646. .tlv_type = 0x1B,
  2647. .offset = offsetof(
  2648. struct ipa_config_req_msg_v01,
  2649. dl_msi_event_threshold),
  2650. },
  2651. {
  2652. .data_type = QMI_OPT_FLAG,
  2653. .elem_len = 1,
  2654. .elem_size = sizeof(uint8_t),
  2655. .array_type = NO_ARRAY,
  2656. .tlv_type = 0x1C,
  2657. .offset = offsetof(
  2658. struct ipa_config_req_msg_v01,
  2659. ul_fifo_size_valid),
  2660. },
  2661. {
  2662. .data_type = QMI_UNSIGNED_4_BYTE,
  2663. .elem_len = 1,
  2664. .elem_size = sizeof(uint32_t),
  2665. .array_type = NO_ARRAY,
  2666. .tlv_type = 0x1C,
  2667. .offset = offsetof(
  2668. struct ipa_config_req_msg_v01,
  2669. ul_fifo_size),
  2670. },
  2671. {
  2672. .data_type = QMI_OPT_FLAG,
  2673. .elem_len = 1,
  2674. .elem_size = sizeof(uint8_t),
  2675. .array_type = NO_ARRAY,
  2676. .tlv_type = 0x1D,
  2677. .offset = offsetof(
  2678. struct ipa_config_req_msg_v01,
  2679. dl_fifo_size_valid),
  2680. },
  2681. {
  2682. .data_type = QMI_UNSIGNED_4_BYTE,
  2683. .elem_len = 1,
  2684. .elem_size = sizeof(uint32_t),
  2685. .array_type = NO_ARRAY,
  2686. .tlv_type = 0x1D,
  2687. .offset = offsetof(
  2688. struct ipa_config_req_msg_v01,
  2689. dl_fifo_size),
  2690. },
  2691. {
  2692. .data_type = QMI_OPT_FLAG,
  2693. .elem_len = 1,
  2694. .elem_size = sizeof(uint8_t),
  2695. .array_type = NO_ARRAY,
  2696. .tlv_type = 0x1E,
  2697. .offset = offsetof(
  2698. struct ipa_config_req_msg_v01,
  2699. dl_buf_size_valid),
  2700. },
  2701. {
  2702. .data_type = QMI_UNSIGNED_4_BYTE,
  2703. .elem_len = 1,
  2704. .elem_size = sizeof(uint32_t),
  2705. .array_type = NO_ARRAY,
  2706. .tlv_type = 0x1E,
  2707. .offset = offsetof(
  2708. struct ipa_config_req_msg_v01,
  2709. dl_buf_size),
  2710. },
  2711. {
  2712. .data_type = QMI_EOTI,
  2713. .array_type = NO_ARRAY,
  2714. .tlv_type = QMI_COMMON_TLV_TYPE,
  2715. },
  2716. };
  2717. struct qmi_elem_info ipa3_config_resp_msg_data_v01_ei[] = {
  2718. {
  2719. .data_type = QMI_STRUCT,
  2720. .elem_len = 1,
  2721. .elem_size = sizeof(struct qmi_response_type_v01),
  2722. .array_type = NO_ARRAY,
  2723. .tlv_type = 0x02,
  2724. .offset = offsetof(
  2725. struct ipa_config_resp_msg_v01,
  2726. resp),
  2727. .ei_array = qmi_response_type_v01_ei,
  2728. },
  2729. {
  2730. .data_type = QMI_EOTI,
  2731. .array_type = NO_ARRAY,
  2732. .tlv_type = QMI_COMMON_TLV_TYPE,
  2733. },
  2734. };
  2735. struct qmi_elem_info ipa3_get_data_stats_req_msg_data_v01_ei[] = {
  2736. {
  2737. .data_type = QMI_SIGNED_4_BYTE_ENUM,
  2738. .elem_len = 1,
  2739. .elem_size = sizeof(uint32_t),
  2740. .array_type = NO_ARRAY,
  2741. .tlv_type = 0x01,
  2742. .offset = offsetof(
  2743. struct ipa_get_data_stats_req_msg_v01,
  2744. ipa_stats_type),
  2745. },
  2746. {
  2747. .data_type = QMI_OPT_FLAG,
  2748. .elem_len = 1,
  2749. .elem_size = sizeof(uint8_t),
  2750. .array_type = NO_ARRAY,
  2751. .tlv_type = 0x10,
  2752. .offset = offsetof(
  2753. struct ipa_get_data_stats_req_msg_v01,
  2754. reset_stats_valid),
  2755. },
  2756. {
  2757. .data_type = QMI_UNSIGNED_1_BYTE,
  2758. .elem_len = 1,
  2759. .elem_size = sizeof(uint8_t),
  2760. .array_type = NO_ARRAY,
  2761. .tlv_type = 0x10,
  2762. .offset = offsetof(
  2763. struct ipa_get_data_stats_req_msg_v01,
  2764. reset_stats),
  2765. },
  2766. {
  2767. .data_type = QMI_EOTI,
  2768. .array_type = NO_ARRAY,
  2769. .tlv_type = QMI_COMMON_TLV_TYPE,
  2770. },
  2771. };
  2772. static struct qmi_elem_info ipa3_pipe_stats_info_type_data_v01_ei[] = {
  2773. {
  2774. .data_type = QMI_UNSIGNED_4_BYTE,
  2775. .elem_len = 1,
  2776. .elem_size = sizeof(uint32_t),
  2777. .array_type = NO_ARRAY,
  2778. .tlv_type = QMI_COMMON_TLV_TYPE,
  2779. .offset = offsetof(struct ipa_pipe_stats_info_type_v01,
  2780. pipe_index),
  2781. },
  2782. {
  2783. .data_type = QMI_UNSIGNED_8_BYTE,
  2784. .elem_len = 1,
  2785. .elem_size = sizeof(uint64_t),
  2786. .array_type = NO_ARRAY,
  2787. .tlv_type = QMI_COMMON_TLV_TYPE,
  2788. .offset = offsetof(struct ipa_pipe_stats_info_type_v01,
  2789. num_ipv4_packets),
  2790. },
  2791. {
  2792. .data_type = QMI_UNSIGNED_8_BYTE,
  2793. .elem_len = 1,
  2794. .elem_size = sizeof(uint64_t),
  2795. .array_type = NO_ARRAY,
  2796. .tlv_type = QMI_COMMON_TLV_TYPE,
  2797. .offset = offsetof(struct ipa_pipe_stats_info_type_v01,
  2798. num_ipv4_bytes),
  2799. },
  2800. {
  2801. .data_type = QMI_UNSIGNED_8_BYTE,
  2802. .elem_len = 1,
  2803. .elem_size = sizeof(uint64_t),
  2804. .array_type = NO_ARRAY,
  2805. .tlv_type = QMI_COMMON_TLV_TYPE,
  2806. .offset = offsetof(struct ipa_pipe_stats_info_type_v01,
  2807. num_ipv6_packets),
  2808. },
  2809. {
  2810. .data_type = QMI_UNSIGNED_8_BYTE,
  2811. .elem_len = 1,
  2812. .elem_size = sizeof(uint64_t),
  2813. .array_type = NO_ARRAY,
  2814. .tlv_type = QMI_COMMON_TLV_TYPE,
  2815. .offset = offsetof(struct ipa_pipe_stats_info_type_v01,
  2816. num_ipv6_bytes),
  2817. },
  2818. {
  2819. .data_type = QMI_EOTI,
  2820. .array_type = NO_ARRAY,
  2821. .tlv_type = QMI_COMMON_TLV_TYPE,
  2822. },
  2823. };
  2824. static struct qmi_elem_info ipa3_stats_type_filter_rule_data_v01_ei[] = {
  2825. {
  2826. .data_type = QMI_UNSIGNED_4_BYTE,
  2827. .elem_len = 1,
  2828. .elem_size = sizeof(uint32_t),
  2829. .array_type = NO_ARRAY,
  2830. .tlv_type = QMI_COMMON_TLV_TYPE,
  2831. .offset = offsetof(struct
  2832. ipa_stats_type_filter_rule_v01,
  2833. filter_rule_index),
  2834. },
  2835. {
  2836. .data_type = QMI_UNSIGNED_8_BYTE,
  2837. .elem_len = 1,
  2838. .elem_size = sizeof(uint64_t),
  2839. .array_type = NO_ARRAY,
  2840. .tlv_type = QMI_COMMON_TLV_TYPE,
  2841. .offset = offsetof(struct
  2842. ipa_stats_type_filter_rule_v01,
  2843. num_packets),
  2844. },
  2845. {
  2846. .data_type = QMI_EOTI,
  2847. .array_type = NO_ARRAY,
  2848. .tlv_type = QMI_COMMON_TLV_TYPE,
  2849. },
  2850. };
  2851. struct qmi_elem_info ipa3_get_data_stats_resp_msg_data_v01_ei[] = {
  2852. {
  2853. .data_type = QMI_STRUCT,
  2854. .elem_len = 1,
  2855. .elem_size = sizeof(struct qmi_response_type_v01),
  2856. .array_type = NO_ARRAY,
  2857. .tlv_type = 0x02,
  2858. .offset = offsetof(
  2859. struct ipa_get_data_stats_resp_msg_v01,
  2860. resp),
  2861. .ei_array = qmi_response_type_v01_ei,
  2862. },
  2863. {
  2864. .data_type = QMI_OPT_FLAG,
  2865. .elem_len = 1,
  2866. .elem_size = sizeof(uint8_t),
  2867. .array_type = NO_ARRAY,
  2868. .tlv_type = 0x10,
  2869. .offset = offsetof(
  2870. struct ipa_get_data_stats_resp_msg_v01,
  2871. ipa_stats_type_valid),
  2872. },
  2873. {
  2874. .data_type = QMI_SIGNED_4_BYTE_ENUM,
  2875. .elem_len = 1,
  2876. .elem_size = sizeof(uint32_t),
  2877. .array_type = NO_ARRAY,
  2878. .tlv_type = 0x10,
  2879. .offset = offsetof(
  2880. struct ipa_get_data_stats_resp_msg_v01,
  2881. ipa_stats_type),
  2882. },
  2883. {
  2884. .data_type = QMI_OPT_FLAG,
  2885. .elem_len = 1,
  2886. .elem_size = sizeof(uint8_t),
  2887. .array_type = NO_ARRAY,
  2888. .tlv_type = 0x11,
  2889. .offset = offsetof(
  2890. struct ipa_get_data_stats_resp_msg_v01,
  2891. ul_src_pipe_stats_list_valid),
  2892. },
  2893. {
  2894. .data_type = QMI_DATA_LEN,
  2895. .elem_len = 1,
  2896. .elem_size = sizeof(uint8_t),
  2897. .array_type = NO_ARRAY,
  2898. .tlv_type = 0x11,
  2899. .offset = offsetof(
  2900. struct ipa_get_data_stats_resp_msg_v01,
  2901. ul_src_pipe_stats_list_len),
  2902. },
  2903. {
  2904. .data_type = QMI_STRUCT,
  2905. .elem_len = QMI_IPA_MAX_PIPES_V01,
  2906. .elem_size = sizeof(struct ipa_pipe_stats_info_type_v01),
  2907. .array_type = VAR_LEN_ARRAY,
  2908. .tlv_type = 0x11,
  2909. .offset = offsetof(
  2910. struct ipa_get_data_stats_resp_msg_v01,
  2911. ul_src_pipe_stats_list),
  2912. .ei_array = ipa3_pipe_stats_info_type_data_v01_ei,
  2913. },
  2914. {
  2915. .data_type = QMI_OPT_FLAG,
  2916. .elem_len = 1,
  2917. .elem_size = sizeof(uint8_t),
  2918. .array_type = NO_ARRAY,
  2919. .tlv_type = 0x12,
  2920. .offset = offsetof(
  2921. struct ipa_get_data_stats_resp_msg_v01,
  2922. dl_dst_pipe_stats_list_valid),
  2923. },
  2924. {
  2925. .data_type = QMI_DATA_LEN,
  2926. .elem_len = 1,
  2927. .elem_size = sizeof(uint8_t),
  2928. .array_type = NO_ARRAY,
  2929. .tlv_type = 0x12,
  2930. .offset = offsetof(
  2931. struct ipa_get_data_stats_resp_msg_v01,
  2932. dl_dst_pipe_stats_list_len),
  2933. },
  2934. {
  2935. .data_type = QMI_STRUCT,
  2936. .elem_len = QMI_IPA_MAX_PIPES_V01,
  2937. .elem_size = sizeof(struct ipa_pipe_stats_info_type_v01),
  2938. .array_type = VAR_LEN_ARRAY,
  2939. .tlv_type = 0x12,
  2940. .offset = offsetof(
  2941. struct ipa_get_data_stats_resp_msg_v01,
  2942. dl_dst_pipe_stats_list),
  2943. .ei_array = ipa3_pipe_stats_info_type_data_v01_ei,
  2944. },
  2945. {
  2946. .data_type = QMI_OPT_FLAG,
  2947. .elem_len = 1,
  2948. .elem_size = sizeof(uint8_t),
  2949. .array_type = NO_ARRAY,
  2950. .tlv_type = 0x13,
  2951. .offset = offsetof(
  2952. struct ipa_get_data_stats_resp_msg_v01,
  2953. dl_filter_rule_stats_list_valid),
  2954. },
  2955. {
  2956. .data_type = QMI_DATA_LEN,
  2957. .elem_len = 1,
  2958. .elem_size = sizeof(uint8_t),
  2959. .array_type = NO_ARRAY,
  2960. .tlv_type = 0x13,
  2961. .offset = offsetof(
  2962. struct ipa_get_data_stats_resp_msg_v01,
  2963. dl_filter_rule_stats_list_len),
  2964. },
  2965. {
  2966. .data_type = QMI_STRUCT,
  2967. .elem_len = QMI_IPA_MAX_FILTERS_V01,
  2968. .elem_size = sizeof(struct ipa_pipe_stats_info_type_v01),
  2969. .array_type = VAR_LEN_ARRAY,
  2970. .tlv_type = 0x13,
  2971. .offset = offsetof(
  2972. struct ipa_get_data_stats_resp_msg_v01,
  2973. dl_filter_rule_stats_list),
  2974. .ei_array = ipa3_stats_type_filter_rule_data_v01_ei,
  2975. },
  2976. {
  2977. .data_type = QMI_EOTI,
  2978. .array_type = NO_ARRAY,
  2979. .tlv_type = QMI_COMMON_TLV_TYPE,
  2980. },
  2981. };
  2982. static struct qmi_elem_info ipa3_apn_data_stats_info_type_data_v01_ei[] = {
  2983. {
  2984. .data_type = QMI_UNSIGNED_4_BYTE,
  2985. .elem_len = 1,
  2986. .elem_size = sizeof(uint32_t),
  2987. .array_type = NO_ARRAY,
  2988. .tlv_type = QMI_COMMON_TLV_TYPE,
  2989. .offset = offsetof(struct
  2990. ipa_apn_data_stats_info_type_v01,
  2991. mux_id),
  2992. },
  2993. {
  2994. .data_type = QMI_UNSIGNED_8_BYTE,
  2995. .elem_len = 1,
  2996. .elem_size = sizeof(uint64_t),
  2997. .array_type = NO_ARRAY,
  2998. .tlv_type = QMI_COMMON_TLV_TYPE,
  2999. .offset = offsetof(struct
  3000. ipa_apn_data_stats_info_type_v01,
  3001. num_ul_packets),
  3002. },
  3003. {
  3004. .data_type = QMI_UNSIGNED_8_BYTE,
  3005. .elem_len = 1,
  3006. .elem_size = sizeof(uint64_t),
  3007. .array_type = NO_ARRAY,
  3008. .tlv_type = QMI_COMMON_TLV_TYPE,
  3009. .offset = offsetof(struct
  3010. ipa_apn_data_stats_info_type_v01,
  3011. num_ul_bytes),
  3012. },
  3013. {
  3014. .data_type = QMI_UNSIGNED_8_BYTE,
  3015. .elem_len = 1,
  3016. .elem_size = sizeof(uint64_t),
  3017. .array_type = NO_ARRAY,
  3018. .tlv_type = QMI_COMMON_TLV_TYPE,
  3019. .offset = offsetof(struct
  3020. ipa_apn_data_stats_info_type_v01,
  3021. num_dl_packets),
  3022. },
  3023. {
  3024. .data_type = QMI_UNSIGNED_8_BYTE,
  3025. .elem_len = 1,
  3026. .elem_size = sizeof(uint64_t),
  3027. .array_type = NO_ARRAY,
  3028. .tlv_type = QMI_COMMON_TLV_TYPE,
  3029. .offset = offsetof(struct
  3030. ipa_apn_data_stats_info_type_v01,
  3031. num_dl_bytes),
  3032. },
  3033. {
  3034. .data_type = QMI_EOTI,
  3035. .array_type = NO_ARRAY,
  3036. .tlv_type = QMI_COMMON_TLV_TYPE,
  3037. },
  3038. };
  3039. struct qmi_elem_info ipa3_get_apn_data_stats_req_msg_data_v01_ei[] = {
  3040. {
  3041. .data_type = QMI_OPT_FLAG,
  3042. .elem_len = 1,
  3043. .elem_size = sizeof(uint8_t),
  3044. .array_type = NO_ARRAY,
  3045. .tlv_type = 0x10,
  3046. .offset = offsetof(
  3047. struct ipa_get_apn_data_stats_req_msg_v01,
  3048. mux_id_list_valid),
  3049. },
  3050. {
  3051. .data_type = QMI_DATA_LEN,
  3052. .elem_len = 1,
  3053. .elem_size = sizeof(uint8_t),
  3054. .array_type = NO_ARRAY,
  3055. .tlv_type = 0x10,
  3056. .offset = offsetof(
  3057. struct ipa_get_apn_data_stats_req_msg_v01,
  3058. mux_id_list_len),
  3059. },
  3060. {
  3061. .data_type = QMI_UNSIGNED_4_BYTE,
  3062. .elem_len = QMI_IPA_MAX_APN_V01,
  3063. .elem_size = sizeof(uint32_t),
  3064. .array_type = VAR_LEN_ARRAY,
  3065. .tlv_type = 0x10,
  3066. .offset = offsetof(
  3067. struct ipa_get_apn_data_stats_req_msg_v01,
  3068. mux_id_list),
  3069. },
  3070. {
  3071. .data_type = QMI_EOTI,
  3072. .array_type = NO_ARRAY,
  3073. .tlv_type = QMI_COMMON_TLV_TYPE,
  3074. },
  3075. };
  3076. struct qmi_elem_info ipa3_get_apn_data_stats_resp_msg_data_v01_ei[] = {
  3077. {
  3078. .data_type = QMI_STRUCT,
  3079. .elem_len = 1,
  3080. .elem_size = sizeof(struct qmi_response_type_v01),
  3081. .array_type = NO_ARRAY,
  3082. .tlv_type = 0x02,
  3083. .offset = offsetof(
  3084. struct ipa_get_apn_data_stats_resp_msg_v01,
  3085. resp),
  3086. .ei_array = qmi_response_type_v01_ei,
  3087. },
  3088. {
  3089. .data_type = QMI_OPT_FLAG,
  3090. .elem_len = 1,
  3091. .elem_size = sizeof(uint8_t),
  3092. .array_type = NO_ARRAY,
  3093. .tlv_type = 0x10,
  3094. .offset = offsetof(
  3095. struct ipa_get_apn_data_stats_resp_msg_v01,
  3096. apn_data_stats_list_valid),
  3097. },
  3098. {
  3099. .data_type = QMI_DATA_LEN,
  3100. .elem_len = 1,
  3101. .elem_size = sizeof(uint8_t),
  3102. .array_type = NO_ARRAY,
  3103. .tlv_type = 0x10,
  3104. .offset = offsetof(
  3105. struct ipa_get_apn_data_stats_resp_msg_v01,
  3106. apn_data_stats_list_len),
  3107. },
  3108. {
  3109. .data_type = QMI_STRUCT,
  3110. .elem_len = QMI_IPA_MAX_APN_V01,
  3111. .elem_size = sizeof(struct
  3112. ipa_apn_data_stats_info_type_v01),
  3113. .array_type = VAR_LEN_ARRAY,
  3114. .tlv_type = 0x10,
  3115. .offset = offsetof(
  3116. struct ipa_get_apn_data_stats_resp_msg_v01,
  3117. apn_data_stats_list),
  3118. .ei_array = ipa3_apn_data_stats_info_type_data_v01_ei,
  3119. },
  3120. {
  3121. .data_type = QMI_EOTI,
  3122. .array_type = NO_ARRAY,
  3123. .tlv_type = QMI_COMMON_TLV_TYPE,
  3124. },
  3125. };
  3126. static struct qmi_elem_info ipa3_data_usage_quota_info_type_data_v01_ei[] = {
  3127. {
  3128. .data_type = QMI_UNSIGNED_4_BYTE,
  3129. .elem_len = 1,
  3130. .elem_size = sizeof(uint32_t),
  3131. .array_type = NO_ARRAY,
  3132. .tlv_type = QMI_COMMON_TLV_TYPE,
  3133. .offset = offsetof(struct
  3134. ipa_data_usage_quota_info_type_v01,
  3135. mux_id),
  3136. },
  3137. {
  3138. .data_type = QMI_UNSIGNED_8_BYTE,
  3139. .elem_len = 1,
  3140. .elem_size = sizeof(uint64_t),
  3141. .array_type = NO_ARRAY,
  3142. .tlv_type = QMI_COMMON_TLV_TYPE,
  3143. .offset = offsetof(struct
  3144. ipa_data_usage_quota_info_type_v01,
  3145. num_Mbytes),
  3146. },
  3147. {
  3148. .data_type = QMI_EOTI,
  3149. .array_type = NO_ARRAY,
  3150. .tlv_type = QMI_COMMON_TLV_TYPE,
  3151. },
  3152. };
  3153. struct qmi_elem_info ipa3_set_data_usage_quota_req_msg_data_v01_ei[] = {
  3154. {
  3155. .data_type = QMI_OPT_FLAG,
  3156. .elem_len = 1,
  3157. .elem_size = sizeof(uint8_t),
  3158. .array_type = NO_ARRAY,
  3159. .tlv_type = 0x10,
  3160. .offset = offsetof(
  3161. struct ipa_set_data_usage_quota_req_msg_v01,
  3162. apn_quota_list_valid),
  3163. },
  3164. {
  3165. .data_type = QMI_DATA_LEN,
  3166. .elem_len = 1,
  3167. .elem_size = sizeof(uint8_t),
  3168. .array_type = NO_ARRAY,
  3169. .tlv_type = 0x10,
  3170. .offset = offsetof(
  3171. struct ipa_set_data_usage_quota_req_msg_v01,
  3172. apn_quota_list_len),
  3173. },
  3174. {
  3175. .data_type = QMI_STRUCT,
  3176. .elem_len = QMI_IPA_MAX_APN_V01,
  3177. .elem_size = sizeof(struct
  3178. ipa_data_usage_quota_info_type_v01),
  3179. .array_type = VAR_LEN_ARRAY,
  3180. .tlv_type = 0x10,
  3181. .offset = offsetof(
  3182. struct ipa_set_data_usage_quota_req_msg_v01,
  3183. apn_quota_list),
  3184. .ei_array = ipa3_data_usage_quota_info_type_data_v01_ei,
  3185. },
  3186. {
  3187. .data_type = QMI_EOTI,
  3188. .array_type = NO_ARRAY,
  3189. .tlv_type = QMI_COMMON_TLV_TYPE,
  3190. },
  3191. };
  3192. struct qmi_elem_info ipa3_set_data_usage_quota_resp_msg_data_v01_ei[] = {
  3193. {
  3194. .data_type = QMI_STRUCT,
  3195. .elem_len = 1,
  3196. .elem_size = sizeof(struct qmi_response_type_v01),
  3197. .array_type = NO_ARRAY,
  3198. .tlv_type = 0x02,
  3199. .offset = offsetof(
  3200. struct ipa_set_data_usage_quota_resp_msg_v01,
  3201. resp),
  3202. .ei_array = qmi_response_type_v01_ei,
  3203. },
  3204. {
  3205. .data_type = QMI_EOTI,
  3206. .array_type = NO_ARRAY,
  3207. .tlv_type = QMI_COMMON_TLV_TYPE,
  3208. },
  3209. };
  3210. struct qmi_elem_info ipa3_data_usage_quota_reached_ind_msg_data_v01_ei[] = {
  3211. {
  3212. .data_type = QMI_STRUCT,
  3213. .elem_len = 1,
  3214. .elem_size = sizeof(struct
  3215. ipa_data_usage_quota_info_type_v01),
  3216. .array_type = NO_ARRAY,
  3217. .tlv_type = 0x01,
  3218. .offset = offsetof(
  3219. struct ipa_data_usage_quota_reached_ind_msg_v01,
  3220. apn),
  3221. .ei_array = ipa3_data_usage_quota_info_type_data_v01_ei,
  3222. },
  3223. {
  3224. .data_type = QMI_EOTI,
  3225. .array_type = NO_ARRAY,
  3226. .tlv_type = QMI_COMMON_TLV_TYPE,
  3227. },
  3228. };
  3229. struct qmi_elem_info ipa3_stop_data_usage_quota_req_msg_data_v01_ei[] = {
  3230. /* ipa_stop_data_usage_quota_req_msg is empty */
  3231. {
  3232. .data_type = QMI_EOTI,
  3233. .array_type = NO_ARRAY,
  3234. .tlv_type = QMI_COMMON_TLV_TYPE,
  3235. },
  3236. };
  3237. struct qmi_elem_info ipa3_stop_data_usage_quota_resp_msg_data_v01_ei[] = {
  3238. {
  3239. .data_type = QMI_STRUCT,
  3240. .elem_len = 1,
  3241. .elem_size = sizeof(struct qmi_response_type_v01),
  3242. .array_type = NO_ARRAY,
  3243. .tlv_type = 0x02,
  3244. .offset = offsetof(
  3245. struct ipa_stop_data_usage_quota_resp_msg_v01,
  3246. resp),
  3247. .ei_array = qmi_response_type_v01_ei,
  3248. },
  3249. {
  3250. .data_type = QMI_EOTI,
  3251. .array_type = NO_ARRAY,
  3252. .tlv_type = QMI_COMMON_TLV_TYPE,
  3253. },
  3254. };
  3255. struct qmi_elem_info ipa3_install_fltr_rule_req_ex_msg_data_v01_ei[] = {
  3256. {
  3257. .data_type = QMI_OPT_FLAG,
  3258. .elem_len = 1,
  3259. .elem_size = sizeof(uint8_t),
  3260. .array_type = NO_ARRAY,
  3261. .tlv_type = 0x10,
  3262. .offset = offsetof(
  3263. struct ipa_install_fltr_rule_req_ex_msg_v01,
  3264. filter_spec_ex_list_valid),
  3265. },
  3266. {
  3267. .data_type = QMI_DATA_LEN,
  3268. .elem_len = 1,
  3269. .elem_size = sizeof(uint8_t),
  3270. .array_type = NO_ARRAY,
  3271. .tlv_type = 0x10,
  3272. .offset = offsetof(
  3273. struct ipa_install_fltr_rule_req_ex_msg_v01,
  3274. filter_spec_ex_list_len),
  3275. },
  3276. {
  3277. .data_type = QMI_STRUCT,
  3278. .elem_len = QMI_IPA_MAX_FILTERS_EX_V01,
  3279. .elem_size = sizeof(struct
  3280. ipa_filter_spec_ex_type_v01),
  3281. .array_type = VAR_LEN_ARRAY,
  3282. .tlv_type = 0x10,
  3283. .offset = offsetof(
  3284. struct ipa_install_fltr_rule_req_ex_msg_v01,
  3285. filter_spec_ex_list),
  3286. .ei_array = ipa_filter_spec_ex_type_data_v01_ei,
  3287. },
  3288. {
  3289. .data_type = QMI_OPT_FLAG,
  3290. .elem_len = 1,
  3291. .elem_size = sizeof(uint8_t),
  3292. .array_type = NO_ARRAY,
  3293. .tlv_type = 0x11,
  3294. .offset = offsetof(
  3295. struct ipa_install_fltr_rule_req_ex_msg_v01,
  3296. source_pipe_index_valid),
  3297. },
  3298. {
  3299. .data_type = QMI_UNSIGNED_4_BYTE,
  3300. .elem_len = 1,
  3301. .elem_size = sizeof(uint32_t),
  3302. .array_type = NO_ARRAY,
  3303. .tlv_type = 0x11,
  3304. .offset = offsetof(
  3305. struct ipa_install_fltr_rule_req_ex_msg_v01,
  3306. source_pipe_index),
  3307. },
  3308. {
  3309. .data_type = QMI_OPT_FLAG,
  3310. .elem_len = 1,
  3311. .elem_size = sizeof(uint8_t),
  3312. .array_type = NO_ARRAY,
  3313. .tlv_type = 0x12,
  3314. .offset = offsetof(
  3315. struct ipa_install_fltr_rule_req_ex_msg_v01,
  3316. num_ipv4_filters_valid),
  3317. },
  3318. {
  3319. .data_type = QMI_UNSIGNED_4_BYTE,
  3320. .elem_len = 1,
  3321. .elem_size = sizeof(uint32_t),
  3322. .array_type = NO_ARRAY,
  3323. .tlv_type = 0x12,
  3324. .offset = offsetof(
  3325. struct ipa_install_fltr_rule_req_ex_msg_v01,
  3326. num_ipv4_filters),
  3327. },
  3328. {
  3329. .data_type = QMI_OPT_FLAG,
  3330. .elem_len = 1,
  3331. .elem_size = sizeof(uint8_t),
  3332. .array_type = NO_ARRAY,
  3333. .tlv_type = 0x13,
  3334. .offset = offsetof(
  3335. struct ipa_install_fltr_rule_req_ex_msg_v01,
  3336. num_ipv6_filters_valid),
  3337. },
  3338. {
  3339. .data_type = QMI_UNSIGNED_4_BYTE,
  3340. .elem_len = 1,
  3341. .elem_size = sizeof(uint32_t),
  3342. .array_type = NO_ARRAY,
  3343. .tlv_type = 0x13,
  3344. .offset = offsetof(
  3345. struct ipa_install_fltr_rule_req_ex_msg_v01,
  3346. num_ipv6_filters),
  3347. },
  3348. {
  3349. .data_type = QMI_OPT_FLAG,
  3350. .elem_len = 1,
  3351. .elem_size = sizeof(uint8_t),
  3352. .array_type = NO_ARRAY,
  3353. .tlv_type = 0x14,
  3354. .offset = offsetof(
  3355. struct ipa_install_fltr_rule_req_ex_msg_v01,
  3356. xlat_filter_indices_list_valid),
  3357. },
  3358. {
  3359. .data_type = QMI_DATA_LEN,
  3360. .elem_len = 1,
  3361. .elem_size = sizeof(uint8_t),
  3362. .array_type = NO_ARRAY,
  3363. .tlv_type = 0x14,
  3364. .offset = offsetof(
  3365. struct ipa_install_fltr_rule_req_ex_msg_v01,
  3366. xlat_filter_indices_list_len),
  3367. },
  3368. {
  3369. .data_type = QMI_UNSIGNED_4_BYTE,
  3370. .elem_len = QMI_IPA_MAX_FILTERS_EX_V01,
  3371. .elem_size = sizeof(uint32_t),
  3372. .array_type = VAR_LEN_ARRAY,
  3373. .tlv_type = 0x14,
  3374. .offset = offsetof(
  3375. struct ipa_install_fltr_rule_req_ex_msg_v01,
  3376. xlat_filter_indices_list),
  3377. },
  3378. {
  3379. .data_type = QMI_OPT_FLAG,
  3380. .elem_len = 1,
  3381. .elem_size = sizeof(uint8_t),
  3382. .array_type = NO_ARRAY,
  3383. .tlv_type = 0x15,
  3384. .offset = offsetof(
  3385. struct ipa_install_fltr_rule_req_ex_msg_v01,
  3386. filter_spec_ex2_list_valid),
  3387. },
  3388. {
  3389. .data_type = QMI_DATA_LEN,
  3390. .elem_len = 1,
  3391. .elem_size = sizeof(uint8_t),
  3392. .array_type = NO_ARRAY,
  3393. .tlv_type = 0x15,
  3394. .offset = offsetof(
  3395. struct ipa_install_fltr_rule_req_ex_msg_v01,
  3396. filter_spec_ex2_list_len),
  3397. },
  3398. {
  3399. .data_type = QMI_STRUCT,
  3400. .elem_len = QMI_IPA_MAX_FILTERS_V01,
  3401. .elem_size = sizeof(struct ipa_filter_spec_ex2_type_v01),
  3402. .array_type = VAR_LEN_ARRAY,
  3403. .tlv_type = 0x15,
  3404. .offset = offsetof(
  3405. struct ipa_install_fltr_rule_req_ex_msg_v01,
  3406. filter_spec_ex2_list),
  3407. .ei_array = ipa_filter_spec_ex2_type_v01_ei,
  3408. },
  3409. {
  3410. .data_type = QMI_OPT_FLAG,
  3411. .elem_len = 1,
  3412. .elem_size = sizeof(uint8_t),
  3413. .array_type = NO_ARRAY,
  3414. .tlv_type = 0x16,
  3415. .offset = offsetof(
  3416. struct ipa_install_fltr_rule_req_ex_msg_v01,
  3417. ul_firewall_indices_list_valid),
  3418. },
  3419. {
  3420. .data_type = QMI_DATA_LEN,
  3421. .elem_len = 1,
  3422. .elem_size = sizeof(uint8_t),
  3423. .array_type = NO_ARRAY,
  3424. .tlv_type = 0x16,
  3425. .offset = offsetof(
  3426. struct ipa_install_fltr_rule_req_ex_msg_v01,
  3427. ul_firewall_indices_list_len),
  3428. },
  3429. {
  3430. .data_type = QMI_UNSIGNED_4_BYTE,
  3431. .elem_len = QMI_IPA_MAX_FILTERS_V01,
  3432. .elem_size = sizeof(uint32_t),
  3433. .array_type = VAR_LEN_ARRAY,
  3434. .tlv_type = 0x16,
  3435. .offset = offsetof(
  3436. struct ipa_install_fltr_rule_req_ex_msg_v01,
  3437. ul_firewall_indices_list),
  3438. },
  3439. {
  3440. .data_type = QMI_EOTI,
  3441. .array_type = NO_ARRAY,
  3442. .tlv_type = QMI_COMMON_TLV_TYPE,
  3443. },
  3444. };
  3445. struct qmi_elem_info ipa3_install_fltr_rule_resp_ex_msg_data_v01_ei[] = {
  3446. {
  3447. .data_type = QMI_STRUCT,
  3448. .elem_len = 1,
  3449. .elem_size = sizeof(struct qmi_response_type_v01),
  3450. .array_type = NO_ARRAY,
  3451. .tlv_type = 0x02,
  3452. .offset = offsetof(
  3453. struct ipa_install_fltr_rule_resp_ex_msg_v01,
  3454. resp),
  3455. .ei_array = qmi_response_type_v01_ei,
  3456. },
  3457. {
  3458. .data_type = QMI_OPT_FLAG,
  3459. .elem_len = 1,
  3460. .elem_size = sizeof(uint8_t),
  3461. .array_type = NO_ARRAY,
  3462. .tlv_type = 0x10,
  3463. .offset = offsetof(
  3464. struct ipa_install_fltr_rule_resp_ex_msg_v01,
  3465. rule_id_valid),
  3466. },
  3467. {
  3468. .data_type = QMI_DATA_LEN,
  3469. .elem_len = 1,
  3470. .elem_size = sizeof(uint8_t),
  3471. .array_type = NO_ARRAY,
  3472. .tlv_type = 0x10,
  3473. .offset = offsetof(
  3474. struct ipa_install_fltr_rule_resp_ex_msg_v01,
  3475. rule_id_len),
  3476. },
  3477. {
  3478. .data_type = QMI_UNSIGNED_4_BYTE,
  3479. .elem_len = QMI_IPA_MAX_FILTERS_EX_V01,
  3480. .elem_size = sizeof(uint32_t),
  3481. .array_type = VAR_LEN_ARRAY,
  3482. .tlv_type = 0x10,
  3483. .offset = offsetof(
  3484. struct ipa_install_fltr_rule_resp_ex_msg_v01,
  3485. rule_id),
  3486. },
  3487. {
  3488. .data_type = QMI_EOTI,
  3489. .array_type = NO_ARRAY,
  3490. .tlv_type = QMI_COMMON_TLV_TYPE,
  3491. },
  3492. };
  3493. struct qmi_elem_info ipa3_per_client_stats_info_type_data_v01_ei[] = {
  3494. {
  3495. .data_type = QMI_UNSIGNED_4_BYTE,
  3496. .elem_len = 1,
  3497. .elem_size = sizeof(uint32_t),
  3498. .array_type = NO_ARRAY,
  3499. .tlv_type = QMI_COMMON_TLV_TYPE,
  3500. .offset = offsetof(
  3501. struct ipa_per_client_stats_info_type_v01,
  3502. client_id),
  3503. },
  3504. {
  3505. .data_type = QMI_UNSIGNED_4_BYTE,
  3506. .elem_len = 1,
  3507. .elem_size = sizeof(uint32_t),
  3508. .array_type = NO_ARRAY,
  3509. .tlv_type = QMI_COMMON_TLV_TYPE,
  3510. .offset = offsetof(
  3511. struct ipa_per_client_stats_info_type_v01,
  3512. src_pipe_id),
  3513. },
  3514. {
  3515. .data_type = QMI_UNSIGNED_8_BYTE,
  3516. .elem_len = 1,
  3517. .elem_size = sizeof(uint64_t),
  3518. .array_type = NO_ARRAY,
  3519. .tlv_type = QMI_COMMON_TLV_TYPE,
  3520. .offset = offsetof(
  3521. struct ipa_per_client_stats_info_type_v01,
  3522. num_ul_ipv4_bytes),
  3523. },
  3524. {
  3525. .data_type = QMI_UNSIGNED_8_BYTE,
  3526. .elem_len = 1,
  3527. .elem_size = sizeof(uint64_t),
  3528. .array_type = NO_ARRAY,
  3529. .tlv_type = QMI_COMMON_TLV_TYPE,
  3530. .offset = offsetof(
  3531. struct ipa_per_client_stats_info_type_v01,
  3532. num_ul_ipv6_bytes),
  3533. },
  3534. {
  3535. .data_type = QMI_UNSIGNED_8_BYTE,
  3536. .elem_len = 1,
  3537. .elem_size = sizeof(uint64_t),
  3538. .array_type = NO_ARRAY,
  3539. .tlv_type = QMI_COMMON_TLV_TYPE,
  3540. .offset = offsetof(
  3541. struct ipa_per_client_stats_info_type_v01,
  3542. num_dl_ipv4_bytes),
  3543. },
  3544. {
  3545. .data_type = QMI_UNSIGNED_8_BYTE,
  3546. .elem_len = 1,
  3547. .elem_size = sizeof(uint64_t),
  3548. .array_type = NO_ARRAY,
  3549. .tlv_type = QMI_COMMON_TLV_TYPE,
  3550. .offset = offsetof(
  3551. struct ipa_per_client_stats_info_type_v01,
  3552. num_dl_ipv6_bytes),
  3553. },
  3554. {
  3555. .data_type = QMI_UNSIGNED_4_BYTE,
  3556. .elem_len = 1,
  3557. .elem_size = sizeof(uint32_t),
  3558. .array_type = NO_ARRAY,
  3559. .tlv_type = QMI_COMMON_TLV_TYPE,
  3560. .offset = offsetof(
  3561. struct ipa_per_client_stats_info_type_v01,
  3562. num_ul_ipv4_pkts),
  3563. },
  3564. {
  3565. .data_type = QMI_UNSIGNED_4_BYTE,
  3566. .elem_len = 1,
  3567. .elem_size = sizeof(uint32_t),
  3568. .array_type = NO_ARRAY,
  3569. .tlv_type = QMI_COMMON_TLV_TYPE,
  3570. .offset = offsetof(
  3571. struct ipa_per_client_stats_info_type_v01,
  3572. num_ul_ipv6_pkts),
  3573. },
  3574. {
  3575. .data_type = QMI_UNSIGNED_4_BYTE,
  3576. .elem_len = 1,
  3577. .elem_size = sizeof(uint32_t),
  3578. .array_type = NO_ARRAY,
  3579. .tlv_type = QMI_COMMON_TLV_TYPE,
  3580. .offset = offsetof(
  3581. struct ipa_per_client_stats_info_type_v01,
  3582. num_dl_ipv4_pkts),
  3583. },
  3584. {
  3585. .data_type = QMI_UNSIGNED_4_BYTE,
  3586. .elem_len = 1,
  3587. .elem_size = sizeof(uint32_t),
  3588. .array_type = NO_ARRAY,
  3589. .tlv_type = QMI_COMMON_TLV_TYPE,
  3590. .offset = offsetof(
  3591. struct ipa_per_client_stats_info_type_v01,
  3592. num_dl_ipv6_pkts),
  3593. },
  3594. {
  3595. .data_type = QMI_EOTI,
  3596. .array_type = NO_ARRAY,
  3597. .tlv_type = QMI_COMMON_TLV_TYPE,
  3598. },
  3599. };
  3600. struct qmi_elem_info ipa3_ul_firewall_rule_type_data_v01_ei[] = {
  3601. {
  3602. .data_type = QMI_UNSIGNED_4_BYTE,
  3603. .elem_len = 1,
  3604. .elem_size = sizeof(uint32_t),
  3605. .array_type = NO_ARRAY,
  3606. .tlv_type = QMI_COMMON_TLV_TYPE,
  3607. .offset = offsetof(
  3608. struct ipa_ul_firewall_rule_type_v01,
  3609. ip_type),
  3610. },
  3611. {
  3612. .data_type = QMI_STRUCT,
  3613. .elem_len = 1,
  3614. .elem_size = sizeof(struct ipa_filter_rule_type_v01),
  3615. .array_type = NO_ARRAY,
  3616. .tlv_type = QMI_COMMON_TLV_TYPE,
  3617. .offset = offsetof(struct ipa_ul_firewall_rule_type_v01,
  3618. filter_rule),
  3619. .ei_array = ipa3_filter_rule_type_data_v01_ei,
  3620. },
  3621. {
  3622. .data_type = QMI_EOTI,
  3623. .array_type = NO_ARRAY,
  3624. .tlv_type = QMI_COMMON_TLV_TYPE,
  3625. },
  3626. };
  3627. struct qmi_elem_info ipa3_ul_firewall_config_result_type_data_v01_ei[] = {
  3628. {
  3629. .data_type = QMI_UNSIGNED_4_BYTE,
  3630. .elem_len = 1,
  3631. .elem_size = sizeof(uint32_t),
  3632. .array_type = NO_ARRAY,
  3633. .tlv_type = QMI_COMMON_TLV_TYPE,
  3634. .offset = offsetof(
  3635. struct ipa_ul_firewall_config_result_type_v01,
  3636. is_success),
  3637. },
  3638. {
  3639. .data_type = QMI_UNSIGNED_4_BYTE,
  3640. .elem_len = 1,
  3641. .elem_size = sizeof(uint32_t),
  3642. .array_type = NO_ARRAY,
  3643. .tlv_type = QMI_COMMON_TLV_TYPE,
  3644. .offset = offsetof(
  3645. struct ipa_ul_firewall_config_result_type_v01,
  3646. mux_id),
  3647. },
  3648. {
  3649. .data_type = QMI_EOTI,
  3650. .array_type = NO_ARRAY,
  3651. .tlv_type = QMI_COMMON_TLV_TYPE,
  3652. },
  3653. };
  3654. struct qmi_elem_info ipa3_enable_per_client_stats_req_msg_data_v01_ei[] = {
  3655. {
  3656. .data_type = QMI_UNSIGNED_1_BYTE,
  3657. .elem_len = 1,
  3658. .elem_size = sizeof(uint8_t),
  3659. .array_type = NO_ARRAY,
  3660. .tlv_type = 0x01,
  3661. .offset = offsetof(struct
  3662. ipa_enable_per_client_stats_req_msg_v01,
  3663. enable_per_client_stats),
  3664. },
  3665. {
  3666. .data_type = QMI_EOTI,
  3667. .array_type = NO_ARRAY,
  3668. .tlv_type = QMI_COMMON_TLV_TYPE,
  3669. },
  3670. };
  3671. struct qmi_elem_info ipa3_enable_per_client_stats_resp_msg_data_v01_ei[] = {
  3672. {
  3673. .data_type = QMI_STRUCT,
  3674. .elem_len = 1,
  3675. .elem_size = sizeof(struct qmi_response_type_v01),
  3676. .array_type = NO_ARRAY,
  3677. .tlv_type = 0x02,
  3678. .offset = offsetof(
  3679. struct ipa_enable_per_client_stats_resp_msg_v01,
  3680. resp),
  3681. .ei_array = qmi_response_type_v01_ei,
  3682. },
  3683. {
  3684. .data_type = QMI_EOTI,
  3685. .array_type = NO_ARRAY,
  3686. .tlv_type = QMI_COMMON_TLV_TYPE,
  3687. },
  3688. };
  3689. struct qmi_elem_info ipa3_get_stats_per_client_req_msg_data_v01_ei[] = {
  3690. {
  3691. .data_type = QMI_UNSIGNED_4_BYTE,
  3692. .elem_len = 1,
  3693. .elem_size = sizeof(uint32_t),
  3694. .array_type = NO_ARRAY,
  3695. .tlv_type = 0x01,
  3696. .offset = offsetof(
  3697. struct ipa_get_stats_per_client_req_msg_v01,
  3698. client_id),
  3699. },
  3700. {
  3701. .data_type = QMI_UNSIGNED_4_BYTE,
  3702. .elem_len = 1,
  3703. .elem_size = sizeof(uint32_t),
  3704. .array_type = NO_ARRAY,
  3705. .tlv_type = 0x02,
  3706. .offset = offsetof(
  3707. struct ipa_get_stats_per_client_req_msg_v01,
  3708. src_pipe_id),
  3709. },
  3710. {
  3711. .data_type = QMI_OPT_FLAG,
  3712. .elem_len = 1,
  3713. .elem_size = sizeof(uint8_t),
  3714. .array_type = NO_ARRAY,
  3715. .tlv_type = 0x10,
  3716. .offset = offsetof(
  3717. struct ipa_get_stats_per_client_req_msg_v01,
  3718. reset_stats_valid),
  3719. },
  3720. {
  3721. .data_type = QMI_UNSIGNED_1_BYTE,
  3722. .elem_len = 1,
  3723. .elem_size = sizeof(uint8_t),
  3724. .array_type = NO_ARRAY,
  3725. .tlv_type = 0x10,
  3726. .offset = offsetof(
  3727. struct ipa_get_stats_per_client_req_msg_v01,
  3728. reset_stats),
  3729. },
  3730. {
  3731. .data_type = QMI_EOTI,
  3732. .array_type = NO_ARRAY,
  3733. .tlv_type = QMI_COMMON_TLV_TYPE,
  3734. },
  3735. };
  3736. struct qmi_elem_info ipa3_get_stats_per_client_resp_msg_data_v01_ei[] = {
  3737. {
  3738. .data_type = QMI_STRUCT,
  3739. .elem_len = 1,
  3740. .elem_size = sizeof(struct qmi_response_type_v01),
  3741. .array_type = NO_ARRAY,
  3742. .tlv_type = 0x02,
  3743. .offset = offsetof(
  3744. struct ipa_get_stats_per_client_resp_msg_v01,
  3745. resp),
  3746. .ei_array = qmi_response_type_v01_ei,
  3747. },
  3748. {
  3749. .data_type = QMI_OPT_FLAG,
  3750. .elem_len = 1,
  3751. .elem_size = sizeof(uint8_t),
  3752. .array_type = NO_ARRAY,
  3753. .tlv_type = 0x10,
  3754. .offset = offsetof(
  3755. struct ipa_get_stats_per_client_resp_msg_v01,
  3756. per_client_stats_list_valid),
  3757. },
  3758. {
  3759. .data_type = QMI_DATA_LEN,
  3760. .elem_len = 1,
  3761. .elem_size = sizeof(uint8_t),
  3762. .array_type = NO_ARRAY,
  3763. .tlv_type = 0x10,
  3764. .offset = offsetof(
  3765. struct ipa_get_stats_per_client_resp_msg_v01,
  3766. per_client_stats_list_len),
  3767. },
  3768. {
  3769. .data_type = QMI_STRUCT,
  3770. .elem_len = QMI_IPA_MAX_PER_CLIENTS_V01,
  3771. .elem_size =
  3772. sizeof(struct ipa_per_client_stats_info_type_v01),
  3773. .array_type = VAR_LEN_ARRAY,
  3774. .tlv_type = 0x10,
  3775. .offset = offsetof(
  3776. struct ipa_get_stats_per_client_resp_msg_v01,
  3777. per_client_stats_list),
  3778. .ei_array =
  3779. ipa3_per_client_stats_info_type_data_v01_ei,
  3780. },
  3781. {
  3782. .data_type = QMI_EOTI,
  3783. .array_type = NO_ARRAY,
  3784. .tlv_type = QMI_COMMON_TLV_TYPE,
  3785. },
  3786. };
  3787. struct qmi_elem_info ipa3_configure_ul_firewall_rules_req_msg_data_v01_ei[] = {
  3788. {
  3789. .data_type = QMI_DATA_LEN,
  3790. .elem_len = 1,
  3791. .elem_size = sizeof(uint8_t),
  3792. .array_type = NO_ARRAY,
  3793. .tlv_type = 0x1,
  3794. .offset = offsetof(
  3795. struct ipa_configure_ul_firewall_rules_req_msg_v01,
  3796. firewall_rules_list_len),
  3797. },
  3798. {
  3799. .data_type = QMI_STRUCT,
  3800. .elem_len = QMI_IPA_MAX_UL_FIREWALL_RULES_V01,
  3801. .elem_size = sizeof(struct ipa_ul_firewall_rule_type_v01),
  3802. .array_type = VAR_LEN_ARRAY,
  3803. .tlv_type = 0x1,
  3804. .offset = offsetof(
  3805. struct ipa_configure_ul_firewall_rules_req_msg_v01,
  3806. firewall_rules_list),
  3807. .ei_array =
  3808. ipa3_ul_firewall_rule_type_data_v01_ei,
  3809. },
  3810. {
  3811. .data_type = QMI_UNSIGNED_4_BYTE,
  3812. .elem_len = 1,
  3813. .elem_size = sizeof(uint32_t),
  3814. .array_type = NO_ARRAY,
  3815. .tlv_type = 0x2,
  3816. .offset = offsetof(
  3817. struct ipa_configure_ul_firewall_rules_req_msg_v01,
  3818. mux_id),
  3819. },
  3820. {
  3821. .data_type = QMI_OPT_FLAG,
  3822. .elem_len = 1,
  3823. .elem_size = sizeof(uint8_t),
  3824. .array_type = NO_ARRAY,
  3825. .tlv_type = 0x10,
  3826. .offset = offsetof(
  3827. struct ipa_configure_ul_firewall_rules_req_msg_v01,
  3828. disable_valid),
  3829. },
  3830. {
  3831. .data_type = QMI_UNSIGNED_1_BYTE,
  3832. .elem_len = 1,
  3833. .elem_size = sizeof(uint8_t),
  3834. .array_type = NO_ARRAY,
  3835. .tlv_type = 0x10,
  3836. .offset = offsetof(
  3837. struct ipa_configure_ul_firewall_rules_req_msg_v01,
  3838. disable),
  3839. },
  3840. {
  3841. .data_type = QMI_OPT_FLAG,
  3842. .elem_len = 1,
  3843. .elem_size = sizeof(uint8_t),
  3844. .array_type = NO_ARRAY,
  3845. .tlv_type = 0x11,
  3846. .offset = offsetof(
  3847. struct ipa_configure_ul_firewall_rules_req_msg_v01,
  3848. are_blacklist_filters_valid),
  3849. },
  3850. {
  3851. .data_type = QMI_UNSIGNED_1_BYTE,
  3852. .elem_len = 1,
  3853. .elem_size = sizeof(uint8_t),
  3854. .array_type = NO_ARRAY,
  3855. .tlv_type = 0x11,
  3856. .offset = offsetof(
  3857. struct ipa_configure_ul_firewall_rules_req_msg_v01,
  3858. are_blacklist_filters),
  3859. },
  3860. {
  3861. .data_type = QMI_EOTI,
  3862. .array_type = NO_ARRAY,
  3863. .tlv_type = QMI_COMMON_TLV_TYPE,
  3864. },
  3865. };
  3866. struct qmi_elem_info ipa3_configure_ul_firewall_rules_resp_msg_data_v01_ei[] = {
  3867. {
  3868. .data_type = QMI_STRUCT,
  3869. .elem_len = 1,
  3870. .elem_size = sizeof(struct qmi_response_type_v01),
  3871. .array_type = NO_ARRAY,
  3872. .tlv_type = 0x02,
  3873. .offset = offsetof(
  3874. struct ipa_configure_ul_firewall_rules_resp_msg_v01,
  3875. resp),
  3876. .ei_array = qmi_response_type_v01_ei,
  3877. },
  3878. {
  3879. .data_type = QMI_EOTI,
  3880. .array_type = NO_ARRAY,
  3881. .tlv_type = QMI_COMMON_TLV_TYPE,
  3882. },
  3883. };
  3884. struct qmi_elem_info ipa3_configure_ul_firewall_rules_ind_msg_data_v01_ei[] = {
  3885. {
  3886. .data_type = QMI_STRUCT,
  3887. .elem_len = 1,
  3888. .elem_size = sizeof(
  3889. struct ipa_ul_firewall_config_result_type_v01),
  3890. .array_type = NO_ARRAY,
  3891. .tlv_type = 0x01,
  3892. .offset = offsetof(
  3893. struct ipa_configure_ul_firewall_rules_ind_msg_v01,
  3894. result),
  3895. .ei_array =
  3896. ipa3_ul_firewall_config_result_type_data_v01_ei,
  3897. },
  3898. {
  3899. .data_type = QMI_EOTI,
  3900. .array_type = NO_ARRAY,
  3901. .tlv_type = QMI_COMMON_TLV_TYPE,
  3902. },
  3903. };
  3904. static struct qmi_elem_info ipa_mhi_ch_init_info_type_v01_ei[] = {
  3905. {
  3906. .data_type = QMI_UNSIGNED_1_BYTE,
  3907. .elem_len = 1,
  3908. .elem_size = sizeof(u8),
  3909. .array_type = NO_ARRAY,
  3910. .tlv_type = 0,
  3911. .offset = offsetof(struct ipa_mhi_ch_init_info_type_v01,
  3912. ch_id),
  3913. },
  3914. {
  3915. .data_type = QMI_UNSIGNED_1_BYTE,
  3916. .elem_len = 1,
  3917. .elem_size = sizeof(u8),
  3918. .array_type = NO_ARRAY,
  3919. .tlv_type = 0,
  3920. .offset = offsetof(struct ipa_mhi_ch_init_info_type_v01,
  3921. er_id),
  3922. },
  3923. {
  3924. .data_type = QMI_UNSIGNED_4_BYTE,
  3925. .elem_len = 1,
  3926. .elem_size = sizeof(u32),
  3927. .array_type = NO_ARRAY,
  3928. .tlv_type = 0,
  3929. .offset = offsetof(struct ipa_mhi_ch_init_info_type_v01,
  3930. ch_doorbell_addr),
  3931. },
  3932. {
  3933. .data_type = QMI_UNSIGNED_4_BYTE,
  3934. .elem_len = 1,
  3935. .elem_size = sizeof(u32),
  3936. .array_type = NO_ARRAY,
  3937. .tlv_type = 0,
  3938. .offset = offsetof(struct ipa_mhi_ch_init_info_type_v01,
  3939. er_doorbell_addr),
  3940. },
  3941. {
  3942. .data_type = QMI_UNSIGNED_4_BYTE,
  3943. .elem_len = 1,
  3944. .elem_size = sizeof(u32),
  3945. .array_type = NO_ARRAY,
  3946. .tlv_type = 0,
  3947. .offset = offsetof(struct ipa_mhi_ch_init_info_type_v01,
  3948. direction_type),
  3949. },
  3950. {
  3951. .data_type = QMI_EOTI,
  3952. .array_type = NO_ARRAY,
  3953. .tlv_type = QMI_COMMON_TLV_TYPE,
  3954. },
  3955. };
  3956. static struct qmi_elem_info ipa_mhi_smmu_info_type_v01_ei[] = {
  3957. {
  3958. .data_type = QMI_UNSIGNED_8_BYTE,
  3959. .elem_len = 1,
  3960. .elem_size = sizeof(u64),
  3961. .array_type = NO_ARRAY,
  3962. .tlv_type = 0,
  3963. .offset = offsetof(struct ipa_mhi_smmu_info_type_v01,
  3964. iova_ctl_base_addr),
  3965. },
  3966. {
  3967. .data_type = QMI_UNSIGNED_8_BYTE,
  3968. .elem_len = 1,
  3969. .elem_size = sizeof(u64),
  3970. .array_type = NO_ARRAY,
  3971. .tlv_type = 0,
  3972. .offset = offsetof(struct ipa_mhi_smmu_info_type_v01,
  3973. iova_ctl_size),
  3974. },
  3975. {
  3976. .data_type = QMI_UNSIGNED_8_BYTE,
  3977. .elem_len = 1,
  3978. .elem_size = sizeof(u64),
  3979. .array_type = NO_ARRAY,
  3980. .tlv_type = 0,
  3981. .offset = offsetof(struct ipa_mhi_smmu_info_type_v01,
  3982. iova_data_base_addr),
  3983. },
  3984. {
  3985. .data_type = QMI_UNSIGNED_8_BYTE,
  3986. .elem_len = 1,
  3987. .elem_size = sizeof(u64),
  3988. .array_type = NO_ARRAY,
  3989. .tlv_type = 0,
  3990. .offset = offsetof(struct ipa_mhi_smmu_info_type_v01,
  3991. iova_data_size),
  3992. },
  3993. {
  3994. .data_type = QMI_EOTI,
  3995. .array_type = NO_ARRAY,
  3996. .tlv_type = QMI_COMMON_TLV_TYPE,
  3997. },
  3998. };
  3999. struct qmi_elem_info ipa_mhi_ready_indication_msg_v01_ei[] = {
  4000. {
  4001. .data_type = QMI_DATA_LEN,
  4002. .elem_len = 1,
  4003. .elem_size = sizeof(u8),
  4004. .array_type = NO_ARRAY,
  4005. .tlv_type = 0x01,
  4006. .offset = offsetof(struct ipa_mhi_ready_indication_msg_v01,
  4007. ch_info_arr_len),
  4008. },
  4009. {
  4010. .data_type = QMI_STRUCT,
  4011. .elem_len = QMI_IPA_REMOTE_MHI_CHANNELS_NUM_MAX_V01,
  4012. .elem_size = sizeof(struct ipa_mhi_ch_init_info_type_v01),
  4013. .array_type = VAR_LEN_ARRAY,
  4014. .tlv_type = 0x01,
  4015. .offset = offsetof(struct ipa_mhi_ready_indication_msg_v01,
  4016. ch_info_arr),
  4017. .ei_array = ipa_mhi_ch_init_info_type_v01_ei,
  4018. },
  4019. {
  4020. .data_type = QMI_OPT_FLAG,
  4021. .elem_len = 1,
  4022. .elem_size = sizeof(u8),
  4023. .array_type = NO_ARRAY,
  4024. .tlv_type = 0x10,
  4025. .offset = offsetof(struct ipa_mhi_ready_indication_msg_v01,
  4026. smmu_info_valid),
  4027. },
  4028. {
  4029. .data_type = QMI_STRUCT,
  4030. .elem_len = 1,
  4031. .elem_size = sizeof(struct ipa_mhi_smmu_info_type_v01),
  4032. .array_type = NO_ARRAY,
  4033. .tlv_type = 0x10,
  4034. .offset = offsetof(struct ipa_mhi_ready_indication_msg_v01,
  4035. smmu_info),
  4036. .ei_array = ipa_mhi_smmu_info_type_v01_ei,
  4037. },
  4038. {
  4039. .data_type = QMI_EOTI,
  4040. .array_type = NO_ARRAY,
  4041. .tlv_type = QMI_COMMON_TLV_TYPE,
  4042. },
  4043. };
  4044. struct qmi_elem_info ipa_mhi_mem_addr_info_type_v01_ei[] = {
  4045. {
  4046. .data_type = QMI_UNSIGNED_8_BYTE,
  4047. .elem_len = 1,
  4048. .elem_size = sizeof(u64),
  4049. .array_type = NO_ARRAY,
  4050. .tlv_type = 0,
  4051. .offset = offsetof(struct ipa_mhi_mem_addr_info_type_v01,
  4052. pa),
  4053. },
  4054. {
  4055. .data_type = QMI_UNSIGNED_8_BYTE,
  4056. .elem_len = 1,
  4057. .elem_size = sizeof(u64),
  4058. .array_type = NO_ARRAY,
  4059. .tlv_type = 0,
  4060. .offset = offsetof(struct ipa_mhi_mem_addr_info_type_v01,
  4061. iova),
  4062. },
  4063. {
  4064. .data_type = QMI_UNSIGNED_8_BYTE,
  4065. .elem_len = 1,
  4066. .elem_size = sizeof(u64),
  4067. .array_type = NO_ARRAY,
  4068. .tlv_type = 0,
  4069. .offset = offsetof(struct ipa_mhi_mem_addr_info_type_v01,
  4070. size),
  4071. },
  4072. {
  4073. .data_type = QMI_EOTI,
  4074. .array_type = NO_ARRAY,
  4075. .tlv_type = QMI_COMMON_TLV_TYPE,
  4076. },
  4077. };
  4078. struct qmi_elem_info ipa_mhi_tr_info_type_v01_ei[] = {
  4079. {
  4080. .data_type = QMI_UNSIGNED_1_BYTE,
  4081. .elem_len = 1,
  4082. .elem_size = sizeof(u8),
  4083. .array_type = NO_ARRAY,
  4084. .tlv_type = 0,
  4085. .offset = offsetof(struct ipa_mhi_tr_info_type_v01,
  4086. ch_id),
  4087. },
  4088. {
  4089. .data_type = QMI_UNSIGNED_2_BYTE,
  4090. .elem_len = 1,
  4091. .elem_size = sizeof(u16),
  4092. .array_type = NO_ARRAY,
  4093. .tlv_type = 0,
  4094. .offset = offsetof(struct ipa_mhi_tr_info_type_v01,
  4095. poll_cfg),
  4096. },
  4097. {
  4098. .data_type = QMI_SIGNED_4_BYTE_ENUM,
  4099. .elem_len = 1,
  4100. .elem_size = sizeof(enum ipa_mhi_brst_mode_enum_v01),
  4101. .array_type = NO_ARRAY,
  4102. .tlv_type = 0,
  4103. .offset = offsetof(struct ipa_mhi_tr_info_type_v01,
  4104. brst_mode_type),
  4105. },
  4106. {
  4107. .data_type = QMI_UNSIGNED_8_BYTE,
  4108. .elem_len = 1,
  4109. .elem_size = sizeof(u64),
  4110. .array_type = NO_ARRAY,
  4111. .tlv_type = 0,
  4112. .offset = offsetof(struct ipa_mhi_tr_info_type_v01,
  4113. ring_iova),
  4114. },
  4115. {
  4116. .data_type = QMI_UNSIGNED_8_BYTE,
  4117. .elem_len = 1,
  4118. .elem_size = sizeof(u64),
  4119. .array_type = NO_ARRAY,
  4120. .tlv_type = 0,
  4121. .offset = offsetof(struct ipa_mhi_tr_info_type_v01,
  4122. ring_len),
  4123. },
  4124. {
  4125. .data_type = QMI_UNSIGNED_8_BYTE,
  4126. .elem_len = 1,
  4127. .elem_size = sizeof(u64),
  4128. .array_type = NO_ARRAY,
  4129. .tlv_type = 0,
  4130. .offset = offsetof(struct ipa_mhi_tr_info_type_v01,
  4131. rp),
  4132. },
  4133. {
  4134. .data_type = QMI_UNSIGNED_8_BYTE,
  4135. .elem_len = 1,
  4136. .elem_size = sizeof(u64),
  4137. .array_type = NO_ARRAY,
  4138. .tlv_type = 0,
  4139. .offset = offsetof(struct ipa_mhi_tr_info_type_v01,
  4140. wp),
  4141. },
  4142. {
  4143. .data_type = QMI_EOTI,
  4144. .array_type = NO_ARRAY,
  4145. .tlv_type = QMI_COMMON_TLV_TYPE,
  4146. },
  4147. };
  4148. struct qmi_elem_info ipa_mhi_er_info_type_v01_ei[] = {
  4149. {
  4150. .data_type = QMI_UNSIGNED_1_BYTE,
  4151. .elem_len = 1,
  4152. .elem_size = sizeof(u8),
  4153. .array_type = NO_ARRAY,
  4154. .tlv_type = 0,
  4155. .offset = offsetof(struct ipa_mhi_er_info_type_v01,
  4156. er_id),
  4157. },
  4158. {
  4159. .data_type = QMI_UNSIGNED_4_BYTE,
  4160. .elem_len = 1,
  4161. .elem_size = sizeof(u32),
  4162. .array_type = NO_ARRAY,
  4163. .tlv_type = 0,
  4164. .offset = offsetof(struct ipa_mhi_er_info_type_v01,
  4165. intmod_cycles),
  4166. },
  4167. {
  4168. .data_type = QMI_UNSIGNED_4_BYTE,
  4169. .elem_len = 1,
  4170. .elem_size = sizeof(u32),
  4171. .array_type = NO_ARRAY,
  4172. .tlv_type = 0,
  4173. .offset = offsetof(struct ipa_mhi_er_info_type_v01,
  4174. intmod_count),
  4175. },
  4176. {
  4177. .data_type = QMI_UNSIGNED_4_BYTE,
  4178. .elem_len = 1,
  4179. .elem_size = sizeof(u32),
  4180. .array_type = NO_ARRAY,
  4181. .tlv_type = 0,
  4182. .offset = offsetof(struct ipa_mhi_er_info_type_v01,
  4183. msi_addr),
  4184. },
  4185. {
  4186. .data_type = QMI_UNSIGNED_8_BYTE,
  4187. .elem_len = 1,
  4188. .elem_size = sizeof(u64),
  4189. .array_type = NO_ARRAY,
  4190. .tlv_type = 0,
  4191. .offset = offsetof(struct ipa_mhi_er_info_type_v01,
  4192. ring_iova),
  4193. },
  4194. {
  4195. .data_type = QMI_UNSIGNED_8_BYTE,
  4196. .elem_len = 1,
  4197. .elem_size = sizeof(u64),
  4198. .array_type = NO_ARRAY,
  4199. .tlv_type = 0,
  4200. .offset = offsetof(struct ipa_mhi_er_info_type_v01,
  4201. ring_len),
  4202. },
  4203. {
  4204. .data_type = QMI_UNSIGNED_8_BYTE,
  4205. .elem_len = 1,
  4206. .elem_size = sizeof(u64),
  4207. .array_type = NO_ARRAY,
  4208. .tlv_type = 0,
  4209. .offset = offsetof(struct ipa_mhi_er_info_type_v01,
  4210. rp),
  4211. },
  4212. {
  4213. .data_type = QMI_UNSIGNED_8_BYTE,
  4214. .elem_len = 1,
  4215. .elem_size = sizeof(u64),
  4216. .array_type = NO_ARRAY,
  4217. .tlv_type = 0,
  4218. .offset = offsetof(struct ipa_mhi_er_info_type_v01,
  4219. wp),
  4220. },
  4221. {
  4222. .data_type = QMI_EOTI,
  4223. .array_type = NO_ARRAY,
  4224. .tlv_type = QMI_COMMON_TLV_TYPE,
  4225. },
  4226. };
  4227. struct qmi_elem_info ipa_mhi_alloc_channel_req_msg_v01_ei[] = {
  4228. {
  4229. .data_type = QMI_DATA_LEN,
  4230. .elem_len = 1,
  4231. .elem_size = sizeof(u8),
  4232. .array_type = NO_ARRAY,
  4233. .tlv_type = 0x01,
  4234. .offset = offsetof(struct ipa_mhi_alloc_channel_req_msg_v01,
  4235. tr_info_arr_len),
  4236. },
  4237. {
  4238. .data_type = QMI_STRUCT,
  4239. .elem_len = QMI_IPA_REMOTE_MHI_CHANNELS_NUM_MAX_V01,
  4240. .elem_size = sizeof(struct ipa_mhi_tr_info_type_v01),
  4241. .array_type = VAR_LEN_ARRAY,
  4242. .tlv_type = 0x01,
  4243. .offset = offsetof(struct ipa_mhi_alloc_channel_req_msg_v01,
  4244. tr_info_arr),
  4245. .ei_array = ipa_mhi_tr_info_type_v01_ei,
  4246. },
  4247. {
  4248. .data_type = QMI_DATA_LEN,
  4249. .elem_len = 1,
  4250. .elem_size = sizeof(u8),
  4251. .array_type = NO_ARRAY,
  4252. .tlv_type = 0x02,
  4253. .offset = offsetof(struct ipa_mhi_alloc_channel_req_msg_v01,
  4254. er_info_arr_len),
  4255. },
  4256. {
  4257. .data_type = QMI_STRUCT,
  4258. .elem_len = QMI_IPA_REMOTE_MHI_CHANNELS_NUM_MAX_V01,
  4259. .elem_size = sizeof(struct ipa_mhi_er_info_type_v01),
  4260. .array_type = VAR_LEN_ARRAY,
  4261. .tlv_type = 0x02,
  4262. .offset = offsetof(struct ipa_mhi_alloc_channel_req_msg_v01,
  4263. er_info_arr),
  4264. .ei_array = ipa_mhi_er_info_type_v01_ei,
  4265. },
  4266. {
  4267. .data_type = QMI_DATA_LEN,
  4268. .elem_len = 1,
  4269. .elem_size = sizeof(u8),
  4270. .array_type = NO_ARRAY,
  4271. .tlv_type = 0x03,
  4272. .offset = offsetof(struct ipa_mhi_alloc_channel_req_msg_v01,
  4273. ctrl_addr_map_info_len),
  4274. },
  4275. {
  4276. .data_type = QMI_STRUCT,
  4277. .elem_len = QMI_IPA_REMOTE_MHI_MEMORY_MAPPING_NUM_MAX_V01,
  4278. .elem_size = sizeof(struct ipa_mhi_mem_addr_info_type_v01),
  4279. .array_type = VAR_LEN_ARRAY,
  4280. .tlv_type = 0x03,
  4281. .offset = offsetof(struct ipa_mhi_alloc_channel_req_msg_v01,
  4282. ctrl_addr_map_info),
  4283. .ei_array = ipa_mhi_mem_addr_info_type_v01_ei,
  4284. },
  4285. {
  4286. .data_type = QMI_DATA_LEN,
  4287. .elem_len = 1,
  4288. .elem_size = sizeof(u8),
  4289. .array_type = NO_ARRAY,
  4290. .tlv_type = 0x04,
  4291. .offset = offsetof(struct ipa_mhi_alloc_channel_req_msg_v01,
  4292. data_addr_map_info_len),
  4293. },
  4294. {
  4295. .data_type = QMI_STRUCT,
  4296. .elem_len = QMI_IPA_REMOTE_MHI_MEMORY_MAPPING_NUM_MAX_V01,
  4297. .elem_size = sizeof(struct ipa_mhi_mem_addr_info_type_v01),
  4298. .array_type = VAR_LEN_ARRAY,
  4299. .tlv_type = 0x04,
  4300. .offset = offsetof(struct ipa_mhi_alloc_channel_req_msg_v01,
  4301. data_addr_map_info),
  4302. .ei_array = ipa_mhi_mem_addr_info_type_v01_ei,
  4303. },
  4304. {
  4305. .data_type = QMI_EOTI,
  4306. .array_type = NO_ARRAY,
  4307. .tlv_type = QMI_COMMON_TLV_TYPE,
  4308. },
  4309. };
  4310. struct qmi_elem_info ipa_mhi_ch_alloc_resp_type_v01_ei[] = {
  4311. {
  4312. .data_type = QMI_UNSIGNED_1_BYTE,
  4313. .elem_len = 1,
  4314. .elem_size = sizeof(u8),
  4315. .array_type = NO_ARRAY,
  4316. .tlv_type = 0,
  4317. .offset = offsetof(struct ipa_mhi_ch_alloc_resp_type_v01,
  4318. ch_id),
  4319. },
  4320. {
  4321. .data_type = QMI_UNSIGNED_1_BYTE,
  4322. .elem_len = 1,
  4323. .elem_size = sizeof(u8),
  4324. .array_type = NO_ARRAY,
  4325. .tlv_type = 0,
  4326. .offset = offsetof(struct ipa_mhi_ch_alloc_resp_type_v01,
  4327. is_success),
  4328. },
  4329. {
  4330. .data_type = QMI_EOTI,
  4331. .array_type = NO_ARRAY,
  4332. .tlv_type = QMI_COMMON_TLV_TYPE,
  4333. },
  4334. };
  4335. struct qmi_elem_info ipa_mhi_alloc_channel_resp_msg_v01_ei[] = {
  4336. {
  4337. .data_type = QMI_STRUCT,
  4338. .elem_len = 1,
  4339. .elem_size = sizeof(struct qmi_response_type_v01),
  4340. .array_type = NO_ARRAY,
  4341. .tlv_type = 0x02,
  4342. .offset = offsetof(struct ipa_mhi_alloc_channel_resp_msg_v01,
  4343. resp),
  4344. .ei_array = qmi_response_type_v01_ei,
  4345. },
  4346. {
  4347. .data_type = QMI_OPT_FLAG,
  4348. .elem_len = 1,
  4349. .elem_size = sizeof(u8),
  4350. .array_type = NO_ARRAY,
  4351. .tlv_type = 0x10,
  4352. .offset = offsetof(struct ipa_mhi_alloc_channel_resp_msg_v01,
  4353. alloc_resp_arr_valid),
  4354. },
  4355. {
  4356. .data_type = QMI_DATA_LEN,
  4357. .elem_len = 1,
  4358. .elem_size = sizeof(u8),
  4359. .array_type = NO_ARRAY,
  4360. .tlv_type = 0x10,
  4361. .offset = offsetof(struct ipa_mhi_alloc_channel_resp_msg_v01,
  4362. alloc_resp_arr_len),
  4363. },
  4364. {
  4365. .data_type = QMI_STRUCT,
  4366. .elem_len = QMI_IPA_REMOTE_MHI_CHANNELS_NUM_MAX_V01,
  4367. .elem_size = sizeof(struct ipa_mhi_ch_alloc_resp_type_v01),
  4368. .array_type = VAR_LEN_ARRAY,
  4369. .tlv_type = 0x10,
  4370. .offset = offsetof(struct ipa_mhi_alloc_channel_resp_msg_v01,
  4371. alloc_resp_arr),
  4372. .ei_array = ipa_mhi_ch_alloc_resp_type_v01_ei,
  4373. },
  4374. {
  4375. .data_type = QMI_EOTI,
  4376. .array_type = NO_ARRAY,
  4377. .tlv_type = QMI_COMMON_TLV_TYPE,
  4378. },
  4379. };
  4380. struct qmi_elem_info ipa_mhi_clk_vote_req_msg_v01_ei[] = {
  4381. {
  4382. .data_type = QMI_UNSIGNED_1_BYTE,
  4383. .elem_len = 1,
  4384. .elem_size = sizeof(u8),
  4385. .array_type = NO_ARRAY,
  4386. .tlv_type = 0x01,
  4387. .offset = offsetof(struct ipa_mhi_clk_vote_req_msg_v01,
  4388. mhi_vote),
  4389. },
  4390. {
  4391. .data_type = QMI_OPT_FLAG,
  4392. .elem_len = 1,
  4393. .elem_size = sizeof(uint8_t),
  4394. .array_type = NO_ARRAY,
  4395. .tlv_type = 0x10,
  4396. .offset = offsetof(
  4397. struct ipa_mhi_clk_vote_req_msg_v01,
  4398. tput_value_valid),
  4399. },
  4400. {
  4401. .data_type = QMI_UNSIGNED_4_BYTE,
  4402. .elem_len = 1,
  4403. .elem_size = sizeof(uint32_t),
  4404. .array_type = NO_ARRAY,
  4405. .tlv_type = 0x10,
  4406. .offset = offsetof(
  4407. struct ipa_mhi_clk_vote_req_msg_v01,
  4408. tput_value),
  4409. },
  4410. {
  4411. .data_type = QMI_OPT_FLAG,
  4412. .elem_len = 1,
  4413. .elem_size = sizeof(uint8_t),
  4414. .array_type = NO_ARRAY,
  4415. .tlv_type = 0x11,
  4416. .offset = offsetof(
  4417. struct ipa_mhi_clk_vote_req_msg_v01,
  4418. clk_rate_valid),
  4419. },
  4420. {
  4421. .data_type = QMI_SIGNED_4_BYTE_ENUM,
  4422. .elem_len = 1,
  4423. .elem_size = sizeof(uint32_t),
  4424. .array_type = NO_ARRAY,
  4425. .tlv_type = 0x11,
  4426. .offset = offsetof(
  4427. struct ipa_mhi_clk_vote_req_msg_v01,
  4428. clk_rate),
  4429. },
  4430. {
  4431. .data_type = QMI_EOTI,
  4432. .array_type = NO_ARRAY,
  4433. .tlv_type = QMI_COMMON_TLV_TYPE,
  4434. },
  4435. };
  4436. struct qmi_elem_info ipa_mhi_clk_vote_resp_msg_v01_ei[] = {
  4437. {
  4438. .data_type = QMI_STRUCT,
  4439. .elem_len = 1,
  4440. .elem_size = sizeof(struct qmi_response_type_v01),
  4441. .array_type = NO_ARRAY,
  4442. .tlv_type = 0x02,
  4443. .offset = offsetof(struct ipa_mhi_clk_vote_resp_msg_v01,
  4444. resp),
  4445. .ei_array = qmi_response_type_v01_ei,
  4446. },
  4447. {
  4448. .data_type = QMI_EOTI,
  4449. .array_type = NO_ARRAY,
  4450. .tlv_type = QMI_COMMON_TLV_TYPE,
  4451. },
  4452. };
  4453. struct qmi_elem_info ipa_mhi_cleanup_req_msg_v01_ei[] = {
  4454. {
  4455. .data_type = QMI_OPT_FLAG,
  4456. .elem_len = 1,
  4457. .elem_size = sizeof(u8),
  4458. .array_type = NO_ARRAY,
  4459. .tlv_type = 0x10,
  4460. .offset = offsetof(struct ipa_mhi_cleanup_req_msg_v01,
  4461. cleanup_valid),
  4462. },
  4463. {
  4464. .data_type = QMI_UNSIGNED_1_BYTE,
  4465. .elem_len = 1,
  4466. .elem_size = sizeof(u8),
  4467. .array_type = NO_ARRAY,
  4468. .tlv_type = 0x10,
  4469. .offset = offsetof(struct ipa_mhi_cleanup_req_msg_v01,
  4470. cleanup),
  4471. },
  4472. {
  4473. .data_type = QMI_EOTI,
  4474. .array_type = NO_ARRAY,
  4475. .tlv_type = QMI_COMMON_TLV_TYPE,
  4476. },
  4477. };
  4478. struct qmi_elem_info ipa_mhi_cleanup_resp_msg_v01_ei[] = {
  4479. {
  4480. .data_type = QMI_STRUCT,
  4481. .elem_len = 1,
  4482. .elem_size = sizeof(struct qmi_response_type_v01),
  4483. .array_type = NO_ARRAY,
  4484. .tlv_type = 0x02,
  4485. .offset = offsetof(struct ipa_mhi_cleanup_resp_msg_v01,
  4486. resp),
  4487. .ei_array = qmi_response_type_v01_ei,
  4488. },
  4489. {
  4490. .data_type = QMI_EOTI,
  4491. .array_type = NO_ARRAY,
  4492. .tlv_type = QMI_COMMON_TLV_TYPE,
  4493. },
  4494. };
  4495. static struct qmi_elem_info ipa_ep_id_type_v01_ei[] = {
  4496. {
  4497. .data_type = QMI_SIGNED_4_BYTE_ENUM,
  4498. .elem_len = 1,
  4499. .elem_size = sizeof(enum ipa_ic_type_enum_v01),
  4500. .array_type = NO_ARRAY,
  4501. .tlv_type = 0,
  4502. .offset = offsetof(struct ipa_ep_id_type_v01,
  4503. ic_type),
  4504. },
  4505. {
  4506. .data_type = QMI_SIGNED_4_BYTE_ENUM,
  4507. .elem_len = 1,
  4508. .elem_size = sizeof(enum ipa_ep_desc_type_enum_v01),
  4509. .array_type = NO_ARRAY,
  4510. .tlv_type = 0,
  4511. .offset = offsetof(struct ipa_ep_id_type_v01,
  4512. ep_type),
  4513. },
  4514. {
  4515. .data_type = QMI_UNSIGNED_4_BYTE,
  4516. .elem_len = 1,
  4517. .elem_size = sizeof(u32),
  4518. .array_type = NO_ARRAY,
  4519. .tlv_type = 0,
  4520. .offset = offsetof(struct ipa_ep_id_type_v01,
  4521. ep_id),
  4522. },
  4523. {
  4524. .data_type = QMI_SIGNED_4_BYTE_ENUM,
  4525. .elem_len = 1,
  4526. .elem_size = sizeof(enum ipa_ep_status_type_v01),
  4527. .array_type = NO_ARRAY,
  4528. .tlv_type = 0,
  4529. .offset = offsetof(struct ipa_ep_id_type_v01,
  4530. ep_status),
  4531. },
  4532. {
  4533. .data_type = QMI_EOTI,
  4534. .array_type = NO_ARRAY,
  4535. .tlv_type = QMI_COMMON_TLV_TYPE,
  4536. },
  4537. };
  4538. struct qmi_elem_info ipa_endp_desc_indication_msg_v01_ei[] = {
  4539. {
  4540. .data_type = QMI_OPT_FLAG,
  4541. .elem_len = 1,
  4542. .elem_size = sizeof(u8),
  4543. .array_type = NO_ARRAY,
  4544. .tlv_type = 0x10,
  4545. .offset = offsetof(
  4546. struct ipa_endp_desc_indication_msg_v01,
  4547. ep_info_valid),
  4548. },
  4549. {
  4550. .data_type = QMI_DATA_LEN,
  4551. .elem_len = 1,
  4552. .elem_size = sizeof(u8),
  4553. .array_type = NO_ARRAY,
  4554. .tlv_type = 0x10,
  4555. .offset = offsetof(
  4556. struct ipa_endp_desc_indication_msg_v01,
  4557. ep_info_len),
  4558. },
  4559. {
  4560. .data_type = QMI_STRUCT,
  4561. .elem_len = QMI_IPA_ENDP_DESC_NUM_MAX_V01,
  4562. .elem_size = sizeof(struct ipa_ep_id_type_v01),
  4563. .array_type = VAR_LEN_ARRAY,
  4564. .tlv_type = 0x10,
  4565. .offset = offsetof(
  4566. struct ipa_endp_desc_indication_msg_v01,
  4567. ep_info),
  4568. .ei_array = ipa_ep_id_type_v01_ei,
  4569. },
  4570. {
  4571. .data_type = QMI_OPT_FLAG,
  4572. .elem_len = 1,
  4573. .elem_size = sizeof(u8),
  4574. .array_type = NO_ARRAY,
  4575. .tlv_type = 0x11,
  4576. .offset = offsetof(
  4577. struct ipa_endp_desc_indication_msg_v01,
  4578. num_eps_valid),
  4579. },
  4580. {
  4581. .data_type = QMI_UNSIGNED_4_BYTE,
  4582. .elem_len = 1,
  4583. .elem_size = sizeof(u32),
  4584. .array_type = NO_ARRAY,
  4585. .tlv_type = 0x11,
  4586. .offset = offsetof(
  4587. struct ipa_endp_desc_indication_msg_v01,
  4588. num_eps),
  4589. },
  4590. {
  4591. .data_type = QMI_EOTI,
  4592. .array_type = NO_ARRAY,
  4593. .tlv_type = QMI_COMMON_TLV_TYPE,
  4594. },
  4595. };
  4596. static struct qmi_elem_info ipa_mhi_prime_aggr_info_type_v01_ei[] = {
  4597. {
  4598. .data_type = QMI_SIGNED_4_BYTE_ENUM,
  4599. .elem_len = 1,
  4600. .elem_size = sizeof(enum ipa_ic_type_enum_v01),
  4601. .array_type = NO_ARRAY,
  4602. .tlv_type = 0,
  4603. .offset = offsetof(
  4604. struct ipa_mhi_prime_aggr_info_type_v01,
  4605. ic_type),
  4606. },
  4607. {
  4608. .data_type = QMI_SIGNED_4_BYTE_ENUM,
  4609. .elem_len = 1,
  4610. .elem_size = sizeof(enum ipa_ep_desc_type_enum_v01),
  4611. .array_type = NO_ARRAY,
  4612. .tlv_type = 0,
  4613. .offset = offsetof(
  4614. struct ipa_mhi_prime_aggr_info_type_v01,
  4615. ep_type),
  4616. },
  4617. {
  4618. .data_type = QMI_UNSIGNED_4_BYTE,
  4619. .elem_len = 1,
  4620. .elem_size = sizeof(u32),
  4621. .array_type = NO_ARRAY,
  4622. .tlv_type = 0,
  4623. .offset = offsetof(
  4624. struct ipa_mhi_prime_aggr_info_type_v01,
  4625. bytes_count),
  4626. },
  4627. {
  4628. .data_type = QMI_UNSIGNED_4_BYTE,
  4629. .elem_len = 1,
  4630. .elem_size = sizeof(u32),
  4631. .array_type = NO_ARRAY,
  4632. .tlv_type = 0,
  4633. .offset = offsetof(
  4634. struct ipa_mhi_prime_aggr_info_type_v01,
  4635. pkt_count),
  4636. },
  4637. {
  4638. .data_type = QMI_SIGNED_4_BYTE_ENUM,
  4639. .elem_len = 1,
  4640. .elem_size = sizeof(enum ipa_aggr_enum_type_v01),
  4641. .array_type = NO_ARRAY,
  4642. .tlv_type = 0,
  4643. .offset = offsetof(
  4644. struct ipa_mhi_prime_aggr_info_type_v01,
  4645. aggr_type),
  4646. },
  4647. {
  4648. .data_type = QMI_EOTI,
  4649. .array_type = NO_ARRAY,
  4650. .tlv_type = QMI_COMMON_TLV_TYPE,
  4651. },
  4652. };
  4653. struct qmi_elem_info ipa_mhi_prime_aggr_info_req_msg_v01_ei[] = {
  4654. {
  4655. .data_type = QMI_OPT_FLAG,
  4656. .elem_len = 1,
  4657. .elem_size = sizeof(u8),
  4658. .array_type = NO_ARRAY,
  4659. .tlv_type = 0x10,
  4660. .offset = offsetof(
  4661. struct ipa_mhi_prime_aggr_info_req_msg_v01,
  4662. aggr_info_valid),
  4663. },
  4664. {
  4665. .data_type = QMI_DATA_LEN,
  4666. .elem_len = 1,
  4667. .elem_size = sizeof(u8),
  4668. .array_type = NO_ARRAY,
  4669. .tlv_type = 0x10,
  4670. .offset = offsetof(
  4671. struct ipa_mhi_prime_aggr_info_req_msg_v01,
  4672. aggr_info_len),
  4673. },
  4674. {
  4675. .data_type = QMI_STRUCT,
  4676. .elem_len = QMI_IPA_ENDP_DESC_NUM_MAX_V01,
  4677. .elem_size = sizeof(
  4678. struct ipa_mhi_prime_aggr_info_type_v01),
  4679. .array_type = VAR_LEN_ARRAY,
  4680. .tlv_type = 0x10,
  4681. .offset = offsetof(
  4682. struct ipa_mhi_prime_aggr_info_req_msg_v01,
  4683. aggr_info),
  4684. .ei_array = ipa_mhi_prime_aggr_info_type_v01_ei,
  4685. },
  4686. {
  4687. .data_type = QMI_OPT_FLAG,
  4688. .elem_len = 1,
  4689. .elem_size = sizeof(u8),
  4690. .array_type = NO_ARRAY,
  4691. .tlv_type = 0x11,
  4692. .offset = offsetof(
  4693. struct ipa_mhi_prime_aggr_info_req_msg_v01,
  4694. num_eps_valid),
  4695. },
  4696. {
  4697. .data_type = QMI_UNSIGNED_4_BYTE,
  4698. .elem_len = 1,
  4699. .elem_size = sizeof(u32),
  4700. .array_type = NO_ARRAY,
  4701. .tlv_type = 0x11,
  4702. .offset = offsetof(
  4703. struct ipa_mhi_prime_aggr_info_req_msg_v01,
  4704. num_eps),
  4705. },
  4706. {
  4707. .data_type = QMI_EOTI,
  4708. .array_type = NO_ARRAY,
  4709. .tlv_type = QMI_COMMON_TLV_TYPE,
  4710. },
  4711. };
  4712. struct qmi_elem_info ipa_mhi_prime_aggr_info_resp_msg_v01_ei[] = {
  4713. {
  4714. .data_type = QMI_STRUCT,
  4715. .elem_len = 1,
  4716. .elem_size = sizeof(struct qmi_response_type_v01),
  4717. .array_type = NO_ARRAY,
  4718. .tlv_type = 0x02,
  4719. .offset = offsetof(
  4720. struct ipa_mhi_prime_aggr_info_resp_msg_v01,
  4721. resp),
  4722. .ei_array = qmi_response_type_v01_ei,
  4723. },
  4724. {
  4725. .data_type = QMI_EOTI,
  4726. .array_type = NO_ARRAY,
  4727. .tlv_type = QMI_COMMON_TLV_TYPE,
  4728. },
  4729. };
  4730. struct qmi_elem_info ipa_add_offload_connection_req_msg_v01_ei[] = {
  4731. {
  4732. .data_type = QMI_OPT_FLAG,
  4733. .elem_len = 1,
  4734. .elem_size = sizeof(u8),
  4735. .array_type = NO_ARRAY,
  4736. .tlv_type = 0x10,
  4737. .offset = offsetof(
  4738. struct ipa_add_offload_connection_req_msg_v01,
  4739. num_ipv4_filters_valid),
  4740. },
  4741. {
  4742. .data_type = QMI_UNSIGNED_4_BYTE,
  4743. .elem_len = 1,
  4744. .elem_size = sizeof(u32),
  4745. .array_type = NO_ARRAY,
  4746. .tlv_type = 0x10,
  4747. .offset = offsetof(
  4748. struct ipa_add_offload_connection_req_msg_v01,
  4749. num_ipv4_filters),
  4750. },
  4751. {
  4752. .data_type = QMI_OPT_FLAG,
  4753. .elem_len = 1,
  4754. .elem_size = sizeof(u8),
  4755. .array_type = NO_ARRAY,
  4756. .tlv_type = 0x11,
  4757. .offset = offsetof(
  4758. struct ipa_add_offload_connection_req_msg_v01,
  4759. num_ipv6_filters_valid),
  4760. },
  4761. {
  4762. .data_type = QMI_UNSIGNED_4_BYTE,
  4763. .elem_len = 1,
  4764. .elem_size = sizeof(u32),
  4765. .array_type = NO_ARRAY,
  4766. .tlv_type = 0x11,
  4767. .offset = offsetof(
  4768. struct ipa_add_offload_connection_req_msg_v01,
  4769. num_ipv6_filters),
  4770. },
  4771. {
  4772. .data_type = QMI_OPT_FLAG,
  4773. .elem_len = 1,
  4774. .elem_size = sizeof(u8),
  4775. .array_type = NO_ARRAY,
  4776. .tlv_type = 0x12,
  4777. .offset = offsetof(
  4778. struct ipa_add_offload_connection_req_msg_v01,
  4779. xlat_filter_indices_list_valid),
  4780. },
  4781. {
  4782. .data_type = QMI_DATA_LEN,
  4783. .elem_len = 1,
  4784. .elem_size = sizeof(u8),
  4785. .array_type = NO_ARRAY,
  4786. .tlv_type = 0x12,
  4787. .offset = offsetof(
  4788. struct ipa_add_offload_connection_req_msg_v01,
  4789. xlat_filter_indices_list_len),
  4790. },
  4791. {
  4792. .data_type = QMI_UNSIGNED_4_BYTE,
  4793. .elem_len = QMI_IPA_MAX_FILTERS_V01,
  4794. .elem_size = sizeof(u32),
  4795. .array_type = VAR_LEN_ARRAY,
  4796. .tlv_type = 0x12,
  4797. .offset = offsetof(
  4798. struct ipa_add_offload_connection_req_msg_v01,
  4799. xlat_filter_indices_list),
  4800. },
  4801. {
  4802. .data_type = QMI_OPT_FLAG,
  4803. .elem_len = 1,
  4804. .elem_size = sizeof(u8),
  4805. .array_type = NO_ARRAY,
  4806. .tlv_type = 0x13,
  4807. .offset = offsetof(
  4808. struct ipa_add_offload_connection_req_msg_v01,
  4809. filter_spec_ex2_list_valid),
  4810. },
  4811. {
  4812. .data_type = QMI_DATA_LEN,
  4813. .elem_len = 1,
  4814. .elem_size = sizeof(u8),
  4815. .array_type = NO_ARRAY,
  4816. .tlv_type = 0x13,
  4817. .offset = offsetof(
  4818. struct ipa_add_offload_connection_req_msg_v01,
  4819. filter_spec_ex2_list_len),
  4820. },
  4821. {
  4822. .data_type = QMI_STRUCT,
  4823. .elem_len = QMI_IPA_MAX_FILTERS_V01,
  4824. .elem_size = sizeof(struct ipa_filter_spec_ex2_type_v01),
  4825. .array_type = VAR_LEN_ARRAY,
  4826. .tlv_type = 0x13,
  4827. .offset = offsetof(
  4828. struct ipa_add_offload_connection_req_msg_v01,
  4829. filter_spec_ex2_list),
  4830. .ei_array = ipa_filter_spec_ex2_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 = 0x14,
  4838. .offset = offsetof(
  4839. struct ipa_add_offload_connection_req_msg_v01,
  4840. embedded_call_mux_id_valid),
  4841. },
  4842. {
  4843. .data_type = QMI_UNSIGNED_4_BYTE,
  4844. .elem_len = 1,
  4845. .elem_size = sizeof(uint32_t),
  4846. .array_type = NO_ARRAY,
  4847. .tlv_type = 0x14,
  4848. .offset = offsetof(
  4849. struct ipa_add_offload_connection_req_msg_v01,
  4850. embedded_call_mux_id),
  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 = 0x15,
  4858. .offset = offsetof(
  4859. struct ipa_add_offload_connection_req_msg_v01,
  4860. default_mhi_path_valid),
  4861. },
  4862. {
  4863. .data_type = QMI_UNSIGNED_1_BYTE,
  4864. .elem_len = 1,
  4865. .elem_size = sizeof(u8),
  4866. .array_type = NO_ARRAY,
  4867. .tlv_type = 0x15,
  4868. .offset = offsetof(
  4869. struct ipa_add_offload_connection_req_msg_v01,
  4870. default_mhi_path),
  4871. },
  4872. {
  4873. .data_type = QMI_EOTI,
  4874. .array_type = NO_ARRAY,
  4875. .tlv_type = QMI_COMMON_TLV_TYPE,
  4876. },
  4877. };
  4878. struct qmi_elem_info ipa_add_offload_connection_resp_msg_v01_ei[] = {
  4879. {
  4880. .data_type = QMI_STRUCT,
  4881. .elem_len = 1,
  4882. .elem_size = sizeof(struct qmi_response_type_v01),
  4883. .array_type = NO_ARRAY,
  4884. .tlv_type = 0x02,
  4885. .offset = offsetof(
  4886. struct ipa_add_offload_connection_resp_msg_v01,
  4887. resp),
  4888. .ei_array = qmi_response_type_v01_ei,
  4889. },
  4890. {
  4891. .data_type = QMI_OPT_FLAG,
  4892. .elem_len = 1,
  4893. .elem_size = sizeof(u8),
  4894. .array_type = NO_ARRAY,
  4895. .tlv_type = 0x10,
  4896. .offset = offsetof(
  4897. struct ipa_add_offload_connection_resp_msg_v01,
  4898. filter_handle_list_valid),
  4899. },
  4900. {
  4901. .data_type = QMI_DATA_LEN,
  4902. .elem_len = 1,
  4903. .elem_size = sizeof(u8),
  4904. .array_type = NO_ARRAY,
  4905. .tlv_type = 0x10,
  4906. .offset = offsetof(
  4907. struct ipa_add_offload_connection_resp_msg_v01,
  4908. filter_handle_list_len),
  4909. },
  4910. {
  4911. .data_type = QMI_STRUCT,
  4912. .elem_len = QMI_IPA_MAX_FILTERS_V01,
  4913. .elem_size = sizeof(
  4914. struct ipa_filter_rule_identifier_to_handle_map_v01),
  4915. .array_type = VAR_LEN_ARRAY,
  4916. .tlv_type = 0x10,
  4917. .offset = offsetof(
  4918. struct ipa_add_offload_connection_resp_msg_v01,
  4919. filter_handle_list),
  4920. .ei_array =
  4921. ipa3_filter_rule_identifier_to_handle_map_data_v01_ei,
  4922. },
  4923. {
  4924. .data_type = QMI_EOTI,
  4925. .array_type = NO_ARRAY,
  4926. .tlv_type = QMI_COMMON_TLV_TYPE,
  4927. },
  4928. };
  4929. struct qmi_elem_info ipa_remove_offload_connection_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(
  4937. struct ipa_remove_offload_connection_req_msg_v01,
  4938. filter_handle_list_valid),
  4939. },
  4940. {
  4941. .data_type = QMI_DATA_LEN,
  4942. .elem_len = 1,
  4943. .elem_size = sizeof(u8),
  4944. .array_type = NO_ARRAY,
  4945. .tlv_type = 0x10,
  4946. .offset = offsetof(
  4947. struct ipa_remove_offload_connection_req_msg_v01,
  4948. filter_handle_list_len),
  4949. },
  4950. {
  4951. .data_type = QMI_STRUCT,
  4952. .elem_len = QMI_IPA_MAX_FILTERS_V01,
  4953. .elem_size = sizeof(
  4954. struct ipa_filter_rule_identifier_to_handle_map_v01),
  4955. .array_type = VAR_LEN_ARRAY,
  4956. .tlv_type = 0x10,
  4957. .offset = offsetof(
  4958. struct ipa_remove_offload_connection_req_msg_v01,
  4959. filter_handle_list),
  4960. .ei_array =
  4961. ipa3_filter_rule_identifier_to_handle_map_data_v01_ei,
  4962. },
  4963. {
  4964. .data_type = QMI_OPT_FLAG,
  4965. .elem_len = 1,
  4966. .elem_size = sizeof(u8),
  4967. .array_type = NO_ARRAY,
  4968. .tlv_type = 0x11,
  4969. .offset = offsetof(
  4970. struct ipa_remove_offload_connection_req_msg_v01,
  4971. clean_all_rules_valid),
  4972. },
  4973. {
  4974. .data_type = QMI_UNSIGNED_1_BYTE,
  4975. .elem_len = 1,
  4976. .elem_size = sizeof(u8),
  4977. .array_type = NO_ARRAY,
  4978. .tlv_type = 0x11,
  4979. .offset = offsetof(
  4980. struct ipa_remove_offload_connection_req_msg_v01,
  4981. clean_all_rules),
  4982. },
  4983. {
  4984. .data_type = QMI_EOTI,
  4985. .array_type = NO_ARRAY,
  4986. .tlv_type = QMI_COMMON_TLV_TYPE,
  4987. },
  4988. };
  4989. struct qmi_elem_info ipa_remove_offload_connection_resp_msg_v01_ei[] = {
  4990. {
  4991. .data_type = QMI_OPT_FLAG,
  4992. .elem_len = 1,
  4993. .elem_size = sizeof(u8),
  4994. .array_type = NO_ARRAY,
  4995. .tlv_type = 0x02,
  4996. .offset = offsetof(
  4997. struct ipa_remove_offload_connection_resp_msg_v01,
  4998. resp_valid),
  4999. },
  5000. {
  5001. .data_type = QMI_STRUCT,
  5002. .elem_len = 1,
  5003. .elem_size = sizeof(struct qmi_response_type_v01),
  5004. .array_type = NO_ARRAY,
  5005. .tlv_type = 0x02,
  5006. .offset = offsetof(
  5007. struct ipa_remove_offload_connection_resp_msg_v01,
  5008. resp),
  5009. .ei_array = qmi_response_type_v01_ei,
  5010. },
  5011. {
  5012. .data_type = QMI_EOTI,
  5013. .array_type = NO_ARRAY,
  5014. .tlv_type = QMI_COMMON_TLV_TYPE,
  5015. },
  5016. };