xref: /wlan-driver/qca-wifi-host-cmn/umac/dcs/dispatcher/inc/wlan_dcs_tgt_api.h (revision 5113495b16420b49004c444715d2daae2066e7dc)
1 /*
2  * Copyright (c) 2020-2021, The Linux Foundation. All rights reserved.
3  * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
4  *
5  * Permission to use, copy, modify, and/or distribute this software for any
6  * purpose with or without fee is hereby granted, provided that the above
7  * copyright notice and this permission notice appear in all copies.
8  *
9  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16  */
17 
18 /**
19  * DOC: wlan_dcs_tgt_api.h
20  *
21  * This header file provide with API declarations to interface with Southbound
22  */
23 #ifndef __WLAN_DCS_TGT_API_H__
24 #define __WLAN_DCS_TGT_API_H__
25 
26 #include <wlan_objmgr_cmn.h>
27 #include <wlan_dcs_public_structs.h>
28 
29 /**
30  * tgt_dcs_process_event(): dcs FW event process
31  * @psoc: pointer to psoc object
32  * @event: pointer to dcs event
33  *
34  * This function gets called to process dcs FW event
35  *
36  * Return: QDF_STATUS
37  */
38 QDF_STATUS tgt_dcs_process_event(struct wlan_objmgr_psoc *psoc,
39 				 struct wlan_host_dcs_event *event);
40 #ifdef CONFIG_AFC_SUPPORT
41 /**
42  * tgt_afc_trigger_dcs() - AFC event DCS process
43  * @pdev: pointer to pdev object
44  *
45  * Return: QDF_STATUS
46  */
47 QDF_STATUS tgt_afc_trigger_dcs(struct wlan_objmgr_pdev *pdev);
48 #endif
49 #endif /* __WLAN_DCS_TGT_API_H__ */
50