xref: /wlan-driver/qca-wifi-host-cmn/dp/wifi3.0/dp_ipa.h (revision 5113495b16420b49004c444715d2daae2066e7dc)
1*5113495bSYour Name /*
2*5113495bSYour Name  * Copyright (c) 2017-2021, The Linux Foundation. All rights reserved.
3*5113495bSYour Name  * Copyright (c) 2021-2024 Qualcomm Innovation Center, Inc. All rights reserved.
4*5113495bSYour Name  *
5*5113495bSYour Name  * Permission to use, copy, modify, and/or distribute this software for any
6*5113495bSYour Name  * purpose with or without fee is hereby granted, provided that the above
7*5113495bSYour Name  * copyright notice and this permission notice appear in all copies.
8*5113495bSYour Name  *
9*5113495bSYour Name  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10*5113495bSYour Name  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11*5113495bSYour Name  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12*5113495bSYour Name  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13*5113495bSYour Name  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14*5113495bSYour Name  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15*5113495bSYour Name  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16*5113495bSYour Name  */
17*5113495bSYour Name 
18*5113495bSYour Name #ifndef _DP_IPA_H_
19*5113495bSYour Name #define _DP_IPA_H_
20*5113495bSYour Name 
21*5113495bSYour Name #if defined(QCA_WIFI_KIWI) || defined(QCA_WIFI_KIWI_V2)
22*5113495bSYour Name /* Index into soc->tcl_data_ring[] */
23*5113495bSYour Name #define IPA_TCL_DATA_RING_IDX	3
24*5113495bSYour Name #else
25*5113495bSYour Name #define IPA_TCL_DATA_RING_IDX	2
26*5113495bSYour Name #endif
27*5113495bSYour Name /* Index into soc->tx_comp_ring[] */
28*5113495bSYour Name #define IPA_TX_COMP_RING_IDX IPA_TCL_DATA_RING_IDX
29*5113495bSYour Name 
30*5113495bSYour Name #ifdef IPA_OFFLOAD
31*5113495bSYour Name 
32*5113495bSYour Name #define DP_IPA_MAX_IFACE	3
33*5113495bSYour Name #define IPA_REO_DEST_RING_IDX	3
34*5113495bSYour Name #define IPA_REO_DEST_RING_IDX_2	7
35*5113495bSYour Name 
36*5113495bSYour Name #define IPA_RX_REFILL_BUF_RING_IDX	2
37*5113495bSYour Name 
38*5113495bSYour Name #define IPA_ALT_REO_DEST_RING_IDX	2
39*5113495bSYour Name #define IPA_RX_ALT_REFILL_BUF_RING_IDX	3
40*5113495bSYour Name 
41*5113495bSYour Name /* Adding delay before disabling ipa pipes if any Tx Completions are pending */
42*5113495bSYour Name #define TX_COMP_DRAIN_WAIT_MS	50
43*5113495bSYour Name #define TX_COMP_DRAIN_WAIT_TIMEOUT_MS	100
44*5113495bSYour Name 
45*5113495bSYour Name #ifdef IPA_WDI3_TX_TWO_PIPES
46*5113495bSYour Name #if defined(QCA_WIFI_KIWI) || defined(QCA_WIFI_KIWI_V2)
47*5113495bSYour Name /* Index into soc->tcl_data_ring[] and soc->tx_comp_ring[] */
48*5113495bSYour Name #define IPA_TX_ALT_RING_IDX 4
49*5113495bSYour Name #define IPA_TX_ALT_COMP_RING_IDX IPA_TX_ALT_RING_IDX
50*5113495bSYour Name #elif defined(QCA_WIFI_QCN9224)
51*5113495bSYour Name #define IPA_TX_ALT_RING_IDX 3
52*5113495bSYour Name #define IPA_TX_ALT_COMP_RING_IDX IPA_TX_ALT_RING_IDX
53*5113495bSYour Name #else /* !KIWI */
54*5113495bSYour Name #define IPA_TX_ALT_RING_IDX 1
55*5113495bSYour Name /*
56*5113495bSYour Name  * must be same as IPA_TX_ALT_RING_IDX as tcl and wbm ring
57*5113495bSYour Name  * are initialized with same index as a pair.
58*5113495bSYour Name  */
59*5113495bSYour Name #define IPA_TX_ALT_COMP_RING_IDX 1
60*5113495bSYour Name #endif /* KIWI */
61*5113495bSYour Name 
62*5113495bSYour Name #define IPA_SESSION_ID_SHIFT 1
63*5113495bSYour Name #endif /* IPA_WDI3_TX_TWO_PIPES */
64*5113495bSYour Name 
65*5113495bSYour Name /**
66*5113495bSYour Name  * struct dp_ipa_uc_tx_hdr - full tx header registered to IPA hardware
67*5113495bSYour Name  * @eth:     ether II header
68*5113495bSYour Name  */
69*5113495bSYour Name struct dp_ipa_uc_tx_hdr {
70*5113495bSYour Name 	struct ethhdr eth;
71*5113495bSYour Name } __packed;
72*5113495bSYour Name 
73*5113495bSYour Name /**
74*5113495bSYour Name  * struct dp_ipa_uc_tx_vlan_hdr - full tx header registered to IPA hardware
75*5113495bSYour Name  * @eth:     ether II header
76*5113495bSYour Name  */
77*5113495bSYour Name struct dp_ipa_uc_tx_vlan_hdr {
78*5113495bSYour Name 	struct vlan_ethhdr eth;
79*5113495bSYour Name } __packed;
80*5113495bSYour Name 
81*5113495bSYour Name /**
82*5113495bSYour Name  * struct dp_ipa_uc_rx_hdr - full rx header registered to IPA hardware
83*5113495bSYour Name  * @eth:     ether II header
84*5113495bSYour Name  */
85*5113495bSYour Name struct dp_ipa_uc_rx_hdr {
86*5113495bSYour Name 	struct ethhdr eth;
87*5113495bSYour Name } __packed;
88*5113495bSYour Name 
89*5113495bSYour Name #define DP_IPA_UC_WLAN_TX_HDR_LEN      sizeof(struct dp_ipa_uc_tx_hdr)
90*5113495bSYour Name #define DP_IPA_UC_WLAN_TX_VLAN_HDR_LEN sizeof(struct dp_ipa_uc_tx_vlan_hdr)
91*5113495bSYour Name #define DP_IPA_UC_WLAN_RX_HDR_LEN      sizeof(struct dp_ipa_uc_rx_hdr)
92*5113495bSYour Name /* 28 <bytes of rx_msdu_end_tlv> + 16 <bytes of attn tlv> +
93*5113495bSYour Name  * 52 <bytes of rx_mpdu_start_tlv> + <L2 Header>
94*5113495bSYour Name  */
95*5113495bSYour Name #define DP_IPA_UC_WLAN_RX_HDR_LEN_AST  110
96*5113495bSYour Name #define DP_IPA_UC_WLAN_RX_HDR_LEN_AST_VLAN 114
97*5113495bSYour Name #define DP_IPA_UC_WLAN_HDR_DES_MAC_OFFSET	0
98*5113495bSYour Name 
99*5113495bSYour Name #define DP_IPA_HDL_INVALID	0xFF
100*5113495bSYour Name #define DP_IPA_HDL_FIRST	0
101*5113495bSYour Name #define DP_IPA_HDL_SECOND	1
102*5113495bSYour Name #define DP_IPA_HDL_THIRD	2
103*5113495bSYour Name /**
104*5113495bSYour Name  * wlan_ipa_get_hdl() - Get ipa handle from IPA component
105*5113495bSYour Name  * @psoc: control psoc object
106*5113495bSYour Name  * @pdev_id: pdev id
107*5113495bSYour Name  *
108*5113495bSYour Name  * IPA component will return the IPA handle based on pdev_id
109*5113495bSYour Name  *
110*5113495bSYour Name  * Return: IPA handle
111*5113495bSYour Name  */
112*5113495bSYour Name qdf_ipa_wdi_hdl_t wlan_ipa_get_hdl(void *psoc, uint8_t pdev_id);
113*5113495bSYour Name 
114*5113495bSYour Name /**
115*5113495bSYour Name  * dp_ipa_get_resource() - Client request resource information
116*5113495bSYour Name  * @soc_hdl: data path soc handle
117*5113495bSYour Name  * @pdev_id: device instance id
118*5113495bSYour Name  *
119*5113495bSYour Name  *  IPA client will request IPA UC related resource information
120*5113495bSYour Name  *  Resource information will be distributed to IPA module
121*5113495bSYour Name  *  All of the required resources should be pre-allocated
122*5113495bSYour Name  *
123*5113495bSYour Name  * Return: QDF_STATUS
124*5113495bSYour Name  */
125*5113495bSYour Name QDF_STATUS dp_ipa_get_resource(struct cdp_soc_t *soc_hdl, uint8_t pdev_id);
126*5113495bSYour Name 
127*5113495bSYour Name /**
128*5113495bSYour Name  * dp_ipa_set_doorbell_paddr() - Set doorbell register physical address to SRNG
129*5113495bSYour Name  * @soc_hdl: data path soc handle
130*5113495bSYour Name  * @pdev_id: device instance id
131*5113495bSYour Name  *
132*5113495bSYour Name  * Set TX_COMP_DOORBELL register physical address to WBM Head_Ptr_MemAddr_LSB
133*5113495bSYour Name  * Set RX_READ_DOORBELL register physical address to REO Head_Ptr_MemAddr_LSB
134*5113495bSYour Name  *
135*5113495bSYour Name  * Return: QDF_STATUS
136*5113495bSYour Name  */
137*5113495bSYour Name QDF_STATUS dp_ipa_set_doorbell_paddr(struct cdp_soc_t *soc_hdl,
138*5113495bSYour Name 				     uint8_t pdev_id);
139*5113495bSYour Name 
140*5113495bSYour Name /**
141*5113495bSYour Name  * dp_ipa_iounmap_doorbell_vaddr() - unmap ipa RX db vaddr
142*5113495bSYour Name  * @soc_hdl: data path soc handle
143*5113495bSYour Name  * @pdev_id: device instance id
144*5113495bSYour Name  *
145*5113495bSYour Name  * Return: QDF_STATUS
146*5113495bSYour Name  */
147*5113495bSYour Name QDF_STATUS dp_ipa_iounmap_doorbell_vaddr(struct cdp_soc_t *soc_hdl,
148*5113495bSYour Name 					 uint8_t pdev_id);
149*5113495bSYour Name 
150*5113495bSYour Name /**
151*5113495bSYour Name  * dp_ipa_op_response() - Handle OP command response from firmware
152*5113495bSYour Name  * @soc_hdl: data path soc handle
153*5113495bSYour Name  * @pdev_id: device instance id
154*5113495bSYour Name  * @op_msg: op response message from firmware
155*5113495bSYour Name  *
156*5113495bSYour Name  * Return: QDF_STATUS
157*5113495bSYour Name  */
158*5113495bSYour Name QDF_STATUS dp_ipa_op_response(struct cdp_soc_t *soc_hdl, uint8_t pdev_id,
159*5113495bSYour Name 			      uint8_t *op_msg);
160*5113495bSYour Name 
161*5113495bSYour Name /**
162*5113495bSYour Name  * dp_ipa_register_op_cb() - Register OP handler function
163*5113495bSYour Name  * @soc_hdl: data path soc handle
164*5113495bSYour Name  * @pdev_id: device instance id
165*5113495bSYour Name  * @op_cb: handler function pointer
166*5113495bSYour Name  * @usr_ctxt: user context passed back to handler function
167*5113495bSYour Name  *
168*5113495bSYour Name  * Return: QDF_STATUS
169*5113495bSYour Name  */
170*5113495bSYour Name QDF_STATUS dp_ipa_register_op_cb(struct cdp_soc_t *soc_hdl, uint8_t pdev_id,
171*5113495bSYour Name 				 ipa_uc_op_cb_type op_cb, void *usr_ctxt);
172*5113495bSYour Name 
173*5113495bSYour Name /**
174*5113495bSYour Name  * dp_ipa_deregister_op_cb() - Deregister OP handler function
175*5113495bSYour Name  * @soc_hdl: data path soc handle
176*5113495bSYour Name  * @pdev_id: device instance id
177*5113495bSYour Name  *
178*5113495bSYour Name  * Return: none
179*5113495bSYour Name  */
180*5113495bSYour Name void dp_ipa_deregister_op_cb(struct cdp_soc_t *soc_hdl, uint8_t pdev_id);
181*5113495bSYour Name 
182*5113495bSYour Name /**
183*5113495bSYour Name  * dp_ipa_get_stat() - Get firmware wdi status
184*5113495bSYour Name  * @soc_hdl: data path soc handle
185*5113495bSYour Name  * @pdev_id: device instance id
186*5113495bSYour Name  *
187*5113495bSYour Name  * Return: QDF_STATUS
188*5113495bSYour Name  */
189*5113495bSYour Name QDF_STATUS dp_ipa_get_stat(struct cdp_soc_t *soc_hdl, uint8_t pdev_id);
190*5113495bSYour Name 
191*5113495bSYour Name /**
192*5113495bSYour Name  * dp_tx_send_ipa_data_frame() - send IPA data frame
193*5113495bSYour Name  * @soc_hdl: datapath soc handle
194*5113495bSYour Name  * @vdev_id: virtual device/interface id
195*5113495bSYour Name  * @skb: skb
196*5113495bSYour Name  *
197*5113495bSYour Name  * Return: skb/ NULL is for success
198*5113495bSYour Name  */
199*5113495bSYour Name qdf_nbuf_t dp_tx_send_ipa_data_frame(struct cdp_soc_t *soc_hdl, uint8_t vdev_id,
200*5113495bSYour Name 				     qdf_nbuf_t skb);
201*5113495bSYour Name 
202*5113495bSYour Name /**
203*5113495bSYour Name  * dp_ipa_enable_autonomy() - Enable autonomy RX path
204*5113495bSYour Name  * @soc_hdl: data path soc handle
205*5113495bSYour Name  * @pdev_id: device instance id
206*5113495bSYour Name  *
207*5113495bSYour Name  * Set all RX packet route to IPA REO ring
208*5113495bSYour Name  * Program Destination_Ring_Ctrl_IX_0 REO register to point IPA REO ring
209*5113495bSYour Name  *
210*5113495bSYour Name  * Return: QDF_STATUS
211*5113495bSYour Name  */
212*5113495bSYour Name QDF_STATUS dp_ipa_enable_autonomy(struct cdp_soc_t *soc_hdl, uint8_t pdev_id);
213*5113495bSYour Name 
214*5113495bSYour Name /**
215*5113495bSYour Name  * dp_ipa_disable_autonomy() - Disable autonomy RX path
216*5113495bSYour Name  * @soc_hdl: data path soc handle
217*5113495bSYour Name  * @pdev_id: device instance id
218*5113495bSYour Name  *
219*5113495bSYour Name  * Disable RX packet routing to IPA REO
220*5113495bSYour Name  * Program Destination_Ring_Ctrl_IX_0 REO register to disable
221*5113495bSYour Name  *
222*5113495bSYour Name  * Return: QDF_STATUS
223*5113495bSYour Name  */
224*5113495bSYour Name QDF_STATUS dp_ipa_disable_autonomy(struct cdp_soc_t *soc_hdl, uint8_t pdev_id);
225*5113495bSYour Name 
226*5113495bSYour Name #if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 10, 0)) || \
227*5113495bSYour Name 	defined(CONFIG_IPA_WDI_UNIFIED_API)
228*5113495bSYour Name /**
229*5113495bSYour Name  * dp_ipa_setup() - Setup and connect IPA pipes
230*5113495bSYour Name  * @soc_hdl: data path soc handle
231*5113495bSYour Name  * @pdev_id: device instance id
232*5113495bSYour Name  * @ipa_i2w_cb: IPA to WLAN callback
233*5113495bSYour Name  * @ipa_w2i_cb: WLAN to IPA callback
234*5113495bSYour Name  * @ipa_wdi_meter_notifier_cb: IPA WDI metering callback
235*5113495bSYour Name  * @ipa_desc_size: IPA descriptor size
236*5113495bSYour Name  * @ipa_priv: handle to the HTT instance
237*5113495bSYour Name  * @is_rm_enabled: Is IPA RM enabled or not
238*5113495bSYour Name  * @tx_pipe_handle: pointer to Tx pipe handle
239*5113495bSYour Name  * @rx_pipe_handle: pointer to Rx pipe handle
240*5113495bSYour Name  * @is_smmu_enabled: Is SMMU enabled or not
241*5113495bSYour Name  * @sys_in: parameters to setup sys pipe in mcc mode
242*5113495bSYour Name  * @over_gsi:
243*5113495bSYour Name  * @hdl: IPA handle
244*5113495bSYour Name  * @id: IPA instance id
245*5113495bSYour Name  * @ipa_ast_notify_cb: IPA to WLAN callback for ast create and update
246*5113495bSYour Name  *
247*5113495bSYour Name  * Return: QDF_STATUS
248*5113495bSYour Name  */
249*5113495bSYour Name QDF_STATUS dp_ipa_setup(struct cdp_soc_t *soc_hdl, uint8_t pdev_id,
250*5113495bSYour Name 			void *ipa_i2w_cb, void *ipa_w2i_cb,
251*5113495bSYour Name 			void *ipa_wdi_meter_notifier_cb,
252*5113495bSYour Name 			uint32_t ipa_desc_size, void *ipa_priv,
253*5113495bSYour Name 			bool is_rm_enabled, uint32_t *tx_pipe_handle,
254*5113495bSYour Name 			uint32_t *rx_pipe_handle,
255*5113495bSYour Name 			bool is_smmu_enabled,
256*5113495bSYour Name 			qdf_ipa_sys_connect_params_t *sys_in, bool over_gsi,
257*5113495bSYour Name 			qdf_ipa_wdi_hdl_t hdl, qdf_ipa_wdi_hdl_t id,
258*5113495bSYour Name 			void *ipa_ast_notify_cb);
259*5113495bSYour Name #else /* CONFIG_IPA_WDI_UNIFIED_API */
260*5113495bSYour Name /**
261*5113495bSYour Name  * dp_ipa_setup() - Setup and connect IPA pipes
262*5113495bSYour Name  * @soc_hdl: data path soc handle
263*5113495bSYour Name  * @pdev_id: device instance id
264*5113495bSYour Name  * @ipa_i2w_cb: IPA to WLAN callback
265*5113495bSYour Name  * @ipa_w2i_cb: WLAN to IPA callback
266*5113495bSYour Name  * @ipa_wdi_meter_notifier_cb: IPA WDI metering callback
267*5113495bSYour Name  * @ipa_desc_size: IPA descriptor size
268*5113495bSYour Name  * @ipa_priv: handle to the HTT instance
269*5113495bSYour Name  * @is_rm_enabled: Is IPA RM enabled or not
270*5113495bSYour Name  * @tx_pipe_handle: pointer to Tx pipe handle
271*5113495bSYour Name  * @rx_pipe_handle: pointer to Rx pipe handle
272*5113495bSYour Name  *
273*5113495bSYour Name  * Return: QDF_STATUS
274*5113495bSYour Name  */
275*5113495bSYour Name QDF_STATUS dp_ipa_setup(struct cdp_soc_t *soc_hdl, uint8_t pdev_id,
276*5113495bSYour Name 			void *ipa_i2w_cb, void *ipa_w2i_cb,
277*5113495bSYour Name 			void *ipa_wdi_meter_notifier_cb,
278*5113495bSYour Name 			uint32_t ipa_desc_size, void *ipa_priv,
279*5113495bSYour Name 			bool is_rm_enabled, uint32_t *tx_pipe_handle,
280*5113495bSYour Name 			uint32_t *rx_pipe_handle);
281*5113495bSYour Name #endif /* CONFIG_IPA_WDI_UNIFIED_API */
282*5113495bSYour Name 
283*5113495bSYour Name /**
284*5113495bSYour Name  * dp_ipa_cleanup() - Disconnect IPA pipes
285*5113495bSYour Name  * @soc_hdl: dp soc handle
286*5113495bSYour Name  * @pdev_id: dp pdev id
287*5113495bSYour Name  * @tx_pipe_handle: Tx pipe handle
288*5113495bSYour Name  * @rx_pipe_handle: Rx pipe handle
289*5113495bSYour Name  * @hdl: IPA handle
290*5113495bSYour Name  *
291*5113495bSYour Name  * Return: QDF_STATUS
292*5113495bSYour Name  */
293*5113495bSYour Name QDF_STATUS dp_ipa_cleanup(struct cdp_soc_t *soc_hdl, uint8_t pdev_id,
294*5113495bSYour Name 			  uint32_t tx_pipe_handle, uint32_t rx_pipe_handle,
295*5113495bSYour Name 			  qdf_ipa_wdi_hdl_t hdl);
296*5113495bSYour Name 
297*5113495bSYour Name /**
298*5113495bSYour Name  * dp_ipa_setup_iface() - Setup IPA header and register interface
299*5113495bSYour Name  * @ifname: Interface name
300*5113495bSYour Name  * @mac_addr: Interface MAC address
301*5113495bSYour Name  * @prod_client: IPA prod client type
302*5113495bSYour Name  * @cons_client: IPA cons client type
303*5113495bSYour Name  * @session_id: Session ID
304*5113495bSYour Name  * @is_ipv6_enabled: Is IPV6 enabled or not
305*5113495bSYour Name  * @hdl: IPA handle
306*5113495bSYour Name  *
307*5113495bSYour Name  * Return: QDF_STATUS
308*5113495bSYour Name  */
309*5113495bSYour Name QDF_STATUS dp_ipa_setup_iface(char *ifname, uint8_t *mac_addr,
310*5113495bSYour Name 			      qdf_ipa_client_type_t prod_client,
311*5113495bSYour Name 			      qdf_ipa_client_type_t cons_client,
312*5113495bSYour Name 			      uint8_t session_id, bool is_ipv6_enabled,
313*5113495bSYour Name 			      qdf_ipa_wdi_hdl_t hdl);
314*5113495bSYour Name 
315*5113495bSYour Name /**
316*5113495bSYour Name  * dp_ipa_cleanup_iface() - Cleanup IPA header and deregister interface
317*5113495bSYour Name  * @ifname: Interface name
318*5113495bSYour Name  * @is_ipv6_enabled: Is IPV6 enabled or not
319*5113495bSYour Name  * @hdl: IPA handle
320*5113495bSYour Name  *
321*5113495bSYour Name  * Return: QDF_STATUS
322*5113495bSYour Name  */
323*5113495bSYour Name QDF_STATUS dp_ipa_cleanup_iface(char *ifname, bool is_ipv6_enabled,
324*5113495bSYour Name 				qdf_ipa_wdi_hdl_t hdl);
325*5113495bSYour Name 
326*5113495bSYour Name /**
327*5113495bSYour Name  * dp_ipa_enable_pipes() - Enable and resume traffic on Tx/Rx pipes
328*5113495bSYour Name  * @soc_hdl: handle to the soc
329*5113495bSYour Name  * @pdev_id: pdev id number, to get the handle
330*5113495bSYour Name  * @hdl: IPA handle
331*5113495bSYour Name  *
332*5113495bSYour Name  * Return: QDF_STATUS
333*5113495bSYour Name  */
334*5113495bSYour Name QDF_STATUS dp_ipa_enable_pipes(struct cdp_soc_t *soc_hdl, uint8_t pdev_id,
335*5113495bSYour Name 			       qdf_ipa_wdi_hdl_t hdl);
336*5113495bSYour Name 
337*5113495bSYour Name /**
338*5113495bSYour Name  * dp_ipa_disable_pipes() - Suspend traffic and disable Tx/Rx pipes
339*5113495bSYour Name  * @soc_hdl: handle to the soc
340*5113495bSYour Name  * @pdev_id: pdev id number, to get the handle
341*5113495bSYour Name  * @hdl: IPA handle
342*5113495bSYour Name  *
343*5113495bSYour Name  * Return: QDF_STATUS
344*5113495bSYour Name  */
345*5113495bSYour Name QDF_STATUS dp_ipa_disable_pipes(struct cdp_soc_t *soc_hdl, uint8_t pdev_id,
346*5113495bSYour Name 				qdf_ipa_wdi_hdl_t hdl);
347*5113495bSYour Name 
348*5113495bSYour Name /**
349*5113495bSYour Name  * dp_ipa_set_perf_level() - Set IPA clock bandwidth based on data rates
350*5113495bSYour Name  * @client: Client type
351*5113495bSYour Name  * @max_supported_bw_mbps: Maximum bandwidth needed (in Mbps)
352*5113495bSYour Name  * @hdl: IPA handle
353*5113495bSYour Name  *
354*5113495bSYour Name  * Return: QDF_STATUS
355*5113495bSYour Name  */
356*5113495bSYour Name QDF_STATUS dp_ipa_set_perf_level(int client, uint32_t max_supported_bw_mbps,
357*5113495bSYour Name 				 qdf_ipa_wdi_hdl_t hdl);
358*5113495bSYour Name #ifdef IPA_OPT_WIFI_DP
359*5113495bSYour Name QDF_STATUS dp_ipa_rx_super_rule_setup(struct cdp_soc_t *soc_hdl,
360*5113495bSYour Name 				      void *flt_params);
361*5113495bSYour Name int dp_ipa_pcie_link_up(struct cdp_soc_t *soc_hdl);
362*5113495bSYour Name void dp_ipa_pcie_link_down(struct cdp_soc_t *soc_hdl);
363*5113495bSYour Name #endif
364*5113495bSYour Name 
365*5113495bSYour Name #ifdef QCA_SUPPORT_WDS_EXTENDED
366*5113495bSYour Name /**
367*5113495bSYour Name  * dp_ipa_rx_wdsext_iface() -  Forward RX exception packets to wdsext interface
368*5113495bSYour Name  * @soc_hdl: data path SoC handle
369*5113495bSYour Name  * @peer_id: Peer ID to get respective peer
370*5113495bSYour Name  * @skb: socket buffer
371*5113495bSYour Name  *
372*5113495bSYour Name  * Return: bool
373*5113495bSYour Name  */
374*5113495bSYour Name bool dp_ipa_rx_wdsext_iface(struct cdp_soc_t *soc_hdl, uint8_t peer_id,
375*5113495bSYour Name 			    qdf_nbuf_t skb);
376*5113495bSYour Name #endif
377*5113495bSYour Name 
378*5113495bSYour Name /**
379*5113495bSYour Name  * dp_ipa_rx_intrabss_fwd() - Perform intra-bss fwd for IPA RX path
380*5113495bSYour Name  *
381*5113495bSYour Name  * @soc_hdl: data path soc handle
382*5113495bSYour Name  * @vdev_id: virtual device/interface id
383*5113495bSYour Name  * @nbuf: pointer to skb of ethernet packet received from IPA RX path
384*5113495bSYour Name  * @fwd_success: pointer to indicate if skb succeeded in intra-bss TX
385*5113495bSYour Name  *
386*5113495bSYour Name  * This function performs intra-bss forwarding for WDI 3.0 IPA RX path.
387*5113495bSYour Name  *
388*5113495bSYour Name  * Return: true if packet is intra-bss fwd-ed and no need to pass to
389*5113495bSYour Name  *	   network stack. false if packet needs to be passed to network stack.
390*5113495bSYour Name  */
391*5113495bSYour Name bool dp_ipa_rx_intrabss_fwd(struct cdp_soc_t *soc_hdl, uint8_t vdev_id,
392*5113495bSYour Name 			    qdf_nbuf_t nbuf, bool *fwd_success);
393*5113495bSYour Name int dp_ipa_uc_detach(struct dp_soc *soc, struct dp_pdev *pdev);
394*5113495bSYour Name int dp_ipa_uc_attach(struct dp_soc *soc, struct dp_pdev *pdev);
395*5113495bSYour Name 
396*5113495bSYour Name /**
397*5113495bSYour Name  * dp_ipa_ring_resource_setup() - setup IPA ring resources
398*5113495bSYour Name  * @soc: data path SoC handle
399*5113495bSYour Name  * @pdev:
400*5113495bSYour Name  *
401*5113495bSYour Name  * Return: status
402*5113495bSYour Name  */
403*5113495bSYour Name int dp_ipa_ring_resource_setup(struct dp_soc *soc,
404*5113495bSYour Name 			       struct dp_pdev *pdev);
405*5113495bSYour Name 
406*5113495bSYour Name bool dp_reo_remap_config(struct dp_soc *soc, uint32_t *remap0,
407*5113495bSYour Name 			 uint32_t *remap1, uint32_t *remap2);
408*5113495bSYour Name bool dp_ipa_is_mdm_platform(void);
409*5113495bSYour Name 
410*5113495bSYour Name /**
411*5113495bSYour Name  * dp_ipa_handle_rx_reo_reinject() - Handle RX REO reinject skb buffer
412*5113495bSYour Name  * @soc: soc
413*5113495bSYour Name  * @nbuf: skb
414*5113495bSYour Name  *
415*5113495bSYour Name  * Return: nbuf if success and otherwise NULL
416*5113495bSYour Name  */
417*5113495bSYour Name qdf_nbuf_t dp_ipa_handle_rx_reo_reinject(struct dp_soc *soc, qdf_nbuf_t nbuf);
418*5113495bSYour Name 
419*5113495bSYour Name QDF_STATUS dp_ipa_handle_rx_buf_smmu_mapping(struct dp_soc *soc,
420*5113495bSYour Name 					     qdf_nbuf_t nbuf,
421*5113495bSYour Name 					     uint32_t size,
422*5113495bSYour Name 					     bool create,
423*5113495bSYour Name 					     const char *func,
424*5113495bSYour Name 					     uint32_t line);
425*5113495bSYour Name /**
426*5113495bSYour Name  * dp_ipa_tx_buf_smmu_mapping() - Create SMMU mappings for IPA
427*5113495bSYour Name  *				  allocated TX buffers
428*5113495bSYour Name  * @soc_hdl: handle to the soc
429*5113495bSYour Name  * @pdev_id: pdev id number, to get the handle
430*5113495bSYour Name  * @func: caller function
431*5113495bSYour Name  * @line: line number
432*5113495bSYour Name  *
433*5113495bSYour Name  * Return: QDF_STATUS
434*5113495bSYour Name  */
435*5113495bSYour Name QDF_STATUS dp_ipa_tx_buf_smmu_mapping(struct cdp_soc_t *soc_hdl,
436*5113495bSYour Name 				      uint8_t pdev_id, const char *func,
437*5113495bSYour Name 				      uint32_t line);
438*5113495bSYour Name 
439*5113495bSYour Name /**
440*5113495bSYour Name  * dp_ipa_tx_buf_smmu_unmapping() - Release SMMU mappings for IPA
441*5113495bSYour Name  *				    allocated TX buffers
442*5113495bSYour Name  * @soc_hdl: handle to the soc
443*5113495bSYour Name  * @pdev_id: pdev id number, to get the handle
444*5113495bSYour Name  * @func: caller function
445*5113495bSYour Name  * @line: line number
446*5113495bSYour Name  *
447*5113495bSYour Name  * Return: QDF_STATUS
448*5113495bSYour Name  */
449*5113495bSYour Name QDF_STATUS dp_ipa_tx_buf_smmu_unmapping(struct cdp_soc_t *soc_hdl,
450*5113495bSYour Name 					uint8_t pdev_id, const char *func,
451*5113495bSYour Name 					uint32_t line);
452*5113495bSYour Name QDF_STATUS dp_ipa_rx_buf_pool_smmu_mapping(struct cdp_soc_t *soc_hdl,
453*5113495bSYour Name 					   uint8_t pdev_id,
454*5113495bSYour Name 					   bool create,
455*5113495bSYour Name 					   const char *func,
456*5113495bSYour Name 					   uint32_t line);
457*5113495bSYour Name QDF_STATUS dp_ipa_set_smmu_mapped(struct cdp_soc_t *soc, int val);
458*5113495bSYour Name int dp_ipa_get_smmu_mapped(struct cdp_soc_t *soc);
459*5113495bSYour Name 
460*5113495bSYour Name #ifndef QCA_OL_DP_SRNG_LOCK_LESS_ACCESS
461*5113495bSYour Name static inline void
dp_ipa_rx_buf_smmu_mapping_lock(struct dp_soc * soc)462*5113495bSYour Name dp_ipa_rx_buf_smmu_mapping_lock(struct dp_soc *soc)
463*5113495bSYour Name {
464*5113495bSYour Name 	if (soc->ipa_rx_buf_map_lock_initialized)
465*5113495bSYour Name 		qdf_spin_lock_bh(&soc->ipa_rx_buf_map_lock);
466*5113495bSYour Name }
467*5113495bSYour Name 
468*5113495bSYour Name static inline void
dp_ipa_rx_buf_smmu_mapping_unlock(struct dp_soc * soc)469*5113495bSYour Name dp_ipa_rx_buf_smmu_mapping_unlock(struct dp_soc *soc)
470*5113495bSYour Name {
471*5113495bSYour Name 	if (soc->ipa_rx_buf_map_lock_initialized)
472*5113495bSYour Name 		qdf_spin_unlock_bh(&soc->ipa_rx_buf_map_lock);
473*5113495bSYour Name }
474*5113495bSYour Name 
475*5113495bSYour Name static inline void
dp_ipa_reo_ctx_buf_mapping_lock(struct dp_soc * soc,uint32_t reo_ring_num)476*5113495bSYour Name dp_ipa_reo_ctx_buf_mapping_lock(struct dp_soc *soc,
477*5113495bSYour Name 				uint32_t reo_ring_num)
478*5113495bSYour Name {
479*5113495bSYour Name 	if (!soc->ipa_reo_ctx_lock_required[reo_ring_num])
480*5113495bSYour Name 		return;
481*5113495bSYour Name 
482*5113495bSYour Name 	qdf_spin_lock_bh(&soc->ipa_rx_buf_map_lock);
483*5113495bSYour Name }
484*5113495bSYour Name 
485*5113495bSYour Name static inline void
dp_ipa_reo_ctx_buf_mapping_unlock(struct dp_soc * soc,uint32_t reo_ring_num)486*5113495bSYour Name dp_ipa_reo_ctx_buf_mapping_unlock(struct dp_soc *soc,
487*5113495bSYour Name 				  uint32_t reo_ring_num)
488*5113495bSYour Name {
489*5113495bSYour Name 	if (!soc->ipa_reo_ctx_lock_required[reo_ring_num])
490*5113495bSYour Name 		return;
491*5113495bSYour Name 
492*5113495bSYour Name 	qdf_spin_unlock_bh(&soc->ipa_rx_buf_map_lock);
493*5113495bSYour Name }
494*5113495bSYour Name #else
495*5113495bSYour Name 
496*5113495bSYour Name static inline void
dp_ipa_rx_buf_smmu_mapping_lock(struct dp_soc * soc)497*5113495bSYour Name dp_ipa_rx_buf_smmu_mapping_lock(struct dp_soc *soc)
498*5113495bSYour Name {
499*5113495bSYour Name }
500*5113495bSYour Name 
501*5113495bSYour Name static inline void
dp_ipa_rx_buf_smmu_mapping_unlock(struct dp_soc * soc)502*5113495bSYour Name dp_ipa_rx_buf_smmu_mapping_unlock(struct dp_soc *soc)
503*5113495bSYour Name {
504*5113495bSYour Name }
505*5113495bSYour Name 
506*5113495bSYour Name static inline void
dp_ipa_reo_ctx_buf_mapping_lock(struct dp_soc * soc,uint32_t reo_ring_num)507*5113495bSYour Name dp_ipa_reo_ctx_buf_mapping_lock(struct dp_soc *soc,
508*5113495bSYour Name 				uint32_t reo_ring_num)
509*5113495bSYour Name {
510*5113495bSYour Name }
511*5113495bSYour Name 
512*5113495bSYour Name static inline void
dp_ipa_reo_ctx_buf_mapping_unlock(struct dp_soc * soc,uint32_t reo_ring_num)513*5113495bSYour Name dp_ipa_reo_ctx_buf_mapping_unlock(struct dp_soc *soc,
514*5113495bSYour Name 				  uint32_t reo_ring_num)
515*5113495bSYour Name {
516*5113495bSYour Name }
517*5113495bSYour Name #endif
518*5113495bSYour Name 
519*5113495bSYour Name #ifdef IPA_WDS_EASYMESH_FEATURE
520*5113495bSYour Name /**
521*5113495bSYour Name  * dp_ipa_ast_create() - Create/update AST entry in AST table
522*5113495bSYour Name  *			 for learning/roaming packets from IPA
523*5113495bSYour Name  * @soc_hdl: data path soc handle
524*5113495bSYour Name  * @data: Structure used for updating the AST table
525*5113495bSYour Name  *
526*5113495bSYour Name  * Create/update AST entry in AST table for learning/roaming packets from IPA
527*5113495bSYour Name  *
528*5113495bSYour Name  * Return: QDF_STATUS
529*5113495bSYour Name  */
530*5113495bSYour Name QDF_STATUS dp_ipa_ast_create(struct cdp_soc_t *soc_hdl,
531*5113495bSYour Name 			     qdf_ipa_ast_info_type_t *data);
532*5113495bSYour Name 
533*5113495bSYour Name /**
534*5113495bSYour Name  * dp_ipa_ast_notify_cb() - Provide ast notify cb to IPA
535*5113495bSYour Name  * @pipe_in: WDI conn pipe in params
536*5113495bSYour Name  * @ipa_ast_notify_cb: ipa ast notify cb
537*5113495bSYour Name  *
538*5113495bSYour Name  * Return: None
539*5113495bSYour Name  */
540*5113495bSYour Name static inline void
dp_ipa_ast_notify_cb(qdf_ipa_wdi_conn_in_params_t * pipe_in,void * ipa_ast_notify_cb)541*5113495bSYour Name dp_ipa_ast_notify_cb(qdf_ipa_wdi_conn_in_params_t *pipe_in,
542*5113495bSYour Name 		     void *ipa_ast_notify_cb)
543*5113495bSYour Name {
544*5113495bSYour Name 	QDF_IPA_WDI_CONN_IN_PARAMS_AST_NOTIFY(pipe_in) = ipa_ast_notify_cb;
545*5113495bSYour Name }
546*5113495bSYour Name #else
547*5113495bSYour Name static inline void
dp_ipa_ast_notify_cb(qdf_ipa_wdi_conn_in_params_t * pipe_in,void * ipa_ast_notify_cb)548*5113495bSYour Name dp_ipa_ast_notify_cb(qdf_ipa_wdi_conn_in_params_t *pipe_in,
549*5113495bSYour Name 		     void *ipa_ast_notify_cb)
550*5113495bSYour Name {
551*5113495bSYour Name }
552*5113495bSYour Name #endif
553*5113495bSYour Name 
554*5113495bSYour Name #ifdef IPA_OPT_WIFI_DP
dp_ipa_opt_dp_ixo_remap(uint8_t * ix0_map)555*5113495bSYour Name static inline void dp_ipa_opt_dp_ixo_remap(uint8_t *ix0_map)
556*5113495bSYour Name {
557*5113495bSYour Name 	ix0_map[0] = REO_REMAP_SW1;
558*5113495bSYour Name 	ix0_map[1] = REO_REMAP_SW1;
559*5113495bSYour Name 	ix0_map[2] = REO_REMAP_SW2;
560*5113495bSYour Name 	ix0_map[3] = REO_REMAP_SW3;
561*5113495bSYour Name 	ix0_map[4] = REO_REMAP_SW4;
562*5113495bSYour Name 	ix0_map[5] = REO_REMAP_RELEASE;
563*5113495bSYour Name 	ix0_map[6] = REO_REMAP_FW;
564*5113495bSYour Name 	ix0_map[7] = REO_REMAP_FW;
565*5113495bSYour Name }
566*5113495bSYour Name #else
dp_ipa_opt_dp_ixo_remap(uint8_t * ix0_map)567*5113495bSYour Name static inline void dp_ipa_opt_dp_ixo_remap(uint8_t *ix0_map)
568*5113495bSYour Name {
569*5113495bSYour Name }
570*5113495bSYour Name #endif
571*5113495bSYour Name #ifdef QCA_ENHANCED_STATS_SUPPORT
572*5113495bSYour Name /**
573*5113495bSYour Name  * dp_ipa_txrx_get_peer_stats - fetch peer stats
574*5113495bSYour Name  * @soc: soc handle
575*5113495bSYour Name  * @vdev_id: id of vdev handle
576*5113495bSYour Name  * @peer_mac: peer mac address
577*5113495bSYour Name  * @peer_stats: buffer to hold peer stats
578*5113495bSYour Name  *
579*5113495bSYour Name  * Return: status success/failure
580*5113495bSYour Name  */
581*5113495bSYour Name QDF_STATUS dp_ipa_txrx_get_peer_stats(struct cdp_soc_t *soc, uint8_t vdev_id,
582*5113495bSYour Name 				      uint8_t *peer_mac,
583*5113495bSYour Name 				      struct cdp_peer_stats *peer_stats);
584*5113495bSYour Name 
585*5113495bSYour Name /**
586*5113495bSYour Name  * dp_ipa_txrx_get_vdev_stats - fetch vdev stats
587*5113495bSYour Name  * @soc_hdl: soc handle
588*5113495bSYour Name  * @vdev_id: id of vdev handle
589*5113495bSYour Name  * @buf: buffer to hold vdev stats
590*5113495bSYour Name  * @is_aggregate: for aggregation
591*5113495bSYour Name  *
592*5113495bSYour Name  * Return: int
593*5113495bSYour Name  */
594*5113495bSYour Name int dp_ipa_txrx_get_vdev_stats(struct cdp_soc_t *soc_hdl, uint8_t vdev_id,
595*5113495bSYour Name 			       void *buf, bool is_aggregate);
596*5113495bSYour Name 
597*5113495bSYour Name /**
598*5113495bSYour Name  * dp_ipa_txrx_get_pdev_stats() - fetch pdev stats
599*5113495bSYour Name  * @soc: DP soc handle
600*5113495bSYour Name  * @pdev_id: id of DP pdev handle
601*5113495bSYour Name  * @pdev_stats: buffer to hold pdev stats
602*5113495bSYour Name  *
603*5113495bSYour Name  * Return: status success/failure
604*5113495bSYour Name  */
605*5113495bSYour Name QDF_STATUS dp_ipa_txrx_get_pdev_stats(struct cdp_soc_t *soc, uint8_t pdev_id,
606*5113495bSYour Name 				      struct cdp_pdev_stats *pdev_stats);
607*5113495bSYour Name 
608*5113495bSYour Name /**
609*5113495bSYour Name  * dp_ipa_update_peer_rx_stats() - update peer rx stats
610*5113495bSYour Name  * @soc: soc handle
611*5113495bSYour Name  * @vdev_id: vdev id
612*5113495bSYour Name  * @peer_mac: Peer Mac Address
613*5113495bSYour Name  * @nbuf: data nbuf
614*5113495bSYour Name  *
615*5113495bSYour Name  * Return: status success/failure
616*5113495bSYour Name  */
617*5113495bSYour Name QDF_STATUS dp_ipa_update_peer_rx_stats(struct cdp_soc_t *soc, uint8_t vdev_id,
618*5113495bSYour Name 				       uint8_t *peer_mac, qdf_nbuf_t nbuf);
619*5113495bSYour Name #endif
620*5113495bSYour Name /**
621*5113495bSYour Name  * dp_ipa_get_wdi_version() - Get WDI version
622*5113495bSYour Name  * @soc_hdl: data path soc handle
623*5113495bSYour Name  * @wdi_ver: Out parameter for wdi version
624*5113495bSYour Name  *
625*5113495bSYour Name  * Get WDI version based on soc arch
626*5113495bSYour Name  *
627*5113495bSYour Name  * Return: None
628*5113495bSYour Name  */
629*5113495bSYour Name void dp_ipa_get_wdi_version(struct cdp_soc_t *soc_hdl, uint8_t *wdi_ver);
630*5113495bSYour Name 
631*5113495bSYour Name /**
632*5113495bSYour Name  * dp_ipa_is_ring_ipa_tx() - Check if the TX ring is used by IPA
633*5113495bSYour Name  *
634*5113495bSYour Name  * @soc: DP SoC
635*5113495bSYour Name  * @ring_id: TX ring id
636*5113495bSYour Name  *
637*5113495bSYour Name  * Return: bool
638*5113495bSYour Name  */
639*5113495bSYour Name bool dp_ipa_is_ring_ipa_tx(struct dp_soc *soc, uint8_t ring_id);
640*5113495bSYour Name #else
dp_ipa_uc_detach(struct dp_soc * soc,struct dp_pdev * pdev)641*5113495bSYour Name static inline int dp_ipa_uc_detach(struct dp_soc *soc, struct dp_pdev *pdev)
642*5113495bSYour Name {
643*5113495bSYour Name 	return QDF_STATUS_SUCCESS;
644*5113495bSYour Name }
645*5113495bSYour Name 
dp_ipa_uc_attach(struct dp_soc * soc,struct dp_pdev * pdev)646*5113495bSYour Name static inline int dp_ipa_uc_attach(struct dp_soc *soc, struct dp_pdev *pdev)
647*5113495bSYour Name {
648*5113495bSYour Name 	return QDF_STATUS_SUCCESS;
649*5113495bSYour Name }
650*5113495bSYour Name 
dp_ipa_ring_resource_setup(struct dp_soc * soc,struct dp_pdev * pdev)651*5113495bSYour Name static inline int dp_ipa_ring_resource_setup(struct dp_soc *soc,
652*5113495bSYour Name 					     struct dp_pdev *pdev)
653*5113495bSYour Name {
654*5113495bSYour Name 	return 0;
655*5113495bSYour Name }
656*5113495bSYour Name 
dp_ipa_handle_rx_buf_smmu_mapping(struct dp_soc * soc,qdf_nbuf_t nbuf,uint32_t size,bool create,const char * func,uint32_t line)657*5113495bSYour Name static inline QDF_STATUS dp_ipa_handle_rx_buf_smmu_mapping(struct dp_soc *soc,
658*5113495bSYour Name 							   qdf_nbuf_t nbuf,
659*5113495bSYour Name 							   uint32_t size,
660*5113495bSYour Name 							   bool create,
661*5113495bSYour Name 							   const char *func,
662*5113495bSYour Name 							   uint32_t line)
663*5113495bSYour Name {
664*5113495bSYour Name 	return QDF_STATUS_SUCCESS;
665*5113495bSYour Name }
666*5113495bSYour Name 
667*5113495bSYour Name static inline void
dp_ipa_rx_buf_smmu_mapping_lock(struct dp_soc * soc)668*5113495bSYour Name dp_ipa_rx_buf_smmu_mapping_lock(struct dp_soc *soc)
669*5113495bSYour Name {
670*5113495bSYour Name }
671*5113495bSYour Name 
672*5113495bSYour Name static inline void
dp_ipa_rx_buf_smmu_mapping_unlock(struct dp_soc * soc)673*5113495bSYour Name dp_ipa_rx_buf_smmu_mapping_unlock(struct dp_soc *soc)
674*5113495bSYour Name {
675*5113495bSYour Name }
676*5113495bSYour Name 
677*5113495bSYour Name static inline void
dp_ipa_reo_ctx_buf_mapping_lock(struct dp_soc * soc,uint32_t reo_ring_num)678*5113495bSYour Name dp_ipa_reo_ctx_buf_mapping_lock(struct dp_soc *soc,
679*5113495bSYour Name 				uint32_t reo_ring_num)
680*5113495bSYour Name {
681*5113495bSYour Name }
682*5113495bSYour Name 
683*5113495bSYour Name static inline void
dp_ipa_reo_ctx_buf_mapping_unlock(struct dp_soc * soc,uint32_t reo_ring_num)684*5113495bSYour Name dp_ipa_reo_ctx_buf_mapping_unlock(struct dp_soc *soc,
685*5113495bSYour Name 				  uint32_t reo_ring_num)
686*5113495bSYour Name {
687*5113495bSYour Name }
688*5113495bSYour Name 
dp_ipa_handle_rx_reo_reinject(struct dp_soc * soc,qdf_nbuf_t nbuf)689*5113495bSYour Name static inline qdf_nbuf_t dp_ipa_handle_rx_reo_reinject(struct dp_soc *soc,
690*5113495bSYour Name 						       qdf_nbuf_t nbuf)
691*5113495bSYour Name {
692*5113495bSYour Name 	return nbuf;
693*5113495bSYour Name }
694*5113495bSYour Name 
dp_ipa_tx_buf_smmu_mapping(struct cdp_soc_t * soc_hdl,uint8_t pdev_id,const char * func,uint32_t line)695*5113495bSYour Name static inline QDF_STATUS dp_ipa_tx_buf_smmu_mapping(struct cdp_soc_t *soc_hdl,
696*5113495bSYour Name 						    uint8_t pdev_id,
697*5113495bSYour Name 						    const char *func,
698*5113495bSYour Name 						    uint32_t line)
699*5113495bSYour Name {
700*5113495bSYour Name 	return QDF_STATUS_SUCCESS;
701*5113495bSYour Name }
702*5113495bSYour Name 
dp_ipa_tx_buf_smmu_unmapping(struct cdp_soc_t * soc_hdl,uint8_t pdev_id,const char * func,uint32_t line)703*5113495bSYour Name static inline QDF_STATUS dp_ipa_tx_buf_smmu_unmapping(struct cdp_soc_t *soc_hdl,
704*5113495bSYour Name 						      uint8_t pdev_id,
705*5113495bSYour Name 						      const char *func,
706*5113495bSYour Name 						      uint32_t line)
707*5113495bSYour Name {
708*5113495bSYour Name 	return QDF_STATUS_SUCCESS;
709*5113495bSYour Name }
710*5113495bSYour Name 
dp_ipa_rx_buf_pool_smmu_mapping(struct cdp_soc_t * soc_hdl,uint8_t pdev_id,bool create,const char * func,uint32_t line)711*5113495bSYour Name static inline QDF_STATUS dp_ipa_rx_buf_pool_smmu_mapping(
712*5113495bSYour Name 						      struct cdp_soc_t *soc_hdl,
713*5113495bSYour Name 						      uint8_t pdev_id,
714*5113495bSYour Name 						      bool create,
715*5113495bSYour Name 						      const char *func,
716*5113495bSYour Name 						      uint32_t line)
717*5113495bSYour Name {
718*5113495bSYour Name 	return QDF_STATUS_SUCCESS;
719*5113495bSYour Name }
720*5113495bSYour Name 
dp_ipa_set_smmu_mapped(struct cdp_soc_t * soc,int val)721*5113495bSYour Name static inline QDF_STATUS dp_ipa_set_smmu_mapped(struct cdp_soc_t *soc, int val)
722*5113495bSYour Name {
723*5113495bSYour Name 	return QDF_STATUS_SUCCESS;
724*5113495bSYour Name }
725*5113495bSYour Name 
dp_ipa_get_smmu_mapped(struct cdp_soc_t * soc)726*5113495bSYour Name static inline int dp_ipa_get_smmu_mapped(struct cdp_soc_t *soc)
727*5113495bSYour Name {
728*5113495bSYour Name 	return QDF_STATUS_SUCCESS;
729*5113495bSYour Name }
730*5113495bSYour Name 
731*5113495bSYour Name #ifdef IPA_WDS_EASYMESH_FEATURE
dp_ipa_ast_create(struct cdp_soc_t * soc_hdl,qdf_ipa_ast_info_type_t * data)732*5113495bSYour Name static inline QDF_STATUS dp_ipa_ast_create(struct cdp_soc_t *soc_hdl,
733*5113495bSYour Name 					   qdf_ipa_ast_info_type_t *data)
734*5113495bSYour Name {
735*5113495bSYour Name 	return QDF_STATUS_SUCCESS;
736*5113495bSYour Name }
737*5113495bSYour Name #endif
dp_ipa_get_wdi_version(struct cdp_soc_t * soc_hdl,uint8_t * wdi_ver)738*5113495bSYour Name static inline void dp_ipa_get_wdi_version(struct cdp_soc_t *soc_hdl,
739*5113495bSYour Name 					  uint8_t *wdi_ver)
740*5113495bSYour Name {
741*5113495bSYour Name }
742*5113495bSYour Name 
743*5113495bSYour Name static inline bool
dp_ipa_is_ring_ipa_tx(struct dp_soc * soc,uint8_t ring_id)744*5113495bSYour Name dp_ipa_is_ring_ipa_tx(struct dp_soc *soc, uint8_t ring_id)
745*5113495bSYour Name {
746*5113495bSYour Name 	return false;
747*5113495bSYour Name }
748*5113495bSYour Name #endif
749*5113495bSYour Name #endif /* _DP_IPA_H_ */
750