wlan_ipa_ucfg_api.h 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798
  1. /*
  2. * Copyright (c) 2018-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
  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_is_vlan_enabled() - get IPA vlan support enable status
  82. *
  83. * Return: true - ipa vlan support is enabled
  84. * false - ipa vlan support is not enabled
  85. */
  86. bool ucfg_ipa_is_vlan_enabled(void);
  87. /**
  88. * ucfg_ipa_set_dp_handle() - register DP handle
  89. * @psoc: psoc handle
  90. * @dp_soc: data path soc handle
  91. *
  92. * Return: None
  93. */
  94. void ucfg_ipa_set_dp_handle(struct wlan_objmgr_psoc *psoc,
  95. void *dp_soc);
  96. /**
  97. * ucfg_ipa_set_pdev_id() - register pdev id
  98. * @psoc: psoc handle
  99. * @pdev_id: data path txrx pdev id
  100. *
  101. * Return: None
  102. */
  103. void ucfg_ipa_set_pdev_id(struct wlan_objmgr_psoc *psoc,
  104. uint8_t pdev_id);
  105. /**
  106. * ucfg_ipa_set_perf_level() - Set IPA perf level
  107. * @pdev: pdev obj
  108. * @tx_packets: Number of packets transmitted in the last sample period
  109. * @rx_packets: Number of packets received in the last sample period
  110. *
  111. * Return: QDF_STATUS_SUCCESS on success
  112. */
  113. QDF_STATUS ucfg_ipa_set_perf_level(struct wlan_objmgr_pdev *pdev,
  114. uint64_t tx_packets, uint64_t rx_packets);
  115. /**
  116. * ucfg_ipa_uc_info() - Print IPA uC resource and session information
  117. * @pdev: pdev obj
  118. *
  119. * Return: None
  120. */
  121. void ucfg_ipa_uc_info(struct wlan_objmgr_pdev *pdev);
  122. /**
  123. * ucfg_ipa_uc_stat() - Print IPA uC stats
  124. * @pdev: pdev obj
  125. *
  126. * Return: None
  127. */
  128. void ucfg_ipa_uc_stat(struct wlan_objmgr_pdev *pdev);
  129. /**
  130. * ucfg_ipa_uc_rt_debug_host_dump() - IPA rt debug host dump
  131. * @pdev: pdev obj
  132. *
  133. * Return: None
  134. */
  135. void ucfg_ipa_uc_rt_debug_host_dump(struct wlan_objmgr_pdev *pdev);
  136. /**
  137. * ucfg_ipa_dump_info() - Dump IPA context information
  138. * @pdev: pdev obj
  139. *
  140. * Return: None
  141. */
  142. void ucfg_ipa_dump_info(struct wlan_objmgr_pdev *pdev);
  143. /**
  144. * ucfg_ipa_uc_stat_request() - Get IPA stats from IPA.
  145. * @pdev: pdev obj
  146. * @reason: STAT REQ Reason
  147. *
  148. * Return: None
  149. */
  150. void ucfg_ipa_uc_stat_request(struct wlan_objmgr_pdev *pdev,
  151. uint8_t reason);
  152. /**
  153. * ucfg_ipa_uc_stat_query() - Query the IPA stats
  154. * @pdev: pdev obj
  155. * @ipa_tx_diff: tx packet count diff from previous tx packet count
  156. * @ipa_rx_diff: rx packet count diff from previous rx packet count
  157. *
  158. * Return: None
  159. */
  160. void ucfg_ipa_uc_stat_query(struct wlan_objmgr_pdev *pdev,
  161. uint32_t *ipa_tx_diff, uint32_t *ipa_rx_diff);
  162. /**
  163. * ucfg_ipa_reg_sap_xmit_cb() - Register upper layer SAP cb to transmit
  164. * @pdev: pdev obj
  165. * @cb: callback
  166. *
  167. * Return: None
  168. */
  169. void ucfg_ipa_reg_sap_xmit_cb(struct wlan_objmgr_pdev *pdev,
  170. wlan_ipa_softap_xmit cb);
  171. /**
  172. * ucfg_ipa_reg_send_to_nw_cb() - Register cb to send IPA Rx packet to network
  173. * @pdev: pdev obj
  174. * @cb: callback
  175. *
  176. * Return: None
  177. */
  178. void ucfg_ipa_reg_send_to_nw_cb(struct wlan_objmgr_pdev *pdev,
  179. wlan_ipa_send_to_nw cb);
  180. /**
  181. * ucfg_ipa_reg_rps_enable_cb() - Register cb to enable RPS
  182. * @pdev: pdev obj
  183. * @cb: callback
  184. *
  185. * Return: None
  186. */
  187. #if defined(QCA_CONFIG_RPS) && !defined(MDM_PLATFORM)
  188. void ucfg_ipa_reg_rps_enable_cb(struct wlan_objmgr_pdev *pdev,
  189. wlan_ipa_rps_enable cb);
  190. #else
  191. static inline
  192. void ucfg_ipa_reg_rps_enable_cb(struct wlan_objmgr_pdev *pdev,
  193. wlan_ipa_rps_enable cb)
  194. {
  195. }
  196. #endif
  197. /**
  198. * ucfg_ipa_reg_is_driver_unloading_cb() - Register cb to check if driver
  199. * is unloading
  200. * @pdev: pdev obj
  201. * @cb: callback
  202. *
  203. * Return: None
  204. */
  205. void ucfg_ipa_reg_is_driver_unloading_cb(struct wlan_objmgr_pdev *pdev,
  206. wlan_ipa_driver_unloading cb);
  207. /**
  208. * ucfg_ipa_set_mcc_mode() - Set MCC mode
  209. * @pdev: pdev obj
  210. * @mcc_mode: 0=MCC/1=SCC
  211. *
  212. * Return: void
  213. */
  214. void ucfg_ipa_set_mcc_mode(struct wlan_objmgr_pdev *pdev, bool mcc_mode);
  215. /**
  216. * ucfg_ipa_set_dfs_cac_tx() - Set DFS cac tx block
  217. * @pdev: pdev obj
  218. * @tx_block: dfs cac tx block
  219. *
  220. * Return: void
  221. */
  222. void ucfg_ipa_set_dfs_cac_tx(struct wlan_objmgr_pdev *pdev, bool tx_block);
  223. /**
  224. * ucfg_ipa_set_ap_ibss_fwd() - Set AP intra bss forward
  225. * @pdev: pdev obj
  226. * @session_id: vdev id
  227. * @intra_bss: enable or disable ap intra bss forward
  228. *
  229. * Return: void
  230. */
  231. void ucfg_ipa_set_ap_ibss_fwd(struct wlan_objmgr_pdev *pdev, uint8_t session_id,
  232. bool intra_bss);
  233. /**
  234. * ucfg_ipa_uc_force_pipe_shutdown() - Force shutdown IPA pipe
  235. * @pdev: pdev obj
  236. *
  237. * Return: void
  238. */
  239. void ucfg_ipa_uc_force_pipe_shutdown(struct wlan_objmgr_pdev *pdev);
  240. /**
  241. * ucfg_ipa_flush() - flush IPA exception path SKB's
  242. * @pdev: pdev obj
  243. *
  244. * Return: None
  245. */
  246. void ucfg_ipa_flush(struct wlan_objmgr_pdev *pdev);
  247. /**
  248. * ucfg_ipa_suspend() - Suspend IPA
  249. * @pdev: pdev obj
  250. *
  251. * Return: QDF STATUS
  252. */
  253. QDF_STATUS ucfg_ipa_suspend(struct wlan_objmgr_pdev *pdev);
  254. /**
  255. * ucfg_ipa_resume() - Resume IPA
  256. * @pdev: pdev obj
  257. *
  258. * Return: QDF STATUS
  259. */
  260. QDF_STATUS ucfg_ipa_resume(struct wlan_objmgr_pdev *pdev);
  261. /**
  262. * ucfg_ipa_uc_ol_init() - Initialize IPA uC offload
  263. * @pdev: pdev obj
  264. * @osdev: OS dev
  265. *
  266. * Return: QDF STATUS
  267. */
  268. QDF_STATUS ucfg_ipa_uc_ol_init(struct wlan_objmgr_pdev *pdev,
  269. qdf_device_t osdev);
  270. /**
  271. * ucfg_ipa_uc_ol_deinit() - Deinitialize IPA uC offload
  272. * @pdev: pdev obj
  273. *
  274. * Return: QDF STATUS
  275. */
  276. QDF_STATUS ucfg_ipa_uc_ol_deinit(struct wlan_objmgr_pdev *pdev);
  277. /**
  278. * ucfg_ipa_is_tx_pending() - Check if IPA WLAN TX completions are pending
  279. * @pdev: pdev obj
  280. *
  281. * Return: bool if pending TX for IPA.
  282. */
  283. bool ucfg_ipa_is_tx_pending(struct wlan_objmgr_pdev *pdev);
  284. /**
  285. * ucfg_ipa_send_mcc_scc_msg() - Send IPA WLAN_SWITCH_TO_MCC/SCC message
  286. * @pdev: pdev obj
  287. * @mcc_mode: 0=MCC/1=SCC
  288. *
  289. * Return: QDF STATUS
  290. */
  291. QDF_STATUS ucfg_ipa_send_mcc_scc_msg(struct wlan_objmgr_pdev *pdev,
  292. bool mcc_mode);
  293. /**
  294. * ucfg_ipa_wlan_evt() - IPA event handler
  295. * @pdev: pdev obj
  296. * @net_dev: Interface net device
  297. * @device_mode: Net interface device mode
  298. * @session_id: session id for the event
  299. * @ipa_event_type: event enum of type ipa_wlan_event
  300. * @mac_addr: MAC address associated with the event
  301. * @is_2g_iface: true if interface is operating on 2G band, otherwise false
  302. *
  303. * Return: QDF_STATUS
  304. */
  305. QDF_STATUS ucfg_ipa_wlan_evt(struct wlan_objmgr_pdev *pdev,
  306. qdf_netdev_t net_dev, uint8_t device_mode,
  307. uint8_t session_id,
  308. enum wlan_ipa_wlan_event ipa_event_type,
  309. const uint8_t *mac_addr, bool is_2g_iface);
  310. /**
  311. * ucfg_ipa_uc_smmu_map() - Map / Unmap DMA buffer to IPA UC
  312. * @map: Map / unmap operation
  313. * @num_buf: Number of buffers in array
  314. * @buf_arr: Buffer array of DMA mem mapping info
  315. *
  316. * Return: Status of map operation
  317. */
  318. int ucfg_ipa_uc_smmu_map(bool map, uint32_t num_buf, qdf_mem_info_t *buf_arr);
  319. /**
  320. * ucfg_ipa_is_fw_wdi_activated - Is FW WDI activated?
  321. * @pdev: pdev obj
  322. *
  323. * Return: true if FW WDI activated, false otherwise
  324. */
  325. bool ucfg_ipa_is_fw_wdi_activated(struct wlan_objmgr_pdev *pdev);
  326. /**
  327. * ucfg_ipa_uc_cleanup_sta() - disconnect and cleanup sta iface
  328. * @pdev: pdev obj
  329. * @net_dev: Interface net device
  330. * @session_id: vdev id
  331. *
  332. * Send disconnect sta event to IPA driver and cleanup IPA iface,
  333. * if not yet done
  334. *
  335. * Return: void
  336. */
  337. void ucfg_ipa_uc_cleanup_sta(struct wlan_objmgr_pdev *pdev,
  338. qdf_netdev_t net_dev, uint8_t session_id);
  339. /**
  340. * ucfg_ipa_uc_disconnect_ap() - send ap disconnect event
  341. * @pdev: pdev obj
  342. * @net_dev: Interface net device
  343. *
  344. * Send disconnect ap event to IPA driver during SSR
  345. *
  346. * Return: QDF_STATUS
  347. */
  348. QDF_STATUS ucfg_ipa_uc_disconnect_ap(struct wlan_objmgr_pdev *pdev,
  349. qdf_netdev_t net_dev);
  350. /**
  351. * ucfg_ipa_cleanup_dev_iface() - Clean up net dev IPA interface
  352. * @pdev: pdev obj
  353. * @net_dev: Interface net device
  354. * @session_id: vdev id
  355. *
  356. *
  357. * Return: None
  358. */
  359. void ucfg_ipa_cleanup_dev_iface(struct wlan_objmgr_pdev *pdev,
  360. qdf_netdev_t net_dev, uint8_t session_id);
  361. /**
  362. * ucfg_ipa_uc_ssr_cleanup() - Handle IPA cleanup for SSR
  363. * @pdev: pdev obj
  364. *
  365. * From hostside do cleanup such as deregister IPA interafces
  366. * and send disconnect events so that it will be sync after SSR
  367. *
  368. * Return: None
  369. */
  370. void ucfg_ipa_uc_ssr_cleanup(struct wlan_objmgr_pdev *pdev);
  371. /**
  372. * ucfg_ipa_fw_rejuvenate_send_msg() - Send msg to IPA driver in FW rejuvenate
  373. * @pdev: pdev obj
  374. *
  375. * Return: None
  376. */
  377. void ucfg_ipa_fw_rejuvenate_send_msg(struct wlan_objmgr_pdev *pdev);
  378. /**
  379. * ucfg_ipa_component_config_update() - update IPA component config
  380. * @psoc: pointer to psoc object
  381. *
  382. * Return: None
  383. */
  384. void ucfg_ipa_component_config_update(struct wlan_objmgr_psoc *psoc);
  385. /**
  386. * ucfg_ipa_component_config_free() - Free IPA component config
  387. *
  388. * Return: None
  389. */
  390. void ucfg_ipa_component_config_free(void);
  391. /**
  392. * ucfg_ipa_get_tx_buf_count() - get IPA tx buffer count
  393. *
  394. * Return: IPA tx buffer count
  395. */
  396. uint32_t ucfg_ipa_get_tx_buf_count(void);
  397. /**
  398. * ucfg_ipa_update_tx_stats() - send embedded tx traffic in bytes to IPA
  399. * @pdev: pdev obj
  400. * @sta_tx: tx in bytes on sta vdev
  401. * @ap_tx: tx in bytes on sap vdev
  402. *
  403. * Return: void
  404. */
  405. void ucfg_ipa_update_tx_stats(struct wlan_objmgr_pdev *pdev, uint64_t sta_tx,
  406. uint64_t ap_tx);
  407. /**
  408. * ucfg_ipa_flush_pending_vdev_events() - flush pending vdev wlan ipa events
  409. * @pdev: pdev obj
  410. * @vdev_id: vdev id
  411. *
  412. * Return: None
  413. */
  414. void ucfg_ipa_flush_pending_vdev_events(struct wlan_objmgr_pdev *pdev,
  415. uint8_t vdev_id);
  416. /**
  417. * ucfg_ipa_is_wds_enabled() - get IPA AP WDS status
  418. *
  419. * IPA driver requires WDS status for adding filter rules
  420. * to support easymesh feature, IPA expects wds status
  421. * with WLAN_IPA_AP_CONNECT event.
  422. *
  423. * Return: true - WDS is enabled
  424. * false - WDS is not enabled
  425. */
  426. bool ucfg_ipa_is_wds_enabled(void);
  427. /**
  428. * ucfg_ipa_get_alt_pipe() - Get alt_pipe for vdev_id
  429. * @pdev: pdev obj
  430. * @vdev_id: vdev_id of the target interface
  431. * @alt_pipe: Boolean output to indicate if interface with @vdev_id
  432. * is using alternate TX pipe or not.
  433. *
  434. * Return: QDF_STATUS
  435. */
  436. QDF_STATUS ucfg_ipa_get_alt_pipe(struct wlan_objmgr_pdev *pdev,
  437. uint8_t vdev_id,
  438. bool *alt_pipe);
  439. /**
  440. * ucfg_ipa_set_perf_level_bw_enabled - Get bandwidth based IPA perf
  441. * voting status
  442. * @pdev: pdev objmgr pointer
  443. *
  444. * This function returns true or false for bandwidth based IPA perf level
  445. * voting.
  446. *
  447. * Return: true - bandwidth based IPA perf voting is enabld. Otherwise false.
  448. */
  449. bool ucfg_ipa_set_perf_level_bw_enabled(struct wlan_objmgr_pdev *pdev);
  450. /**
  451. * ucfg_ipa_set_perf_level_bw() - Set IPA perf level based on BW
  452. * @pdev: pdev objmgr pointer
  453. * @lvl: enum wlan_ipa_bw_level
  454. *
  455. * This routine is called to set IPA perf level based on max BW
  456. * configured among in-use STA and SAP vdevs
  457. *
  458. * Return: None
  459. */
  460. void ucfg_ipa_set_perf_level_bw(struct wlan_objmgr_pdev *pdev,
  461. enum wlan_ipa_bw_level lvl);
  462. #else
  463. static inline void ucfg_ipa_set_pld_enable(bool flag)
  464. {
  465. }
  466. static inline bool ucfg_ipa_get_pld_enable(void)
  467. {
  468. return true;
  469. }
  470. static inline bool ucfg_ipa_is_present(void)
  471. {
  472. return false;
  473. }
  474. static inline bool ucfg_ipa_is_ready(void)
  475. {
  476. return false;
  477. }
  478. static inline void ucfg_ipa_update_config(struct wlan_ipa_config *config)
  479. {
  480. }
  481. static inline bool ucfg_ipa_is_enabled(void)
  482. {
  483. return false;
  484. }
  485. static inline bool ucfg_ipa_uc_is_enabled(void)
  486. {
  487. return false;
  488. }
  489. static inline bool ucfg_ipa_is_vlan_enabled(void)
  490. {
  491. return false;
  492. }
  493. static inline
  494. QDF_STATUS ucfg_ipa_set_dp_handle(struct wlan_objmgr_psoc *psoc,
  495. void *dp_soc)
  496. {
  497. return QDF_STATUS_SUCCESS;
  498. }
  499. static inline
  500. QDF_STATUS ucfg_ipa_set_pdev_id(struct wlan_objmgr_psoc *psoc,
  501. uint8_t pdev_id)
  502. {
  503. return QDF_STATUS_SUCCESS;
  504. }
  505. static inline
  506. QDF_STATUS ucfg_ipa_set_perf_level(struct wlan_objmgr_pdev *pdev,
  507. uint64_t tx_packets, uint64_t rx_packets)
  508. {
  509. return QDF_STATUS_SUCCESS;
  510. }
  511. static inline
  512. void ucfg_ipa_uc_info(struct wlan_objmgr_pdev *pdev)
  513. {
  514. }
  515. static inline
  516. void ucfg_ipa_uc_stat(struct wlan_objmgr_pdev *pdev)
  517. {
  518. }
  519. static inline
  520. void ucfg_ipa_uc_rt_debug_host_dump(struct wlan_objmgr_pdev *pdev)
  521. {
  522. }
  523. static inline
  524. void ucfg_ipa_dump_info(struct wlan_objmgr_pdev *pdev)
  525. {
  526. }
  527. static inline
  528. void ucfg_ipa_uc_stat_request(struct wlan_objmgr_pdev *pdev,
  529. uint8_t reason)
  530. {
  531. }
  532. static inline
  533. void ucfg_ipa_uc_stat_query(struct wlan_objmgr_pdev *pdev,
  534. uint32_t *ipa_tx_diff, uint32_t *ipa_rx_diff)
  535. {
  536. }
  537. static inline
  538. void ucfg_ipa_reg_sap_xmit_cb(struct wlan_objmgr_pdev *pdev,
  539. wlan_ipa_softap_xmit cb)
  540. {
  541. }
  542. static inline
  543. void ucfg_ipa_reg_send_to_nw_cb(struct wlan_objmgr_pdev *pdev,
  544. wlan_ipa_send_to_nw cb)
  545. {
  546. }
  547. static inline
  548. void ucfg_ipa_reg_rps_enable_cb(struct wlan_objmgr_pdev *pdev,
  549. wlan_ipa_rps_enable cb)
  550. {
  551. }
  552. static inline
  553. void ucfg_ipa_reg_is_driver_unloading_cb(struct wlan_objmgr_pdev *pdev,
  554. wlan_ipa_driver_unloading cb)
  555. {
  556. }
  557. static inline
  558. void ucfg_ipa_set_mcc_mode(struct wlan_objmgr_pdev *pdev, bool mcc_mode)
  559. {
  560. }
  561. static inline
  562. void ucfg_ipa_set_dfs_cac_tx(struct wlan_objmgr_pdev *pdev, bool tx_block)
  563. {
  564. }
  565. static inline
  566. void ucfg_ipa_set_ap_ibss_fwd(struct wlan_objmgr_pdev *pdev, uint8_t session_id,
  567. bool intra_bss)
  568. {
  569. }
  570. static inline
  571. void ucfg_ipa_uc_force_pipe_shutdown(struct wlan_objmgr_pdev *pdev)
  572. {
  573. }
  574. static inline
  575. void ucfg_ipa_flush(struct wlan_objmgr_pdev *pdev)
  576. {
  577. }
  578. static inline
  579. QDF_STATUS ucfg_ipa_suspend(struct wlan_objmgr_pdev *pdev)
  580. {
  581. return QDF_STATUS_SUCCESS;
  582. }
  583. static inline
  584. QDF_STATUS ucfg_ipa_resume(struct wlan_objmgr_pdev *pdev)
  585. {
  586. return QDF_STATUS_SUCCESS;
  587. }
  588. static inline
  589. QDF_STATUS ucfg_ipa_uc_ol_init(struct wlan_objmgr_pdev *pdev,
  590. qdf_device_t osdev)
  591. {
  592. return QDF_STATUS_SUCCESS;
  593. }
  594. static inline
  595. QDF_STATUS ucfg_ipa_uc_ol_deinit(struct wlan_objmgr_pdev *pdev)
  596. {
  597. return QDF_STATUS_SUCCESS;
  598. }
  599. static inline bool ucfg_ipa_is_tx_pending(struct wlan_objmgr_pdev *pdev)
  600. {
  601. return false;
  602. }
  603. static inline
  604. QDF_STATUS ucfg_ipa_send_mcc_scc_msg(struct wlan_objmgr_pdev *pdev,
  605. bool mcc_mode)
  606. {
  607. return QDF_STATUS_SUCCESS;
  608. }
  609. static inline
  610. QDF_STATUS ucfg_ipa_wlan_evt(struct wlan_objmgr_pdev *pdev,
  611. qdf_netdev_t net_dev, uint8_t device_mode,
  612. uint8_t session_id,
  613. enum wlan_ipa_wlan_event ipa_event_type,
  614. const uint8_t *mac_addr, bool is_2g_iface)
  615. {
  616. return QDF_STATUS_SUCCESS;
  617. }
  618. static inline
  619. int ucfg_ipa_uc_smmu_map(bool map, uint32_t num_buf, qdf_mem_info_t *buf_arr)
  620. {
  621. return 0;
  622. }
  623. static inline
  624. bool ucfg_ipa_is_fw_wdi_activated(struct wlan_objmgr_pdev *pdev)
  625. {
  626. return false;
  627. }
  628. static inline
  629. void ucfg_ipa_uc_cleanup_sta(struct wlan_objmgr_pdev *pdev,
  630. qdf_netdev_t net_dev, uint8_t session_id)
  631. {
  632. }
  633. static inline
  634. QDF_STATUS ucfg_ipa_uc_disconnect_ap(struct wlan_objmgr_pdev *pdev,
  635. qdf_netdev_t net_dev)
  636. {
  637. return QDF_STATUS_SUCCESS;
  638. }
  639. static inline
  640. void ucfg_ipa_cleanup_dev_iface(struct wlan_objmgr_pdev *pdev,
  641. qdf_netdev_t net_dev, uint8_t session_id)
  642. {
  643. }
  644. static inline
  645. void ucfg_ipa_uc_ssr_cleanup(struct wlan_objmgr_pdev *pdev)
  646. {
  647. }
  648. static inline
  649. void ucfg_ipa_fw_rejuvenate_send_msg(struct wlan_objmgr_pdev *pdev)
  650. {
  651. }
  652. static inline
  653. void ucfg_ipa_component_config_update(struct wlan_objmgr_psoc *psoc)
  654. {
  655. }
  656. static inline
  657. void ucfg_ipa_component_config_free(void)
  658. {
  659. }
  660. static inline
  661. uint32_t ucfg_ipa_get_tx_buf_count(void)
  662. {
  663. return 0;
  664. }
  665. static inline
  666. void ucfg_ipa_update_tx_stats(struct wlan_objmgr_pdev *pdev, uint64_t sta_tx,
  667. uint64_t ap_tx)
  668. {
  669. }
  670. static inline
  671. void ucfg_ipa_flush_pending_vdev_events(struct wlan_objmgr_pdev *pdev,
  672. uint8_t vdev_id)
  673. {
  674. }
  675. static inline
  676. bool ucfg_ipa_is_wds_enabled(void)
  677. {
  678. return false;
  679. }
  680. static inline
  681. QDF_STATUS ucfg_ipa_get_alt_pipe(struct wlan_objmgr_pdev *pdev,
  682. uint8_t vdev_id,
  683. bool *alt_pipe)
  684. {
  685. return QDF_STATUS_SUCCESS;
  686. }
  687. static inline
  688. bool ucfg_ipa_set_perf_level_bw_enabled(struct wlan_objmgr_pdev *pdev)
  689. {
  690. return false;
  691. }
  692. static inline void ucfg_ipa_set_perf_level_bw(struct wlan_objmgr_pdev *pdev,
  693. enum wlan_ipa_bw_level lvl)
  694. {
  695. }
  696. #endif /* IPA_OFFLOAD */
  697. #endif /* _WLAN_IPA_UCFG_API_H_ */