xref: /wlan-driver/qcacld-3.0/components/coex/dispatcher/inc/wlan_coex_tgt_api.h (revision 5113495b16420b49004c444715d2daae2066e7dc)
1 /*
2  * Copyright (c) 2020, The Linux Foundation. All rights reserved.
3  * Copyright (c) 2022-2023 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: contains coex south bound interface definitions
20  */
21 
22 #ifndef _WLAN_COEX_TGT_API_H_
23 #define _WLAN_COEX_TGT_API_H_
24 
25 #ifdef WLAN_FEATURE_DBAM_CONFIG
26 #include "wlan_coex_public_structs.h"
27 #endif
28 
29 #ifdef FEATURE_COEX
30 struct coex_config_params;
31 struct coex_multi_config;
32 
33 /**
34  * tgt_send_coex_config() - invoke target_if send coex config
35  * @vdev: vdev object
36  * @param: coex config parameters
37  *
38  * Return: QDF_STATUS
39  */
40 QDF_STATUS
41 tgt_send_coex_config(struct wlan_objmgr_vdev *vdev,
42 		     struct coex_config_params *param);
43 
44 /**
45  * tgt_send_coex_multi_config() - invoke target_if send coex multiple config
46  * @vdev: vdev object
47  * @param: coex multiple config parameters
48  *
49  * Return: QDF_STATUS
50  */
51 QDF_STATUS
52 tgt_send_coex_multi_config(struct wlan_objmgr_vdev *vdev,
53 			   struct coex_multi_config *param);
54 
55 /**
56  * tgt_get_coex_multi_config_support() - invoke target_if get coex multiple
57  * configure support
58  * @psoc: PSOC object
59  *
60  * Return: true if target support coex multiple config command
61  */
62 bool
63 tgt_get_coex_multi_config_support(struct wlan_objmgr_psoc *psoc);
64 #endif
65 
66 #ifdef WLAN_FEATURE_DBAM_CONFIG
67 /**
68  * tgt_send_dbam_config() - invoke target_if send dbam config
69  * @vdev: vdev object
70  * @param: dbam config parameters
71  *
72  * Return: QDF_STATUS
73  */
74 QDF_STATUS
75 tgt_send_dbam_config(struct wlan_objmgr_vdev *vdev,
76 		     struct coex_dbam_config_params *param);
77 #endif
78 #endif
79