123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798 |
- /*
- * Copyright (c) 2018-2021 The Linux Foundation. All rights reserved.
- * Copyright (c) 2021-2023 Qualcomm Innovation Center, Inc. All rights reserved.
- *
- * Permission to use, copy, modify, and/or distribute this software for
- * any purpose with or without fee is hereby granted, provided that the
- * above copyright notice and this permission notice appear in all
- * copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
- * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
- * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
- * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
- * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
- * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
- * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- * PERFORMANCE OF THIS SOFTWARE.
- */
- /**
- * DOC: Declare public API related to the wlan ipa called by north bound
- */
- #ifndef _WLAN_IPA_UCFG_API_H_
- #define _WLAN_IPA_UCFG_API_H_
- #include "wlan_ipa_public_struct.h"
- #include "wlan_ipa_obj_mgmt_api.h"
- #include "wlan_objmgr_pdev_obj.h"
- #include "qdf_types.h"
- #include "wlan_ipa_main.h"
- #ifdef IPA_OFFLOAD
- /**
- * ucfg_ipa_set_pld_enable() - set g_ipa_pld_enable
- * @flag: flag to set g_ipa_pld_enable
- *
- * Return: None
- */
- void ucfg_ipa_set_pld_enable(bool flag);
- /**
- * ucfg_ipa_get_pld_enable() - check if IPA is disabled in pld
- *
- * Return: g_ipa_pld_enable
- */
- bool ucfg_ipa_get_pld_enable(void);
- /**
- * ucfg_ipa_is_present() - get IPA hw status
- *
- * ipa_uc_reg_rdyCB is not directly designed to check
- * ipa hw status. This is an undocumented function which
- * has confirmed with IPA team.
- *
- * Return: true - ipa hw present
- * false - ipa hw not present
- */
- bool ucfg_ipa_is_present(void);
- /**
- * ucfg_ipa_is_ready() - get IPA ready status
- *
- * After ipa_ready_cb() is registered and later invoked by IPA
- * driver, ipa ready status flag is updated in wlan driver.
- * Unless IPA ready callback is invoked and ready status is
- * updated none of the IPA APIs should be invoked.
- *
- * Return: true - ipa is ready
- * false - ipa is not ready
- */
- bool ucfg_ipa_is_ready(void);
- /**
- * ucfg_ipa_is_enabled() - get IPA enable status
- *
- * Return: true - ipa is enabled
- * false - ipa is not enabled
- */
- bool ucfg_ipa_is_enabled(void);
- /**
- * ucfg_ipa_uc_is_enabled() - get IPA uC enable status
- *
- * Return: true - ipa uC is enabled
- * false - ipa uC is not enabled
- */
- bool ucfg_ipa_uc_is_enabled(void);
- /**
- * ucfg_ipa_is_vlan_enabled() - get IPA vlan support enable status
- *
- * Return: true - ipa vlan support is enabled
- * false - ipa vlan support is not enabled
- */
- bool ucfg_ipa_is_vlan_enabled(void);
- /**
- * ucfg_ipa_set_dp_handle() - register DP handle
- * @psoc: psoc handle
- * @dp_soc: data path soc handle
- *
- * Return: None
- */
- void ucfg_ipa_set_dp_handle(struct wlan_objmgr_psoc *psoc,
- void *dp_soc);
- /**
- * ucfg_ipa_set_pdev_id() - register pdev id
- * @psoc: psoc handle
- * @pdev_id: data path txrx pdev id
- *
- * Return: None
- */
- void ucfg_ipa_set_pdev_id(struct wlan_objmgr_psoc *psoc,
- uint8_t pdev_id);
- /**
- * ucfg_ipa_set_perf_level() - Set IPA perf level
- * @pdev: pdev obj
- * @tx_packets: Number of packets transmitted in the last sample period
- * @rx_packets: Number of packets received in the last sample period
- *
- * Return: QDF_STATUS_SUCCESS on success
- */
- QDF_STATUS ucfg_ipa_set_perf_level(struct wlan_objmgr_pdev *pdev,
- uint64_t tx_packets, uint64_t rx_packets);
- /**
- * ucfg_ipa_uc_info() - Print IPA uC resource and session information
- * @pdev: pdev obj
- *
- * Return: None
- */
- void ucfg_ipa_uc_info(struct wlan_objmgr_pdev *pdev);
- /**
- * ucfg_ipa_uc_stat() - Print IPA uC stats
- * @pdev: pdev obj
- *
- * Return: None
- */
- void ucfg_ipa_uc_stat(struct wlan_objmgr_pdev *pdev);
- /**
- * ucfg_ipa_uc_rt_debug_host_dump() - IPA rt debug host dump
- * @pdev: pdev obj
- *
- * Return: None
- */
- void ucfg_ipa_uc_rt_debug_host_dump(struct wlan_objmgr_pdev *pdev);
- /**
- * ucfg_ipa_dump_info() - Dump IPA context information
- * @pdev: pdev obj
- *
- * Return: None
- */
- void ucfg_ipa_dump_info(struct wlan_objmgr_pdev *pdev);
- /**
- * ucfg_ipa_uc_stat_request() - Get IPA stats from IPA.
- * @pdev: pdev obj
- * @reason: STAT REQ Reason
- *
- * Return: None
- */
- void ucfg_ipa_uc_stat_request(struct wlan_objmgr_pdev *pdev,
- uint8_t reason);
- /**
- * ucfg_ipa_uc_stat_query() - Query the IPA stats
- * @pdev: pdev obj
- * @ipa_tx_diff: tx packet count diff from previous tx packet count
- * @ipa_rx_diff: rx packet count diff from previous rx packet count
- *
- * Return: None
- */
- void ucfg_ipa_uc_stat_query(struct wlan_objmgr_pdev *pdev,
- uint32_t *ipa_tx_diff, uint32_t *ipa_rx_diff);
- /**
- * ucfg_ipa_reg_sap_xmit_cb() - Register upper layer SAP cb to transmit
- * @pdev: pdev obj
- * @cb: callback
- *
- * Return: None
- */
- void ucfg_ipa_reg_sap_xmit_cb(struct wlan_objmgr_pdev *pdev,
- wlan_ipa_softap_xmit cb);
- /**
- * ucfg_ipa_reg_send_to_nw_cb() - Register cb to send IPA Rx packet to network
- * @pdev: pdev obj
- * @cb: callback
- *
- * Return: None
- */
- void ucfg_ipa_reg_send_to_nw_cb(struct wlan_objmgr_pdev *pdev,
- wlan_ipa_send_to_nw cb);
- /**
- * ucfg_ipa_reg_rps_enable_cb() - Register cb to enable RPS
- * @pdev: pdev obj
- * @cb: callback
- *
- * Return: None
- */
- #if defined(QCA_CONFIG_RPS) && !defined(MDM_PLATFORM)
- void ucfg_ipa_reg_rps_enable_cb(struct wlan_objmgr_pdev *pdev,
- wlan_ipa_rps_enable cb);
- #else
- static inline
- void ucfg_ipa_reg_rps_enable_cb(struct wlan_objmgr_pdev *pdev,
- wlan_ipa_rps_enable cb)
- {
- }
- #endif
- /**
- * ucfg_ipa_reg_is_driver_unloading_cb() - Register cb to check if driver
- * is unloading
- * @pdev: pdev obj
- * @cb: callback
- *
- * Return: None
- */
- void ucfg_ipa_reg_is_driver_unloading_cb(struct wlan_objmgr_pdev *pdev,
- wlan_ipa_driver_unloading cb);
- /**
- * ucfg_ipa_set_mcc_mode() - Set MCC mode
- * @pdev: pdev obj
- * @mcc_mode: 0=MCC/1=SCC
- *
- * Return: void
- */
- void ucfg_ipa_set_mcc_mode(struct wlan_objmgr_pdev *pdev, bool mcc_mode);
- /**
- * ucfg_ipa_set_dfs_cac_tx() - Set DFS cac tx block
- * @pdev: pdev obj
- * @tx_block: dfs cac tx block
- *
- * Return: void
- */
- void ucfg_ipa_set_dfs_cac_tx(struct wlan_objmgr_pdev *pdev, bool tx_block);
- /**
- * ucfg_ipa_set_ap_ibss_fwd() - Set AP intra bss forward
- * @pdev: pdev obj
- * @session_id: vdev id
- * @intra_bss: enable or disable ap intra bss forward
- *
- * Return: void
- */
- void ucfg_ipa_set_ap_ibss_fwd(struct wlan_objmgr_pdev *pdev, uint8_t session_id,
- bool intra_bss);
- /**
- * ucfg_ipa_uc_force_pipe_shutdown() - Force shutdown IPA pipe
- * @pdev: pdev obj
- *
- * Return: void
- */
- void ucfg_ipa_uc_force_pipe_shutdown(struct wlan_objmgr_pdev *pdev);
- /**
- * ucfg_ipa_flush() - flush IPA exception path SKB's
- * @pdev: pdev obj
- *
- * Return: None
- */
- void ucfg_ipa_flush(struct wlan_objmgr_pdev *pdev);
- /**
- * ucfg_ipa_suspend() - Suspend IPA
- * @pdev: pdev obj
- *
- * Return: QDF STATUS
- */
- QDF_STATUS ucfg_ipa_suspend(struct wlan_objmgr_pdev *pdev);
- /**
- * ucfg_ipa_resume() - Resume IPA
- * @pdev: pdev obj
- *
- * Return: QDF STATUS
- */
- QDF_STATUS ucfg_ipa_resume(struct wlan_objmgr_pdev *pdev);
- /**
- * ucfg_ipa_uc_ol_init() - Initialize IPA uC offload
- * @pdev: pdev obj
- * @osdev: OS dev
- *
- * Return: QDF STATUS
- */
- QDF_STATUS ucfg_ipa_uc_ol_init(struct wlan_objmgr_pdev *pdev,
- qdf_device_t osdev);
- /**
- * ucfg_ipa_uc_ol_deinit() - Deinitialize IPA uC offload
- * @pdev: pdev obj
- *
- * Return: QDF STATUS
- */
- QDF_STATUS ucfg_ipa_uc_ol_deinit(struct wlan_objmgr_pdev *pdev);
- /**
- * ucfg_ipa_is_tx_pending() - Check if IPA WLAN TX completions are pending
- * @pdev: pdev obj
- *
- * Return: bool if pending TX for IPA.
- */
- bool ucfg_ipa_is_tx_pending(struct wlan_objmgr_pdev *pdev);
- /**
- * ucfg_ipa_send_mcc_scc_msg() - Send IPA WLAN_SWITCH_TO_MCC/SCC message
- * @pdev: pdev obj
- * @mcc_mode: 0=MCC/1=SCC
- *
- * Return: QDF STATUS
- */
- QDF_STATUS ucfg_ipa_send_mcc_scc_msg(struct wlan_objmgr_pdev *pdev,
- bool mcc_mode);
- /**
- * ucfg_ipa_wlan_evt() - IPA event handler
- * @pdev: pdev obj
- * @net_dev: Interface net device
- * @device_mode: Net interface device mode
- * @session_id: session id for the event
- * @ipa_event_type: event enum of type ipa_wlan_event
- * @mac_addr: MAC address associated with the event
- * @is_2g_iface: true if interface is operating on 2G band, otherwise false
- *
- * Return: QDF_STATUS
- */
- QDF_STATUS ucfg_ipa_wlan_evt(struct wlan_objmgr_pdev *pdev,
- qdf_netdev_t net_dev, uint8_t device_mode,
- uint8_t session_id,
- enum wlan_ipa_wlan_event ipa_event_type,
- const uint8_t *mac_addr, bool is_2g_iface);
- /**
- * ucfg_ipa_uc_smmu_map() - Map / Unmap DMA buffer to IPA UC
- * @map: Map / unmap operation
- * @num_buf: Number of buffers in array
- * @buf_arr: Buffer array of DMA mem mapping info
- *
- * Return: Status of map operation
- */
- int ucfg_ipa_uc_smmu_map(bool map, uint32_t num_buf, qdf_mem_info_t *buf_arr);
- /**
- * ucfg_ipa_is_fw_wdi_activated - Is FW WDI activated?
- * @pdev: pdev obj
- *
- * Return: true if FW WDI activated, false otherwise
- */
- bool ucfg_ipa_is_fw_wdi_activated(struct wlan_objmgr_pdev *pdev);
- /**
- * ucfg_ipa_uc_cleanup_sta() - disconnect and cleanup sta iface
- * @pdev: pdev obj
- * @net_dev: Interface net device
- * @session_id: vdev id
- *
- * Send disconnect sta event to IPA driver and cleanup IPA iface,
- * if not yet done
- *
- * Return: void
- */
- void ucfg_ipa_uc_cleanup_sta(struct wlan_objmgr_pdev *pdev,
- qdf_netdev_t net_dev, uint8_t session_id);
- /**
- * ucfg_ipa_uc_disconnect_ap() - send ap disconnect event
- * @pdev: pdev obj
- * @net_dev: Interface net device
- *
- * Send disconnect ap event to IPA driver during SSR
- *
- * Return: QDF_STATUS
- */
- QDF_STATUS ucfg_ipa_uc_disconnect_ap(struct wlan_objmgr_pdev *pdev,
- qdf_netdev_t net_dev);
- /**
- * ucfg_ipa_cleanup_dev_iface() - Clean up net dev IPA interface
- * @pdev: pdev obj
- * @net_dev: Interface net device
- * @session_id: vdev id
- *
- *
- * Return: None
- */
- void ucfg_ipa_cleanup_dev_iface(struct wlan_objmgr_pdev *pdev,
- qdf_netdev_t net_dev, uint8_t session_id);
- /**
- * ucfg_ipa_uc_ssr_cleanup() - Handle IPA cleanup for SSR
- * @pdev: pdev obj
- *
- * From hostside do cleanup such as deregister IPA interafces
- * and send disconnect events so that it will be sync after SSR
- *
- * Return: None
- */
- void ucfg_ipa_uc_ssr_cleanup(struct wlan_objmgr_pdev *pdev);
- /**
- * ucfg_ipa_fw_rejuvenate_send_msg() - Send msg to IPA driver in FW rejuvenate
- * @pdev: pdev obj
- *
- * Return: None
- */
- void ucfg_ipa_fw_rejuvenate_send_msg(struct wlan_objmgr_pdev *pdev);
- /**
- * ucfg_ipa_component_config_update() - update IPA component config
- * @psoc: pointer to psoc object
- *
- * Return: None
- */
- void ucfg_ipa_component_config_update(struct wlan_objmgr_psoc *psoc);
- /**
- * ucfg_ipa_component_config_free() - Free IPA component config
- *
- * Return: None
- */
- void ucfg_ipa_component_config_free(void);
- /**
- * ucfg_ipa_get_tx_buf_count() - get IPA tx buffer count
- *
- * Return: IPA tx buffer count
- */
- uint32_t ucfg_ipa_get_tx_buf_count(void);
- /**
- * ucfg_ipa_update_tx_stats() - send embedded tx traffic in bytes to IPA
- * @pdev: pdev obj
- * @sta_tx: tx in bytes on sta vdev
- * @ap_tx: tx in bytes on sap vdev
- *
- * Return: void
- */
- void ucfg_ipa_update_tx_stats(struct wlan_objmgr_pdev *pdev, uint64_t sta_tx,
- uint64_t ap_tx);
- /**
- * ucfg_ipa_flush_pending_vdev_events() - flush pending vdev wlan ipa events
- * @pdev: pdev obj
- * @vdev_id: vdev id
- *
- * Return: None
- */
- void ucfg_ipa_flush_pending_vdev_events(struct wlan_objmgr_pdev *pdev,
- uint8_t vdev_id);
- /**
- * ucfg_ipa_is_wds_enabled() - get IPA AP WDS status
- *
- * IPA driver requires WDS status for adding filter rules
- * to support easymesh feature, IPA expects wds status
- * with WLAN_IPA_AP_CONNECT event.
- *
- * Return: true - WDS is enabled
- * false - WDS is not enabled
- */
- bool ucfg_ipa_is_wds_enabled(void);
- /**
- * ucfg_ipa_get_alt_pipe() - Get alt_pipe for vdev_id
- * @pdev: pdev obj
- * @vdev_id: vdev_id of the target interface
- * @alt_pipe: Boolean output to indicate if interface with @vdev_id
- * is using alternate TX pipe or not.
- *
- * Return: QDF_STATUS
- */
- QDF_STATUS ucfg_ipa_get_alt_pipe(struct wlan_objmgr_pdev *pdev,
- uint8_t vdev_id,
- bool *alt_pipe);
- /**
- * ucfg_ipa_set_perf_level_bw_enabled - Get bandwidth based IPA perf
- * voting status
- * @pdev: pdev objmgr pointer
- *
- * This function returns true or false for bandwidth based IPA perf level
- * voting.
- *
- * Return: true - bandwidth based IPA perf voting is enabld. Otherwise false.
- */
- bool ucfg_ipa_set_perf_level_bw_enabled(struct wlan_objmgr_pdev *pdev);
- /**
- * ucfg_ipa_set_perf_level_bw() - Set IPA perf level based on BW
- * @pdev: pdev objmgr pointer
- * @lvl: enum wlan_ipa_bw_level
- *
- * This routine is called to set IPA perf level based on max BW
- * configured among in-use STA and SAP vdevs
- *
- * Return: None
- */
- void ucfg_ipa_set_perf_level_bw(struct wlan_objmgr_pdev *pdev,
- enum wlan_ipa_bw_level lvl);
- #else
- static inline void ucfg_ipa_set_pld_enable(bool flag)
- {
- }
- static inline bool ucfg_ipa_get_pld_enable(void)
- {
- return true;
- }
- static inline bool ucfg_ipa_is_present(void)
- {
- return false;
- }
- static inline bool ucfg_ipa_is_ready(void)
- {
- return false;
- }
- static inline void ucfg_ipa_update_config(struct wlan_ipa_config *config)
- {
- }
- static inline bool ucfg_ipa_is_enabled(void)
- {
- return false;
- }
- static inline bool ucfg_ipa_uc_is_enabled(void)
- {
- return false;
- }
- static inline bool ucfg_ipa_is_vlan_enabled(void)
- {
- return false;
- }
- static inline
- QDF_STATUS ucfg_ipa_set_dp_handle(struct wlan_objmgr_psoc *psoc,
- void *dp_soc)
- {
- return QDF_STATUS_SUCCESS;
- }
- static inline
- QDF_STATUS ucfg_ipa_set_pdev_id(struct wlan_objmgr_psoc *psoc,
- uint8_t pdev_id)
- {
- return QDF_STATUS_SUCCESS;
- }
- static inline
- QDF_STATUS ucfg_ipa_set_perf_level(struct wlan_objmgr_pdev *pdev,
- uint64_t tx_packets, uint64_t rx_packets)
- {
- return QDF_STATUS_SUCCESS;
- }
- static inline
- void ucfg_ipa_uc_info(struct wlan_objmgr_pdev *pdev)
- {
- }
- static inline
- void ucfg_ipa_uc_stat(struct wlan_objmgr_pdev *pdev)
- {
- }
- static inline
- void ucfg_ipa_uc_rt_debug_host_dump(struct wlan_objmgr_pdev *pdev)
- {
- }
- static inline
- void ucfg_ipa_dump_info(struct wlan_objmgr_pdev *pdev)
- {
- }
- static inline
- void ucfg_ipa_uc_stat_request(struct wlan_objmgr_pdev *pdev,
- uint8_t reason)
- {
- }
- static inline
- void ucfg_ipa_uc_stat_query(struct wlan_objmgr_pdev *pdev,
- uint32_t *ipa_tx_diff, uint32_t *ipa_rx_diff)
- {
- }
- static inline
- void ucfg_ipa_reg_sap_xmit_cb(struct wlan_objmgr_pdev *pdev,
- wlan_ipa_softap_xmit cb)
- {
- }
- static inline
- void ucfg_ipa_reg_send_to_nw_cb(struct wlan_objmgr_pdev *pdev,
- wlan_ipa_send_to_nw cb)
- {
- }
- static inline
- void ucfg_ipa_reg_rps_enable_cb(struct wlan_objmgr_pdev *pdev,
- wlan_ipa_rps_enable cb)
- {
- }
- static inline
- void ucfg_ipa_reg_is_driver_unloading_cb(struct wlan_objmgr_pdev *pdev,
- wlan_ipa_driver_unloading cb)
- {
- }
- static inline
- void ucfg_ipa_set_mcc_mode(struct wlan_objmgr_pdev *pdev, bool mcc_mode)
- {
- }
- static inline
- void ucfg_ipa_set_dfs_cac_tx(struct wlan_objmgr_pdev *pdev, bool tx_block)
- {
- }
- static inline
- void ucfg_ipa_set_ap_ibss_fwd(struct wlan_objmgr_pdev *pdev, uint8_t session_id,
- bool intra_bss)
- {
- }
- static inline
- void ucfg_ipa_uc_force_pipe_shutdown(struct wlan_objmgr_pdev *pdev)
- {
- }
- static inline
- void ucfg_ipa_flush(struct wlan_objmgr_pdev *pdev)
- {
- }
- static inline
- QDF_STATUS ucfg_ipa_suspend(struct wlan_objmgr_pdev *pdev)
- {
- return QDF_STATUS_SUCCESS;
- }
- static inline
- QDF_STATUS ucfg_ipa_resume(struct wlan_objmgr_pdev *pdev)
- {
- return QDF_STATUS_SUCCESS;
- }
- static inline
- QDF_STATUS ucfg_ipa_uc_ol_init(struct wlan_objmgr_pdev *pdev,
- qdf_device_t osdev)
- {
- return QDF_STATUS_SUCCESS;
- }
- static inline
- QDF_STATUS ucfg_ipa_uc_ol_deinit(struct wlan_objmgr_pdev *pdev)
- {
- return QDF_STATUS_SUCCESS;
- }
- static inline bool ucfg_ipa_is_tx_pending(struct wlan_objmgr_pdev *pdev)
- {
- return false;
- }
- static inline
- QDF_STATUS ucfg_ipa_send_mcc_scc_msg(struct wlan_objmgr_pdev *pdev,
- bool mcc_mode)
- {
- return QDF_STATUS_SUCCESS;
- }
- static inline
- QDF_STATUS ucfg_ipa_wlan_evt(struct wlan_objmgr_pdev *pdev,
- qdf_netdev_t net_dev, uint8_t device_mode,
- uint8_t session_id,
- enum wlan_ipa_wlan_event ipa_event_type,
- const uint8_t *mac_addr, bool is_2g_iface)
- {
- return QDF_STATUS_SUCCESS;
- }
- static inline
- int ucfg_ipa_uc_smmu_map(bool map, uint32_t num_buf, qdf_mem_info_t *buf_arr)
- {
- return 0;
- }
- static inline
- bool ucfg_ipa_is_fw_wdi_activated(struct wlan_objmgr_pdev *pdev)
- {
- return false;
- }
- static inline
- void ucfg_ipa_uc_cleanup_sta(struct wlan_objmgr_pdev *pdev,
- qdf_netdev_t net_dev, uint8_t session_id)
- {
- }
- static inline
- QDF_STATUS ucfg_ipa_uc_disconnect_ap(struct wlan_objmgr_pdev *pdev,
- qdf_netdev_t net_dev)
- {
- return QDF_STATUS_SUCCESS;
- }
- static inline
- void ucfg_ipa_cleanup_dev_iface(struct wlan_objmgr_pdev *pdev,
- qdf_netdev_t net_dev, uint8_t session_id)
- {
- }
- static inline
- void ucfg_ipa_uc_ssr_cleanup(struct wlan_objmgr_pdev *pdev)
- {
- }
- static inline
- void ucfg_ipa_fw_rejuvenate_send_msg(struct wlan_objmgr_pdev *pdev)
- {
- }
- static inline
- void ucfg_ipa_component_config_update(struct wlan_objmgr_psoc *psoc)
- {
- }
- static inline
- void ucfg_ipa_component_config_free(void)
- {
- }
- static inline
- uint32_t ucfg_ipa_get_tx_buf_count(void)
- {
- return 0;
- }
- static inline
- void ucfg_ipa_update_tx_stats(struct wlan_objmgr_pdev *pdev, uint64_t sta_tx,
- uint64_t ap_tx)
- {
- }
- static inline
- void ucfg_ipa_flush_pending_vdev_events(struct wlan_objmgr_pdev *pdev,
- uint8_t vdev_id)
- {
- }
- static inline
- bool ucfg_ipa_is_wds_enabled(void)
- {
- return false;
- }
- static inline
- QDF_STATUS ucfg_ipa_get_alt_pipe(struct wlan_objmgr_pdev *pdev,
- uint8_t vdev_id,
- bool *alt_pipe)
- {
- return QDF_STATUS_SUCCESS;
- }
- static inline
- bool ucfg_ipa_set_perf_level_bw_enabled(struct wlan_objmgr_pdev *pdev)
- {
- return false;
- }
- static inline void ucfg_ipa_set_perf_level_bw(struct wlan_objmgr_pdev *pdev,
- enum wlan_ipa_bw_level lvl)
- {
- }
- #endif /* IPA_OFFLOAD */
- #endif /* _WLAN_IPA_UCFG_API_H_ */
|