xref: /wlan-driver/qca-wifi-host-cmn/dp/wifi3.0/rh/dp_rh_htt.h (revision 5113495b16420b49004c444715d2daae2066e7dc)
1*5113495bSYour Name /*
2*5113495bSYour Name  * Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
3*5113495bSYour Name  *
4*5113495bSYour Name  * Permission to use, copy, modify, and/or distribute this software for
5*5113495bSYour Name  * any purpose with or without fee is hereby granted, provided that the
6*5113495bSYour Name  * above copyright notice and this permission notice appear in all
7*5113495bSYour Name  * copies.
8*5113495bSYour Name  *
9*5113495bSYour Name  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
10*5113495bSYour Name  * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
11*5113495bSYour Name  * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
12*5113495bSYour Name  * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
13*5113495bSYour Name  * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
14*5113495bSYour Name  * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
15*5113495bSYour Name  * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
16*5113495bSYour Name  * PERFORMANCE OF THIS SOFTWARE.
17*5113495bSYour Name  */
18*5113495bSYour Name 
19*5113495bSYour Name #ifndef __DP_RH_HTT_H
20*5113495bSYour Name #define __DP_RH_HTT_H
21*5113495bSYour Name 
22*5113495bSYour Name #include <htt.h>
23*5113495bSYour Name #include "dp_types.h"
24*5113495bSYour Name #include "dp_internal.h"
25*5113495bSYour Name #include "dp_htt.h"
26*5113495bSYour Name #include "qdf_mem.h"
27*5113495bSYour Name #include "cdp_txrx_cmn_struct.h"
28*5113495bSYour Name 
29*5113495bSYour Name /* sizeof(struct htt_t2h_soft_umac_tx_compl_ind) */
30*5113495bSYour Name #define HTT_SOFT_UMAC_TX_COMPL_IND_SIZE	(1 * 4) //in bytes
31*5113495bSYour Name 
32*5113495bSYour Name /* sizeof(struct htt_t2h_tx_msdu_info) */
33*5113495bSYour Name #define HTT_TX_MSDU_INFO_SIZE	(8 * 4) //in bytes
34*5113495bSYour Name 
35*5113495bSYour Name /*
36*5113495bSYour Name  * dp_htt_h2t_rx_ring_rfs_cfg() - RFS config for RX DATA indication
37*5113495bSYour Name  * @htt_soc: Opaque htt SOC handle
38*5113495bSYour Name  *
39*5113495bSYour Name  * Return: QDF_STATUS success or failure
40*5113495bSYour Name  */
41*5113495bSYour Name QDF_STATUS dp_htt_h2t_rx_ring_rfs_cfg(struct htt_soc *soc);
42*5113495bSYour Name 
43*5113495bSYour Name /*
44*5113495bSYour Name  * dp_htt_soc_initialize_rh() - SOC level HTT initialization
45*5113495bSYour Name  * @htt_soc: Opaque htt SOC handle
46*5113495bSYour Name  * @ctrl_psoc: Opaque ctrl SOC handle
47*5113495bSYour Name  * @htc_soc: SOC level HTC handle
48*5113495bSYour Name  * @hal_soc: Opaque HAL SOC handle
49*5113495bSYour Name  * @osdev: QDF device
50*5113495bSYour Name  *
51*5113495bSYour Name  * Return: HTT handle on success; NULL on failure
52*5113495bSYour Name  */
53*5113495bSYour Name void *
54*5113495bSYour Name dp_htt_soc_initialize_rh(struct htt_soc *htt_soc,
55*5113495bSYour Name 			 struct cdp_ctrl_objmgr_psoc *ctrl_psoc,
56*5113495bSYour Name 			 HTC_HANDLE htc_soc,
57*5113495bSYour Name 			 hal_soc_handle_t hal_soc_hdl, qdf_device_t osdev);
58*5113495bSYour Name #endif
59