summaryrefslogtreecommitdiff
path: root/drivers/uio/msm_sharedmem/remote_filesystem_access_v01.c
blob: 2ff2781c5cf8f0527e654365abb6b4d21dcbf2b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
 /* Copyright (c) 2014, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
 * only version 2 as published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 */
#include <linux/qmi_encdec.h>

#include <soc/qcom/msm_qmi_interface.h>

#include "remote_filesystem_access_v01.h"

struct elem_info rfsa_get_buff_addr_req_msg_v01_ei[] = {
	{
		.data_type   = QMI_UNSIGNED_4_BYTE,
		.elem_len    = 1,
		.elem_size   = sizeof(uint32_t),
		.is_array    = NO_ARRAY,
		.tlv_type    = 0x01,
		.offset      = offsetof(struct rfsa_get_buff_addr_req_msg_v01,
					   client_id),
	},
	{
		.data_type   = QMI_UNSIGNED_4_BYTE,
		.elem_len    = 1,
		.elem_size   = sizeof(uint32_t),
		.is_array    = NO_ARRAY,
		.tlv_type    = 0x02,
		.offset      = offsetof(struct rfsa_get_buff_addr_req_msg_v01,
					   size),
	},
	{
		.data_type   = QMI_EOTI,
		.is_array    = NO_ARRAY,
		.is_array    = QMI_COMMON_TLV_TYPE,
	},
};

struct elem_info rfsa_get_buff_addr_resp_msg_v01_ei[] = {
	{
		.data_type   = QMI_STRUCT,
		.elem_len    = 1,
		.elem_size   = sizeof(struct qmi_response_type_v01),
		.is_array    = NO_ARRAY,
		.tlv_type    = 0x02,
		.offset      = offsetof(struct rfsa_get_buff_addr_resp_msg_v01,
					   resp),
		.ei_array    = get_qmi_response_type_v01_ei(),
	},
	{
		.data_type   = QMI_OPT_FLAG,
		.elem_len    = 1,
		.elem_size   = sizeof(uint8_t),
		.is_array    = NO_ARRAY,
		.tlv_type    = 0x10,
		.offset      = offsetof(struct rfsa_get_buff_addr_resp_msg_v01,
					address_valid),
	},
	{
		.data_type   = QMI_UNSIGNED_8_BYTE,
		.elem_len    = 1,
		.elem_size   = sizeof(uint64_t),
		.is_array    = NO_ARRAY,
		.tlv_type    = 0x10,
		.offset      = offsetof(struct rfsa_get_buff_addr_resp_msg_v01,
					address),
	},
	{
		.data_type   = QMI_EOTI,
		.is_array    = NO_ARRAY,
		.is_array    = QMI_COMMON_TLV_TYPE,
	},
};