blob: b04c913c42956a28f7cae1d179a3ba8c77a06aa2 [file] [log] [blame]
Nikhilesh Reddybc69c702015-06-01 16:08:32 -07001 /* Copyright (c) 2014-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#include <linux/qmi_encdec.h>
14
15#include <soc/qcom/msm_qmi_interface.h>
16
17#include "remote_filesystem_access_v01.h"
18
19struct elem_info rfsa_get_buff_addr_req_msg_v01_ei[] = {
20 {
21 .data_type = QMI_UNSIGNED_4_BYTE,
22 .elem_len = 1,
23 .elem_size = sizeof(uint32_t),
24 .is_array = NO_ARRAY,
25 .tlv_type = 0x01,
26 .offset = offsetof(struct rfsa_get_buff_addr_req_msg_v01,
27 client_id),
28 },
29 {
30 .data_type = QMI_UNSIGNED_4_BYTE,
31 .elem_len = 1,
32 .elem_size = sizeof(uint32_t),
33 .is_array = NO_ARRAY,
34 .tlv_type = 0x02,
35 .offset = offsetof(struct rfsa_get_buff_addr_req_msg_v01,
36 size),
37 },
38 {
39 .data_type = QMI_EOTI,
40 .is_array = NO_ARRAY,
41 .is_array = QMI_COMMON_TLV_TYPE,
42 },
43};
44
45struct elem_info rfsa_get_buff_addr_resp_msg_v01_ei[] = {
46 {
47 .data_type = QMI_STRUCT,
48 .elem_len = 1,
49 .elem_size = sizeof(struct qmi_response_type_v01),
50 .is_array = NO_ARRAY,
51 .tlv_type = 0x02,
52 .offset = offsetof(struct rfsa_get_buff_addr_resp_msg_v01,
53 resp),
54 .ei_array = get_qmi_response_type_v01_ei(),
55 },
56 {
57 .data_type = QMI_OPT_FLAG,
58 .elem_len = 1,
59 .elem_size = sizeof(uint8_t),
60 .is_array = NO_ARRAY,
61 .tlv_type = 0x10,
62 .offset = offsetof(struct rfsa_get_buff_addr_resp_msg_v01,
63 address_valid),
64 },
65 {
66 .data_type = QMI_UNSIGNED_8_BYTE,
67 .elem_len = 1,
68 .elem_size = sizeof(uint64_t),
69 .is_array = NO_ARRAY,
70 .tlv_type = 0x10,
71 .offset = offsetof(struct rfsa_get_buff_addr_resp_msg_v01,
72 address),
73 },
74 {
75 .data_type = QMI_EOTI,
76 .is_array = NO_ARRAY,
77 .is_array = QMI_COMMON_TLV_TYPE,
78 },
79};
80