ip_multimedia_subsystem_private_service_v01.c 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /* Copyright (c) 2019-2020, The Linux Foundation. All rights reserved. */
  3. #include "ip_multimedia_subsystem_private_service_v01.h"
  4. static struct qmi_elem_info ims_private_service_header_value_v01_ei[] = {
  5. {
  6. .data_type = QMI_STRING,
  7. .elem_len = IMS_PRIVATE_SERVICE_HEADER_STR_LEN_V01 + 1,
  8. .elem_size = sizeof(char),
  9. .array_type = NO_ARRAY,
  10. .tlv_type = 0,
  11. .offset =
  12. offsetof(struct ims_private_service_header_value_v01, header),
  13. },
  14. {
  15. .data_type = QMI_STRING,
  16. .elem_len = IMS_PRIVATE_SERVICE_HEADER_STR_LEN_V01 + 1,
  17. .elem_size = sizeof(char),
  18. .array_type = NO_ARRAY,
  19. .tlv_type = 0,
  20. .offset =
  21. offsetof(struct ims_private_service_header_value_v01, value),
  22. },
  23. {
  24. .data_type = QMI_EOTI,
  25. .array_type = NO_ARRAY,
  26. .tlv_type = QMI_COMMON_TLV_TYPE,
  27. },
  28. };
  29. struct qmi_elem_info
  30. ims_private_service_subscribe_for_indications_req_msg_v01_ei[] = {
  31. {
  32. .data_type = QMI_OPT_FLAG,
  33. .elem_len = 1,
  34. .elem_size = sizeof(u8),
  35. .array_type = NO_ARRAY,
  36. .tlv_type = 0x10,
  37. .offset = offsetof(struct
  38. ims_private_service_subscribe_for_indications_req_msg_v01,
  39. mt_invite_valid),
  40. },
  41. {
  42. .data_type = QMI_UNSIGNED_1_BYTE,
  43. .elem_len = 1,
  44. .elem_size = sizeof(u8),
  45. .array_type = NO_ARRAY,
  46. .tlv_type = 0x10,
  47. .offset = offsetof(struct
  48. ims_private_service_subscribe_for_indications_req_msg_v01,
  49. mt_invite),
  50. },
  51. {
  52. .data_type = QMI_OPT_FLAG,
  53. .elem_len = 1,
  54. .elem_size = sizeof(u8),
  55. .array_type = NO_ARRAY,
  56. .tlv_type = 0x11,
  57. .offset = offsetof(struct
  58. ims_private_service_subscribe_for_indications_req_msg_v01,
  59. wfc_call_status_valid),
  60. },
  61. {
  62. .data_type = QMI_UNSIGNED_1_BYTE,
  63. .elem_len = 1,
  64. .elem_size = sizeof(u8),
  65. .array_type = NO_ARRAY,
  66. .tlv_type = 0x11,
  67. .offset = offsetof(struct
  68. ims_private_service_subscribe_for_indications_req_msg_v01,
  69. wfc_call_status),
  70. },
  71. {
  72. .data_type = QMI_EOTI,
  73. .array_type = NO_ARRAY,
  74. .tlv_type = QMI_COMMON_TLV_TYPE,
  75. },
  76. };
  77. struct qmi_elem_info
  78. ims_private_service_subscribe_for_indications_rsp_msg_v01_ei[] = {
  79. {
  80. .data_type = QMI_STRUCT,
  81. .elem_len = 1,
  82. .elem_size = sizeof(struct qmi_response_type_v01),
  83. .array_type = NO_ARRAY,
  84. .tlv_type = 0x02,
  85. .offset = offsetof(struct
  86. ims_private_service_subscribe_for_indications_rsp_msg_v01,
  87. resp),
  88. .ei_array = qmi_response_type_v01_ei,
  89. },
  90. {
  91. .data_type = QMI_EOTI,
  92. .array_type = NO_ARRAY,
  93. .tlv_type = QMI_COMMON_TLV_TYPE,
  94. },
  95. };
  96. struct qmi_elem_info ims_private_service_mt_invite_ind_msg_v01_ei[] = {
  97. {
  98. .data_type = QMI_SIGNED_4_BYTE_ENUM,
  99. .elem_len = 1,
  100. .elem_size = sizeof(enum ims_subscription_type_enum_v01),
  101. .array_type = NO_ARRAY,
  102. .tlv_type = 0x01,
  103. .offset =
  104. offsetof(struct ims_private_service_mt_invite_ind_msg_v01,
  105. subscription_type),
  106. },
  107. {
  108. .data_type = QMI_OPT_FLAG,
  109. .elem_len = 1,
  110. .elem_size = sizeof(u8),
  111. .array_type = NO_ARRAY,
  112. .tlv_type = 0x10,
  113. .offset =
  114. offsetof(struct ims_private_service_mt_invite_ind_msg_v01,
  115. iccid_valid),
  116. },
  117. {
  118. .data_type = QMI_STRING,
  119. .elem_len = IMS_PRIVATE_SERVICE_MAX_ICCID_LEN_V01 + 1,
  120. .elem_size = sizeof(char),
  121. .array_type = NO_ARRAY,
  122. .tlv_type = 0x10,
  123. .offset =
  124. offsetof(struct ims_private_service_mt_invite_ind_msg_v01,
  125. iccid),
  126. },
  127. {
  128. .data_type = QMI_OPT_FLAG,
  129. .elem_len = 1,
  130. .elem_size = sizeof(u8),
  131. .array_type = NO_ARRAY,
  132. .tlv_type = 0x11,
  133. .offset =
  134. offsetof(struct ims_private_service_mt_invite_ind_msg_v01,
  135. header_value_list_valid),
  136. },
  137. {
  138. .data_type = QMI_DATA_LEN,
  139. .elem_len = 1,
  140. .elem_size = sizeof(u8),
  141. .array_type = NO_ARRAY,
  142. .tlv_type = 0x11,
  143. .offset =
  144. offsetof(struct ims_private_service_mt_invite_ind_msg_v01,
  145. header_value_list_len),
  146. },
  147. {
  148. .data_type = QMI_STRUCT,
  149. .elem_len = IMS_PRIVATE_SERVICE_MAX_MT_INVITE_HEADERS_V01,
  150. .elem_size =
  151. sizeof(struct ims_private_service_header_value_v01),
  152. .array_type = VAR_LEN_ARRAY,
  153. .tlv_type = 0x11,
  154. .offset =
  155. offsetof(struct ims_private_service_mt_invite_ind_msg_v01,
  156. header_value_list),
  157. .ei_array = ims_private_service_header_value_v01_ei,
  158. },
  159. {
  160. .data_type = QMI_EOTI,
  161. .array_type = NO_ARRAY,
  162. .tlv_type = QMI_COMMON_TLV_TYPE,
  163. },
  164. };
  165. struct qmi_elem_info ims_private_service_wfc_call_status_ind_msg_v01_ei[] = {
  166. {
  167. .data_type = QMI_UNSIGNED_1_BYTE,
  168. .elem_len = 1,
  169. .elem_size = sizeof(u8),
  170. .array_type = NO_ARRAY,
  171. .tlv_type = 0x01,
  172. .offset =
  173. offsetof(struct ims_private_service_wfc_call_status_ind_msg_v01,
  174. wfc_call_active),
  175. },
  176. {
  177. .data_type = QMI_OPT_FLAG,
  178. .elem_len = 1,
  179. .elem_size = sizeof(u8),
  180. .array_type = NO_ARRAY,
  181. .tlv_type = 0x10,
  182. .offset =
  183. offsetof(struct ims_private_service_wfc_call_status_ind_msg_v01,
  184. all_wfc_calls_held_valid),
  185. },
  186. {
  187. .data_type = QMI_UNSIGNED_1_BYTE,
  188. .elem_len = 1,
  189. .elem_size = sizeof(u8),
  190. .array_type = NO_ARRAY,
  191. .tlv_type = 0x10,
  192. .offset =
  193. offsetof(struct ims_private_service_wfc_call_status_ind_msg_v01,
  194. all_wfc_calls_held),
  195. },
  196. {
  197. .data_type = QMI_OPT_FLAG,
  198. .elem_len = 1,
  199. .elem_size = sizeof(u8),
  200. .array_type = NO_ARRAY,
  201. .tlv_type = 0x11,
  202. .offset =
  203. offsetof(struct ims_private_service_wfc_call_status_ind_msg_v01,
  204. is_wfc_emergency_valid),
  205. },
  206. {
  207. .data_type = QMI_UNSIGNED_1_BYTE,
  208. .elem_len = 1,
  209. .elem_size = sizeof(u8),
  210. .array_type = NO_ARRAY,
  211. .tlv_type = 0x11,
  212. .offset =
  213. offsetof(struct ims_private_service_wfc_call_status_ind_msg_v01,
  214. is_wfc_emergency),
  215. },
  216. {
  217. .data_type = QMI_OPT_FLAG,
  218. .elem_len = 1,
  219. .elem_size = sizeof(u8),
  220. .array_type = NO_ARRAY,
  221. .tlv_type = 0x12,
  222. .offset =
  223. offsetof(struct ims_private_service_wfc_call_status_ind_msg_v01,
  224. twt_ims_start_valid),
  225. },
  226. {
  227. .data_type = QMI_UNSIGNED_8_BYTE,
  228. .elem_len = 1,
  229. .elem_size = sizeof(u64),
  230. .array_type = NO_ARRAY,
  231. .tlv_type = 0x12,
  232. .offset =
  233. offsetof(struct ims_private_service_wfc_call_status_ind_msg_v01,
  234. twt_ims_start),
  235. },
  236. {
  237. .data_type = QMI_OPT_FLAG,
  238. .elem_len = 1,
  239. .elem_size = sizeof(u8),
  240. .array_type = NO_ARRAY,
  241. .tlv_type = 0x13,
  242. .offset =
  243. offsetof(struct ims_private_service_wfc_call_status_ind_msg_v01,
  244. twt_ims_int_valid),
  245. },
  246. {
  247. .data_type = QMI_UNSIGNED_2_BYTE,
  248. .elem_len = 1,
  249. .elem_size = sizeof(u16),
  250. .array_type = NO_ARRAY,
  251. .tlv_type = 0x13,
  252. .offset =
  253. offsetof(struct ims_private_service_wfc_call_status_ind_msg_v01,
  254. twt_ims_int),
  255. },
  256. {
  257. .data_type = QMI_OPT_FLAG,
  258. .elem_len = 1,
  259. .elem_size = sizeof(u8),
  260. .array_type = NO_ARRAY,
  261. .tlv_type = 0x14,
  262. .offset =
  263. offsetof(struct ims_private_service_wfc_call_status_ind_msg_v01,
  264. media_quality_valid),
  265. },
  266. {
  267. .data_type = QMI_SIGNED_4_BYTE_ENUM,
  268. .elem_len = 1,
  269. .elem_size = sizeof(enum wfc_media_quality_v01),
  270. .array_type = NO_ARRAY,
  271. .tlv_type = 0x14,
  272. .offset =
  273. offsetof(struct ims_private_service_wfc_call_status_ind_msg_v01,
  274. media_quality),
  275. },
  276. {
  277. .data_type = QMI_EOTI,
  278. .array_type = NO_ARRAY,
  279. .tlv_type = QMI_COMMON_TLV_TYPE,
  280. },
  281. };
  282. struct qmi_elem_info
  283. ims_private_service_wfc_call_twt_config_req_msg_v01_ei[] = {
  284. {
  285. .data_type = QMI_OPT_FLAG,
  286. .elem_len = 1,
  287. .elem_size = sizeof(u8),
  288. .array_type = NO_ARRAY,
  289. .tlv_type = 0x10,
  290. .offset =
  291. offsetof(struct
  292. ims_private_service_wfc_call_twt_config_req_msg_v01,
  293. twt_sta_start_valid),
  294. },
  295. {
  296. .data_type = QMI_UNSIGNED_8_BYTE,
  297. .elem_len = 1,
  298. .elem_size = sizeof(u64),
  299. .array_type = NO_ARRAY,
  300. .tlv_type = 0x10,
  301. .offset =
  302. offsetof(struct
  303. ims_private_service_wfc_call_twt_config_req_msg_v01,
  304. twt_sta_start),
  305. },
  306. {
  307. .data_type = QMI_OPT_FLAG,
  308. .elem_len = 1,
  309. .elem_size = sizeof(u8),
  310. .array_type = NO_ARRAY,
  311. .tlv_type = 0x11,
  312. .offset =
  313. offsetof(struct
  314. ims_private_service_wfc_call_twt_config_req_msg_v01,
  315. twt_sta_int_valid),
  316. },
  317. {
  318. .data_type = QMI_UNSIGNED_2_BYTE,
  319. .elem_len = 1,
  320. .elem_size = sizeof(u16),
  321. .array_type = NO_ARRAY,
  322. .tlv_type = 0x11,
  323. .offset =
  324. offsetof(struct
  325. ims_private_service_wfc_call_twt_config_req_msg_v01,
  326. twt_sta_int),
  327. },
  328. {
  329. .data_type = QMI_OPT_FLAG,
  330. .elem_len = 1,
  331. .elem_size = sizeof(u8),
  332. .array_type = NO_ARRAY,
  333. .tlv_type = 0x12,
  334. .offset =
  335. offsetof(struct
  336. ims_private_service_wfc_call_twt_config_req_msg_v01,
  337. twt_sta_upo_valid),
  338. },
  339. {
  340. .data_type = QMI_UNSIGNED_2_BYTE,
  341. .elem_len = 1,
  342. .elem_size = sizeof(u16),
  343. .array_type = NO_ARRAY,
  344. .tlv_type = 0x12,
  345. .offset =
  346. offsetof(struct
  347. ims_private_service_wfc_call_twt_config_req_msg_v01,
  348. twt_sta_upo),
  349. },
  350. {
  351. .data_type = QMI_OPT_FLAG,
  352. .elem_len = 1,
  353. .elem_size = sizeof(u8),
  354. .array_type = NO_ARRAY,
  355. .tlv_type = 0x13,
  356. .offset =
  357. offsetof(struct
  358. ims_private_service_wfc_call_twt_config_req_msg_v01,
  359. twt_sta_sp_valid),
  360. },
  361. {
  362. .data_type = QMI_UNSIGNED_2_BYTE,
  363. .elem_len = 1,
  364. .elem_size = sizeof(u16),
  365. .array_type = NO_ARRAY,
  366. .tlv_type = 0x13,
  367. .offset =
  368. offsetof(struct
  369. ims_private_service_wfc_call_twt_config_req_msg_v01,
  370. twt_sta_sp),
  371. },
  372. {
  373. .data_type = QMI_OPT_FLAG,
  374. .elem_len = 1,
  375. .elem_size = sizeof(u8),
  376. .array_type = NO_ARRAY,
  377. .tlv_type = 0x14,
  378. .offset =
  379. offsetof(struct
  380. ims_private_service_wfc_call_twt_config_req_msg_v01,
  381. twt_sta_dl_valid),
  382. },
  383. {
  384. .data_type = QMI_UNSIGNED_2_BYTE,
  385. .elem_len = 1,
  386. .elem_size = sizeof(u16),
  387. .array_type = NO_ARRAY,
  388. .tlv_type = 0x14,
  389. .offset =
  390. offsetof(struct
  391. ims_private_service_wfc_call_twt_config_req_msg_v01,
  392. twt_sta_dl),
  393. },
  394. {
  395. .data_type = QMI_OPT_FLAG,
  396. .elem_len = 1,
  397. .elem_size = sizeof(u8),
  398. .array_type = NO_ARRAY,
  399. .tlv_type = 0x15,
  400. .offset =
  401. offsetof(struct
  402. ims_private_service_wfc_call_twt_config_req_msg_v01,
  403. twt_sta_config_changed_valid),
  404. },
  405. {
  406. .data_type = QMI_UNSIGNED_1_BYTE,
  407. .elem_len = 1,
  408. .elem_size = sizeof(u8),
  409. .array_type = NO_ARRAY,
  410. .tlv_type = 0x15,
  411. .offset =
  412. offsetof(struct
  413. ims_private_service_wfc_call_twt_config_req_msg_v01,
  414. twt_sta_config_changed),
  415. },
  416. {
  417. .data_type = QMI_EOTI,
  418. .array_type = NO_ARRAY,
  419. .tlv_type = QMI_COMMON_TLV_TYPE,
  420. },
  421. };
  422. struct qmi_elem_info
  423. ims_private_service_wfc_call_twt_config_rsp_msg_v01_ei[] = {
  424. {
  425. .data_type = QMI_STRUCT,
  426. .elem_len = 1,
  427. .elem_size = sizeof(struct qmi_response_type_v01),
  428. .array_type = NO_ARRAY,
  429. .tlv_type = 0x02,
  430. .offset =
  431. offsetof(struct
  432. ims_private_service_wfc_call_twt_config_rsp_msg_v01,
  433. resp),
  434. .ei_array = qmi_response_type_v01_ei,
  435. },
  436. {
  437. .data_type = QMI_EOTI,
  438. .array_type = NO_ARRAY,
  439. .tlv_type = QMI_COMMON_TLV_TYPE,
  440. },
  441. };