ipa_qmi_msg.c 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723
  1. // SPDX-License-Identifier: GPL-2.0
  2. /* Copyright (c) 2018, The Linux Foundation. All rights reserved.
  3. * Copyright (C) 2018-2022 Linaro Ltd.
  4. */
  5. #include <linux/stddef.h>
  6. #include <linux/soc/qcom/qmi.h>
  7. #include "ipa_qmi_msg.h"
  8. /* QMI message structure definition for struct ipa_indication_register_req */
  9. struct qmi_elem_info ipa_indication_register_req_ei[] = {
  10. {
  11. .data_type = QMI_OPT_FLAG,
  12. .elem_len = 1,
  13. .elem_size =
  14. sizeof_field(struct ipa_indication_register_req,
  15. master_driver_init_complete_valid),
  16. .tlv_type = 0x10,
  17. .offset = offsetof(struct ipa_indication_register_req,
  18. master_driver_init_complete_valid),
  19. },
  20. {
  21. .data_type = QMI_UNSIGNED_1_BYTE,
  22. .elem_len = 1,
  23. .elem_size =
  24. sizeof_field(struct ipa_indication_register_req,
  25. master_driver_init_complete),
  26. .tlv_type = 0x10,
  27. .offset = offsetof(struct ipa_indication_register_req,
  28. master_driver_init_complete),
  29. },
  30. {
  31. .data_type = QMI_OPT_FLAG,
  32. .elem_len = 1,
  33. .elem_size =
  34. sizeof_field(struct ipa_indication_register_req,
  35. data_usage_quota_reached_valid),
  36. .tlv_type = 0x11,
  37. .offset = offsetof(struct ipa_indication_register_req,
  38. data_usage_quota_reached_valid),
  39. },
  40. {
  41. .data_type = QMI_UNSIGNED_1_BYTE,
  42. .elem_len = 1,
  43. .elem_size =
  44. sizeof_field(struct ipa_indication_register_req,
  45. data_usage_quota_reached),
  46. .tlv_type = 0x11,
  47. .offset = offsetof(struct ipa_indication_register_req,
  48. data_usage_quota_reached),
  49. },
  50. {
  51. .data_type = QMI_OPT_FLAG,
  52. .elem_len = 1,
  53. .elem_size =
  54. sizeof_field(struct ipa_indication_register_req,
  55. ipa_mhi_ready_ind_valid),
  56. .tlv_type = 0x12,
  57. .offset = offsetof(struct ipa_indication_register_req,
  58. ipa_mhi_ready_ind_valid),
  59. },
  60. {
  61. .data_type = QMI_UNSIGNED_1_BYTE,
  62. .elem_len = 1,
  63. .elem_size =
  64. sizeof_field(struct ipa_indication_register_req,
  65. ipa_mhi_ready_ind),
  66. .tlv_type = 0x12,
  67. .offset = offsetof(struct ipa_indication_register_req,
  68. ipa_mhi_ready_ind),
  69. },
  70. {
  71. .data_type = QMI_OPT_FLAG,
  72. .elem_len = 1,
  73. .elem_size =
  74. sizeof_field(struct ipa_indication_register_req,
  75. endpoint_desc_ind_valid),
  76. .tlv_type = 0x13,
  77. .offset = offsetof(struct ipa_indication_register_req,
  78. endpoint_desc_ind_valid),
  79. },
  80. {
  81. .data_type = QMI_UNSIGNED_1_BYTE,
  82. .elem_len = 1,
  83. .elem_size =
  84. sizeof_field(struct ipa_indication_register_req,
  85. endpoint_desc_ind),
  86. .tlv_type = 0x13,
  87. .offset = offsetof(struct ipa_indication_register_req,
  88. endpoint_desc_ind),
  89. },
  90. {
  91. .data_type = QMI_OPT_FLAG,
  92. .elem_len = 1,
  93. .elem_size =
  94. sizeof_field(struct ipa_indication_register_req,
  95. bw_change_ind_valid),
  96. .tlv_type = 0x14,
  97. .offset = offsetof(struct ipa_indication_register_req,
  98. bw_change_ind_valid),
  99. },
  100. {
  101. .data_type = QMI_UNSIGNED_1_BYTE,
  102. .elem_len = 1,
  103. .elem_size =
  104. sizeof_field(struct ipa_indication_register_req,
  105. bw_change_ind),
  106. .tlv_type = 0x14,
  107. .offset = offsetof(struct ipa_indication_register_req,
  108. bw_change_ind),
  109. },
  110. {
  111. .data_type = QMI_EOTI,
  112. },
  113. };
  114. /* QMI message structure definition for struct ipa_indication_register_rsp */
  115. struct qmi_elem_info ipa_indication_register_rsp_ei[] = {
  116. {
  117. .data_type = QMI_STRUCT,
  118. .elem_len = 1,
  119. .elem_size =
  120. sizeof_field(struct ipa_indication_register_rsp,
  121. rsp),
  122. .tlv_type = 0x02,
  123. .offset = offsetof(struct ipa_indication_register_rsp,
  124. rsp),
  125. .ei_array = qmi_response_type_v01_ei,
  126. },
  127. {
  128. .data_type = QMI_EOTI,
  129. },
  130. };
  131. /* QMI message structure definition for struct ipa_driver_init_complete_req */
  132. struct qmi_elem_info ipa_driver_init_complete_req_ei[] = {
  133. {
  134. .data_type = QMI_UNSIGNED_1_BYTE,
  135. .elem_len = 1,
  136. .elem_size =
  137. sizeof_field(struct ipa_driver_init_complete_req,
  138. status),
  139. .tlv_type = 0x01,
  140. .offset = offsetof(struct ipa_driver_init_complete_req,
  141. status),
  142. },
  143. {
  144. .data_type = QMI_EOTI,
  145. },
  146. };
  147. /* QMI message structure definition for struct ipa_driver_init_complete_rsp */
  148. struct qmi_elem_info ipa_driver_init_complete_rsp_ei[] = {
  149. {
  150. .data_type = QMI_STRUCT,
  151. .elem_len = 1,
  152. .elem_size =
  153. sizeof_field(struct ipa_driver_init_complete_rsp,
  154. rsp),
  155. .tlv_type = 0x02,
  156. .offset = offsetof(struct ipa_driver_init_complete_rsp,
  157. rsp),
  158. .ei_array = qmi_response_type_v01_ei,
  159. },
  160. {
  161. .data_type = QMI_EOTI,
  162. },
  163. };
  164. /* QMI message structure definition for struct ipa_init_complete_ind */
  165. struct qmi_elem_info ipa_init_complete_ind_ei[] = {
  166. {
  167. .data_type = QMI_STRUCT,
  168. .elem_len = 1,
  169. .elem_size =
  170. sizeof_field(struct ipa_init_complete_ind,
  171. status),
  172. .tlv_type = 0x02,
  173. .offset = offsetof(struct ipa_init_complete_ind,
  174. status),
  175. .ei_array = qmi_response_type_v01_ei,
  176. },
  177. {
  178. .data_type = QMI_EOTI,
  179. },
  180. };
  181. /* QMI message structure definition for struct ipa_mem_bounds */
  182. struct qmi_elem_info ipa_mem_bounds_ei[] = {
  183. {
  184. .data_type = QMI_UNSIGNED_4_BYTE,
  185. .elem_len = 1,
  186. .elem_size =
  187. sizeof_field(struct ipa_mem_bounds, start),
  188. .offset = offsetof(struct ipa_mem_bounds, start),
  189. },
  190. {
  191. .data_type = QMI_UNSIGNED_4_BYTE,
  192. .elem_len = 1,
  193. .elem_size =
  194. sizeof_field(struct ipa_mem_bounds, end),
  195. .offset = offsetof(struct ipa_mem_bounds, end),
  196. },
  197. {
  198. .data_type = QMI_EOTI,
  199. },
  200. };
  201. /* QMI message structure definition for struct ipa_mem_array */
  202. struct qmi_elem_info ipa_mem_array_ei[] = {
  203. {
  204. .data_type = QMI_UNSIGNED_4_BYTE,
  205. .elem_len = 1,
  206. .elem_size =
  207. sizeof_field(struct ipa_mem_array, start),
  208. .offset = offsetof(struct ipa_mem_array, start),
  209. },
  210. {
  211. .data_type = QMI_UNSIGNED_4_BYTE,
  212. .elem_len = 1,
  213. .elem_size =
  214. sizeof_field(struct ipa_mem_array, count),
  215. .offset = offsetof(struct ipa_mem_array, count),
  216. },
  217. {
  218. .data_type = QMI_EOTI,
  219. },
  220. };
  221. /* QMI message structure definition for struct ipa_mem_range */
  222. struct qmi_elem_info ipa_mem_range_ei[] = {
  223. {
  224. .data_type = QMI_UNSIGNED_4_BYTE,
  225. .elem_len = 1,
  226. .elem_size =
  227. sizeof_field(struct ipa_mem_range, start),
  228. .offset = offsetof(struct ipa_mem_range, start),
  229. },
  230. {
  231. .data_type = QMI_UNSIGNED_4_BYTE,
  232. .elem_len = 1,
  233. .elem_size =
  234. sizeof_field(struct ipa_mem_range, size),
  235. .offset = offsetof(struct ipa_mem_range, size),
  236. },
  237. {
  238. .data_type = QMI_EOTI,
  239. },
  240. };
  241. /* QMI message structure definition for struct ipa_init_modem_driver_req */
  242. struct qmi_elem_info ipa_init_modem_driver_req_ei[] = {
  243. {
  244. .data_type = QMI_OPT_FLAG,
  245. .elem_len = 1,
  246. .elem_size =
  247. sizeof_field(struct ipa_init_modem_driver_req,
  248. platform_type_valid),
  249. .tlv_type = 0x10,
  250. .offset = offsetof(struct ipa_init_modem_driver_req,
  251. platform_type_valid),
  252. },
  253. {
  254. .data_type = QMI_SIGNED_4_BYTE_ENUM,
  255. .elem_len = 1,
  256. .elem_size =
  257. sizeof_field(struct ipa_init_modem_driver_req,
  258. platform_type),
  259. .tlv_type = 0x10,
  260. .offset = offsetof(struct ipa_init_modem_driver_req,
  261. platform_type),
  262. },
  263. {
  264. .data_type = QMI_OPT_FLAG,
  265. .elem_len = 1,
  266. .elem_size =
  267. sizeof_field(struct ipa_init_modem_driver_req,
  268. hdr_tbl_info_valid),
  269. .tlv_type = 0x11,
  270. .offset = offsetof(struct ipa_init_modem_driver_req,
  271. hdr_tbl_info_valid),
  272. },
  273. {
  274. .data_type = QMI_STRUCT,
  275. .elem_len = 1,
  276. .elem_size =
  277. sizeof_field(struct ipa_init_modem_driver_req,
  278. hdr_tbl_info),
  279. .tlv_type = 0x11,
  280. .offset = offsetof(struct ipa_init_modem_driver_req,
  281. hdr_tbl_info),
  282. .ei_array = ipa_mem_bounds_ei,
  283. },
  284. {
  285. .data_type = QMI_OPT_FLAG,
  286. .elem_len = 1,
  287. .elem_size =
  288. sizeof_field(struct ipa_init_modem_driver_req,
  289. v4_route_tbl_info_valid),
  290. .tlv_type = 0x12,
  291. .offset = offsetof(struct ipa_init_modem_driver_req,
  292. v4_route_tbl_info_valid),
  293. },
  294. {
  295. .data_type = QMI_STRUCT,
  296. .elem_len = 1,
  297. .elem_size =
  298. sizeof_field(struct ipa_init_modem_driver_req,
  299. v4_route_tbl_info),
  300. .tlv_type = 0x12,
  301. .offset = offsetof(struct ipa_init_modem_driver_req,
  302. v4_route_tbl_info),
  303. .ei_array = ipa_mem_bounds_ei,
  304. },
  305. {
  306. .data_type = QMI_OPT_FLAG,
  307. .elem_len = 1,
  308. .elem_size =
  309. sizeof_field(struct ipa_init_modem_driver_req,
  310. v6_route_tbl_info_valid),
  311. .tlv_type = 0x13,
  312. .offset = offsetof(struct ipa_init_modem_driver_req,
  313. v6_route_tbl_info_valid),
  314. },
  315. {
  316. .data_type = QMI_STRUCT,
  317. .elem_len = 1,
  318. .elem_size =
  319. sizeof_field(struct ipa_init_modem_driver_req,
  320. v6_route_tbl_info),
  321. .tlv_type = 0x13,
  322. .offset = offsetof(struct ipa_init_modem_driver_req,
  323. v6_route_tbl_info),
  324. .ei_array = ipa_mem_bounds_ei,
  325. },
  326. {
  327. .data_type = QMI_OPT_FLAG,
  328. .elem_len = 1,
  329. .elem_size =
  330. sizeof_field(struct ipa_init_modem_driver_req,
  331. v4_filter_tbl_start_valid),
  332. .tlv_type = 0x14,
  333. .offset = offsetof(struct ipa_init_modem_driver_req,
  334. v4_filter_tbl_start_valid),
  335. },
  336. {
  337. .data_type = QMI_UNSIGNED_4_BYTE,
  338. .elem_len = 1,
  339. .elem_size =
  340. sizeof_field(struct ipa_init_modem_driver_req,
  341. v4_filter_tbl_start),
  342. .tlv_type = 0x14,
  343. .offset = offsetof(struct ipa_init_modem_driver_req,
  344. v4_filter_tbl_start),
  345. },
  346. {
  347. .data_type = QMI_OPT_FLAG,
  348. .elem_len = 1,
  349. .elem_size =
  350. sizeof_field(struct ipa_init_modem_driver_req,
  351. v6_filter_tbl_start_valid),
  352. .tlv_type = 0x15,
  353. .offset = offsetof(struct ipa_init_modem_driver_req,
  354. v6_filter_tbl_start_valid),
  355. },
  356. {
  357. .data_type = QMI_UNSIGNED_4_BYTE,
  358. .elem_len = 1,
  359. .elem_size =
  360. sizeof_field(struct ipa_init_modem_driver_req,
  361. v6_filter_tbl_start),
  362. .tlv_type = 0x15,
  363. .offset = offsetof(struct ipa_init_modem_driver_req,
  364. v6_filter_tbl_start),
  365. },
  366. {
  367. .data_type = QMI_OPT_FLAG,
  368. .elem_len = 1,
  369. .elem_size =
  370. sizeof_field(struct ipa_init_modem_driver_req,
  371. modem_mem_info_valid),
  372. .tlv_type = 0x16,
  373. .offset = offsetof(struct ipa_init_modem_driver_req,
  374. modem_mem_info_valid),
  375. },
  376. {
  377. .data_type = QMI_STRUCT,
  378. .elem_len = 1,
  379. .elem_size =
  380. sizeof_field(struct ipa_init_modem_driver_req,
  381. modem_mem_info),
  382. .tlv_type = 0x16,
  383. .offset = offsetof(struct ipa_init_modem_driver_req,
  384. modem_mem_info),
  385. .ei_array = ipa_mem_range_ei,
  386. },
  387. {
  388. .data_type = QMI_OPT_FLAG,
  389. .elem_len = 1,
  390. .elem_size =
  391. sizeof_field(struct ipa_init_modem_driver_req,
  392. ctrl_comm_dest_end_pt_valid),
  393. .tlv_type = 0x17,
  394. .offset = offsetof(struct ipa_init_modem_driver_req,
  395. ctrl_comm_dest_end_pt_valid),
  396. },
  397. {
  398. .data_type = QMI_UNSIGNED_4_BYTE,
  399. .elem_len = 1,
  400. .elem_size =
  401. sizeof_field(struct ipa_init_modem_driver_req,
  402. ctrl_comm_dest_end_pt),
  403. .tlv_type = 0x17,
  404. .offset = offsetof(struct ipa_init_modem_driver_req,
  405. ctrl_comm_dest_end_pt),
  406. },
  407. {
  408. .data_type = QMI_OPT_FLAG,
  409. .elem_len = 1,
  410. .elem_size =
  411. sizeof_field(struct ipa_init_modem_driver_req,
  412. skip_uc_load_valid),
  413. .tlv_type = 0x18,
  414. .offset = offsetof(struct ipa_init_modem_driver_req,
  415. skip_uc_load_valid),
  416. },
  417. {
  418. .data_type = QMI_UNSIGNED_1_BYTE,
  419. .elem_len = 1,
  420. .elem_size =
  421. sizeof_field(struct ipa_init_modem_driver_req,
  422. skip_uc_load),
  423. .tlv_type = 0x18,
  424. .offset = offsetof(struct ipa_init_modem_driver_req,
  425. skip_uc_load),
  426. },
  427. {
  428. .data_type = QMI_OPT_FLAG,
  429. .elem_len = 1,
  430. .elem_size =
  431. sizeof_field(struct ipa_init_modem_driver_req,
  432. hdr_proc_ctx_tbl_info_valid),
  433. .tlv_type = 0x19,
  434. .offset = offsetof(struct ipa_init_modem_driver_req,
  435. hdr_proc_ctx_tbl_info_valid),
  436. },
  437. {
  438. .data_type = QMI_STRUCT,
  439. .elem_len = 1,
  440. .elem_size =
  441. sizeof_field(struct ipa_init_modem_driver_req,
  442. hdr_proc_ctx_tbl_info),
  443. .tlv_type = 0x19,
  444. .offset = offsetof(struct ipa_init_modem_driver_req,
  445. hdr_proc_ctx_tbl_info),
  446. .ei_array = ipa_mem_bounds_ei,
  447. },
  448. {
  449. .data_type = QMI_OPT_FLAG,
  450. .elem_len = 1,
  451. .elem_size =
  452. sizeof_field(struct ipa_init_modem_driver_req,
  453. zip_tbl_info_valid),
  454. .tlv_type = 0x1a,
  455. .offset = offsetof(struct ipa_init_modem_driver_req,
  456. zip_tbl_info_valid),
  457. },
  458. {
  459. .data_type = QMI_STRUCT,
  460. .elem_len = 1,
  461. .elem_size =
  462. sizeof_field(struct ipa_init_modem_driver_req,
  463. zip_tbl_info),
  464. .tlv_type = 0x1a,
  465. .offset = offsetof(struct ipa_init_modem_driver_req,
  466. zip_tbl_info),
  467. .ei_array = ipa_mem_bounds_ei,
  468. },
  469. {
  470. .data_type = QMI_OPT_FLAG,
  471. .elem_len = 1,
  472. .elem_size =
  473. sizeof_field(struct ipa_init_modem_driver_req,
  474. v4_hash_route_tbl_info_valid),
  475. .tlv_type = 0x1b,
  476. .offset = offsetof(struct ipa_init_modem_driver_req,
  477. v4_hash_route_tbl_info_valid),
  478. },
  479. {
  480. .data_type = QMI_STRUCT,
  481. .elem_len = 1,
  482. .elem_size =
  483. sizeof_field(struct ipa_init_modem_driver_req,
  484. v4_hash_route_tbl_info),
  485. .tlv_type = 0x1b,
  486. .offset = offsetof(struct ipa_init_modem_driver_req,
  487. v4_hash_route_tbl_info),
  488. .ei_array = ipa_mem_bounds_ei,
  489. },
  490. {
  491. .data_type = QMI_OPT_FLAG,
  492. .elem_len = 1,
  493. .elem_size =
  494. sizeof_field(struct ipa_init_modem_driver_req,
  495. v6_hash_route_tbl_info_valid),
  496. .tlv_type = 0x1c,
  497. .offset = offsetof(struct ipa_init_modem_driver_req,
  498. v6_hash_route_tbl_info_valid),
  499. },
  500. {
  501. .data_type = QMI_STRUCT,
  502. .elem_len = 1,
  503. .elem_size =
  504. sizeof_field(struct ipa_init_modem_driver_req,
  505. v6_hash_route_tbl_info),
  506. .tlv_type = 0x1c,
  507. .offset = offsetof(struct ipa_init_modem_driver_req,
  508. v6_hash_route_tbl_info),
  509. .ei_array = ipa_mem_bounds_ei,
  510. },
  511. {
  512. .data_type = QMI_OPT_FLAG,
  513. .elem_len = 1,
  514. .elem_size =
  515. sizeof_field(struct ipa_init_modem_driver_req,
  516. v4_hash_filter_tbl_start_valid),
  517. .tlv_type = 0x1d,
  518. .offset = offsetof(struct ipa_init_modem_driver_req,
  519. v4_hash_filter_tbl_start_valid),
  520. },
  521. {
  522. .data_type = QMI_UNSIGNED_4_BYTE,
  523. .elem_len = 1,
  524. .elem_size =
  525. sizeof_field(struct ipa_init_modem_driver_req,
  526. v4_hash_filter_tbl_start),
  527. .tlv_type = 0x1d,
  528. .offset = offsetof(struct ipa_init_modem_driver_req,
  529. v4_hash_filter_tbl_start),
  530. },
  531. {
  532. .data_type = QMI_OPT_FLAG,
  533. .elem_len = 1,
  534. .elem_size =
  535. sizeof_field(struct ipa_init_modem_driver_req,
  536. v6_hash_filter_tbl_start_valid),
  537. .tlv_type = 0x1e,
  538. .offset = offsetof(struct ipa_init_modem_driver_req,
  539. v6_hash_filter_tbl_start_valid),
  540. },
  541. {
  542. .data_type = QMI_UNSIGNED_4_BYTE,
  543. .elem_len = 1,
  544. .elem_size =
  545. sizeof_field(struct ipa_init_modem_driver_req,
  546. v6_hash_filter_tbl_start),
  547. .tlv_type = 0x1e,
  548. .offset = offsetof(struct ipa_init_modem_driver_req,
  549. v6_hash_filter_tbl_start),
  550. },
  551. {
  552. .data_type = QMI_OPT_FLAG,
  553. .elem_len = 1,
  554. .elem_size =
  555. sizeof_field(struct ipa_init_modem_driver_req,
  556. hw_stats_quota_base_addr_valid),
  557. .tlv_type = 0x1f,
  558. .offset = offsetof(struct ipa_init_modem_driver_req,
  559. hw_stats_quota_base_addr_valid),
  560. },
  561. {
  562. .data_type = QMI_UNSIGNED_4_BYTE,
  563. .elem_len = 1,
  564. .elem_size =
  565. sizeof_field(struct ipa_init_modem_driver_req,
  566. hw_stats_quota_base_addr),
  567. .tlv_type = 0x1f,
  568. .offset = offsetof(struct ipa_init_modem_driver_req,
  569. hw_stats_quota_base_addr),
  570. },
  571. {
  572. .data_type = QMI_OPT_FLAG,
  573. .elem_len = 1,
  574. .elem_size =
  575. sizeof_field(struct ipa_init_modem_driver_req,
  576. hw_stats_quota_size_valid),
  577. .tlv_type = 0x20,
  578. .offset = offsetof(struct ipa_init_modem_driver_req,
  579. hw_stats_quota_size_valid),
  580. },
  581. {
  582. .data_type = QMI_UNSIGNED_4_BYTE,
  583. .elem_len = 1,
  584. .elem_size =
  585. sizeof_field(struct ipa_init_modem_driver_req,
  586. hw_stats_quota_size),
  587. .tlv_type = 0x20,
  588. .offset = offsetof(struct ipa_init_modem_driver_req,
  589. hw_stats_quota_size),
  590. },
  591. {
  592. .data_type = QMI_OPT_FLAG,
  593. .elem_len = 1,
  594. .elem_size =
  595. sizeof_field(struct ipa_init_modem_driver_req,
  596. hw_stats_drop_base_addr_valid),
  597. .tlv_type = 0x21,
  598. .offset = offsetof(struct ipa_init_modem_driver_req,
  599. hw_stats_drop_base_addr_valid),
  600. },
  601. {
  602. .data_type = QMI_UNSIGNED_4_BYTE,
  603. .elem_len = 1,
  604. .elem_size =
  605. sizeof_field(struct ipa_init_modem_driver_req,
  606. hw_stats_drop_base_addr),
  607. .tlv_type = 0x21,
  608. .offset = offsetof(struct ipa_init_modem_driver_req,
  609. hw_stats_drop_base_addr),
  610. },
  611. {
  612. .data_type = QMI_OPT_FLAG,
  613. .elem_len = 1,
  614. .elem_size =
  615. sizeof_field(struct ipa_init_modem_driver_req,
  616. hw_stats_drop_size_valid),
  617. .tlv_type = 0x22,
  618. .offset = offsetof(struct ipa_init_modem_driver_req,
  619. hw_stats_drop_size_valid),
  620. },
  621. {
  622. .data_type = QMI_UNSIGNED_4_BYTE,
  623. .elem_len = 1,
  624. .elem_size =
  625. sizeof_field(struct ipa_init_modem_driver_req,
  626. hw_stats_drop_size),
  627. .tlv_type = 0x22,
  628. .offset = offsetof(struct ipa_init_modem_driver_req,
  629. hw_stats_drop_size),
  630. },
  631. {
  632. .data_type = QMI_EOTI,
  633. },
  634. };
  635. /* QMI message structure definition for struct ipa_init_modem_driver_rsp */
  636. struct qmi_elem_info ipa_init_modem_driver_rsp_ei[] = {
  637. {
  638. .data_type = QMI_STRUCT,
  639. .elem_len = 1,
  640. .elem_size =
  641. sizeof_field(struct ipa_init_modem_driver_rsp,
  642. rsp),
  643. .tlv_type = 0x02,
  644. .offset = offsetof(struct ipa_init_modem_driver_rsp,
  645. rsp),
  646. .ei_array = qmi_response_type_v01_ei,
  647. },
  648. {
  649. .data_type = QMI_OPT_FLAG,
  650. .elem_len = 1,
  651. .elem_size =
  652. sizeof_field(struct ipa_init_modem_driver_rsp,
  653. ctrl_comm_dest_end_pt_valid),
  654. .tlv_type = 0x10,
  655. .offset = offsetof(struct ipa_init_modem_driver_rsp,
  656. ctrl_comm_dest_end_pt_valid),
  657. },
  658. {
  659. .data_type = QMI_UNSIGNED_4_BYTE,
  660. .elem_len = 1,
  661. .elem_size =
  662. sizeof_field(struct ipa_init_modem_driver_rsp,
  663. ctrl_comm_dest_end_pt),
  664. .tlv_type = 0x10,
  665. .offset = offsetof(struct ipa_init_modem_driver_rsp,
  666. ctrl_comm_dest_end_pt),
  667. },
  668. {
  669. .data_type = QMI_OPT_FLAG,
  670. .elem_len = 1,
  671. .elem_size =
  672. sizeof_field(struct ipa_init_modem_driver_rsp,
  673. default_end_pt_valid),
  674. .tlv_type = 0x11,
  675. .offset = offsetof(struct ipa_init_modem_driver_rsp,
  676. default_end_pt_valid),
  677. },
  678. {
  679. .data_type = QMI_UNSIGNED_4_BYTE,
  680. .elem_len = 1,
  681. .elem_size =
  682. sizeof_field(struct ipa_init_modem_driver_rsp,
  683. default_end_pt),
  684. .tlv_type = 0x11,
  685. .offset = offsetof(struct ipa_init_modem_driver_rsp,
  686. default_end_pt),
  687. },
  688. {
  689. .data_type = QMI_OPT_FLAG,
  690. .elem_len = 1,
  691. .elem_size =
  692. sizeof_field(struct ipa_init_modem_driver_rsp,
  693. modem_driver_init_pending_valid),
  694. .tlv_type = 0x12,
  695. .offset = offsetof(struct ipa_init_modem_driver_rsp,
  696. modem_driver_init_pending_valid),
  697. },
  698. {
  699. .data_type = QMI_UNSIGNED_1_BYTE,
  700. .elem_len = 1,
  701. .elem_size =
  702. sizeof_field(struct ipa_init_modem_driver_rsp,
  703. modem_driver_init_pending),
  704. .tlv_type = 0x12,
  705. .offset = offsetof(struct ipa_init_modem_driver_rsp,
  706. modem_driver_init_pending),
  707. },
  708. {
  709. .data_type = QMI_EOTI,
  710. },
  711. };