Amit Pundir | 33109f7 | 2020-02-07 22:26:08 +0530 | [diff] [blame] | 1 | package servreg_loc; |
| 2 | |
| 3 | const SERVREG_QMI_SERVICE = 0x40; |
| 4 | const SERVREG_QMI_VERSION = 0x101; |
| 5 | const SERVREG_QMI_INSTANCE = 0x0; |
| 6 | |
| 7 | const QMI_RESULT_SUCCESS = 0; |
| 8 | const QMI_RESULT_FAILURE = 1; |
| 9 | |
| 10 | const QMI_ERR_NONE = 0; |
| 11 | const QMI_ERR_INTERNAL = 1; |
| 12 | const QMI_ERR_MALFORMED_MSG = 2; |
| 13 | |
| 14 | const SERVREG_LOC_GET_DOMAIN_LIST = 0x21; |
| 15 | const SERVREG_LOC_PFR = 0x24; |
| 16 | |
| 17 | struct qmi_result { |
| 18 | u16 result; |
| 19 | u16 error; |
| 20 | }; |
| 21 | |
| 22 | struct domain_list_entry { |
| 23 | string name; |
| 24 | u32 instance_id; |
| 25 | u8 service_data_valid; |
| 26 | u32 service_data; |
| 27 | }; |
| 28 | |
| 29 | request get_domain_list_req { |
| 30 | required string name = 1; |
| 31 | optional u32 offset = 0x10; |
| 32 | } = 0x20; |
| 33 | |
| 34 | response get_domain_list_resp { |
| 35 | required qmi_result result = 2; |
| 36 | optional u16 total_domains = 0x10; |
| 37 | optional u16 db_revision = 0x11; |
| 38 | optional domain_list_entry domain_list[255] = 0x12; |
| 39 | } = 0x20; |
| 40 | |
| 41 | request pfr_req { |
| 42 | required string service = 1; |
| 43 | required string reason = 2; |
| 44 | } = 0x24; |
| 45 | |
| 46 | response pfr_resp { |
| 47 | required qmi_result result = 2; |
| 48 | } = 0x24; |