xref: /wlan-driver/qca-wifi-host-cmn/ipa/dispatcher/inc/wlan_ipa_tgt_api.h (revision 5113495b16420b49004c444715d2daae2066e7dc)
1 /*
2  * Copyright (c) 2018, 2020 The Linux Foundation. All rights reserved.
3  *
4  * Permission to use, copy, modify, and/or distribute this software for
5  * any purpose with or without fee is hereby granted, provided that the
6  * above copyright notice and this permission notice appear in all
7  * copies.
8  *
9  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
10  * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
11  * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
12  * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
13  * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
14  * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
15  * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
16  * PERFORMANCE OF THIS SOFTWARE.
17  */
18 /**
19  * DOC: Declare public API for wlan ipa to interact with target/WMI
20  */
21 
22 #ifndef _WLAN_IPA_TGT_API_H_
23 #define _WLAN_IPA_TGT_API_H_
24 
25 #include "wlan_ipa_public_struct.h"
26 
27 /**
28  * tgt_ipa_uc_offload_enable_disable() - send ipa offload control to target if
29  * @pdev: objmgr pdev object
30  * @req: ipa offload control request
31  *
32  * Return: QDF_STATUS
33  */
34 QDF_STATUS tgt_ipa_uc_offload_enable_disable(struct wlan_objmgr_pdev *pdev,
35 				struct ipa_uc_offload_control_params *req);
36 
37 /**
38  * tgt_ipa_intrabss_enable_disable() - send ipa intrabss control to target if
39  * @pdev: objmgr pdev object
40  * @req: ipa intrabss control request
41  *
42  * Return: QDF_STATUS
43  */
44 QDF_STATUS
45 tgt_ipa_intrabss_enable_disable(struct wlan_objmgr_pdev *pdev,
46 				struct ipa_intrabss_control_params *req);
47 #endif /* _WLAN_IPA_TGT_API_H_ */
48