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 public API for disa to interact with target/WMI 20 */ 21 22 #ifndef _WLAN_DISA_TGT_API_H_ 23 #define _WLAN_DISA_TGT_API_H_ 24 25 #include <qdf_types.h> 26 27 struct wlan_objmgr_psoc; 28 struct disa_encrypt_decrypt_req_params; 29 struct disa_encrypt_decrypt_resp_params; 30 31 #define GET_DISA_TX_OPS_FROM_PSOC(psoc) \ 32 (&disa_psoc_get_priv(psoc)->disa_tx_ops) 33 34 /** 35 * tgt_disa_encrypt_decrypt_req() - send encrypt/decrypt request to target if 36 * @psoc: objmgr psoc object 37 * @req: encrypt/decrypt parameters 38 * 39 * Return: QDF_STATUS 40 */ 41 QDF_STATUS tgt_disa_encrypt_decrypt_req(struct wlan_objmgr_psoc *psoc, 42 struct disa_encrypt_decrypt_req_params *req); 43 44 /** 45 * tgt_disa_encrypt_decrypt_resp() - receive encrypt/decrypt response 46 * from target if 47 * @psoc: objmgr psoc object 48 * @resp: encrypt/decrypt response containing results 49 * 50 * Return: QDF_STATUS 51 */ 52 QDF_STATUS tgt_disa_encrypt_decrypt_resp(struct wlan_objmgr_psoc *psoc, 53 struct disa_encrypt_decrypt_resp_params *resp); 54 55 /** 56 * tgt_disa_register_ev_handlers() - API to register disa event handlers 57 * @psoc: objmgr psoc object 58 * 59 * Return: QDF_STATUS_SUCCESS in case of success else return error 60 */ 61 QDF_STATUS tgt_disa_register_ev_handlers(struct wlan_objmgr_psoc *psoc); 62 63 /** 64 * tgt_disa_unregister_ev_handlers() - API to unregister disa event handlers 65 * @psoc: objmgr psoc object 66 * 67 * Return: QDF_STATUS_SUCCESS in case of success else return error 68 */ 69 QDF_STATUS tgt_disa_unregister_ev_handlers(struct wlan_objmgr_psoc *psoc); 70 71 #endif /* end of _WLAN_DISA_TGT_API_H_ */ 72