xref: /wlan-driver/qcacld-3.0/components/qmi/dispatcher/inc/wlan_qmi_wfds_api.h (revision 5113495b16420b49004c444715d2daae2066e7dc)
1*5113495bSYour Name /*
2*5113495bSYour Name  * Copyright (c) 2022-2023 Qualcomm Innovation Center, Inc. All rights reserved.
3*5113495bSYour Name  *
4*5113495bSYour Name  * Permission to use, copy, modify, and/or distribute this software for any
5*5113495bSYour Name  * purpose with or without fee is hereby granted, provided that the above
6*5113495bSYour Name  * copyright notice and this permission notice appear in all copies.
7*5113495bSYour Name  *
8*5113495bSYour Name  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9*5113495bSYour Name  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10*5113495bSYour Name  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11*5113495bSYour Name  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12*5113495bSYour Name  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13*5113495bSYour Name  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14*5113495bSYour Name  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15*5113495bSYour Name  */
16*5113495bSYour Name 
17*5113495bSYour Name /**
18*5113495bSYour Name  * DOC: wlan_qmi_wfds_api.h
19*5113495bSYour Name  *
20*5113495bSYour Name  * Contains QMI wrapper API declarations to connect and send messages to
21*5113495bSYour Name  * QMI WFDS server
22*5113495bSYour Name  */
23*5113495bSYour Name #ifndef _WLAN_QMI_WFDS_API_H_
24*5113495bSYour Name #define _WLAN_QMI_WFDS_API_H_
25*5113495bSYour Name 
26*5113495bSYour Name #include "wlan_objmgr_psoc_obj.h"
27*5113495bSYour Name #include "wlan_qmi_public_struct.h"
28*5113495bSYour Name 
29*5113495bSYour Name #ifdef QMI_WFDS
30*5113495bSYour Name /**
31*5113495bSYour Name  * wlan_qmi_wfds_init() - Initialize WFDS QMI client
32*5113495bSYour Name  * @psoc: PSOC handle
33*5113495bSYour Name  *
34*5113495bSYour Name  * Returns: QDF status
35*5113495bSYour Name  */
36*5113495bSYour Name QDF_STATUS wlan_qmi_wfds_init(struct wlan_objmgr_psoc *psoc);
37*5113495bSYour Name 
38*5113495bSYour Name /**
39*5113495bSYour Name  * wlan_qmi_wfds_deinit() - Deinitialize WFDS QMI client
40*5113495bSYour Name  * @psoc: PSOC handle
41*5113495bSYour Name  *
42*5113495bSYour Name  * Returns: None
43*5113495bSYour Name  */
44*5113495bSYour Name void wlan_qmi_wfds_deinit(struct wlan_objmgr_psoc *psoc);
45*5113495bSYour Name 
46*5113495bSYour Name /*
47*5113495bSYour Name  * wlan_qmi_wfds_send_config_msg() - Send config message to QMI server
48*5113495bSYour Name  *  to QMI server
49*5113495bSYour Name  * @psoc: PSOC handle
50*5113495bSYour Name  * @src_info: source information to be filled in QMI message
51*5113495bSYour Name  *
52*5113495bSYour Name  * Return: QDF status
53*5113495bSYour Name  */
54*5113495bSYour Name QDF_STATUS
55*5113495bSYour Name wlan_qmi_wfds_send_config_msg(struct wlan_objmgr_psoc *psoc,
56*5113495bSYour Name 			      struct wlan_qmi_wfds_config_req_msg *src_info);
57*5113495bSYour Name 
58*5113495bSYour Name /*
59*5113495bSYour Name  * wlan_qmi_wfds_send_req_mem_msg() - Send Request Memory message to QMI server
60*5113495bSYour Name  * @psoc: PSOC handle
61*5113495bSYour Name  * @src_info: source information to be filled in QMI message
62*5113495bSYour Name  *
63*5113495bSYour Name  * Return: QDF status
64*5113495bSYour Name  */
65*5113495bSYour Name QDF_STATUS
66*5113495bSYour Name wlan_qmi_wfds_send_req_mem_msg(struct wlan_objmgr_psoc *psoc,
67*5113495bSYour Name 			       struct wlan_qmi_wfds_mem_req_msg *src_info);
68*5113495bSYour Name 
69*5113495bSYour Name /*
70*5113495bSYour Name  * wlan_qmi_wfds_ipcc_map_n_cfg_msg() - Send the IPCC map and configure message
71*5113495bSYour Name  *  to QMI server
72*5113495bSYour Name  * @psoc: PSOC handle
73*5113495bSYour Name  * @src_info: source information to be filled in QMI message
74*5113495bSYour Name  *
75*5113495bSYour Name  * Return: QDF status
76*5113495bSYour Name  */
77*5113495bSYour Name QDF_STATUS
78*5113495bSYour Name wlan_qmi_wfds_ipcc_map_n_cfg_msg(struct wlan_objmgr_psoc *psoc,
79*5113495bSYour Name 			struct wlan_qmi_wfds_ipcc_map_n_cfg_req_msg *src_info);
80*5113495bSYour Name 
81*5113495bSYour Name /*
82*5113495bSYour Name  * wlan_qmi_wfds_send_misc_req_msg() - Send the misc req message
83*5113495bSYour Name  *  to QMI server
84*5113495bSYour Name  * @psoc: PSOC handle
85*5113495bSYour Name  * @is_ssr: true if SSR is in progress else false
86*5113495bSYour Name  *
87*5113495bSYour Name  * Return: QDF status
88*5113495bSYour Name  */
89*5113495bSYour Name QDF_STATUS
90*5113495bSYour Name wlan_qmi_wfds_send_misc_req_msg(struct wlan_objmgr_psoc *psoc, bool is_ssr);
91*5113495bSYour Name #else
92*5113495bSYour Name static inline
wlan_qmi_wfds_init(struct wlan_objmgr_psoc * psoc)93*5113495bSYour Name QDF_STATUS wlan_qmi_wfds_init(struct wlan_objmgr_psoc *psoc)
94*5113495bSYour Name {
95*5113495bSYour Name 	return QDF_STATUS_E_NOSUPPORT;
96*5113495bSYour Name }
97*5113495bSYour Name 
98*5113495bSYour Name static inline
wlan_qmi_wfds_deinit(struct wlan_objmgr_psoc * psoc)99*5113495bSYour Name void wlan_qmi_wfds_deinit(struct wlan_objmgr_psoc *psoc)
100*5113495bSYour Name {
101*5113495bSYour Name }
102*5113495bSYour Name 
103*5113495bSYour Name static inline QDF_STATUS
104*5113495bSYour Name wlan_qmi_wfds_send_config_msg(struct wlan_objmgr_psoc *psoc,
105*5113495bSYour Name 			      struct wlan_qmi_wfds_config_req_msg *src_info);
106*5113495bSYour Name {
107*5113495bSYour Name 	return QDF_STATUS_E_NOSUPPORT;
108*5113495bSYour Name }
109*5113495bSYour Name 
110*5113495bSYour Name static inline QDF_STATUS
111*5113495bSYour Name wlan_qmi_wfds_send_req_mem_msg(struct wlan_objmgr_psoc *psoc,
112*5113495bSYour Name 			       struct wlan_qmi_wfds_mem_req_msg *src_info);
113*5113495bSYour Name {
114*5113495bSYour Name 	return QDF_STATUS_E_NOSUPPORT;
115*5113495bSYour Name }
116*5113495bSYour Name 
117*5113495bSYour Name static inline QDF_STATUS
wlan_qmi_wfds_ipcc_map_n_cfg_msg(struct wlan_objmgr_psoc * psoc,struct wlan_qmi_wfds_ipcc_map_n_cfg_req_msg * src_info)118*5113495bSYour Name wlan_qmi_wfds_ipcc_map_n_cfg_msg(struct wlan_objmgr_psoc *psoc,
119*5113495bSYour Name 			struct wlan_qmi_wfds_ipcc_map_n_cfg_req_msg *src_info)
120*5113495bSYour Name {
121*5113495bSYour Name 	return QDF_STATUS_E_NOSUPPORT;
122*5113495bSYour Name }
123*5113495bSYour Name 
124*5113495bSYour Name static inline QDF_STATUS
wlan_qmi_wfds_send_misc_req_msg(struct wlan_objmgr_psoc * psoc,bool is_ssr)125*5113495bSYour Name wlan_qmi_wfds_send_misc_req_msg(struct wlan_objmgr_psoc *psoc, bool is_ssr)
126*5113495bSYour Name {
127*5113495bSYour Name 	return QDF_STATUS_E_NOSUPPORT;
128*5113495bSYour Name }
129*5113495bSYour Name #endif
130*5113495bSYour Name #endif
131