1 // SPDX-License-Identifier: GPL-2.0-only 2 /* Copyright (c) 2019-2021, The Linux Foundation. All rights reserved. */ 3 4 #include <linux/soc/qcom/qmi.h> 5 6 #include "coexistence_service_v01.h" 7 8 struct qmi_elem_info coex_antenna_switch_to_wlan_req_msg_v01_ei[] = { 9 { 10 .data_type = QMI_UNSIGNED_8_BYTE, 11 .elem_len = 1, 12 .elem_size = sizeof(u64), 13 .array_type = NO_ARRAY, 14 .tlv_type = 0x01, 15 .offset = offsetof(struct 16 coex_antenna_switch_to_wlan_req_msg_v01, 17 antenna), 18 }, 19 { 20 .data_type = QMI_EOTI, 21 .array_type = NO_ARRAY, 22 .tlv_type = QMI_COMMON_TLV_TYPE, 23 }, 24 }; 25 26 struct qmi_elem_info coex_antenna_switch_to_wlan_resp_msg_v01_ei[] = { 27 { 28 .data_type = QMI_STRUCT, 29 .elem_len = 1, 30 .elem_size = sizeof(struct qmi_response_type_v01), 31 .array_type = NO_ARRAY, 32 .tlv_type = 0x02, 33 .offset = offsetof(struct 34 coex_antenna_switch_to_wlan_resp_msg_v01, 35 resp), 36 .ei_array = qmi_response_type_v01_ei, 37 }, 38 { 39 .data_type = QMI_OPT_FLAG, 40 .elem_len = 1, 41 .elem_size = sizeof(u8), 42 .array_type = NO_ARRAY, 43 .tlv_type = 0x10, 44 .offset = offsetof(struct 45 coex_antenna_switch_to_wlan_resp_msg_v01, 46 grant_valid), 47 }, 48 { 49 .data_type = QMI_UNSIGNED_8_BYTE, 50 .elem_len = 1, 51 .elem_size = sizeof(u64), 52 .array_type = NO_ARRAY, 53 .tlv_type = 0x10, 54 .offset = offsetof(struct 55 coex_antenna_switch_to_wlan_resp_msg_v01, 56 grant), 57 }, 58 { 59 .data_type = QMI_EOTI, 60 .array_type = NO_ARRAY, 61 .tlv_type = QMI_COMMON_TLV_TYPE, 62 }, 63 }; 64 65 struct qmi_elem_info coex_antenna_switch_to_mdm_req_msg_v01_ei[] = { 66 { 67 .data_type = QMI_UNSIGNED_8_BYTE, 68 .elem_len = 1, 69 .elem_size = sizeof(u64), 70 .array_type = NO_ARRAY, 71 .tlv_type = 0x01, 72 .offset = offsetof(struct 73 coex_antenna_switch_to_mdm_req_msg_v01, 74 antenna), 75 }, 76 { 77 .data_type = QMI_EOTI, 78 .array_type = NO_ARRAY, 79 .tlv_type = QMI_COMMON_TLV_TYPE, 80 }, 81 }; 82 83 struct qmi_elem_info coex_antenna_switch_to_mdm_resp_msg_v01_ei[] = { 84 { 85 .data_type = QMI_STRUCT, 86 .elem_len = 1, 87 .elem_size = sizeof(struct qmi_response_type_v01), 88 .array_type = NO_ARRAY, 89 .tlv_type = 0x02, 90 .offset = offsetof(struct 91 coex_antenna_switch_to_mdm_resp_msg_v01, 92 resp), 93 .ei_array = qmi_response_type_v01_ei, 94 }, 95 { 96 .data_type = QMI_EOTI, 97 .array_type = NO_ARRAY, 98 .tlv_type = QMI_COMMON_TLV_TYPE, 99 }, 100 }; 101