12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315 |
- /*
- * Copyright (c) 2013-2021 The Linux Foundation. All rights reserved.
- * Copyright (c) 2021-2022 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.
- */
- #ifndef __WLAN_CFG_H
- #define __WLAN_CFG_H
- #include <wlan_init_cfg.h>
- /* DP process status */
- #if defined(MAX_PDEV_CNT) && (MAX_PDEV_CNT == 1)
- #define CONFIG_PROCESS_RX_STATUS 1
- #define CONFIG_PROCESS_TX_STATUS 1
- #else
- #define CONFIG_PROCESS_RX_STATUS 0
- #define CONFIG_PROCESS_TX_STATUS 0
- #endif
- /* Miscellaneous configuration */
- #define MAX_IDLE_SCATTER_BUFS 16
- #define DP_MAX_IRQ_PER_CONTEXT 12
- #define MAX_HTT_METADATA_LEN 32
- #define DP_MAX_TIDS 17
- #define DP_NON_QOS_TID 16
- #define DP_NULL_DATA_TID 17
- #ifdef CONFIG_BERYLLIUM
- #define WLAN_CFG_RX_FST_MAX_SEARCH 16
- #else
- #define WLAN_CFG_RX_FST_MAX_SEARCH 2
- #endif
- #define WLAN_CFG_RX_FST_TOEPLITZ_KEYLEN 40
- #define INVALID_PDEV_ID 0xFF
- #define WLAN_CFG_RX_RING_MASK_0 0x1
- #define WLAN_CFG_RX_RING_MASK_1 0x2
- #define WLAN_CFG_RX_RING_MASK_2 0x4
- #define WLAN_CFG_RX_RING_MASK_3 0x8
- #define WLAN_CFG_RX_RING_MASK_4 0x10
- #define WLAN_CFG_RX_RING_MASK_5 0x20
- #define WLAN_CFG_RX_RING_MASK_6 0x40
- #define WLAN_CFG_RX_RING_MASK_7 0x80
- #ifdef WLAN_FEATURE_NEAR_FULL_IRQ
- #ifdef IPA_OFFLOAD
- #define WLAN_CFG_RX_NEAR_FULL_IRQ_MASK_1 (WLAN_CFG_RX_RING_MASK_0 | \
- WLAN_CFG_RX_RING_MASK_1 | \
- WLAN_CFG_RX_RING_MASK_2)
- #define WLAN_CFG_RX_NEAR_FULL_IRQ_MASK_2 (WLAN_CFG_RX_RING_MASK_4 | \
- WLAN_CFG_RX_RING_MASK_5 | \
- WLAN_CFG_RX_RING_MASK_6)
- #define WLAN_CFG_TX_RING_NEAR_FULL_IRQ_MASK (WLAN_CFG_TX_RING_MASK_0 | \
- WLAN_CFG_TX_RING_MASK_4 | \
- WLAN_CFG_TX_RING_MASK_2)
- #else
- #define WLAN_CFG_RX_NEAR_FULL_IRQ_MASK_1 (WLAN_CFG_RX_RING_MASK_0 | \
- WLAN_CFG_RX_RING_MASK_1 | \
- WLAN_CFG_RX_RING_MASK_2 | \
- WLAN_CFG_RX_RING_MASK_3)
- #define WLAN_CFG_RX_NEAR_FULL_IRQ_MASK_2 (WLAN_CFG_RX_RING_MASK_4 | \
- WLAN_CFG_RX_RING_MASK_5 | \
- WLAN_CFG_RX_RING_MASK_6 | \
- WLAN_CFG_RX_RING_MASK_7)
- #ifdef QCA_WIFI_KIWI_V2
- #define WLAN_CFG_TX_RING_NEAR_FULL_IRQ_MASK (WLAN_CFG_TX_RING_MASK_0 | \
- WLAN_CFG_TX_RING_MASK_4 | \
- WLAN_CFG_TX_RING_MASK_2 | \
- WLAN_CFG_TX_RING_MASK_5 | \
- WLAN_CFG_TX_RING_MASK_6)
- #else /* !QCA_WIFI_KIWI_V2 */
- #define WLAN_CFG_TX_RING_NEAR_FULL_IRQ_MASK (WLAN_CFG_TX_RING_MASK_0 | \
- WLAN_CFG_TX_RING_MASK_4 | \
- WLAN_CFG_TX_RING_MASK_2 | \
- WLAN_CFG_TX_RING_MASK_6 | \
- WLAN_CFG_TX_RING_MASK_7)
- #endif /* QCA_WIFI_KIWI_V2 */
- #endif
- #endif
- /* Max number of chips that can participate in MLO */
- #if defined(WLAN_FEATURE_11BE_MLO) && defined(WLAN_MLO_MULTI_CHIP)
- #define WLAN_MAX_MLO_CHIPS 4
- #define WLAN_MAX_MLO_LINKS_PER_SOC 2
- #else
- #define WLAN_MAX_MLO_CHIPS 1
- #endif
- struct wlan_cfg_dp_pdev_ctxt;
- /**
- * struct wlan_cfg_tcl_wbm_ring_num_map - TCL WBM Ring number mapping
- * @tcl_ring_num - TCL Ring number
- * @wbm_ring_num - WBM Ring number
- * @wbm_ring_num - WBM RBM ID to be used when enqueuing to TCL
- * @for_ipa - whether this TCL/WBM for IPA use or not
- */
- struct wlan_cfg_tcl_wbm_ring_num_map {
- uint8_t tcl_ring_num;
- uint8_t wbm_ring_num;
- uint8_t wbm_rbm_id;
- uint8_t for_ipa;
- };
- /**
- * struct wlan_srng_cfg - Per ring configuration parameters
- * @timer_threshold: Config to control interrupts based on timer duration
- * @batch_count_threshold: Config to control interrupts based on
- * number of packets in the ring
- * @low_threshold: Config to control low threshold interrupts for SRC rings
- */
- struct wlan_srng_cfg {
- uint32_t timer_threshold;
- uint32_t batch_count_threshold;
- uint32_t low_threshold;
- };
- /**
- * struct wlan_cfg_dp_soc_ctxt - Configuration parameters for SoC (core TxRx)
- * @num_int_ctxts: Number of NAPI/Interrupt contexts to be registered for DP
- * @max_clients: Maximum number of peers/stations supported by device
- * @max_alloc_size: Maximum allocation size for any dynamic memory
- * allocation request for this device
- * @per_pdev_tx_ring: 0: TCL ring is not mapped per radio
- * 1: Each TCL ring is mapped to one radio/pdev
- * @num_tx_comp_rings: Number of Tx comp rings supported by device
- * @num_tcl_data_rings: Number of TCL Data rings supported by device
- * @per_pdev_rx_ring: 0: REO ring is not mapped per radio
- * 1: Each REO ring is mapped to one radio/pdev
- * @num_tx_desc_pool: Number of Tx Descriptor pools
- * @num_tx_ext_desc_pool: Number of Tx MSDU extension Descriptor pools
- * @num_tx_desc: Number of Tx Descriptors per pool
- * @min_tx_desc: Minimum number of Tx Descriptors per pool
- * @num_tx_ext_desc: Number of Tx MSDU extension Descriptors per pool
- * @max_peer_id: Maximum value of peer id that FW can assign for a client
- * @htt_packet_type: Default 802.11 encapsulation type for any VAP created
- * @int_tx_ring_mask: Bitmap of Tx interrupts mapped to each NAPI/Intr context
- * @int_rx_ring_mask: Bitmap of Rx interrupts mapped to each NAPI/Intr context
- * @int_rx_mon_ring_mask: Bitmap of Rx monitor ring interrupts mapped to each
- * NAPI/Intr context
- * @int_tx_mon_ring_mask: Bitmap of Tx monitor ring interrupts mapped to each
- * NAPI/Intr context
- * @int_rx_err_ring_mask: Bitmap of Rx err ring interrupts mapped to each
- * NAPI/Intr context
- * @int_wbm_rel_ring_mask: Bitmap of wbm rel ring interrupts mapped to each
- * NAPI/Intr context
- * @int_reo_status_ring_mask: Bitmap of reo status ring interrupts mapped to
- * each NAPI/Intr context
- * @int_rxdma2host_ring_mask:
- * @int_host2rxdma_ring_mask:
- * @int_rx_ring_near_full_irq_1_mask: Bitmap of REO DST ring near full interrupt
- * mapped to each NAPI/INTR context
- * @int_rx_ring_near_full_irq_2_mask: Bitmap of REO DST ring near full interrupt
- * mapped to each NAPI/INTR context
- * @int_tx_ring_near_full_irq_mask: Bitmap of Tx completion ring near full
- * interrupt mapped to each NAPI/INTR context
- * @int_host2txmon_ring_mask: Bitmap of Tx monitor source ring interrupt
- * mapped to each NAPI/INTR context
- * @int_umac_reset_intr_mask: Bitmap of UMAC reset interrupt mapped to each
- * NAPI/INTR context
- * @int_ce_ring_mask: Bitmap of CE interrupts mapped to each NAPI/Intr context
- * @lro_enabled: enable/disable lro feature
- * @rx_hash: Enable hash based steering of rx packets
- * @tso_enabled: enable/disable tso feature
- * @lro_enabled: enable/disable LRO feature
- * @sg_enabled: enable disable scatter gather feature
- * @gro_enabled: enable disable GRO feature
- * @tc_based_dynamic_gro: enable/disable tc based dynamic gro
- * @tc_ingress_prio: ingress prio to be checked for dynamic gro
- * @ipa_enabled: Flag indicating if IPA is enabled
- * @ol_tx_csum_enabled: Flag indicating if TX csum is enabled
- * @ol_rx_csum_enabled: Flag indicating if Rx csum is enabled
- * @rawmode_enabled: Flag indicating if RAW mode is enabled
- * @peer_flow_ctrl_enabled: Flag indicating if peer flow control is enabled
- * @napi_enabled: enable/disable interrupt mode for reaping tx and rx packets
- * @p2p_tcp_udp_checksumoffload: enable/disable checksum offload for P2P mode
- * @nan_tcp_udp_checksumoffload: enable/disable checksum offload for NAN mode
- * @tcp_udp_checksumoffload: enable/disable checksum offload
- * @nss_cfg: nss configuration
- * @rx_defrag_min_timeout: rx defrag minimum timeout
- * @wbm_release_ring: wbm release ring size
- * @tcl_cmd_credit_ring: tcl command/credit ring size
- * @tcl_status_ring: tcl status ring size
- * @reo_reinject_ring: reo reinject ring
- * @rx_release_ring: rx release ring size
- * @reo_exception_ring: reo exception ring size
- * @reo_cmd_ring: reo cmd ring size
- * @reo_status_ring: reo status ting size
- * @rxdma_refill_ring: rxdma refill ring size
- * @rxdma_refill_lt_disable: rxdma refill low threshold disable
- * @rxdma_err_dst_ring: rxdma error destination ring size
- * @raw_mode_war: enable/disable raw mode war
- * @enable_data_stall_detection: enable/disable specific data stall detection
- * @disable_intra_bss_fwd: flag to disable intra bss forwarding
- * @rxdma1_enable: flag to indicate if rxdma1 is enabled
- * @delay_mon_replenish: delay monitor buffer replenish
- * @tx_desc_limit_0: tx_desc limit for 5G H
- * @tx_desc_limit_1: tx_desc limit for 2G
- * @tx_desc_limit_2: tx_desc limit for 5G L
- * @tx_device_limit: tx device limit
- * @tx_sw_internode_queue: tx sw internode queue
- * @tx_comp_loop_pkt_limit: Max # of packets to be processed in 1 tx comp loop
- * @rx_reap_loop_pkt_limit: Max # of packets to be processed in 1 rx reap loop
- * @rx_hp_oos_update_limit: Max # of HP OOS (out of sync) updates
- * @rx_enable_eol_data_check: flag to enable check for more ring data at end of
- * dp_rx_process loop
- * @tx_comp_enable_eol_data_check: flag to enable/disable checking for more data
- * at end of tx_comp_handler loop.
- * @rx_sw_desc_weight: rx sw descriptor weight configuration
- * @is_rx_mon_protocol_flow_tag_enabled: flag to enable/disable RX protocol or
- * flow tagging in monitor/mon-lite mode
- * @is_rx_flow_tag_enabled: flag to enable/disable RX flow tagging using FSE
- * @is_rx_flow_search_table_per_pdev: flag to indicate if a per-SOC or per-pdev
- * table should be used
- * @rx_flow_search_table_size: indicates the number of flows in the flow search
- * table
- * @rx_flow_max_search: max skid length for each hash entry
- * @rx_toeplitz_hash_key: toeplitz key pointer used for hash computation over
- * 5 tuple flow entry
- * @pktlog_buffer_size: packet log buffer size
- * @is_rx_fisa_enabled: flag to enable/disable FISA Rx
- * @pext_stats_enabled: Flag to enable and disabled peer extended stats
- * @is_rx_buff_pool_enabled: flag to enable/disable emergency RX buffer
- * pool support
- * @is_rx_refill_buff_pool_enabled: flag to enable/disable RX refill buffer
- * pool support
- * @rx_pending_high_threshold: threshold of starting pkt drop
- * @rx_pending_low_threshold: threshold of stopping pkt drop
- * @is_swlm_enabled: flag to enable/disable SWLM
- * @tx_per_pkt_vdev_id_check: Enable tx perpkt vdev id check
- * @wow_check_rx_pending_enable: Enable RX frame pending check in WoW
- * @ipa_tx_ring_size: IPA tx ring size
- * @ipa_tx_comp_ring_size: IPA tx completion ring size
- * @ipa_tx_alt_ring_size: IPA tx alt ring size
- * @ipa_tx_alt_comp_ring_size: IPA tx alt completion ring size
- * @hw_cc_conv_enabled: cookie conversion enabled
- * @tcl_wbm_map_array: TCL-WBM map array
- * @pkt_capture_mode: Packet capture mode config
- * @rx_mon_buf_ring_size: Rx monitor buf ring size
- * @tx_mon_buf_ring_size: Tx monitor buf ring size
- * @tx_rings_grp_bitmap: bitmap of group intr contexts which have
- * non-zero tx ring mask
- * @mlo_chip_rx_ring_map: map of chip_id to rx ring map
- * @vdev_stats_hw_offload_config: HW vdev stats config
- * @vdev_stats_hw_offload_timer: HW vdev stats timer duration
- * @txmon_hw_support: TxMON HW support
- * @num_rxdma_status_rings_per_pdev: Num RXDMA status rings
- * @mpdu_retry_threshold_1: MPDU retry threshold 1 to increment tx bad count
- * @mpdu_retry_threshold_2: MPDU retry threshold 2 to increment tx bad count
- * napi_scale_factor: scaling factor to be used for napi polls
- * @notify_frame_support: flag indicating capability to mark notify frames
- * @is_handle_invalid_decap_type_disabled: flag to indicate if invalid decap type
- * handling is disabled
- */
- struct wlan_cfg_dp_soc_ctxt {
- int num_int_ctxts;
- int max_clients;
- int max_alloc_size;
- int per_pdev_tx_ring;
- int num_tx_comp_rings;
- int num_tcl_data_rings;
- int num_nss_tcl_data_rings;
- int per_pdev_rx_ring;
- int per_pdev_lmac_ring;
- int num_reo_dest_rings;
- int num_nss_reo_dest_rings;
- int num_tx_desc_pool;
- int num_tx_ext_desc_pool;
- int num_tx_desc;
- int min_tx_desc;
- int num_tx_ext_desc;
- int max_peer_id;
- int htt_packet_type;
- int int_batch_threshold_ppe2tcl;
- int int_timer_threshold_ppe2tcl;
- int int_batch_threshold_tx;
- int int_timer_threshold_tx;
- int int_batch_threshold_rx;
- int int_timer_threshold_rx;
- int int_batch_threshold_other;
- int int_timer_threshold_other;
- int int_timer_threshold_mon;
- int tx_ring_size;
- int time_control_bp;
- int tx_comp_ring_size;
- int tx_comp_ring_size_nss;
- uint8_t int_tx_ring_mask[WLAN_CFG_INT_NUM_CONTEXTS];
- uint8_t int_rx_ring_mask[WLAN_CFG_INT_NUM_CONTEXTS];
- uint8_t int_rx_mon_ring_mask[WLAN_CFG_INT_NUM_CONTEXTS];
- uint8_t int_tx_mon_ring_mask[WLAN_CFG_INT_NUM_CONTEXTS];
- uint8_t int_host2rxdma_mon_ring_mask[WLAN_CFG_INT_NUM_CONTEXTS];
- uint8_t int_rxdma2host_mon_ring_mask[WLAN_CFG_INT_NUM_CONTEXTS];
- uint8_t int_ce_ring_mask[WLAN_CFG_INT_NUM_CONTEXTS];
- uint8_t int_rx_err_ring_mask[WLAN_CFG_INT_NUM_CONTEXTS];
- uint8_t int_rx_wbm_rel_ring_mask[WLAN_CFG_INT_NUM_CONTEXTS];
- uint8_t int_reo_status_ring_mask[WLAN_CFG_INT_NUM_CONTEXTS];
- uint8_t int_rxdma2host_ring_mask[WLAN_CFG_INT_NUM_CONTEXTS];
- uint8_t int_host2rxdma_ring_mask[WLAN_CFG_INT_NUM_CONTEXTS];
- uint8_t int_rx_ring_near_full_irq_1_mask[WLAN_CFG_INT_NUM_CONTEXTS];
- uint8_t int_rx_ring_near_full_irq_2_mask[WLAN_CFG_INT_NUM_CONTEXTS];
- uint8_t int_tx_ring_near_full_irq_mask[WLAN_CFG_INT_NUM_CONTEXTS];
- uint8_t int_host2txmon_ring_mask[WLAN_CFG_INT_NUM_CONTEXTS];
- uint8_t int_ppeds_wbm_release_ring_mask[WLAN_CFG_INT_NUM_CONTEXTS];
- uint8_t int_ppe2tcl_ring_mask[WLAN_CFG_INT_NUM_CONTEXTS];
- uint8_t int_reo2ppe_ring_mask[WLAN_CFG_INT_NUM_CONTEXTS];
- uint8_t int_umac_reset_intr_mask[WLAN_CFG_INT_NUM_CONTEXTS];
- int hw_macid[MAX_PDEV_CNT];
- int hw_macid_pdev_id_map[MAX_NUM_LMAC_HW];
- int base_hw_macid;
- bool rx_hash;
- bool tso_enabled;
- bool lro_enabled;
- bool sg_enabled;
- bool gro_enabled;
- bool tc_based_dynamic_gro;
- uint32_t tc_ingress_prio;
- bool ipa_enabled;
- bool ol_tx_csum_enabled;
- bool ol_rx_csum_enabled;
- bool rawmode_enabled;
- bool peer_flow_ctrl_enabled;
- bool napi_enabled;
- bool p2p_tcp_udp_checksumoffload;
- bool nan_tcp_udp_checksumoffload;
- bool tcp_udp_checksumoffload;
- bool legacy_mode_checksumoffload_disable;
- bool defrag_timeout_check;
- int nss_cfg;
- uint32_t tx_flow_stop_queue_threshold;
- uint32_t tx_flow_start_queue_offset;
- int rx_defrag_min_timeout;
- int reo_dst_ring_size;
- int wbm_release_ring;
- int tcl_cmd_credit_ring;
- int tcl_status_ring;
- int reo_reinject_ring;
- int rx_release_ring;
- int reo_exception_ring;
- int reo_cmd_ring;
- int reo_status_ring;
- int rxdma_refill_ring;
- bool rxdma_refill_lt_disable;
- int rxdma_err_dst_ring;
- uint32_t per_pkt_trace;
- bool raw_mode_war;
- uint32_t enable_data_stall_detection;
- bool disable_intra_bss_fwd;
- bool rxdma1_enable;
- bool delay_mon_replenish;
- int max_ast_idx;
- int tx_desc_limit_0;
- int tx_desc_limit_1;
- int tx_desc_limit_2;
- int tx_device_limit;
- int tx_sw_internode_queue;
- int mon_drop_thresh;
- #ifdef WLAN_FEATURE_RX_SOFTIRQ_TIME_LIMIT
- uint32_t tx_comp_loop_pkt_limit;
- uint32_t rx_reap_loop_pkt_limit;
- uint32_t rx_hp_oos_update_limit;
- bool rx_enable_eol_data_check;
- bool tx_comp_enable_eol_data_check;
- #endif /* WLAN_FEATURE_RX_SOFTIRQ_TIME_LIMIT */
- int rx_sw_desc_weight;
- int rx_sw_desc_num;
- bool is_rx_mon_protocol_flow_tag_enabled;
- bool is_rx_flow_tag_enabled;
- bool is_rx_flow_search_table_per_pdev;
- uint16_t rx_flow_search_table_size;
- uint16_t rx_flow_max_search;
- uint8_t *rx_toeplitz_hash_key;
- uint8_t pktlog_buffer_size;
- uint8_t is_rx_fisa_enabled;
- bool is_rx_fisa_lru_del_enabled;
- bool is_tso_desc_attach_defer;
- uint32_t delayed_replenish_entries;
- uint32_t reo_rings_mapping;
- bool pext_stats_enabled;
- bool is_rx_buff_pool_enabled;
- bool is_rx_refill_buff_pool_enabled;
- uint32_t rx_pending_high_threshold;
- uint32_t rx_pending_low_threshold;
- bool is_poll_mode_enabled;
- uint8_t is_swlm_enabled;
- bool fst_in_cmem;
- bool tx_per_pkt_vdev_id_check;
- uint8_t radio0_rx_default_reo;
- uint8_t radio1_rx_default_reo;
- uint8_t radio2_rx_default_reo;
- bool wow_check_rx_pending_enable;
- bool jitter_stats_enabled;
- #ifdef IPA_OFFLOAD
- uint32_t ipa_tx_ring_size;
- uint32_t ipa_tx_comp_ring_size;
- #ifdef IPA_WDI3_TX_TWO_PIPES
- int ipa_tx_alt_ring_size;
- int ipa_tx_alt_comp_ring_size;
- #endif /* IPA_WDI3_TX_TWO_PIPES */
- #endif /* IPA_OFFLOAD */
- bool hw_cc_enabled;
- struct wlan_cfg_tcl_wbm_ring_num_map *tcl_wbm_map_array;
- #ifdef WLAN_SUPPORT_PPEDS
- bool ppe_enable;
- int reo2ppe_ring;
- int ppe2tcl_ring;
- int ppe_release_ring;
- int ppe_wbm_release_ring;
- int ppe_num_tx_desc;
- int ppe_tx_comp_napi_budget;
- #endif
- #ifdef WLAN_FEATURE_PKT_CAPTURE_V2
- uint32_t pkt_capture_mode;
- #endif
- uint32_t rx_mon_buf_ring_size;
- uint32_t tx_mon_buf_ring_size;
- uint8_t rx_rel_wbm2sw_ring_id;
- uint32_t tx_rings_grp_bitmap;
- #if defined(WLAN_FEATURE_11BE_MLO) && defined(WLAN_MLO_MULTI_CHIP)
- uint8_t mlo_chip_rx_ring_map;
- #endif
- #ifdef QCA_VDEV_STATS_HW_OFFLOAD_SUPPORT
- bool vdev_stats_hw_offload_config;
- int vdev_stats_hw_offload_timer;
- #endif
- uint8_t num_rxdma_dst_rings_per_pdev;
- bool txmon_hw_support;
- bool txmon_sw_peer_filtering;
- uint8_t num_rxdma_status_rings_per_pdev;
- #ifdef WLAN_TX_PKT_CAPTURE_ENH
- uint32_t tx_capt_max_mem_allowed;
- #endif
- #ifdef CONFIG_SAWF
- bool sawf_enabled;
- #endif
- #ifdef CONFIG_SAWF_STATS
- uint8_t sawf_stats;
- #endif
- uint8_t mpdu_retry_threshold_1;
- uint8_t mpdu_retry_threshold_2;
- uint8_t napi_scale_factor;
- uint8_t notify_frame_support;
- bool is_handle_invalid_decap_type_disabled;
- };
- /**
- * struct wlan_cfg_dp_pdev_ctxt - Configuration parameters for pdev (radio)
- * @rx_dma_buf_ring_size - Size of RxDMA buffer ring
- * @dma_mon_buf_ring_size - Size of RxDMA Monitor buffer ring
- * @dma_rx_mon_dest_ring_size - Size of RxDMA Monitor Destination ring
- * @dma_tx_mon_dest_ring_size - Size of Tx Monitor Destination ring
- * @dma_mon_status_ring_size - Size of RxDMA Monitor Status ring
- * @rxdma_monitor_desc_ring - rxdma monitor desc ring size
- * @dma_tx_mon_buf_ring_size - Tx monitor BUF Ring size
- */
- struct wlan_cfg_dp_pdev_ctxt {
- int rx_dma_buf_ring_size;
- int dma_mon_buf_ring_size;
- int dma_rx_mon_dest_ring_size;
- int dma_tx_mon_dest_ring_size;
- int dma_mon_status_ring_size;
- int rxdma_monitor_desc_ring;
- int num_mac_rings;
- int nss_enabled;
- int dma_tx_mon_buf_ring_size;
- };
- /**
- * struct wlan_dp_prealloc_cfg - DP prealloc related config
- * @num_tx_ring_entries: num of tcl data ring entries
- * @num_tx_comp_ring_entries: num of tx comp ring entries
- * @num_wbm_rel_ring_entries: num of wbm err ring entries
- * @num_rxdma_err_dst_ring_entries: num of rxdma err ring entries
- * @num_reo_exception_ring_entries: num of rx exception ring entries
- * @num_tx_desc: num of tx descriptors
- * @num_tx_ext_desc: num of tx ext descriptors
- * @num_reo_dst_ring_entries: Number of entries in REO destination ring
- * @num_rxdma_buf_ring_entries: Number of entries in rxdma buf ring
- * @num_rxdma_refill_ring_entries: Number of entries in rxdma refill ring
- * @num_reo_status_ring_entries: Number of entries in REO status ring
- * @num_mon_status_ring_entries: Number of entries in monitor status ring
- */
- struct wlan_dp_prealloc_cfg {
- int num_tx_ring_entries;
- int num_tx_comp_ring_entries;
- int num_wbm_rel_ring_entries;
- int num_rxdma_err_dst_ring_entries;
- int num_reo_exception_ring_entries;
- int num_tx_desc;
- int num_tx_ext_desc;
- int num_reo_dst_ring_entries;
- int num_rxdma_buf_ring_entries;
- int num_rxdma_refill_ring_entries;
- int num_reo_status_ring_entries;
- int num_mon_status_ring_entries;
- };
- /**
- * wlan_cfg_soc_attach() - Attach configuration interface for SoC
- * @ctrl_obj - PSOC object
- *
- * Allocates context for Soc configuration parameters,
- * Read configuration information from device tree/ini file and
- * returns back handle
- *
- * Return: Handle to configuration context
- */
- struct wlan_cfg_dp_soc_ctxt *
- wlan_cfg_soc_attach(struct cdp_ctrl_objmgr_psoc *ctrl_obj);
- /**
- * wlan_cfg_soc_detach() - Detach soc configuration handle
- * @wlan_cfg_ctx: soc configuration handle
- *
- * De-allocates memory allocated for SoC configuration
- *
- * Return:none
- */
- void wlan_cfg_soc_detach(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
- /**
- * wlan_cfg_pdev_attach() Attach configuration interface for pdev
- * @ctrl_obj - PSOC object
- *
- * Allocates context for pdev configuration parameters,
- * Read configuration information from device tree/ini file and
- * returns back handle
- *
- * Return: Handle to configuration context
- */
- struct wlan_cfg_dp_pdev_ctxt *
- wlan_cfg_pdev_attach(struct cdp_ctrl_objmgr_psoc *ctrl_obj);
- /**
- * wlan_cfg_pdev_detach() Detach and free pdev configuration handle
- * @wlan_cfg_pdev_ctx - PDEV Configuration Handle
- *
- * Return: void
- */
- void wlan_cfg_pdev_detach(struct wlan_cfg_dp_pdev_ctxt *wlan_cfg_pdev_ctx);
- void wlan_cfg_set_num_contexts(struct wlan_cfg_dp_soc_ctxt *cfg, int num);
- void wlan_cfg_set_tx_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg,
- int context, int mask);
- void wlan_cfg_set_rx_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg,
- int context, int mask);
- void wlan_cfg_set_rx_mon_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg,
- int context, int mask);
- void wlan_cfg_set_ce_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg,
- int context, int mask);
- void wlan_cfg_set_rxbuf_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg, int context,
- int mask);
- void wlan_cfg_set_max_peer_id(struct wlan_cfg_dp_soc_ctxt *cfg, uint32_t val);
- void wlan_cfg_set_max_ast_idx(struct wlan_cfg_dp_soc_ctxt *cfg, uint32_t val);
- int wlan_cfg_get_max_ast_idx(struct wlan_cfg_dp_soc_ctxt *cfg);
- int wlan_cfg_get_mon_drop_thresh(struct wlan_cfg_dp_soc_ctxt *cfg);
- int wlan_cfg_set_rx_err_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg,
- int context, int mask);
- int wlan_cfg_set_rx_wbm_rel_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg,
- int context, int mask);
- int wlan_cfg_set_reo_status_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg,
- int context, int mask);
- /**
- * wlan_cfg_set_mon_delayed_replenish_entries() - number of buffers to replenish
- * for monitor buffer ring at initialization
- * @wlan_cfg_ctx - Configuration Handle
- * @replenish_entries - number of entries to replenish at initialization
- *
- */
- void wlan_cfg_set_mon_delayed_replenish_entries(struct wlan_cfg_dp_soc_ctxt
- *wlan_cfg_ctx,
- uint32_t replenish_entries);
- /**
- * wlan_cfg_get_mon_delayed_replenish_entries() - get num of buffer to replenish
- * for monitor buffer ring at initialization
- * @wlan_cfg_ctx - Configuration Handle
- * @replenish_entries - number of entries to replenish at initialization
- *
- * Return: delayed_replenish_entries;
- */
- int wlan_cfg_get_mon_delayed_replenish_entries(struct wlan_cfg_dp_soc_ctxt
- *wlan_cfg_ctx);
- /**
- * wlan_cfg_get_num_contexts() - Number of interrupt contexts to be registered
- * @wlan_cfg_ctx - Configuration Handle
- *
- * For WIN, DP_NUM_INTERRUPT_CONTEXTS will be equal to number of CPU cores.
- * Each context (for linux it is a NAPI context) will have a tx_ring_mask,
- * rx_ring_mask ,and rx_monitor_ring mask to indicate the rings
- * that are processed by the handler.
- *
- * Return: num_contexts
- */
- int wlan_cfg_get_num_contexts(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
- /**
- * wlan_cfg_get_tx_ring_mask() - Return Tx interrupt mask mapped to an
- * interrupt context
- * @wlan_cfg_ctx - Configuration Handle
- * @context - Numerical ID identifying the Interrupt/NAPI context
- *
- * Return: int_tx_ring_mask[context]
- */
- int wlan_cfg_get_tx_ring_mask(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx,
- int context);
- /**
- * wlan_cfg_get_tcl_wbm_ring_num_for_index() - Get TCL/WBM ring number for index
- * @wlan_cfg_ctx - Configuration Handle
- * @index: index for which TCL/WBM ring numbers are needed
- * @tcl: pointer to TCL ring number, to be filled
- * @wbm: pointer to WBM ring number to be filled
- *
- * The function fills in tcl/wbm input pointers with TCL/WBM ring numbers for a
- * given index corresponding to soc->tcl_data_ring or soc->tx_comp_ring. This
- * is needed since WBM/TCL rings may not be sequentially available for HOST
- * to use. The function returns values as stored in tcl_wbm_map_array global
- * array.
- *
- * Return: None
- */
- static inline
- void wlan_cfg_get_tcl_wbm_ring_num_for_index(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx,
- int index, int *tcl, int *wbm)
- {
- *tcl = wlan_cfg_ctx->tcl_wbm_map_array[index].tcl_ring_num;
- *wbm = wlan_cfg_ctx->tcl_wbm_map_array[index].wbm_ring_num;
- }
- /**
- * wlan_cfg_get_wbm_ring_num_for_index() - Get WBM ring number for index
- * @wlan_cfg_ctx - Configuration Handle
- * @index: index for which WBM ring numbers is needed
- *
- * Return: WBM Ring number for the index
- */
- static inline
- int wlan_cfg_get_wbm_ring_num_for_index(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx,
- int index)
- {
- return wlan_cfg_ctx->tcl_wbm_map_array[index].wbm_ring_num;
- }
- /**
- * wlan_cfg_get_rbm_id_for_index() - Get WBM RBM ID for TX ring index
- * @wlan_cfg_ctx - Configuration Handle
- * @index: TCL index for which WBM rbm value is needed
- *
- * The function fills in wbm rbm value corresponding to a TX ring index in
- * soc->tcl_data_ring. This is needed since WBM ring numbers donot map
- * sequentially to wbm rbm values.
- * The function returns rbm id values as stored in tcl_wbm_map_array global
- * array.
- *
- * Return: WBM rbm value corresnponding to TX ring index
- */
- static inline
- int wlan_cfg_get_rbm_id_for_index(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx, int index)
- {
- return wlan_cfg_ctx->tcl_wbm_map_array[index].wbm_rbm_id;
- }
- /**
- * wlan_cfg_get_rx_ring_mask() - Return Rx interrupt mask mapped to an
- * interrupt context
- * @wlan_cfg_ctx - Configuration Handle
- * @context - Numerical ID identifying the Interrupt/NAPI context
- *
- * Return: int_rx_ring_mask[context]
- */
- int wlan_cfg_get_rx_ring_mask(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx,
- int context);
- /**
- * wlan_cfg_get_rx_mon_ring_mask() - Return Rx monitor ring interrupt mask
- * mapped to an interrupt context
- * @wlan_cfg_ctx - Configuration Handle
- * @context - Numerical ID identifying the Interrupt/NAPI context
- *
- * Return: int_rx_mon_ring_mask[context]
- */
- int wlan_cfg_get_rx_mon_ring_mask(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx,
- int context);
- /**
- * wlan_cfg_set_tx_mon_ring_mask() - Set Tx monitor ring interrupt mask
- * mapped to an interrupt context
- * @wlan_cfg_ctx - Configuration Handle
- * @context - Numerical ID identifying the Interrupt/NAPI context
- * @mask: Interrupt mask
- *
- * Return: None
- */
- void wlan_cfg_set_tx_mon_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg,
- int context, int mask);
- /**
- * wlan_cfg_get_tx_mon_ring_mask() - Return Tx monitor ring interrupt mask
- * mapped to an interrupt context
- * @wlan_cfg_ctx - Configuration Handle
- * @context - Numerical ID identifying the Interrupt/NAPI context
- *
- * Return: int_tx_mon_ring_mask[context]
- */
- int wlan_cfg_get_tx_mon_ring_mask(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx,
- int context);
- /**
- * wlan_cfg_set_rxdma2host_ring_mask() - Set rxdma2host ring interrupt mask
- * for the given interrupt context
- * @wlan_cfg_ctx - Configuration Handle
- * @context - Numerical ID identifying the Interrupt/NAPI context
- *
- */
- void wlan_cfg_set_rxdma2host_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg,
- int context, int mask);
- /**
- * wlan_cfg_get_rxdma2host_ring_mask() - Return rxdma2host ring interrupt mask
- * mapped to an interrupt context
- * @wlan_cfg_ctx - Configuration Handle
- * @context - Numerical ID identifying the Interrupt/NAPI context
- *
- * Return: int_rxdma2host_ring_mask[context]
- */
- int wlan_cfg_get_rxdma2host_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg,
- int context);
- /**
- * wlan_cfg_set_host2rxdma_ring_mask() - Set host2rxdma ring interrupt mask
- * for the given interrupt context
- * @wlan_cfg_ctx - Configuration Handle
- * @context - Numerical ID identifying the Interrupt/NAPI context
- *
- */
- void wlan_cfg_set_host2rxdma_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg,
- int context, int mask);
- /**
- * wlan_cfg_get_host2rxdma_ring_mask() - Return host2rxdma ring interrupt mask
- * mapped to an interrupt context
- * @wlan_cfg_ctx - Configuration Handle
- * @context - Numerical ID identifying the Interrupt/NAPI context
- *
- * Return: int_host2rxdma_ring_mask[context]
- */
- int wlan_cfg_get_host2rxdma_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg,
- int context);
- /**
- * wlan_cfg_get_rx_near_full_grp_1_mask() - Return REO near full interrupt mask
- * mapped to an interrupt context
- * @cfg: Configuration Handle
- * @context - Numerical ID identifying the Interrupt/NAPI context
- *
- * Return: REO near full interrupt mask[context]
- */
- int wlan_cfg_get_rx_near_full_grp_1_mask(struct wlan_cfg_dp_soc_ctxt *cfg,
- int context);
- /**
- * wlan_cfg_get_rx_near_full_grp_2_mask() - Return REO near full interrupt mask
- * mapped to an interrupt context
- * @cfg: Configuration Handle
- * @context - Numerical ID identifying the Interrupt/NAPI context
- *
- * Return: REO near full interrupt mask[context]
- */
- int wlan_cfg_get_rx_near_full_grp_2_mask(struct wlan_cfg_dp_soc_ctxt *cfg,
- int context);
- /**
- * wlan_cfg_get_tx_ring_near_full_mask() - Return tx completion ring near full
- * interrupt mask mapped to an interrupt context
- * @cfg: Configuration Handle
- * @context - Numerical ID identifying the Interrupt/NAPI context
- *
- * Return: tx completion near full interrupt mask[context]
- */
- int wlan_cfg_get_tx_ring_near_full_mask(struct wlan_cfg_dp_soc_ctxt *cfg,
- int context);
- /**
- * wlan_cfg_set_host2rxdma_mon_ring_mask() - Set host2rxdma monitor ring
- * interrupt mask for the given interrupt context
- * @wlan_cfg_ctx - Configuration Handle
- * @context - Numerical ID identifying the Interrupt/NAPI context
- *
- */
- void wlan_cfg_set_host2rxdma_mon_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg,
- int context, int mask);
- /**
- * wlan_cfg_get_host2rxdma_mon_ring_mask() - Return host2rxdma monitoe ring
- * interrupt mask mapped to an interrupt context
- * @wlan_cfg_ctx - Configuration Handle
- * @context - Numerical ID identifying the Interrupt/NAPI context
- *
- * Return: int_host2rxdma_mon_ring_mask[context]
- */
- int wlan_cfg_get_host2rxdma_mon_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg,
- int context);
- /**
- * wlan_cfg_set_rxdma2host_mon_ring_mask() - Set rxdma2host monitor
- * destination ring interrupt mask
- * for the given interrupt context
- * @wlan_cfg_ctx - Configuration Handle
- * @context - Numerical ID identifying the Interrupt/NAPI context
- *
- */
- void wlan_cfg_set_rxdma2host_mon_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg,
- int context, int mask);
- /**
- * wlan_cfg_get_rxdma2host_mon_ring_mask() - Return rxdma2host monitor
- * destination ring interrupt mask
- * mapped to an interrupt context
- * @wlan_cfg_ctx - Configuration Handle
- * @context - Numerical ID identifying the Interrupt/NAPI context
- *
- * Return: int_rxdma2host_mon_ring_mask[context]
- */
- int wlan_cfg_get_rxdma2host_mon_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg,
- int context);
- /**
- * wlan_cfg_set_hw_macidx() - Set HW MAC Idx for the given PDEV index
- *
- * @wlan_cfg_ctx - Configuration Handle
- * @pdev_idx - Index of SW PDEV
- * @hw_macid - HW MAC Id
- *
- */
- void wlan_cfg_set_hw_mac_idx
- (struct wlan_cfg_dp_soc_ctxt *cfg, int pdev_idx, int hw_macid);
- /**
- * wlan_cfg_get_hw_mac_idx() - Get 0 based HW MAC index for the given
- * PDEV index
- *
- * @wlan_cfg_ctx - Configuration Handle
- * @pdev_idx - Index of SW PDEV
- *
- * Return: HW MAC index
- */
- int wlan_cfg_get_hw_mac_idx(struct wlan_cfg_dp_soc_ctxt *cfg, int pdev_idx);
- /**
- * wlan_cfg_get_target_pdev_id() - Get target PDEV ID for HW MAC ID
- *
- * @wlan_cfg_ctx - Configuration Handle
- * @hw_macid - Index of hw mac
- *
- * Return: PDEV ID
- */
- int
- wlan_cfg_get_target_pdev_id(struct wlan_cfg_dp_soc_ctxt *cfg, int hw_macid);
- /**
- * wlan_cfg_set_pdev_idx() - Set 0 based host PDEV index for the given
- * hw mac index
- *
- * @wlan_cfg_ctx - Configuration Handle
- * @pdev_idx - Index of SW PDEV
- * @hw_macid - Index of hw mac
- *
- * Return: PDEV index
- */
- void wlan_cfg_set_pdev_idx
- (struct wlan_cfg_dp_soc_ctxt *cfg, int pdev_idx, int hw_macid);
- /**
- * wlan_cfg_get_pdev_idx() - Get 0 based PDEV index for the given
- * hw mac index
- *
- * @wlan_cfg_ctx - Configuration Handle
- * @hw_macid - Index of hw mac
- *
- * Return: PDEV index
- */
- int wlan_cfg_get_pdev_idx(struct wlan_cfg_dp_soc_ctxt *cfg, int hw_macid);
- /**
- * wlan_cfg_get_rx_err_ring_mask() - Return Rx monitor ring interrupt mask
- * mapped to an interrupt context
- * @wlan_cfg_ctx - Configuration Handle
- * @context - Numerical ID identifying the Interrupt/NAPI context
- *
- * Return: int_rx_err_ring_mask[context]
- */
- int wlan_cfg_get_rx_err_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg, int
- context);
- /**
- * wlan_cfg_get_rx_wbm_rel_ring_mask() - Return Rx monitor ring interrupt mask
- * mapped to an interrupt context
- * @wlan_cfg_ctx - Configuration Handle
- * @context - Numerical ID identifying the Interrupt/NAPI context
- *
- * Return: int_wbm_rel_ring_mask[context]
- */
- int wlan_cfg_get_rx_wbm_rel_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg, int
- context);
- /**
- * wlan_cfg_get_reo_status_ring_mask() - Return Rx monitor ring interrupt mask
- * mapped to an interrupt context
- * @wlan_cfg_ctx - Configuration Handle
- * @context - Numerical ID identifying the Interrupt/NAPI context
- *
- * Return: int_reo_status_ring_mask[context]
- */
- int wlan_cfg_get_reo_status_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg, int
- context);
- /**
- * wlan_cfg_get_ce_ring_mask() - Return CE ring interrupt mask
- * mapped to an interrupt context
- * @wlan_cfg_ctx - Configuration Handle
- * @context - Numerical ID identifying the Interrupt/NAPI context
- *
- * Return: int_ce_ring_mask[context]
- */
- int wlan_cfg_get_ce_ring_mask(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx,
- int context);
- /**
- * wlan_cfg_get_umac_reset_intr_mask() - Get UMAC reset interrupt mask
- * mapped to an interrupt context
- * @wlan_cfg_ctx - Configuration Handle
- * @context - Numerical ID identifying the Interrupt/NAPI context
- *
- * Return: int_umac_reset_intr_mask[context]
- */
- int wlan_cfg_get_umac_reset_intr_mask(struct wlan_cfg_dp_soc_ctxt *cfg,
- int context);
- /**
- * wlan_cfg_get_max_clients() - Return maximum number of peers/stations
- * supported by device
- * @wlan_cfg_ctx - Configuration Handle
- *
- * Return: max_clients
- */
- uint32_t wlan_cfg_get_max_clients(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
- /**
- * wlan_cfg_max_alloc_size() - Return Maximum allocation size for any dynamic
- * memory allocation request for this device
- * @wlan_cfg_ctx - Configuration Handle
- *
- * Return: max_alloc_size
- */
- uint32_t wlan_cfg_max_alloc_size(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
- /*
- * wlan_cfg_per_pdev_tx_ring() - Return true if Tx rings are mapped as
- * one per radio
- * @wlan_cfg_ctx - Configuration Handle
- *
- * Return: per_pdev_tx_ring
- */
- int wlan_cfg_per_pdev_tx_ring(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
- /*
- * wlan_cfg_num_tx_comp_rings() - Number of Tx comp rings (HOST mode)
- * @wlan_cfg_ctx
- *
- * Return: num_tx_comp_rings
- */
- int wlan_cfg_num_tx_comp_rings(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
- /*
- * wlan_cfg_num_tcl_data_rings() - Number of TCL Data rings (HOST mode)
- * @wlan_cfg_ctx
- *
- * Return: num_tcl_data_rings
- */
- int wlan_cfg_num_tcl_data_rings(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
- /*
- * wlan_cfg_num_nss_tcl_data_rings() - Number of TCL Data rings (NSS offload)
- * @wlan_cfg_ctx
- *
- * Return: num_tcl_data_rings
- */
- int wlan_cfg_num_nss_tcl_data_rings(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
- /*
- * wlan_cfg_per_pdev_rx_ring() - Return true if Rx rings are mapped as
- * one per radio
- * @wlan_cfg_ctx
- *
- * Return: per_pdev_rx_ring
- */
- int wlan_cfg_per_pdev_rx_ring(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
- /*
- * wlan_cfg_per_pdev_lmac_ring() - Return true if error rings are mapped as
- * one per radio
- * @wlan_cfg_ctx
- *
- * Return: return 1 if per pdev error ring else 0
- */
- int wlan_cfg_per_pdev_lmac_ring(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
- /*
- * wlan_cfg_num_reo_dest_rings() - Number of REO Data rings (HOST mode)
- * @wlan_cfg_ctx - Configuration Handle
- *
- * Return: num_reo_dest_rings
- */
- int wlan_cfg_num_reo_dest_rings(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
- /*
- * wlan_cfg_num_nss_reo_dest_rings() - Number of REO Data rings (NSS offload)
- * @wlan_cfg_ctx - Configuration Handle
- *
- * Return: num_reo_dest_rings
- */
- int wlan_cfg_num_nss_reo_dest_rings(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
- /*
- * wlan_cfg_pkt_type() - Default 802.11 encapsulation type
- * @wlan_cfg_ctx - Configuration Handle
- *
- * Return: htt_pkt_type_ethernet
- */
- int wlan_cfg_pkt_type(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
- /*
- * wlan_cfg_get_num_tx_desc_pool() - Number of Tx Descriptor pools for the
- * device
- * @wlan_cfg_ctx - Configuration Handle
- *
- * Return: num_tx_desc_pool
- */
- int wlan_cfg_get_num_tx_desc_pool(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
- /*
- * wlan_cfg_set_num_tx_desc_pool() - Set the number of Tx Descriptor pools for the
- * device
- * @wlan_cfg_ctx - Configuration Handle
- * @num_pool - Number of pool
- */
- void wlan_cfg_set_num_tx_desc_pool(struct wlan_cfg_dp_soc_ctxt *cfg, int num_pool);
- /*
- * wlan_cfg_get_num_tx_ext_desc_pool() - Number of Tx MSDU ext Descriptor
- * pools
- * @wlan_cfg_ctx - Configuration Handle
- *
- * Return: num_tx_ext_desc_pool
- */
- int wlan_cfg_get_num_tx_ext_desc_pool(
- struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
- /*
- * wlan_cfg_get_reo_dst_ring_size() - Get REO destination ring size
- *
- * @wlan_cfg_ctx - Configuration Handle
- *
- * Return: reo_dst_ring_size
- */
- int wlan_cfg_get_reo_dst_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg);
- /*
- * wlan_cfg_set_num_tx_desc_pool() - Set the REO Destination ring size
- *
- * @wlan_cfg_ctx - Configuration Handle
- * @reo_dst_ring_size - REO Destination ring size
- */
- void wlan_cfg_set_reo_dst_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg,
- int reo_dst_ring_size);
- /*
- * wlan_cfg_set_raw_mode_war() - Set raw mode war configuration
- *
- * @wlan_cfg_ctx - Configuration Handle
- * @raw_mode_war - raw mode war configuration
- */
- void wlan_cfg_set_raw_mode_war(struct wlan_cfg_dp_soc_ctxt *cfg,
- bool raw_mode_war);
- /*
- * wlan_cfg_get_raw_mode_war() - Get raw mode war configuration
- *
- * @wlan_cfg_ctx - Configuration Handle
- *
- * Return: reo_dst_ring_size
- */
- bool wlan_cfg_get_raw_mode_war(struct wlan_cfg_dp_soc_ctxt *cfg);
- /*
- * wlan_cfg_set_num_tx_ext_desc_pool() - Set the number of Tx MSDU ext Descriptor
- * pools
- * @wlan_cfg_ctx - Configuration Handle
- * @num_pool - Number of pool
- */
- void wlan_cfg_set_num_tx_ext_desc_pool(struct wlan_cfg_dp_soc_ctxt *cfg, int num_pool);
- /*
- * wlan_cfg_get_num_tx_desc() - Number of Tx Descriptors per pool
- * @wlan_cfg_ctx - Configuration Handle
- *
- * Return: num_tx_desc
- */
- int wlan_cfg_get_num_tx_desc(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
- /*
- * wlan_cfg_get_min_tx_desc() - Minimum number of Tx Descriptors per pool
- * @wlan_cfg_ctx - Configuration Handle
- *
- * Return: num_tx_desc
- */
- int wlan_cfg_get_min_tx_desc(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
- /*
- * wlan_cfg_set_num_tx_desc() - Set the number of Tx Descriptors per pool
- *
- * @wlan_cfg_ctx - Configuration Handle
- * @num_desc: Number of descriptor
- */
- void wlan_cfg_set_num_tx_desc(struct wlan_cfg_dp_soc_ctxt *cfg, int num_desc);
- /*
- * wlan_cfg_get_num_tx_ext_desc() - Number of Tx MSDU extension Descriptors
- * per pool
- * @wlan_cfg_ctx - Configuration Handle
- *
- * Return: num_tx_ext_desc
- */
- int wlan_cfg_get_num_tx_ext_desc(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
- /*
- * wlan_cfg_set_num_tx_ext_desc() - Set the number of Tx MSDU extension Descriptors
- * per pool
- * @wlan_cfg_ctx - Configuration Handle
- * @num_desc: Number of descriptor
- */
- void wlan_cfg_set_num_tx_ext_desc(struct wlan_cfg_dp_soc_ctxt *cfg, int num_ext_desc);
- /*
- * wlan_cfg_max_peer_id() - Get maximum peer ID
- * @cfg: Configuration Handle
- *
- * Return: maximum peer ID
- */
- uint32_t wlan_cfg_max_peer_id(struct wlan_cfg_dp_soc_ctxt *cfg);
- /*
- * wlan_cfg_get_dma_mon_buf_ring_size() - Return Size of monitor buffer ring
- * @wlan_cfg_pdev_ctx
- *
- * Return: dma_mon_buf_ring_size
- */
- int wlan_cfg_get_dma_mon_buf_ring_size(
- struct wlan_cfg_dp_pdev_ctxt *wlan_cfg_pdev_ctx);
- /*
- * wlan_cfg_get_dma_mon_stat_ring_size() - Return size of Monitor Status ring
- * @wlan_cfg_pdev_ctx
- *
- * Return: dma_mon_stat_ring_size
- */
- int wlan_cfg_get_dma_mon_stat_ring_size(
- struct wlan_cfg_dp_pdev_ctxt *wlan_cfg_pdev_ctx);
- /*
- * wlan_cfg_get_dma_mon_desc_ring_size - Get rxdma monitor size
- * @wlan_cfg_soc_ctx
- *
- * Return: rxdma monitor desc ring size
- */
- int
- wlan_cfg_get_dma_mon_desc_ring_size(struct wlan_cfg_dp_pdev_ctxt *cfg);
- /*
- * wlan_cfg_get_rx_dma_buf_ring_size() - Return Size of RxDMA buffer ring
- * @wlan_cfg_pdev_ctx
- *
- * Return: rx_dma_buf_ring_size
- */
- int wlan_cfg_get_rx_dma_buf_ring_size(
- struct wlan_cfg_dp_pdev_ctxt *wlan_cfg_pdev_ctx);
- /*
- * wlan_cfg_rx_pending_hl_threshold() - Return high threshold of rx pending
- * @wlan_cfg_pdev_ctx
- *
- * Return: rx_pending_high_threshold
- */
- uint32_t
- wlan_cfg_rx_pending_hl_threshold(struct wlan_cfg_dp_soc_ctxt *cfg);
- /*
- * wlan_cfg_rx_pending_lo_threshold() - Return low threshold of rx pending
- * @wlan_cfg_pdev_ctx
- *
- * Return: rx_pending_low_threshold
- */
- uint32_t
- wlan_cfg_rx_pending_lo_threshold(struct wlan_cfg_dp_soc_ctxt *cfg);
- /*
- * wlan_cfg_get_num_mac_rings() - Return the number of MAC RX DMA rings
- * per pdev
- * @wlan_cfg_pdev_ctx
- *
- * Return: number of mac DMA rings per pdev
- */
- int wlan_cfg_get_num_mac_rings(struct wlan_cfg_dp_pdev_ctxt *cfg);
- /*
- * wlan_cfg_is_lro_enabled - Return LRO enabled/disabled
- * @wlan_cfg_dp_soc_ctxt
- *
- * Return: true - LRO enabled false - LRO disabled
- */
- bool wlan_cfg_is_lro_enabled(struct wlan_cfg_dp_soc_ctxt *cfg);
- /*
- * wlan_cfg_is_gro_enabled - Return GRO enabled/disabled
- * @wlan_cfg_dp_soc_ctxt
- *
- * Return: true - GRO enabled false - GRO disabled
- */
- bool wlan_cfg_is_gro_enabled(struct wlan_cfg_dp_soc_ctxt *cfg);
- /*
- * wlan_cfg_is_rx_hash_enabled - Return RX hash enabled/disabled
- * @wlan_cfg_dp_soc_ctxt
- *
- * Return: true - enabled false - disabled
- */
- bool wlan_cfg_is_rx_hash_enabled(struct wlan_cfg_dp_soc_ctxt *cfg);
- /*
- * wlan_cfg_is_ipa_enabled - Return IPA enabled/disabled
- * @wlan_cfg_dp_soc_ctxt
- *
- * Return: true - enabled false - disabled
- */
- bool wlan_cfg_is_ipa_enabled(struct wlan_cfg_dp_soc_ctxt *cfg);
- /*
- * wlan_cfg_set_rx_hash - set rx hash enabled/disabled
- * @wlan_cfg_soc_ctx
- * @rx_hash
- */
- void wlan_cfg_set_rx_hash(struct wlan_cfg_dp_soc_ctxt *cfg, bool rx_hash);
- /*
- * wlan_cfg_get_dp_pdev_nss_enabled - Return pdev nss enabled/disabled
- * @wlan_cfg_pdev_ctx
- *
- * Return: 1 - enabled 0 - disabled
- */
- int wlan_cfg_get_dp_pdev_nss_enabled(struct wlan_cfg_dp_pdev_ctxt *cfg);
- /*
- * wlan_cfg_set_dp_pdev_nss_enabled - set pdev nss enabled/disabled
- * @wlan_cfg_pdev_ctx
- */
- void wlan_cfg_set_dp_pdev_nss_enabled(struct wlan_cfg_dp_pdev_ctxt *cfg, int nss_enabled);
- /*
- * wlan_cfg_get_dp_soc_nss_cfg - Return soc nss config
- * @wlan_cfg_pdev_ctx
- *
- * Return: nss_cfg
- */
- int wlan_cfg_get_dp_soc_nss_cfg(struct wlan_cfg_dp_soc_ctxt *cfg);
- /*
- * wlan_cfg_set_dp_soc_nss_cfg - set soc nss config
- * @wlan_cfg_pdev_ctx
- *
- */
- void wlan_cfg_set_dp_soc_nss_cfg(struct wlan_cfg_dp_soc_ctxt *cfg, int nss_cfg);
- /*
- * wlan_cfg_get_int_timer_threshold_ppe2tcl - Get intr mitigation for ppe2tcl
- * @wlan_cfg_soc_ctx
- *
- * Return: Timer threshold
- */
- int wlan_cfg_get_int_timer_threshold_ppe2tcl(struct wlan_cfg_dp_soc_ctxt *cfg);
- /*
- * wlan_cfg_get_int_batch_threshold_ppe2tcl - Get intr mitigation for ppe2tcl
- * @wlan_cfg_soc_ctx
- *
- * Return: Batch threshold
- */
- int wlan_cfg_get_int_batch_threshold_ppe2tcl(struct wlan_cfg_dp_soc_ctxt *cfg);
- /*
- * wlan_cfg_get_int_batch_threshold_tx - Get interrupt mitigation cfg for Tx
- * @wlan_cfg_soc_ctx
- *
- * Return: Batch threshold
- */
- int wlan_cfg_get_int_batch_threshold_tx(struct wlan_cfg_dp_soc_ctxt *cfg);
- /*
- * wlan_cfg_get_int_timer_threshold_tx - Get interrupt mitigation cfg for Tx
- * @wlan_cfg_soc_ctx
- *
- * Return: Timer threshold
- */
- int wlan_cfg_get_int_timer_threshold_tx(struct wlan_cfg_dp_soc_ctxt *cfg);
- /*
- * wlan_cfg_get_int_batch_threshold_rx - Get interrupt mitigation cfg for Rx
- * @wlan_cfg_soc_ctx
- *
- * Return: Batch threshold
- */
- int wlan_cfg_get_int_batch_threshold_rx(struct wlan_cfg_dp_soc_ctxt *cfg);
- /*
- * wlan_cfg_get_int_batch_threshold_rx - Get interrupt mitigation cfg for Rx
- * @wlan_cfg_soc_ctx
- *
- * Return: Timer threshold
- */
- int wlan_cfg_get_int_timer_threshold_rx(struct wlan_cfg_dp_soc_ctxt *cfg);
- /*
- * wlan_cfg_get_int_batch_threshold_tx - Get interrupt mitigation cfg for other srngs
- * @wlan_cfg_soc_ctx
- *
- * Return: Batch threshold
- */
- int wlan_cfg_get_int_batch_threshold_other(struct wlan_cfg_dp_soc_ctxt *cfg);
- /*
- * wlan_cfg_get_int_batch_threshold_tx - Get interrupt mitigation cfg for other srngs
- * @wlan_cfg_soc_ctx
- *
- * Return: Timer threshold
- */
- int wlan_cfg_get_int_timer_threshold_other(struct wlan_cfg_dp_soc_ctxt *cfg);
- /*
- * wlan_cfg_get_int_timer_threshold_mon - Get int mitigation cfg for mon srngs
- * @wlan_cfg_soc_ctx
- *
- * Return: Timer threshold
- */
- int wlan_cfg_get_int_timer_threshold_mon(struct wlan_cfg_dp_soc_ctxt *cfg);
- /*
- * wlan_cfg_get_checksum_offload - Get checksum offload enable or disable status
- * @wlan_cfg_soc_ctx
- *
- * Return: Checksum offload enable or disable
- */
- int wlan_cfg_get_checksum_offload(struct wlan_cfg_dp_soc_ctxt *cfg);
- /*
- * wlan_cfg_get_nan_checksum_offload - Get checksum offload enable/disable val
- * @wlan_cfg_soc_ctx
- *
- * Return: Checksum offload enable or disable value for NAN mode
- */
- int wlan_cfg_get_nan_checksum_offload(struct wlan_cfg_dp_soc_ctxt *cfg);
- /*
- * wlan_cfg_get_p2p_checksum_offload - Get checksum offload enable/disable val
- * @wlan_cfg_soc_ctx
- *
- * Return: Checksum offload enable or disable value for P2P mode
- */
- int wlan_cfg_get_p2p_checksum_offload(struct wlan_cfg_dp_soc_ctxt *cfg);
- /*
- * wlan_cfg_tx_ring_size - Get Tx DMA ring size (TCL Data Ring)
- * @wlan_cfg_soc_ctx
- *
- * Return: Tx Ring Size
- */
- int wlan_cfg_tx_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg);
- /*
- * wlan_cfg_time_control_bp - Get time for interval in bp prints
- * @wlan_cfg_soc_ctx
- *
- * Return: interval time
- */
- int wlan_cfg_time_control_bp(struct wlan_cfg_dp_soc_ctxt *cfg);
- /*
- * wlan_cfg_tx_comp_ring_size - Get Tx completion ring size (WBM Ring)
- * @wlan_cfg_soc_ctx
- *
- * Return: Tx Completion ring size
- */
- int wlan_cfg_tx_comp_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg);
- /*
- * wlan_cfg_get_dp_soc_wbm_release_ring_size - Get wbm_release_ring size
- * @wlan_cfg_soc_ctx
- *
- * Return: wbm_release_ring size
- */
- int
- wlan_cfg_get_dp_soc_wbm_release_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg);
- /*
- * wlan_cfg_get_dp_soc_tcl_cmd_credit_ring_size - Get command/credit ring size
- * @wlan_cfg_soc_ctx
- *
- * Return: tcl_cmd_credit_ring size
- */
- int
- wlan_cfg_get_dp_soc_tcl_cmd_credit_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg);
- /*
- * wlan_cfg_get_dp_soc_tcl_status_ring_size - Get tcl_status_ring size
- * @wlan_cfg_soc_ctx
- *
- * Return: tcl_status_ring size
- */
- int
- wlan_cfg_get_dp_soc_tcl_status_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg);
- /*
- * wlan_cfg_get_dp_soc_reo_reinject_ring_size - Get reo_reinject_ring size
- * @wlan_cfg_soc_ctx
- *
- * Return: reo_reinject_ring size
- */
- int
- wlan_cfg_get_dp_soc_reo_reinject_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg);
- /*
- * wlan_cfg_get_dp_soc_rx_release_ring_size - Get rx_release_ring size
- * @wlan_cfg_soc_ctx
- *
- * Return: rx_release_ring size
- */
- int
- wlan_cfg_get_dp_soc_rx_release_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg);
- /*
- * wlan_cfg_get_dp_soc_reo_exception_ring_size - Get reo_exception_ring size
- * @wlan_cfg_soc_ctx
- *
- * Return: reo_exception_ring size
- */
- int
- wlan_cfg_get_dp_soc_reo_exception_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg);
- /*
- * wlan_cfg_get_dp_soc_reo_cmd_ring_size - Get reo_cmd_ring size
- * @wlan_cfg_soc_ctx
- *
- * Return: reo_cmd_ring size
- */
- int
- wlan_cfg_get_dp_soc_reo_cmd_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg);
- /*
- * wlan_cfg_get_dp_soc_reo_status_ring_size - Get reo_status_ring size
- * @wlan_cfg_soc_ctx
- *
- * Return: reo_status_ring size
- */
- int
- wlan_cfg_get_dp_soc_reo_status_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg);
- /*
- * wlan_cfg_get_dp_soc_tx_desc_limit_0 - Get tx desc limit for 5G H
- * @wlan_cfg_soc_ctx
- *
- * Return: tx desc limit for 5G H
- */
- int
- wlan_cfg_get_dp_soc_tx_desc_limit_0(struct wlan_cfg_dp_soc_ctxt *cfg);
- /*
- * wlan_cfg_get_dp_soc_tx_desc_limit_1 - Get tx desc limit for 2G
- * @wlan_cfg_soc_ctx
- *
- * Return: tx desc limit for 2G
- */
- int
- wlan_cfg_get_dp_soc_tx_desc_limit_1(struct wlan_cfg_dp_soc_ctxt *cfg);
- /*
- * wlan_cfg_get_dp_soc_tx_desc_limit_2 - Get tx desc limit for 5G L
- * @wlan_cfg_soc_ctx
- *
- * Return: tx desc limit for 5G L
- */
- int
- wlan_cfg_get_dp_soc_tx_desc_limit_2(struct wlan_cfg_dp_soc_ctxt *cfg);
- /*
- * wlan_cfg_get_dp_soc_tx_device_limit - Get tx device limit
- * @wlan_cfg_soc_ctx
- *
- * Return: tx device limit
- */
- int
- wlan_cfg_get_dp_soc_tx_device_limit(struct wlan_cfg_dp_soc_ctxt *cfg);
- /*
- * wlan_cfg_get_dp_soc_tx_sw_internode_queue - Get tx sw internode queue
- * @wlan_cfg_soc_ctx
- *
- * Return: tx sw internode queue
- */
- int
- wlan_cfg_get_dp_soc_tx_sw_internode_queue(struct wlan_cfg_dp_soc_ctxt *cfg);
- /*
- * wlan_cfg_get_dp_soc_rxdma_refill_ring_size - Get rxdma refill ring size
- * @wlan_cfg_soc_ctx
- *
- * Return: rxdma refill ring size
- */
- int
- wlan_cfg_get_dp_soc_rxdma_refill_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg);
- /*
- * wlan_cfg_get_dp_soc_rxdma_refill_lt_disable - Get RxDMA refill LT status
- * @wlan_cfg_soc_ctx
- *
- * Return: true if Low threshold disable else false
- */
- bool
- wlan_cfg_get_dp_soc_rxdma_refill_lt_disable(struct wlan_cfg_dp_soc_ctxt *cfg);
- /*
- * wlan_cfg_get_dp_soc_rxdma_err_dst_ring_size - Get rxdma dst ring size
- * @wlan_cfg_soc_ctx
- *
- * Return: rxdma error dst ring size
- */
- int
- wlan_cfg_get_dp_soc_rxdma_err_dst_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg);
- /*
- * wlan_cfg_get_dp_soc_rx_sw_desc_weight - Get rx sw desc weight
- * @wlan_cfg_soc_ctx
- *
- * Return: rx_sw_desc_weight
- */
- int
- wlan_cfg_get_dp_soc_rx_sw_desc_weight(struct wlan_cfg_dp_soc_ctxt *cfg);
- /*
- * wlan_cfg_get_dp_soc_rx_sw_desc_num - Get rx sw desc num
- * @wlan_cfg_soc_ctx
- *
- * Return: rx_sw_desc_num
- */
- int
- wlan_cfg_get_dp_soc_rx_sw_desc_num(struct wlan_cfg_dp_soc_ctxt *cfg);
- /*
- * wlan_cfg_get_dp_caps - Get dp capabilities
- * @wlan_cfg_soc_ctx
- * @dp_caps: enum for dp capabilities
- *
- * Return: bool if a dp capabilities is enabled
- */
- bool
- wlan_cfg_get_dp_caps(struct wlan_cfg_dp_soc_ctxt *cfg,
- enum cdp_capabilities dp_caps);
- /**
- * wlan_set_srng_cfg() - Fill per ring specific
- * configuration parameters
- * @wlan_cfg: global srng configuration table
- *
- * Return: None
- */
- void wlan_set_srng_cfg(struct wlan_srng_cfg **wlan_cfg);
- #ifdef QCA_LL_TX_FLOW_CONTROL_V2
- int wlan_cfg_get_tx_flow_stop_queue_th(struct wlan_cfg_dp_soc_ctxt *cfg);
- int wlan_cfg_get_tx_flow_start_queue_offset(struct wlan_cfg_dp_soc_ctxt *cfg);
- #endif /* QCA_LL_TX_FLOW_CONTROL_V2 */
- int wlan_cfg_get_rx_defrag_min_timeout(struct wlan_cfg_dp_soc_ctxt *cfg);
- int wlan_cfg_get_defrag_timeout_check(struct wlan_cfg_dp_soc_ctxt *cfg);
- /**
- * wlan_cfg_get_rx_flow_search_table_size() - Return the size of Rx FST
- * in number of entries
- *
- * @wlan_cfg_dp_soc_ctxt: soc configuration context
- *
- * Return: rx_fst_size
- */
- uint16_t
- wlan_cfg_get_rx_flow_search_table_size(struct wlan_cfg_dp_soc_ctxt *cfg);
- /**
- * wlan_cfg_rx_fst_get_max_search() - Return the max skid length for FST search
- *
- * @wlan_cfg_dp_soc_ctxt: soc configuration context
- *
- * Return: max_search
- */
- uint8_t wlan_cfg_rx_fst_get_max_search(struct wlan_cfg_dp_soc_ctxt *cfg);
- /**
- * wlan_cfg_rx_fst_get_hash_key() - Return Toeplitz Hash Key used for FST
- * search
- *
- * @wlan_cfg_dp_soc_ctxt: soc configuration context
- *
- * Return: 320-bit Hash Key
- */
- uint8_t *wlan_cfg_rx_fst_get_hash_key(struct wlan_cfg_dp_soc_ctxt *cfg);
- /**
- * wlan_cfg_set_rx_flow_tag_enabled() - set rx flow tag enabled flag in
- * DP soc context
- * @wlan_cfg_dp_soc_ctxt: soc configuration context
- * @val: Rx flow tag feature flag value
- *
- * Return: None
- */
- void wlan_cfg_set_rx_flow_tag_enabled(struct wlan_cfg_dp_soc_ctxt *cfg,
- bool val);
- /**
- * wlan_cfg_is_rx_flow_tag_enabled() - get rx flow tag enabled flag from
- * DP soc context
- * @wlan_cfg_dp_soc_ctxt: soc configuration context
- *
- * Return: true if feature is enabled, else false
- */
- bool wlan_cfg_is_rx_flow_tag_enabled(struct wlan_cfg_dp_soc_ctxt *cfg);
- /**
- * wlan_cfg_set_rx_flow_search_table_per_pdev() - Set flag to indicate that
- * Rx FST is per pdev
- * @wlan_cfg_dp_soc_ctxt: soc configuration context
- * @val: boolean flag indicating Rx FST per pdev or per SOC
- *
- * Return: None
- */
- void
- wlan_cfg_set_rx_flow_search_table_per_pdev(struct wlan_cfg_dp_soc_ctxt *cfg,
- bool val);
- /**
- * wlan_cfg_is_rx_flow_search_table_per_pdev() - get RX FST flag for per pdev
- * @wlan_cfg_dp_soc_ctxt: soc configuration context
- *
- * Return: true if Rx FST is per pdev, else false
- */
- bool
- wlan_cfg_is_rx_flow_search_table_per_pdev(struct wlan_cfg_dp_soc_ctxt *cfg);
- /**
- * wlan_cfg_set_rx_flow_search_table_size() - set RX FST size in DP SoC context
- * @wlan_cfg_dp_soc_ctxt: soc configuration context
- * @val: Rx FST size in number of entries
- *
- * Return: None
- */
- void
- wlan_cfg_set_rx_flow_search_table_size(struct wlan_cfg_dp_soc_ctxt *cfg,
- uint16_t val);
- /**
- * wlan_cfg_set_rx_mon_protocol_flow_tag_enabled() - set mon rx tag enabled flag
- * in DP soc context
- * @wlan_cfg_dp_soc_ctxt: soc configuration context
- * @val: Rx protocol or flow tag feature flag value in monitor mode from INI
- *
- * Return: None
- */
- void
- wlan_cfg_set_rx_mon_protocol_flow_tag_enabled(struct wlan_cfg_dp_soc_ctxt *cfg,
- bool val);
- /**
- * wlan_cfg_is_rx_mon_protocol_flow_tag_enabled() - get mon rx tag enabled flag
- * from DP soc context
- * @wlan_cfg_dp_soc_ctxt: soc configuration context
- *
- * Return: true if feature is enabled in monitor mode for protocol or flow
- * tagging in INI, false otherwise
- */
- bool
- wlan_cfg_is_rx_mon_protocol_flow_tag_enabled(struct wlan_cfg_dp_soc_ctxt *cfg);
- /**
- * wlan_cfg_set_tx_per_pkt_vdev_id_check() - set flag to enable perpkt
- * vdev id check in tx.
- * @wlan_cfg_dp_soc_ctxt: soc configuration context
- * @val: feature flag value
- *
- * Return: None
- */
- void
- wlan_cfg_set_tx_per_pkt_vdev_id_check(struct wlan_cfg_dp_soc_ctxt *cfg,
- bool val);
- /**
- * wlan_cfg_is_tx_per_pkt_vdev_id_check_enabled() - get flag to check if
- * perpkt vdev id check is enabled in tx.
- * @wlan_cfg_dp_soc_ctxt: soc configuration context
- *
- * Return: true if feature is enabled, false otherwise
- */
- bool
- wlan_cfg_is_tx_per_pkt_vdev_id_check_enabled(struct wlan_cfg_dp_soc_ctxt *cfg);
- /**
- * wlan_cfg_fill_interrupt_mask() - set interrupt mask
- *
- * @wlan_cfg_dp_soc_ctxt: soc configuration context
- * @num_dp_msi: Number of DP interrupts available (0 for integrated)
- * @interrupt_mode: Type of interrupt
- * @is_monitor_mode: is monitor mode enabled
- *
- * Return: void
- */
- void wlan_cfg_fill_interrupt_mask(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx,
- int num_dp_msi, int interrupt_mode,
- bool is_monitor_mode);
- /**
- * wlan_cfg_is_rx_fisa_enabled() - Get Rx FISA enabled flag
- *
- *
- * @cfg: soc configuration context
- *
- * Return: true if enabled, false otherwise.
- */
- bool wlan_cfg_is_rx_fisa_enabled(struct wlan_cfg_dp_soc_ctxt *cfg);
- /**
- * wlan_cfg_is_rx_fisa_lru_del_enabled() - Get Rx FISA LRU del enabled flag
- *
- *
- * @cfg: soc configuration context
- *
- * Return: true if enabled, false otherwise.
- */
- bool wlan_cfg_is_rx_fisa_lru_del_enabled(struct wlan_cfg_dp_soc_ctxt *cfg);
- /**
- * wlan_cfg_is_rx_buffer_pool_enabled() - Get RX buffer pool enabled flag
- *
- *
- * @cfg: soc configuration context
- *
- * Return: true if enabled, false otherwise.
- */
- bool wlan_cfg_is_rx_buffer_pool_enabled(struct wlan_cfg_dp_soc_ctxt *cfg);
- /**
- * wlan_cfg_is_rx_refill_buffer_pool_enabled() - Get RX refill buffer pool enabled flag
- *
- *
- * @cfg: soc configuration context
- *
- * Return: true if enabled, false otherwise.
- */
- bool wlan_cfg_is_rx_refill_buffer_pool_enabled(struct wlan_cfg_dp_soc_ctxt *cfg);
- void wlan_cfg_set_tso_desc_attach_defer(struct wlan_cfg_dp_soc_ctxt *cfg,
- bool val);
- bool wlan_cfg_is_tso_desc_attach_defer(struct wlan_cfg_dp_soc_ctxt *cfg);
- /**
- * wlan_cfg_get_reo_rings_mapping() - Get Reo destination ring bitmap
- *
- *
- * @cfg: soc configuration context
- *
- * Return: reo ring bitmap.
- */
- uint32_t wlan_cfg_get_reo_rings_mapping(struct wlan_cfg_dp_soc_ctxt *cfg);
- /**
- * wlan_cfg_set_peer_ext_stats() - set peer extended stats
- *
- * @wlan_cfg_dp_soc_ctxt: soc configuration context
- * @val: Flag value read from INI
- *
- * Return: void
- */
- void
- wlan_cfg_set_peer_ext_stats(struct wlan_cfg_dp_soc_ctxt *cfg,
- bool val);
- /**
- * wlan_cfg_set_peer_jitter_stats() - set peer jitter stats
- *
- * @wlan_cfg_dp_soc_ctxt: soc configuration context
- * @val: Flag value read from INI
- *
- * Return: bool
- */
- void
- wlan_cfg_set_peer_jitter_stats(struct wlan_cfg_dp_soc_ctxt *cfg,
- bool val);
- /**
- * wlan_cfg_is_peer_ext_stats_enabled() - Check if peer extended
- * stats are enabled
- *
- * @wlan_cfg_dp_soc_ctxt: soc configuration context
- *
- * Return: bool
- */
- bool
- wlan_cfg_is_peer_ext_stats_enabled(struct wlan_cfg_dp_soc_ctxt *cfg);
- /**
- * wlan_cfg_is_peer_jitter_stats_enabled() - check if jitter stats are enabled
- *
- * @wlan_cfg_dp_soc_ctxt: soc configuration context
- *
- * Return: bool
- */
- bool
- wlan_cfg_is_peer_jitter_stats_enabled(struct wlan_cfg_dp_soc_ctxt *cfg);
- /**
- * wlan_cfg_is_poll_mode_enabled() - Check if poll mode is enabled
- *
- * @wlan_cfg_dp_soc_ctxt: soc configuration context
- *
- * Return: bool
- */
- bool wlan_cfg_is_poll_mode_enabled(struct wlan_cfg_dp_soc_ctxt *cfg);
- /**
- * wlan_cfg_is_fst_in_cmem_enabled() - Check if FST in CMEM is enabled
- * @cfg: soc configuration context
- *
- * Return: true if enabled, false otherwise.
- */
- bool wlan_cfg_is_fst_in_cmem_enabled(struct wlan_cfg_dp_soc_ctxt *cfg);
- /**
- * wlan_cfg_is_swlm_enabled() - Get SWLMenabled flag
- * @cfg: soc configuration context
- *
- * Return: true if enabled, false otherwise.
- */
- bool wlan_cfg_is_swlm_enabled(struct wlan_cfg_dp_soc_ctxt *cfg);
- #ifdef IPA_OFFLOAD
- /*
- * wlan_cfg_ipa_tx_ring_size - Get Tx DMA ring size (TCL Data Ring)
- * @wlan_cfg_soc_ctx: dp cfg context
- *
- * Return: IPA Tx Ring Size
- */
- uint32_t wlan_cfg_ipa_tx_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg);
- /*
- * wlan_cfg_ipa_tx_comp_ring_size - Get Tx completion ring size (WBM Ring)
- * @wlan_cfg_soc_ctx: dp cfg context
- *
- * Return: IPA Tx Completion ring size
- */
- uint32_t wlan_cfg_ipa_tx_comp_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg);
- /*
- * wlan_cfg_ipa_tx_alt_ring_size - Get Tx alt DMA ring size (TCL Data Ring)
- * @wlan_cfg_soc_ctx: dp cfg context
- *
- * Return: IPA Tx alt Ring Size
- */
- int wlan_cfg_ipa_tx_alt_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg);
- /*
- * wlan_cfg_ipa_tx_alt_comp_ring_size - Get Tx alt comp DMA ring size
- * (TCL Data Ring)
- * @wlan_cfg_soc_ctx: dp cfg context
- *
- * Return: IPA Tx alt comp Ring Size
- */
- int
- wlan_cfg_ipa_tx_alt_comp_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg);
- #else
- static inline
- uint32_t wlan_cfg_ipa_tx_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg)
- {
- return 0;
- }
- static inline
- uint32_t wlan_cfg_ipa_tx_comp_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg)
- {
- return 0;
- }
- #endif
- /**
- * wlan_cfg_radio0_default_reo_get - Get Radio0 default REO
- * @cfg: soc configuration context
- *
- * Return: None
- */
- uint8_t wlan_cfg_radio0_default_reo_get(struct wlan_cfg_dp_soc_ctxt *cfg);
- /**
- * wlan_cfg_radio1_default_reo_get - Get Radio1 default REO
- * @cfg: soc configuration context
- *
- * Return: None
- */
- uint8_t wlan_cfg_radio1_default_reo_get(struct wlan_cfg_dp_soc_ctxt *cfg);
- /**
- * wlan_cfg_radio2_default_reo_get() - Get Radio2 default REO
- * @cfg: soc configuration context
- *
- * Return: None
- */
- uint8_t wlan_cfg_radio2_default_reo_get(struct wlan_cfg_dp_soc_ctxt *cfg);
- /**
- * wlan_cfg_set_rxdma1_enable() - Enable rxdma1
- * @cfg: soc configuration context
- *
- * Return: None
- */
- void wlan_cfg_set_rxdma1_enable(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
- /**
- * wlan_cfg_is_delay_mon_replenish() - Get if delayed monitor replenish
- * is enabled
- * @cfg: soc configuration context
- *
- * Return: true if enabled, false otherwise.
- */
- bool
- wlan_cfg_is_delay_mon_replenish(struct wlan_cfg_dp_soc_ctxt *cfg);
- /**
- * wlan_cfg_set_delay_mon_replenish() - Set delayed monitor replenish
- * @cfg: soc configuration context
- * @val: val to set
- *
- * Return: None
- */
- void
- wlan_cfg_set_delay_mon_replenish(struct wlan_cfg_dp_soc_ctxt *cfg, bool val);
- /**
- * wlan_cfg_dp_soc_ctx_dump() - Dump few DP cfg soc parameters
- * @cfg: soc configuration context
- *
- * Return:
- */
- void wlan_cfg_dp_soc_ctx_dump(struct wlan_cfg_dp_soc_ctxt *cfg);
- #ifdef WLAN_SUPPORT_PPEDS
- /*
- * wlan_cfg_get_dp_soc_is_ppe_enabled() - API to get ppe enable flag
- * @wlan_cfg_ctx - Configuration Handle
- *
- * Return: true if ppe is enabled else return false
- */
- bool
- wlan_cfg_get_dp_soc_is_ppe_enabled(struct wlan_cfg_dp_soc_ctxt *cfg);
- /*
- * wlan_cfg_get_dp_soc_reo2ppe_ring_size() - get ppe rx ring size
- * @wlan_cfg_ctx - Configuration Handle
- *
- * Return: size of reo2ppe ring
- */
- int
- wlan_cfg_get_dp_soc_reo2ppe_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg);
- /*
- * wlan_cfg_get_dp_soc_ppe2tcl_ring_size() - get ppe tx ring size
- * @wlan_cfg_ctx - Configuration Handle
- *
- * Return: size of ppe2tcl ring
- */
- int
- wlan_cfg_get_dp_soc_ppe2tcl_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg);
- /*
- * wlan_cfg_get_dp_soc_ppe_release_ring_size() - get ppe tx comp ring size
- * @wlan_cfg_ctx - Configuration Handle
- *
- * Return: size of ppe release ring
- */
- int
- wlan_cfg_get_dp_soc_ppe_release_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg);
- /*
- * wlan_cfg_get_dp_soc_ppe_num_tx_desc() - Number of ppeds tx Descriptors
- * @wlan_cfg_ctx - Configuration Handle
- *
- * Return: num_tx_desc
- */
- int
- wlan_cfg_get_dp_soc_ppe_num_tx_desc(struct wlan_cfg_dp_soc_ctxt *cfg);
- /*
- * wlan_cfg_get_dp_soc_ppe_tx_comp_napi_budget() - ppeds Tx comp napi budget
- * @ctx - Configuration Handle
- *
- * Return: napi budget
- */
- int
- wlan_cfg_get_dp_soc_ppe_tx_comp_napi_budget(struct wlan_cfg_dp_soc_ctxt *cfg);
- #else
- static inline bool
- wlan_cfg_get_dp_soc_is_ppe_enabled(struct wlan_cfg_dp_soc_ctxt *cfg)
- {
- return false;
- }
- static inline int
- wlan_cfg_get_dp_soc_reo2ppe_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg)
- {
- return 0;
- }
- static inline int
- wlan_cfg_get_dp_soc_ppe2tcl_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg)
- {
- return 0;
- }
- static inline int
- wlan_cfg_get_dp_soc_ppe_release_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg)
- {
- return 0;
- }
- static inline int
- wlan_cfg_get_dp_soc_ppe_num_tx_desc(struct wlan_cfg_dp_soc_ctxt *cfg)
- {
- return 0;
- }
- static inline int
- wlan_cfg_get_dp_soc_ppe_tx_comp_napi_budget(struct wlan_cfg_dp_soc_ctxt *cfg)
- {
- return 0;
- }
- #endif
- /**
- * wlan_cfg_get_prealloc_cfg() - Get dp prealloc related cfg param
- * @ctrl_psoc - PSOC object
- * @cfg - cfg ctx where values will be populated
- *
- * Return: None
- */
- void
- wlan_cfg_get_prealloc_cfg(struct cdp_ctrl_objmgr_psoc *ctrl_psoc,
- struct wlan_dp_prealloc_cfg *cfg);
- #ifdef WLAN_FEATURE_PKT_CAPTURE_V2
- /**
- * wlan_cfg_get_pkt_capture_mode() - Get packet capture mode config
- * @cfg: config context
- *
- * Return: value of packet capture mode
- */
- uint32_t wlan_cfg_get_pkt_capture_mode(struct wlan_cfg_dp_soc_ctxt *cfg);
- #else
- static inline
- uint32_t wlan_cfg_get_pkt_capture_mode(struct wlan_cfg_dp_soc_ctxt *cfg)
- {
- return 0;
- }
- #endif
- /**
- * wlan_cfg_get_dp_soc_rx_mon_buf_ring_size() - Rx MON buf ring size
- * @cfg: Configuration Handle
- *
- * Return: Size of Rx MON buf ring size
- */
- uint32_t
- wlan_cfg_get_dp_soc_rx_mon_buf_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg);
- /**
- * wlan_cfg_get_dp_soc_tx_mon_buf_ring_size() - Tx MON buf ring size
- * @cfg: Configuration Handle
- *
- * Return: Size of Tx MON buf ring size
- */
- uint32_t
- wlan_cfg_get_dp_soc_tx_mon_buf_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg);
- /**
- * wlan_cfg_get_dma_rx_mon_dest_ring_size() - Rx MON dest ring size
- * @cfg: Configuration Handle
- *
- * Return: Size of Rx MON dest ring size
- */
- int wlan_cfg_get_dma_rx_mon_dest_ring_size(struct wlan_cfg_dp_pdev_ctxt *cfg);
- /**
- * wlan_cfg_get_dma_tx_mon_dest_ring_size() - Tx MON dest ring size
- * @cfg: Configuration Handle
- *
- * Return: Size of Tx MON dest ring size
- */
- int wlan_cfg_get_dma_tx_mon_dest_ring_size(struct wlan_cfg_dp_pdev_ctxt *cfg);
- /*
- * wlan_cfg_get_rx_rel_ring_id() - get wbm2sw ring id for Rx release ring
- * @wlan_cfg_ctx - Configuration Handle
- *
- * Return: wbm2sw ring id
- */
- uint8_t
- wlan_cfg_get_rx_rel_ring_id(struct wlan_cfg_dp_soc_ctxt *cfg);
- /**
- * wlan_cfg_set_rx_rel_ring_id() - set wbm2sw ring id for Rx release ring
- * @cfg: soc configuration context
- *
- * Return: None
- */
- void
- wlan_cfg_set_rx_rel_ring_id(struct wlan_cfg_dp_soc_ctxt *cfg,
- uint8_t wbm2sw_ring_id);
- /**
- * wlan_cfg_set_vdev_stats_hw_offload_config() - Set hw vdev stats offload
- * config
- * @cfg: config context
- * @value: value to be set
- *
- * Return: none
- */
- void
- wlan_cfg_set_vdev_stats_hw_offload_config(struct wlan_cfg_dp_soc_ctxt *cfg,
- bool value);
- /**
- * wlan_cfg_get_vdev_stats_hw_offload_config() - Get hw vdev stats offload
- * config
- * @cfg: config context
- *
- * Return: value of hw vdev stats config
- */
- bool
- wlan_cfg_get_vdev_stats_hw_offload_config(struct wlan_cfg_dp_soc_ctxt *cfg);
- /**
- * wlan_cfg_get_vdev_stats_hw_offload_timer()- Get hw vdev stats timer duration
- * @cfg: config context
- *
- * Return: value of hw vdev stats timer duration
- */
- int wlan_cfg_get_vdev_stats_hw_offload_timer(struct wlan_cfg_dp_soc_ctxt *cfg);
- /**
- * wlan_cfg_set_sawf_config() - Set SAWF config enable/disable
- * @cfg: config context
- * @value: value to be set
- *
- * Return: none
- */
- void
- wlan_cfg_set_sawf_config(struct wlan_cfg_dp_soc_ctxt *cfg, bool value);
- /**
- * wlan_cfg_get_sawf_config() - Get SAWF config enable/disable
- * @cfg: config context
- *
- * Return: true or false
- */
- bool
- wlan_cfg_get_sawf_config(struct wlan_cfg_dp_soc_ctxt *cfg);
- /**
- * wlan_cfg_set_sawf_stats_config() - Set SAWF stats config
- * @cfg: config context
- * @value: value to be set
- *
- * Return: void
- */
- void
- wlan_cfg_set_sawf_stats_config(struct wlan_cfg_dp_soc_ctxt *cfg, uint8_t value);
- /**
- * wlan_cfg_get_sawf_stats_config() - Get SAWF stats config
- * @cfg: config context
- *
- * Return: value for sawf_stats_config
- */
- uint8_t
- wlan_cfg_get_sawf_stats_config(struct wlan_cfg_dp_soc_ctxt *cfg);
- #if defined(WLAN_FEATURE_11BE_MLO) && defined(WLAN_MLO_MULTI_CHIP)
- /**
- * wlan_cfg_mlo_rx_ring_map_get() - get rx ring map
- * @cfg: soc configuration context
- *
- * Return: rx_ring_map
- */
- uint8_t
- wlan_cfg_mlo_rx_ring_map_get(struct wlan_cfg_dp_soc_ctxt *cfg);
- #endif
- /*
- * wlan_cfg_set_host2txmon_ring_mask() - Set host2txmon ring
- * interrupt mask mapped to an interrupt context
- * @wlan_cfg_ctx - Configuration Handle
- *
- * Return: None
- */
- void wlan_cfg_set_host2txmon_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg,
- int context, int mask);
- /**
- * wlan_cfg_get_host2txmon_ring_mask() - Return host2txmon ring
- * interrupt mask mapped to an interrupt context
- * @wlan_cfg_ctx - Configuration Handle
- * @context - Numerical ID identifying the Interrupt/NAPI context
- *
- * Return: int_host2txmon_ring_mask[context]
- */
- int wlan_cfg_get_host2txmon_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg,
- int context);
- /**
- * wlan_cfg_set_txmon_hw_support () - Set txmon hw support
- * @cfg: Configuration Handle
- * @txmon_hw_support: value to set
- *
- * Return: None
- */
- void wlan_cfg_set_txmon_hw_support(struct wlan_cfg_dp_soc_ctxt *cfg,
- bool txmon_hw_support);
- /**
- * wlan_cfg_get_txmon_hw_support () - Get txmon hw support
- * @cfg: Configuration Handle
- *
- * Return: txmon_hw_support
- */
- bool wlan_cfg_get_txmon_hw_support(struct wlan_cfg_dp_soc_ctxt *cfg);
- void wlan_cfg_set_txmon_sw_peer_filtering(struct wlan_cfg_dp_soc_ctxt *cfg,
- bool txmon_sw_peer_filtering);
- bool wlan_cfg_get_txmon_sw_peer_filtering(struct wlan_cfg_dp_soc_ctxt *cfg);
- #ifdef WLAN_TX_PKT_CAPTURE_ENH
- /*
- * wlan_cfg_get_tx_capt_max_mem - Get max memory allowed for TX capture feature
- * @wlan_cfg_soc_ctx
- *
- * Return: user given size in bytes
- */
- static inline int
- wlan_cfg_get_tx_capt_max_mem(struct wlan_cfg_dp_soc_ctxt *cfg)
- {
- return cfg->tx_capt_max_mem_allowed;
- }
- #endif /* WLAN_TX_PKT_CAPTURE_ENH */
- /**
- * wlan_cfg_get_napi_scale_factor() - Get napi scale factor
- *
- *
- * @cfg: soc configuration context
- *
- * Return: napi scale factor
- */
- uint8_t wlan_cfg_get_napi_scale_factor(struct wlan_cfg_dp_soc_ctxt *cfg);
- /**
- * wlan_cfg_soc_update_tgt_params() - Update band specific params
- * @wlan_cfg_ctx - SOC cfg context
- * @ctrl_obj - PSOC object
- *
- * Return: void
- */
- void
- wlan_cfg_soc_update_tgt_params(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx,
- struct cdp_ctrl_objmgr_psoc *ctrl_obj);
- #endif /*__WLAN_CFG_H*/
|