xref: /wlan-driver/qcacld-3.0/components/target_if/coex/inc/target_if_coex.h (revision 5113495b16420b49004c444715d2daae2066e7dc)
1 /*
2  * Copyright (c) 2020, 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: contains coex target if declarations
20  */
21 #ifndef __TARGET_IF_COEX_H__
22 #define __TARGET_IF_COEX_H__
23 
24 #include <target_if.h>
25 #include "wlan_coex_public_structs.h"
26 
27 /**
28  * target_if_coex_register_tx_ops() - Register coex target_if tx ops
29  * @tx_ops: pointer to target if tx ops
30  *
31  * Return: QDF_STATUS_SUCCESS on success, QDF_STATUS_E_** on error
32  */
33 QDF_STATUS
34 target_if_coex_register_tx_ops(struct wlan_lmac_if_tx_ops *tx_ops);
35 
36 #ifdef WLAN_FEATURE_DBAM_CONFIG
37 /**
38  * target_if_dbam_register_tx_ops() - Register dbam target_if tx ops
39  * @tx_ops: pointer to target if tx ops
40  *
41  * Return: QDF_STATUS_SUCCESS on success, QDF_STATUS_E_** on error
42  */
43 QDF_STATUS
44 target_if_dbam_register_tx_ops(struct wlan_lmac_if_tx_ops *tx_ops);
45 
46 /**
47  * target_if_dbam_process_event() - dbam response function handler
48  * @psoc: pointer to psoc
49  * @resp: response received from FW to dbam config command
50  *
51  * Return: QDF_STATUS_SUCCESS on success, QDF_STATUS_E_** on error
52  */
53 QDF_STATUS
54 target_if_dbam_process_event(struct wlan_objmgr_psoc *psoc,
55 			     enum coex_dbam_comp_status resp);
56 #endif
57 #endif
58