xref: /wlan-driver/qcacld-3.0/components/action_oui/dispatcher/inc/wlan_action_oui_tgt_api.h (revision 5113495b16420b49004c444715d2daae2066e7dc)
1 /*
2  * Copyright (c) 2018 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 /**
20  * DOC: Declare public API for action_oui to interact with target/WMI
21  */
22 
23 #ifndef _WLAN_ACTION_OUI_TGT_API_H_
24 #define _WLAN_ACTION_OUI_TGT_API_H_
25 
26 #include "wlan_action_oui_public_struct.h"
27 #include "wlan_action_oui_objmgr.h"
28 
29 #define GET_ACTION_OUI_TX_OPS_FROM_PSOC(psoc) \
30 	(&action_oui_psoc_get_priv(psoc)->tx_ops)
31 
32 /**
33  * tgt_action_oui_send() - Send request to target if
34  * @psoc: objmgr psoc object
35  * @req: action_oui request to be send
36  *
37  * Return: QDF_STATUS
38  */
39 QDF_STATUS tgt_action_oui_send(struct wlan_objmgr_psoc *psoc,
40 				struct action_oui_request *req);
41 
42 /**
43  * struct action_oui_tx_ops - structure of tx operations
44  * @send_req: Pointer to hold target_if send function
45  */
46 struct action_oui_tx_ops {
47 	QDF_STATUS (*send_req)(struct wlan_objmgr_psoc *psoc,
48 			       struct action_oui_request *req);
49 };
50 
51 #endif /* _WLAN_ACTION_OUI_TGT_API_H_ */
52