dp_ipa.h 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551
  1. /*
  2. * Copyright (c) 2017-2021, The Linux Foundation. All rights reserved.
  3. * Copyright (c) 2021-2022 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. QDF_STATUS dp_ipa_uc_set_active(struct cdp_soc_t *soc_hdl, uint8_t pdev_id,
  129. bool uc_active, bool is_tx);
  130. /**
  131. * dp_ipa_op_response() - Handle OP command response from firmware
  132. * @soc_hdl - data path soc handle
  133. * @pdev_id - device instance id
  134. * @op_msg: op response message from firmware
  135. *
  136. * Return: none
  137. */
  138. QDF_STATUS dp_ipa_op_response(struct cdp_soc_t *soc_hdl, uint8_t pdev_id,
  139. uint8_t *op_msg);
  140. /**
  141. * dp_ipa_register_op_cb() - Register OP handler function
  142. * @soc_hdl - data path soc handle
  143. * @pdev_id - device instance id
  144. * @op_cb: handler function pointer
  145. *
  146. * Return: none
  147. */
  148. QDF_STATUS dp_ipa_register_op_cb(struct cdp_soc_t *soc_hdl, uint8_t pdev_id,
  149. ipa_uc_op_cb_type op_cb, void *usr_ctxt);
  150. /**
  151. * dp_ipa_register_op_cb() - Deregister OP handler function
  152. * @soc_hdl - data path soc handle
  153. * @pdev_id - device instance id
  154. *
  155. * Return: none
  156. */
  157. void dp_ipa_deregister_op_cb(struct cdp_soc_t *soc_hdl, uint8_t pdev_id);
  158. /**
  159. * dp_ipa_get_stat() - Get firmware wdi status
  160. * @soc_hdl - data path soc handle
  161. * @pdev_id - device instance id
  162. *
  163. * Return: none
  164. */
  165. QDF_STATUS dp_ipa_get_stat(struct cdp_soc_t *soc_hdl, uint8_t pdev_id);
  166. /**
  167. * dp_tx_send_ipa_data_frame() - send IPA data frame
  168. * @soc_hdl: datapath soc handle
  169. * @vdev_id: virtual device/interface id
  170. * @skb: skb
  171. *
  172. * Return: skb/ NULL is for success
  173. */
  174. qdf_nbuf_t dp_tx_send_ipa_data_frame(struct cdp_soc_t *soc_hdl, uint8_t vdev_id,
  175. qdf_nbuf_t skb);
  176. /**
  177. * dp_ipa_enable_autonomy() – Enable autonomy RX path
  178. * @soc_hdl - data path soc handle
  179. * @pdev_id - device instance id
  180. *
  181. * Set all RX packet route to IPA REO ring
  182. * Program Destination_Ring_Ctrl_IX_0 REO register to point IPA REO ring
  183. * Return: none
  184. */
  185. QDF_STATUS dp_ipa_enable_autonomy(struct cdp_soc_t *soc_hdl, uint8_t pdev_id);
  186. /**
  187. * dp_ipa_disable_autonomy() – Disable autonomy RX path
  188. * @soc_hdl - data path soc handle
  189. * @pdev_id - device instance id
  190. *
  191. * Disable RX packet routing to IPA REO
  192. * Program Destination_Ring_Ctrl_IX_0 REO register to disable
  193. * Return: none
  194. */
  195. QDF_STATUS dp_ipa_disable_autonomy(struct cdp_soc_t *soc_hdl, uint8_t pdev_id);
  196. #if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 10, 0)) || \
  197. defined(CONFIG_IPA_WDI_UNIFIED_API)
  198. /**
  199. * dp_ipa_setup() - Setup and connect IPA pipes
  200. * @soc_hdl - data path soc handle
  201. * @pdev_id - device instance id
  202. * @ipa_i2w_cb: IPA to WLAN callback
  203. * @ipa_w2i_cb: WLAN to IPA callback
  204. * @ipa_wdi_meter_notifier_cb: IPA WDI metering callback
  205. * @ipa_desc_size: IPA descriptor size
  206. * @ipa_priv: handle to the HTT instance
  207. * @is_rm_enabled: Is IPA RM enabled or not
  208. * @tx_pipe_handle: pointer to Tx pipe handle
  209. * @rx_pipe_handle: pointer to Rx pipe handle
  210. * @is_smmu_enabled: Is SMMU enabled or not
  211. * @sys_in: parameters to setup sys pipe in mcc mode
  212. * @hdl: IPA handle
  213. * @id: IPA instance id
  214. * @ipa_ast_notify_cb: IPA to WLAN callback for ast create and update
  215. *
  216. * Return: QDF_STATUS
  217. */
  218. QDF_STATUS dp_ipa_setup(struct cdp_soc_t *soc_hdl, uint8_t pdev_id,
  219. void *ipa_i2w_cb, void *ipa_w2i_cb,
  220. void *ipa_wdi_meter_notifier_cb,
  221. uint32_t ipa_desc_size, void *ipa_priv,
  222. bool is_rm_enabled, uint32_t *tx_pipe_handle,
  223. uint32_t *rx_pipe_handle,
  224. bool is_smmu_enabled,
  225. qdf_ipa_sys_connect_params_t *sys_in, bool over_gsi,
  226. qdf_ipa_wdi_hdl_t hdl, qdf_ipa_wdi_hdl_t id,
  227. void *ipa_ast_notify_cb);
  228. #else /* CONFIG_IPA_WDI_UNIFIED_API */
  229. /**
  230. * dp_ipa_setup() - Setup and connect IPA pipes
  231. * @soc_hdl - data path soc handle
  232. * @pdev_id - device instance id
  233. * @ipa_i2w_cb: IPA to WLAN callback
  234. * @ipa_w2i_cb: WLAN to IPA callback
  235. * @ipa_wdi_meter_notifier_cb: IPA WDI metering callback
  236. * @ipa_desc_size: IPA descriptor size
  237. * @ipa_priv: handle to the HTT instance
  238. * @is_rm_enabled: Is IPA RM enabled or not
  239. * @tx_pipe_handle: pointer to Tx pipe handle
  240. * @rx_pipe_handle: pointer to Rx pipe handle
  241. * @hdl: IPA handle
  242. *
  243. * Return: QDF_STATUS
  244. */
  245. QDF_STATUS dp_ipa_setup(struct cdp_soc_t *soc_hdl, uint8_t pdev_id,
  246. void *ipa_i2w_cb, void *ipa_w2i_cb,
  247. void *ipa_wdi_meter_notifier_cb,
  248. uint32_t ipa_desc_size, void *ipa_priv,
  249. bool is_rm_enabled, uint32_t *tx_pipe_handle,
  250. uint32_t *rx_pipe_handle);
  251. #endif /* CONFIG_IPA_WDI_UNIFIED_API */
  252. QDF_STATUS dp_ipa_cleanup(struct cdp_soc_t *soc_hdl, uint8_t pdev_id,
  253. uint32_t tx_pipe_handle,
  254. uint32_t rx_pipe_handle, qdf_ipa_wdi_hdl_t hdl);
  255. QDF_STATUS dp_ipa_remove_header(char *name);
  256. int dp_ipa_add_header_info(char *ifname, uint8_t *mac_addr,
  257. uint8_t session_id, bool is_ipv6_enabled);
  258. int dp_ipa_register_interface(char *ifname, bool is_ipv6_enabled);
  259. QDF_STATUS dp_ipa_setup_iface(char *ifname, uint8_t *mac_addr,
  260. qdf_ipa_client_type_t prod_client,
  261. qdf_ipa_client_type_t cons_client,
  262. uint8_t session_id, bool is_ipv6_enabled,
  263. qdf_ipa_wdi_hdl_t hdl);
  264. QDF_STATUS dp_ipa_cleanup_iface(char *ifname, bool is_ipv6_enabled,
  265. qdf_ipa_wdi_hdl_t hdl);
  266. /**
  267. * dp_ipa_uc_enable_pipes() - Enable and resume traffic on Tx/Rx pipes
  268. * @soc_hdl - handle to the soc
  269. * @pdev_id - pdev id number, to get the handle
  270. * @hdl: IPA handle
  271. *
  272. * Return: QDF_STATUS
  273. */
  274. QDF_STATUS dp_ipa_enable_pipes(struct cdp_soc_t *soc_hdl, uint8_t pdev_id,
  275. qdf_ipa_wdi_hdl_t hdl);
  276. /**
  277. * dp_ipa_disable_pipes() – Suspend traffic and disable Tx/Rx pipes
  278. * @soc_hdl - handle to the soc
  279. * @pdev_id - pdev id number, to get the handle
  280. * @hdl: IPA handle
  281. *
  282. * Return: QDF_STATUS
  283. */
  284. QDF_STATUS dp_ipa_disable_pipes(struct cdp_soc_t *soc_hdl, uint8_t pdev_id,
  285. qdf_ipa_wdi_hdl_t hdl);
  286. QDF_STATUS dp_ipa_set_perf_level(int client, uint32_t max_supported_bw_mbps,
  287. qdf_ipa_wdi_hdl_t hdl);
  288. /**
  289. * dp_ipa_rx_intrabss_fwd() - Perform intra-bss fwd for IPA RX path
  290. *
  291. * @soc_hdl: data path soc handle
  292. * @vdev_id: virtual device/interface id
  293. * @nbuf: pointer to skb of ethernet packet received from IPA RX path
  294. * @fwd_success: pointer to indicate if skb succeeded in intra-bss TX
  295. *
  296. * This function performs intra-bss forwarding for WDI 3.0 IPA RX path.
  297. *
  298. * Return: true if packet is intra-bss fwd-ed and no need to pass to
  299. * network stack. false if packet needs to be passed to network stack.
  300. */
  301. bool dp_ipa_rx_intrabss_fwd(struct cdp_soc_t *soc_hdl, uint8_t vdev_id,
  302. qdf_nbuf_t nbuf, bool *fwd_success);
  303. int dp_ipa_uc_detach(struct dp_soc *soc, struct dp_pdev *pdev);
  304. int dp_ipa_uc_attach(struct dp_soc *soc, struct dp_pdev *pdev);
  305. int dp_ipa_ring_resource_setup(struct dp_soc *soc,
  306. struct dp_pdev *pdev);
  307. bool dp_reo_remap_config(struct dp_soc *soc, uint32_t *remap0,
  308. uint32_t *remap1, uint32_t *remap2);
  309. bool dp_ipa_is_mdm_platform(void);
  310. qdf_nbuf_t dp_ipa_handle_rx_reo_reinject(struct dp_soc *soc, qdf_nbuf_t nbuf);
  311. QDF_STATUS dp_ipa_handle_rx_buf_smmu_mapping(struct dp_soc *soc,
  312. qdf_nbuf_t nbuf,
  313. uint32_t size,
  314. bool create,
  315. const char *func,
  316. uint32_t line);
  317. /**
  318. * dp_ipa_tx_buf_smmu_mapping() - Create SMMU mappings for IPA
  319. * allocated TX buffers
  320. * @soc_hdl: handle to the soc
  321. * @pdev_id: pdev id number, to get the handle
  322. * @func: caller function
  323. * @line: line number
  324. *
  325. * Return: QDF_STATUS
  326. */
  327. QDF_STATUS dp_ipa_tx_buf_smmu_mapping(struct cdp_soc_t *soc_hdl,
  328. uint8_t pdev_id, const char *func,
  329. uint32_t line);
  330. /**
  331. * dp_ipa_tx_buf_smmu_unmapping() - Release SMMU mappings for IPA
  332. * allocated TX buffers
  333. * @soc_hdl: handle to the soc
  334. * @pdev_id: pdev id number, to get the handle
  335. * @func: caller function
  336. * @line: line number
  337. *
  338. * Return: QDF_STATUS
  339. */
  340. QDF_STATUS dp_ipa_tx_buf_smmu_unmapping(struct cdp_soc_t *soc_hdl,
  341. uint8_t pdev_id, const char *func,
  342. uint32_t line);
  343. #ifndef QCA_OL_DP_SRNG_LOCK_LESS_ACCESS
  344. static inline void
  345. dp_ipa_rx_buf_smmu_mapping_lock(struct dp_soc *soc)
  346. {
  347. if (soc->ipa_rx_buf_map_lock_initialized)
  348. qdf_spin_lock_bh(&soc->ipa_rx_buf_map_lock);
  349. }
  350. static inline void
  351. dp_ipa_rx_buf_smmu_mapping_unlock(struct dp_soc *soc)
  352. {
  353. if (soc->ipa_rx_buf_map_lock_initialized)
  354. qdf_spin_unlock_bh(&soc->ipa_rx_buf_map_lock);
  355. }
  356. static inline void
  357. dp_ipa_reo_ctx_buf_mapping_lock(struct dp_soc *soc,
  358. uint32_t reo_ring_num)
  359. {
  360. if (!soc->ipa_reo_ctx_lock_required[reo_ring_num])
  361. return;
  362. qdf_spin_lock_bh(&soc->ipa_rx_buf_map_lock);
  363. }
  364. static inline void
  365. dp_ipa_reo_ctx_buf_mapping_unlock(struct dp_soc *soc,
  366. uint32_t reo_ring_num)
  367. {
  368. if (!soc->ipa_reo_ctx_lock_required[reo_ring_num])
  369. return;
  370. qdf_spin_unlock_bh(&soc->ipa_rx_buf_map_lock);
  371. }
  372. #else
  373. static inline void
  374. dp_ipa_rx_buf_smmu_mapping_lock(struct dp_soc *soc)
  375. {
  376. }
  377. static inline void
  378. dp_ipa_rx_buf_smmu_mapping_unlock(struct dp_soc *soc)
  379. {
  380. }
  381. static inline void
  382. dp_ipa_reo_ctx_buf_mapping_lock(struct dp_soc *soc,
  383. uint32_t reo_ring_num)
  384. {
  385. }
  386. static inline void
  387. dp_ipa_reo_ctx_buf_mapping_unlock(struct dp_soc *soc,
  388. uint32_t reo_ring_num)
  389. {
  390. }
  391. #endif
  392. #ifdef IPA_WDS_EASYMESH_FEATURE
  393. /**
  394. * dp_ipa_ast_create() - Create/update AST entry in AST table
  395. * for learning/roaming packets from IPA
  396. * @soc: data path soc handle
  397. * @data: Structure used for updating the AST table
  398. *
  399. * Create/update AST entry in AST table for learning/roaming packets from IPA
  400. *
  401. * Return: QDF_STATUS
  402. */
  403. QDF_STATUS dp_ipa_ast_create(struct cdp_soc_t *soc_hdl,
  404. qdf_ipa_ast_info_type_t *data);
  405. /**
  406. * dp_ipa_ast_notify_cb() - Provide ast notify cb to IPA
  407. * @pipe_in: WDI conn pipe in params
  408. * @ipa_ast_notify_cb: ipa ast notify cb
  409. *
  410. * Return: None
  411. */
  412. static inline void
  413. dp_ipa_ast_notify_cb(qdf_ipa_wdi_conn_in_params_t *pipe_in,
  414. void *ipa_ast_notify_cb)
  415. {
  416. QDF_IPA_WDI_CONN_IN_PARAMS_AST_NOTIFY(pipe_in) = ipa_ast_notify_cb;
  417. }
  418. #else
  419. static inline void
  420. dp_ipa_ast_notify_cb(qdf_ipa_wdi_conn_in_params_t *pipe_in,
  421. void *ipa_ast_notify_cb)
  422. {
  423. }
  424. #endif
  425. #else
  426. static inline int dp_ipa_uc_detach(struct dp_soc *soc, struct dp_pdev *pdev)
  427. {
  428. return QDF_STATUS_SUCCESS;
  429. }
  430. static inline int dp_ipa_uc_attach(struct dp_soc *soc, struct dp_pdev *pdev)
  431. {
  432. return QDF_STATUS_SUCCESS;
  433. }
  434. static inline int dp_ipa_ring_resource_setup(struct dp_soc *soc,
  435. struct dp_pdev *pdev)
  436. {
  437. return 0;
  438. }
  439. static inline QDF_STATUS dp_ipa_handle_rx_buf_smmu_mapping(struct dp_soc *soc,
  440. qdf_nbuf_t nbuf,
  441. uint32_t size,
  442. bool create,
  443. const char *func,
  444. uint32_t line)
  445. {
  446. return QDF_STATUS_SUCCESS;
  447. }
  448. static inline void
  449. dp_ipa_rx_buf_smmu_mapping_lock(struct dp_soc *soc)
  450. {
  451. }
  452. static inline void
  453. dp_ipa_rx_buf_smmu_mapping_unlock(struct dp_soc *soc)
  454. {
  455. }
  456. static inline void
  457. dp_ipa_reo_ctx_buf_mapping_lock(struct dp_soc *soc,
  458. uint32_t reo_ring_num)
  459. {
  460. }
  461. static inline void
  462. dp_ipa_reo_ctx_buf_mapping_unlock(struct dp_soc *soc,
  463. uint32_t reo_ring_num)
  464. {
  465. }
  466. static inline qdf_nbuf_t dp_ipa_handle_rx_reo_reinject(struct dp_soc *soc,
  467. qdf_nbuf_t nbuf)
  468. {
  469. return nbuf;
  470. }
  471. static inline QDF_STATUS dp_ipa_tx_buf_smmu_mapping(struct cdp_soc_t *soc_hdl,
  472. uint8_t pdev_id,
  473. const char *func,
  474. uint32_t line)
  475. {
  476. return QDF_STATUS_SUCCESS;
  477. }
  478. static inline QDF_STATUS dp_ipa_tx_buf_smmu_unmapping(struct cdp_soc_t *soc_hdl,
  479. uint8_t pdev_id,
  480. const char *func,
  481. uint32_t line)
  482. {
  483. return QDF_STATUS_SUCCESS;
  484. }
  485. #ifdef IPA_WDS_EASYMESH_FEATURE
  486. static inline QDF_STATUS dp_ipa_ast_create(struct cdp_soc_t *soc_hdl,
  487. qdf_ipa_ast_info_type_t *data)
  488. {
  489. return QDF_STATUS_SUCCESS;
  490. }
  491. #endif
  492. #endif
  493. #endif /* _DP_IPA_H_ */