1 /* 2 * Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved. 3 * 4 * Permission to use, copy, modify, and/or distribute this software for any 5 * purpose with or without fee is hereby granted, provided that the above 6 * copyright notice and this permission notice appear in all copies. 7 * 8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 9 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 10 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 11 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 12 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 13 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 14 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 15 */ 16 17 /** 18 * DOC: wlan_afc_priv.h 19 * 20 * Declare various struct, macros which are used private to AFC component. 21 */ 22 23 #ifndef __WLAN_AFC_PRIV_H__ 24 #define __WLAN_AFC_PRIV_H__ 25 26 #include "wlan_afc_main.h" 27 28 /** 29 * struct wlan_afc_callbacks - AFC PSOC private callbacks 30 * @afc_rsp_cp_func: AFC callback function to pass AFC response data to target 31 * @afc_req_func: AFC callback function to send AFC request 32 * @afc_updated_func: AFC callback function to send AFC update complete event 33 */ 34 struct wlan_afc_callbacks { 35 send_response_to_afcmem afc_rsp_cp_func; 36 osif_send_afc_request afc_req_func; 37 osif_send_afc_power_update_complete afc_updated_func; 38 }; 39 40 /** 41 * struct wlan_afc_psoc_priv - AFC PSOC private data and callbacks 42 * @psoc: Pointer to PSOC object 43 * @cbs: AFC PSOC callbacks 44 */ 45 struct wlan_afc_psoc_priv { 46 struct wlan_objmgr_psoc *psoc; 47 struct wlan_afc_callbacks cbs; 48 }; 49 #endif 50