remote_filesystem_access_v01.c 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. /* Copyright (c) 2014-2015, 2017, The Linux Foundation. All rights reserved.
  2. *
  3. * This program is free software; you can redistribute it and/or modify
  4. * it under the terms of the GNU General Public License version 2 and
  5. * only version 2 as published by the Free Software Foundation.
  6. *
  7. * This program is distributed in the hope that it will be useful,
  8. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. * GNU General Public License for more details.
  11. *
  12. */
  13. #include <linux/qmi_encdec.h>
  14. #include <soc/qcom/msm_qmi_interface.h>
  15. #include "remote_filesystem_access_v01.h"
  16. struct elem_info rfsa_get_buff_addr_req_msg_v01_ei[] = {
  17. {
  18. .data_type = QMI_UNSIGNED_4_BYTE,
  19. .elem_len = 1,
  20. .elem_size = sizeof(uint32_t),
  21. .is_array = NO_ARRAY,
  22. .tlv_type = 0x01,
  23. .offset = offsetof(struct rfsa_get_buff_addr_req_msg_v01,
  24. client_id),
  25. },
  26. {
  27. .data_type = QMI_UNSIGNED_4_BYTE,
  28. .elem_len = 1,
  29. .elem_size = sizeof(uint32_t),
  30. .is_array = NO_ARRAY,
  31. .tlv_type = 0x02,
  32. .offset = offsetof(struct rfsa_get_buff_addr_req_msg_v01,
  33. size),
  34. },
  35. {
  36. .data_type = QMI_EOTI,
  37. .is_array = NO_ARRAY,
  38. .is_array = QMI_COMMON_TLV_TYPE,
  39. },
  40. };
  41. struct elem_info rfsa_get_buff_addr_resp_msg_v01_ei[] = {
  42. {
  43. .data_type = QMI_STRUCT,
  44. .elem_len = 1,
  45. .elem_size = sizeof(struct qmi_response_type_v01),
  46. .is_array = NO_ARRAY,
  47. .tlv_type = 0x02,
  48. .offset = offsetof(struct rfsa_get_buff_addr_resp_msg_v01,
  49. resp),
  50. .ei_array = get_qmi_response_type_v01_ei(),
  51. },
  52. {
  53. .data_type = QMI_OPT_FLAG,
  54. .elem_len = 1,
  55. .elem_size = sizeof(uint8_t),
  56. .is_array = NO_ARRAY,
  57. .tlv_type = 0x10,
  58. .offset = offsetof(struct rfsa_get_buff_addr_resp_msg_v01,
  59. address_valid),
  60. },
  61. {
  62. .data_type = QMI_UNSIGNED_8_BYTE,
  63. .elem_len = 1,
  64. .elem_size = sizeof(uint64_t),
  65. .is_array = NO_ARRAY,
  66. .tlv_type = 0x10,
  67. .offset = offsetof(struct rfsa_get_buff_addr_resp_msg_v01,
  68. address),
  69. },
  70. {
  71. .data_type = QMI_EOTI,
  72. .is_array = NO_ARRAY,
  73. .is_array = QMI_COMMON_TLV_TYPE,
  74. },
  75. };