xref: /wlan-driver/qca-wifi-host-cmn/dp/wifi3.0/rh/dp_rh_htt.h (revision 5113495b16420b49004c444715d2daae2066e7dc)
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
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 #ifndef __DP_RH_HTT_H
20 #define __DP_RH_HTT_H
21 
22 #include <htt.h>
23 #include "dp_types.h"
24 #include "dp_internal.h"
25 #include "dp_htt.h"
26 #include "qdf_mem.h"
27 #include "cdp_txrx_cmn_struct.h"
28 
29 /* sizeof(struct htt_t2h_soft_umac_tx_compl_ind) */
30 #define HTT_SOFT_UMAC_TX_COMPL_IND_SIZE	(1 * 4) //in bytes
31 
32 /* sizeof(struct htt_t2h_tx_msdu_info) */
33 #define HTT_TX_MSDU_INFO_SIZE	(8 * 4) //in bytes
34 
35 /*
36  * dp_htt_h2t_rx_ring_rfs_cfg() - RFS config for RX DATA indication
37  * @htt_soc: Opaque htt SOC handle
38  *
39  * Return: QDF_STATUS success or failure
40  */
41 QDF_STATUS dp_htt_h2t_rx_ring_rfs_cfg(struct htt_soc *soc);
42 
43 /*
44  * dp_htt_soc_initialize_rh() - SOC level HTT initialization
45  * @htt_soc: Opaque htt SOC handle
46  * @ctrl_psoc: Opaque ctrl SOC handle
47  * @htc_soc: SOC level HTC handle
48  * @hal_soc: Opaque HAL SOC handle
49  * @osdev: QDF device
50  *
51  * Return: HTT handle on success; NULL on failure
52  */
53 void *
54 dp_htt_soc_initialize_rh(struct htt_soc *htt_soc,
55 			 struct cdp_ctrl_objmgr_psoc *ctrl_psoc,
56 			 HTC_HANDLE htc_soc,
57 			 hal_soc_handle_t hal_soc_hdl, qdf_device_t osdev);
58 #endif
59