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