wlan_ipa_ucfg_api.h 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723
  1. /*
  2. * Copyright (c) 2018-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
  6. * any purpose with or without fee is hereby granted, provided that the
  7. * above copyright notice and this permission notice appear in all
  8. * copies.
  9. *
  10. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
  11. * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
  12. * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
  13. * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
  14. * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
  15. * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  16. * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  17. * PERFORMANCE OF THIS SOFTWARE.
  18. */
  19. /**
  20. * DOC: Declare public API related to the wlan ipa called by north bound
  21. */
  22. #ifndef _WLAN_IPA_UCFG_API_H_
  23. #define _WLAN_IPA_UCFG_API_H_
  24. #include "wlan_ipa_public_struct.h"
  25. #include "wlan_ipa_obj_mgmt_api.h"
  26. #include "wlan_objmgr_pdev_obj.h"
  27. #include "qdf_types.h"
  28. #include "wlan_ipa_main.h"
  29. #ifdef IPA_OFFLOAD
  30. /**
  31. * ucfg_ipa_set_pld_enable() - set g_ipa_pld_enable
  32. * @flag: flag to set g_ipa_pld_enable
  33. *
  34. * Return: None
  35. */
  36. void ucfg_ipa_set_pld_enable(bool flag);
  37. /**
  38. * ucfg_ipa_get_pld_enable() - check if IPA is disabled in pld
  39. *
  40. * Return: g_ipa_pld_enable
  41. */
  42. bool ucfg_ipa_get_pld_enable(void);
  43. /**
  44. * ucfg_ipa_is_present() - get IPA hw status
  45. *
  46. * ipa_uc_reg_rdyCB is not directly designed to check
  47. * ipa hw status. This is an undocumented function which
  48. * has confirmed with IPA team.
  49. *
  50. * Return: true - ipa hw present
  51. * false - ipa hw not present
  52. */
  53. bool ucfg_ipa_is_present(void);
  54. /**
  55. * ucfg_ipa_is_ready() - get IPA ready status
  56. *
  57. * After ipa_ready_cb() is registered and later invoked by IPA
  58. * driver, ipa ready status flag is updated in wlan driver.
  59. * Unless IPA ready callback is invoked and ready status is
  60. * updated none of the IPA APIs should be invoked.
  61. *
  62. * Return: true - ipa is ready
  63. * false - ipa is not ready
  64. */
  65. bool ucfg_ipa_is_ready(void);
  66. /**
  67. * ucfg_ipa_is_enabled() - get IPA enable status
  68. *
  69. * Return: true - ipa is enabled
  70. * false - ipa is not enabled
  71. */
  72. bool ucfg_ipa_is_enabled(void);
  73. /**
  74. * ucfg_ipa_uc_is_enabled() - get IPA uC enable status
  75. *
  76. * Return: true - ipa uC is enabled
  77. * false - ipa uC is not enabled
  78. */
  79. bool ucfg_ipa_uc_is_enabled(void);
  80. /**
  81. * ucfg_ipa_set_dp_handle() - register DP handle
  82. * @psoc: psoc handle
  83. * @dp_soc: data path soc handle
  84. *
  85. * Return: None
  86. */
  87. void ucfg_ipa_set_dp_handle(struct wlan_objmgr_psoc *psoc,
  88. void *dp_soc);
  89. /**
  90. * ucfg_ipa_set_pdev_id() - register pdev id
  91. * @psoc: psoc handle
  92. * @pdev_id: data path txrx pdev id
  93. *
  94. * Return: None
  95. */
  96. void ucfg_ipa_set_pdev_id(struct wlan_objmgr_psoc *psoc,
  97. uint8_t pdev_id);
  98. /**
  99. * ucfg_ipa_set_perf_level() - Set IPA perf level
  100. * @pdev: pdev obj
  101. * @tx_packets: Number of packets transmitted in the last sample period
  102. * @rx_packets: Number of packets received in the last sample period
  103. *
  104. * Return: QDF_STATUS_SUCCESS on success
  105. */
  106. QDF_STATUS ucfg_ipa_set_perf_level(struct wlan_objmgr_pdev *pdev,
  107. uint64_t tx_packets, uint64_t rx_packets);
  108. /**
  109. * ucfg_ipa_uc_info() - Print IPA uC resource and session information
  110. * @pdev: pdev obj
  111. *
  112. * Return: None
  113. */
  114. void ucfg_ipa_uc_info(struct wlan_objmgr_pdev *pdev);
  115. /**
  116. * ucfg_ipa_uc_stat() - Print IPA uC stats
  117. * @pdev: pdev obj
  118. *
  119. * Return: None
  120. */
  121. void ucfg_ipa_uc_stat(struct wlan_objmgr_pdev *pdev);
  122. /**
  123. * ucfg_ipa_uc_rt_debug_host_dump() - IPA rt debug host dump
  124. * @pdev: pdev obj
  125. *
  126. * Return: None
  127. */
  128. void ucfg_ipa_uc_rt_debug_host_dump(struct wlan_objmgr_pdev *pdev);
  129. /**
  130. * ucfg_ipa_dump_info() - Dump IPA context information
  131. * @pdev: pdev obj
  132. *
  133. * Return: None
  134. */
  135. void ucfg_ipa_dump_info(struct wlan_objmgr_pdev *pdev);
  136. /**
  137. * ucfg_ipa_uc_stat_request() - Get IPA stats from IPA.
  138. * @pdev: pdev obj
  139. * @reason: STAT REQ Reason
  140. *
  141. * Return: None
  142. */
  143. void ucfg_ipa_uc_stat_request(struct wlan_objmgr_pdev *pdev,
  144. uint8_t reason);
  145. /**
  146. * ucfg_ipa_uc_stat_query() - Query the IPA stats
  147. * @pdev: pdev obj
  148. * @ipa_tx_diff: tx packet count diff from previous tx packet count
  149. * @ipa_rx_diff: rx packet count diff from previous rx packet count
  150. *
  151. * Return: None
  152. */
  153. void ucfg_ipa_uc_stat_query(struct wlan_objmgr_pdev *pdev,
  154. uint32_t *ipa_tx_diff, uint32_t *ipa_rx_diff);
  155. /**
  156. * ucfg_ipa_reg_sap_xmit_cb() - Register upper layer SAP cb to transmit
  157. * @pdev: pdev obj
  158. * @cb: callback
  159. *
  160. * Return: None
  161. */
  162. void ucfg_ipa_reg_sap_xmit_cb(struct wlan_objmgr_pdev *pdev,
  163. wlan_ipa_softap_xmit cb);
  164. /**
  165. * ucfg_ipa_reg_send_to_nw_cb() - Register cb to send IPA Rx packet to network
  166. * @pdev: pdev obj
  167. * @cb: callback
  168. *
  169. * Return: None
  170. */
  171. void ucfg_ipa_reg_send_to_nw_cb(struct wlan_objmgr_pdev *pdev,
  172. wlan_ipa_send_to_nw cb);
  173. /**
  174. * ucfg_ipa_reg_rps_enable_cb() - Register cb to enable RPS
  175. * @pdev: pdev obj
  176. * @cb: callback
  177. *
  178. * Return: None
  179. */
  180. #ifdef QCA_CONFIG_RPS
  181. void ucfg_ipa_reg_rps_enable_cb(struct wlan_objmgr_pdev *pdev,
  182. wlan_ipa_rps_enable cb);
  183. #else
  184. static inline
  185. void ucfg_ipa_reg_rps_enable_cb(struct wlan_objmgr_pdev *pdev,
  186. wlan_ipa_rps_enable cb)
  187. {
  188. }
  189. #endif
  190. /**
  191. * ucfg_ipa_reg_is_driver_unloading_cb() - Register cb to check if driver
  192. * is unloading
  193. * @pdev: pdev obj
  194. * @cb: callback
  195. *
  196. * Return: None
  197. */
  198. void ucfg_ipa_reg_is_driver_unloading_cb(struct wlan_objmgr_pdev *pdev,
  199. wlan_ipa_driver_unloading cb);
  200. /**
  201. * ucfg_ipa_set_mcc_mode() - Set MCC mode
  202. * @pdev: pdev obj
  203. * @mcc_mode: 0=MCC/1=SCC
  204. *
  205. * Return: void
  206. */
  207. void ucfg_ipa_set_mcc_mode(struct wlan_objmgr_pdev *pdev, bool mcc_mode);
  208. /**
  209. * ucfg_ipa_set_dfs_cac_tx() - Set DFS cac tx block
  210. * @pdev: pdev obj
  211. * @tx_block: dfs cac tx block
  212. *
  213. * Return: void
  214. */
  215. void ucfg_ipa_set_dfs_cac_tx(struct wlan_objmgr_pdev *pdev, bool tx_block);
  216. /**
  217. * ucfg_ipa_set_ap_ibss_fwd() - Set AP intra bss forward
  218. * @pdev: pdev obj
  219. * @session_id: vdev id
  220. * @intra_bss: enable or disable ap intra bss forward
  221. *
  222. * Return: void
  223. */
  224. void ucfg_ipa_set_ap_ibss_fwd(struct wlan_objmgr_pdev *pdev, uint8_t session_id,
  225. bool intra_bss);
  226. /**
  227. * ucfg_ipa_uc_force_pipe_shutdown() - Force shutdown IPA pipe
  228. * @pdev: pdev obj
  229. *
  230. * Return: void
  231. */
  232. void ucfg_ipa_uc_force_pipe_shutdown(struct wlan_objmgr_pdev *pdev);
  233. /**
  234. * ucfg_ipa_flush() - flush IPA exception path SKB's
  235. * @pdev: pdev obj
  236. *
  237. * Return: None
  238. */
  239. void ucfg_ipa_flush(struct wlan_objmgr_pdev *pdev);
  240. /**
  241. * ucfg_ipa_suspend() - Suspend IPA
  242. * @pdev: pdev obj
  243. *
  244. * Return: QDF STATUS
  245. */
  246. QDF_STATUS ucfg_ipa_suspend(struct wlan_objmgr_pdev *pdev);
  247. /**
  248. * ucfg_ipa_resume() - Resume IPA
  249. * @pdev: pdev obj
  250. *
  251. * Return: QDF STATUS
  252. */
  253. QDF_STATUS ucfg_ipa_resume(struct wlan_objmgr_pdev *pdev);
  254. /**
  255. * ucfg_ipa_uc_ol_init() - Initialize IPA uC offload
  256. * @pdev: pdev obj
  257. * @osdev: OS dev
  258. *
  259. * Return: QDF STATUS
  260. */
  261. QDF_STATUS ucfg_ipa_uc_ol_init(struct wlan_objmgr_pdev *pdev,
  262. qdf_device_t osdev);
  263. /**
  264. * ucfg_ipa_uc_ol_deinit() - Deinitialize IPA uC offload
  265. * @pdev: pdev obj
  266. *
  267. * Return: QDF STATUS
  268. */
  269. QDF_STATUS ucfg_ipa_uc_ol_deinit(struct wlan_objmgr_pdev *pdev);
  270. /**
  271. * ucfg_ipa_is_tx_pending() - Check if IPA WLAN TX completions are pending
  272. * @pdev: pdev obj
  273. *
  274. * Return: bool if pending TX for IPA.
  275. */
  276. bool ucfg_ipa_is_tx_pending(struct wlan_objmgr_pdev *pdev);
  277. /**
  278. * ucfg_ipa_send_mcc_scc_msg() - Send IPA WLAN_SWITCH_TO_MCC/SCC message
  279. * @mcc_mode: 0=MCC/1=SCC
  280. *
  281. * Return: QDF STATUS
  282. */
  283. QDF_STATUS ucfg_ipa_send_mcc_scc_msg(struct wlan_objmgr_pdev *pdev,
  284. bool mcc_mode);
  285. /**
  286. * ucfg_ipa_wlan_evt() - IPA event handler
  287. * @pdev: pdev obj
  288. * @net_dev: Interface net device
  289. * @device_mode: Net interface device mode
  290. * @session_id: session id for the event
  291. * @type: event enum of type ipa_wlan_event
  292. * @mac_address: MAC address associated with the event
  293. * @is_2g_iface: true if interface is operating on 2G band, otherwise false
  294. *
  295. * Return: QDF_STATUS
  296. */
  297. QDF_STATUS ucfg_ipa_wlan_evt(struct wlan_objmgr_pdev *pdev,
  298. qdf_netdev_t net_dev, uint8_t device_mode,
  299. uint8_t session_id,
  300. enum wlan_ipa_wlan_event ipa_event_type,
  301. uint8_t *mac_addr, bool is_2g_iface);
  302. /**
  303. * ucfg_ipa_uc_smmu_map() - Map / Unmap DMA buffer to IPA UC
  304. * @map: Map / unmap operation
  305. * @num_buf: Number of buffers in array
  306. * @buf_arr: Buffer array of DMA mem mapping info
  307. *
  308. * Return: Status of map operation
  309. */
  310. int ucfg_ipa_uc_smmu_map(bool map, uint32_t num_buf, qdf_mem_info_t *buf_arr);
  311. /**
  312. * ucfg_ipa_is_fw_wdi_activated - Is FW WDI activated?
  313. * @pdev: pdev obj
  314. *
  315. * Return: true if FW WDI activated, false otherwise
  316. */
  317. bool ucfg_ipa_is_fw_wdi_activated(struct wlan_objmgr_pdev *pdev);
  318. /**
  319. * ucfg_ipa_uc_cleanup_sta() - disconnect and cleanup sta iface
  320. * @pdev: pdev obj
  321. * @net_dev: Interface net device
  322. *
  323. * Send disconnect sta event to IPA driver and cleanup IPA iface,
  324. * if not yet done
  325. *
  326. * Return: void
  327. */
  328. void ucfg_ipa_uc_cleanup_sta(struct wlan_objmgr_pdev *pdev,
  329. qdf_netdev_t net_dev);
  330. /**
  331. * ucfg_ipa_uc_disconnect_ap() - send ap disconnect event
  332. * @pdev: pdev obj
  333. * @net_dev: Interface net device
  334. *
  335. * Send disconnect ap event to IPA driver during SSR
  336. *
  337. * Return: QDF_STATUS
  338. */
  339. QDF_STATUS ucfg_ipa_uc_disconnect_ap(struct wlan_objmgr_pdev *pdev,
  340. qdf_netdev_t net_dev);
  341. /**
  342. * ucfg_ipa_cleanup_dev_iface() - Clean up net dev IPA interface
  343. * @pdev: pdev obj
  344. * @net_dev: Interface net device
  345. *
  346. *
  347. * Return: None
  348. */
  349. void ucfg_ipa_cleanup_dev_iface(struct wlan_objmgr_pdev *pdev,
  350. qdf_netdev_t net_dev);
  351. /**
  352. * ucfg_ipa_uc_ssr_cleanup() - Handle IPA cleanup for SSR
  353. * @pdev: pdev obj
  354. *
  355. * From hostside do cleanup such as deregister IPA interafces
  356. * and send disconnect events so that it will be sync after SSR
  357. *
  358. * Return: None
  359. */
  360. void ucfg_ipa_uc_ssr_cleanup(struct wlan_objmgr_pdev *pdev);
  361. /**
  362. * ucfg_ipa_fw_rejuvenate_send_msg() - Send msg to IPA driver in FW rejuvenate
  363. * @pdev: pdev obj
  364. *
  365. * Return: None
  366. */
  367. void ucfg_ipa_fw_rejuvenate_send_msg(struct wlan_objmgr_pdev *pdev);
  368. /**
  369. * ucfg_ipa_component_config_update() - update IPA component config
  370. * @psoc: pointer to psoc object
  371. *
  372. * Return: None
  373. */
  374. void ucfg_ipa_component_config_update(struct wlan_objmgr_psoc *psoc);
  375. /**
  376. * ucfg_ipa_component_config_free() - Free IPA component config
  377. *
  378. * Return: None
  379. */
  380. void ucfg_ipa_component_config_free(void);
  381. /**
  382. * ucfg_get_ipa_tx_buf_count() - get IPA tx buffer count
  383. *
  384. * Return: IPA tx buffer count
  385. */
  386. uint32_t ucfg_ipa_get_tx_buf_count(void);
  387. /**
  388. * ucfg_ipa_update_tx_stats() - send embedded tx traffic in bytes to IPA
  389. * @pdev: pdev obj
  390. * @sta_tx: tx in bytes on sta vdev
  391. * @ap_tx: tx in bytes on sap vdev
  392. *
  393. * Return: void
  394. */
  395. void ucfg_ipa_update_tx_stats(struct wlan_objmgr_pdev *pdev, uint64_t sta_tx,
  396. uint64_t ap_tx);
  397. /**
  398. * ucfg_ipa_flush_pending_vdev_events() - flush pending vdev wlan ipa events
  399. * @pdev: pdev obj
  400. * @vdev_id: vdev id
  401. *
  402. * Return: None
  403. */
  404. void ucfg_ipa_flush_pending_vdev_events(struct wlan_objmgr_pdev *pdev,
  405. uint8_t vdev_id);
  406. /**
  407. * ucfg_ipa_is_wds_enabled() - get IPA AP WDS status
  408. *
  409. * IPA driver requires WDS status for adding filter rules
  410. * to support easymesh feature, IPA expectes wds status
  411. * with WLAN_IPA_AP_CONNECT event.
  412. *
  413. * Return: true - WDS is enabled
  414. * false - WDS is not enabled
  415. */
  416. bool ucfg_ipa_is_wds_enabled(void);
  417. #else
  418. static inline void ucfg_ipa_set_pld_enable(bool flag)
  419. {
  420. }
  421. static inline bool ucfg_ipa_get_pld_enable(void)
  422. {
  423. return true;
  424. }
  425. static inline bool ucfg_ipa_is_present(void)
  426. {
  427. return false;
  428. }
  429. static inline bool ucfg_ipa_is_ready(void)
  430. {
  431. return false;
  432. }
  433. static inline void ucfg_ipa_update_config(struct wlan_ipa_config *config)
  434. {
  435. }
  436. static inline bool ucfg_ipa_is_enabled(void)
  437. {
  438. return false;
  439. }
  440. static inline bool ucfg_ipa_uc_is_enabled(void)
  441. {
  442. return false;
  443. }
  444. static inline
  445. QDF_STATUS ucfg_ipa_set_dp_handle(struct wlan_objmgr_psoc *psoc,
  446. void *dp_soc)
  447. {
  448. return QDF_STATUS_SUCCESS;
  449. }
  450. static inline
  451. QDF_STATUS ucfg_ipa_set_pdev_id(struct wlan_objmgr_psoc *psoc,
  452. uint8_t pdev_id)
  453. {
  454. return QDF_STATUS_SUCCESS;
  455. }
  456. static inline
  457. QDF_STATUS ucfg_ipa_set_perf_level(struct wlan_objmgr_pdev *pdev,
  458. uint64_t tx_packets, uint64_t rx_packets)
  459. {
  460. return QDF_STATUS_SUCCESS;
  461. }
  462. static inline
  463. void ucfg_ipa_uc_info(struct wlan_objmgr_pdev *pdev)
  464. {
  465. }
  466. static inline
  467. void ucfg_ipa_uc_stat(struct wlan_objmgr_pdev *pdev)
  468. {
  469. }
  470. static inline
  471. void ucfg_ipa_uc_rt_debug_host_dump(struct wlan_objmgr_pdev *pdev)
  472. {
  473. }
  474. static inline
  475. void ucfg_ipa_dump_info(struct wlan_objmgr_pdev *pdev)
  476. {
  477. }
  478. static inline
  479. void ucfg_ipa_uc_stat_request(struct wlan_objmgr_pdev *pdev,
  480. uint8_t reason)
  481. {
  482. }
  483. static inline
  484. void ucfg_ipa_uc_stat_query(struct wlan_objmgr_pdev *pdev,
  485. uint32_t *ipa_tx_diff, uint32_t *ipa_rx_diff)
  486. {
  487. }
  488. static inline
  489. void ucfg_ipa_reg_sap_xmit_cb(struct wlan_objmgr_pdev *pdev,
  490. wlan_ipa_softap_xmit cb)
  491. {
  492. }
  493. static inline
  494. void ucfg_ipa_reg_send_to_nw_cb(struct wlan_objmgr_pdev *pdev,
  495. wlan_ipa_send_to_nw cb)
  496. {
  497. }
  498. static inline
  499. void ucfg_ipa_reg_rps_enable_cb(struct wlan_objmgr_pdev *pdev,
  500. wlan_ipa_rps_enable cb)
  501. {
  502. }
  503. static inline
  504. void ucfg_ipa_reg_is_driver_unloading_cb(struct wlan_objmgr_pdev *pdev,
  505. wlan_ipa_driver_unloading cb)
  506. {
  507. }
  508. static inline
  509. void ucfg_ipa_set_mcc_mode(struct wlan_objmgr_pdev *pdev, bool mcc_mode)
  510. {
  511. }
  512. static inline
  513. void ucfg_ipa_set_dfs_cac_tx(struct wlan_objmgr_pdev *pdev, bool tx_block)
  514. {
  515. }
  516. static inline
  517. void ucfg_ipa_set_ap_ibss_fwd(struct wlan_objmgr_pdev *pdev, uint8_t session_id,
  518. bool intra_bss)
  519. {
  520. }
  521. static inline
  522. void ucfg_ipa_uc_force_pipe_shutdown(struct wlan_objmgr_pdev *pdev)
  523. {
  524. }
  525. static inline
  526. void ucfg_ipa_flush(struct wlan_objmgr_pdev *pdev)
  527. {
  528. }
  529. static inline
  530. QDF_STATUS ucfg_ipa_suspend(struct wlan_objmgr_pdev *pdev)
  531. {
  532. return QDF_STATUS_SUCCESS;
  533. }
  534. static inline
  535. QDF_STATUS ucfg_ipa_resume(struct wlan_objmgr_pdev *pdev)
  536. {
  537. return QDF_STATUS_SUCCESS;
  538. }
  539. static inline
  540. QDF_STATUS ucfg_ipa_uc_ol_init(struct wlan_objmgr_pdev *pdev,
  541. qdf_device_t osdev)
  542. {
  543. return QDF_STATUS_SUCCESS;
  544. }
  545. static inline
  546. QDF_STATUS ucfg_ipa_uc_ol_deinit(struct wlan_objmgr_pdev *pdev)
  547. {
  548. return QDF_STATUS_SUCCESS;
  549. }
  550. static inline bool ucfg_ipa_is_tx_pending(struct wlan_objmgr_pdev *pdev)
  551. {
  552. return false;
  553. }
  554. static inline
  555. QDF_STATUS ucfg_ipa_send_mcc_scc_msg(struct wlan_objmgr_pdev *pdev,
  556. bool mcc_mode)
  557. {
  558. return QDF_STATUS_SUCCESS;
  559. }
  560. static inline
  561. QDF_STATUS ucfg_ipa_wlan_evt(struct wlan_objmgr_pdev *pdev,
  562. qdf_netdev_t net_dev, uint8_t device_mode,
  563. uint8_t session_id,
  564. enum wlan_ipa_wlan_event ipa_event_type,
  565. uint8_t *mac_addr, bool is_2g_iface)
  566. {
  567. return QDF_STATUS_SUCCESS;
  568. }
  569. static inline
  570. int ucfg_ipa_uc_smmu_map(bool map, uint32_t num_buf, qdf_mem_info_t *buf_arr)
  571. {
  572. return 0;
  573. }
  574. static inline
  575. bool ucfg_ipa_is_fw_wdi_activated(struct wlan_objmgr_pdev *pdev)
  576. {
  577. return false;
  578. }
  579. static inline
  580. void ucfg_ipa_uc_cleanup_sta(struct wlan_objmgr_pdev *pdev,
  581. qdf_netdev_t net_dev)
  582. {
  583. }
  584. static inline
  585. QDF_STATUS ucfg_ipa_uc_disconnect_ap(struct wlan_objmgr_pdev *pdev,
  586. qdf_netdev_t net_dev)
  587. {
  588. return QDF_STATUS_SUCCESS;
  589. }
  590. static inline
  591. void ucfg_ipa_cleanup_dev_iface(struct wlan_objmgr_pdev *pdev,
  592. qdf_netdev_t net_dev)
  593. {
  594. }
  595. static inline
  596. void ucfg_ipa_uc_ssr_cleanup(struct wlan_objmgr_pdev *pdev)
  597. {
  598. }
  599. static inline
  600. void ucfg_ipa_fw_rejuvenate_send_msg(struct wlan_objmgr_pdev *pdev)
  601. {
  602. }
  603. static inline
  604. void ucfg_ipa_component_config_update(struct wlan_objmgr_psoc *psoc)
  605. {
  606. }
  607. static inline
  608. void ucfg_ipa_component_config_free(void)
  609. {
  610. }
  611. static inline
  612. uint32_t ucfg_ipa_get_tx_buf_count(void)
  613. {
  614. return 0;
  615. }
  616. static inline
  617. void ucfg_ipa_update_tx_stats(struct wlan_objmgr_pdev *pdev, uint64_t sta_tx,
  618. uint64_t ap_tx)
  619. {
  620. }
  621. static inline
  622. void ucfg_ipa_flush_pending_vdev_events(struct wlan_objmgr_pdev *pdev,
  623. uint8_t vdev_id)
  624. {
  625. }
  626. static inline
  627. bool ucfg_ipa_is_wds_enabled(void)
  628. {
  629. return 0;
  630. }
  631. #endif /* IPA_OFFLOAD */
  632. #endif /* _WLAN_IPA_UCFG_API_H_ */