xref: /wlan-driver/qcacld-3.0/components/umac/twt/dispatcher/inc/wlan_twt_tgt_if_ext_tx_api.h (revision 5113495b16420b49004c444715d2daae2066e7dc)
1 /*
2  * Copyright (c) 2022 Qualcomm Innovation Center, Inc. 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: wlan_twt_tgt_if_ext_tx_api.h
20  *
21  * API declarations to send WMI command using Tx Ops
22  */
23 #ifndef _WLAN_TWT_TGT_IF_EXT_TX_API_H_
24 #define _WLAN_TWT_TGT_IF_EXT_TX_API_H_
25 
26 /**
27  * tgt_twt_setup_req_send() - Send twt setup request
28  * @psoc: Pointer to psoc object
29  * @req: TWT setup request
30  *
31  * Return: QDF_STATUS
32  */
33 QDF_STATUS
34 tgt_twt_setup_req_send(struct wlan_objmgr_psoc *psoc,
35 		       struct twt_add_dialog_param *req);
36 
37 /**
38  * tgt_twt_teardown_req_send() - Send twt teardown request
39  * @psoc: Pointer to psoc object
40  * @req: TWT setup request
41  *
42  * Return: QDF_STATUS
43  */
44 QDF_STATUS
45 tgt_twt_teardown_req_send(struct wlan_objmgr_psoc *psoc,
46 			  struct twt_del_dialog_param *req);
47 
48 /**
49  * tgt_twt_pause_req_send() - Send twt pause request
50  * @psoc: Pointer to psoc object
51  * @req: TWT pause request
52  *
53  * Return: QDF_STATUS
54  */
55 QDF_STATUS
56 tgt_twt_pause_req_send(struct wlan_objmgr_psoc *psoc,
57 		       struct twt_pause_dialog_cmd_param *req);
58 
59 /**
60  * tgt_twt_resume_req_send() - Send twt resume request
61  * @psoc: Pointer to psoc object
62  * @req: TWT resume request
63  *
64  * Return: QDF_STATUS
65  */
66 QDF_STATUS
67 tgt_twt_resume_req_send(struct wlan_objmgr_psoc *psoc,
68 			struct twt_resume_dialog_cmd_param *req);
69 
70 /**
71  * tgt_twt_nudge_req_send() - Send twt nudge request
72  * @psoc: Pointer to psoc object
73  * @req: TWT nudge request
74  *
75  * Return: QDF_STATUS
76  */
77 QDF_STATUS
78 tgt_twt_nudge_req_send(struct wlan_objmgr_psoc *psoc,
79 		       struct twt_nudge_dialog_cmd_param *req);
80 
81 /**
82  * tgt_twt_ac_pdev_param_send() - pdev TWT param send
83  * @psoc: Pointer to psoc object
84  * @twt_ac: TWT access category
85  *
86  * Return: QDF Status
87  */
88 QDF_STATUS
89 tgt_twt_ac_pdev_param_send(struct wlan_objmgr_psoc *psoc,
90 			   enum twt_traffic_ac twt_ac);
91 #endif
92