wlan_firmware_service_v01.h 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572
  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. #ifndef WLAN_FIRMWARE_SERVICE_V01_H
  14. #define WLAN_FIRMWARE_SERVICE_V01_H
  15. #define WLFW_SERVICE_ID_V01 0x45
  16. #define WLFW_SERVICE_VERS_V01 0x01
  17. #define QMI_WLFW_BDF_DOWNLOAD_REQ_V01 0x0025
  18. #define QMI_WLFW_FW_MEM_READY_IND_V01 0x0037
  19. #define QMI_WLFW_INITIATE_CAL_UPDATE_IND_V01 0x002A
  20. #define QMI_WLFW_HOST_CAP_REQ_V01 0x0034
  21. #define QMI_WLFW_DYNAMIC_FEATURE_MASK_RESP_V01 0x003B
  22. #define QMI_WLFW_CAP_REQ_V01 0x0024
  23. #define QMI_WLFW_CAL_REPORT_REQ_V01 0x0026
  24. #define QMI_WLFW_CAL_UPDATE_RESP_V01 0x0029
  25. #define QMI_WLFW_CAL_DOWNLOAD_RESP_V01 0x0027
  26. #define QMI_WLFW_INI_RESP_V01 0x002F
  27. #define QMI_WLFW_CAL_REPORT_RESP_V01 0x0026
  28. #define QMI_WLFW_MAC_ADDR_RESP_V01 0x0033
  29. #define QMI_WLFW_INITIATE_CAL_DOWNLOAD_IND_V01 0x0028
  30. #define QMI_WLFW_HOST_CAP_RESP_V01 0x0034
  31. #define QMI_WLFW_MSA_READY_IND_V01 0x002B
  32. #define QMI_WLFW_ATHDIAG_WRITE_RESP_V01 0x0031
  33. #define QMI_WLFW_WLAN_MODE_REQ_V01 0x0022
  34. #define QMI_WLFW_IND_REGISTER_REQ_V01 0x0020
  35. #define QMI_WLFW_WLAN_CFG_RESP_V01 0x0023
  36. #define QMI_WLFW_COLD_BOOT_CAL_DONE_IND_V01 0x0038
  37. #define QMI_WLFW_REQUEST_MEM_IND_V01 0x0035
  38. #define QMI_WLFW_REJUVENATE_IND_V01 0x0039
  39. #define QMI_WLFW_DYNAMIC_FEATURE_MASK_REQ_V01 0x003B
  40. #define QMI_WLFW_ATHDIAG_WRITE_REQ_V01 0x0031
  41. #define QMI_WLFW_WLAN_MODE_RESP_V01 0x0022
  42. #define QMI_WLFW_RESPOND_MEM_REQ_V01 0x0036
  43. #define QMI_WLFW_PIN_CONNECT_RESULT_IND_V01 0x002C
  44. #define QMI_WLFW_FW_READY_IND_V01 0x0021
  45. #define QMI_WLFW_MSA_READY_RESP_V01 0x002E
  46. #define QMI_WLFW_CAL_UPDATE_REQ_V01 0x0029
  47. #define QMI_WLFW_INI_REQ_V01 0x002F
  48. #define QMI_WLFW_BDF_DOWNLOAD_RESP_V01 0x0025
  49. #define QMI_WLFW_REJUVENATE_ACK_RESP_V01 0x003A
  50. #define QMI_WLFW_MSA_INFO_RESP_V01 0x002D
  51. #define QMI_WLFW_MSA_READY_REQ_V01 0x002E
  52. #define QMI_WLFW_CAP_RESP_V01 0x0024
  53. #define QMI_WLFW_REJUVENATE_ACK_REQ_V01 0x003A
  54. #define QMI_WLFW_ATHDIAG_READ_RESP_V01 0x0030
  55. #define QMI_WLFW_VBATT_REQ_V01 0x0032
  56. #define QMI_WLFW_MAC_ADDR_REQ_V01 0x0033
  57. #define QMI_WLFW_RESPOND_MEM_RESP_V01 0x0036
  58. #define QMI_WLFW_VBATT_RESP_V01 0x0032
  59. #define QMI_WLFW_MSA_INFO_REQ_V01 0x002D
  60. #define QMI_WLFW_CAL_DOWNLOAD_REQ_V01 0x0027
  61. #define QMI_WLFW_ATHDIAG_READ_REQ_V01 0x0030
  62. #define QMI_WLFW_WLAN_CFG_REQ_V01 0x0023
  63. #define QMI_WLFW_IND_REGISTER_RESP_V01 0x0020
  64. #define QMI_WLFW_MAX_NUM_MEMORY_REGIONS_V01 2
  65. #define QMI_WLFW_MAX_NUM_CAL_V01 5
  66. #define QMI_WLFW_MAX_DATA_SIZE_V01 6144
  67. #define QMI_WLFW_FUNCTION_NAME_LEN_V01 128
  68. #define QMI_WLFW_MAX_NUM_CE_V01 12
  69. #define QMI_WLFW_MAX_TIMESTAMP_LEN_V01 32
  70. #define QMI_WLFW_MAX_BUILD_ID_LEN_V01 128
  71. #define QMI_WLFW_MAX_STR_LEN_V01 16
  72. #define QMI_WLFW_MAX_NUM_SHADOW_REG_V01 24
  73. #define QMI_WLFW_MAC_ADDR_SIZE_V01 6
  74. #define QMI_WLFW_MAX_NUM_SHADOW_REG_V2_V01 36
  75. #define QMI_WLFW_MAX_NUM_SVC_V01 24
  76. enum wlfw_driver_mode_enum_v01 {
  77. WLFW_DRIVER_MODE_ENUM_MIN_VAL_V01 = INT_MIN,
  78. QMI_WLFW_MISSION_V01 = 0,
  79. QMI_WLFW_FTM_V01 = 1,
  80. QMI_WLFW_EPPING_V01 = 2,
  81. QMI_WLFW_WALTEST_V01 = 3,
  82. QMI_WLFW_OFF_V01 = 4,
  83. QMI_WLFW_CCPM_V01 = 5,
  84. QMI_WLFW_QVIT_V01 = 6,
  85. QMI_WLFW_CALIBRATION_V01 = 7,
  86. WLFW_DRIVER_MODE_ENUM_MAX_VAL_V01 = INT_MAX,
  87. };
  88. enum wlfw_cal_temp_id_enum_v01 {
  89. WLFW_CAL_TEMP_ID_ENUM_MIN_VAL_V01 = INT_MIN,
  90. QMI_WLFW_CAL_TEMP_IDX_0_V01 = 0,
  91. QMI_WLFW_CAL_TEMP_IDX_1_V01 = 1,
  92. QMI_WLFW_CAL_TEMP_IDX_2_V01 = 2,
  93. QMI_WLFW_CAL_TEMP_IDX_3_V01 = 3,
  94. QMI_WLFW_CAL_TEMP_IDX_4_V01 = 4,
  95. WLFW_CAL_TEMP_ID_ENUM_MAX_VAL_V01 = INT_MAX,
  96. };
  97. enum wlfw_pipedir_enum_v01 {
  98. WLFW_PIPEDIR_ENUM_MIN_VAL_V01 = INT_MIN,
  99. QMI_WLFW_PIPEDIR_NONE_V01 = 0,
  100. QMI_WLFW_PIPEDIR_IN_V01 = 1,
  101. QMI_WLFW_PIPEDIR_OUT_V01 = 2,
  102. QMI_WLFW_PIPEDIR_INOUT_V01 = 3,
  103. WLFW_PIPEDIR_ENUM_MAX_VAL_V01 = INT_MAX,
  104. };
  105. #define QMI_WLFW_CE_ATTR_FLAGS_V01 ((uint32_t)0x00)
  106. #define QMI_WLFW_CE_ATTR_NO_SNOOP_V01 ((uint32_t)0x01)
  107. #define QMI_WLFW_CE_ATTR_BYTE_SWAP_DATA_V01 ((uint32_t)0x02)
  108. #define QMI_WLFW_CE_ATTR_SWIZZLE_DESCRIPTORS_V01 ((uint32_t)0x04)
  109. #define QMI_WLFW_CE_ATTR_DISABLE_INTR_V01 ((uint32_t)0x08)
  110. #define QMI_WLFW_CE_ATTR_ENABLE_POLL_V01 ((uint32_t)0x10)
  111. #define QMI_WLFW_ALREADY_REGISTERED_V01 ((uint64_t)0x01ULL)
  112. #define QMI_WLFW_FW_READY_V01 ((uint64_t)0x02ULL)
  113. #define QMI_WLFW_MSA_READY_V01 ((uint64_t)0x04ULL)
  114. #define QMI_WLFW_FW_MEM_READY_V01 ((uint64_t)0x08ULL)
  115. #define QMI_WLFW_FW_REJUVENATE_V01 ((uint64_t)0x01ULL)
  116. struct wlfw_ce_tgt_pipe_cfg_s_v01 {
  117. uint32_t pipe_num;
  118. enum wlfw_pipedir_enum_v01 pipe_dir;
  119. uint32_t nentries;
  120. uint32_t nbytes_max;
  121. uint32_t flags;
  122. };
  123. struct wlfw_ce_svc_pipe_cfg_s_v01 {
  124. uint32_t service_id;
  125. enum wlfw_pipedir_enum_v01 pipe_dir;
  126. uint32_t pipe_num;
  127. };
  128. struct wlfw_shadow_reg_cfg_s_v01 {
  129. uint16_t id;
  130. uint16_t offset;
  131. };
  132. struct wlfw_shadow_reg_v2_cfg_s_v01 {
  133. uint32_t addr;
  134. };
  135. struct wlfw_memory_region_info_s_v01 {
  136. uint64_t region_addr;
  137. uint32_t size;
  138. uint8_t secure_flag;
  139. };
  140. struct wlfw_rf_chip_info_s_v01 {
  141. uint32_t chip_id;
  142. uint32_t chip_family;
  143. };
  144. struct wlfw_rf_board_info_s_v01 {
  145. uint32_t board_id;
  146. };
  147. struct wlfw_soc_info_s_v01 {
  148. uint32_t soc_id;
  149. };
  150. struct wlfw_fw_version_info_s_v01 {
  151. uint32_t fw_version;
  152. char fw_build_timestamp[QMI_WLFW_MAX_TIMESTAMP_LEN_V01 + 1];
  153. };
  154. struct wlfw_ind_register_req_msg_v01 {
  155. uint8_t fw_ready_enable_valid;
  156. uint8_t fw_ready_enable;
  157. uint8_t initiate_cal_download_enable_valid;
  158. uint8_t initiate_cal_download_enable;
  159. uint8_t initiate_cal_update_enable_valid;
  160. uint8_t initiate_cal_update_enable;
  161. uint8_t msa_ready_enable_valid;
  162. uint8_t msa_ready_enable;
  163. uint8_t pin_connect_result_enable_valid;
  164. uint8_t pin_connect_result_enable;
  165. uint8_t client_id_valid;
  166. uint32_t client_id;
  167. uint8_t request_mem_enable_valid;
  168. uint8_t request_mem_enable;
  169. uint8_t fw_mem_ready_enable_valid;
  170. uint8_t fw_mem_ready_enable;
  171. uint8_t cold_boot_cal_done_enable_valid;
  172. uint8_t cold_boot_cal_done_enable;
  173. uint8_t rejuvenate_enable_valid;
  174. uint32_t rejuvenate_enable;
  175. };
  176. #define WLFW_IND_REGISTER_REQ_MSG_V01_MAX_MSG_LEN 46
  177. extern struct elem_info wlfw_ind_register_req_msg_v01_ei[];
  178. struct wlfw_ind_register_resp_msg_v01 {
  179. struct qmi_response_type_v01 resp;
  180. uint8_t fw_status_valid;
  181. uint64_t fw_status;
  182. };
  183. #define WLFW_IND_REGISTER_RESP_MSG_V01_MAX_MSG_LEN 18
  184. extern struct elem_info wlfw_ind_register_resp_msg_v01_ei[];
  185. struct wlfw_fw_ready_ind_msg_v01 {
  186. char placeholder;
  187. };
  188. #define WLFW_FW_READY_IND_MSG_V01_MAX_MSG_LEN 0
  189. extern struct elem_info wlfw_fw_ready_ind_msg_v01_ei[];
  190. struct wlfw_msa_ready_ind_msg_v01 {
  191. char placeholder;
  192. };
  193. #define WLFW_MSA_READY_IND_MSG_V01_MAX_MSG_LEN 0
  194. extern struct elem_info wlfw_msa_ready_ind_msg_v01_ei[];
  195. struct wlfw_pin_connect_result_ind_msg_v01 {
  196. uint8_t pwr_pin_result_valid;
  197. uint32_t pwr_pin_result;
  198. uint8_t phy_io_pin_result_valid;
  199. uint32_t phy_io_pin_result;
  200. uint8_t rf_pin_result_valid;
  201. uint32_t rf_pin_result;
  202. };
  203. #define WLFW_PIN_CONNECT_RESULT_IND_MSG_V01_MAX_MSG_LEN 21
  204. extern struct elem_info wlfw_pin_connect_result_ind_msg_v01_ei[];
  205. struct wlfw_wlan_mode_req_msg_v01 {
  206. enum wlfw_driver_mode_enum_v01 mode;
  207. uint8_t hw_debug_valid;
  208. uint8_t hw_debug;
  209. };
  210. #define WLFW_WLAN_MODE_REQ_MSG_V01_MAX_MSG_LEN 11
  211. extern struct elem_info wlfw_wlan_mode_req_msg_v01_ei[];
  212. struct wlfw_wlan_mode_resp_msg_v01 {
  213. struct qmi_response_type_v01 resp;
  214. };
  215. #define WLFW_WLAN_MODE_RESP_MSG_V01_MAX_MSG_LEN 7
  216. extern struct elem_info wlfw_wlan_mode_resp_msg_v01_ei[];
  217. struct wlfw_wlan_cfg_req_msg_v01 {
  218. uint8_t host_version_valid;
  219. char host_version[QMI_WLFW_MAX_STR_LEN_V01 + 1];
  220. uint8_t tgt_cfg_valid;
  221. uint32_t tgt_cfg_len;
  222. struct wlfw_ce_tgt_pipe_cfg_s_v01 tgt_cfg[QMI_WLFW_MAX_NUM_CE_V01];
  223. uint8_t svc_cfg_valid;
  224. uint32_t svc_cfg_len;
  225. struct wlfw_ce_svc_pipe_cfg_s_v01 svc_cfg[QMI_WLFW_MAX_NUM_SVC_V01];
  226. uint8_t shadow_reg_valid;
  227. uint32_t shadow_reg_len;
  228. struct wlfw_shadow_reg_cfg_s_v01
  229. shadow_reg[QMI_WLFW_MAX_NUM_SHADOW_REG_V01];
  230. uint8_t shadow_reg_v2_valid;
  231. uint32_t shadow_reg_v2_len;
  232. struct wlfw_shadow_reg_v2_cfg_s_v01
  233. shadow_reg_v2[QMI_WLFW_MAX_NUM_SHADOW_REG_V2_V01];
  234. };
  235. #define WLFW_WLAN_CFG_REQ_MSG_V01_MAX_MSG_LEN 803
  236. extern struct elem_info wlfw_wlan_cfg_req_msg_v01_ei[];
  237. struct wlfw_wlan_cfg_resp_msg_v01 {
  238. struct qmi_response_type_v01 resp;
  239. };
  240. #define WLFW_WLAN_CFG_RESP_MSG_V01_MAX_MSG_LEN 7
  241. extern struct elem_info wlfw_wlan_cfg_resp_msg_v01_ei[];
  242. struct wlfw_cap_req_msg_v01 {
  243. char placeholder;
  244. };
  245. #define WLFW_CAP_REQ_MSG_V01_MAX_MSG_LEN 0
  246. extern struct elem_info wlfw_cap_req_msg_v01_ei[];
  247. struct wlfw_cap_resp_msg_v01 {
  248. struct qmi_response_type_v01 resp;
  249. uint8_t chip_info_valid;
  250. struct wlfw_rf_chip_info_s_v01 chip_info;
  251. uint8_t board_info_valid;
  252. struct wlfw_rf_board_info_s_v01 board_info;
  253. uint8_t soc_info_valid;
  254. struct wlfw_soc_info_s_v01 soc_info;
  255. uint8_t fw_version_info_valid;
  256. struct wlfw_fw_version_info_s_v01 fw_version_info;
  257. uint8_t fw_build_id_valid;
  258. char fw_build_id[QMI_WLFW_MAX_BUILD_ID_LEN_V01 + 1];
  259. };
  260. #define WLFW_CAP_RESP_MSG_V01_MAX_MSG_LEN 203
  261. extern struct elem_info wlfw_cap_resp_msg_v01_ei[];
  262. struct wlfw_bdf_download_req_msg_v01 {
  263. uint8_t valid;
  264. uint8_t file_id_valid;
  265. enum wlfw_cal_temp_id_enum_v01 file_id;
  266. uint8_t total_size_valid;
  267. uint32_t total_size;
  268. uint8_t seg_id_valid;
  269. uint32_t seg_id;
  270. uint8_t data_valid;
  271. uint32_t data_len;
  272. uint8_t data[QMI_WLFW_MAX_DATA_SIZE_V01];
  273. uint8_t end_valid;
  274. uint8_t end;
  275. };
  276. #define WLFW_BDF_DOWNLOAD_REQ_MSG_V01_MAX_MSG_LEN 6178
  277. extern struct elem_info wlfw_bdf_download_req_msg_v01_ei[];
  278. struct wlfw_bdf_download_resp_msg_v01 {
  279. struct qmi_response_type_v01 resp;
  280. };
  281. #define WLFW_BDF_DOWNLOAD_RESP_MSG_V01_MAX_MSG_LEN 7
  282. extern struct elem_info wlfw_bdf_download_resp_msg_v01_ei[];
  283. struct wlfw_cal_report_req_msg_v01 {
  284. uint32_t meta_data_len;
  285. enum wlfw_cal_temp_id_enum_v01 meta_data[QMI_WLFW_MAX_NUM_CAL_V01];
  286. };
  287. #define WLFW_CAL_REPORT_REQ_MSG_V01_MAX_MSG_LEN 24
  288. extern struct elem_info wlfw_cal_report_req_msg_v01_ei[];
  289. struct wlfw_cal_report_resp_msg_v01 {
  290. struct qmi_response_type_v01 resp;
  291. };
  292. #define WLFW_CAL_REPORT_RESP_MSG_V01_MAX_MSG_LEN 7
  293. extern struct elem_info wlfw_cal_report_resp_msg_v01_ei[];
  294. struct wlfw_initiate_cal_download_ind_msg_v01 {
  295. enum wlfw_cal_temp_id_enum_v01 cal_id;
  296. };
  297. #define WLFW_INITIATE_CAL_DOWNLOAD_IND_MSG_V01_MAX_MSG_LEN 7
  298. extern struct elem_info wlfw_initiate_cal_download_ind_msg_v01_ei[];
  299. struct wlfw_cal_download_req_msg_v01 {
  300. uint8_t valid;
  301. uint8_t file_id_valid;
  302. enum wlfw_cal_temp_id_enum_v01 file_id;
  303. uint8_t total_size_valid;
  304. uint32_t total_size;
  305. uint8_t seg_id_valid;
  306. uint32_t seg_id;
  307. uint8_t data_valid;
  308. uint32_t data_len;
  309. uint8_t data[QMI_WLFW_MAX_DATA_SIZE_V01];
  310. uint8_t end_valid;
  311. uint8_t end;
  312. };
  313. #define WLFW_CAL_DOWNLOAD_REQ_MSG_V01_MAX_MSG_LEN 6178
  314. extern struct elem_info wlfw_cal_download_req_msg_v01_ei[];
  315. struct wlfw_cal_download_resp_msg_v01 {
  316. struct qmi_response_type_v01 resp;
  317. };
  318. #define WLFW_CAL_DOWNLOAD_RESP_MSG_V01_MAX_MSG_LEN 7
  319. extern struct elem_info wlfw_cal_download_resp_msg_v01_ei[];
  320. struct wlfw_initiate_cal_update_ind_msg_v01 {
  321. enum wlfw_cal_temp_id_enum_v01 cal_id;
  322. uint32_t total_size;
  323. };
  324. #define WLFW_INITIATE_CAL_UPDATE_IND_MSG_V01_MAX_MSG_LEN 14
  325. extern struct elem_info wlfw_initiate_cal_update_ind_msg_v01_ei[];
  326. struct wlfw_cal_update_req_msg_v01 {
  327. enum wlfw_cal_temp_id_enum_v01 cal_id;
  328. uint32_t seg_id;
  329. };
  330. #define WLFW_CAL_UPDATE_REQ_MSG_V01_MAX_MSG_LEN 14
  331. extern struct elem_info wlfw_cal_update_req_msg_v01_ei[];
  332. struct wlfw_cal_update_resp_msg_v01 {
  333. struct qmi_response_type_v01 resp;
  334. uint8_t file_id_valid;
  335. enum wlfw_cal_temp_id_enum_v01 file_id;
  336. uint8_t total_size_valid;
  337. uint32_t total_size;
  338. uint8_t seg_id_valid;
  339. uint32_t seg_id;
  340. uint8_t data_valid;
  341. uint32_t data_len;
  342. uint8_t data[QMI_WLFW_MAX_DATA_SIZE_V01];
  343. uint8_t end_valid;
  344. uint8_t end;
  345. };
  346. #define WLFW_CAL_UPDATE_RESP_MSG_V01_MAX_MSG_LEN 6181
  347. extern struct elem_info wlfw_cal_update_resp_msg_v01_ei[];
  348. struct wlfw_msa_info_req_msg_v01 {
  349. uint64_t msa_addr;
  350. uint32_t size;
  351. };
  352. #define WLFW_MSA_INFO_REQ_MSG_V01_MAX_MSG_LEN 18
  353. extern struct elem_info wlfw_msa_info_req_msg_v01_ei[];
  354. struct wlfw_msa_info_resp_msg_v01 {
  355. struct qmi_response_type_v01 resp;
  356. uint32_t mem_region_info_len;
  357. struct wlfw_memory_region_info_s_v01
  358. mem_region_info[QMI_WLFW_MAX_NUM_MEMORY_REGIONS_V01];
  359. };
  360. #define WLFW_MSA_INFO_RESP_MSG_V01_MAX_MSG_LEN 37
  361. extern struct elem_info wlfw_msa_info_resp_msg_v01_ei[];
  362. struct wlfw_msa_ready_req_msg_v01 {
  363. char placeholder;
  364. };
  365. #define WLFW_MSA_READY_REQ_MSG_V01_MAX_MSG_LEN 0
  366. extern struct elem_info wlfw_msa_ready_req_msg_v01_ei[];
  367. struct wlfw_msa_ready_resp_msg_v01 {
  368. struct qmi_response_type_v01 resp;
  369. };
  370. #define WLFW_MSA_READY_RESP_MSG_V01_MAX_MSG_LEN 7
  371. extern struct elem_info wlfw_msa_ready_resp_msg_v01_ei[];
  372. struct wlfw_ini_req_msg_v01 {
  373. uint8_t enablefwlog_valid;
  374. uint8_t enablefwlog;
  375. };
  376. #define WLFW_INI_REQ_MSG_V01_MAX_MSG_LEN 4
  377. extern struct elem_info wlfw_ini_req_msg_v01_ei[];
  378. struct wlfw_ini_resp_msg_v01 {
  379. struct qmi_response_type_v01 resp;
  380. };
  381. #define WLFW_INI_RESP_MSG_V01_MAX_MSG_LEN 7
  382. extern struct elem_info wlfw_ini_resp_msg_v01_ei[];
  383. struct wlfw_athdiag_read_req_msg_v01 {
  384. uint32_t offset;
  385. uint32_t mem_type;
  386. uint32_t data_len;
  387. };
  388. #define WLFW_ATHDIAG_READ_REQ_MSG_V01_MAX_MSG_LEN 21
  389. extern struct elem_info wlfw_athdiag_read_req_msg_v01_ei[];
  390. struct wlfw_athdiag_read_resp_msg_v01 {
  391. struct qmi_response_type_v01 resp;
  392. uint8_t data_valid;
  393. uint32_t data_len;
  394. uint8_t data[QMI_WLFW_MAX_DATA_SIZE_V01];
  395. };
  396. #define WLFW_ATHDIAG_READ_RESP_MSG_V01_MAX_MSG_LEN 6156
  397. extern struct elem_info wlfw_athdiag_read_resp_msg_v01_ei[];
  398. struct wlfw_athdiag_write_req_msg_v01 {
  399. uint32_t offset;
  400. uint32_t mem_type;
  401. uint32_t data_len;
  402. uint8_t data[QMI_WLFW_MAX_DATA_SIZE_V01];
  403. };
  404. #define WLFW_ATHDIAG_WRITE_REQ_MSG_V01_MAX_MSG_LEN 6163
  405. extern struct elem_info wlfw_athdiag_write_req_msg_v01_ei[];
  406. struct wlfw_athdiag_write_resp_msg_v01 {
  407. struct qmi_response_type_v01 resp;
  408. };
  409. #define WLFW_ATHDIAG_WRITE_RESP_MSG_V01_MAX_MSG_LEN 7
  410. extern struct elem_info wlfw_athdiag_write_resp_msg_v01_ei[];
  411. struct wlfw_vbatt_req_msg_v01 {
  412. uint64_t voltage_uv;
  413. };
  414. #define WLFW_VBATT_REQ_MSG_V01_MAX_MSG_LEN 11
  415. extern struct elem_info wlfw_vbatt_req_msg_v01_ei[];
  416. struct wlfw_vbatt_resp_msg_v01 {
  417. struct qmi_response_type_v01 resp;
  418. };
  419. #define WLFW_VBATT_RESP_MSG_V01_MAX_MSG_LEN 7
  420. extern struct elem_info wlfw_vbatt_resp_msg_v01_ei[];
  421. struct wlfw_mac_addr_req_msg_v01 {
  422. uint8_t mac_addr_valid;
  423. uint8_t mac_addr[QMI_WLFW_MAC_ADDR_SIZE_V01];
  424. };
  425. #define WLFW_MAC_ADDR_REQ_MSG_V01_MAX_MSG_LEN 9
  426. extern struct elem_info wlfw_mac_addr_req_msg_v01_ei[];
  427. struct wlfw_mac_addr_resp_msg_v01 {
  428. struct qmi_response_type_v01 resp;
  429. };
  430. #define WLFW_MAC_ADDR_RESP_MSG_V01_MAX_MSG_LEN 7
  431. extern struct elem_info wlfw_mac_addr_resp_msg_v01_ei[];
  432. struct wlfw_host_cap_req_msg_v01 {
  433. uint8_t daemon_support_valid;
  434. uint8_t daemon_support;
  435. };
  436. #define WLFW_HOST_CAP_REQ_MSG_V01_MAX_MSG_LEN 4
  437. extern struct elem_info wlfw_host_cap_req_msg_v01_ei[];
  438. struct wlfw_host_cap_resp_msg_v01 {
  439. struct qmi_response_type_v01 resp;
  440. };
  441. #define WLFW_HOST_CAP_RESP_MSG_V01_MAX_MSG_LEN 7
  442. extern struct elem_info wlfw_host_cap_resp_msg_v01_ei[];
  443. struct wlfw_request_mem_ind_msg_v01 {
  444. uint32_t size;
  445. };
  446. #define WLFW_REQUEST_MEM_IND_MSG_V01_MAX_MSG_LEN 7
  447. extern struct elem_info wlfw_request_mem_ind_msg_v01_ei[];
  448. struct wlfw_respond_mem_req_msg_v01 {
  449. uint64_t addr;
  450. uint32_t size;
  451. };
  452. #define WLFW_RESPOND_MEM_REQ_MSG_V01_MAX_MSG_LEN 18
  453. extern struct elem_info wlfw_respond_mem_req_msg_v01_ei[];
  454. struct wlfw_respond_mem_resp_msg_v01 {
  455. struct qmi_response_type_v01 resp;
  456. };
  457. #define WLFW_RESPOND_MEM_RESP_MSG_V01_MAX_MSG_LEN 7
  458. extern struct elem_info wlfw_respond_mem_resp_msg_v01_ei[];
  459. struct wlfw_fw_mem_ready_ind_msg_v01 {
  460. char placeholder;
  461. };
  462. #define WLFW_FW_MEM_READY_IND_MSG_V01_MAX_MSG_LEN 0
  463. extern struct elem_info wlfw_fw_mem_ready_ind_msg_v01_ei[];
  464. struct wlfw_cold_boot_cal_done_ind_msg_v01 {
  465. char placeholder;
  466. };
  467. #define WLFW_COLD_BOOT_CAL_DONE_IND_MSG_V01_MAX_MSG_LEN 0
  468. extern struct elem_info wlfw_cold_boot_cal_done_ind_msg_v01_ei[];
  469. struct wlfw_rejuvenate_ind_msg_v01 {
  470. uint8_t cause_for_rejuvenation_valid;
  471. uint8_t cause_for_rejuvenation;
  472. uint8_t requesting_sub_system_valid;
  473. uint8_t requesting_sub_system;
  474. uint8_t line_number_valid;
  475. uint16_t line_number;
  476. uint8_t function_name_valid;
  477. char function_name[QMI_WLFW_FUNCTION_NAME_LEN_V01 + 1];
  478. };
  479. #define WLFW_REJUVENATE_IND_MSG_V01_MAX_MSG_LEN 144
  480. extern struct elem_info wlfw_rejuvenate_ind_msg_v01_ei[];
  481. struct wlfw_rejuvenate_ack_req_msg_v01 {
  482. char placeholder;
  483. };
  484. #define WLFW_REJUVENATE_ACK_REQ_MSG_V01_MAX_MSG_LEN 0
  485. extern struct elem_info wlfw_rejuvenate_ack_req_msg_v01_ei[];
  486. struct wlfw_rejuvenate_ack_resp_msg_v01 {
  487. struct qmi_response_type_v01 resp;
  488. };
  489. #define WLFW_REJUVENATE_ACK_RESP_MSG_V01_MAX_MSG_LEN 7
  490. extern struct elem_info wlfw_rejuvenate_ack_resp_msg_v01_ei[];
  491. struct wlfw_dynamic_feature_mask_req_msg_v01 {
  492. uint8_t mask_valid;
  493. uint64_t mask;
  494. };
  495. #define WLFW_DYNAMIC_FEATURE_MASK_REQ_MSG_V01_MAX_MSG_LEN 11
  496. extern struct elem_info wlfw_dynamic_feature_mask_req_msg_v01_ei[];
  497. struct wlfw_dynamic_feature_mask_resp_msg_v01 {
  498. struct qmi_response_type_v01 resp;
  499. uint8_t prev_mask_valid;
  500. uint64_t prev_mask;
  501. uint8_t curr_mask_valid;
  502. uint64_t curr_mask;
  503. };
  504. #define WLFW_DYNAMIC_FEATURE_MASK_RESP_MSG_V01_MAX_MSG_LEN 29
  505. extern struct elem_info wlfw_dynamic_feature_mask_resp_msg_v01_ei[];
  506. #endif