device_management_service_v01.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /* Copyright (c) 2020-2021, The Linux Foundation. All rights reserved. */
  3. #ifndef DEVICE_MANAGEMENT_SERVICE_V01_H
  4. #define DEVICE_MANAGEMENT_SERVICE_V01_H
  5. #define DMS_SERVICE_ID_V01 0x02
  6. #define DMS_SERVICE_VERS_V01 0x01
  7. #define QMI_DMS_GET_MAC_ADDRESS_RESP_V01 0x005C
  8. #define QMI_DMS_GET_MAC_ADDRESS_REQ_V01 0x005C
  9. #define QMI_DMS_MAC_ADDR_MAX_V01 8
  10. enum dms_device_mac_enum_v01 {
  11. DMS_DEVICE_MAC_ENUM_MIN_VAL_V01 = INT_MIN,
  12. DMS_DEVICE_MAC_WLAN_V01 = 0,
  13. DMS_DEVICE_MAC_BT_V01 = 1,
  14. DMS_DEVICE_MAC_ENUM_MAX_VAL_V01 = INT_MAX,
  15. };
  16. struct dms_get_mac_address_req_msg_v01 {
  17. enum dms_device_mac_enum_v01 device;
  18. };
  19. #define DMS_GET_MAC_ADDRESS_REQ_MSG_V01_MAX_MSG_LEN 7
  20. extern struct qmi_elem_info dms_get_mac_address_req_msg_v01_ei[];
  21. struct dms_get_mac_address_resp_msg_v01 {
  22. struct qmi_response_type_v01 resp;
  23. u8 mac_address_valid;
  24. u32 mac_address_len;
  25. u8 mac_address[QMI_DMS_MAC_ADDR_MAX_V01];
  26. };
  27. #define DMS_GET_MAC_ADDRESS_RESP_MSG_V01_MAX_MSG_LEN 19
  28. extern struct qmi_elem_info dms_get_mac_address_resp_msg_v01_ei[];
  29. #endif