blob: 4dc04e62e187441d2bc0b0d43d8cb7cdbe4a3743 [file] [log] [blame]
Amit Pundird477f822020-02-07 22:26:08 +05301package servreg_loc;
2
3const SERVREG_QMI_SERVICE = 0x40;
4const SERVREG_QMI_VERSION = 0x101;
5const SERVREG_QMI_INSTANCE = 0x0;
6
7const QMI_RESULT_SUCCESS = 0;
8const QMI_RESULT_FAILURE = 1;
9
10const QMI_ERR_NONE = 0;
11const QMI_ERR_INTERNAL = 1;
12const QMI_ERR_MALFORMED_MSG = 2;
13
14const SERVREG_LOC_GET_DOMAIN_LIST = 0x21;
15const SERVREG_LOC_PFR = 0x24;
16
17struct qmi_result {
18 u16 result;
19 u16 error;
20};
21
22struct domain_list_entry {
23 string name;
24 u32 instance_id;
25 u8 service_data_valid;
26 u32 service_data;
27};
28
29request get_domain_list_req {
30 required string name = 1;
31 optional u32 offset = 0x10;
32} = 0x20;
33
34response 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
41request pfr_req {
42 required string service = 1;
43 required string reason = 2;
44} = 0x24;
45
46response pfr_resp {
47 required qmi_result result = 2;
48} = 0x24;