coexistence_service_v01.c 2.5 KB

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