1*5113495bSYour Name /* 2*5113495bSYour Name * Copyright (c) 2017-2018 The Linux Foundation. All rights reserved. 3*5113495bSYour Name * Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved. 4*5113495bSYour Name * 5*5113495bSYour Name * Permission to use, copy, modify, and/or distribute this software for 6*5113495bSYour Name * any purpose with or without fee is hereby granted, provided that the 7*5113495bSYour Name * above copyright notice and this permission notice appear in all 8*5113495bSYour Name * copies. 9*5113495bSYour Name * 10*5113495bSYour Name * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL 11*5113495bSYour Name * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED 12*5113495bSYour Name * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE 13*5113495bSYour Name * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL 14*5113495bSYour Name * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR 15*5113495bSYour Name * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 16*5113495bSYour Name * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 17*5113495bSYour Name * PERFORMANCE OF THIS SOFTWARE. 18*5113495bSYour Name */ 19*5113495bSYour Name 20*5113495bSYour Name /** 21*5113495bSYour Name * DOC: offload lmac interface APIs for P2P 22*5113495bSYour Name */ 23*5113495bSYour Name 24*5113495bSYour Name #ifndef _TARGET_IF_P2P_H_ 25*5113495bSYour Name #define _TARGET_IF_P2P_H_ 26*5113495bSYour Name 27*5113495bSYour Name #include <qdf_types.h> 28*5113495bSYour Name 29*5113495bSYour Name struct wlan_objmgr_psoc; 30*5113495bSYour Name struct p2p_ps_config; 31*5113495bSYour Name struct p2p_lo_start; 32*5113495bSYour Name 33*5113495bSYour Name #ifdef FEATURE_P2P_LISTEN_OFFLOAD 34*5113495bSYour Name 35*5113495bSYour Name /** 36*5113495bSYour Name * target_if_p2p_register_lo_event_handler() - Register lo event handler 37*5113495bSYour Name * @psoc: soc object 38*5113495bSYour Name * @arg: additional argument 39*5113495bSYour Name * 40*5113495bSYour Name * Target interface API to register P2P listen offload event handler. 41*5113495bSYour Name * 42*5113495bSYour Name * Return: QDF_STATUS_SUCCESS - in case of success 43*5113495bSYour Name */ 44*5113495bSYour Name QDF_STATUS target_if_p2p_register_lo_event_handler( 45*5113495bSYour Name struct wlan_objmgr_psoc *psoc, void *arg); 46*5113495bSYour Name 47*5113495bSYour Name /** 48*5113495bSYour Name * target_if_p2p_unregister_lo_event_handler() - Unregister lo event handler 49*5113495bSYour Name * @psoc: soc object 50*5113495bSYour Name * @arg: additional argument 51*5113495bSYour Name * 52*5113495bSYour Name * Target interface API to unregister P2P listen offload event handler. 53*5113495bSYour Name * 54*5113495bSYour Name * Return: QDF_STATUS_SUCCESS - in case of success 55*5113495bSYour Name */ 56*5113495bSYour Name QDF_STATUS target_if_p2p_unregister_lo_event_handler( 57*5113495bSYour Name struct wlan_objmgr_psoc *psoc, void *arg); 58*5113495bSYour Name 59*5113495bSYour Name /** 60*5113495bSYour Name * target_if_p2p_lo_start() - Start listen offload 61*5113495bSYour Name * @psoc: soc object 62*5113495bSYour Name * @lo_start: lo start information 63*5113495bSYour Name * 64*5113495bSYour Name * Target interface API to start listen offload. 65*5113495bSYour Name * 66*5113495bSYour Name * Return: QDF_STATUS_SUCCESS - in case of success 67*5113495bSYour Name */ 68*5113495bSYour Name QDF_STATUS target_if_p2p_lo_start(struct wlan_objmgr_psoc *psoc, 69*5113495bSYour Name struct p2p_lo_start *lo_start); 70*5113495bSYour Name 71*5113495bSYour Name /** 72*5113495bSYour Name * target_if_p2p_lo_stop() - Stop listen offload 73*5113495bSYour Name * @psoc: soc object 74*5113495bSYour Name * @vdev_id: vdev id 75*5113495bSYour Name * 76*5113495bSYour Name * Target interface API to stop listen offload. 77*5113495bSYour Name * 78*5113495bSYour Name * Return: QDF_STATUS_SUCCESS - in case of success 79*5113495bSYour Name */ 80*5113495bSYour Name QDF_STATUS target_if_p2p_lo_stop(struct wlan_objmgr_psoc *psoc, 81*5113495bSYour Name uint32_t vdev_id); 82*5113495bSYour Name #endif 83*5113495bSYour Name 84*5113495bSYour Name /** 85*5113495bSYour Name * target_if_p2p_register_tx_ops() - Register P2P component TX OPS 86*5113495bSYour Name * @tx_ops: lmac if transmit ops 87*5113495bSYour Name * 88*5113495bSYour Name * Return: None 89*5113495bSYour Name */ 90*5113495bSYour Name void target_if_p2p_register_tx_ops(struct wlan_lmac_if_tx_ops *tx_ops); 91*5113495bSYour Name 92*5113495bSYour Name /** 93*5113495bSYour Name * target_if_p2p_register_noa_event_handler() - Register noa event handler 94*5113495bSYour Name * @psoc: soc object 95*5113495bSYour Name * @arg: additional argument 96*5113495bSYour Name * 97*5113495bSYour Name * Target interface API to register P2P noa event handler. 98*5113495bSYour Name * 99*5113495bSYour Name * Return: QDF_STATUS_SUCCESS - in case of success 100*5113495bSYour Name */ 101*5113495bSYour Name QDF_STATUS target_if_p2p_register_noa_event_handler( 102*5113495bSYour Name struct wlan_objmgr_psoc *psoc, void *arg); 103*5113495bSYour Name 104*5113495bSYour Name /** 105*5113495bSYour Name * target_if_p2p_unregister_noa_event_handler() - Unregister noa event handler 106*5113495bSYour Name * @psoc: soc object 107*5113495bSYour Name * @arg: additional argument 108*5113495bSYour Name * 109*5113495bSYour Name * Target interface API to unregister P2P listen offload event handler. 110*5113495bSYour Name * 111*5113495bSYour Name * Return: QDF_STATUS_SUCCESS - in case of success 112*5113495bSYour Name */ 113*5113495bSYour Name QDF_STATUS target_if_p2p_unregister_noa_event_handler( 114*5113495bSYour Name struct wlan_objmgr_psoc *psoc, void *arg); 115*5113495bSYour Name 116*5113495bSYour Name /** 117*5113495bSYour Name * target_if_p2p_set_ps() - Set power save 118*5113495bSYour Name * @psoc: soc object 119*5113495bSYour Name * @ps_config: powersave configuration 120*5113495bSYour Name * 121*5113495bSYour Name * Target interface API to set power save. 122*5113495bSYour Name * 123*5113495bSYour Name * Return: QDF_STATUS_SUCCESS - in case of success 124*5113495bSYour Name */ 125*5113495bSYour Name QDF_STATUS target_if_p2p_set_ps(struct wlan_objmgr_psoc *psoc, 126*5113495bSYour Name struct p2p_ps_config *ps_config); 127*5113495bSYour Name 128*5113495bSYour Name /** 129*5113495bSYour Name * target_if_p2p_set_noa() - Disable / Enable NOA 130*5113495bSYour Name * @psoc: soc object 131*5113495bSYour Name * @vdev_id: vdev id 132*5113495bSYour Name * @disable_noa: TRUE - Disable NoA, FALSE - Enable NoA 133*5113495bSYour Name * 134*5113495bSYour Name * Target interface API to Disable / Enable P2P NOA. 135*5113495bSYour Name * 136*5113495bSYour Name * Return: QDF_STATUS_SUCCESS - in case of success 137*5113495bSYour Name */ 138*5113495bSYour Name QDF_STATUS target_if_p2p_set_noa(struct wlan_objmgr_psoc *psoc, 139*5113495bSYour Name uint32_t vdev_id, bool disable_noa); 140*5113495bSYour Name 141*5113495bSYour Name #endif /* _TARGET_IF_P2P_H_ */ 142