dp_ipa.h 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555
  1. /*
  2. * Copyright (c) 2017-2021, The Linux Foundation. All rights reserved.
  3. * Copyright (c) 2021-2023 Qualcomm Innovation Center, Inc. All rights reserved.
  4. *
  5. * Permission to use, copy, modify, and/or distribute this software for any
  6. * purpose with or without fee is hereby granted, provided that the above
  7. * copyright notice and this permission notice appear in all copies.
  8. *
  9. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
  10. * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
  11. * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
  12. * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  13. * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
  14. * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
  15. * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  16. */
  17. #ifndef _DP_IPA_H_
  18. #define _DP_IPA_H_
  19. #if defined(QCA_WIFI_KIWI) || defined(QCA_WIFI_KIWI_V2)
  20. /* Index into soc->tcl_data_ring[] */
  21. #define IPA_TCL_DATA_RING_IDX 3
  22. #else
  23. #define IPA_TCL_DATA_RING_IDX 2
  24. #endif
  25. /* Index into soc->tx_comp_ring[] */
  26. #define IPA_TX_COMP_RING_IDX IPA_TCL_DATA_RING_IDX
  27. #ifdef IPA_OFFLOAD
  28. #define DP_IPA_MAX_IFACE 3
  29. #define IPA_REO_DEST_RING_IDX 3
  30. #define IPA_REO_DEST_RING_IDX_2 7
  31. #define IPA_RX_REFILL_BUF_RING_IDX 2
  32. #define IPA_ALT_REO_DEST_RING_IDX 2
  33. #define IPA_RX_ALT_REFILL_BUF_RING_IDX 3
  34. /* Adding delay before disabling ipa pipes if any Tx Completions are pending */
  35. #define TX_COMP_DRAIN_WAIT_MS 50
  36. #define TX_COMP_DRAIN_WAIT_TIMEOUT_MS 100
  37. #ifdef IPA_WDI3_TX_TWO_PIPES
  38. #if defined(QCA_WIFI_KIWI) || defined(QCA_WIFI_KIWI_V2)
  39. /* Index into soc->tcl_data_ring[] and soc->tx_comp_ring[] */
  40. #define IPA_TX_ALT_RING_IDX 4
  41. #define IPA_TX_ALT_COMP_RING_IDX IPA_TX_ALT_RING_IDX
  42. #else /* !KIWI */
  43. #define IPA_TX_ALT_RING_IDX 1
  44. /*
  45. * must be same as IPA_TX_ALT_RING_IDX as tcl and wbm ring
  46. * are initialized with same index as a pair.
  47. */
  48. #define IPA_TX_ALT_COMP_RING_IDX 1
  49. #endif /* KIWI */
  50. #define IPA_SESSION_ID_SHIFT 1
  51. #endif /* IPA_WDI3_TX_TWO_PIPES */
  52. /**
  53. * struct dp_ipa_uc_tx_hdr - full tx header registered to IPA hardware
  54. * @eth: ether II header
  55. */
  56. struct dp_ipa_uc_tx_hdr {
  57. struct ethhdr eth;
  58. } __packed;
  59. /**
  60. * struct dp_ipa_uc_tx_hdr - full tx header registered to IPA hardware
  61. * @eth: ether II header
  62. */
  63. struct dp_ipa_uc_tx_vlan_hdr {
  64. struct vlan_ethhdr eth;
  65. } __packed;
  66. /**
  67. * struct dp_ipa_uc_rx_hdr - full rx header registered to IPA hardware
  68. * @eth: ether II header
  69. */
  70. struct dp_ipa_uc_rx_hdr {
  71. struct ethhdr eth;
  72. } __packed;
  73. #define DP_IPA_UC_WLAN_TX_HDR_LEN sizeof(struct dp_ipa_uc_tx_hdr)
  74. #define DP_IPA_UC_WLAN_TX_VLAN_HDR_LEN sizeof(struct dp_ipa_uc_tx_vlan_hdr)
  75. #define DP_IPA_UC_WLAN_RX_HDR_LEN sizeof(struct dp_ipa_uc_rx_hdr)
  76. /* 28 <bytes of rx_msdu_end_tlv> + 16 <bytes of attn tlv> +
  77. * 52 <bytes of rx_mpdu_start_tlv> + <L2 Header>
  78. */
  79. #define DP_IPA_UC_WLAN_RX_HDR_LEN_AST 110
  80. #define DP_IPA_UC_WLAN_RX_HDR_LEN_AST_VLAN 114
  81. #define DP_IPA_UC_WLAN_HDR_DES_MAC_OFFSET 0
  82. #define DP_IPA_HDL_INVALID 0xFF
  83. #define DP_IPA_HDL_FIRST 0
  84. #define DP_IPA_HDL_SECOND 1
  85. /**
  86. * wlan_ipa_get_hdl() - Get ipa handle from IPA component
  87. * @psoc - control psoc object
  88. * @pdev_id - pdev id
  89. *
  90. * IPA componenet will return the IPA handle based on pdev_id
  91. *
  92. * Return: IPA handle
  93. */
  94. qdf_ipa_wdi_hdl_t wlan_ipa_get_hdl(void *psoc, uint8_t pdev_id);
  95. /**
  96. * dp_ipa_get_resource() - Client request resource information
  97. * @soc_hdl - data path soc handle
  98. * @pdev_id - device instance id
  99. *
  100. * IPA client will request IPA UC related resource information
  101. * Resource information will be distributed to IPA module
  102. * All of the required resources should be pre-allocated
  103. *
  104. * Return: QDF_STATUS
  105. */
  106. QDF_STATUS dp_ipa_get_resource(struct cdp_soc_t *soc_hdl, uint8_t pdev_id);
  107. /**
  108. * dp_ipa_set_doorbell_paddr () - Set doorbell register physical address to SRNG
  109. * @soc_hdl - data path soc handle
  110. * @pdev_id - device instance id
  111. *
  112. * Set TX_COMP_DOORBELL register physical address to WBM Head_Ptr_MemAddr_LSB
  113. * Set RX_READ_DOORBELL register physical address to REO Head_Ptr_MemAddr_LSB
  114. *
  115. * Return: none
  116. */
  117. QDF_STATUS dp_ipa_set_doorbell_paddr(struct cdp_soc_t *soc_hdl,
  118. uint8_t pdev_id);
  119. /**
  120. * dp_ipa_iounmap_doorbell_vaddr() - unmap ipa RX db vaddr
  121. * @soc_hdl - data path soc handle
  122. * @pdev_id - device instance id
  123. *
  124. * Return: none
  125. */
  126. QDF_STATUS dp_ipa_iounmap_doorbell_vaddr(struct cdp_soc_t *soc_hdl,
  127. uint8_t pdev_id);
  128. /**
  129. * dp_ipa_op_response() - Handle OP command response from firmware
  130. * @soc_hdl - data path soc handle
  131. * @pdev_id - device instance id
  132. * @op_msg: op response message from firmware
  133. *
  134. * Return: none
  135. */
  136. QDF_STATUS dp_ipa_op_response(struct cdp_soc_t *soc_hdl, uint8_t pdev_id,
  137. uint8_t *op_msg);
  138. /**
  139. * dp_ipa_register_op_cb() - Register OP handler function
  140. * @soc_hdl - data path soc handle
  141. * @pdev_id - device instance id
  142. * @op_cb: handler function pointer
  143. *
  144. * Return: none
  145. */
  146. QDF_STATUS dp_ipa_register_op_cb(struct cdp_soc_t *soc_hdl, uint8_t pdev_id,
  147. ipa_uc_op_cb_type op_cb, void *usr_ctxt);
  148. /**
  149. * dp_ipa_register_op_cb() - Deregister OP handler function
  150. * @soc_hdl - data path soc handle
  151. * @pdev_id - device instance id
  152. *
  153. * Return: none
  154. */
  155. void dp_ipa_deregister_op_cb(struct cdp_soc_t *soc_hdl, uint8_t pdev_id);
  156. /**
  157. * dp_ipa_get_stat() - Get firmware wdi status
  158. * @soc_hdl - data path soc handle
  159. * @pdev_id - device instance id
  160. *
  161. * Return: none
  162. */
  163. QDF_STATUS dp_ipa_get_stat(struct cdp_soc_t *soc_hdl, uint8_t pdev_id);
  164. /**
  165. * dp_tx_send_ipa_data_frame() - send IPA data frame
  166. * @soc_hdl: datapath soc handle
  167. * @vdev_id: virtual device/interface id
  168. * @skb: skb
  169. *
  170. * Return: skb/ NULL is for success
  171. */
  172. qdf_nbuf_t dp_tx_send_ipa_data_frame(struct cdp_soc_t *soc_hdl, uint8_t vdev_id,
  173. qdf_nbuf_t skb);
  174. /**
  175. * dp_ipa_enable_autonomy() – Enable autonomy RX path
  176. * @soc_hdl - data path soc handle
  177. * @pdev_id - device instance id
  178. *
  179. * Set all RX packet route to IPA REO ring
  180. * Program Destination_Ring_Ctrl_IX_0 REO register to point IPA REO ring
  181. * Return: none
  182. */
  183. QDF_STATUS dp_ipa_enable_autonomy(struct cdp_soc_t *soc_hdl, uint8_t pdev_id);
  184. /**
  185. * dp_ipa_disable_autonomy() – Disable autonomy RX path
  186. * @soc_hdl - data path soc handle
  187. * @pdev_id - device instance id
  188. *
  189. * Disable RX packet routing to IPA REO
  190. * Program Destination_Ring_Ctrl_IX_0 REO register to disable
  191. * Return: none
  192. */
  193. QDF_STATUS dp_ipa_disable_autonomy(struct cdp_soc_t *soc_hdl, uint8_t pdev_id);
  194. #if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 10, 0)) || \
  195. defined(CONFIG_IPA_WDI_UNIFIED_API)
  196. /**
  197. * dp_ipa_setup() - Setup and connect IPA pipes
  198. * @soc_hdl - data path soc handle
  199. * @pdev_id - device instance id
  200. * @ipa_i2w_cb: IPA to WLAN callback
  201. * @ipa_w2i_cb: WLAN to IPA callback
  202. * @ipa_wdi_meter_notifier_cb: IPA WDI metering callback
  203. * @ipa_desc_size: IPA descriptor size
  204. * @ipa_priv: handle to the HTT instance
  205. * @is_rm_enabled: Is IPA RM enabled or not
  206. * @tx_pipe_handle: pointer to Tx pipe handle
  207. * @rx_pipe_handle: pointer to Rx pipe handle
  208. * @is_smmu_enabled: Is SMMU enabled or not
  209. * @sys_in: parameters to setup sys pipe in mcc mode
  210. * @hdl: IPA handle
  211. * @id: IPA instance id
  212. * @ipa_ast_notify_cb: IPA to WLAN callback for ast create and update
  213. *
  214. * Return: QDF_STATUS
  215. */
  216. QDF_STATUS dp_ipa_setup(struct cdp_soc_t *soc_hdl, uint8_t pdev_id,
  217. void *ipa_i2w_cb, void *ipa_w2i_cb,
  218. void *ipa_wdi_meter_notifier_cb,
  219. uint32_t ipa_desc_size, void *ipa_priv,
  220. bool is_rm_enabled, uint32_t *tx_pipe_handle,
  221. uint32_t *rx_pipe_handle,
  222. bool is_smmu_enabled,
  223. qdf_ipa_sys_connect_params_t *sys_in, bool over_gsi,
  224. qdf_ipa_wdi_hdl_t hdl, qdf_ipa_wdi_hdl_t id,
  225. void *ipa_ast_notify_cb);
  226. #else /* CONFIG_IPA_WDI_UNIFIED_API */
  227. /**
  228. * dp_ipa_setup() - Setup and connect IPA pipes
  229. * @soc_hdl - data path soc handle
  230. * @pdev_id - device instance id
  231. * @ipa_i2w_cb: IPA to WLAN callback
  232. * @ipa_w2i_cb: WLAN to IPA callback
  233. * @ipa_wdi_meter_notifier_cb: IPA WDI metering callback
  234. * @ipa_desc_size: IPA descriptor size
  235. * @ipa_priv: handle to the HTT instance
  236. * @is_rm_enabled: Is IPA RM enabled or not
  237. * @tx_pipe_handle: pointer to Tx pipe handle
  238. * @rx_pipe_handle: pointer to Rx pipe handle
  239. * @hdl: IPA handle
  240. *
  241. * Return: QDF_STATUS
  242. */
  243. QDF_STATUS dp_ipa_setup(struct cdp_soc_t *soc_hdl, uint8_t pdev_id,
  244. void *ipa_i2w_cb, void *ipa_w2i_cb,
  245. void *ipa_wdi_meter_notifier_cb,
  246. uint32_t ipa_desc_size, void *ipa_priv,
  247. bool is_rm_enabled, uint32_t *tx_pipe_handle,
  248. uint32_t *rx_pipe_handle);
  249. #endif /* CONFIG_IPA_WDI_UNIFIED_API */
  250. QDF_STATUS dp_ipa_cleanup(struct cdp_soc_t *soc_hdl, uint8_t pdev_id,
  251. uint32_t tx_pipe_handle,
  252. uint32_t rx_pipe_handle, qdf_ipa_wdi_hdl_t hdl);
  253. QDF_STATUS dp_ipa_setup_iface(char *ifname, uint8_t *mac_addr,
  254. qdf_ipa_client_type_t prod_client,
  255. qdf_ipa_client_type_t cons_client,
  256. uint8_t session_id, bool is_ipv6_enabled,
  257. qdf_ipa_wdi_hdl_t hdl);
  258. QDF_STATUS dp_ipa_cleanup_iface(char *ifname, bool is_ipv6_enabled,
  259. qdf_ipa_wdi_hdl_t hdl);
  260. /**
  261. * dp_ipa_uc_enable_pipes() - Enable and resume traffic on Tx/Rx pipes
  262. * @soc_hdl - handle to the soc
  263. * @pdev_id - pdev id number, to get the handle
  264. * @hdl: IPA handle
  265. *
  266. * Return: QDF_STATUS
  267. */
  268. QDF_STATUS dp_ipa_enable_pipes(struct cdp_soc_t *soc_hdl, uint8_t pdev_id,
  269. qdf_ipa_wdi_hdl_t hdl);
  270. /**
  271. * dp_ipa_disable_pipes() – Suspend traffic and disable Tx/Rx pipes
  272. * @soc_hdl - handle to the soc
  273. * @pdev_id - pdev id number, to get the handle
  274. * @hdl: IPA handle
  275. *
  276. * Return: QDF_STATUS
  277. */
  278. QDF_STATUS dp_ipa_disable_pipes(struct cdp_soc_t *soc_hdl, uint8_t pdev_id,
  279. qdf_ipa_wdi_hdl_t hdl);
  280. QDF_STATUS dp_ipa_set_perf_level(int client, uint32_t max_supported_bw_mbps,
  281. qdf_ipa_wdi_hdl_t hdl);
  282. /**
  283. * dp_ipa_rx_intrabss_fwd() - Perform intra-bss fwd for IPA RX path
  284. *
  285. * @soc_hdl: data path soc handle
  286. * @vdev_id: virtual device/interface id
  287. * @nbuf: pointer to skb of ethernet packet received from IPA RX path
  288. * @fwd_success: pointer to indicate if skb succeeded in intra-bss TX
  289. *
  290. * This function performs intra-bss forwarding for WDI 3.0 IPA RX path.
  291. *
  292. * Return: true if packet is intra-bss fwd-ed and no need to pass to
  293. * network stack. false if packet needs to be passed to network stack.
  294. */
  295. bool dp_ipa_rx_intrabss_fwd(struct cdp_soc_t *soc_hdl, uint8_t vdev_id,
  296. qdf_nbuf_t nbuf, bool *fwd_success);
  297. int dp_ipa_uc_detach(struct dp_soc *soc, struct dp_pdev *pdev);
  298. int dp_ipa_uc_attach(struct dp_soc *soc, struct dp_pdev *pdev);
  299. int dp_ipa_ring_resource_setup(struct dp_soc *soc,
  300. struct dp_pdev *pdev);
  301. bool dp_reo_remap_config(struct dp_soc *soc, uint32_t *remap0,
  302. uint32_t *remap1, uint32_t *remap2);
  303. bool dp_ipa_is_mdm_platform(void);
  304. qdf_nbuf_t dp_ipa_handle_rx_reo_reinject(struct dp_soc *soc, qdf_nbuf_t nbuf);
  305. QDF_STATUS dp_ipa_handle_rx_buf_smmu_mapping(struct dp_soc *soc,
  306. qdf_nbuf_t nbuf,
  307. uint32_t size,
  308. bool create,
  309. const char *func,
  310. uint32_t line);
  311. /**
  312. * dp_ipa_tx_buf_smmu_mapping() - Create SMMU mappings for IPA
  313. * allocated TX buffers
  314. * @soc_hdl: handle to the soc
  315. * @pdev_id: pdev id number, to get the handle
  316. * @func: caller function
  317. * @line: line number
  318. *
  319. * Return: QDF_STATUS
  320. */
  321. QDF_STATUS dp_ipa_tx_buf_smmu_mapping(struct cdp_soc_t *soc_hdl,
  322. uint8_t pdev_id, const char *func,
  323. uint32_t line);
  324. /**
  325. * dp_ipa_tx_buf_smmu_unmapping() - Release SMMU mappings for IPA
  326. * allocated TX buffers
  327. * @soc_hdl: handle to the soc
  328. * @pdev_id: pdev id number, to get the handle
  329. * @func: caller function
  330. * @line: line number
  331. *
  332. * Return: QDF_STATUS
  333. */
  334. QDF_STATUS dp_ipa_tx_buf_smmu_unmapping(struct cdp_soc_t *soc_hdl,
  335. uint8_t pdev_id, const char *func,
  336. uint32_t line);
  337. #ifndef QCA_OL_DP_SRNG_LOCK_LESS_ACCESS
  338. static inline void
  339. dp_ipa_rx_buf_smmu_mapping_lock(struct dp_soc *soc)
  340. {
  341. if (soc->ipa_rx_buf_map_lock_initialized)
  342. qdf_spin_lock_bh(&soc->ipa_rx_buf_map_lock);
  343. }
  344. static inline void
  345. dp_ipa_rx_buf_smmu_mapping_unlock(struct dp_soc *soc)
  346. {
  347. if (soc->ipa_rx_buf_map_lock_initialized)
  348. qdf_spin_unlock_bh(&soc->ipa_rx_buf_map_lock);
  349. }
  350. static inline void
  351. dp_ipa_reo_ctx_buf_mapping_lock(struct dp_soc *soc,
  352. uint32_t reo_ring_num)
  353. {
  354. if (!soc->ipa_reo_ctx_lock_required[reo_ring_num])
  355. return;
  356. qdf_spin_lock_bh(&soc->ipa_rx_buf_map_lock);
  357. }
  358. static inline void
  359. dp_ipa_reo_ctx_buf_mapping_unlock(struct dp_soc *soc,
  360. uint32_t reo_ring_num)
  361. {
  362. if (!soc->ipa_reo_ctx_lock_required[reo_ring_num])
  363. return;
  364. qdf_spin_unlock_bh(&soc->ipa_rx_buf_map_lock);
  365. }
  366. #else
  367. static inline void
  368. dp_ipa_rx_buf_smmu_mapping_lock(struct dp_soc *soc)
  369. {
  370. }
  371. static inline void
  372. dp_ipa_rx_buf_smmu_mapping_unlock(struct dp_soc *soc)
  373. {
  374. }
  375. static inline void
  376. dp_ipa_reo_ctx_buf_mapping_lock(struct dp_soc *soc,
  377. uint32_t reo_ring_num)
  378. {
  379. }
  380. static inline void
  381. dp_ipa_reo_ctx_buf_mapping_unlock(struct dp_soc *soc,
  382. uint32_t reo_ring_num)
  383. {
  384. }
  385. #endif
  386. #ifdef IPA_WDS_EASYMESH_FEATURE
  387. /**
  388. * dp_ipa_ast_create() - Create/update AST entry in AST table
  389. * for learning/roaming packets from IPA
  390. * @soc: data path soc handle
  391. * @data: Structure used for updating the AST table
  392. *
  393. * Create/update AST entry in AST table for learning/roaming packets from IPA
  394. *
  395. * Return: QDF_STATUS
  396. */
  397. QDF_STATUS dp_ipa_ast_create(struct cdp_soc_t *soc_hdl,
  398. qdf_ipa_ast_info_type_t *data);
  399. /**
  400. * dp_ipa_ast_notify_cb() - Provide ast notify cb to IPA
  401. * @pipe_in: WDI conn pipe in params
  402. * @ipa_ast_notify_cb: ipa ast notify cb
  403. *
  404. * Return: None
  405. */
  406. static inline void
  407. dp_ipa_ast_notify_cb(qdf_ipa_wdi_conn_in_params_t *pipe_in,
  408. void *ipa_ast_notify_cb)
  409. {
  410. QDF_IPA_WDI_CONN_IN_PARAMS_AST_NOTIFY(pipe_in) = ipa_ast_notify_cb;
  411. }
  412. #else
  413. static inline void
  414. dp_ipa_ast_notify_cb(qdf_ipa_wdi_conn_in_params_t *pipe_in,
  415. void *ipa_ast_notify_cb)
  416. {
  417. }
  418. #endif
  419. #ifdef QCA_ENHANCED_STATS_SUPPORT
  420. QDF_STATUS dp_ipa_txrx_get_peer_stats(struct cdp_soc_t *soc, uint8_t vdev_id,
  421. uint8_t *peer_mac,
  422. struct cdp_peer_stats *peer_stats);
  423. int dp_ipa_txrx_get_vdev_stats(struct cdp_soc_t *soc_hdl, uint8_t vdev_id,
  424. void *buf, bool is_aggregate);
  425. QDF_STATUS dp_ipa_txrx_get_pdev_stats(struct cdp_soc_t *soc, uint8_t pdev_id,
  426. struct cdp_pdev_stats *pdev_stats);
  427. QDF_STATUS dp_ipa_update_peer_rx_stats(struct cdp_soc_t *soc, uint8_t pdev_id,
  428. uint8_t *peer_mac, qdf_nbuf_t nbuf);
  429. #endif
  430. #else
  431. static inline int dp_ipa_uc_detach(struct dp_soc *soc, struct dp_pdev *pdev)
  432. {
  433. return QDF_STATUS_SUCCESS;
  434. }
  435. static inline int dp_ipa_uc_attach(struct dp_soc *soc, struct dp_pdev *pdev)
  436. {
  437. return QDF_STATUS_SUCCESS;
  438. }
  439. static inline int dp_ipa_ring_resource_setup(struct dp_soc *soc,
  440. struct dp_pdev *pdev)
  441. {
  442. return 0;
  443. }
  444. static inline QDF_STATUS dp_ipa_handle_rx_buf_smmu_mapping(struct dp_soc *soc,
  445. qdf_nbuf_t nbuf,
  446. uint32_t size,
  447. bool create,
  448. const char *func,
  449. uint32_t line)
  450. {
  451. return QDF_STATUS_SUCCESS;
  452. }
  453. static inline void
  454. dp_ipa_rx_buf_smmu_mapping_lock(struct dp_soc *soc)
  455. {
  456. }
  457. static inline void
  458. dp_ipa_rx_buf_smmu_mapping_unlock(struct dp_soc *soc)
  459. {
  460. }
  461. static inline void
  462. dp_ipa_reo_ctx_buf_mapping_lock(struct dp_soc *soc,
  463. uint32_t reo_ring_num)
  464. {
  465. }
  466. static inline void
  467. dp_ipa_reo_ctx_buf_mapping_unlock(struct dp_soc *soc,
  468. uint32_t reo_ring_num)
  469. {
  470. }
  471. static inline qdf_nbuf_t dp_ipa_handle_rx_reo_reinject(struct dp_soc *soc,
  472. qdf_nbuf_t nbuf)
  473. {
  474. return nbuf;
  475. }
  476. static inline QDF_STATUS dp_ipa_tx_buf_smmu_mapping(struct cdp_soc_t *soc_hdl,
  477. uint8_t pdev_id,
  478. const char *func,
  479. uint32_t line)
  480. {
  481. return QDF_STATUS_SUCCESS;
  482. }
  483. static inline QDF_STATUS dp_ipa_tx_buf_smmu_unmapping(struct cdp_soc_t *soc_hdl,
  484. uint8_t pdev_id,
  485. const char *func,
  486. uint32_t line)
  487. {
  488. return QDF_STATUS_SUCCESS;
  489. }
  490. #ifdef IPA_WDS_EASYMESH_FEATURE
  491. static inline QDF_STATUS dp_ipa_ast_create(struct cdp_soc_t *soc_hdl,
  492. qdf_ipa_ast_info_type_t *data)
  493. {
  494. return QDF_STATUS_SUCCESS;
  495. }
  496. #endif
  497. #endif
  498. #endif /* _DP_IPA_H_ */