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