wlan_firmware_service_v01.c 55 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090
  1. /* Copyright (c) 2015-2017, The Linux Foundation. All rights reserved.
  2. *
  3. * This program is free software; you can redistribute it and/or modify
  4. * it under the terms of the GNU General Public License version 2 and
  5. * only version 2 as published by the Free Software Foundation.
  6. *
  7. * This program is distributed in the hope that it will be useful,
  8. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. * GNU General Public License for more details.
  11. *
  12. */
  13. #include <linux/qmi_encdec.h>
  14. #include <soc/qcom/msm_qmi_interface.h>
  15. #include "wlan_firmware_service_v01.h"
  16. static struct elem_info wlfw_ce_tgt_pipe_cfg_s_v01_ei[] = {
  17. {
  18. .data_type = QMI_UNSIGNED_4_BYTE,
  19. .elem_len = 1,
  20. .elem_size = sizeof(uint32_t),
  21. .is_array = NO_ARRAY,
  22. .tlv_type = 0,
  23. .offset = offsetof(struct wlfw_ce_tgt_pipe_cfg_s_v01,
  24. pipe_num),
  25. },
  26. {
  27. .data_type = QMI_SIGNED_4_BYTE_ENUM,
  28. .elem_len = 1,
  29. .elem_size = sizeof(enum wlfw_pipedir_enum_v01),
  30. .is_array = NO_ARRAY,
  31. .tlv_type = 0,
  32. .offset = offsetof(struct wlfw_ce_tgt_pipe_cfg_s_v01,
  33. pipe_dir),
  34. },
  35. {
  36. .data_type = QMI_UNSIGNED_4_BYTE,
  37. .elem_len = 1,
  38. .elem_size = sizeof(uint32_t),
  39. .is_array = NO_ARRAY,
  40. .tlv_type = 0,
  41. .offset = offsetof(struct wlfw_ce_tgt_pipe_cfg_s_v01,
  42. nentries),
  43. },
  44. {
  45. .data_type = QMI_UNSIGNED_4_BYTE,
  46. .elem_len = 1,
  47. .elem_size = sizeof(uint32_t),
  48. .is_array = NO_ARRAY,
  49. .tlv_type = 0,
  50. .offset = offsetof(struct wlfw_ce_tgt_pipe_cfg_s_v01,
  51. nbytes_max),
  52. },
  53. {
  54. .data_type = QMI_UNSIGNED_4_BYTE,
  55. .elem_len = 1,
  56. .elem_size = sizeof(uint32_t),
  57. .is_array = NO_ARRAY,
  58. .tlv_type = 0,
  59. .offset = offsetof(struct wlfw_ce_tgt_pipe_cfg_s_v01,
  60. flags),
  61. },
  62. {
  63. .data_type = QMI_EOTI,
  64. .is_array = NO_ARRAY,
  65. .is_array = QMI_COMMON_TLV_TYPE,
  66. },
  67. };
  68. static struct elem_info wlfw_ce_svc_pipe_cfg_s_v01_ei[] = {
  69. {
  70. .data_type = QMI_UNSIGNED_4_BYTE,
  71. .elem_len = 1,
  72. .elem_size = sizeof(uint32_t),
  73. .is_array = NO_ARRAY,
  74. .tlv_type = 0,
  75. .offset = offsetof(struct wlfw_ce_svc_pipe_cfg_s_v01,
  76. service_id),
  77. },
  78. {
  79. .data_type = QMI_SIGNED_4_BYTE_ENUM,
  80. .elem_len = 1,
  81. .elem_size = sizeof(enum wlfw_pipedir_enum_v01),
  82. .is_array = NO_ARRAY,
  83. .tlv_type = 0,
  84. .offset = offsetof(struct wlfw_ce_svc_pipe_cfg_s_v01,
  85. pipe_dir),
  86. },
  87. {
  88. .data_type = QMI_UNSIGNED_4_BYTE,
  89. .elem_len = 1,
  90. .elem_size = sizeof(uint32_t),
  91. .is_array = NO_ARRAY,
  92. .tlv_type = 0,
  93. .offset = offsetof(struct wlfw_ce_svc_pipe_cfg_s_v01,
  94. pipe_num),
  95. },
  96. {
  97. .data_type = QMI_EOTI,
  98. .is_array = NO_ARRAY,
  99. .is_array = QMI_COMMON_TLV_TYPE,
  100. },
  101. };
  102. static struct elem_info wlfw_shadow_reg_cfg_s_v01_ei[] = {
  103. {
  104. .data_type = QMI_UNSIGNED_2_BYTE,
  105. .elem_len = 1,
  106. .elem_size = sizeof(uint16_t),
  107. .is_array = NO_ARRAY,
  108. .tlv_type = 0,
  109. .offset = offsetof(struct wlfw_shadow_reg_cfg_s_v01,
  110. id),
  111. },
  112. {
  113. .data_type = QMI_UNSIGNED_2_BYTE,
  114. .elem_len = 1,
  115. .elem_size = sizeof(uint16_t),
  116. .is_array = NO_ARRAY,
  117. .tlv_type = 0,
  118. .offset = offsetof(struct wlfw_shadow_reg_cfg_s_v01,
  119. offset),
  120. },
  121. {
  122. .data_type = QMI_EOTI,
  123. .is_array = NO_ARRAY,
  124. .is_array = QMI_COMMON_TLV_TYPE,
  125. },
  126. };
  127. static struct elem_info wlfw_shadow_reg_v2_cfg_s_v01_ei[] = {
  128. {
  129. .data_type = QMI_UNSIGNED_4_BYTE,
  130. .elem_len = 1,
  131. .elem_size = sizeof(uint32_t),
  132. .is_array = NO_ARRAY,
  133. .tlv_type = 0,
  134. .offset = offsetof(struct wlfw_shadow_reg_v2_cfg_s_v01,
  135. addr),
  136. },
  137. {
  138. .data_type = QMI_EOTI,
  139. .is_array = NO_ARRAY,
  140. .is_array = QMI_COMMON_TLV_TYPE,
  141. },
  142. };
  143. static struct elem_info wlfw_memory_region_info_s_v01_ei[] = {
  144. {
  145. .data_type = QMI_UNSIGNED_8_BYTE,
  146. .elem_len = 1,
  147. .elem_size = sizeof(uint64_t),
  148. .is_array = NO_ARRAY,
  149. .tlv_type = 0,
  150. .offset = offsetof(struct wlfw_memory_region_info_s_v01,
  151. region_addr),
  152. },
  153. {
  154. .data_type = QMI_UNSIGNED_4_BYTE,
  155. .elem_len = 1,
  156. .elem_size = sizeof(uint32_t),
  157. .is_array = NO_ARRAY,
  158. .tlv_type = 0,
  159. .offset = offsetof(struct wlfw_memory_region_info_s_v01,
  160. size),
  161. },
  162. {
  163. .data_type = QMI_UNSIGNED_1_BYTE,
  164. .elem_len = 1,
  165. .elem_size = sizeof(uint8_t),
  166. .is_array = NO_ARRAY,
  167. .tlv_type = 0,
  168. .offset = offsetof(struct wlfw_memory_region_info_s_v01,
  169. secure_flag),
  170. },
  171. {
  172. .data_type = QMI_EOTI,
  173. .is_array = NO_ARRAY,
  174. .is_array = QMI_COMMON_TLV_TYPE,
  175. },
  176. };
  177. static struct elem_info wlfw_rf_chip_info_s_v01_ei[] = {
  178. {
  179. .data_type = QMI_UNSIGNED_4_BYTE,
  180. .elem_len = 1,
  181. .elem_size = sizeof(uint32_t),
  182. .is_array = NO_ARRAY,
  183. .tlv_type = 0,
  184. .offset = offsetof(struct wlfw_rf_chip_info_s_v01,
  185. chip_id),
  186. },
  187. {
  188. .data_type = QMI_UNSIGNED_4_BYTE,
  189. .elem_len = 1,
  190. .elem_size = sizeof(uint32_t),
  191. .is_array = NO_ARRAY,
  192. .tlv_type = 0,
  193. .offset = offsetof(struct wlfw_rf_chip_info_s_v01,
  194. chip_family),
  195. },
  196. {
  197. .data_type = QMI_EOTI,
  198. .is_array = NO_ARRAY,
  199. .is_array = QMI_COMMON_TLV_TYPE,
  200. },
  201. };
  202. static struct elem_info wlfw_rf_board_info_s_v01_ei[] = {
  203. {
  204. .data_type = QMI_UNSIGNED_4_BYTE,
  205. .elem_len = 1,
  206. .elem_size = sizeof(uint32_t),
  207. .is_array = NO_ARRAY,
  208. .tlv_type = 0,
  209. .offset = offsetof(struct wlfw_rf_board_info_s_v01,
  210. board_id),
  211. },
  212. {
  213. .data_type = QMI_EOTI,
  214. .is_array = NO_ARRAY,
  215. .is_array = QMI_COMMON_TLV_TYPE,
  216. },
  217. };
  218. static struct elem_info wlfw_soc_info_s_v01_ei[] = {
  219. {
  220. .data_type = QMI_UNSIGNED_4_BYTE,
  221. .elem_len = 1,
  222. .elem_size = sizeof(uint32_t),
  223. .is_array = NO_ARRAY,
  224. .tlv_type = 0,
  225. .offset = offsetof(struct wlfw_soc_info_s_v01,
  226. soc_id),
  227. },
  228. {
  229. .data_type = QMI_EOTI,
  230. .is_array = NO_ARRAY,
  231. .is_array = QMI_COMMON_TLV_TYPE,
  232. },
  233. };
  234. static struct elem_info wlfw_fw_version_info_s_v01_ei[] = {
  235. {
  236. .data_type = QMI_UNSIGNED_4_BYTE,
  237. .elem_len = 1,
  238. .elem_size = sizeof(uint32_t),
  239. .is_array = NO_ARRAY,
  240. .tlv_type = 0,
  241. .offset = offsetof(struct wlfw_fw_version_info_s_v01,
  242. fw_version),
  243. },
  244. {
  245. .data_type = QMI_STRING,
  246. .elem_len = QMI_WLFW_MAX_TIMESTAMP_LEN_V01 + 1,
  247. .elem_size = sizeof(char),
  248. .is_array = NO_ARRAY,
  249. .tlv_type = 0,
  250. .offset = offsetof(struct wlfw_fw_version_info_s_v01,
  251. fw_build_timestamp),
  252. },
  253. {
  254. .data_type = QMI_EOTI,
  255. .is_array = NO_ARRAY,
  256. .is_array = QMI_COMMON_TLV_TYPE,
  257. },
  258. };
  259. struct elem_info wlfw_ind_register_req_msg_v01_ei[] = {
  260. {
  261. .data_type = QMI_OPT_FLAG,
  262. .elem_len = 1,
  263. .elem_size = sizeof(uint8_t),
  264. .is_array = NO_ARRAY,
  265. .tlv_type = 0x10,
  266. .offset = offsetof(struct wlfw_ind_register_req_msg_v01,
  267. fw_ready_enable_valid),
  268. },
  269. {
  270. .data_type = QMI_UNSIGNED_1_BYTE,
  271. .elem_len = 1,
  272. .elem_size = sizeof(uint8_t),
  273. .is_array = NO_ARRAY,
  274. .tlv_type = 0x10,
  275. .offset = offsetof(struct wlfw_ind_register_req_msg_v01,
  276. fw_ready_enable),
  277. },
  278. {
  279. .data_type = QMI_OPT_FLAG,
  280. .elem_len = 1,
  281. .elem_size = sizeof(uint8_t),
  282. .is_array = NO_ARRAY,
  283. .tlv_type = 0x11,
  284. .offset = offsetof(struct wlfw_ind_register_req_msg_v01,
  285. initiate_cal_download_enable_valid),
  286. },
  287. {
  288. .data_type = QMI_UNSIGNED_1_BYTE,
  289. .elem_len = 1,
  290. .elem_size = sizeof(uint8_t),
  291. .is_array = NO_ARRAY,
  292. .tlv_type = 0x11,
  293. .offset = offsetof(struct wlfw_ind_register_req_msg_v01,
  294. initiate_cal_download_enable),
  295. },
  296. {
  297. .data_type = QMI_OPT_FLAG,
  298. .elem_len = 1,
  299. .elem_size = sizeof(uint8_t),
  300. .is_array = NO_ARRAY,
  301. .tlv_type = 0x12,
  302. .offset = offsetof(struct wlfw_ind_register_req_msg_v01,
  303. initiate_cal_update_enable_valid),
  304. },
  305. {
  306. .data_type = QMI_UNSIGNED_1_BYTE,
  307. .elem_len = 1,
  308. .elem_size = sizeof(uint8_t),
  309. .is_array = NO_ARRAY,
  310. .tlv_type = 0x12,
  311. .offset = offsetof(struct wlfw_ind_register_req_msg_v01,
  312. initiate_cal_update_enable),
  313. },
  314. {
  315. .data_type = QMI_OPT_FLAG,
  316. .elem_len = 1,
  317. .elem_size = sizeof(uint8_t),
  318. .is_array = NO_ARRAY,
  319. .tlv_type = 0x13,
  320. .offset = offsetof(struct wlfw_ind_register_req_msg_v01,
  321. msa_ready_enable_valid),
  322. },
  323. {
  324. .data_type = QMI_UNSIGNED_1_BYTE,
  325. .elem_len = 1,
  326. .elem_size = sizeof(uint8_t),
  327. .is_array = NO_ARRAY,
  328. .tlv_type = 0x13,
  329. .offset = offsetof(struct wlfw_ind_register_req_msg_v01,
  330. msa_ready_enable),
  331. },
  332. {
  333. .data_type = QMI_OPT_FLAG,
  334. .elem_len = 1,
  335. .elem_size = sizeof(uint8_t),
  336. .is_array = NO_ARRAY,
  337. .tlv_type = 0x14,
  338. .offset = offsetof(struct wlfw_ind_register_req_msg_v01,
  339. pin_connect_result_enable_valid),
  340. },
  341. {
  342. .data_type = QMI_UNSIGNED_1_BYTE,
  343. .elem_len = 1,
  344. .elem_size = sizeof(uint8_t),
  345. .is_array = NO_ARRAY,
  346. .tlv_type = 0x14,
  347. .offset = offsetof(struct wlfw_ind_register_req_msg_v01,
  348. pin_connect_result_enable),
  349. },
  350. {
  351. .data_type = QMI_OPT_FLAG,
  352. .elem_len = 1,
  353. .elem_size = sizeof(uint8_t),
  354. .is_array = NO_ARRAY,
  355. .tlv_type = 0x15,
  356. .offset = offsetof(struct wlfw_ind_register_req_msg_v01,
  357. client_id_valid),
  358. },
  359. {
  360. .data_type = QMI_UNSIGNED_4_BYTE,
  361. .elem_len = 1,
  362. .elem_size = sizeof(uint32_t),
  363. .is_array = NO_ARRAY,
  364. .tlv_type = 0x15,
  365. .offset = offsetof(struct wlfw_ind_register_req_msg_v01,
  366. client_id),
  367. },
  368. {
  369. .data_type = QMI_OPT_FLAG,
  370. .elem_len = 1,
  371. .elem_size = sizeof(uint8_t),
  372. .is_array = NO_ARRAY,
  373. .tlv_type = 0x16,
  374. .offset = offsetof(struct wlfw_ind_register_req_msg_v01,
  375. request_mem_enable_valid),
  376. },
  377. {
  378. .data_type = QMI_UNSIGNED_1_BYTE,
  379. .elem_len = 1,
  380. .elem_size = sizeof(uint8_t),
  381. .is_array = NO_ARRAY,
  382. .tlv_type = 0x16,
  383. .offset = offsetof(struct wlfw_ind_register_req_msg_v01,
  384. request_mem_enable),
  385. },
  386. {
  387. .data_type = QMI_OPT_FLAG,
  388. .elem_len = 1,
  389. .elem_size = sizeof(uint8_t),
  390. .is_array = NO_ARRAY,
  391. .tlv_type = 0x17,
  392. .offset = offsetof(struct wlfw_ind_register_req_msg_v01,
  393. fw_mem_ready_enable_valid),
  394. },
  395. {
  396. .data_type = QMI_UNSIGNED_1_BYTE,
  397. .elem_len = 1,
  398. .elem_size = sizeof(uint8_t),
  399. .is_array = NO_ARRAY,
  400. .tlv_type = 0x17,
  401. .offset = offsetof(struct wlfw_ind_register_req_msg_v01,
  402. fw_mem_ready_enable),
  403. },
  404. {
  405. .data_type = QMI_OPT_FLAG,
  406. .elem_len = 1,
  407. .elem_size = sizeof(uint8_t),
  408. .is_array = NO_ARRAY,
  409. .tlv_type = 0x18,
  410. .offset = offsetof(struct wlfw_ind_register_req_msg_v01,
  411. cold_boot_cal_done_enable_valid),
  412. },
  413. {
  414. .data_type = QMI_UNSIGNED_1_BYTE,
  415. .elem_len = 1,
  416. .elem_size = sizeof(uint8_t),
  417. .is_array = NO_ARRAY,
  418. .tlv_type = 0x18,
  419. .offset = offsetof(struct wlfw_ind_register_req_msg_v01,
  420. cold_boot_cal_done_enable),
  421. },
  422. {
  423. .data_type = QMI_OPT_FLAG,
  424. .elem_len = 1,
  425. .elem_size = sizeof(uint8_t),
  426. .is_array = NO_ARRAY,
  427. .tlv_type = 0x19,
  428. .offset = offsetof(struct wlfw_ind_register_req_msg_v01,
  429. rejuvenate_enable_valid),
  430. },
  431. {
  432. .data_type = QMI_UNSIGNED_4_BYTE,
  433. .elem_len = 1,
  434. .elem_size = sizeof(uint32_t),
  435. .is_array = NO_ARRAY,
  436. .tlv_type = 0x19,
  437. .offset = offsetof(struct wlfw_ind_register_req_msg_v01,
  438. rejuvenate_enable),
  439. },
  440. {
  441. .data_type = QMI_EOTI,
  442. .is_array = NO_ARRAY,
  443. .is_array = QMI_COMMON_TLV_TYPE,
  444. },
  445. };
  446. struct elem_info wlfw_ind_register_resp_msg_v01_ei[] = {
  447. {
  448. .data_type = QMI_STRUCT,
  449. .elem_len = 1,
  450. .elem_size = sizeof(struct qmi_response_type_v01),
  451. .is_array = NO_ARRAY,
  452. .tlv_type = 0x02,
  453. .offset = offsetof(
  454. struct wlfw_ind_register_resp_msg_v01,
  455. resp),
  456. .ei_array = get_qmi_response_type_v01_ei(),
  457. },
  458. {
  459. .data_type = QMI_OPT_FLAG,
  460. .elem_len = 1,
  461. .elem_size = sizeof(uint8_t),
  462. .is_array = NO_ARRAY,
  463. .tlv_type = 0x10,
  464. .offset = offsetof(
  465. struct wlfw_ind_register_resp_msg_v01,
  466. fw_status_valid),
  467. },
  468. {
  469. .data_type = QMI_UNSIGNED_8_BYTE,
  470. .elem_len = 1,
  471. .elem_size = sizeof(uint64_t),
  472. .is_array = NO_ARRAY,
  473. .tlv_type = 0x10,
  474. .offset = offsetof(
  475. struct wlfw_ind_register_resp_msg_v01,
  476. fw_status),
  477. },
  478. {
  479. .data_type = QMI_EOTI,
  480. .is_array = NO_ARRAY,
  481. .is_array = QMI_COMMON_TLV_TYPE,
  482. },
  483. };
  484. struct elem_info wlfw_fw_ready_ind_msg_v01_ei[] = {
  485. {
  486. .data_type = QMI_EOTI,
  487. .is_array = NO_ARRAY,
  488. .is_array = QMI_COMMON_TLV_TYPE,
  489. },
  490. };
  491. struct elem_info wlfw_msa_ready_ind_msg_v01_ei[] = {
  492. {
  493. .data_type = QMI_EOTI,
  494. .is_array = NO_ARRAY,
  495. .is_array = QMI_COMMON_TLV_TYPE,
  496. },
  497. };
  498. struct elem_info wlfw_pin_connect_result_ind_msg_v01_ei[] = {
  499. {
  500. .data_type = QMI_OPT_FLAG,
  501. .elem_len = 1,
  502. .elem_size = sizeof(uint8_t),
  503. .is_array = NO_ARRAY,
  504. .tlv_type = 0x10,
  505. .offset = offsetof(
  506. struct wlfw_pin_connect_result_ind_msg_v01,
  507. pwr_pin_result_valid),
  508. },
  509. {
  510. .data_type = QMI_UNSIGNED_4_BYTE,
  511. .elem_len = 1,
  512. .elem_size = sizeof(uint32_t),
  513. .is_array = NO_ARRAY,
  514. .tlv_type = 0x10,
  515. .offset = offsetof(
  516. struct wlfw_pin_connect_result_ind_msg_v01,
  517. pwr_pin_result),
  518. },
  519. {
  520. .data_type = QMI_OPT_FLAG,
  521. .elem_len = 1,
  522. .elem_size = sizeof(uint8_t),
  523. .is_array = NO_ARRAY,
  524. .tlv_type = 0x11,
  525. .offset = offsetof(
  526. struct wlfw_pin_connect_result_ind_msg_v01,
  527. phy_io_pin_result_valid),
  528. },
  529. {
  530. .data_type = QMI_UNSIGNED_4_BYTE,
  531. .elem_len = 1,
  532. .elem_size = sizeof(uint32_t),
  533. .is_array = NO_ARRAY,
  534. .tlv_type = 0x11,
  535. .offset = offsetof(
  536. struct wlfw_pin_connect_result_ind_msg_v01,
  537. phy_io_pin_result),
  538. },
  539. {
  540. .data_type = QMI_OPT_FLAG,
  541. .elem_len = 1,
  542. .elem_size = sizeof(uint8_t),
  543. .is_array = NO_ARRAY,
  544. .tlv_type = 0x12,
  545. .offset = offsetof(
  546. struct wlfw_pin_connect_result_ind_msg_v01,
  547. rf_pin_result_valid),
  548. },
  549. {
  550. .data_type = QMI_UNSIGNED_4_BYTE,
  551. .elem_len = 1,
  552. .elem_size = sizeof(uint32_t),
  553. .is_array = NO_ARRAY,
  554. .tlv_type = 0x12,
  555. .offset = offsetof(
  556. struct wlfw_pin_connect_result_ind_msg_v01,
  557. rf_pin_result),
  558. },
  559. {
  560. .data_type = QMI_EOTI,
  561. .is_array = NO_ARRAY,
  562. .is_array = QMI_COMMON_TLV_TYPE,
  563. },
  564. };
  565. struct elem_info wlfw_wlan_mode_req_msg_v01_ei[] = {
  566. {
  567. .data_type = QMI_SIGNED_4_BYTE_ENUM,
  568. .elem_len = 1,
  569. .elem_size = sizeof(enum wlfw_driver_mode_enum_v01),
  570. .is_array = NO_ARRAY,
  571. .tlv_type = 0x01,
  572. .offset = offsetof(struct wlfw_wlan_mode_req_msg_v01,
  573. mode),
  574. },
  575. {
  576. .data_type = QMI_OPT_FLAG,
  577. .elem_len = 1,
  578. .elem_size = sizeof(uint8_t),
  579. .is_array = NO_ARRAY,
  580. .tlv_type = 0x10,
  581. .offset = offsetof(struct wlfw_wlan_mode_req_msg_v01,
  582. hw_debug_valid),
  583. },
  584. {
  585. .data_type = QMI_UNSIGNED_1_BYTE,
  586. .elem_len = 1,
  587. .elem_size = sizeof(uint8_t),
  588. .is_array = NO_ARRAY,
  589. .tlv_type = 0x10,
  590. .offset = offsetof(struct wlfw_wlan_mode_req_msg_v01,
  591. hw_debug),
  592. },
  593. {
  594. .data_type = QMI_EOTI,
  595. .is_array = NO_ARRAY,
  596. .is_array = QMI_COMMON_TLV_TYPE,
  597. },
  598. };
  599. struct elem_info wlfw_wlan_mode_resp_msg_v01_ei[] = {
  600. {
  601. .data_type = QMI_STRUCT,
  602. .elem_len = 1,
  603. .elem_size = sizeof(struct qmi_response_type_v01),
  604. .is_array = NO_ARRAY,
  605. .tlv_type = 0x02,
  606. .offset = offsetof(struct wlfw_wlan_mode_resp_msg_v01,
  607. resp),
  608. .ei_array = get_qmi_response_type_v01_ei(),
  609. },
  610. {
  611. .data_type = QMI_EOTI,
  612. .is_array = NO_ARRAY,
  613. .is_array = QMI_COMMON_TLV_TYPE,
  614. },
  615. };
  616. struct elem_info wlfw_wlan_cfg_req_msg_v01_ei[] = {
  617. {
  618. .data_type = QMI_OPT_FLAG,
  619. .elem_len = 1,
  620. .elem_size = sizeof(uint8_t),
  621. .is_array = NO_ARRAY,
  622. .tlv_type = 0x10,
  623. .offset = offsetof(struct wlfw_wlan_cfg_req_msg_v01,
  624. host_version_valid),
  625. },
  626. {
  627. .data_type = QMI_STRING,
  628. .elem_len = QMI_WLFW_MAX_STR_LEN_V01 + 1,
  629. .elem_size = sizeof(char),
  630. .is_array = NO_ARRAY,
  631. .tlv_type = 0x10,
  632. .offset = offsetof(struct wlfw_wlan_cfg_req_msg_v01,
  633. host_version),
  634. },
  635. {
  636. .data_type = QMI_OPT_FLAG,
  637. .elem_len = 1,
  638. .elem_size = sizeof(uint8_t),
  639. .is_array = NO_ARRAY,
  640. .tlv_type = 0x11,
  641. .offset = offsetof(struct wlfw_wlan_cfg_req_msg_v01,
  642. tgt_cfg_valid),
  643. },
  644. {
  645. .data_type = QMI_DATA_LEN,
  646. .elem_len = 1,
  647. .elem_size = sizeof(uint8_t),
  648. .is_array = NO_ARRAY,
  649. .tlv_type = 0x11,
  650. .offset = offsetof(struct wlfw_wlan_cfg_req_msg_v01,
  651. tgt_cfg_len),
  652. },
  653. {
  654. .data_type = QMI_STRUCT,
  655. .elem_len = QMI_WLFW_MAX_NUM_CE_V01,
  656. .elem_size = sizeof(struct wlfw_ce_tgt_pipe_cfg_s_v01),
  657. .is_array = VAR_LEN_ARRAY,
  658. .tlv_type = 0x11,
  659. .offset = offsetof(struct wlfw_wlan_cfg_req_msg_v01,
  660. tgt_cfg),
  661. .ei_array = wlfw_ce_tgt_pipe_cfg_s_v01_ei,
  662. },
  663. {
  664. .data_type = QMI_OPT_FLAG,
  665. .elem_len = 1,
  666. .elem_size = sizeof(uint8_t),
  667. .is_array = NO_ARRAY,
  668. .tlv_type = 0x12,
  669. .offset = offsetof(struct wlfw_wlan_cfg_req_msg_v01,
  670. svc_cfg_valid),
  671. },
  672. {
  673. .data_type = QMI_DATA_LEN,
  674. .elem_len = 1,
  675. .elem_size = sizeof(uint8_t),
  676. .is_array = NO_ARRAY,
  677. .tlv_type = 0x12,
  678. .offset = offsetof(struct wlfw_wlan_cfg_req_msg_v01,
  679. svc_cfg_len),
  680. },
  681. {
  682. .data_type = QMI_STRUCT,
  683. .elem_len = QMI_WLFW_MAX_NUM_SVC_V01,
  684. .elem_size = sizeof(struct wlfw_ce_svc_pipe_cfg_s_v01),
  685. .is_array = VAR_LEN_ARRAY,
  686. .tlv_type = 0x12,
  687. .offset = offsetof(struct wlfw_wlan_cfg_req_msg_v01,
  688. svc_cfg),
  689. .ei_array = wlfw_ce_svc_pipe_cfg_s_v01_ei,
  690. },
  691. {
  692. .data_type = QMI_OPT_FLAG,
  693. .elem_len = 1,
  694. .elem_size = sizeof(uint8_t),
  695. .is_array = NO_ARRAY,
  696. .tlv_type = 0x13,
  697. .offset = offsetof(struct wlfw_wlan_cfg_req_msg_v01,
  698. shadow_reg_valid),
  699. },
  700. {
  701. .data_type = QMI_DATA_LEN,
  702. .elem_len = 1,
  703. .elem_size = sizeof(uint8_t),
  704. .is_array = NO_ARRAY,
  705. .tlv_type = 0x13,
  706. .offset = offsetof(struct wlfw_wlan_cfg_req_msg_v01,
  707. shadow_reg_len),
  708. },
  709. {
  710. .data_type = QMI_STRUCT,
  711. .elem_len = QMI_WLFW_MAX_NUM_SHADOW_REG_V01,
  712. .elem_size = sizeof(struct wlfw_shadow_reg_cfg_s_v01),
  713. .is_array = VAR_LEN_ARRAY,
  714. .tlv_type = 0x13,
  715. .offset = offsetof(struct wlfw_wlan_cfg_req_msg_v01,
  716. shadow_reg),
  717. .ei_array = wlfw_shadow_reg_cfg_s_v01_ei,
  718. },
  719. {
  720. .data_type = QMI_OPT_FLAG,
  721. .elem_len = 1,
  722. .elem_size = sizeof(uint8_t),
  723. .is_array = NO_ARRAY,
  724. .tlv_type = 0x14,
  725. .offset = offsetof(struct wlfw_wlan_cfg_req_msg_v01,
  726. shadow_reg_v2_valid),
  727. },
  728. {
  729. .data_type = QMI_DATA_LEN,
  730. .elem_len = 1,
  731. .elem_size = sizeof(uint8_t),
  732. .is_array = NO_ARRAY,
  733. .tlv_type = 0x14,
  734. .offset = offsetof(struct wlfw_wlan_cfg_req_msg_v01,
  735. shadow_reg_v2_len),
  736. },
  737. {
  738. .data_type = QMI_STRUCT,
  739. .elem_len = QMI_WLFW_MAX_NUM_SHADOW_REG_V2_V01,
  740. .elem_size = sizeof(struct wlfw_shadow_reg_v2_cfg_s_v01),
  741. .is_array = VAR_LEN_ARRAY,
  742. .tlv_type = 0x14,
  743. .offset = offsetof(struct wlfw_wlan_cfg_req_msg_v01,
  744. shadow_reg_v2),
  745. .ei_array = wlfw_shadow_reg_v2_cfg_s_v01_ei,
  746. },
  747. {
  748. .data_type = QMI_EOTI,
  749. .is_array = NO_ARRAY,
  750. .is_array = QMI_COMMON_TLV_TYPE,
  751. },
  752. };
  753. struct elem_info wlfw_wlan_cfg_resp_msg_v01_ei[] = {
  754. {
  755. .data_type = QMI_STRUCT,
  756. .elem_len = 1,
  757. .elem_size = sizeof(struct qmi_response_type_v01),
  758. .is_array = NO_ARRAY,
  759. .tlv_type = 0x02,
  760. .offset = offsetof(struct wlfw_wlan_cfg_resp_msg_v01,
  761. resp),
  762. .ei_array = get_qmi_response_type_v01_ei(),
  763. },
  764. {
  765. .data_type = QMI_EOTI,
  766. .is_array = NO_ARRAY,
  767. .is_array = QMI_COMMON_TLV_TYPE,
  768. },
  769. };
  770. struct elem_info wlfw_cap_req_msg_v01_ei[] = {
  771. {
  772. .data_type = QMI_EOTI,
  773. .is_array = NO_ARRAY,
  774. .is_array = QMI_COMMON_TLV_TYPE,
  775. },
  776. };
  777. struct elem_info wlfw_cap_resp_msg_v01_ei[] = {
  778. {
  779. .data_type = QMI_STRUCT,
  780. .elem_len = 1,
  781. .elem_size = sizeof(struct qmi_response_type_v01),
  782. .is_array = NO_ARRAY,
  783. .tlv_type = 0x02,
  784. .offset = offsetof(struct wlfw_cap_resp_msg_v01,
  785. resp),
  786. .ei_array = get_qmi_response_type_v01_ei(),
  787. },
  788. {
  789. .data_type = QMI_OPT_FLAG,
  790. .elem_len = 1,
  791. .elem_size = sizeof(uint8_t),
  792. .is_array = NO_ARRAY,
  793. .tlv_type = 0x10,
  794. .offset = offsetof(struct wlfw_cap_resp_msg_v01,
  795. chip_info_valid),
  796. },
  797. {
  798. .data_type = QMI_STRUCT,
  799. .elem_len = 1,
  800. .elem_size = sizeof(struct wlfw_rf_chip_info_s_v01),
  801. .is_array = NO_ARRAY,
  802. .tlv_type = 0x10,
  803. .offset = offsetof(struct wlfw_cap_resp_msg_v01,
  804. chip_info),
  805. .ei_array = wlfw_rf_chip_info_s_v01_ei,
  806. },
  807. {
  808. .data_type = QMI_OPT_FLAG,
  809. .elem_len = 1,
  810. .elem_size = sizeof(uint8_t),
  811. .is_array = NO_ARRAY,
  812. .tlv_type = 0x11,
  813. .offset = offsetof(struct wlfw_cap_resp_msg_v01,
  814. board_info_valid),
  815. },
  816. {
  817. .data_type = QMI_STRUCT,
  818. .elem_len = 1,
  819. .elem_size = sizeof(struct wlfw_rf_board_info_s_v01),
  820. .is_array = NO_ARRAY,
  821. .tlv_type = 0x11,
  822. .offset = offsetof(struct wlfw_cap_resp_msg_v01,
  823. board_info),
  824. .ei_array = wlfw_rf_board_info_s_v01_ei,
  825. },
  826. {
  827. .data_type = QMI_OPT_FLAG,
  828. .elem_len = 1,
  829. .elem_size = sizeof(uint8_t),
  830. .is_array = NO_ARRAY,
  831. .tlv_type = 0x12,
  832. .offset = offsetof(struct wlfw_cap_resp_msg_v01,
  833. soc_info_valid),
  834. },
  835. {
  836. .data_type = QMI_STRUCT,
  837. .elem_len = 1,
  838. .elem_size = sizeof(struct wlfw_soc_info_s_v01),
  839. .is_array = NO_ARRAY,
  840. .tlv_type = 0x12,
  841. .offset = offsetof(struct wlfw_cap_resp_msg_v01,
  842. soc_info),
  843. .ei_array = wlfw_soc_info_s_v01_ei,
  844. },
  845. {
  846. .data_type = QMI_OPT_FLAG,
  847. .elem_len = 1,
  848. .elem_size = sizeof(uint8_t),
  849. .is_array = NO_ARRAY,
  850. .tlv_type = 0x13,
  851. .offset = offsetof(struct wlfw_cap_resp_msg_v01,
  852. fw_version_info_valid),
  853. },
  854. {
  855. .data_type = QMI_STRUCT,
  856. .elem_len = 1,
  857. .elem_size = sizeof(struct wlfw_fw_version_info_s_v01),
  858. .is_array = NO_ARRAY,
  859. .tlv_type = 0x13,
  860. .offset = offsetof(struct wlfw_cap_resp_msg_v01,
  861. fw_version_info),
  862. .ei_array = wlfw_fw_version_info_s_v01_ei,
  863. },
  864. {
  865. .data_type = QMI_OPT_FLAG,
  866. .elem_len = 1,
  867. .elem_size = sizeof(uint8_t),
  868. .is_array = NO_ARRAY,
  869. .tlv_type = 0x14,
  870. .offset = offsetof(struct wlfw_cap_resp_msg_v01,
  871. fw_build_id_valid),
  872. },
  873. {
  874. .data_type = QMI_STRING,
  875. .elem_len = QMI_WLFW_MAX_BUILD_ID_LEN_V01 + 1,
  876. .elem_size = sizeof(char),
  877. .is_array = NO_ARRAY,
  878. .tlv_type = 0x14,
  879. .offset = offsetof(struct wlfw_cap_resp_msg_v01,
  880. fw_build_id),
  881. },
  882. {
  883. .data_type = QMI_EOTI,
  884. .is_array = NO_ARRAY,
  885. .is_array = QMI_COMMON_TLV_TYPE,
  886. },
  887. };
  888. struct elem_info wlfw_bdf_download_req_msg_v01_ei[] = {
  889. {
  890. .data_type = QMI_UNSIGNED_1_BYTE,
  891. .elem_len = 1,
  892. .elem_size = sizeof(uint8_t),
  893. .is_array = NO_ARRAY,
  894. .tlv_type = 0x01,
  895. .offset = offsetof(struct wlfw_bdf_download_req_msg_v01,
  896. valid),
  897. },
  898. {
  899. .data_type = QMI_OPT_FLAG,
  900. .elem_len = 1,
  901. .elem_size = sizeof(uint8_t),
  902. .is_array = NO_ARRAY,
  903. .tlv_type = 0x10,
  904. .offset = offsetof(struct wlfw_bdf_download_req_msg_v01,
  905. file_id_valid),
  906. },
  907. {
  908. .data_type = QMI_SIGNED_4_BYTE_ENUM,
  909. .elem_len = 1,
  910. .elem_size = sizeof(enum wlfw_cal_temp_id_enum_v01),
  911. .is_array = NO_ARRAY,
  912. .tlv_type = 0x10,
  913. .offset = offsetof(struct wlfw_bdf_download_req_msg_v01,
  914. file_id),
  915. },
  916. {
  917. .data_type = QMI_OPT_FLAG,
  918. .elem_len = 1,
  919. .elem_size = sizeof(uint8_t),
  920. .is_array = NO_ARRAY,
  921. .tlv_type = 0x11,
  922. .offset = offsetof(struct wlfw_bdf_download_req_msg_v01,
  923. total_size_valid),
  924. },
  925. {
  926. .data_type = QMI_UNSIGNED_4_BYTE,
  927. .elem_len = 1,
  928. .elem_size = sizeof(uint32_t),
  929. .is_array = NO_ARRAY,
  930. .tlv_type = 0x11,
  931. .offset = offsetof(struct wlfw_bdf_download_req_msg_v01,
  932. total_size),
  933. },
  934. {
  935. .data_type = QMI_OPT_FLAG,
  936. .elem_len = 1,
  937. .elem_size = sizeof(uint8_t),
  938. .is_array = NO_ARRAY,
  939. .tlv_type = 0x12,
  940. .offset = offsetof(struct wlfw_bdf_download_req_msg_v01,
  941. seg_id_valid),
  942. },
  943. {
  944. .data_type = QMI_UNSIGNED_4_BYTE,
  945. .elem_len = 1,
  946. .elem_size = sizeof(uint32_t),
  947. .is_array = NO_ARRAY,
  948. .tlv_type = 0x12,
  949. .offset = offsetof(struct wlfw_bdf_download_req_msg_v01,
  950. seg_id),
  951. },
  952. {
  953. .data_type = QMI_OPT_FLAG,
  954. .elem_len = 1,
  955. .elem_size = sizeof(uint8_t),
  956. .is_array = NO_ARRAY,
  957. .tlv_type = 0x13,
  958. .offset = offsetof(struct wlfw_bdf_download_req_msg_v01,
  959. data_valid),
  960. },
  961. {
  962. .data_type = QMI_DATA_LEN,
  963. .elem_len = 1,
  964. .elem_size = sizeof(uint16_t),
  965. .is_array = NO_ARRAY,
  966. .tlv_type = 0x13,
  967. .offset = offsetof(struct wlfw_bdf_download_req_msg_v01,
  968. data_len),
  969. },
  970. {
  971. .data_type = QMI_UNSIGNED_1_BYTE,
  972. .elem_len = QMI_WLFW_MAX_DATA_SIZE_V01,
  973. .elem_size = sizeof(uint8_t),
  974. .is_array = VAR_LEN_ARRAY,
  975. .tlv_type = 0x13,
  976. .offset = offsetof(struct wlfw_bdf_download_req_msg_v01,
  977. data),
  978. },
  979. {
  980. .data_type = QMI_OPT_FLAG,
  981. .elem_len = 1,
  982. .elem_size = sizeof(uint8_t),
  983. .is_array = NO_ARRAY,
  984. .tlv_type = 0x14,
  985. .offset = offsetof(struct wlfw_bdf_download_req_msg_v01,
  986. end_valid),
  987. },
  988. {
  989. .data_type = QMI_UNSIGNED_1_BYTE,
  990. .elem_len = 1,
  991. .elem_size = sizeof(uint8_t),
  992. .is_array = NO_ARRAY,
  993. .tlv_type = 0x14,
  994. .offset = offsetof(struct wlfw_bdf_download_req_msg_v01,
  995. end),
  996. },
  997. {
  998. .data_type = QMI_EOTI,
  999. .is_array = NO_ARRAY,
  1000. .is_array = QMI_COMMON_TLV_TYPE,
  1001. },
  1002. };
  1003. struct elem_info wlfw_bdf_download_resp_msg_v01_ei[] = {
  1004. {
  1005. .data_type = QMI_STRUCT,
  1006. .elem_len = 1,
  1007. .elem_size = sizeof(struct qmi_response_type_v01),
  1008. .is_array = NO_ARRAY,
  1009. .tlv_type = 0x02,
  1010. .offset = offsetof(
  1011. struct wlfw_bdf_download_resp_msg_v01,
  1012. resp),
  1013. .ei_array = get_qmi_response_type_v01_ei(),
  1014. },
  1015. {
  1016. .data_type = QMI_EOTI,
  1017. .is_array = NO_ARRAY,
  1018. .is_array = QMI_COMMON_TLV_TYPE,
  1019. },
  1020. };
  1021. struct elem_info wlfw_cal_report_req_msg_v01_ei[] = {
  1022. {
  1023. .data_type = QMI_DATA_LEN,
  1024. .elem_len = 1,
  1025. .elem_size = sizeof(uint8_t),
  1026. .is_array = NO_ARRAY,
  1027. .tlv_type = 0x01,
  1028. .offset = offsetof(struct wlfw_cal_report_req_msg_v01,
  1029. meta_data_len),
  1030. },
  1031. {
  1032. .data_type = QMI_SIGNED_4_BYTE_ENUM,
  1033. .elem_len = QMI_WLFW_MAX_NUM_CAL_V01,
  1034. .elem_size = sizeof(enum wlfw_cal_temp_id_enum_v01),
  1035. .is_array = VAR_LEN_ARRAY,
  1036. .tlv_type = 0x01,
  1037. .offset = offsetof(struct wlfw_cal_report_req_msg_v01,
  1038. meta_data),
  1039. },
  1040. {
  1041. .data_type = QMI_EOTI,
  1042. .is_array = NO_ARRAY,
  1043. .is_array = QMI_COMMON_TLV_TYPE,
  1044. },
  1045. };
  1046. struct elem_info wlfw_cal_report_resp_msg_v01_ei[] = {
  1047. {
  1048. .data_type = QMI_STRUCT,
  1049. .elem_len = 1,
  1050. .elem_size = sizeof(struct qmi_response_type_v01),
  1051. .is_array = NO_ARRAY,
  1052. .tlv_type = 0x02,
  1053. .offset = offsetof(struct wlfw_cal_report_resp_msg_v01,
  1054. resp),
  1055. .ei_array = get_qmi_response_type_v01_ei(),
  1056. },
  1057. {
  1058. .data_type = QMI_EOTI,
  1059. .is_array = NO_ARRAY,
  1060. .is_array = QMI_COMMON_TLV_TYPE,
  1061. },
  1062. };
  1063. struct elem_info wlfw_initiate_cal_download_ind_msg_v01_ei[] = {
  1064. {
  1065. .data_type = QMI_SIGNED_4_BYTE_ENUM,
  1066. .elem_len = 1,
  1067. .elem_size = sizeof(enum wlfw_cal_temp_id_enum_v01),
  1068. .is_array = NO_ARRAY,
  1069. .tlv_type = 0x01,
  1070. .offset = offsetof(
  1071. struct wlfw_initiate_cal_download_ind_msg_v01,
  1072. cal_id),
  1073. },
  1074. {
  1075. .data_type = QMI_EOTI,
  1076. .is_array = NO_ARRAY,
  1077. .is_array = QMI_COMMON_TLV_TYPE,
  1078. },
  1079. };
  1080. struct elem_info wlfw_cal_download_req_msg_v01_ei[] = {
  1081. {
  1082. .data_type = QMI_UNSIGNED_1_BYTE,
  1083. .elem_len = 1,
  1084. .elem_size = sizeof(uint8_t),
  1085. .is_array = NO_ARRAY,
  1086. .tlv_type = 0x01,
  1087. .offset = offsetof(struct wlfw_cal_download_req_msg_v01,
  1088. valid),
  1089. },
  1090. {
  1091. .data_type = QMI_OPT_FLAG,
  1092. .elem_len = 1,
  1093. .elem_size = sizeof(uint8_t),
  1094. .is_array = NO_ARRAY,
  1095. .tlv_type = 0x10,
  1096. .offset = offsetof(struct wlfw_cal_download_req_msg_v01,
  1097. file_id_valid),
  1098. },
  1099. {
  1100. .data_type = QMI_SIGNED_4_BYTE_ENUM,
  1101. .elem_len = 1,
  1102. .elem_size = sizeof(enum wlfw_cal_temp_id_enum_v01),
  1103. .is_array = NO_ARRAY,
  1104. .tlv_type = 0x10,
  1105. .offset = offsetof(struct wlfw_cal_download_req_msg_v01,
  1106. file_id),
  1107. },
  1108. {
  1109. .data_type = QMI_OPT_FLAG,
  1110. .elem_len = 1,
  1111. .elem_size = sizeof(uint8_t),
  1112. .is_array = NO_ARRAY,
  1113. .tlv_type = 0x11,
  1114. .offset = offsetof(struct wlfw_cal_download_req_msg_v01,
  1115. total_size_valid),
  1116. },
  1117. {
  1118. .data_type = QMI_UNSIGNED_4_BYTE,
  1119. .elem_len = 1,
  1120. .elem_size = sizeof(uint32_t),
  1121. .is_array = NO_ARRAY,
  1122. .tlv_type = 0x11,
  1123. .offset = offsetof(struct wlfw_cal_download_req_msg_v01,
  1124. total_size),
  1125. },
  1126. {
  1127. .data_type = QMI_OPT_FLAG,
  1128. .elem_len = 1,
  1129. .elem_size = sizeof(uint8_t),
  1130. .is_array = NO_ARRAY,
  1131. .tlv_type = 0x12,
  1132. .offset = offsetof(struct wlfw_cal_download_req_msg_v01,
  1133. seg_id_valid),
  1134. },
  1135. {
  1136. .data_type = QMI_UNSIGNED_4_BYTE,
  1137. .elem_len = 1,
  1138. .elem_size = sizeof(uint32_t),
  1139. .is_array = NO_ARRAY,
  1140. .tlv_type = 0x12,
  1141. .offset = offsetof(struct wlfw_cal_download_req_msg_v01,
  1142. seg_id),
  1143. },
  1144. {
  1145. .data_type = QMI_OPT_FLAG,
  1146. .elem_len = 1,
  1147. .elem_size = sizeof(uint8_t),
  1148. .is_array = NO_ARRAY,
  1149. .tlv_type = 0x13,
  1150. .offset = offsetof(struct wlfw_cal_download_req_msg_v01,
  1151. data_valid),
  1152. },
  1153. {
  1154. .data_type = QMI_DATA_LEN,
  1155. .elem_len = 1,
  1156. .elem_size = sizeof(uint16_t),
  1157. .is_array = NO_ARRAY,
  1158. .tlv_type = 0x13,
  1159. .offset = offsetof(struct wlfw_cal_download_req_msg_v01,
  1160. data_len),
  1161. },
  1162. {
  1163. .data_type = QMI_UNSIGNED_1_BYTE,
  1164. .elem_len = QMI_WLFW_MAX_DATA_SIZE_V01,
  1165. .elem_size = sizeof(uint8_t),
  1166. .is_array = VAR_LEN_ARRAY,
  1167. .tlv_type = 0x13,
  1168. .offset = offsetof(struct wlfw_cal_download_req_msg_v01,
  1169. data),
  1170. },
  1171. {
  1172. .data_type = QMI_OPT_FLAG,
  1173. .elem_len = 1,
  1174. .elem_size = sizeof(uint8_t),
  1175. .is_array = NO_ARRAY,
  1176. .tlv_type = 0x14,
  1177. .offset = offsetof(struct wlfw_cal_download_req_msg_v01,
  1178. end_valid),
  1179. },
  1180. {
  1181. .data_type = QMI_UNSIGNED_1_BYTE,
  1182. .elem_len = 1,
  1183. .elem_size = sizeof(uint8_t),
  1184. .is_array = NO_ARRAY,
  1185. .tlv_type = 0x14,
  1186. .offset = offsetof(struct wlfw_cal_download_req_msg_v01,
  1187. end),
  1188. },
  1189. {
  1190. .data_type = QMI_EOTI,
  1191. .is_array = NO_ARRAY,
  1192. .is_array = QMI_COMMON_TLV_TYPE,
  1193. },
  1194. };
  1195. struct elem_info wlfw_cal_download_resp_msg_v01_ei[] = {
  1196. {
  1197. .data_type = QMI_STRUCT,
  1198. .elem_len = 1,
  1199. .elem_size = sizeof(struct qmi_response_type_v01),
  1200. .is_array = NO_ARRAY,
  1201. .tlv_type = 0x02,
  1202. .offset = offsetof(
  1203. struct wlfw_cal_download_resp_msg_v01,
  1204. resp),
  1205. .ei_array = get_qmi_response_type_v01_ei(),
  1206. },
  1207. {
  1208. .data_type = QMI_EOTI,
  1209. .is_array = NO_ARRAY,
  1210. .is_array = QMI_COMMON_TLV_TYPE,
  1211. },
  1212. };
  1213. struct elem_info wlfw_initiate_cal_update_ind_msg_v01_ei[] = {
  1214. {
  1215. .data_type = QMI_SIGNED_4_BYTE_ENUM,
  1216. .elem_len = 1,
  1217. .elem_size = sizeof(enum wlfw_cal_temp_id_enum_v01),
  1218. .is_array = NO_ARRAY,
  1219. .tlv_type = 0x01,
  1220. .offset = offsetof(
  1221. struct wlfw_initiate_cal_update_ind_msg_v01,
  1222. cal_id),
  1223. },
  1224. {
  1225. .data_type = QMI_UNSIGNED_4_BYTE,
  1226. .elem_len = 1,
  1227. .elem_size = sizeof(uint32_t),
  1228. .is_array = NO_ARRAY,
  1229. .tlv_type = 0x02,
  1230. .offset = offsetof(
  1231. struct wlfw_initiate_cal_update_ind_msg_v01,
  1232. total_size),
  1233. },
  1234. {
  1235. .data_type = QMI_EOTI,
  1236. .is_array = NO_ARRAY,
  1237. .is_array = QMI_COMMON_TLV_TYPE,
  1238. },
  1239. };
  1240. struct elem_info wlfw_cal_update_req_msg_v01_ei[] = {
  1241. {
  1242. .data_type = QMI_SIGNED_4_BYTE_ENUM,
  1243. .elem_len = 1,
  1244. .elem_size = sizeof(enum wlfw_cal_temp_id_enum_v01),
  1245. .is_array = NO_ARRAY,
  1246. .tlv_type = 0x01,
  1247. .offset = offsetof(struct wlfw_cal_update_req_msg_v01,
  1248. cal_id),
  1249. },
  1250. {
  1251. .data_type = QMI_UNSIGNED_4_BYTE,
  1252. .elem_len = 1,
  1253. .elem_size = sizeof(uint32_t),
  1254. .is_array = NO_ARRAY,
  1255. .tlv_type = 0x02,
  1256. .offset = offsetof(struct wlfw_cal_update_req_msg_v01,
  1257. seg_id),
  1258. },
  1259. {
  1260. .data_type = QMI_EOTI,
  1261. .is_array = NO_ARRAY,
  1262. .is_array = QMI_COMMON_TLV_TYPE,
  1263. },
  1264. };
  1265. struct elem_info wlfw_cal_update_resp_msg_v01_ei[] = {
  1266. {
  1267. .data_type = QMI_STRUCT,
  1268. .elem_len = 1,
  1269. .elem_size = sizeof(struct qmi_response_type_v01),
  1270. .is_array = NO_ARRAY,
  1271. .tlv_type = 0x02,
  1272. .offset = offsetof(struct wlfw_cal_update_resp_msg_v01,
  1273. resp),
  1274. .ei_array = get_qmi_response_type_v01_ei(),
  1275. },
  1276. {
  1277. .data_type = QMI_OPT_FLAG,
  1278. .elem_len = 1,
  1279. .elem_size = sizeof(uint8_t),
  1280. .is_array = NO_ARRAY,
  1281. .tlv_type = 0x10,
  1282. .offset = offsetof(struct wlfw_cal_update_resp_msg_v01,
  1283. file_id_valid),
  1284. },
  1285. {
  1286. .data_type = QMI_SIGNED_4_BYTE_ENUM,
  1287. .elem_len = 1,
  1288. .elem_size = sizeof(enum wlfw_cal_temp_id_enum_v01),
  1289. .is_array = NO_ARRAY,
  1290. .tlv_type = 0x10,
  1291. .offset = offsetof(struct wlfw_cal_update_resp_msg_v01,
  1292. file_id),
  1293. },
  1294. {
  1295. .data_type = QMI_OPT_FLAG,
  1296. .elem_len = 1,
  1297. .elem_size = sizeof(uint8_t),
  1298. .is_array = NO_ARRAY,
  1299. .tlv_type = 0x11,
  1300. .offset = offsetof(struct wlfw_cal_update_resp_msg_v01,
  1301. total_size_valid),
  1302. },
  1303. {
  1304. .data_type = QMI_UNSIGNED_4_BYTE,
  1305. .elem_len = 1,
  1306. .elem_size = sizeof(uint32_t),
  1307. .is_array = NO_ARRAY,
  1308. .tlv_type = 0x11,
  1309. .offset = offsetof(struct wlfw_cal_update_resp_msg_v01,
  1310. total_size),
  1311. },
  1312. {
  1313. .data_type = QMI_OPT_FLAG,
  1314. .elem_len = 1,
  1315. .elem_size = sizeof(uint8_t),
  1316. .is_array = NO_ARRAY,
  1317. .tlv_type = 0x12,
  1318. .offset = offsetof(struct wlfw_cal_update_resp_msg_v01,
  1319. seg_id_valid),
  1320. },
  1321. {
  1322. .data_type = QMI_UNSIGNED_4_BYTE,
  1323. .elem_len = 1,
  1324. .elem_size = sizeof(uint32_t),
  1325. .is_array = NO_ARRAY,
  1326. .tlv_type = 0x12,
  1327. .offset = offsetof(struct wlfw_cal_update_resp_msg_v01,
  1328. seg_id),
  1329. },
  1330. {
  1331. .data_type = QMI_OPT_FLAG,
  1332. .elem_len = 1,
  1333. .elem_size = sizeof(uint8_t),
  1334. .is_array = NO_ARRAY,
  1335. .tlv_type = 0x13,
  1336. .offset = offsetof(struct wlfw_cal_update_resp_msg_v01,
  1337. data_valid),
  1338. },
  1339. {
  1340. .data_type = QMI_DATA_LEN,
  1341. .elem_len = 1,
  1342. .elem_size = sizeof(uint16_t),
  1343. .is_array = NO_ARRAY,
  1344. .tlv_type = 0x13,
  1345. .offset = offsetof(struct wlfw_cal_update_resp_msg_v01,
  1346. data_len),
  1347. },
  1348. {
  1349. .data_type = QMI_UNSIGNED_1_BYTE,
  1350. .elem_len = QMI_WLFW_MAX_DATA_SIZE_V01,
  1351. .elem_size = sizeof(uint8_t),
  1352. .is_array = VAR_LEN_ARRAY,
  1353. .tlv_type = 0x13,
  1354. .offset = offsetof(struct wlfw_cal_update_resp_msg_v01,
  1355. data),
  1356. },
  1357. {
  1358. .data_type = QMI_OPT_FLAG,
  1359. .elem_len = 1,
  1360. .elem_size = sizeof(uint8_t),
  1361. .is_array = NO_ARRAY,
  1362. .tlv_type = 0x14,
  1363. .offset = offsetof(struct wlfw_cal_update_resp_msg_v01,
  1364. end_valid),
  1365. },
  1366. {
  1367. .data_type = QMI_UNSIGNED_1_BYTE,
  1368. .elem_len = 1,
  1369. .elem_size = sizeof(uint8_t),
  1370. .is_array = NO_ARRAY,
  1371. .tlv_type = 0x14,
  1372. .offset = offsetof(struct wlfw_cal_update_resp_msg_v01,
  1373. end),
  1374. },
  1375. {
  1376. .data_type = QMI_EOTI,
  1377. .is_array = NO_ARRAY,
  1378. .is_array = QMI_COMMON_TLV_TYPE,
  1379. },
  1380. };
  1381. struct elem_info wlfw_msa_info_req_msg_v01_ei[] = {
  1382. {
  1383. .data_type = QMI_UNSIGNED_8_BYTE,
  1384. .elem_len = 1,
  1385. .elem_size = sizeof(uint64_t),
  1386. .is_array = NO_ARRAY,
  1387. .tlv_type = 0x01,
  1388. .offset = offsetof(struct wlfw_msa_info_req_msg_v01,
  1389. msa_addr),
  1390. },
  1391. {
  1392. .data_type = QMI_UNSIGNED_4_BYTE,
  1393. .elem_len = 1,
  1394. .elem_size = sizeof(uint32_t),
  1395. .is_array = NO_ARRAY,
  1396. .tlv_type = 0x02,
  1397. .offset = offsetof(struct wlfw_msa_info_req_msg_v01,
  1398. size),
  1399. },
  1400. {
  1401. .data_type = QMI_EOTI,
  1402. .is_array = NO_ARRAY,
  1403. .is_array = QMI_COMMON_TLV_TYPE,
  1404. },
  1405. };
  1406. struct elem_info wlfw_msa_info_resp_msg_v01_ei[] = {
  1407. {
  1408. .data_type = QMI_STRUCT,
  1409. .elem_len = 1,
  1410. .elem_size = sizeof(struct qmi_response_type_v01),
  1411. .is_array = NO_ARRAY,
  1412. .tlv_type = 0x02,
  1413. .offset = offsetof(struct wlfw_msa_info_resp_msg_v01,
  1414. resp),
  1415. .ei_array = get_qmi_response_type_v01_ei(),
  1416. },
  1417. {
  1418. .data_type = QMI_DATA_LEN,
  1419. .elem_len = 1,
  1420. .elem_size = sizeof(uint8_t),
  1421. .is_array = NO_ARRAY,
  1422. .tlv_type = 0x03,
  1423. .offset = offsetof(struct wlfw_msa_info_resp_msg_v01,
  1424. mem_region_info_len),
  1425. },
  1426. {
  1427. .data_type = QMI_STRUCT,
  1428. .elem_len = QMI_WLFW_MAX_NUM_MEMORY_REGIONS_V01,
  1429. .elem_size = sizeof(struct wlfw_memory_region_info_s_v01),
  1430. .is_array = VAR_LEN_ARRAY,
  1431. .tlv_type = 0x03,
  1432. .offset = offsetof(struct wlfw_msa_info_resp_msg_v01,
  1433. mem_region_info),
  1434. .ei_array = wlfw_memory_region_info_s_v01_ei,
  1435. },
  1436. {
  1437. .data_type = QMI_EOTI,
  1438. .is_array = NO_ARRAY,
  1439. .is_array = QMI_COMMON_TLV_TYPE,
  1440. },
  1441. };
  1442. struct elem_info wlfw_msa_ready_req_msg_v01_ei[] = {
  1443. {
  1444. .data_type = QMI_EOTI,
  1445. .is_array = NO_ARRAY,
  1446. .is_array = QMI_COMMON_TLV_TYPE,
  1447. },
  1448. };
  1449. struct elem_info wlfw_msa_ready_resp_msg_v01_ei[] = {
  1450. {
  1451. .data_type = QMI_STRUCT,
  1452. .elem_len = 1,
  1453. .elem_size = sizeof(struct qmi_response_type_v01),
  1454. .is_array = NO_ARRAY,
  1455. .tlv_type = 0x02,
  1456. .offset = offsetof(struct wlfw_msa_ready_resp_msg_v01,
  1457. resp),
  1458. .ei_array = get_qmi_response_type_v01_ei(),
  1459. },
  1460. {
  1461. .data_type = QMI_EOTI,
  1462. .is_array = NO_ARRAY,
  1463. .is_array = QMI_COMMON_TLV_TYPE,
  1464. },
  1465. };
  1466. struct elem_info wlfw_ini_req_msg_v01_ei[] = {
  1467. {
  1468. .data_type = QMI_OPT_FLAG,
  1469. .elem_len = 1,
  1470. .elem_size = sizeof(uint8_t),
  1471. .is_array = NO_ARRAY,
  1472. .tlv_type = 0x10,
  1473. .offset = offsetof(struct wlfw_ini_req_msg_v01,
  1474. enablefwlog_valid),
  1475. },
  1476. {
  1477. .data_type = QMI_UNSIGNED_1_BYTE,
  1478. .elem_len = 1,
  1479. .elem_size = sizeof(uint8_t),
  1480. .is_array = NO_ARRAY,
  1481. .tlv_type = 0x10,
  1482. .offset = offsetof(struct wlfw_ini_req_msg_v01,
  1483. enablefwlog),
  1484. },
  1485. {
  1486. .data_type = QMI_EOTI,
  1487. .is_array = NO_ARRAY,
  1488. .is_array = QMI_COMMON_TLV_TYPE,
  1489. },
  1490. };
  1491. struct elem_info wlfw_ini_resp_msg_v01_ei[] = {
  1492. {
  1493. .data_type = QMI_STRUCT,
  1494. .elem_len = 1,
  1495. .elem_size = sizeof(struct qmi_response_type_v01),
  1496. .is_array = NO_ARRAY,
  1497. .tlv_type = 0x02,
  1498. .offset = offsetof(struct wlfw_ini_resp_msg_v01,
  1499. resp),
  1500. .ei_array = get_qmi_response_type_v01_ei(),
  1501. },
  1502. {
  1503. .data_type = QMI_EOTI,
  1504. .is_array = NO_ARRAY,
  1505. .is_array = QMI_COMMON_TLV_TYPE,
  1506. },
  1507. };
  1508. struct elem_info wlfw_athdiag_read_req_msg_v01_ei[] = {
  1509. {
  1510. .data_type = QMI_UNSIGNED_4_BYTE,
  1511. .elem_len = 1,
  1512. .elem_size = sizeof(uint32_t),
  1513. .is_array = NO_ARRAY,
  1514. .tlv_type = 0x01,
  1515. .offset = offsetof(struct wlfw_athdiag_read_req_msg_v01,
  1516. offset),
  1517. },
  1518. {
  1519. .data_type = QMI_UNSIGNED_4_BYTE,
  1520. .elem_len = 1,
  1521. .elem_size = sizeof(uint32_t),
  1522. .is_array = NO_ARRAY,
  1523. .tlv_type = 0x02,
  1524. .offset = offsetof(struct wlfw_athdiag_read_req_msg_v01,
  1525. mem_type),
  1526. },
  1527. {
  1528. .data_type = QMI_UNSIGNED_4_BYTE,
  1529. .elem_len = 1,
  1530. .elem_size = sizeof(uint32_t),
  1531. .is_array = NO_ARRAY,
  1532. .tlv_type = 0x03,
  1533. .offset = offsetof(struct wlfw_athdiag_read_req_msg_v01,
  1534. data_len),
  1535. },
  1536. {
  1537. .data_type = QMI_EOTI,
  1538. .is_array = NO_ARRAY,
  1539. .is_array = QMI_COMMON_TLV_TYPE,
  1540. },
  1541. };
  1542. struct elem_info wlfw_athdiag_read_resp_msg_v01_ei[] = {
  1543. {
  1544. .data_type = QMI_STRUCT,
  1545. .elem_len = 1,
  1546. .elem_size = sizeof(struct qmi_response_type_v01),
  1547. .is_array = NO_ARRAY,
  1548. .tlv_type = 0x02,
  1549. .offset = offsetof(
  1550. struct wlfw_athdiag_read_resp_msg_v01,
  1551. resp),
  1552. .ei_array = get_qmi_response_type_v01_ei(),
  1553. },
  1554. {
  1555. .data_type = QMI_OPT_FLAG,
  1556. .elem_len = 1,
  1557. .elem_size = sizeof(uint8_t),
  1558. .is_array = NO_ARRAY,
  1559. .tlv_type = 0x10,
  1560. .offset = offsetof(
  1561. struct wlfw_athdiag_read_resp_msg_v01,
  1562. data_valid),
  1563. },
  1564. {
  1565. .data_type = QMI_DATA_LEN,
  1566. .elem_len = 1,
  1567. .elem_size = sizeof(uint16_t),
  1568. .is_array = NO_ARRAY,
  1569. .tlv_type = 0x10,
  1570. .offset = offsetof(
  1571. struct wlfw_athdiag_read_resp_msg_v01,
  1572. data_len),
  1573. },
  1574. {
  1575. .data_type = QMI_UNSIGNED_1_BYTE,
  1576. .elem_len = QMI_WLFW_MAX_DATA_SIZE_V01,
  1577. .elem_size = sizeof(uint8_t),
  1578. .is_array = VAR_LEN_ARRAY,
  1579. .tlv_type = 0x10,
  1580. .offset = offsetof(
  1581. struct wlfw_athdiag_read_resp_msg_v01,
  1582. data),
  1583. },
  1584. {
  1585. .data_type = QMI_EOTI,
  1586. .is_array = NO_ARRAY,
  1587. .is_array = QMI_COMMON_TLV_TYPE,
  1588. },
  1589. };
  1590. struct elem_info wlfw_athdiag_write_req_msg_v01_ei[] = {
  1591. {
  1592. .data_type = QMI_UNSIGNED_4_BYTE,
  1593. .elem_len = 1,
  1594. .elem_size = sizeof(uint32_t),
  1595. .is_array = NO_ARRAY,
  1596. .tlv_type = 0x01,
  1597. .offset = offsetof(
  1598. struct wlfw_athdiag_write_req_msg_v01,
  1599. offset),
  1600. },
  1601. {
  1602. .data_type = QMI_UNSIGNED_4_BYTE,
  1603. .elem_len = 1,
  1604. .elem_size = sizeof(uint32_t),
  1605. .is_array = NO_ARRAY,
  1606. .tlv_type = 0x02,
  1607. .offset = offsetof(
  1608. struct wlfw_athdiag_write_req_msg_v01,
  1609. mem_type),
  1610. },
  1611. {
  1612. .data_type = QMI_DATA_LEN,
  1613. .elem_len = 1,
  1614. .elem_size = sizeof(uint16_t),
  1615. .is_array = NO_ARRAY,
  1616. .tlv_type = 0x03,
  1617. .offset = offsetof(
  1618. struct wlfw_athdiag_write_req_msg_v01,
  1619. data_len),
  1620. },
  1621. {
  1622. .data_type = QMI_UNSIGNED_1_BYTE,
  1623. .elem_len = QMI_WLFW_MAX_DATA_SIZE_V01,
  1624. .elem_size = sizeof(uint8_t),
  1625. .is_array = VAR_LEN_ARRAY,
  1626. .tlv_type = 0x03,
  1627. .offset = offsetof(
  1628. struct wlfw_athdiag_write_req_msg_v01,
  1629. data),
  1630. },
  1631. {
  1632. .data_type = QMI_EOTI,
  1633. .is_array = NO_ARRAY,
  1634. .is_array = QMI_COMMON_TLV_TYPE,
  1635. },
  1636. };
  1637. struct elem_info wlfw_athdiag_write_resp_msg_v01_ei[] = {
  1638. {
  1639. .data_type = QMI_STRUCT,
  1640. .elem_len = 1,
  1641. .elem_size = sizeof(struct qmi_response_type_v01),
  1642. .is_array = NO_ARRAY,
  1643. .tlv_type = 0x02,
  1644. .offset = offsetof(
  1645. struct wlfw_athdiag_write_resp_msg_v01,
  1646. resp),
  1647. .ei_array = get_qmi_response_type_v01_ei(),
  1648. },
  1649. {
  1650. .data_type = QMI_EOTI,
  1651. .is_array = NO_ARRAY,
  1652. .is_array = QMI_COMMON_TLV_TYPE,
  1653. },
  1654. };
  1655. struct elem_info wlfw_vbatt_req_msg_v01_ei[] = {
  1656. {
  1657. .data_type = QMI_UNSIGNED_8_BYTE,
  1658. .elem_len = 1,
  1659. .elem_size = sizeof(uint64_t),
  1660. .is_array = NO_ARRAY,
  1661. .tlv_type = 0x01,
  1662. .offset = offsetof(struct wlfw_vbatt_req_msg_v01,
  1663. voltage_uv),
  1664. },
  1665. {
  1666. .data_type = QMI_EOTI,
  1667. .is_array = NO_ARRAY,
  1668. .is_array = QMI_COMMON_TLV_TYPE,
  1669. },
  1670. };
  1671. struct elem_info wlfw_vbatt_resp_msg_v01_ei[] = {
  1672. {
  1673. .data_type = QMI_STRUCT,
  1674. .elem_len = 1,
  1675. .elem_size = sizeof(struct qmi_response_type_v01),
  1676. .is_array = NO_ARRAY,
  1677. .tlv_type = 0x02,
  1678. .offset = offsetof(struct wlfw_vbatt_resp_msg_v01,
  1679. resp),
  1680. .ei_array = get_qmi_response_type_v01_ei(),
  1681. },
  1682. {
  1683. .data_type = QMI_EOTI,
  1684. .is_array = NO_ARRAY,
  1685. .is_array = QMI_COMMON_TLV_TYPE,
  1686. },
  1687. };
  1688. struct elem_info wlfw_mac_addr_req_msg_v01_ei[] = {
  1689. {
  1690. .data_type = QMI_OPT_FLAG,
  1691. .elem_len = 1,
  1692. .elem_size = sizeof(uint8_t),
  1693. .is_array = NO_ARRAY,
  1694. .tlv_type = 0x10,
  1695. .offset = offsetof(struct wlfw_mac_addr_req_msg_v01,
  1696. mac_addr_valid),
  1697. },
  1698. {
  1699. .data_type = QMI_UNSIGNED_1_BYTE,
  1700. .elem_len = QMI_WLFW_MAC_ADDR_SIZE_V01,
  1701. .elem_size = sizeof(uint8_t),
  1702. .is_array = STATIC_ARRAY,
  1703. .tlv_type = 0x10,
  1704. .offset = offsetof(struct wlfw_mac_addr_req_msg_v01,
  1705. mac_addr),
  1706. },
  1707. {
  1708. .data_type = QMI_EOTI,
  1709. .is_array = NO_ARRAY,
  1710. .is_array = QMI_COMMON_TLV_TYPE,
  1711. },
  1712. };
  1713. struct elem_info wlfw_mac_addr_resp_msg_v01_ei[] = {
  1714. {
  1715. .data_type = QMI_STRUCT,
  1716. .elem_len = 1,
  1717. .elem_size = sizeof(struct qmi_response_type_v01),
  1718. .is_array = NO_ARRAY,
  1719. .tlv_type = 0x02,
  1720. .offset = offsetof(struct wlfw_mac_addr_resp_msg_v01,
  1721. resp),
  1722. .ei_array = get_qmi_response_type_v01_ei(),
  1723. },
  1724. {
  1725. .data_type = QMI_EOTI,
  1726. .is_array = NO_ARRAY,
  1727. .is_array = QMI_COMMON_TLV_TYPE,
  1728. },
  1729. };
  1730. struct elem_info wlfw_host_cap_req_msg_v01_ei[] = {
  1731. {
  1732. .data_type = QMI_OPT_FLAG,
  1733. .elem_len = 1,
  1734. .elem_size = sizeof(uint8_t),
  1735. .is_array = NO_ARRAY,
  1736. .tlv_type = 0x10,
  1737. .offset = offsetof(struct wlfw_host_cap_req_msg_v01,
  1738. daemon_support_valid),
  1739. },
  1740. {
  1741. .data_type = QMI_UNSIGNED_1_BYTE,
  1742. .elem_len = 1,
  1743. .elem_size = sizeof(uint8_t),
  1744. .is_array = NO_ARRAY,
  1745. .tlv_type = 0x10,
  1746. .offset = offsetof(struct wlfw_host_cap_req_msg_v01,
  1747. daemon_support),
  1748. },
  1749. {
  1750. .data_type = QMI_EOTI,
  1751. .is_array = NO_ARRAY,
  1752. .is_array = QMI_COMMON_TLV_TYPE,
  1753. },
  1754. };
  1755. struct elem_info wlfw_host_cap_resp_msg_v01_ei[] = {
  1756. {
  1757. .data_type = QMI_STRUCT,
  1758. .elem_len = 1,
  1759. .elem_size = sizeof(struct qmi_response_type_v01),
  1760. .is_array = NO_ARRAY,
  1761. .tlv_type = 0x02,
  1762. .offset = offsetof(struct wlfw_host_cap_resp_msg_v01,
  1763. resp),
  1764. .ei_array = get_qmi_response_type_v01_ei(),
  1765. },
  1766. {
  1767. .data_type = QMI_EOTI,
  1768. .is_array = NO_ARRAY,
  1769. .is_array = QMI_COMMON_TLV_TYPE,
  1770. },
  1771. };
  1772. struct elem_info wlfw_request_mem_ind_msg_v01_ei[] = {
  1773. {
  1774. .data_type = QMI_UNSIGNED_4_BYTE,
  1775. .elem_len = 1,
  1776. .elem_size = sizeof(uint32_t),
  1777. .is_array = NO_ARRAY,
  1778. .tlv_type = 0x01,
  1779. .offset = offsetof(struct wlfw_request_mem_ind_msg_v01,
  1780. size),
  1781. },
  1782. {
  1783. .data_type = QMI_EOTI,
  1784. .is_array = NO_ARRAY,
  1785. .is_array = QMI_COMMON_TLV_TYPE,
  1786. },
  1787. };
  1788. struct elem_info wlfw_respond_mem_req_msg_v01_ei[] = {
  1789. {
  1790. .data_type = QMI_UNSIGNED_8_BYTE,
  1791. .elem_len = 1,
  1792. .elem_size = sizeof(uint64_t),
  1793. .is_array = NO_ARRAY,
  1794. .tlv_type = 0x01,
  1795. .offset = offsetof(struct wlfw_respond_mem_req_msg_v01,
  1796. addr),
  1797. },
  1798. {
  1799. .data_type = QMI_UNSIGNED_4_BYTE,
  1800. .elem_len = 1,
  1801. .elem_size = sizeof(uint32_t),
  1802. .is_array = NO_ARRAY,
  1803. .tlv_type = 0x02,
  1804. .offset = offsetof(struct wlfw_respond_mem_req_msg_v01,
  1805. size),
  1806. },
  1807. {
  1808. .data_type = QMI_EOTI,
  1809. .is_array = NO_ARRAY,
  1810. .is_array = QMI_COMMON_TLV_TYPE,
  1811. },
  1812. };
  1813. struct elem_info wlfw_respond_mem_resp_msg_v01_ei[] = {
  1814. {
  1815. .data_type = QMI_STRUCT,
  1816. .elem_len = 1,
  1817. .elem_size = sizeof(struct qmi_response_type_v01),
  1818. .is_array = NO_ARRAY,
  1819. .tlv_type = 0x02,
  1820. .offset = offsetof(struct wlfw_respond_mem_resp_msg_v01,
  1821. resp),
  1822. .ei_array = get_qmi_response_type_v01_ei(),
  1823. },
  1824. {
  1825. .data_type = QMI_EOTI,
  1826. .is_array = NO_ARRAY,
  1827. .is_array = QMI_COMMON_TLV_TYPE,
  1828. },
  1829. };
  1830. struct elem_info wlfw_fw_mem_ready_ind_msg_v01_ei[] = {
  1831. {
  1832. .data_type = QMI_EOTI,
  1833. .is_array = NO_ARRAY,
  1834. .is_array = QMI_COMMON_TLV_TYPE,
  1835. },
  1836. };
  1837. struct elem_info wlfw_cold_boot_cal_done_ind_msg_v01_ei[] = {
  1838. {
  1839. .data_type = QMI_EOTI,
  1840. .is_array = NO_ARRAY,
  1841. .is_array = QMI_COMMON_TLV_TYPE,
  1842. },
  1843. };
  1844. struct elem_info wlfw_rejuvenate_ind_msg_v01_ei[] = {
  1845. {
  1846. .data_type = QMI_OPT_FLAG,
  1847. .elem_len = 1,
  1848. .elem_size = sizeof(uint8_t),
  1849. .is_array = NO_ARRAY,
  1850. .tlv_type = 0x10,
  1851. .offset = offsetof(struct wlfw_rejuvenate_ind_msg_v01,
  1852. cause_for_rejuvenation_valid),
  1853. },
  1854. {
  1855. .data_type = QMI_UNSIGNED_1_BYTE,
  1856. .elem_len = 1,
  1857. .elem_size = sizeof(uint8_t),
  1858. .is_array = NO_ARRAY,
  1859. .tlv_type = 0x10,
  1860. .offset = offsetof(struct wlfw_rejuvenate_ind_msg_v01,
  1861. cause_for_rejuvenation),
  1862. },
  1863. {
  1864. .data_type = QMI_OPT_FLAG,
  1865. .elem_len = 1,
  1866. .elem_size = sizeof(uint8_t),
  1867. .is_array = NO_ARRAY,
  1868. .tlv_type = 0x11,
  1869. .offset = offsetof(struct wlfw_rejuvenate_ind_msg_v01,
  1870. requesting_sub_system_valid),
  1871. },
  1872. {
  1873. .data_type = QMI_UNSIGNED_1_BYTE,
  1874. .elem_len = 1,
  1875. .elem_size = sizeof(uint8_t),
  1876. .is_array = NO_ARRAY,
  1877. .tlv_type = 0x11,
  1878. .offset = offsetof(struct wlfw_rejuvenate_ind_msg_v01,
  1879. requesting_sub_system),
  1880. },
  1881. {
  1882. .data_type = QMI_OPT_FLAG,
  1883. .elem_len = 1,
  1884. .elem_size = sizeof(uint8_t),
  1885. .is_array = NO_ARRAY,
  1886. .tlv_type = 0x12,
  1887. .offset = offsetof(struct wlfw_rejuvenate_ind_msg_v01,
  1888. line_number_valid),
  1889. },
  1890. {
  1891. .data_type = QMI_UNSIGNED_2_BYTE,
  1892. .elem_len = 1,
  1893. .elem_size = sizeof(uint16_t),
  1894. .is_array = NO_ARRAY,
  1895. .tlv_type = 0x12,
  1896. .offset = offsetof(struct wlfw_rejuvenate_ind_msg_v01,
  1897. line_number),
  1898. },
  1899. {
  1900. .data_type = QMI_OPT_FLAG,
  1901. .elem_len = 1,
  1902. .elem_size = sizeof(uint8_t),
  1903. .is_array = NO_ARRAY,
  1904. .tlv_type = 0x13,
  1905. .offset = offsetof(struct wlfw_rejuvenate_ind_msg_v01,
  1906. function_name_valid),
  1907. },
  1908. {
  1909. .data_type = QMI_STRING,
  1910. .elem_len = QMI_WLFW_FUNCTION_NAME_LEN_V01 + 1,
  1911. .elem_size = sizeof(char),
  1912. .is_array = NO_ARRAY,
  1913. .tlv_type = 0x13,
  1914. .offset = offsetof(struct wlfw_rejuvenate_ind_msg_v01,
  1915. function_name),
  1916. },
  1917. {
  1918. .data_type = QMI_EOTI,
  1919. .is_array = NO_ARRAY,
  1920. .is_array = QMI_COMMON_TLV_TYPE,
  1921. },
  1922. };
  1923. struct elem_info wlfw_rejuvenate_ack_req_msg_v01_ei[] = {
  1924. {
  1925. .data_type = QMI_EOTI,
  1926. .is_array = NO_ARRAY,
  1927. .is_array = QMI_COMMON_TLV_TYPE,
  1928. },
  1929. };
  1930. struct elem_info wlfw_rejuvenate_ack_resp_msg_v01_ei[] = {
  1931. {
  1932. .data_type = QMI_STRUCT,
  1933. .elem_len = 1,
  1934. .elem_size = sizeof(struct qmi_response_type_v01),
  1935. .is_array = NO_ARRAY,
  1936. .tlv_type = 0x02,
  1937. .offset = offsetof(
  1938. struct wlfw_rejuvenate_ack_resp_msg_v01,
  1939. resp),
  1940. .ei_array = get_qmi_response_type_v01_ei(),
  1941. },
  1942. {
  1943. .data_type = QMI_EOTI,
  1944. .is_array = NO_ARRAY,
  1945. .is_array = QMI_COMMON_TLV_TYPE,
  1946. },
  1947. };
  1948. struct elem_info wlfw_dynamic_feature_mask_req_msg_v01_ei[] = {
  1949. {
  1950. .data_type = QMI_OPT_FLAG,
  1951. .elem_len = 1,
  1952. .elem_size = sizeof(uint8_t),
  1953. .is_array = NO_ARRAY,
  1954. .tlv_type = 0x10,
  1955. .offset = offsetof(struct
  1956. wlfw_dynamic_feature_mask_req_msg_v01,
  1957. mask_valid),
  1958. },
  1959. {
  1960. .data_type = QMI_UNSIGNED_8_BYTE,
  1961. .elem_len = 1,
  1962. .elem_size = sizeof(uint64_t),
  1963. .is_array = NO_ARRAY,
  1964. .tlv_type = 0x10,
  1965. .offset = offsetof(
  1966. struct wlfw_dynamic_feature_mask_req_msg_v01,
  1967. mask),
  1968. },
  1969. {
  1970. .data_type = QMI_EOTI,
  1971. .is_array = NO_ARRAY,
  1972. .is_array = QMI_COMMON_TLV_TYPE,
  1973. },
  1974. };
  1975. struct elem_info wlfw_dynamic_feature_mask_resp_msg_v01_ei[] = {
  1976. {
  1977. .data_type = QMI_STRUCT,
  1978. .elem_len = 1,
  1979. .elem_size = sizeof(struct qmi_response_type_v01),
  1980. .is_array = NO_ARRAY,
  1981. .tlv_type = 0x02,
  1982. .offset = offsetof(
  1983. struct wlfw_dynamic_feature_mask_resp_msg_v01,
  1984. resp),
  1985. .ei_array = get_qmi_response_type_v01_ei(),
  1986. },
  1987. {
  1988. .data_type = QMI_OPT_FLAG,
  1989. .elem_len = 1,
  1990. .elem_size = sizeof(uint8_t),
  1991. .is_array = NO_ARRAY,
  1992. .tlv_type = 0x10,
  1993. .offset = offsetof(
  1994. struct wlfw_dynamic_feature_mask_resp_msg_v01,
  1995. prev_mask_valid),
  1996. },
  1997. {
  1998. .data_type = QMI_UNSIGNED_8_BYTE,
  1999. .elem_len = 1,
  2000. .elem_size = sizeof(uint64_t),
  2001. .is_array = NO_ARRAY,
  2002. .tlv_type = 0x10,
  2003. .offset = offsetof(
  2004. struct wlfw_dynamic_feature_mask_resp_msg_v01,
  2005. prev_mask),
  2006. },
  2007. {
  2008. .data_type = QMI_OPT_FLAG,
  2009. .elem_len = 1,
  2010. .elem_size = sizeof(uint8_t),
  2011. .is_array = NO_ARRAY,
  2012. .tlv_type = 0x11,
  2013. .offset = offsetof(
  2014. struct wlfw_dynamic_feature_mask_resp_msg_v01,
  2015. curr_mask_valid),
  2016. },
  2017. {
  2018. .data_type = QMI_UNSIGNED_8_BYTE,
  2019. .elem_len = 1,
  2020. .elem_size = sizeof(uint64_t),
  2021. .is_array = NO_ARRAY,
  2022. .tlv_type = 0x11,
  2023. .offset = offsetof(
  2024. struct wlfw_dynamic_feature_mask_resp_msg_v01,
  2025. curr_mask),
  2026. },
  2027. {
  2028. .data_type = QMI_EOTI,
  2029. .is_array = NO_ARRAY,
  2030. .is_array = QMI_COMMON_TLV_TYPE,
  2031. },
  2032. };