device_management_service_v01.c 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /* Copyright (c) 2020-2021, The Linux Foundation. All rights reserved. */
  3. #include <linux/soc/qcom/qmi.h>
  4. #include "device_management_service_v01.h"
  5. struct qmi_elem_info dms_get_mac_address_req_msg_v01_ei[] = {
  6. {
  7. .data_type = QMI_SIGNED_4_BYTE_ENUM,
  8. .elem_len = 1,
  9. .elem_size = sizeof(enum dms_device_mac_enum_v01),
  10. .array_type = NO_ARRAY,
  11. .tlv_type = 0x01,
  12. .offset = offsetof(struct
  13. dms_get_mac_address_req_msg_v01,
  14. device),
  15. },
  16. {
  17. .data_type = QMI_EOTI,
  18. .array_type = NO_ARRAY,
  19. .tlv_type = QMI_COMMON_TLV_TYPE,
  20. },
  21. };
  22. EXPORT_SYMBOL(dms_get_mac_address_req_msg_v01_ei);
  23. struct qmi_elem_info dms_get_mac_address_resp_msg_v01_ei[] = {
  24. {
  25. .data_type = QMI_STRUCT,
  26. .elem_len = 1,
  27. .elem_size = sizeof(struct qmi_response_type_v01),
  28. .array_type = NO_ARRAY,
  29. .tlv_type = 0x02,
  30. .offset = offsetof(struct
  31. dms_get_mac_address_resp_msg_v01,
  32. resp),
  33. .ei_array = qmi_response_type_v01_ei,
  34. },
  35. {
  36. .data_type = QMI_OPT_FLAG,
  37. .elem_len = 1,
  38. .elem_size = sizeof(u8),
  39. .array_type = NO_ARRAY,
  40. .tlv_type = 0x10,
  41. .offset = offsetof(struct
  42. dms_get_mac_address_resp_msg_v01,
  43. mac_address_valid),
  44. },
  45. {
  46. .data_type = QMI_DATA_LEN,
  47. .elem_len = 1,
  48. .elem_size = sizeof(u8),
  49. .array_type = NO_ARRAY,
  50. .tlv_type = 0x10,
  51. .offset = offsetof(struct
  52. dms_get_mac_address_resp_msg_v01,
  53. mac_address_len),
  54. },
  55. {
  56. .data_type = QMI_UNSIGNED_1_BYTE,
  57. .elem_len = QMI_DMS_MAC_ADDR_MAX_V01,
  58. .elem_size = sizeof(u8),
  59. .array_type = VAR_LEN_ARRAY,
  60. .tlv_type = 0x10,
  61. .offset = offsetof(struct
  62. dms_get_mac_address_resp_msg_v01,
  63. mac_address),
  64. },
  65. {
  66. .data_type = QMI_EOTI,
  67. .array_type = NO_ARRAY,
  68. .tlv_type = QMI_COMMON_TLV_TYPE,
  69. },
  70. };
  71. EXPORT_SYMBOL(dms_get_mac_address_resp_msg_v01_ei);