123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077 |
- #ifndef _CDP_TXRX_MISC_H_
- #define _CDP_TXRX_MISC_H_
- #include "cdp_txrx_handle.h"
- #include <cdp_txrx_cmn.h>
- static inline qdf_nbuf_t
- cdp_tx_non_std(ol_txrx_soc_handle soc, uint8_t vdev_id,
- enum ol_tx_spec tx_spec, qdf_nbuf_t msdu_list)
- {
- if (!soc || !soc->ops || !soc->ops->misc_ops) {
- dp_cdp_debug("invalid instance");
- return NULL;
- }
- if (soc->ops->misc_ops->tx_non_std)
- return soc->ops->misc_ops->tx_non_std(soc, vdev_id, tx_spec,
- msdu_list);
- return NULL;
- }
- static inline uint16_t
- cdp_set_ibss_vdev_heart_beat_timer(ol_txrx_soc_handle soc,
- uint8_t vdev_id, uint16_t timer_value_sec)
- {
- if (!soc || !soc->ops || !soc->ops->misc_ops) {
- QDF_TRACE(QDF_MODULE_ID_DP, QDF_TRACE_LEVEL_FATAL,
- "%s invalid instance", __func__);
- return 0;
- }
- if (soc->ops->misc_ops->set_ibss_vdev_heart_beat_timer)
- return soc->ops->misc_ops->set_ibss_vdev_heart_beat_timer(
- soc, vdev_id, timer_value_sec);
- return 0;
- }
- static inline QDF_STATUS
- cdp_set_wisa_mode(ol_txrx_soc_handle soc, uint8_t vdev_id, bool enable)
- {
- if (!soc || !soc->ops || !soc->ops->misc_ops) {
- QDF_TRACE(QDF_MODULE_ID_DP, QDF_TRACE_LEVEL_FATAL,
- "%s invalid instance", __func__);
- return QDF_STATUS_E_INVAL;
- }
- if (soc->ops->misc_ops->set_wisa_mode)
- return soc->ops->misc_ops->set_wisa_mode(soc, vdev_id, enable);
- return QDF_STATUS_SUCCESS;
- }
- static inline QDF_STATUS cdp_data_stall_cb_register(ol_txrx_soc_handle soc,
- uint8_t pdev_id,
- data_stall_detect_cb cb)
- {
- if (!soc || !soc->ops || !soc->ops->misc_ops) {
- QDF_TRACE(QDF_MODULE_ID_DP, QDF_TRACE_LEVEL_FATAL,
- "%s invalid instance", __func__);
- return QDF_STATUS_E_INVAL;
- }
- if (soc->ops->misc_ops->txrx_data_stall_cb_register)
- return soc->ops->misc_ops->txrx_data_stall_cb_register(
- soc, pdev_id, cb);
- return QDF_STATUS_SUCCESS;
- }
- static inline QDF_STATUS cdp_data_stall_cb_deregister(ol_txrx_soc_handle soc,
- uint8_t pdev_id,
- data_stall_detect_cb cb)
- {
- if (!soc || !soc->ops || !soc->ops->misc_ops) {
- QDF_TRACE(QDF_MODULE_ID_DP, QDF_TRACE_LEVEL_FATAL,
- "%s invalid instance", __func__);
- return QDF_STATUS_E_INVAL;
- }
- if (soc->ops->misc_ops->txrx_data_stall_cb_deregister)
- return soc->ops->misc_ops->txrx_data_stall_cb_deregister(
- soc, pdev_id, cb);
- return QDF_STATUS_SUCCESS;
- }
- static inline void
- cdp_post_data_stall_event(ol_txrx_soc_handle soc,
- enum data_stall_log_event_indicator indicator,
- enum data_stall_log_event_type data_stall_type,
- uint32_t pdev_id, uint32_t vdev_id_bitmap,
- enum data_stall_log_recovery_type recovery_type)
- {
- if (!soc || !soc->ops) {
- QDF_TRACE(QDF_MODULE_ID_DP, QDF_TRACE_LEVEL_FATAL,
- "%s invalid instance", __func__);
- QDF_BUG(0);
- return;
- }
- if (!soc->ops->misc_ops ||
- !soc->ops->misc_ops->txrx_post_data_stall_event)
- return;
- soc->ops->misc_ops->txrx_post_data_stall_event(
- soc, indicator, data_stall_type, pdev_id,
- vdev_id_bitmap, recovery_type);
- }
- static inline void
- cdp_set_wmm_param(ol_txrx_soc_handle soc, uint8_t pdev_id,
- struct ol_tx_wmm_param_t wmm_param)
- {
- if (!soc || !soc->ops || !soc->ops->misc_ops) {
- QDF_TRACE(QDF_MODULE_ID_DP, QDF_TRACE_LEVEL_FATAL,
- "%s invalid instance", __func__);
- return;
- }
- if (soc->ops->misc_ops->set_wmm_param)
- return soc->ops->misc_ops->set_wmm_param(soc, pdev_id,
- wmm_param);
- return;
- }
- static inline QDF_STATUS cdp_runtime_suspend(ol_txrx_soc_handle soc,
- uint8_t pdev_id)
- {
- if (!soc || !soc->ops || !soc->ops->misc_ops) {
- QDF_TRACE(QDF_MODULE_ID_DP, QDF_TRACE_LEVEL_FATAL,
- "%s invalid instance", __func__);
- return QDF_STATUS_E_INVAL;
- }
- if (soc->ops->misc_ops->runtime_suspend)
- return soc->ops->misc_ops->runtime_suspend(soc, pdev_id);
- return QDF_STATUS_SUCCESS;
- }
- static inline QDF_STATUS cdp_runtime_resume(ol_txrx_soc_handle soc,
- uint8_t pdev_id)
- {
- if (!soc || !soc->ops || !soc->ops->misc_ops) {
- QDF_TRACE(QDF_MODULE_ID_DP, QDF_TRACE_LEVEL_FATAL,
- "%s invalid instance", __func__);
- return QDF_STATUS_E_INVAL;
- }
- if (soc->ops->misc_ops->runtime_resume)
- return soc->ops->misc_ops->runtime_resume(soc, pdev_id);
- return QDF_STATUS_SUCCESS;
- }
- static inline void
- cdp_hl_tdls_flag_reset(ol_txrx_soc_handle soc, uint8_t vdev_id, bool flag)
- {
- if (!soc || !soc->ops || !soc->ops->misc_ops) {
- QDF_TRACE(QDF_MODULE_ID_DP, QDF_TRACE_LEVEL_FATAL,
- "%s invalid instance", __func__);
- return;
- }
- if (soc->ops->misc_ops->hl_tdls_flag_reset)
- return soc->ops->misc_ops->hl_tdls_flag_reset(soc, vdev_id,
- flag);
- return;
- }
- static inline int
- cdp_get_opmode(ol_txrx_soc_handle soc, uint8_t vdev_id)
- {
- if (!soc || !soc->ops || !soc->ops->misc_ops) {
- QDF_TRACE(QDF_MODULE_ID_DP, QDF_TRACE_LEVEL_FATAL,
- "%s invalid instance", __func__);
- return 0;
- }
- if (soc->ops->misc_ops->get_opmode)
- return soc->ops->misc_ops->get_opmode(soc, vdev_id);
- return 0;
- }
- static inline uint16_t
- cdp_get_vdev_id(ol_txrx_soc_handle soc, struct cdp_vdev *vdev)
- {
- if (!soc || !soc->ops || !soc->ops->misc_ops) {
- QDF_TRACE(QDF_MODULE_ID_DP, QDF_TRACE_LEVEL_FATAL,
- "%s invalid instance", __func__);
- return 0;
- }
- if (soc->ops->misc_ops->get_vdev_id)
- return soc->ops->misc_ops->get_vdev_id(vdev);
- return 0;
- }
- static inline uint32_t
- cdp_get_tx_ack_stats(ol_txrx_soc_handle soc, uint8_t vdev_id)
- {
- if (!soc || !soc->ops || !soc->ops->misc_ops) {
- QDF_TRACE(QDF_MODULE_ID_DP, QDF_TRACE_LEVEL_FATAL,
- "%s invalid instance", __func__);
- return 0;
- }
- if (soc->ops->misc_ops->get_tx_ack_stats)
- return soc->ops->misc_ops->get_tx_ack_stats(soc, vdev_id);
- return 0;
- }
- static inline void
- cdp_bad_peer_txctl_set_setting(ol_txrx_soc_handle soc, uint8_t pdev_id,
- int enable, int period, int txq_limit)
- {
- if (!soc || !soc->ops || !soc->ops->misc_ops) {
- QDF_TRACE(QDF_MODULE_ID_DP, QDF_TRACE_LEVEL_FATAL,
- "%s invalid instance", __func__);
- return;
- }
- if (soc->ops->misc_ops->bad_peer_txctl_set_setting)
- return soc->ops->misc_ops->bad_peer_txctl_set_setting(
- soc, pdev_id, enable, period,
- txq_limit);
- return;
- }
- static inline void
- cdp_bad_peer_txctl_update_threshold(ol_txrx_soc_handle soc,
- uint8_t pdev_id, int level,
- int tput_thresh, int tx_limit)
- {
- if (!soc || !soc->ops || !soc->ops->misc_ops) {
- QDF_TRACE(QDF_MODULE_ID_DP, QDF_TRACE_LEVEL_FATAL,
- "%s invalid instance", __func__);
- return;
- }
- if (soc->ops->misc_ops->bad_peer_txctl_update_threshold)
- return soc->ops->misc_ops->bad_peer_txctl_update_threshold(
- soc, pdev_id, level, tput_thresh, tx_limit);
- return;
- }
- static inline void cdp_mark_first_wakeup_packet(ol_txrx_soc_handle soc,
- uint8_t pdev_id, uint8_t value)
- {
- if (!soc || !soc->ops || !soc->ops->misc_ops) {
- QDF_TRACE(QDF_MODULE_ID_DP, QDF_TRACE_LEVEL_FATAL,
- "%s invalid instance", __func__);
- return;
- }
- if (soc->ops->misc_ops->mark_first_wakeup_packet)
- return soc->ops->misc_ops->mark_first_wakeup_packet(
- soc, pdev_id, value);
- return;
- }
- static inline void cdp_update_mac_id(void *psoc, uint8_t vdev_id,
- uint8_t mac_id)
- {
- ol_txrx_soc_handle soc = psoc;
- if (!soc || !soc->ops || !soc->ops->misc_ops) {
- QDF_TRACE(QDF_MODULE_ID_DP, QDF_TRACE_LEVEL_FATAL,
- "%s invalid instance", __func__);
- return;
- }
- if (soc->ops->misc_ops->update_mac_id)
- return soc->ops->misc_ops->update_mac_id(soc, vdev_id, mac_id);
- return;
- }
- static inline void cdp_flush_rx_frames(ol_txrx_soc_handle soc, uint8_t pdev_id,
- uint8_t *peer_mac, bool drop)
- {
- if (!soc || !soc->ops || !soc->ops->misc_ops) {
- QDF_TRACE(QDF_MODULE_ID_DP, QDF_TRACE_LEVEL_FATAL,
- "%s invalid instance", __func__);
- return;
- }
- if (soc->ops->misc_ops->flush_rx_frames)
- return soc->ops->misc_ops->flush_rx_frames(soc, pdev_id,
- peer_mac, drop);
- return;
- }
- static inline A_STATUS cdp_get_intra_bss_fwd_pkts_count(
- ol_txrx_soc_handle soc, uint8_t vdev_id,
- uint64_t *fwd_tx_packets, uint64_t *fwd_rx_packets)
- {
- if (!soc || !soc->ops || !soc->ops->misc_ops) {
- QDF_TRACE(QDF_MODULE_ID_DP, QDF_TRACE_LEVEL_FATAL,
- "%s invalid instance", __func__);
- return 0;
- }
- if (soc->ops->misc_ops->get_intra_bss_fwd_pkts_count)
- return soc->ops->misc_ops->get_intra_bss_fwd_pkts_count(
- soc, vdev_id, fwd_tx_packets, fwd_rx_packets);
- return 0;
- }
- static inline void cdp_pkt_log_init(ol_txrx_soc_handle soc,
- uint8_t pdev_id, void *scn)
- {
- if (!soc || !soc->ops || !soc->ops->misc_ops) {
- QDF_TRACE(QDF_MODULE_ID_DP, QDF_TRACE_LEVEL_FATAL,
- "%s invalid instance", __func__);
- return;
- }
- if (soc->ops->misc_ops->pkt_log_init)
- return soc->ops->misc_ops->pkt_log_init(soc, pdev_id, scn);
- return;
- }
- static inline void cdp_pkt_log_con_service(ol_txrx_soc_handle soc,
- uint8_t pdev_id, void *scn)
- {
- if (!soc || !soc->ops || !soc->ops->misc_ops) {
- QDF_TRACE(QDF_MODULE_ID_DP, QDF_TRACE_LEVEL_FATAL,
- "%s invalid instance", __func__);
- return;
- }
- if (soc->ops->misc_ops->pkt_log_con_service)
- return soc->ops->misc_ops->pkt_log_con_service(
- soc, pdev_id, scn);
- return;
- }
- static inline void cdp_pkt_log_exit(ol_txrx_soc_handle soc, uint8_t pdev_id)
- {
- if (!soc || !soc->ops || !soc->ops->misc_ops) {
- QDF_TRACE(QDF_MODULE_ID_DP, QDF_TRACE_LEVEL_FATAL,
- "%s invalid instance", __func__);
- return;
- }
- if (soc->ops->misc_ops->pkt_log_exit)
- return soc->ops->misc_ops->pkt_log_exit(soc, pdev_id);
- return;
- }
- static inline int cdp_get_num_rx_contexts(ol_txrx_soc_handle soc)
- {
- if (!soc || !soc->ops || !soc->ops->misc_ops) {
- QDF_TRACE(QDF_MODULE_ID_DP, QDF_TRACE_LEVEL_FATAL,
- "%s invalid instance", __func__);
- return 0;
- }
- if (soc->ops->misc_ops->get_num_rx_contexts)
- return soc->ops->misc_ops->get_num_rx_contexts(soc);
- return 0;
- }
- static inline void cdp_register_packetdump_cb(ol_txrx_soc_handle soc,
- uint8_t pdev_id,
- ol_txrx_pktdump_cb tx_cb,
- ol_txrx_pktdump_cb rx_cb)
- {
- if (!soc || !soc->ops || !soc->ops->misc_ops) {
- QDF_TRACE(QDF_MODULE_ID_DP, QDF_TRACE_LEVEL_FATAL,
- "%s invalid instance", __func__);
- return;
- }
- if (soc->ops->misc_ops->register_pktdump_cb)
- return soc->ops->misc_ops->register_pktdump_cb(
- soc, pdev_id, tx_cb, rx_cb);
- }
- static inline void cdp_deregister_packetdump_cb(ol_txrx_soc_handle soc,
- uint8_t pdev_id)
- {
- if (!soc || !soc->ops || !soc->ops->misc_ops) {
- QDF_TRACE(QDF_MODULE_ID_DP, QDF_TRACE_LEVEL_FATAL,
- "%s invalid instance", __func__);
- return;
- }
- if (soc->ops->misc_ops->unregister_pktdump_cb)
- return soc->ops->misc_ops->unregister_pktdump_cb(soc, pdev_id);
- }
- typedef void (*rx_mic_error_callback)(struct cdp_ctrl_objmgr_psoc *psoc,
- uint8_t pdev_id,
- struct cdp_rx_mic_err_info *info);
- static inline void
- cdp_register_rx_mic_error_ind_handler(ol_txrx_soc_handle soc,
- rx_mic_error_callback rx_mic_cb)
- {
- if (!soc || !soc->ol_ops) {
- QDF_TRACE(QDF_MODULE_ID_DP, QDF_TRACE_LEVEL_FATAL,
- "%s invalid instance", __func__);
- return;
- }
- soc->ol_ops->rx_mic_error = rx_mic_cb;
- }
- typedef void (*rx_refill_thread_sched_cb)(ol_txrx_soc_handle soc);
- static inline void
- cdp_register_rx_refill_thread_sched_handler(ol_txrx_soc_handle soc,
- rx_refill_thread_sched_cb rx_sched_cb)
- {
- if (!soc || !soc->ol_ops) {
- QDF_TRACE(QDF_MODULE_ID_DP, QDF_TRACE_LEVEL_FATAL,
- "%s invalid instance", __func__);
- return;
- }
- soc->ol_ops->dp_rx_sched_refill_thread = rx_sched_cb;
- }
- static inline void cdp_pdev_reset_driver_del_ack(void *psoc,
- uint8_t pdev_id)
- {
- ol_txrx_soc_handle soc = psoc;
- if (!soc || !soc->ops || !soc->ops->misc_ops) {
- QDF_TRACE(QDF_MODULE_ID_DP, QDF_TRACE_LEVEL_FATAL,
- "%s invalid instance", __func__);
- return;
- }
- if (soc->ops->misc_ops->pdev_reset_driver_del_ack)
- return soc->ops->misc_ops->pdev_reset_driver_del_ack(soc,
- pdev_id);
- }
- static inline void cdp_vdev_set_driver_del_ack_enable(ol_txrx_soc_handle soc,
- uint8_t vdev_id,
- unsigned long rx_packets,
- uint32_t time_in_ms,
- uint32_t high_th,
- uint32_t low_th)
- {
- if (!soc || !soc->ops || !soc->ops->misc_ops) {
- QDF_TRACE(QDF_MODULE_ID_DP, QDF_TRACE_LEVEL_FATAL,
- "%s invalid instance", __func__);
- return;
- }
- if (soc->ops->misc_ops->vdev_set_driver_del_ack_enable)
- return soc->ops->misc_ops->vdev_set_driver_del_ack_enable(
- soc, vdev_id, rx_packets, time_in_ms, high_th, low_th);
- }
- static inline void cdp_vdev_set_bundle_require_flag(ol_txrx_soc_handle soc,
- uint8_t vdev_id,
- unsigned long tx_bytes,
- uint32_t time_in_ms,
- uint32_t high_th,
- uint32_t low_th)
- {
- if (!soc || !soc->ops || !soc->ops->misc_ops) {
- QDF_TRACE(QDF_MODULE_ID_DP, QDF_TRACE_LEVEL_FATAL,
- "%s invalid instance", __func__);
- return;
- }
- if (soc->ops->misc_ops->vdev_set_bundle_require_flag)
- return soc->ops->misc_ops->vdev_set_bundle_require_flag(
- vdev_id, tx_bytes, time_in_ms, high_th, low_th);
- }
- static inline void cdp_pdev_reset_bundle_require_flag(ol_txrx_soc_handle soc,
- uint8_t pdev_id)
- {
- if (!soc || !soc->ops || !soc->ops->misc_ops) {
- QDF_TRACE(QDF_MODULE_ID_DP, QDF_TRACE_LEVEL_FATAL,
- "%s invalid instance", __func__);
- return;
- }
- if (soc->ops->misc_ops->pdev_reset_bundle_require_flag)
- return soc->ops->misc_ops->pdev_reset_bundle_require_flag(
- soc, pdev_id);
- }
- static inline QDF_STATUS
- cdp_txrx_ext_stats_request(ol_txrx_soc_handle soc, uint8_t pdev_id,
- struct cdp_txrx_ext_stats *req)
- {
- if (!soc || !soc->ops || !soc->ops->misc_ops || !req) {
- dp_cdp_debug("Invalid Instance:");
- return QDF_STATUS_E_INVAL;
- }
- if (soc->ops->misc_ops->txrx_ext_stats_request)
- return soc->ops->misc_ops->txrx_ext_stats_request(soc, pdev_id,
- req);
- return QDF_STATUS_SUCCESS;
- }
- static inline QDF_STATUS
- cdp_request_rx_hw_stats(ol_txrx_soc_handle soc, uint8_t vdev_id)
- {
- if (!soc || !soc->ops || !soc->ops->misc_ops) {
- dp_cdp_debug("Invalid Instance:");
- return QDF_STATUS_E_INVAL;
- }
- if (soc->ops->misc_ops->request_rx_hw_stats)
- return soc->ops->misc_ops->request_rx_hw_stats(soc, vdev_id);
- return QDF_STATUS_SUCCESS;
- }
- static inline void
- cdp_reset_rx_hw_ext_stats(ol_txrx_soc_handle soc)
- {
- if (!soc || !soc->ops || !soc->ops->misc_ops) {
- dp_cdp_debug("Invalid Instance");
- return;
- }
- if (soc->ops->misc_ops->reset_rx_hw_ext_stats)
- soc->ops->misc_ops->reset_rx_hw_ext_stats(soc);
- }
- static inline QDF_STATUS
- cdp_vdev_inform_ll_conn(ol_txrx_soc_handle soc, uint8_t vdev_id,
- enum vdev_ll_conn_actions action)
- {
- if (!soc || !soc->ops || !soc->ops->misc_ops) {
- dp_cdp_debug("Invalid Instance:");
- return QDF_STATUS_E_INVAL;
- }
- if (soc->ops->misc_ops->vdev_inform_ll_conn)
- return soc->ops->misc_ops->vdev_inform_ll_conn(soc, vdev_id,
- action);
- return QDF_STATUS_SUCCESS;
- }
- static inline QDF_STATUS
- cdp_soc_set_swlm_enable(ol_txrx_soc_handle soc, uint8_t value)
- {
- if (!soc || !soc->ops || !soc->ops->misc_ops) {
- dp_cdp_debug("Invalid Instance:");
- return QDF_STATUS_E_INVAL;
- }
- if (soc->ops->misc_ops->set_swlm_enable)
- return soc->ops->misc_ops->set_swlm_enable(soc, value);
- return QDF_STATUS_SUCCESS;
- }
- static inline uint8_t
- cdp_soc_is_swlm_enabled(ol_txrx_soc_handle soc)
- {
- if (!soc || !soc->ops || !soc->ops->misc_ops) {
- dp_cdp_debug("Invalid Instance:");
- return 0;
- }
- if (soc->ops->misc_ops->is_swlm_enabled)
- return soc->ops->misc_ops->is_swlm_enabled(soc);
- return 0;
- }
- static inline bool
- cdp_display_txrx_hw_info(ol_txrx_soc_handle soc)
- {
- if (!soc || !soc->ops || !soc->ops->misc_ops) {
- dp_cdp_debug("Invalid Instance:");
- return true;
- }
- if (soc->ops->misc_ops->display_txrx_hw_info)
- return soc->ops->misc_ops->display_txrx_hw_info(soc);
- return true;
- }
- static inline uint32_t
- cdp_get_tx_rings_grp_bitmap(ol_txrx_soc_handle soc)
- {
- if (!soc || !soc->ops || !soc->ops->misc_ops) {
- dp_cdp_debug("Invalid Instance:");
- return 0;
- }
- if (soc->ops->misc_ops->get_tx_rings_grp_bitmap)
- return soc->ops->misc_ops->get_tx_rings_grp_bitmap(soc);
- return 0;
- }
- #ifdef WLAN_FEATURE_PEER_TXQ_FLUSH_CONF
- static inline int
- cdp_set_peer_txq_flush_config(ol_txrx_soc_handle soc, uint8_t vdev_id,
- uint8_t *mac, uint8_t ac, uint32_t tid,
- enum cdp_peer_txq_flush_policy policy)
- {
- if (!soc || !soc->ops || !soc->ops->misc_ops || !mac) {
- dp_cdp_debug("Invalid parameters");
- return 0;
- }
- if (soc->ops->misc_ops->set_peer_txq_flush_config) {
- return soc->ops->misc_ops->set_peer_txq_flush_config(soc,
- vdev_id,
- mac, ac,
- tid,
- policy);
- }
- return 0;
- }
- #endif
- #ifdef FEATURE_RX_LINKSPEED_ROAM_TRIGGER
- static inline void
- cdp_set_bus_vote_lvl_high(ol_txrx_soc_handle soc, bool high)
- {
- if (!soc || !soc->ops || !soc->ops->misc_ops ||
- !soc->ops->misc_ops->set_bus_vote_lvl_high) {
- dp_cdp_debug("Invalid Instance:");
- return;
- }
- soc->ops->misc_ops->set_bus_vote_lvl_high(soc, high);
- }
- static inline bool
- cdp_get_bus_lvl_high(ol_txrx_soc_handle soc)
- {
- if (!soc || !soc->ops || !soc->ops->misc_ops ||
- !soc->ops->misc_ops->get_bus_vote_lvl_high) {
- dp_cdp_debug("Invalid Instance:");
- return false;
- }
- return soc->ops->misc_ops->get_bus_vote_lvl_high(soc);
- }
- #else
- static inline void
- cdp_set_bus_vote_lvl_high(ol_txrx_soc_handle soc, bool high)
- {
- }
- static inline bool
- cdp_get_bus_lvl_high(ol_txrx_soc_handle soc)
- {
-
- return true;
- }
- #endif
- #ifdef DP_TX_PACKET_INSPECT_FOR_ILP
- static inline bool
- cdp_evaluate_update_tx_ilp_cfg(ol_txrx_soc_handle soc,
- uint8_t num_msdu_idx_map,
- uint8_t *msdu_idx_map_arr)
- {
- if (!soc || !soc->ops || !soc->ops->misc_ops ||
- !soc->ops->misc_ops->evaluate_update_tx_ilp_cfg) {
- dp_cdp_debug("Invalid Instance:");
- return false;
- }
- return soc->ops->misc_ops->evaluate_update_tx_ilp_cfg(
- soc, num_msdu_idx_map,
- msdu_idx_map_arr);
- }
- #endif
- #endif
|