1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- /* Copyright (c) 2014-2015, 2017, 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,
- },
- };
|