xref: /wlan-driver/qcacld-3.0/components/disa/dispatcher/inc/wlan_disa_obj_mgmt_public_struct.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  * DOC: Declare various struct, macros which are used for object mgmt in disa.
20  *
21  * Note: This file shall not contain public API's prototype/declarations.
22  *
23  */
24 
25 #ifndef _WLAN_DISA_OBJ_MGMT_PUBLIC_STRUCT_H_
26 #define _WLAN_DISA_OBJ_MGMT_PUBLIC_STRUCT_H_
27 
28 struct wlan_objmgr_psoc;
29 struct disa_encrypt_decrypt_req_params;
30 struct disa_encrypt_decrypt_resp_params;
31 
32 /**
33  * struct wlan_disa_tx_ops - structure of tx operation function
34  *	pointers for disa component
35  * @disa_encrypt_decrypt_req: send encrypt/decrypt request
36  * @disa_register_ev_handlers: register disa event handlers
37  * @disa_unregister_ev_handlers: unregister disa event handlers
38  */
39 struct wlan_disa_tx_ops {
40 	QDF_STATUS (*disa_encrypt_decrypt_req)(struct wlan_objmgr_psoc *psoc,
41 			struct disa_encrypt_decrypt_req_params *req);
42 	QDF_STATUS (*disa_register_ev_handlers)(struct wlan_objmgr_psoc *psoc);
43 	QDF_STATUS (*disa_unregister_ev_handlers)
44 			(struct wlan_objmgr_psoc *psoc);
45 };
46 
47 /**
48  * struct wlan_disa_rx_ops - structure of rx operation function
49  *	pointers for disa component
50  * @encrypt_decrypt_msg_resp: send response of encrypt/decrypt request
51  */
52 struct wlan_disa_rx_ops {
53 	QDF_STATUS (*encrypt_decrypt_msg_resp)(struct wlan_objmgr_psoc *psoc,
54 			struct disa_encrypt_decrypt_resp_params *resp);
55 };
56 #endif /* end  of _WLAN_DISA_OBJ_MGMT_PUBLIC_STRUCT_H_ */
57