xref: /wlan-driver/qca-wifi-host-cmn/wlan_cfg/wlan_cfg.h (revision 5113495b16420b49004c444715d2daae2066e7dc)
1*5113495bSYour Name /*
2*5113495bSYour Name  * Copyright (c) 2013-2021 The Linux Foundation. All rights reserved.
3*5113495bSYour Name  * Copyright (c) 2021-2023 Qualcomm Innovation Center, Inc. All rights reserved.
4*5113495bSYour Name  *
5*5113495bSYour Name  * Permission to use, copy, modify, and/or distribute this software for
6*5113495bSYour Name  * any purpose with or without fee is hereby granted, provided that the
7*5113495bSYour Name  * above copyright notice and this permission notice appear in all
8*5113495bSYour Name  * copies.
9*5113495bSYour Name  *
10*5113495bSYour Name  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
11*5113495bSYour Name  * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
12*5113495bSYour Name  * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
13*5113495bSYour Name  * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
14*5113495bSYour Name  * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
15*5113495bSYour Name  * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
16*5113495bSYour Name  * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
17*5113495bSYour Name  * PERFORMANCE OF THIS SOFTWARE.
18*5113495bSYour Name  */
19*5113495bSYour Name 
20*5113495bSYour Name #ifndef __WLAN_CFG_H
21*5113495bSYour Name #define __WLAN_CFG_H
22*5113495bSYour Name 
23*5113495bSYour Name #include <wlan_init_cfg.h>
24*5113495bSYour Name 
25*5113495bSYour Name /* DP process status */
26*5113495bSYour Name #if defined(MAX_PDEV_CNT) && (MAX_PDEV_CNT == 1)
27*5113495bSYour Name #define CONFIG_PROCESS_RX_STATUS 1
28*5113495bSYour Name #define CONFIG_PROCESS_TX_STATUS 1
29*5113495bSYour Name #else
30*5113495bSYour Name #define CONFIG_PROCESS_RX_STATUS 0
31*5113495bSYour Name #define CONFIG_PROCESS_TX_STATUS 0
32*5113495bSYour Name #endif
33*5113495bSYour Name 
34*5113495bSYour Name /* Miscellaneous configuration */
35*5113495bSYour Name #define MAX_IDLE_SCATTER_BUFS 16
36*5113495bSYour Name #define DP_MAX_IRQ_PER_CONTEXT 12
37*5113495bSYour Name #define MAX_HTT_METADATA_LEN 32
38*5113495bSYour Name #define DP_MAX_TIDS 17
39*5113495bSYour Name #define DP_NON_QOS_TID 16
40*5113495bSYour Name #define DP_NULL_DATA_TID 17
41*5113495bSYour Name 
42*5113495bSYour Name #ifdef CONFIG_BERYLLIUM
43*5113495bSYour Name #define WLAN_CFG_RX_FST_MAX_SEARCH 16
44*5113495bSYour Name #else
45*5113495bSYour Name #define WLAN_CFG_RX_FST_MAX_SEARCH 2
46*5113495bSYour Name #endif
47*5113495bSYour Name #define WLAN_CFG_RX_FST_TOEPLITZ_KEYLEN 40
48*5113495bSYour Name 
49*5113495bSYour Name #define INVALID_PDEV_ID 0xFF
50*5113495bSYour Name 
51*5113495bSYour Name #define WLAN_CFG_RX_RING_MASK_0 0x1
52*5113495bSYour Name #define WLAN_CFG_RX_RING_MASK_1 0x2
53*5113495bSYour Name #define WLAN_CFG_RX_RING_MASK_2 0x4
54*5113495bSYour Name #define WLAN_CFG_RX_RING_MASK_3 0x8
55*5113495bSYour Name #define WLAN_CFG_RX_RING_MASK_4 0x10
56*5113495bSYour Name #define WLAN_CFG_RX_RING_MASK_5 0x20
57*5113495bSYour Name #define WLAN_CFG_RX_RING_MASK_6 0x40
58*5113495bSYour Name #define WLAN_CFG_RX_RING_MASK_7 0x80
59*5113495bSYour Name 
60*5113495bSYour Name #ifdef WLAN_FEATURE_NEAR_FULL_IRQ
61*5113495bSYour Name #ifdef IPA_OFFLOAD
62*5113495bSYour Name #define WLAN_CFG_RX_NEAR_FULL_IRQ_MASK_1 (WLAN_CFG_RX_RING_MASK_0 |	\
63*5113495bSYour Name 					  WLAN_CFG_RX_RING_MASK_1 |	\
64*5113495bSYour Name 					  WLAN_CFG_RX_RING_MASK_2)
65*5113495bSYour Name 
66*5113495bSYour Name #define WLAN_CFG_RX_NEAR_FULL_IRQ_MASK_2 (WLAN_CFG_RX_RING_MASK_4 |	\
67*5113495bSYour Name 					  WLAN_CFG_RX_RING_MASK_5 |	\
68*5113495bSYour Name 					  WLAN_CFG_RX_RING_MASK_6)
69*5113495bSYour Name 
70*5113495bSYour Name #define WLAN_CFG_TX_RING_NEAR_FULL_IRQ_MASK (WLAN_CFG_TX_RING_MASK_0 | \
71*5113495bSYour Name 					     WLAN_CFG_TX_RING_MASK_4 | \
72*5113495bSYour Name 					     WLAN_CFG_TX_RING_MASK_2)
73*5113495bSYour Name 
74*5113495bSYour Name #else
75*5113495bSYour Name #define WLAN_CFG_RX_NEAR_FULL_IRQ_MASK_1 (WLAN_CFG_RX_RING_MASK_0 |	\
76*5113495bSYour Name 					  WLAN_CFG_RX_RING_MASK_1 |	\
77*5113495bSYour Name 					  WLAN_CFG_RX_RING_MASK_2 |	\
78*5113495bSYour Name 					  WLAN_CFG_RX_RING_MASK_3)
79*5113495bSYour Name 
80*5113495bSYour Name #define WLAN_CFG_RX_NEAR_FULL_IRQ_MASK_2 (WLAN_CFG_RX_RING_MASK_4 |	\
81*5113495bSYour Name 					  WLAN_CFG_RX_RING_MASK_5 |	\
82*5113495bSYour Name 					  WLAN_CFG_RX_RING_MASK_6 |	\
83*5113495bSYour Name 					  WLAN_CFG_RX_RING_MASK_7)
84*5113495bSYour Name 
85*5113495bSYour Name #ifdef QCA_WIFI_KIWI_V2
86*5113495bSYour Name #define WLAN_CFG_TX_RING_NEAR_FULL_IRQ_MASK (WLAN_CFG_TX_RING_MASK_0 | \
87*5113495bSYour Name 					     WLAN_CFG_TX_RING_MASK_4 | \
88*5113495bSYour Name 					     WLAN_CFG_TX_RING_MASK_2 | \
89*5113495bSYour Name 					     WLAN_CFG_TX_RING_MASK_5 | \
90*5113495bSYour Name 					     WLAN_CFG_TX_RING_MASK_6)
91*5113495bSYour Name #else /* !QCA_WIFI_KIWI_V2 */
92*5113495bSYour Name #define WLAN_CFG_TX_RING_NEAR_FULL_IRQ_MASK (WLAN_CFG_TX_RING_MASK_0 | \
93*5113495bSYour Name 					     WLAN_CFG_TX_RING_MASK_4 | \
94*5113495bSYour Name 					     WLAN_CFG_TX_RING_MASK_2 | \
95*5113495bSYour Name 					     WLAN_CFG_TX_RING_MASK_6 | \
96*5113495bSYour Name 					     WLAN_CFG_TX_RING_MASK_7)
97*5113495bSYour Name #endif /* QCA_WIFI_KIWI_V2 */
98*5113495bSYour Name #endif
99*5113495bSYour Name #endif
100*5113495bSYour Name 
101*5113495bSYour Name /* Max number of chips that can participate in MLO */
102*5113495bSYour Name #if defined(WLAN_FEATURE_11BE_MLO) && defined(WLAN_MLO_MULTI_CHIP)
103*5113495bSYour Name #define WLAN_MAX_MLO_CHIPS 4
104*5113495bSYour Name #define WLAN_MAX_MLO_LINKS_PER_SOC 2
105*5113495bSYour Name #else
106*5113495bSYour Name #define WLAN_MAX_MLO_CHIPS 1
107*5113495bSYour Name #endif
108*5113495bSYour Name 
109*5113495bSYour Name #define UMAC_RESET_IPC 451
110*5113495bSYour Name 
111*5113495bSYour Name struct wlan_cfg_dp_pdev_ctxt;
112*5113495bSYour Name 
113*5113495bSYour Name /**
114*5113495bSYour Name  * struct wlan_cfg_tcl_wbm_ring_num_map - TCL WBM Ring number mapping
115*5113495bSYour Name  * @tcl_ring_num: TCL Ring number
116*5113495bSYour Name  * @wbm_ring_num: WBM Ring number
117*5113495bSYour Name  * @wbm_rbm_id: WBM RBM ID to be used when enqueuing to TCL
118*5113495bSYour Name  * @for_ipa: whether this TCL/WBM for IPA use or not
119*5113495bSYour Name  */
120*5113495bSYour Name struct wlan_cfg_tcl_wbm_ring_num_map {
121*5113495bSYour Name 	uint8_t tcl_ring_num;
122*5113495bSYour Name 	uint8_t wbm_ring_num;
123*5113495bSYour Name 	uint8_t wbm_rbm_id;
124*5113495bSYour Name 	uint8_t for_ipa;
125*5113495bSYour Name };
126*5113495bSYour Name 
127*5113495bSYour Name /**
128*5113495bSYour Name  * struct wlan_srng_cfg - Per ring configuration parameters
129*5113495bSYour Name  * @timer_threshold: Config to control interrupts based on timer duration
130*5113495bSYour Name  * @batch_count_threshold: Config to control interrupts based on
131*5113495bSYour Name  * number of packets in the ring
132*5113495bSYour Name  * @low_threshold: Config to control low threshold interrupts for SRC rings
133*5113495bSYour Name  */
134*5113495bSYour Name struct wlan_srng_cfg {
135*5113495bSYour Name 	uint32_t timer_threshold;
136*5113495bSYour Name 	uint32_t batch_count_threshold;
137*5113495bSYour Name 	uint32_t low_threshold;
138*5113495bSYour Name };
139*5113495bSYour Name 
140*5113495bSYour Name /**
141*5113495bSYour Name  * struct wlan_cfg_dp_soc_ctxt - Configuration parameters for SoC (core TxRx)
142*5113495bSYour Name  * @num_int_ctxts: Number of NAPI/Interrupt contexts to be registered for DP
143*5113495bSYour Name  * @max_clients: Maximum number of peers/stations supported by device
144*5113495bSYour Name  * @max_alloc_size: Maximum allocation size for any dynamic memory
145*5113495bSYour Name  *			allocation request for this device
146*5113495bSYour Name  * @per_pdev_tx_ring: 0: TCL ring is not mapped per radio
147*5113495bSYour Name  *		       1: Each TCL ring is mapped to one radio/pdev
148*5113495bSYour Name  * @num_tx_comp_rings: Number of Tx comp rings supported by device
149*5113495bSYour Name  * @num_tcl_data_rings: Number of TCL Data rings supported by device
150*5113495bSYour Name  * @num_nss_tcl_data_rings:
151*5113495bSYour Name  * @per_pdev_rx_ring: 0: REO ring is not mapped per radio
152*5113495bSYour Name  *		       1: Each REO ring is mapped to one radio/pdev
153*5113495bSYour Name  * @per_pdev_lmac_ring:
154*5113495bSYour Name  * @num_reo_dest_rings:
155*5113495bSYour Name  * @num_nss_reo_dest_rings:
156*5113495bSYour Name  * @num_tx_desc_pool: Number of Tx Descriptor pools
157*5113495bSYour Name  * @num_tx_ext_desc_pool: Number of Tx MSDU extension Descriptor pools
158*5113495bSYour Name  * @num_global_tx_desc: Number of Global Tx Descriptors allowed
159*5113495bSYour Name  * @num_global_spcl_tx_desc: Number of Global special Tx Descriptors allowed
160*5113495bSYour Name  * @num_tx_desc: Number of Tx Descriptors per pool
161*5113495bSYour Name  * @num_tx_spl_desc: Number of Tx Descriptors per pool to handle special frames
162*5113495bSYour Name  * @min_tx_desc: Minimum number of Tx Descriptors per pool
163*5113495bSYour Name  * @num_tx_ext_desc: Number of Tx MSDU extension Descriptors per pool
164*5113495bSYour Name  * @max_peer_id: Maximum value of peer id that FW can assign for a client
165*5113495bSYour Name  * @htt_packet_type: Default 802.11 encapsulation type for any VAP created
166*5113495bSYour Name  * @int_tx_ring_mask: Bitmap of Tx interrupts mapped to each NAPI/Intr context
167*5113495bSYour Name  * @int_rx_ring_mask: Bitmap of Rx interrupts mapped to each NAPI/Intr context
168*5113495bSYour Name  * @int_batch_threshold_ppe2tcl:
169*5113495bSYour Name  * @int_timer_threshold_ppe2tcl:
170*5113495bSYour Name  * @int_batch_threshold_tx:
171*5113495bSYour Name  * @int_timer_threshold_tx:
172*5113495bSYour Name  * @int_batch_threshold_rx:
173*5113495bSYour Name  * @int_timer_threshold_rx:
174*5113495bSYour Name  * @int_batch_threshold_other:
175*5113495bSYour Name  * @int_timer_threshold_other:
176*5113495bSYour Name  * @int_batch_threshold_mon_dest: Batch threshold counter for monitor dest
177*5113495bSYour Name  * @int_timer_threshold_mon_dest: Timer threshold counter for monitor dest
178*5113495bSYour Name  * @tx_ring_size:
179*5113495bSYour Name  * @time_control_bp:
180*5113495bSYour Name  * @rx_buffer_size: skb size
181*5113495bSYour Name  * @qref_control_size: list size for memory history arrays
182*5113495bSYour Name  * @tx_comp_ring_size:
183*5113495bSYour Name  * @tx_comp_ring_size_nss:
184*5113495bSYour Name  * @int_rx_mon_ring_mask: Bitmap of Rx monitor ring interrupts mapped to each
185*5113495bSYour Name  *			  NAPI/Intr context
186*5113495bSYour Name  * @int_tx_mon_ring_mask: Bitmap of Tx monitor ring interrupts mapped to each
187*5113495bSYour Name  *			  NAPI/Intr context
188*5113495bSYour Name  * @int_host2rxdma_mon_ring_mask:
189*5113495bSYour Name  * @int_rxdma2host_mon_ring_mask:
190*5113495bSYour Name  * @int_ce_ring_mask: Bitmap of CE interrupts mapped to each NAPI/Intr context
191*5113495bSYour Name  * @int_rx_err_ring_mask: Bitmap of Rx err ring interrupts mapped to each
192*5113495bSYour Name  *			  NAPI/Intr context
193*5113495bSYour Name  * @int_rx_wbm_rel_ring_mask: Bitmap of wbm rel ring interrupts mapped to each
194*5113495bSYour Name  *			      NAPI/Intr context
195*5113495bSYour Name  * @int_reo_status_ring_mask: Bitmap of reo status ring interrupts mapped to
196*5113495bSYour Name  *                            each NAPI/Intr context
197*5113495bSYour Name  * @int_rxdma2host_ring_mask:
198*5113495bSYour Name  * @int_host2rxdma_ring_mask:
199*5113495bSYour Name  * @int_rx_ring_near_full_irq_1_mask: Bitmap of REO DST ring near full interrupt
200*5113495bSYour Name  *				mapped to each NAPI/INTR context
201*5113495bSYour Name  * @int_rx_ring_near_full_irq_2_mask: Bitmap of REO DST ring near full interrupt
202*5113495bSYour Name  *				mapped to each NAPI/INTR context
203*5113495bSYour Name  * @int_tx_ring_near_full_irq_mask: Bitmap of Tx completion ring near full
204*5113495bSYour Name  *				interrupt mapped to each NAPI/INTR context
205*5113495bSYour Name  * @int_host2txmon_ring_mask: Bitmap of Tx monitor source ring interrupt
206*5113495bSYour Name  *				mapped to each NAPI/INTR context
207*5113495bSYour Name  * @int_ppeds_wbm_release_ring_mask:
208*5113495bSYour Name  * @int_ppe2tcl_ring_mask:
209*5113495bSYour Name  * @int_reo2ppe_ring_mask:
210*5113495bSYour Name  * @int_umac_reset_intr_mask: Bitmap of UMAC reset interrupt mapped to each
211*5113495bSYour Name  * NAPI/INTR context
212*5113495bSYour Name  * @hw_macid:
213*5113495bSYour Name  * @hw_macid_pdev_id_map:
214*5113495bSYour Name  * @base_hw_macid:
215*5113495bSYour Name  * @rx_hash: Enable hash based steering of rx packets
216*5113495bSYour Name  * @tso_enabled: enable/disable tso feature
217*5113495bSYour Name  * @lro_enabled: enable/disable LRO feature
218*5113495bSYour Name  * @sg_enabled: enable disable scatter gather feature
219*5113495bSYour Name  * @gro_enabled: enable disable GRO feature
220*5113495bSYour Name  * @tc_based_dynamic_gro: enable/disable tc based dynamic gro
221*5113495bSYour Name  * @tc_ingress_prio: ingress prio to be checked for dynamic gro
222*5113495bSYour Name  * @ipa_enabled: Flag indicating if IPA is enabled
223*5113495bSYour Name  * @ol_tx_csum_enabled: Flag indicating if TX csum is enabled
224*5113495bSYour Name  * @ol_rx_csum_enabled: Flag indicating if Rx csum is enabled
225*5113495bSYour Name  * @rawmode_enabled: Flag indicating if RAW mode is enabled
226*5113495bSYour Name  * @peer_flow_ctrl_enabled: Flag indicating if peer flow control is enabled
227*5113495bSYour Name  * @napi_enabled: enable/disable interrupt mode for reaping tx and rx packets
228*5113495bSYour Name  * @p2p_tcp_udp_checksumoffload: enable/disable checksum offload for P2P mode
229*5113495bSYour Name  * @nan_tcp_udp_checksumoffload: enable/disable checksum offload for NAN mode
230*5113495bSYour Name  * @tcp_udp_checksumoffload: enable/disable checksum offload
231*5113495bSYour Name  * @legacy_mode_checksumoffload_disable:
232*5113495bSYour Name  * @defrag_timeout_check:
233*5113495bSYour Name  * @nss_cfg: nss configuration
234*5113495bSYour Name  * @tx_flow_stop_queue_threshold:
235*5113495bSYour Name  * @tx_flow_start_queue_offset:
236*5113495bSYour Name  * @rx_defrag_min_timeout: rx defrag minimum timeout
237*5113495bSYour Name  * @reo_dst_ring_size:
238*5113495bSYour Name  * @wbm_release_ring: wbm release ring size
239*5113495bSYour Name  * @tcl_cmd_credit_ring: tcl command/credit ring size
240*5113495bSYour Name  * @tcl_status_ring: tcl status ring size
241*5113495bSYour Name  * @reo_reinject_ring: reo reinject ring
242*5113495bSYour Name  * @rx_release_ring: rx release ring size
243*5113495bSYour Name  * @reo_exception_ring: reo exception ring size
244*5113495bSYour Name  * @reo_cmd_ring: reo cmd ring size
245*5113495bSYour Name  * @reo_status_ring: reo status ting size
246*5113495bSYour Name  * @rxdma_refill_ring: rxdma refill ring size
247*5113495bSYour Name  * @rxdma_refill_lt_disable: rxdma refill low threshold disable
248*5113495bSYour Name  * @rxdma_err_dst_ring: rxdma error destination ring size
249*5113495bSYour Name  * @per_pkt_trace:
250*5113495bSYour Name  * @raw_mode_war: enable/disable raw mode war
251*5113495bSYour Name  * @enable_data_stall_detection: enable/disable specific data stall detection
252*5113495bSYour Name  * @disable_intra_bss_fwd: flag to disable intra bss forwarding
253*5113495bSYour Name  * @rxdma1_enable: flag to indicate if rxdma1 is enabled
254*5113495bSYour Name  * @delay_mon_replenish: delay monitor buffer replenish
255*5113495bSYour Name  * @max_ast_idx:
256*5113495bSYour Name  * @tx_desc_limit_0: tx_desc limit for 5 GHz High
257*5113495bSYour Name  * @tx_desc_limit_1: tx_desc limit for 2 GHz
258*5113495bSYour Name  * @tx_desc_limit_2: tx_desc limit for 5 GHz Low
259*5113495bSYour Name  * @tx_device_limit: tx device limit
260*5113495bSYour Name  * @tx_spl_device_limit: tx device limit for special frames
261*5113495bSYour Name  * @tx_sw_internode_queue: tx sw internode queue
262*5113495bSYour Name  * @mon_drop_thresh:
263*5113495bSYour Name  * @tx_comp_loop_pkt_limit: Max # of packets to be processed in 1 tx comp loop
264*5113495bSYour Name  * @rx_reap_loop_pkt_limit: Max # of packets to be processed in 1 rx reap loop
265*5113495bSYour Name  * @rx_hp_oos_update_limit: Max # of HP OOS (out of sync) updates
266*5113495bSYour Name  * @rx_enable_eol_data_check: flag to enable check for more ring data at end of
267*5113495bSYour Name  *                            dp_rx_process loop
268*5113495bSYour Name  * @tx_comp_enable_eol_data_check: flag to enable/disable checking for more data
269*5113495bSYour Name  *                                at end of tx_comp_handler loop.
270*5113495bSYour Name  * @rx_sw_desc_weight: rx sw descriptor weight configuration
271*5113495bSYour Name  * @rx_sw_desc_num:
272*5113495bSYour Name  * @is_rx_mon_protocol_flow_tag_enabled: flag to enable/disable RX protocol or
273*5113495bSYour Name  *                                       flow tagging in monitor/mon-lite mode
274*5113495bSYour Name  * @is_rx_flow_tag_enabled: flag to enable/disable RX flow tagging using FSE
275*5113495bSYour Name  * @is_rx_flow_search_table_per_pdev: flag to indicate if a per-SOC or per-pdev
276*5113495bSYour Name  *                                    table should be used
277*5113495bSYour Name  * @rx_flow_search_table_size: indicates the number of flows in the flow search
278*5113495bSYour Name  *                             table
279*5113495bSYour Name  * @rx_flow_max_search: max skid length for each hash entry
280*5113495bSYour Name  * @rx_toeplitz_hash_key: toeplitz key pointer used for hash computation over
281*5113495bSYour Name  *                        5 tuple flow entry
282*5113495bSYour Name  * @pktlog_buffer_size: packet log buffer size
283*5113495bSYour Name  * @is_rx_fisa_enabled: flag to enable/disable FISA Rx
284*5113495bSYour Name  * @is_rx_fisa_lru_del_enabled:
285*5113495bSYour Name  * @is_tso_desc_attach_defer:
286*5113495bSYour Name  * @delayed_replenish_entries:
287*5113495bSYour Name  * @reo_rings_mapping:
288*5113495bSYour Name  * @rx_rings_mapping: DP RX rings mapping mask
289*5113495bSYour Name  * @pext_stats_enabled: Flag to enable and disabled peer extended stats
290*5113495bSYour Name  * @is_rx_buff_pool_enabled: flag to enable/disable emergency RX buffer
291*5113495bSYour Name  *                           pool support
292*5113495bSYour Name  * @is_rx_refill_buff_pool_enabled: flag to enable/disable RX refill buffer
293*5113495bSYour Name  *                           pool support
294*5113495bSYour Name  * @enable_dp_buf_page_frag_alloc: Flag to control DP allocation from page frag
295*5113495bSYour Name  *				   cache.
296*5113495bSYour Name  * @rx_refill_buff_pool_size: RX refill buffer pool size
297*5113495bSYour Name  * @rx_pending_high_threshold: threshold of starting pkt drop
298*5113495bSYour Name  * @rx_pending_low_threshold: threshold of stopping pkt drop
299*5113495bSYour Name  * @is_poll_mode_enabled:
300*5113495bSYour Name  * @is_swlm_enabled: flag to enable/disable SWLM
301*5113495bSYour Name  * @fst_in_cmem:
302*5113495bSYour Name  * @tx_per_pkt_vdev_id_check: Enable tx perpkt vdev id check
303*5113495bSYour Name  * @radio0_rx_default_reo:
304*5113495bSYour Name  * @radio1_rx_default_reo:
305*5113495bSYour Name  * @radio2_rx_default_reo:
306*5113495bSYour Name  * @wow_check_rx_pending_enable: Enable RX frame pending check in WoW
307*5113495bSYour Name  * @jitter_stats_enabled: true if jitter stats are enabled
308*5113495bSYour Name  * @peer_link_stats_enabled: true if MLO Peer Link stats are enabled
309*5113495bSYour Name  * @ipa_tx_ring_size: IPA tx ring size
310*5113495bSYour Name  * @ipa_tx_comp_ring_size: IPA tx completion ring size
311*5113495bSYour Name  * @ipa_tx_alt_ring_size: IPA tx alt ring size
312*5113495bSYour Name  * @ipa_tx_alt_comp_ring_size: IPA tx alt completion ring size
313*5113495bSYour Name  * @hw_cc_enabled: cookie conversion enabled
314*5113495bSYour Name  * @tcl_wbm_map_array: TCL-WBM map array
315*5113495bSYour Name  * @ppeds_enable: Enable PPE Direct Switch feature
316*5113495bSYour Name  * @reo2ppe_ring: REO2PPE ring size
317*5113495bSYour Name  * @ppe2tcl_ring: PPE2TCL ring size
318*5113495bSYour Name  * @ppeds_num_tx_desc: Number of tx descs for PPE DS
319*5113495bSYour Name  * @ppeds_tx_comp_napi_budget: Napi budget for tx completions
320*5113495bSYour Name  * @ppeds_tx_desc_hotlist_len: PPE DS tx desc hotlist max length
321*5113495bSYour Name  * @pkt_capture_mode: Packet capture mode config
322*5113495bSYour Name  * @rx_mon_buf_ring_size: Rx monitor buf ring size
323*5113495bSYour Name  * @tx_mon_buf_ring_size: Tx monitor buf ring size
324*5113495bSYour Name  * @rx_rel_wbm2sw_ring_id: Rx WBM2SW ring id
325*5113495bSYour Name  * @tx_rings_grp_bitmap: bitmap of group intr contexts which have
326*5113495bSYour Name  *                       non-zero tx ring mask
327*5113495bSYour Name  * @mlo_chip_rx_ring_map: map of chip_id to rx ring map
328*5113495bSYour Name  * @vdev_stats_hw_offload_config: HW vdev stats config
329*5113495bSYour Name  * @vdev_stats_hw_offload_timer: HW vdev stats timer duration
330*5113495bSYour Name  * @num_rxdma_dst_rings_per_pdev: Number of Rx DMA rings per pdev
331*5113495bSYour Name  * @txmon_hw_support: TxMON HW support
332*5113495bSYour Name  * @txmon_sw_peer_filtering: TxMON sw peer filtering support
333*5113495bSYour Name  * @num_rxdma_status_rings_per_pdev: Num RXDMA status rings
334*5113495bSYour Name  * @tx_capt_max_mem_allowed: Max memory for Tx packet capture
335*5113495bSYour Name  * @tx_capt_rbm_id: Return Buffer Manager ID to be used for Tx packet capture
336*5113495bSYour Name  * @sawf_enabled:  Is SAWF enabled
337*5113495bSYour Name  * @sawf_stats: SAWF Statistics
338*5113495bSYour Name  * @mpdu_retry_threshold_1: MPDU retry threshold 1 to increment tx bad count
339*5113495bSYour Name  * @mpdu_retry_threshold_2: MPDU retry threshold 2 to increment tx bad count
340*5113495bSYour Name  * @napi_scale_factor: scaling factor to be used for napi polls
341*5113495bSYour Name  * @notify_frame_support: flag indicating capability to mark notify frames
342*5113495bSYour Name  * @is_handle_invalid_decap_type_disabled: flag to indicate if invalid decap
343*5113495bSYour Name  *                                         type handling is disabled
344*5113495bSYour Name  * @tx_pkt_inspect_for_ilp: flag to indicate if TX packet inspection for HW
345*5113495bSYour Name  *			    based ILP feature is enabled
346*5113495bSYour Name  * @pointer_timer_threshold_rx: RX REO2SW ring pointer update timer threshold
347*5113495bSYour Name  * @pointer_num_threshold_rx: RX REO2SW ring pointer update entries threshold
348*5113495bSYour Name  * @local_pkt_capture: flag indicating enable/disable of local packet capture
349*5113495bSYour Name  * @special_frame_msk: Special frame mask
350*5113495bSYour Name  * @rx_rr: rx round robin enable / disable
351*5113495bSYour Name  * @umac_reset_buffer_window: Buffer time to check if umac reset was in progress
352*5113495bSYour Name  *                            during this window, configured time is in
353*5113495bSYour Name  *                            milliseconds.
354*5113495bSYour Name  * @fw_ast_indication_disable: Disable AST
355*5113495bSYour Name  * @avg_rate_stats_filter_val: Average rate filter value for stats.
356*5113495bSYour Name  *
357*5113495bSYour Name  */
358*5113495bSYour Name struct wlan_cfg_dp_soc_ctxt {
359*5113495bSYour Name 	int num_int_ctxts;
360*5113495bSYour Name 	int max_clients;
361*5113495bSYour Name 	int max_alloc_size;
362*5113495bSYour Name 	int per_pdev_tx_ring;
363*5113495bSYour Name 	int num_tx_comp_rings;
364*5113495bSYour Name 	int num_tcl_data_rings;
365*5113495bSYour Name 	int num_nss_tcl_data_rings;
366*5113495bSYour Name 	int per_pdev_rx_ring;
367*5113495bSYour Name 	int per_pdev_lmac_ring;
368*5113495bSYour Name 	int num_reo_dest_rings;
369*5113495bSYour Name 	int num_nss_reo_dest_rings;
370*5113495bSYour Name 	int num_tx_desc_pool;
371*5113495bSYour Name 	int num_tx_ext_desc_pool;
372*5113495bSYour Name 	int num_global_tx_desc;
373*5113495bSYour Name 	int num_global_spcl_tx_desc;
374*5113495bSYour Name 	int num_tx_desc;
375*5113495bSYour Name 	int num_tx_spl_desc;
376*5113495bSYour Name 	int min_tx_desc;
377*5113495bSYour Name 	int num_tx_ext_desc;
378*5113495bSYour Name 	int max_peer_id;
379*5113495bSYour Name 	int htt_packet_type;
380*5113495bSYour Name 	int int_batch_threshold_ppe2tcl;
381*5113495bSYour Name 	int int_timer_threshold_ppe2tcl;
382*5113495bSYour Name 	int int_batch_threshold_tx;
383*5113495bSYour Name 	int int_timer_threshold_tx;
384*5113495bSYour Name 	int int_batch_threshold_rx;
385*5113495bSYour Name 	int int_timer_threshold_rx;
386*5113495bSYour Name 	int int_batch_threshold_other;
387*5113495bSYour Name 	int int_timer_threshold_other;
388*5113495bSYour Name 	int int_batch_threshold_mon_dest;
389*5113495bSYour Name 	int int_timer_threshold_mon_dest;
390*5113495bSYour Name 	int tx_ring_size;
391*5113495bSYour Name 	int time_control_bp;
392*5113495bSYour Name 	int rx_buffer_size;
393*5113495bSYour Name 	int qref_control_size;
394*5113495bSYour Name 	int tx_comp_ring_size;
395*5113495bSYour Name 	int tx_comp_ring_size_nss;
396*5113495bSYour Name 	uint8_t int_tx_ring_mask[WLAN_CFG_INT_NUM_CONTEXTS];
397*5113495bSYour Name 	uint8_t int_rx_ring_mask[WLAN_CFG_INT_NUM_CONTEXTS];
398*5113495bSYour Name 	uint8_t int_rx_mon_ring_mask[WLAN_CFG_INT_NUM_CONTEXTS];
399*5113495bSYour Name 	uint8_t int_tx_mon_ring_mask[WLAN_CFG_INT_NUM_CONTEXTS];
400*5113495bSYour Name 	uint8_t int_host2rxdma_mon_ring_mask[WLAN_CFG_INT_NUM_CONTEXTS];
401*5113495bSYour Name 	uint8_t int_rxdma2host_mon_ring_mask[WLAN_CFG_INT_NUM_CONTEXTS];
402*5113495bSYour Name 	uint8_t int_ce_ring_mask[WLAN_CFG_INT_NUM_CONTEXTS];
403*5113495bSYour Name 	uint8_t int_rx_err_ring_mask[WLAN_CFG_INT_NUM_CONTEXTS];
404*5113495bSYour Name 	uint8_t int_rx_wbm_rel_ring_mask[WLAN_CFG_INT_NUM_CONTEXTS];
405*5113495bSYour Name 	uint8_t int_reo_status_ring_mask[WLAN_CFG_INT_NUM_CONTEXTS];
406*5113495bSYour Name 	uint8_t int_rxdma2host_ring_mask[WLAN_CFG_INT_NUM_CONTEXTS];
407*5113495bSYour Name 	uint8_t int_host2rxdma_ring_mask[WLAN_CFG_INT_NUM_CONTEXTS];
408*5113495bSYour Name 	uint8_t int_rx_ring_near_full_irq_1_mask[WLAN_CFG_INT_NUM_CONTEXTS];
409*5113495bSYour Name 	uint8_t int_rx_ring_near_full_irq_2_mask[WLAN_CFG_INT_NUM_CONTEXTS];
410*5113495bSYour Name 	uint8_t int_tx_ring_near_full_irq_mask[WLAN_CFG_INT_NUM_CONTEXTS];
411*5113495bSYour Name 	uint8_t int_host2txmon_ring_mask[WLAN_CFG_INT_NUM_CONTEXTS];
412*5113495bSYour Name 	uint8_t int_ppeds_wbm_release_ring_mask[WLAN_CFG_INT_NUM_CONTEXTS];
413*5113495bSYour Name 	uint8_t int_ppe2tcl_ring_mask[WLAN_CFG_INT_NUM_CONTEXTS];
414*5113495bSYour Name 	uint8_t int_reo2ppe_ring_mask[WLAN_CFG_INT_NUM_CONTEXTS];
415*5113495bSYour Name 	uint8_t int_umac_reset_intr_mask[WLAN_CFG_INT_NUM_CONTEXTS];
416*5113495bSYour Name 	int hw_macid[MAX_PDEV_CNT];
417*5113495bSYour Name 	int hw_macid_pdev_id_map[MAX_NUM_LMAC_HW];
418*5113495bSYour Name 	int base_hw_macid;
419*5113495bSYour Name 	bool rx_hash;
420*5113495bSYour Name 	bool tso_enabled;
421*5113495bSYour Name 	bool lro_enabled;
422*5113495bSYour Name 	bool sg_enabled;
423*5113495bSYour Name 	bool gro_enabled;
424*5113495bSYour Name 	bool tc_based_dynamic_gro;
425*5113495bSYour Name 	uint32_t tc_ingress_prio;
426*5113495bSYour Name 	bool ipa_enabled;
427*5113495bSYour Name 	bool ol_tx_csum_enabled;
428*5113495bSYour Name 	bool ol_rx_csum_enabled;
429*5113495bSYour Name 	bool rawmode_enabled;
430*5113495bSYour Name 	bool peer_flow_ctrl_enabled;
431*5113495bSYour Name 	bool napi_enabled;
432*5113495bSYour Name 	bool p2p_tcp_udp_checksumoffload;
433*5113495bSYour Name 	bool nan_tcp_udp_checksumoffload;
434*5113495bSYour Name 	bool tcp_udp_checksumoffload;
435*5113495bSYour Name 	bool legacy_mode_checksumoffload_disable;
436*5113495bSYour Name 	bool defrag_timeout_check;
437*5113495bSYour Name 	int nss_cfg;
438*5113495bSYour Name 	uint32_t tx_flow_stop_queue_threshold;
439*5113495bSYour Name 	uint32_t tx_flow_start_queue_offset;
440*5113495bSYour Name 	int rx_defrag_min_timeout;
441*5113495bSYour Name 	int reo_dst_ring_size;
442*5113495bSYour Name 	int wbm_release_ring;
443*5113495bSYour Name 	int tcl_cmd_credit_ring;
444*5113495bSYour Name 	int tcl_status_ring;
445*5113495bSYour Name 	int reo_reinject_ring;
446*5113495bSYour Name 	int rx_release_ring;
447*5113495bSYour Name 	int reo_exception_ring;
448*5113495bSYour Name 	int reo_cmd_ring;
449*5113495bSYour Name 	int reo_status_ring;
450*5113495bSYour Name 	int rxdma_refill_ring;
451*5113495bSYour Name 	bool rxdma_refill_lt_disable;
452*5113495bSYour Name 	int rxdma_err_dst_ring;
453*5113495bSYour Name 	uint32_t per_pkt_trace;
454*5113495bSYour Name 	bool raw_mode_war;
455*5113495bSYour Name 	uint32_t enable_data_stall_detection;
456*5113495bSYour Name 	bool disable_intra_bss_fwd;
457*5113495bSYour Name 	bool rxdma1_enable;
458*5113495bSYour Name 	bool delay_mon_replenish;
459*5113495bSYour Name 	int max_ast_idx;
460*5113495bSYour Name 	int tx_desc_limit_0;
461*5113495bSYour Name 	int tx_desc_limit_1;
462*5113495bSYour Name 	int tx_desc_limit_2;
463*5113495bSYour Name 	int tx_device_limit;
464*5113495bSYour Name 	int tx_spl_device_limit;
465*5113495bSYour Name 	int tx_sw_internode_queue;
466*5113495bSYour Name 	int mon_drop_thresh;
467*5113495bSYour Name #ifdef WLAN_FEATURE_RX_SOFTIRQ_TIME_LIMIT
468*5113495bSYour Name 	uint32_t tx_comp_loop_pkt_limit;
469*5113495bSYour Name 	uint32_t rx_reap_loop_pkt_limit;
470*5113495bSYour Name 	uint32_t rx_hp_oos_update_limit;
471*5113495bSYour Name 	bool rx_enable_eol_data_check;
472*5113495bSYour Name 	bool tx_comp_enable_eol_data_check;
473*5113495bSYour Name #endif /* WLAN_FEATURE_RX_SOFTIRQ_TIME_LIMIT */
474*5113495bSYour Name 	int rx_sw_desc_weight;
475*5113495bSYour Name 	int rx_sw_desc_num;
476*5113495bSYour Name 	bool is_rx_mon_protocol_flow_tag_enabled;
477*5113495bSYour Name 	bool is_rx_flow_tag_enabled;
478*5113495bSYour Name 	bool is_rx_flow_search_table_per_pdev;
479*5113495bSYour Name 	uint16_t rx_flow_search_table_size;
480*5113495bSYour Name 	uint16_t rx_flow_max_search;
481*5113495bSYour Name 	uint8_t *rx_toeplitz_hash_key;
482*5113495bSYour Name 	uint8_t pktlog_buffer_size;
483*5113495bSYour Name 	bool is_tso_desc_attach_defer;
484*5113495bSYour Name 	uint32_t delayed_replenish_entries;
485*5113495bSYour Name 	uint32_t reo_rings_mapping;
486*5113495bSYour Name 	uint32_t rx_rings_mapping;
487*5113495bSYour Name 	bool pext_stats_enabled;
488*5113495bSYour Name 	bool is_rx_buff_pool_enabled;
489*5113495bSYour Name 	bool is_rx_refill_buff_pool_enabled;
490*5113495bSYour Name 	bool enable_dp_buf_page_frag_alloc;
491*5113495bSYour Name 	int rx_refill_buff_pool_size;
492*5113495bSYour Name 	uint32_t rx_pending_high_threshold;
493*5113495bSYour Name 	uint32_t rx_pending_low_threshold;
494*5113495bSYour Name 	bool is_poll_mode_enabled;
495*5113495bSYour Name 	uint8_t is_swlm_enabled;
496*5113495bSYour Name 	bool fst_in_cmem;
497*5113495bSYour Name 	bool tx_per_pkt_vdev_id_check;
498*5113495bSYour Name 	uint8_t radio0_rx_default_reo;
499*5113495bSYour Name 	uint8_t radio1_rx_default_reo;
500*5113495bSYour Name 	uint8_t radio2_rx_default_reo;
501*5113495bSYour Name 	bool wow_check_rx_pending_enable;
502*5113495bSYour Name 	bool jitter_stats_enabled;
503*5113495bSYour Name 	bool peer_link_stats_enabled;
504*5113495bSYour Name #ifdef IPA_OFFLOAD
505*5113495bSYour Name 	uint32_t ipa_tx_ring_size;
506*5113495bSYour Name 	uint32_t ipa_tx_comp_ring_size;
507*5113495bSYour Name #ifdef IPA_WDI3_TX_TWO_PIPES
508*5113495bSYour Name 	int ipa_tx_alt_ring_size;
509*5113495bSYour Name 	int ipa_tx_alt_comp_ring_size;
510*5113495bSYour Name #endif /* IPA_WDI3_TX_TWO_PIPES */
511*5113495bSYour Name #endif /* IPA_OFFLOAD */
512*5113495bSYour Name 	bool hw_cc_enabled;
513*5113495bSYour Name 	struct wlan_cfg_tcl_wbm_ring_num_map *tcl_wbm_map_array;
514*5113495bSYour Name #ifdef WLAN_SUPPORT_PPEDS
515*5113495bSYour Name 	bool ppeds_enable;
516*5113495bSYour Name 	int reo2ppe_ring;
517*5113495bSYour Name 	int ppe2tcl_ring;
518*5113495bSYour Name 	int ppeds_num_tx_desc;
519*5113495bSYour Name 	int ppeds_tx_comp_napi_budget;
520*5113495bSYour Name 	int ppeds_tx_desc_hotlist_len;
521*5113495bSYour Name #endif
522*5113495bSYour Name #ifdef WLAN_FEATURE_PKT_CAPTURE_V2
523*5113495bSYour Name 	uint32_t pkt_capture_mode;
524*5113495bSYour Name #endif
525*5113495bSYour Name 	uint32_t rx_mon_buf_ring_size;
526*5113495bSYour Name 	uint32_t tx_mon_buf_ring_size;
527*5113495bSYour Name 	uint8_t rx_rel_wbm2sw_ring_id;
528*5113495bSYour Name 	uint32_t tx_rings_grp_bitmap;
529*5113495bSYour Name #if defined(WLAN_FEATURE_11BE_MLO) && defined(WLAN_MLO_MULTI_CHIP)
530*5113495bSYour Name 	uint8_t mlo_chip_rx_ring_map;
531*5113495bSYour Name #endif
532*5113495bSYour Name #ifdef QCA_VDEV_STATS_HW_OFFLOAD_SUPPORT
533*5113495bSYour Name 	bool vdev_stats_hw_offload_config;
534*5113495bSYour Name 	int vdev_stats_hw_offload_timer;
535*5113495bSYour Name #endif
536*5113495bSYour Name 	uint8_t num_rxdma_dst_rings_per_pdev;
537*5113495bSYour Name 	bool txmon_hw_support;
538*5113495bSYour Name 	bool txmon_sw_peer_filtering;
539*5113495bSYour Name 	uint8_t num_rxdma_status_rings_per_pdev;
540*5113495bSYour Name #ifdef WLAN_TX_PKT_CAPTURE_ENH
541*5113495bSYour Name 	uint32_t tx_capt_max_mem_allowed;
542*5113495bSYour Name 	uint8_t tx_capt_rbm_id[MAX_PDEV_CNT];
543*5113495bSYour Name #endif
544*5113495bSYour Name #ifdef CONFIG_SAWF
545*5113495bSYour Name 	bool sawf_enabled;
546*5113495bSYour Name #endif
547*5113495bSYour Name #ifdef CONFIG_SAWF_STATS
548*5113495bSYour Name 	uint8_t sawf_stats;
549*5113495bSYour Name #endif
550*5113495bSYour Name 	uint8_t mpdu_retry_threshold_1;
551*5113495bSYour Name 	uint8_t mpdu_retry_threshold_2;
552*5113495bSYour Name 	uint8_t napi_scale_factor;
553*5113495bSYour Name 	uint8_t notify_frame_support;
554*5113495bSYour Name 	bool is_handle_invalid_decap_type_disabled;
555*5113495bSYour Name #ifdef DP_TX_PACKET_INSPECT_FOR_ILP
556*5113495bSYour Name 	bool tx_pkt_inspect_for_ilp;
557*5113495bSYour Name #endif
558*5113495bSYour Name 	uint16_t pointer_timer_threshold_rx;
559*5113495bSYour Name 	uint8_t pointer_num_threshold_rx;
560*5113495bSYour Name #ifdef WLAN_FEATURE_LOCAL_PKT_CAPTURE
561*5113495bSYour Name 	bool local_pkt_capture;
562*5113495bSYour Name #endif
563*5113495bSYour Name 	uint32_t special_frame_msk;
564*5113495bSYour Name #ifdef WLAN_SUPPORT_RX_FLOW_TAG
565*5113495bSYour Name 	bool rx_rr;
566*5113495bSYour Name #endif
567*5113495bSYour Name #ifdef DP_UMAC_HW_RESET_SUPPORT
568*5113495bSYour Name 	uint32_t umac_reset_buffer_window;
569*5113495bSYour Name #endif
570*5113495bSYour Name 	bool fw_ast_indication_disable;
571*5113495bSYour Name 	uint16_t avg_rate_stats_filter_val;
572*5113495bSYour Name };
573*5113495bSYour Name 
574*5113495bSYour Name /**
575*5113495bSYour Name  * struct wlan_cfg_dp_pdev_ctxt - Configuration parameters for pdev (radio)
576*5113495bSYour Name  * @rx_dma_buf_ring_size: Size of RxDMA buffer ring
577*5113495bSYour Name  * @dma_mon_buf_ring_size: Size of RxDMA Monitor buffer ring
578*5113495bSYour Name  * @dma_rx_mon_dest_ring_size: Size of RxDMA Monitor Destination ring
579*5113495bSYour Name  * @dma_tx_mon_dest_ring_size: Size of Tx Monitor Destination ring
580*5113495bSYour Name  * @dma_mon_status_ring_size: Size of RxDMA Monitor Status ring
581*5113495bSYour Name  * @rxdma_monitor_desc_ring: rxdma monitor desc ring size
582*5113495bSYour Name  * @num_mac_rings: Number of mac rings
583*5113495bSYour Name  * @nss_enabled: 1 - NSS enabled, 0 - NSS disabled
584*5113495bSYour Name  * @dma_tx_mon_buf_ring_size: Tx monitor BUF Ring size
585*5113495bSYour Name  * @sw2rxdma_link_ring_size: SW2RXDMA link ring size
586*5113495bSYour Name  */
587*5113495bSYour Name struct wlan_cfg_dp_pdev_ctxt {
588*5113495bSYour Name 	int rx_dma_buf_ring_size;
589*5113495bSYour Name 	int dma_mon_buf_ring_size;
590*5113495bSYour Name 	int dma_rx_mon_dest_ring_size;
591*5113495bSYour Name 	int dma_tx_mon_dest_ring_size;
592*5113495bSYour Name 	int dma_mon_status_ring_size;
593*5113495bSYour Name 	int rxdma_monitor_desc_ring;
594*5113495bSYour Name 	int num_mac_rings;
595*5113495bSYour Name 	int nss_enabled;
596*5113495bSYour Name 	int dma_tx_mon_buf_ring_size;
597*5113495bSYour Name 	int sw2rxdma_link_ring_size;
598*5113495bSYour Name };
599*5113495bSYour Name 
600*5113495bSYour Name /**
601*5113495bSYour Name  * struct wlan_dp_prealloc_cfg - DP prealloc related config
602*5113495bSYour Name  * @num_tx_ring_entries: num of tcl data ring entries
603*5113495bSYour Name  * @num_tx_comp_ring_entries: num of tx comp ring entries
604*5113495bSYour Name  * @num_wbm_rel_ring_entries: num of wbm err ring entries
605*5113495bSYour Name  * @num_rxdma_err_dst_ring_entries: num of rxdma err ring entries
606*5113495bSYour Name  * @num_reo_exception_ring_entries: num of rx exception ring entries
607*5113495bSYour Name  * @num_tx_desc: num of tx descriptors
608*5113495bSYour Name  * @num_tx_ext_desc: num of tx ext descriptors
609*5113495bSYour Name  * @num_rx_sw_desc: number of rx sw descriptors
610*5113495bSYour Name  * @num_reo_dst_ring_entries: Number of entries in REO destination ring
611*5113495bSYour Name  * @num_rxdma_buf_ring_entries: Number of entries in rxdma buf ring
612*5113495bSYour Name  * @num_rxdma_refill_ring_entries: Number of entries in rxdma refill ring
613*5113495bSYour Name  * @num_reo_status_ring_entries: Number of entries in REO status ring
614*5113495bSYour Name  * @num_mon_status_ring_entries: Number of entries in monitor status ring
615*5113495bSYour Name  * @num_tx_mon_buf_ring_entries: Number of entries in Tx monitor buf ring
616*5113495bSYour Name  * @num_tx_mon_dst_ring_entries: Number of entries in Tx monitor
617*5113495bSYour Name  *				 destination ring
618*5113495bSYour Name  */
619*5113495bSYour Name struct wlan_dp_prealloc_cfg {
620*5113495bSYour Name 	int num_tx_ring_entries;
621*5113495bSYour Name 	int num_tx_comp_ring_entries;
622*5113495bSYour Name 	int num_wbm_rel_ring_entries;
623*5113495bSYour Name 	int num_rxdma_err_dst_ring_entries;
624*5113495bSYour Name 	int num_reo_exception_ring_entries;
625*5113495bSYour Name 	int num_tx_desc;
626*5113495bSYour Name 	int num_tx_ext_desc;
627*5113495bSYour Name 	int num_rx_sw_desc;
628*5113495bSYour Name 	int num_reo_dst_ring_entries;
629*5113495bSYour Name 	int num_rxdma_buf_ring_entries;
630*5113495bSYour Name 	int num_rxdma_refill_ring_entries;
631*5113495bSYour Name 	int num_reo_status_ring_entries;
632*5113495bSYour Name 	int num_mon_status_ring_entries;
633*5113495bSYour Name 	int num_tx_mon_buf_ring_entries;
634*5113495bSYour Name 	int num_tx_mon_dst_ring_entries;
635*5113495bSYour Name };
636*5113495bSYour Name 
637*5113495bSYour Name /**
638*5113495bSYour Name  * wlan_cfg_soc_attach() - Attach configuration interface for SoC
639*5113495bSYour Name  * @psoc: PSOC object
640*5113495bSYour Name  *
641*5113495bSYour Name  * Allocates context for Soc configuration parameters,
642*5113495bSYour Name  * Read configuration information from device tree/ini file and
643*5113495bSYour Name  * returns back handle
644*5113495bSYour Name  *
645*5113495bSYour Name  * Return: Handle to configuration context
646*5113495bSYour Name  */
647*5113495bSYour Name struct wlan_cfg_dp_soc_ctxt *
648*5113495bSYour Name wlan_cfg_soc_attach(struct cdp_ctrl_objmgr_psoc *psoc);
649*5113495bSYour Name 
650*5113495bSYour Name /**
651*5113495bSYour Name  * wlan_cfg_soc_detach() - Detach soc configuration handle
652*5113495bSYour Name  * @wlan_cfg_ctx: soc configuration handle
653*5113495bSYour Name  *
654*5113495bSYour Name  * De-allocates memory allocated for SoC configuration
655*5113495bSYour Name  *
656*5113495bSYour Name  * Return:none
657*5113495bSYour Name  */
658*5113495bSYour Name void wlan_cfg_soc_detach(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
659*5113495bSYour Name 
660*5113495bSYour Name /**
661*5113495bSYour Name  * wlan_cfg_pdev_attach() - Attach configuration interface for pdev
662*5113495bSYour Name  * @ctrl_obj: PSOC object
663*5113495bSYour Name  *
664*5113495bSYour Name  * Allocates context for pdev configuration parameters,
665*5113495bSYour Name  * Read configuration information from device tree/ini file and
666*5113495bSYour Name  * returns back handle
667*5113495bSYour Name  *
668*5113495bSYour Name  * Return: Handle to configuration context
669*5113495bSYour Name  */
670*5113495bSYour Name struct wlan_cfg_dp_pdev_ctxt *
671*5113495bSYour Name wlan_cfg_pdev_attach(struct cdp_ctrl_objmgr_psoc *ctrl_obj);
672*5113495bSYour Name 
673*5113495bSYour Name /**
674*5113495bSYour Name  * wlan_cfg_pdev_detach() - Detach and free pdev configuration handle
675*5113495bSYour Name  * @wlan_cfg_pdev_ctx: PDEV Configuration Handle
676*5113495bSYour Name  *
677*5113495bSYour Name  * Return: void
678*5113495bSYour Name  */
679*5113495bSYour Name void wlan_cfg_pdev_detach(struct wlan_cfg_dp_pdev_ctxt *wlan_cfg_pdev_ctx);
680*5113495bSYour Name 
681*5113495bSYour Name void wlan_cfg_set_num_contexts(struct wlan_cfg_dp_soc_ctxt *cfg, int num);
682*5113495bSYour Name void wlan_cfg_set_tx_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg,
683*5113495bSYour Name 			       int context, int mask);
684*5113495bSYour Name void wlan_cfg_set_rx_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg,
685*5113495bSYour Name 			       int context, int mask);
686*5113495bSYour Name void wlan_cfg_set_rx_mon_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg,
687*5113495bSYour Name 				   int context, int mask);
688*5113495bSYour Name void wlan_cfg_set_ce_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg,
689*5113495bSYour Name 			       int context, int mask);
690*5113495bSYour Name void wlan_cfg_set_rxbuf_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg, int context,
691*5113495bSYour Name 				  int mask);
692*5113495bSYour Name void wlan_cfg_set_max_peer_id(struct wlan_cfg_dp_soc_ctxt *cfg, uint32_t val);
693*5113495bSYour Name void wlan_cfg_set_max_ast_idx(struct wlan_cfg_dp_soc_ctxt *cfg, uint32_t val);
694*5113495bSYour Name int wlan_cfg_get_max_ast_idx(struct wlan_cfg_dp_soc_ctxt *cfg);
695*5113495bSYour Name int wlan_cfg_get_mon_drop_thresh(struct wlan_cfg_dp_soc_ctxt *cfg);
696*5113495bSYour Name int wlan_cfg_set_rx_err_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg,
697*5113495bSYour Name 				int context, int mask);
698*5113495bSYour Name int wlan_cfg_set_rx_wbm_rel_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg,
699*5113495bSYour Name 					int context, int mask);
700*5113495bSYour Name int wlan_cfg_set_reo_status_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg,
701*5113495bSYour Name 					int context, int mask);
702*5113495bSYour Name 
703*5113495bSYour Name /**
704*5113495bSYour Name  * wlan_cfg_set_mon_delayed_replenish_entries() - number of buffers to replenish
705*5113495bSYour Name  *				for monitor buffer ring at initialization
706*5113495bSYour Name  * @wlan_cfg_ctx: Configuration Handle
707*5113495bSYour Name  * @replenish_entries: number of entries to replenish at initialization
708*5113495bSYour Name  *
709*5113495bSYour Name  */
710*5113495bSYour Name void wlan_cfg_set_mon_delayed_replenish_entries(struct wlan_cfg_dp_soc_ctxt
711*5113495bSYour Name 						*wlan_cfg_ctx,
712*5113495bSYour Name 						uint32_t replenish_entries);
713*5113495bSYour Name 
714*5113495bSYour Name /**
715*5113495bSYour Name  * wlan_cfg_get_mon_delayed_replenish_entries() - get num of buffer to replenish
716*5113495bSYour Name  *				for monitor buffer ring at initialization
717*5113495bSYour Name  * @wlan_cfg_ctx: Configuration Handle
718*5113495bSYour Name  *
719*5113495bSYour Name  * Return: delayed_replenish_entries;
720*5113495bSYour Name  */
721*5113495bSYour Name int wlan_cfg_get_mon_delayed_replenish_entries(struct wlan_cfg_dp_soc_ctxt
722*5113495bSYour Name 					       *wlan_cfg_ctx);
723*5113495bSYour Name /**
724*5113495bSYour Name  * wlan_cfg_get_num_contexts() - Number of interrupt contexts to be registered
725*5113495bSYour Name  * @wlan_cfg_ctx: Configuration Handle
726*5113495bSYour Name  *
727*5113495bSYour Name  * For WIN,  DP_NUM_INTERRUPT_CONTEXTS will be equal to  number of CPU cores.
728*5113495bSYour Name  * Each context (for linux it is a NAPI context) will have a tx_ring_mask,
729*5113495bSYour Name  * rx_ring_mask ,and rx_monitor_ring mask  to indicate the rings
730*5113495bSYour Name  * that are processed by the handler.
731*5113495bSYour Name  *
732*5113495bSYour Name  * Return: num_contexts
733*5113495bSYour Name  */
734*5113495bSYour Name int wlan_cfg_get_num_contexts(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
735*5113495bSYour Name 
736*5113495bSYour Name /**
737*5113495bSYour Name  * wlan_cfg_get_tx_ring_mask() - Return Tx interrupt mask mapped to an
738*5113495bSYour Name  *				 interrupt context
739*5113495bSYour Name  * @wlan_cfg_ctx: Configuration Handle
740*5113495bSYour Name  * @context: Numerical ID identifying the Interrupt/NAPI context
741*5113495bSYour Name  *
742*5113495bSYour Name  * Return: int_tx_ring_mask[context]
743*5113495bSYour Name  */
744*5113495bSYour Name int wlan_cfg_get_tx_ring_mask(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx,
745*5113495bSYour Name 		int context);
746*5113495bSYour Name 
747*5113495bSYour Name /**
748*5113495bSYour Name  * wlan_cfg_get_tcl_wbm_ring_num_for_index() - Get TCL/WBM ring number for index
749*5113495bSYour Name  * @wlan_cfg_ctx: Configuration Handle
750*5113495bSYour Name  * @index: index for which TCL/WBM ring numbers are needed
751*5113495bSYour Name  * @tcl: pointer to TCL ring number, to be filled
752*5113495bSYour Name  * @wbm: pointer to WBM ring number to be filled
753*5113495bSYour Name  *
754*5113495bSYour Name  * The function fills in tcl/wbm input pointers with TCL/WBM ring numbers for a
755*5113495bSYour Name  * given index corresponding to soc->tcl_data_ring or soc->tx_comp_ring. This
756*5113495bSYour Name  * is needed since WBM/TCL rings may not be sequentially available for HOST
757*5113495bSYour Name  * to use. The function returns values as stored in tcl_wbm_map_array global
758*5113495bSYour Name  * array.
759*5113495bSYour Name  *
760*5113495bSYour Name  * Return: None
761*5113495bSYour Name  */
762*5113495bSYour Name static inline
wlan_cfg_get_tcl_wbm_ring_num_for_index(struct wlan_cfg_dp_soc_ctxt * wlan_cfg_ctx,int index,int * tcl,int * wbm)763*5113495bSYour Name void wlan_cfg_get_tcl_wbm_ring_num_for_index(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx,
764*5113495bSYour Name 					     int index, int *tcl, int *wbm)
765*5113495bSYour Name {
766*5113495bSYour Name 	*tcl = wlan_cfg_ctx->tcl_wbm_map_array[index].tcl_ring_num;
767*5113495bSYour Name 	*wbm = wlan_cfg_ctx->tcl_wbm_map_array[index].wbm_ring_num;
768*5113495bSYour Name }
769*5113495bSYour Name 
770*5113495bSYour Name /**
771*5113495bSYour Name  * wlan_cfg_get_wbm_ring_num_for_index() - Get WBM ring number for index
772*5113495bSYour Name  * @wlan_cfg_ctx: Configuration Handle
773*5113495bSYour Name  * @index: index for which WBM ring numbers is needed
774*5113495bSYour Name  *
775*5113495bSYour Name  * Return: WBM Ring number for the index
776*5113495bSYour Name  */
777*5113495bSYour Name static inline
wlan_cfg_get_wbm_ring_num_for_index(struct wlan_cfg_dp_soc_ctxt * wlan_cfg_ctx,int index)778*5113495bSYour Name int wlan_cfg_get_wbm_ring_num_for_index(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx,
779*5113495bSYour Name 					int index)
780*5113495bSYour Name {
781*5113495bSYour Name 	return wlan_cfg_ctx->tcl_wbm_map_array[index].wbm_ring_num;
782*5113495bSYour Name }
783*5113495bSYour Name 
784*5113495bSYour Name /**
785*5113495bSYour Name  * wlan_cfg_get_rbm_id_for_index() - Get WBM RBM ID for TX ring index
786*5113495bSYour Name  * @wlan_cfg_ctx: Configuration Handle
787*5113495bSYour Name  * @index: TCL index for which WBM rbm value is needed
788*5113495bSYour Name  *
789*5113495bSYour Name  * The function fills in wbm rbm value corresponding to a TX ring index in
790*5113495bSYour Name  * soc->tcl_data_ring. This is needed since WBM ring numbers donot map
791*5113495bSYour Name  * sequentially to wbm rbm values.
792*5113495bSYour Name  * The function returns rbm id values as stored in tcl_wbm_map_array global
793*5113495bSYour Name  * array.
794*5113495bSYour Name  *
795*5113495bSYour Name  * Return: WBM rbm value corresnponding to TX ring index
796*5113495bSYour Name  */
797*5113495bSYour Name static inline
wlan_cfg_get_rbm_id_for_index(struct wlan_cfg_dp_soc_ctxt * wlan_cfg_ctx,int index)798*5113495bSYour Name int wlan_cfg_get_rbm_id_for_index(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx, int index)
799*5113495bSYour Name {
800*5113495bSYour Name 	return wlan_cfg_ctx->tcl_wbm_map_array[index].wbm_rbm_id;
801*5113495bSYour Name }
802*5113495bSYour Name 
803*5113495bSYour Name /**
804*5113495bSYour Name  * wlan_cfg_get_rx_ring_mask() - Return Rx interrupt mask mapped to an
805*5113495bSYour Name  *				 interrupt context
806*5113495bSYour Name  * @wlan_cfg_ctx: Configuration Handle
807*5113495bSYour Name  * @context: Numerical ID identifying the Interrupt/NAPI context
808*5113495bSYour Name  *
809*5113495bSYour Name  * Return: int_rx_ring_mask[context]
810*5113495bSYour Name  */
811*5113495bSYour Name int wlan_cfg_get_rx_ring_mask(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx,
812*5113495bSYour Name 		int context);
813*5113495bSYour Name 
814*5113495bSYour Name /**
815*5113495bSYour Name  * wlan_cfg_get_rx_mon_ring_mask() - Return Rx monitor ring interrupt mask
816*5113495bSYour Name  *				   mapped to an interrupt context
817*5113495bSYour Name  * @wlan_cfg_ctx: Configuration Handle
818*5113495bSYour Name  * @context: Numerical ID identifying the Interrupt/NAPI context
819*5113495bSYour Name  *
820*5113495bSYour Name  * Return: int_rx_mon_ring_mask[context]
821*5113495bSYour Name  */
822*5113495bSYour Name int wlan_cfg_get_rx_mon_ring_mask(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx,
823*5113495bSYour Name 		int context);
824*5113495bSYour Name 
825*5113495bSYour Name /**
826*5113495bSYour Name  * wlan_cfg_set_tx_mon_ring_mask() - Set Tx monitor ring interrupt mask
827*5113495bSYour Name  *				   mapped to an interrupt context
828*5113495bSYour Name  * @cfg: Configuration Handle
829*5113495bSYour Name  * @context: Numerical ID identifying the Interrupt/NAPI context
830*5113495bSYour Name  * @mask: Interrupt mask
831*5113495bSYour Name  *
832*5113495bSYour Name  * Return: None
833*5113495bSYour Name  */
834*5113495bSYour Name void wlan_cfg_set_tx_mon_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg,
835*5113495bSYour Name 				   int context, int mask);
836*5113495bSYour Name 
837*5113495bSYour Name /**
838*5113495bSYour Name  * wlan_cfg_get_tx_mon_ring_mask() - Return Tx monitor ring interrupt mask
839*5113495bSYour Name  *				   mapped to an interrupt context
840*5113495bSYour Name  * @wlan_cfg_ctx: Configuration Handle
841*5113495bSYour Name  * @context: Numerical ID identifying the Interrupt/NAPI context
842*5113495bSYour Name  *
843*5113495bSYour Name  * Return: int_tx_mon_ring_mask[context]
844*5113495bSYour Name  */
845*5113495bSYour Name int wlan_cfg_get_tx_mon_ring_mask(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx,
846*5113495bSYour Name 				  int context);
847*5113495bSYour Name 
848*5113495bSYour Name /**
849*5113495bSYour Name  * wlan_cfg_set_rxdma2host_ring_mask() - Set rxdma2host ring interrupt mask
850*5113495bSYour Name  *				   for the given interrupt context
851*5113495bSYour Name  * @cfg: Configuration Handle
852*5113495bSYour Name  * @context: Numerical ID identifying the Interrupt/NAPI context
853*5113495bSYour Name  * @mask: Interrupt mask
854*5113495bSYour Name  *
855*5113495bSYour Name  */
856*5113495bSYour Name void wlan_cfg_set_rxdma2host_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg,
857*5113495bSYour Name 				       int context, int mask);
858*5113495bSYour Name 
859*5113495bSYour Name /**
860*5113495bSYour Name  * wlan_cfg_get_rxdma2host_ring_mask() - Return rxdma2host ring interrupt mask
861*5113495bSYour Name  *				   mapped to an interrupt context
862*5113495bSYour Name  * @cfg: Configuration Handle
863*5113495bSYour Name  * @context: Numerical ID identifying the Interrupt/NAPI context
864*5113495bSYour Name  *
865*5113495bSYour Name  * Return: int_rxdma2host_ring_mask[context]
866*5113495bSYour Name  */
867*5113495bSYour Name int wlan_cfg_get_rxdma2host_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg,
868*5113495bSYour Name 				      int context);
869*5113495bSYour Name 
870*5113495bSYour Name /**
871*5113495bSYour Name  * wlan_cfg_set_host2rxdma_ring_mask() - Set host2rxdma ring interrupt mask
872*5113495bSYour Name  *				   for the given interrupt context
873*5113495bSYour Name  * @cfg: Configuration Handle
874*5113495bSYour Name  * @context: Numerical ID identifying the Interrupt/NAPI context
875*5113495bSYour Name  * @mask: Interrupt mask
876*5113495bSYour Name  *
877*5113495bSYour Name  */
878*5113495bSYour Name void wlan_cfg_set_host2rxdma_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg,
879*5113495bSYour Name 				       int context, int mask);
880*5113495bSYour Name 
881*5113495bSYour Name /**
882*5113495bSYour Name  * wlan_cfg_get_host2rxdma_ring_mask() - Return host2rxdma ring interrupt mask
883*5113495bSYour Name  *				   mapped to an interrupt context
884*5113495bSYour Name  * @cfg: Configuration Handle
885*5113495bSYour Name  * @context: Numerical ID identifying the Interrupt/NAPI context
886*5113495bSYour Name  *
887*5113495bSYour Name  * Return: int_host2rxdma_ring_mask[context]
888*5113495bSYour Name  */
889*5113495bSYour Name int wlan_cfg_get_host2rxdma_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg,
890*5113495bSYour Name 				      int context);
891*5113495bSYour Name 
892*5113495bSYour Name /**
893*5113495bSYour Name  * wlan_cfg_get_rx_near_full_grp_1_mask() - Return REO near full interrupt mask
894*5113495bSYour Name  *					mapped to an interrupt context
895*5113495bSYour Name  * @cfg: Configuration Handle
896*5113495bSYour Name  * @context: Numerical ID identifying the Interrupt/NAPI context
897*5113495bSYour Name  *
898*5113495bSYour Name  * Return: REO near full interrupt mask[context]
899*5113495bSYour Name  */
900*5113495bSYour Name int wlan_cfg_get_rx_near_full_grp_1_mask(struct wlan_cfg_dp_soc_ctxt *cfg,
901*5113495bSYour Name 					 int context);
902*5113495bSYour Name 
903*5113495bSYour Name /**
904*5113495bSYour Name  * wlan_cfg_get_rx_near_full_grp_2_mask() - Return REO near full interrupt mask
905*5113495bSYour Name  *					mapped to an interrupt context
906*5113495bSYour Name  * @cfg: Configuration Handle
907*5113495bSYour Name  * @context: Numerical ID identifying the Interrupt/NAPI context
908*5113495bSYour Name  *
909*5113495bSYour Name  * Return: REO near full interrupt mask[context]
910*5113495bSYour Name  */
911*5113495bSYour Name int wlan_cfg_get_rx_near_full_grp_2_mask(struct wlan_cfg_dp_soc_ctxt *cfg,
912*5113495bSYour Name 					 int context);
913*5113495bSYour Name 
914*5113495bSYour Name /**
915*5113495bSYour Name  * wlan_cfg_get_tx_ring_near_full_mask() - Return tx completion ring near full
916*5113495bSYour Name  *				interrupt mask mapped to an interrupt context
917*5113495bSYour Name  * @cfg: Configuration Handle
918*5113495bSYour Name  * @context: Numerical ID identifying the Interrupt/NAPI context
919*5113495bSYour Name  *
920*5113495bSYour Name  * Return: tx completion near full interrupt mask[context]
921*5113495bSYour Name  */
922*5113495bSYour Name int wlan_cfg_get_tx_ring_near_full_mask(struct wlan_cfg_dp_soc_ctxt *cfg,
923*5113495bSYour Name 					int context);
924*5113495bSYour Name /**
925*5113495bSYour Name  * wlan_cfg_set_host2rxdma_mon_ring_mask() - Set host2rxdma monitor ring
926*5113495bSYour Name  *                                interrupt mask for the given interrupt context
927*5113495bSYour Name  * @cfg: Configuration Handle
928*5113495bSYour Name  * @context: Numerical ID identifying the Interrupt/NAPI context
929*5113495bSYour Name  * @mask: Interrupt mask
930*5113495bSYour Name  *
931*5113495bSYour Name  */
932*5113495bSYour Name void wlan_cfg_set_host2rxdma_mon_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg,
933*5113495bSYour Name 					   int context, int mask);
934*5113495bSYour Name 
935*5113495bSYour Name /**
936*5113495bSYour Name  * wlan_cfg_get_host2rxdma_mon_ring_mask() - Return host2rxdma monitoe ring
937*5113495bSYour Name  *                               interrupt mask mapped to an interrupt context
938*5113495bSYour Name  * @cfg: Configuration Handle
939*5113495bSYour Name  * @context: Numerical ID identifying the Interrupt/NAPI context
940*5113495bSYour Name  *
941*5113495bSYour Name  * Return: int_host2rxdma_mon_ring_mask[context]
942*5113495bSYour Name  */
943*5113495bSYour Name int wlan_cfg_get_host2rxdma_mon_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg,
944*5113495bSYour Name 					  int context);
945*5113495bSYour Name 
946*5113495bSYour Name /**
947*5113495bSYour Name  * wlan_cfg_set_rxdma2host_mon_ring_mask() - Set rxdma2host monitor
948*5113495bSYour Name  *				   destination ring interrupt mask
949*5113495bSYour Name  *				   for the given interrupt context
950*5113495bSYour Name  * @cfg: Configuration Handle
951*5113495bSYour Name  * @context: Numerical ID identifying the Interrupt/NAPI context
952*5113495bSYour Name  * @mask: Interrupt mask
953*5113495bSYour Name  *
954*5113495bSYour Name  */
955*5113495bSYour Name void wlan_cfg_set_rxdma2host_mon_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg,
956*5113495bSYour Name 					   int context, int mask);
957*5113495bSYour Name 
958*5113495bSYour Name /**
959*5113495bSYour Name  * wlan_cfg_get_rxdma2host_mon_ring_mask() - Return rxdma2host monitor
960*5113495bSYour Name  *				   destination ring interrupt mask
961*5113495bSYour Name  *				   mapped to an interrupt context
962*5113495bSYour Name  * @cfg: Configuration Handle
963*5113495bSYour Name  * @context: Numerical ID identifying the Interrupt/NAPI context
964*5113495bSYour Name  *
965*5113495bSYour Name  * Return: int_rxdma2host_mon_ring_mask[context]
966*5113495bSYour Name  */
967*5113495bSYour Name int wlan_cfg_get_rxdma2host_mon_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg,
968*5113495bSYour Name 					  int context);
969*5113495bSYour Name 
970*5113495bSYour Name /**
971*5113495bSYour Name  * wlan_cfg_set_hw_mac_idx() - Set HW MAC Idx for the given PDEV index
972*5113495bSYour Name  *
973*5113495bSYour Name  * @cfg: Configuration Handle
974*5113495bSYour Name  * @pdev_idx: Index of SW PDEV
975*5113495bSYour Name  * @hw_macid: HW MAC Id
976*5113495bSYour Name  *
977*5113495bSYour Name  */
978*5113495bSYour Name void wlan_cfg_set_hw_mac_idx(struct wlan_cfg_dp_soc_ctxt *cfg,
979*5113495bSYour Name 			     int pdev_idx, int hw_macid);
980*5113495bSYour Name 
981*5113495bSYour Name /**
982*5113495bSYour Name  * wlan_cfg_get_hw_mac_idx() - Get 0 based HW MAC index for the given
983*5113495bSYour Name  * PDEV index
984*5113495bSYour Name  *
985*5113495bSYour Name  * @cfg: Configuration Handle
986*5113495bSYour Name  * @pdev_idx: Index of SW PDEV
987*5113495bSYour Name  *
988*5113495bSYour Name  * Return: HW MAC index
989*5113495bSYour Name  */
990*5113495bSYour Name int wlan_cfg_get_hw_mac_idx(struct wlan_cfg_dp_soc_ctxt *cfg, int pdev_idx);
991*5113495bSYour Name 
992*5113495bSYour Name /**
993*5113495bSYour Name  * wlan_cfg_get_target_pdev_id() - Get target PDEV ID for HW MAC ID
994*5113495bSYour Name  *
995*5113495bSYour Name  * @cfg: Configuration Handle
996*5113495bSYour Name  * @hw_macid: Index of hw mac
997*5113495bSYour Name  *
998*5113495bSYour Name  * Return: PDEV ID
999*5113495bSYour Name  */
1000*5113495bSYour Name int
1001*5113495bSYour Name wlan_cfg_get_target_pdev_id(struct wlan_cfg_dp_soc_ctxt *cfg, int hw_macid);
1002*5113495bSYour Name 
1003*5113495bSYour Name /**
1004*5113495bSYour Name  * wlan_cfg_set_pdev_idx() - Set 0 based host PDEV index for the given
1005*5113495bSYour Name  * hw mac index
1006*5113495bSYour Name  *
1007*5113495bSYour Name  * @cfg: Configuration Handle
1008*5113495bSYour Name  * @pdev_idx: Index of SW PDEV
1009*5113495bSYour Name  * @hw_macid: Index of hw mac
1010*5113495bSYour Name  *
1011*5113495bSYour Name  * Return: PDEV index
1012*5113495bSYour Name  */
1013*5113495bSYour Name void wlan_cfg_set_pdev_idx
1014*5113495bSYour Name 	(struct wlan_cfg_dp_soc_ctxt *cfg, int pdev_idx, int hw_macid);
1015*5113495bSYour Name 
1016*5113495bSYour Name /**
1017*5113495bSYour Name  * wlan_cfg_get_pdev_idx() - Get 0 based PDEV index for the given
1018*5113495bSYour Name  * hw mac index
1019*5113495bSYour Name  *
1020*5113495bSYour Name  * @cfg: Configuration Handle
1021*5113495bSYour Name  * @hw_macid: Index of hw mac
1022*5113495bSYour Name  *
1023*5113495bSYour Name  * Return: PDEV index
1024*5113495bSYour Name  */
1025*5113495bSYour Name int wlan_cfg_get_pdev_idx(struct wlan_cfg_dp_soc_ctxt *cfg, int hw_macid);
1026*5113495bSYour Name 
1027*5113495bSYour Name /**
1028*5113495bSYour Name  * wlan_cfg_get_rx_err_ring_mask() - Return Rx monitor ring interrupt mask
1029*5113495bSYour Name  *					   mapped to an interrupt context
1030*5113495bSYour Name  * @cfg: Configuration Handle
1031*5113495bSYour Name  * @context: Numerical ID identifying the Interrupt/NAPI context
1032*5113495bSYour Name  *
1033*5113495bSYour Name  * Return: int_rx_err_ring_mask[context]
1034*5113495bSYour Name  */
1035*5113495bSYour Name int wlan_cfg_get_rx_err_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg, int
1036*5113495bSYour Name 				  context);
1037*5113495bSYour Name 
1038*5113495bSYour Name /**
1039*5113495bSYour Name  * wlan_cfg_get_rx_wbm_rel_ring_mask() - Return Rx monitor ring interrupt mask
1040*5113495bSYour Name  *					   mapped to an interrupt context
1041*5113495bSYour Name  * @cfg: Configuration Handle
1042*5113495bSYour Name  * @context: Numerical ID identifying the Interrupt/NAPI context
1043*5113495bSYour Name  *
1044*5113495bSYour Name  * Return: int_wbm_rel_ring_mask[context]
1045*5113495bSYour Name  */
1046*5113495bSYour Name int wlan_cfg_get_rx_wbm_rel_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg, int
1047*5113495bSYour Name 				      context);
1048*5113495bSYour Name 
1049*5113495bSYour Name /**
1050*5113495bSYour Name  * wlan_cfg_get_reo_status_ring_mask() - Return Rx monitor ring interrupt mask
1051*5113495bSYour Name  *					   mapped to an interrupt context
1052*5113495bSYour Name  * @cfg: Configuration Handle
1053*5113495bSYour Name  * @context: Numerical ID identifying the Interrupt/NAPI context
1054*5113495bSYour Name  *
1055*5113495bSYour Name  * Return: int_reo_status_ring_mask[context]
1056*5113495bSYour Name  */
1057*5113495bSYour Name int wlan_cfg_get_reo_status_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg, int
1058*5113495bSYour Name 				      context);
1059*5113495bSYour Name 
1060*5113495bSYour Name /**
1061*5113495bSYour Name  * wlan_cfg_get_ce_ring_mask() - Return CE ring interrupt mask
1062*5113495bSYour Name  *				mapped to an interrupt context
1063*5113495bSYour Name  * @wlan_cfg_ctx: Configuration Handle
1064*5113495bSYour Name  * @context: Numerical ID identifying the Interrupt/NAPI context
1065*5113495bSYour Name  *
1066*5113495bSYour Name  * Return: int_ce_ring_mask[context]
1067*5113495bSYour Name  */
1068*5113495bSYour Name int wlan_cfg_get_ce_ring_mask(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx,
1069*5113495bSYour Name 		int context);
1070*5113495bSYour Name 
1071*5113495bSYour Name /**
1072*5113495bSYour Name  * wlan_cfg_get_umac_reset_intr_mask() - Get UMAC reset interrupt mask
1073*5113495bSYour Name  * mapped to an interrupt context
1074*5113495bSYour Name  * @cfg: Configuration Handle
1075*5113495bSYour Name  * @context: Numerical ID identifying the Interrupt/NAPI context
1076*5113495bSYour Name  *
1077*5113495bSYour Name  * Return: int_umac_reset_intr_mask[context]
1078*5113495bSYour Name  */
1079*5113495bSYour Name int wlan_cfg_get_umac_reset_intr_mask(struct wlan_cfg_dp_soc_ctxt *cfg,
1080*5113495bSYour Name 				      int context);
1081*5113495bSYour Name /**
1082*5113495bSYour Name  * wlan_cfg_get_max_clients() - Return maximum number of peers/stations
1083*5113495bSYour Name  *				supported by device
1084*5113495bSYour Name  * @wlan_cfg_ctx: Configuration Handle
1085*5113495bSYour Name  *
1086*5113495bSYour Name  * Return: max_clients
1087*5113495bSYour Name  */
1088*5113495bSYour Name uint32_t wlan_cfg_get_max_clients(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
1089*5113495bSYour Name 
1090*5113495bSYour Name /**
1091*5113495bSYour Name  * wlan_cfg_max_alloc_size() - Return Maximum allocation size for any dynamic
1092*5113495bSYour Name  *			    memory allocation request for this device
1093*5113495bSYour Name  * @wlan_cfg_ctx: Configuration Handle
1094*5113495bSYour Name  *
1095*5113495bSYour Name  * Return: max_alloc_size
1096*5113495bSYour Name  */
1097*5113495bSYour Name uint32_t wlan_cfg_max_alloc_size(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
1098*5113495bSYour Name 
1099*5113495bSYour Name /**
1100*5113495bSYour Name  * wlan_cfg_per_pdev_tx_ring() - Return true if Tx rings are mapped as
1101*5113495bSYour Name  *			       one per radio
1102*5113495bSYour Name  * @wlan_cfg_ctx: Configuration Handle
1103*5113495bSYour Name  *
1104*5113495bSYour Name  * Return: per_pdev_tx_ring
1105*5113495bSYour Name  */
1106*5113495bSYour Name int wlan_cfg_per_pdev_tx_ring(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
1107*5113495bSYour Name 
1108*5113495bSYour Name /**
1109*5113495bSYour Name  * wlan_cfg_num_tx_comp_rings() - Number of Tx comp rings (HOST mode)
1110*5113495bSYour Name  * @wlan_cfg_ctx: Configuration Handle
1111*5113495bSYour Name  *
1112*5113495bSYour Name  * Return: num_tx_comp_rings
1113*5113495bSYour Name  */
1114*5113495bSYour Name int wlan_cfg_num_tx_comp_rings(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
1115*5113495bSYour Name 
1116*5113495bSYour Name /**
1117*5113495bSYour Name  * wlan_cfg_num_tcl_data_rings() - Number of TCL Data rings (HOST mode)
1118*5113495bSYour Name  * @wlan_cfg_ctx: Configuration Handle
1119*5113495bSYour Name  *
1120*5113495bSYour Name  * Return: num_tcl_data_rings
1121*5113495bSYour Name  */
1122*5113495bSYour Name int wlan_cfg_num_tcl_data_rings(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
1123*5113495bSYour Name 
1124*5113495bSYour Name /**
1125*5113495bSYour Name  * wlan_cfg_num_nss_tcl_data_rings() - Number of TCL Data rings (NSS offload)
1126*5113495bSYour Name  * @wlan_cfg_ctx: Configuration Handle
1127*5113495bSYour Name  *
1128*5113495bSYour Name  * Return: num_tcl_data_rings
1129*5113495bSYour Name  */
1130*5113495bSYour Name int wlan_cfg_num_nss_tcl_data_rings(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
1131*5113495bSYour Name 
1132*5113495bSYour Name /**
1133*5113495bSYour Name  * wlan_cfg_per_pdev_rx_ring() - Return true if Rx rings are mapped as
1134*5113495bSYour Name  *                              one per radio
1135*5113495bSYour Name  * @wlan_cfg_ctx: Configuration Handle
1136*5113495bSYour Name  *
1137*5113495bSYour Name  * Return: per_pdev_rx_ring
1138*5113495bSYour Name  */
1139*5113495bSYour Name int wlan_cfg_per_pdev_rx_ring(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
1140*5113495bSYour Name 
1141*5113495bSYour Name /**
1142*5113495bSYour Name  * wlan_cfg_per_pdev_lmac_ring() - Return true if error rings are mapped as
1143*5113495bSYour Name  *                              one per radio
1144*5113495bSYour Name  * @wlan_cfg_ctx: Configuration Handle
1145*5113495bSYour Name  *
1146*5113495bSYour Name  * Return: return 1 if per pdev error ring else 0
1147*5113495bSYour Name  */
1148*5113495bSYour Name int wlan_cfg_per_pdev_lmac_ring(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
1149*5113495bSYour Name 
1150*5113495bSYour Name /**
1151*5113495bSYour Name  * wlan_cfg_num_reo_dest_rings() - Number of REO Data rings (HOST mode)
1152*5113495bSYour Name  * @wlan_cfg_ctx: Configuration Handle
1153*5113495bSYour Name  *
1154*5113495bSYour Name  * Return: num_reo_dest_rings
1155*5113495bSYour Name  */
1156*5113495bSYour Name int wlan_cfg_num_reo_dest_rings(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
1157*5113495bSYour Name 
1158*5113495bSYour Name /**
1159*5113495bSYour Name  * wlan_cfg_num_nss_reo_dest_rings() - Number of REO Data rings (NSS offload)
1160*5113495bSYour Name  * @wlan_cfg_ctx: Configuration Handle
1161*5113495bSYour Name  *
1162*5113495bSYour Name  * Return: num_reo_dest_rings
1163*5113495bSYour Name  */
1164*5113495bSYour Name int wlan_cfg_num_nss_reo_dest_rings(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
1165*5113495bSYour Name 
1166*5113495bSYour Name /**
1167*5113495bSYour Name  * wlan_cfg_pkt_type() - Default 802.11 encapsulation type
1168*5113495bSYour Name  * @wlan_cfg_ctx: Configuration Handle
1169*5113495bSYour Name  *
1170*5113495bSYour Name  * Return: htt_pkt_type_ethernet
1171*5113495bSYour Name  */
1172*5113495bSYour Name int wlan_cfg_pkt_type(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
1173*5113495bSYour Name 
1174*5113495bSYour Name /**
1175*5113495bSYour Name  * wlan_cfg_get_num_tx_desc_pool() - Number of Tx Descriptor pools for the
1176*5113495bSYour Name  *					device
1177*5113495bSYour Name  * @wlan_cfg_ctx: Configuration Handle
1178*5113495bSYour Name  *
1179*5113495bSYour Name  * Return: num_tx_desc_pool
1180*5113495bSYour Name  */
1181*5113495bSYour Name int wlan_cfg_get_num_tx_desc_pool(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
1182*5113495bSYour Name 
1183*5113495bSYour Name /**
1184*5113495bSYour Name  * wlan_cfg_set_num_tx_desc_pool() - Set the number of Tx Descriptor pools for the
1185*5113495bSYour Name  *					device
1186*5113495bSYour Name  * @cfg: Configuration Handle
1187*5113495bSYour Name  * @num_pool: Number of pool
1188*5113495bSYour Name  */
1189*5113495bSYour Name void wlan_cfg_set_num_tx_desc_pool(struct wlan_cfg_dp_soc_ctxt *cfg, int num_pool);
1190*5113495bSYour Name 
1191*5113495bSYour Name /**
1192*5113495bSYour Name  * wlan_cfg_get_num_tx_ext_desc_pool() -  Number of Tx MSDU ext Descriptor
1193*5113495bSYour Name  *					pools
1194*5113495bSYour Name  * @wlan_cfg_ctx: Configuration Handle
1195*5113495bSYour Name  *
1196*5113495bSYour Name  * Return: num_tx_ext_desc_pool
1197*5113495bSYour Name  */
1198*5113495bSYour Name int wlan_cfg_get_num_tx_ext_desc_pool(
1199*5113495bSYour Name 		struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
1200*5113495bSYour Name 
1201*5113495bSYour Name /**
1202*5113495bSYour Name  * wlan_cfg_get_reo_dst_ring_size() - Get REO destination ring size
1203*5113495bSYour Name  *
1204*5113495bSYour Name  * @cfg: Configuration Handle
1205*5113495bSYour Name  *
1206*5113495bSYour Name  * Return: reo_dst_ring_size
1207*5113495bSYour Name  */
1208*5113495bSYour Name int wlan_cfg_get_reo_dst_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg);
1209*5113495bSYour Name 
1210*5113495bSYour Name /**
1211*5113495bSYour Name  * wlan_cfg_set_reo_dst_ring_size() - Set the REO Destination ring size
1212*5113495bSYour Name  *
1213*5113495bSYour Name  * @cfg: Configuration Handle
1214*5113495bSYour Name  * @reo_dst_ring_size: REO Destination ring size
1215*5113495bSYour Name  */
1216*5113495bSYour Name void wlan_cfg_set_reo_dst_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg,
1217*5113495bSYour Name 				    int reo_dst_ring_size);
1218*5113495bSYour Name 
1219*5113495bSYour Name /**
1220*5113495bSYour Name  * wlan_cfg_set_raw_mode_war() - Set raw mode war configuration
1221*5113495bSYour Name  *
1222*5113495bSYour Name  * @cfg: Configuration Handle
1223*5113495bSYour Name  * @raw_mode_war: raw mode war configuration
1224*5113495bSYour Name  */
1225*5113495bSYour Name void wlan_cfg_set_raw_mode_war(struct wlan_cfg_dp_soc_ctxt *cfg,
1226*5113495bSYour Name 			       bool raw_mode_war);
1227*5113495bSYour Name 
1228*5113495bSYour Name /**
1229*5113495bSYour Name  * wlan_cfg_get_raw_mode_war() - Get raw mode war configuration
1230*5113495bSYour Name  *
1231*5113495bSYour Name  * @cfg: Configuration Handle
1232*5113495bSYour Name  *
1233*5113495bSYour Name  * Return: reo_dst_ring_size
1234*5113495bSYour Name  */
1235*5113495bSYour Name bool wlan_cfg_get_raw_mode_war(struct wlan_cfg_dp_soc_ctxt *cfg);
1236*5113495bSYour Name 
1237*5113495bSYour Name /**
1238*5113495bSYour Name  * wlan_cfg_set_num_tx_ext_desc_pool() -  Set the number of Tx MSDU ext Descriptor
1239*5113495bSYour Name  *					pools
1240*5113495bSYour Name  * @cfg: Configuration Handle
1241*5113495bSYour Name  * @num_pool: Number of pool
1242*5113495bSYour Name  */
1243*5113495bSYour Name void wlan_cfg_set_num_tx_ext_desc_pool(struct wlan_cfg_dp_soc_ctxt *cfg, int num_pool);
1244*5113495bSYour Name 
1245*5113495bSYour Name /**
1246*5113495bSYour Name  * wlan_cfg_get_num_global_tx_desc() - Number of global Tx Descriptors allowed
1247*5113495bSYour Name  * @wlan_cfg_ctx: Configuration Handle
1248*5113495bSYour Name  *
1249*5113495bSYour Name  * Return: num_global_tx_desc
1250*5113495bSYour Name  */
1251*5113495bSYour Name int wlan_cfg_get_num_global_tx_desc(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
1252*5113495bSYour Name 
1253*5113495bSYour Name /**
1254*5113495bSYour Name  * wlan_cfg_get_num_global_spcl_tx_desc() - Number of global special Tx Descriptors
1255*5113495bSYour Name  * allowed
1256*5113495bSYour Name  * @wlan_cfg_ctx: Configuration Handle
1257*5113495bSYour Name  *
1258*5113495bSYour Name  * Return: num_global_spcl_tx_desc
1259*5113495bSYour Name  */
1260*5113495bSYour Name int wlan_cfg_get_num_global_spcl_tx_desc(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
1261*5113495bSYour Name 
1262*5113495bSYour Name /**
1263*5113495bSYour Name  * wlan_cfg_get_num_tx_desc() - Number of Tx Descriptors per pool
1264*5113495bSYour Name  * @wlan_cfg_ctx: Configuration Handle
1265*5113495bSYour Name  *
1266*5113495bSYour Name  * Return: num_tx_desc
1267*5113495bSYour Name  */
1268*5113495bSYour Name int wlan_cfg_get_num_tx_desc(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
1269*5113495bSYour Name 
1270*5113495bSYour Name /**
1271*5113495bSYour Name  * wlan_cfg_set_num_tx_spl_desc() - Set the number of special Tx Descriptors
1272*5113495bSYour Name  * per pool
1273*5113495bSYour Name  *
1274*5113495bSYour Name  * @cfg: Configuration Handle
1275*5113495bSYour Name  * @num_desc: Number of descriptor
1276*5113495bSYour Name  */
1277*5113495bSYour Name void wlan_cfg_set_num_tx_spl_desc(struct wlan_cfg_dp_soc_ctxt *cfg,
1278*5113495bSYour Name 				  int num_desc);
1279*5113495bSYour Name 
1280*5113495bSYour Name /**
1281*5113495bSYour Name  * wlan_cfg_get_num_tx_spl_desc() - Number of Tx Descriptors for special
1282*5113495bSYour Name  *				    frames per pool
1283*5113495bSYour Name  * @wlan_cfg_ctx: Configuration Handle
1284*5113495bSYour Name  *
1285*5113495bSYour Name  * Return: num_tx_desc
1286*5113495bSYour Name  */
1287*5113495bSYour Name int wlan_cfg_get_num_tx_spl_desc(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
1288*5113495bSYour Name 
1289*5113495bSYour Name /**
1290*5113495bSYour Name  * wlan_cfg_get_min_tx_desc() - Minimum number of Tx Descriptors per pool
1291*5113495bSYour Name  * @wlan_cfg_ctx: Configuration Handle
1292*5113495bSYour Name  *
1293*5113495bSYour Name  * Return: num_tx_desc
1294*5113495bSYour Name  */
1295*5113495bSYour Name int wlan_cfg_get_min_tx_desc(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
1296*5113495bSYour Name 
1297*5113495bSYour Name /**
1298*5113495bSYour Name  * wlan_cfg_set_num_tx_desc() - Set the number of Tx Descriptors per pool
1299*5113495bSYour Name  *
1300*5113495bSYour Name  * @cfg: Configuration Handle
1301*5113495bSYour Name  * @num_desc: Number of descriptor
1302*5113495bSYour Name  */
1303*5113495bSYour Name void wlan_cfg_set_num_tx_desc(struct wlan_cfg_dp_soc_ctxt *cfg, int num_desc);
1304*5113495bSYour Name 
1305*5113495bSYour Name /**
1306*5113495bSYour Name  * wlan_cfg_get_num_tx_ext_desc() - Number of Tx MSDU extension Descriptors
1307*5113495bSYour Name  *					per pool
1308*5113495bSYour Name  * @wlan_cfg_ctx: Configuration Handle
1309*5113495bSYour Name  *
1310*5113495bSYour Name  * Return: num_tx_ext_desc
1311*5113495bSYour Name  */
1312*5113495bSYour Name int wlan_cfg_get_num_tx_ext_desc(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
1313*5113495bSYour Name 
1314*5113495bSYour Name /**
1315*5113495bSYour Name  * wlan_cfg_set_num_tx_ext_desc() - Set the number of Tx MSDU extension
1316*5113495bSYour Name  *                                  Descriptors per pool
1317*5113495bSYour Name  * @cfg: Configuration Handle
1318*5113495bSYour Name  * @num_ext_desc: Number of descriptor
1319*5113495bSYour Name  */
1320*5113495bSYour Name void wlan_cfg_set_num_tx_ext_desc(struct wlan_cfg_dp_soc_ctxt *cfg,
1321*5113495bSYour Name 				  int num_ext_desc);
1322*5113495bSYour Name 
1323*5113495bSYour Name /**
1324*5113495bSYour Name  * wlan_cfg_max_peer_id() - Get maximum peer ID
1325*5113495bSYour Name  * @cfg: Configuration Handle
1326*5113495bSYour Name  *
1327*5113495bSYour Name  * Return: maximum peer ID
1328*5113495bSYour Name  */
1329*5113495bSYour Name uint32_t wlan_cfg_max_peer_id(struct wlan_cfg_dp_soc_ctxt *cfg);
1330*5113495bSYour Name 
1331*5113495bSYour Name /**
1332*5113495bSYour Name  * wlan_cfg_get_dma_mon_buf_ring_size(): Return Size of monitor buffer ring
1333*5113495bSYour Name  * @wlan_cfg_pdev_ctx: pdev configuration context
1334*5113495bSYour Name  *
1335*5113495bSYour Name  * Return: dma_mon_buf_ring_size
1336*5113495bSYour Name  */
1337*5113495bSYour Name int wlan_cfg_get_dma_mon_buf_ring_size(
1338*5113495bSYour Name 		struct wlan_cfg_dp_pdev_ctxt *wlan_cfg_pdev_ctx);
1339*5113495bSYour Name 
1340*5113495bSYour Name /**
1341*5113495bSYour Name  * wlan_cfg_get_dma_mon_stat_ring_size() - Return size of Monitor Status ring
1342*5113495bSYour Name  * @wlan_cfg_pdev_ctx: pdev configuration context
1343*5113495bSYour Name  *
1344*5113495bSYour Name  * Return: dma_mon_stat_ring_size
1345*5113495bSYour Name  */
1346*5113495bSYour Name int wlan_cfg_get_dma_mon_stat_ring_size(
1347*5113495bSYour Name 		struct wlan_cfg_dp_pdev_ctxt *wlan_cfg_pdev_ctx);
1348*5113495bSYour Name 
1349*5113495bSYour Name /**
1350*5113495bSYour Name  * wlan_cfg_get_dma_mon_desc_ring_size - Get rxdma monitor size
1351*5113495bSYour Name  * @cfg: soc configuration context
1352*5113495bSYour Name  *
1353*5113495bSYour Name  * Return: rxdma monitor desc ring size
1354*5113495bSYour Name  */
1355*5113495bSYour Name int
1356*5113495bSYour Name wlan_cfg_get_dma_mon_desc_ring_size(struct wlan_cfg_dp_pdev_ctxt *cfg);
1357*5113495bSYour Name 
1358*5113495bSYour Name /**
1359*5113495bSYour Name  * wlan_cfg_get_rx_dma_buf_ring_size() - Return Size of RxDMA buffer ring
1360*5113495bSYour Name  * @wlan_cfg_pdev_ctx: pdev configuration context
1361*5113495bSYour Name  *
1362*5113495bSYour Name  * Return: rx_dma_buf_ring_size
1363*5113495bSYour Name  */
1364*5113495bSYour Name int wlan_cfg_get_rx_dma_buf_ring_size(
1365*5113495bSYour Name 		struct wlan_cfg_dp_pdev_ctxt *wlan_cfg_pdev_ctx);
1366*5113495bSYour Name 
1367*5113495bSYour Name /**
1368*5113495bSYour Name  * wlan_cfg_set_rx_dma_buf_ring_size() - Set RxDMA buffer ring size
1369*5113495bSYour Name  * @cfg: pdev configuration context
1370*5113495bSYour Name  * @ring_size: rxdma buffer ring size to be set
1371*5113495bSYour Name  *
1372*5113495bSYour Name  * Return: None
1373*5113495bSYour Name  */
1374*5113495bSYour Name void
1375*5113495bSYour Name wlan_cfg_set_rx_dma_buf_ring_size(struct wlan_cfg_dp_pdev_ctxt *cfg,
1376*5113495bSYour Name 				  int ring_size);
1377*5113495bSYour Name 
1378*5113495bSYour Name /**
1379*5113495bSYour Name  * wlan_cfg_rx_pending_hl_threshold() - Return high threshold of rx pending
1380*5113495bSYour Name  * @cfg: pdev configuration context
1381*5113495bSYour Name  *
1382*5113495bSYour Name  * Return: rx_pending_high_threshold
1383*5113495bSYour Name  */
1384*5113495bSYour Name uint32_t
1385*5113495bSYour Name wlan_cfg_rx_pending_hl_threshold(struct wlan_cfg_dp_soc_ctxt *cfg);
1386*5113495bSYour Name 
1387*5113495bSYour Name /**
1388*5113495bSYour Name  * wlan_cfg_rx_pending_lo_threshold() - Return low threshold of rx pending
1389*5113495bSYour Name  * @cfg: soc configuration context
1390*5113495bSYour Name  *
1391*5113495bSYour Name  * Return: rx_pending_low_threshold
1392*5113495bSYour Name  */
1393*5113495bSYour Name uint32_t
1394*5113495bSYour Name wlan_cfg_rx_pending_lo_threshold(struct wlan_cfg_dp_soc_ctxt *cfg);
1395*5113495bSYour Name 
1396*5113495bSYour Name /**
1397*5113495bSYour Name  * wlan_cfg_get_num_mac_rings() - Return the number of MAC RX DMA rings
1398*5113495bSYour Name  * per pdev
1399*5113495bSYour Name  * @cfg: pdev configuration context
1400*5113495bSYour Name  *
1401*5113495bSYour Name  * Return: number of mac DMA rings per pdev
1402*5113495bSYour Name  */
1403*5113495bSYour Name int wlan_cfg_get_num_mac_rings(struct wlan_cfg_dp_pdev_ctxt *cfg);
1404*5113495bSYour Name 
1405*5113495bSYour Name /**
1406*5113495bSYour Name  * wlan_cfg_is_lro_enabled - Return LRO enabled/disabled
1407*5113495bSYour Name  * @cfg: soc configuration context
1408*5113495bSYour Name  *
1409*5113495bSYour Name  * Return: true - LRO enabled false - LRO disabled
1410*5113495bSYour Name  */
1411*5113495bSYour Name bool wlan_cfg_is_lro_enabled(struct wlan_cfg_dp_soc_ctxt *cfg);
1412*5113495bSYour Name 
1413*5113495bSYour Name /**
1414*5113495bSYour Name  * wlan_cfg_is_gro_enabled - Return GRO enabled/disabled
1415*5113495bSYour Name  * @cfg: soc configuration context
1416*5113495bSYour Name  *
1417*5113495bSYour Name  * Return: true - GRO enabled false - GRO disabled
1418*5113495bSYour Name  */
1419*5113495bSYour Name bool wlan_cfg_is_gro_enabled(struct wlan_cfg_dp_soc_ctxt *cfg);
1420*5113495bSYour Name 
1421*5113495bSYour Name /**
1422*5113495bSYour Name  * wlan_cfg_is_rx_hash_enabled - Return RX hash enabled/disabled
1423*5113495bSYour Name  * @cfg: soc configuration context
1424*5113495bSYour Name  *
1425*5113495bSYour Name  * Return: true - enabled false - disabled
1426*5113495bSYour Name  */
1427*5113495bSYour Name bool wlan_cfg_is_rx_hash_enabled(struct wlan_cfg_dp_soc_ctxt *cfg);
1428*5113495bSYour Name 
1429*5113495bSYour Name /**
1430*5113495bSYour Name  * wlan_cfg_is_ipa_enabled - Return IPA enabled/disabled
1431*5113495bSYour Name  * @cfg: soc configuration context
1432*5113495bSYour Name  *
1433*5113495bSYour Name  * Return: true - enabled false - disabled
1434*5113495bSYour Name  */
1435*5113495bSYour Name bool wlan_cfg_is_ipa_enabled(struct wlan_cfg_dp_soc_ctxt *cfg);
1436*5113495bSYour Name 
1437*5113495bSYour Name /**
1438*5113495bSYour Name  * wlan_cfg_set_rx_hash - set rx hash enabled/disabled
1439*5113495bSYour Name  * @cfg: soc configuration context
1440*5113495bSYour Name  * @rx_hash: true - enabled false - disabled
1441*5113495bSYour Name  */
1442*5113495bSYour Name void wlan_cfg_set_rx_hash(struct wlan_cfg_dp_soc_ctxt *cfg, bool rx_hash);
1443*5113495bSYour Name 
1444*5113495bSYour Name /**
1445*5113495bSYour Name  * wlan_cfg_is_rx_rr_enabled - Return RX round robin enabled/disabled
1446*5113495bSYour Name  * @cfg: soc configuration context
1447*5113495bSYour Name  *
1448*5113495bSYour Name  * Return: true - enabled false - disabled
1449*5113495bSYour Name  */
1450*5113495bSYour Name bool wlan_cfg_is_rx_rr_enabled(struct wlan_cfg_dp_soc_ctxt *cfg);
1451*5113495bSYour Name 
1452*5113495bSYour Name /**
1453*5113495bSYour Name  * wlan_cfg_set_rx_rr - set rx round robin enabled/disabled
1454*5113495bSYour Name  * @cfg: soc configuration context
1455*5113495bSYour Name  * @rx_rr: true - enabled false - disabled
1456*5113495bSYour Name  */
1457*5113495bSYour Name void wlan_cfg_set_rx_rr(struct wlan_cfg_dp_soc_ctxt *cfg, bool rx_rr);
1458*5113495bSYour Name 
1459*5113495bSYour Name /**
1460*5113495bSYour Name  * wlan_cfg_get_dp_pdev_nss_enabled - Return pdev nss enabled/disabled
1461*5113495bSYour Name  * @cfg: pdev configuration context
1462*5113495bSYour Name  *
1463*5113495bSYour Name  * Return: 1 - enabled 0 - disabled
1464*5113495bSYour Name  */
1465*5113495bSYour Name int wlan_cfg_get_dp_pdev_nss_enabled(struct wlan_cfg_dp_pdev_ctxt *cfg);
1466*5113495bSYour Name 
1467*5113495bSYour Name /**
1468*5113495bSYour Name  * wlan_cfg_set_dp_pdev_nss_enabled - set pdev nss enabled/disabled
1469*5113495bSYour Name  * @cfg: pdev configuration context
1470*5113495bSYour Name  * @nss_enabled: 1 - enabled 0 - disabled
1471*5113495bSYour Name  */
1472*5113495bSYour Name void wlan_cfg_set_dp_pdev_nss_enabled(struct wlan_cfg_dp_pdev_ctxt *cfg,
1473*5113495bSYour Name 				      int nss_enabled);
1474*5113495bSYour Name 
1475*5113495bSYour Name /**
1476*5113495bSYour Name  * wlan_cfg_get_dp_soc_nss_cfg - Return soc nss config
1477*5113495bSYour Name  * @cfg: soc configuration context
1478*5113495bSYour Name  *
1479*5113495bSYour Name  * Return: nss_cfg
1480*5113495bSYour Name  */
1481*5113495bSYour Name int wlan_cfg_get_dp_soc_nss_cfg(struct wlan_cfg_dp_soc_ctxt *cfg);
1482*5113495bSYour Name 
1483*5113495bSYour Name /**
1484*5113495bSYour Name  * wlan_cfg_set_dp_soc_nss_cfg - set soc nss config
1485*5113495bSYour Name  * @cfg: soc configuration context
1486*5113495bSYour Name  * @nss_cfg: NSS configuration
1487*5113495bSYour Name  *
1488*5113495bSYour Name  */
1489*5113495bSYour Name void wlan_cfg_set_dp_soc_nss_cfg(struct wlan_cfg_dp_soc_ctxt *cfg, int nss_cfg);
1490*5113495bSYour Name 
1491*5113495bSYour Name /**
1492*5113495bSYour Name  * wlan_cfg_get_int_timer_threshold_ppe2tcl - Get intr mitigation for ppe2tcl
1493*5113495bSYour Name  * @cfg: soc configuration context
1494*5113495bSYour Name  *
1495*5113495bSYour Name  * Return: Timer threshold
1496*5113495bSYour Name  */
1497*5113495bSYour Name int wlan_cfg_get_int_timer_threshold_ppe2tcl(struct wlan_cfg_dp_soc_ctxt *cfg);
1498*5113495bSYour Name 
1499*5113495bSYour Name /**
1500*5113495bSYour Name  * wlan_cfg_get_int_batch_threshold_ppe2tcl - Get intr mitigation for ppe2tcl
1501*5113495bSYour Name  * @cfg: soc configuration context
1502*5113495bSYour Name  *
1503*5113495bSYour Name  * Return: Batch threshold
1504*5113495bSYour Name  */
1505*5113495bSYour Name int wlan_cfg_get_int_batch_threshold_ppe2tcl(struct wlan_cfg_dp_soc_ctxt *cfg);
1506*5113495bSYour Name 
1507*5113495bSYour Name /**
1508*5113495bSYour Name  * wlan_cfg_get_int_batch_threshold_tx - Get interrupt mitigation cfg for Tx
1509*5113495bSYour Name  * @cfg: soc configuration context
1510*5113495bSYour Name  *
1511*5113495bSYour Name  * Return: Batch threshold
1512*5113495bSYour Name  */
1513*5113495bSYour Name int wlan_cfg_get_int_batch_threshold_tx(struct wlan_cfg_dp_soc_ctxt *cfg);
1514*5113495bSYour Name 
1515*5113495bSYour Name /**
1516*5113495bSYour Name  * wlan_cfg_get_int_timer_threshold_tx - Get interrupt mitigation cfg for Tx
1517*5113495bSYour Name  * @cfg: soc configuration context
1518*5113495bSYour Name  *
1519*5113495bSYour Name  * Return: Timer threshold
1520*5113495bSYour Name  */
1521*5113495bSYour Name int wlan_cfg_get_int_timer_threshold_tx(struct wlan_cfg_dp_soc_ctxt *cfg);
1522*5113495bSYour Name 
1523*5113495bSYour Name /**
1524*5113495bSYour Name  * wlan_cfg_get_int_batch_threshold_rx - Get interrupt mitigation cfg for Rx
1525*5113495bSYour Name  * @cfg: soc configuration context
1526*5113495bSYour Name  *
1527*5113495bSYour Name  * Return: Batch threshold
1528*5113495bSYour Name  */
1529*5113495bSYour Name int wlan_cfg_get_int_batch_threshold_rx(struct wlan_cfg_dp_soc_ctxt *cfg);
1530*5113495bSYour Name 
1531*5113495bSYour Name /**
1532*5113495bSYour Name  * wlan_cfg_get_int_timer_threshold_rx - Get interrupt mitigation cfg for Rx
1533*5113495bSYour Name  * @cfg: soc configuration context
1534*5113495bSYour Name  *
1535*5113495bSYour Name  * Return: Timer threshold
1536*5113495bSYour Name  */
1537*5113495bSYour Name int wlan_cfg_get_int_timer_threshold_rx(struct wlan_cfg_dp_soc_ctxt *cfg);
1538*5113495bSYour Name 
1539*5113495bSYour Name /**
1540*5113495bSYour Name  * wlan_cfg_get_int_batch_threshold_other - Get interrupt mitigation cfg for
1541*5113495bSYour Name  *                                          other srngs
1542*5113495bSYour Name  * @cfg: soc configuration context
1543*5113495bSYour Name  *
1544*5113495bSYour Name  * Return: Batch threshold
1545*5113495bSYour Name  */
1546*5113495bSYour Name int wlan_cfg_get_int_batch_threshold_other(struct wlan_cfg_dp_soc_ctxt *cfg);
1547*5113495bSYour Name 
1548*5113495bSYour Name /**
1549*5113495bSYour Name  * wlan_cfg_get_int_timer_threshold_other - Get interrupt mitigation cfg for
1550*5113495bSYour Name  *                                          other srngs
1551*5113495bSYour Name  * @cfg: soc configuration context
1552*5113495bSYour Name  *
1553*5113495bSYour Name  * Return: Timer threshold
1554*5113495bSYour Name  */
1555*5113495bSYour Name int wlan_cfg_get_int_timer_threshold_other(struct wlan_cfg_dp_soc_ctxt *cfg);
1556*5113495bSYour Name 
1557*5113495bSYour Name /**
1558*5113495bSYour Name  * wlan_cfg_get_int_batch_threshold_mon_dest - Get interrupt mitigation cfg for
1559*5113495bSYour Name  * monitor destination srng
1560*5113495bSYour Name  * @cfg: soc configuration context
1561*5113495bSYour Name  *
1562*5113495bSYour Name  * Return: Batch threshold
1563*5113495bSYour Name  */
1564*5113495bSYour Name int wlan_cfg_get_int_batch_threshold_mon_dest(struct wlan_cfg_dp_soc_ctxt *cfg);
1565*5113495bSYour Name 
1566*5113495bSYour Name /**
1567*5113495bSYour Name  * wlan_cfg_get_int_timer_threshold_mon_dest - Get interrupt mitigation cfg for
1568*5113495bSYour Name  * monitor destination srngs
1569*5113495bSYour Name  * @cfg: soc configuration context
1570*5113495bSYour Name  *
1571*5113495bSYour Name  * Return: Timer threshold
1572*5113495bSYour Name  */
1573*5113495bSYour Name int wlan_cfg_get_int_timer_threshold_mon_dest(struct wlan_cfg_dp_soc_ctxt *cfg);
1574*5113495bSYour Name 
1575*5113495bSYour Name /**
1576*5113495bSYour Name  * wlan_cfg_get_checksum_offload - Get checksum offload enable or disable status
1577*5113495bSYour Name  * @cfg: soc configuration context
1578*5113495bSYour Name  *
1579*5113495bSYour Name  * Return: Checksum offload enable or disable
1580*5113495bSYour Name  */
1581*5113495bSYour Name int wlan_cfg_get_checksum_offload(struct wlan_cfg_dp_soc_ctxt *cfg);
1582*5113495bSYour Name 
1583*5113495bSYour Name /**
1584*5113495bSYour Name  * wlan_cfg_get_nan_checksum_offload - Get checksum offload enable/disable val
1585*5113495bSYour Name  * @cfg: soc configuration context
1586*5113495bSYour Name  *
1587*5113495bSYour Name  * Return: Checksum offload enable or disable value for NAN mode
1588*5113495bSYour Name  */
1589*5113495bSYour Name int wlan_cfg_get_nan_checksum_offload(struct wlan_cfg_dp_soc_ctxt *cfg);
1590*5113495bSYour Name 
1591*5113495bSYour Name /**
1592*5113495bSYour Name  * wlan_cfg_get_p2p_checksum_offload - Get checksum offload enable/disable val
1593*5113495bSYour Name  * @cfg: soc configuration context
1594*5113495bSYour Name  *
1595*5113495bSYour Name  * Return: Checksum offload enable or disable value for P2P mode
1596*5113495bSYour Name  */
1597*5113495bSYour Name int wlan_cfg_get_p2p_checksum_offload(struct wlan_cfg_dp_soc_ctxt *cfg);
1598*5113495bSYour Name 
1599*5113495bSYour Name /**
1600*5113495bSYour Name  * wlan_cfg_tx_ring_size - Get Tx DMA ring size (TCL Data Ring)
1601*5113495bSYour Name  * @cfg: soc configuration context
1602*5113495bSYour Name  *
1603*5113495bSYour Name  * Return: Tx Ring Size
1604*5113495bSYour Name  */
1605*5113495bSYour Name int wlan_cfg_tx_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg);
1606*5113495bSYour Name 
1607*5113495bSYour Name /**
1608*5113495bSYour Name  * wlan_cfg_set_tx_ring_size - Set Tx ring size
1609*5113495bSYour Name  * @cfg: soc configuration context
1610*5113495bSYour Name  * @ring_size: TX ring size to be set
1611*5113495bSYour Name  *
1612*5113495bSYour Name  * Return: None
1613*5113495bSYour Name  */
1614*5113495bSYour Name void wlan_cfg_set_tx_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg,
1615*5113495bSYour Name 			       int ring_size);
1616*5113495bSYour Name 
1617*5113495bSYour Name /**
1618*5113495bSYour Name  * wlan_cfg_time_control_bp - Get time for interval in bp prints
1619*5113495bSYour Name  * @cfg: soc configuration context
1620*5113495bSYour Name  *
1621*5113495bSYour Name  * Return: interval time
1622*5113495bSYour Name  */
1623*5113495bSYour Name int wlan_cfg_time_control_bp(struct wlan_cfg_dp_soc_ctxt *cfg);
1624*5113495bSYour Name 
1625*5113495bSYour Name /**
1626*5113495bSYour Name  * wlan_cfg_rx_buffer_size - Get buffer size for skb
1627*5113495bSYour Name  * @cfg: soc configuration context
1628*5113495bSYour Name  *
1629*5113495bSYour Name  * Return: buffer size
1630*5113495bSYour Name  */
1631*5113495bSYour Name int wlan_cfg_rx_buffer_size(struct wlan_cfg_dp_soc_ctxt *cfg);
1632*5113495bSYour Name 
1633*5113495bSYour Name /**
1634*5113495bSYour Name  * wlan_cfg_qref_control_size - Get debug array size
1635*5113495bSYour Name  * @cfg: soc configuration context
1636*5113495bSYour Name  *
1637*5113495bSYour Name  * Return: array size
1638*5113495bSYour Name  */
1639*5113495bSYour Name int wlan_cfg_qref_control_size(struct wlan_cfg_dp_soc_ctxt *cfg);
1640*5113495bSYour Name 
1641*5113495bSYour Name /**
1642*5113495bSYour Name  * wlan_cfg_tx_comp_ring_size - Get Tx completion ring size (WBM Ring)
1643*5113495bSYour Name  * @cfg: soc configuration context
1644*5113495bSYour Name  *
1645*5113495bSYour Name  * Return: Tx Completion ring size
1646*5113495bSYour Name  */
1647*5113495bSYour Name int wlan_cfg_tx_comp_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg);
1648*5113495bSYour Name 
1649*5113495bSYour Name /**
1650*5113495bSYour Name  * wlan_cfg_set_tx_comp_ring_size - Set Tx completion ring size
1651*5113495bSYour Name  * @cfg: soc configuration context
1652*5113495bSYour Name  * @ring_size: TX completion ring size to be set
1653*5113495bSYour Name  *
1654*5113495bSYour Name  * Return: None
1655*5113495bSYour Name  */
1656*5113495bSYour Name void wlan_cfg_set_tx_comp_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg,
1657*5113495bSYour Name 				    int ring_size);
1658*5113495bSYour Name 
1659*5113495bSYour Name /**
1660*5113495bSYour Name  * wlan_cfg_get_dp_soc_wbm_release_ring_size - Get wbm_release_ring size
1661*5113495bSYour Name  * @cfg: soc configuration context
1662*5113495bSYour Name  *
1663*5113495bSYour Name  * Return: wbm_release_ring size
1664*5113495bSYour Name  */
1665*5113495bSYour Name int
1666*5113495bSYour Name wlan_cfg_get_dp_soc_wbm_release_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg);
1667*5113495bSYour Name 
1668*5113495bSYour Name /**
1669*5113495bSYour Name  * wlan_cfg_get_dp_soc_tcl_cmd_credit_ring_size - Get command/credit ring size
1670*5113495bSYour Name  * @cfg: soc configuration context
1671*5113495bSYour Name  *
1672*5113495bSYour Name  * Return: tcl_cmd_credit_ring size
1673*5113495bSYour Name  */
1674*5113495bSYour Name int
1675*5113495bSYour Name wlan_cfg_get_dp_soc_tcl_cmd_credit_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg);
1676*5113495bSYour Name 
1677*5113495bSYour Name /**
1678*5113495bSYour Name  * wlan_cfg_get_dp_soc_tcl_status_ring_size - Get tcl_status_ring size
1679*5113495bSYour Name  * @cfg: soc configuration context
1680*5113495bSYour Name  *
1681*5113495bSYour Name  * Return: tcl_status_ring size
1682*5113495bSYour Name  */
1683*5113495bSYour Name int
1684*5113495bSYour Name wlan_cfg_get_dp_soc_tcl_status_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg);
1685*5113495bSYour Name 
1686*5113495bSYour Name /**
1687*5113495bSYour Name  * wlan_cfg_get_dp_soc_reo_reinject_ring_size - Get reo_reinject_ring size
1688*5113495bSYour Name  * @cfg: soc configuration context
1689*5113495bSYour Name  *
1690*5113495bSYour Name  * Return: reo_reinject_ring size
1691*5113495bSYour Name  */
1692*5113495bSYour Name int
1693*5113495bSYour Name wlan_cfg_get_dp_soc_reo_reinject_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg);
1694*5113495bSYour Name 
1695*5113495bSYour Name /**
1696*5113495bSYour Name  * wlan_cfg_get_dp_soc_rx_release_ring_size - Get rx_release_ring size
1697*5113495bSYour Name  * @cfg: soc configuration context
1698*5113495bSYour Name  *
1699*5113495bSYour Name  * Return: rx_release_ring size
1700*5113495bSYour Name  */
1701*5113495bSYour Name int
1702*5113495bSYour Name wlan_cfg_get_dp_soc_rx_release_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg);
1703*5113495bSYour Name 
1704*5113495bSYour Name /**
1705*5113495bSYour Name  * wlan_cfg_get_dp_soc_reo_exception_ring_size - Get reo_exception_ring size
1706*5113495bSYour Name  * @cfg: soc configuration context
1707*5113495bSYour Name  *
1708*5113495bSYour Name  * Return: reo_exception_ring size
1709*5113495bSYour Name  */
1710*5113495bSYour Name int
1711*5113495bSYour Name wlan_cfg_get_dp_soc_reo_exception_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg);
1712*5113495bSYour Name 
1713*5113495bSYour Name /**
1714*5113495bSYour Name  * wlan_cfg_get_dp_soc_reo_cmd_ring_size - Get reo_cmd_ring size
1715*5113495bSYour Name  * @cfg: soc configuration context
1716*5113495bSYour Name  *
1717*5113495bSYour Name  * Return: reo_cmd_ring size
1718*5113495bSYour Name  */
1719*5113495bSYour Name int
1720*5113495bSYour Name wlan_cfg_get_dp_soc_reo_cmd_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg);
1721*5113495bSYour Name 
1722*5113495bSYour Name /**
1723*5113495bSYour Name  * wlan_cfg_get_dp_soc_reo_status_ring_size - Get reo_status_ring size
1724*5113495bSYour Name  * @cfg: soc configuration context
1725*5113495bSYour Name  *
1726*5113495bSYour Name  * Return: reo_status_ring size
1727*5113495bSYour Name  */
1728*5113495bSYour Name int
1729*5113495bSYour Name wlan_cfg_get_dp_soc_reo_status_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg);
1730*5113495bSYour Name 
1731*5113495bSYour Name /**
1732*5113495bSYour Name  * wlan_cfg_get_dp_soc_tx_desc_limit_0 - Get tx desc limit for 5G H
1733*5113495bSYour Name  * @cfg: soc configuration context
1734*5113495bSYour Name  *
1735*5113495bSYour Name  * Return: tx desc limit for 5G H
1736*5113495bSYour Name  */
1737*5113495bSYour Name int
1738*5113495bSYour Name wlan_cfg_get_dp_soc_tx_desc_limit_0(struct wlan_cfg_dp_soc_ctxt *cfg);
1739*5113495bSYour Name 
1740*5113495bSYour Name /**
1741*5113495bSYour Name  * wlan_cfg_get_dp_soc_tx_desc_limit_1 - Get tx desc limit for 2G
1742*5113495bSYour Name  * @cfg: soc configuration context
1743*5113495bSYour Name  *
1744*5113495bSYour Name  * Return: tx desc limit for 2G
1745*5113495bSYour Name  */
1746*5113495bSYour Name int
1747*5113495bSYour Name wlan_cfg_get_dp_soc_tx_desc_limit_1(struct wlan_cfg_dp_soc_ctxt *cfg);
1748*5113495bSYour Name 
1749*5113495bSYour Name /**
1750*5113495bSYour Name  * wlan_cfg_get_dp_soc_tx_desc_limit_2 - Get tx desc limit for 5G L
1751*5113495bSYour Name  * @cfg: soc configuration context
1752*5113495bSYour Name  *
1753*5113495bSYour Name  * Return: tx desc limit for 5G L
1754*5113495bSYour Name  */
1755*5113495bSYour Name int
1756*5113495bSYour Name wlan_cfg_get_dp_soc_tx_desc_limit_2(struct wlan_cfg_dp_soc_ctxt *cfg);
1757*5113495bSYour Name 
1758*5113495bSYour Name /**
1759*5113495bSYour Name  * wlan_cfg_get_dp_soc_tx_device_limit - Get tx device limit
1760*5113495bSYour Name  * @cfg: soc configuration context
1761*5113495bSYour Name  *
1762*5113495bSYour Name  * Return: tx device limit
1763*5113495bSYour Name  */
1764*5113495bSYour Name int
1765*5113495bSYour Name wlan_cfg_get_dp_soc_tx_device_limit(struct wlan_cfg_dp_soc_ctxt *cfg);
1766*5113495bSYour Name 
1767*5113495bSYour Name /**
1768*5113495bSYour Name  * wlan_cfg_get_dp_soc_tx_spl_device_limit - Get tx device limit for special
1769*5113495bSYour Name  *					     frames
1770*5113495bSYour Name  * @cfg: Configuration Handle
1771*5113495bSYour Name  *
1772*5113495bSYour Name  * Return: tx device limit for special frames
1773*5113495bSYour Name  */
1774*5113495bSYour Name int
1775*5113495bSYour Name wlan_cfg_get_dp_soc_tx_spl_device_limit(struct wlan_cfg_dp_soc_ctxt *cfg);
1776*5113495bSYour Name 
1777*5113495bSYour Name /**
1778*5113495bSYour Name  * wlan_cfg_get_dp_soc_tx_sw_internode_queue - Get tx sw internode queue
1779*5113495bSYour Name  * @cfg: soc configuration context
1780*5113495bSYour Name  *
1781*5113495bSYour Name  * Return: tx sw internode queue
1782*5113495bSYour Name  */
1783*5113495bSYour Name int
1784*5113495bSYour Name wlan_cfg_get_dp_soc_tx_sw_internode_queue(struct wlan_cfg_dp_soc_ctxt *cfg);
1785*5113495bSYour Name 
1786*5113495bSYour Name /**
1787*5113495bSYour Name  * wlan_cfg_get_dp_soc_rxdma_refill_ring_size - Get rxdma refill ring size
1788*5113495bSYour Name  * @cfg: soc configuration context
1789*5113495bSYour Name  *
1790*5113495bSYour Name  * Return: rxdma refill ring size
1791*5113495bSYour Name  */
1792*5113495bSYour Name int
1793*5113495bSYour Name wlan_cfg_get_dp_soc_rxdma_refill_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg);
1794*5113495bSYour Name 
1795*5113495bSYour Name /**
1796*5113495bSYour Name  * wlan_cfg_set_dp_soc_rxdma_refill_ring_size - Set rxdma refill ring size
1797*5113495bSYour Name  * @cfg: soc configuration context
1798*5113495bSYour Name  * @ring_size: rxdma refill ring size to be set
1799*5113495bSYour Name  *
1800*5113495bSYour Name  * Return: None
1801*5113495bSYour Name  */
1802*5113495bSYour Name void
1803*5113495bSYour Name wlan_cfg_set_dp_soc_rxdma_refill_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg,
1804*5113495bSYour Name 					   int ring_size);
1805*5113495bSYour Name 
1806*5113495bSYour Name /**
1807*5113495bSYour Name  * wlan_cfg_get_dp_soc_rxdma_refill_lt_disable - Get RxDMA refill LT status
1808*5113495bSYour Name  * @cfg: soc configuration context
1809*5113495bSYour Name  *
1810*5113495bSYour Name  * Return: true if Low threshold disable else false
1811*5113495bSYour Name  */
1812*5113495bSYour Name bool
1813*5113495bSYour Name wlan_cfg_get_dp_soc_rxdma_refill_lt_disable(struct wlan_cfg_dp_soc_ctxt *cfg);
1814*5113495bSYour Name 
1815*5113495bSYour Name /**
1816*5113495bSYour Name  * wlan_cfg_get_dp_soc_rxdma_err_dst_ring_size - Get rxdma dst ring size
1817*5113495bSYour Name  * @cfg: soc configuration context
1818*5113495bSYour Name  *
1819*5113495bSYour Name  * Return: rxdma error dst ring size
1820*5113495bSYour Name  */
1821*5113495bSYour Name int
1822*5113495bSYour Name wlan_cfg_get_dp_soc_rxdma_err_dst_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg);
1823*5113495bSYour Name 
1824*5113495bSYour Name /**
1825*5113495bSYour Name  * wlan_cfg_get_dp_soc_rx_sw_desc_weight - Get rx sw desc weight
1826*5113495bSYour Name  * @cfg: soc configuration context
1827*5113495bSYour Name  *
1828*5113495bSYour Name  * Return: rx_sw_desc_weight
1829*5113495bSYour Name  */
1830*5113495bSYour Name int
1831*5113495bSYour Name wlan_cfg_get_dp_soc_rx_sw_desc_weight(struct wlan_cfg_dp_soc_ctxt *cfg);
1832*5113495bSYour Name 
1833*5113495bSYour Name /**
1834*5113495bSYour Name  * wlan_cfg_get_dp_soc_rx_sw_desc_num - Get rx sw desc num
1835*5113495bSYour Name  * @cfg: soc configuration context
1836*5113495bSYour Name  *
1837*5113495bSYour Name  * Return: rx_sw_desc_num
1838*5113495bSYour Name  */
1839*5113495bSYour Name int
1840*5113495bSYour Name wlan_cfg_get_dp_soc_rx_sw_desc_num(struct wlan_cfg_dp_soc_ctxt *cfg);
1841*5113495bSYour Name 
1842*5113495bSYour Name /**
1843*5113495bSYour Name  * wlan_cfg_set_dp_soc_rx_sw_desc_num - Set rx sw desc num
1844*5113495bSYour Name  * @cfg: soc configuration context
1845*5113495bSYour Name  * @desc_num: Number of Rx descriptors to be set
1846*5113495bSYour Name  *
1847*5113495bSYour Name  * Return: None
1848*5113495bSYour Name  */
1849*5113495bSYour Name void
1850*5113495bSYour Name wlan_cfg_set_dp_soc_rx_sw_desc_num(struct wlan_cfg_dp_soc_ctxt *cfg,
1851*5113495bSYour Name 				   int desc_num);
1852*5113495bSYour Name 
1853*5113495bSYour Name /**
1854*5113495bSYour Name  * wlan_cfg_get_dp_caps - Get dp capabilities
1855*5113495bSYour Name  * @cfg: soc configuration context
1856*5113495bSYour Name  * @dp_caps: enum for dp capabilities
1857*5113495bSYour Name  *
1858*5113495bSYour Name  * Return: bool if a dp capabilities is enabled
1859*5113495bSYour Name  */
1860*5113495bSYour Name bool
1861*5113495bSYour Name wlan_cfg_get_dp_caps(struct wlan_cfg_dp_soc_ctxt *cfg,
1862*5113495bSYour Name 		     enum cdp_capabilities dp_caps);
1863*5113495bSYour Name 
1864*5113495bSYour Name /**
1865*5113495bSYour Name  * wlan_set_srng_cfg() - Fill per ring specific
1866*5113495bSYour Name  * configuration parameters
1867*5113495bSYour Name  * @wlan_cfg: global srng configuration table
1868*5113495bSYour Name  *
1869*5113495bSYour Name  * Return: None
1870*5113495bSYour Name  */
1871*5113495bSYour Name void wlan_set_srng_cfg(struct wlan_srng_cfg **wlan_cfg);
1872*5113495bSYour Name 
1873*5113495bSYour Name #ifdef QCA_LL_TX_FLOW_CONTROL_V2
1874*5113495bSYour Name int wlan_cfg_get_tx_flow_stop_queue_th(struct wlan_cfg_dp_soc_ctxt *cfg);
1875*5113495bSYour Name 
1876*5113495bSYour Name int wlan_cfg_get_tx_flow_start_queue_offset(struct wlan_cfg_dp_soc_ctxt *cfg);
1877*5113495bSYour Name #endif /* QCA_LL_TX_FLOW_CONTROL_V2 */
1878*5113495bSYour Name int wlan_cfg_get_rx_defrag_min_timeout(struct wlan_cfg_dp_soc_ctxt *cfg);
1879*5113495bSYour Name 
1880*5113495bSYour Name int wlan_cfg_get_defrag_timeout_check(struct wlan_cfg_dp_soc_ctxt *cfg);
1881*5113495bSYour Name 
1882*5113495bSYour Name /**
1883*5113495bSYour Name  * wlan_cfg_get_rx_flow_search_table_size() - Return the size of Rx FST
1884*5113495bSYour Name  *                                            in number of entries
1885*5113495bSYour Name  *
1886*5113495bSYour Name  * @cfg: soc configuration context
1887*5113495bSYour Name  *
1888*5113495bSYour Name  * Return: rx_fst_size
1889*5113495bSYour Name  */
1890*5113495bSYour Name uint16_t
1891*5113495bSYour Name wlan_cfg_get_rx_flow_search_table_size(struct wlan_cfg_dp_soc_ctxt *cfg);
1892*5113495bSYour Name 
1893*5113495bSYour Name /**
1894*5113495bSYour Name  * wlan_cfg_rx_fst_get_max_search() - Return the max skid length for FST search
1895*5113495bSYour Name  *
1896*5113495bSYour Name  * @cfg: soc configuration context
1897*5113495bSYour Name  *
1898*5113495bSYour Name  * Return: max_search
1899*5113495bSYour Name  */
1900*5113495bSYour Name uint8_t wlan_cfg_rx_fst_get_max_search(struct wlan_cfg_dp_soc_ctxt *cfg);
1901*5113495bSYour Name 
1902*5113495bSYour Name /**
1903*5113495bSYour Name  * wlan_cfg_rx_fst_get_hash_key() - Return Toeplitz Hash Key used for FST
1904*5113495bSYour Name  *                                  search
1905*5113495bSYour Name  *
1906*5113495bSYour Name  * @cfg: soc configuration context
1907*5113495bSYour Name  *
1908*5113495bSYour Name  * Return: 320-bit Hash Key
1909*5113495bSYour Name  */
1910*5113495bSYour Name uint8_t *wlan_cfg_rx_fst_get_hash_key(struct wlan_cfg_dp_soc_ctxt *cfg);
1911*5113495bSYour Name 
1912*5113495bSYour Name /**
1913*5113495bSYour Name  * wlan_cfg_set_rx_flow_tag_enabled() - set rx flow tag enabled flag in
1914*5113495bSYour Name  *                                      DP soc context
1915*5113495bSYour Name  * @cfg: soc configuration context
1916*5113495bSYour Name  * @val: Rx flow tag feature flag value
1917*5113495bSYour Name  *
1918*5113495bSYour Name  * Return: None
1919*5113495bSYour Name  */
1920*5113495bSYour Name void wlan_cfg_set_rx_flow_tag_enabled(struct wlan_cfg_dp_soc_ctxt *cfg,
1921*5113495bSYour Name 				      bool val);
1922*5113495bSYour Name 
1923*5113495bSYour Name /**
1924*5113495bSYour Name  * wlan_cfg_is_rx_flow_tag_enabled() - get rx flow tag enabled flag from
1925*5113495bSYour Name  *                                     DP soc context
1926*5113495bSYour Name  * @cfg: soc configuration context
1927*5113495bSYour Name  *
1928*5113495bSYour Name  * Return: true if feature is enabled, else false
1929*5113495bSYour Name  */
1930*5113495bSYour Name bool wlan_cfg_is_rx_flow_tag_enabled(struct wlan_cfg_dp_soc_ctxt *cfg);
1931*5113495bSYour Name 
1932*5113495bSYour Name /**
1933*5113495bSYour Name  * wlan_cfg_set_rx_flow_search_table_per_pdev() - Set flag to indicate that
1934*5113495bSYour Name  *                                                Rx FST is per pdev
1935*5113495bSYour Name  * @cfg: soc configuration context
1936*5113495bSYour Name  * @val: boolean flag indicating Rx FST per pdev or per SOC
1937*5113495bSYour Name  *
1938*5113495bSYour Name  * Return: None
1939*5113495bSYour Name  */
1940*5113495bSYour Name void
1941*5113495bSYour Name wlan_cfg_set_rx_flow_search_table_per_pdev(struct wlan_cfg_dp_soc_ctxt *cfg,
1942*5113495bSYour Name 					   bool val);
1943*5113495bSYour Name 
1944*5113495bSYour Name /**
1945*5113495bSYour Name  * wlan_cfg_is_rx_flow_search_table_per_pdev() - get RX FST flag for per pdev
1946*5113495bSYour Name  * @cfg: soc configuration context
1947*5113495bSYour Name  *
1948*5113495bSYour Name  * Return: true if Rx FST is per pdev, else false
1949*5113495bSYour Name  */
1950*5113495bSYour Name bool
1951*5113495bSYour Name wlan_cfg_is_rx_flow_search_table_per_pdev(struct wlan_cfg_dp_soc_ctxt *cfg);
1952*5113495bSYour Name 
1953*5113495bSYour Name /**
1954*5113495bSYour Name  * wlan_cfg_set_rx_flow_search_table_size() - set RX FST size in DP SoC context
1955*5113495bSYour Name  * @cfg: soc configuration context
1956*5113495bSYour Name  * @val: Rx FST size in number of entries
1957*5113495bSYour Name  *
1958*5113495bSYour Name  * Return: None
1959*5113495bSYour Name  */
1960*5113495bSYour Name void
1961*5113495bSYour Name wlan_cfg_set_rx_flow_search_table_size(struct wlan_cfg_dp_soc_ctxt *cfg,
1962*5113495bSYour Name 				       uint16_t val);
1963*5113495bSYour Name 
1964*5113495bSYour Name /**
1965*5113495bSYour Name  * wlan_cfg_set_rx_mon_protocol_flow_tag_enabled() - set mon rx tag enabled flag
1966*5113495bSYour Name  *                                                   in DP soc context
1967*5113495bSYour Name  * @cfg: soc configuration context
1968*5113495bSYour Name  * @val: Rx protocol or flow tag feature flag value in monitor mode from INI
1969*5113495bSYour Name  *
1970*5113495bSYour Name  * Return: None
1971*5113495bSYour Name  */
1972*5113495bSYour Name void
1973*5113495bSYour Name wlan_cfg_set_rx_mon_protocol_flow_tag_enabled(struct wlan_cfg_dp_soc_ctxt *cfg,
1974*5113495bSYour Name 					      bool val);
1975*5113495bSYour Name 
1976*5113495bSYour Name /**
1977*5113495bSYour Name  * wlan_cfg_is_rx_mon_protocol_flow_tag_enabled() - get mon rx tag enabled flag
1978*5113495bSYour Name  *                                                  from DP soc context
1979*5113495bSYour Name  * @cfg: soc configuration context
1980*5113495bSYour Name  *
1981*5113495bSYour Name  * Return: true if feature is enabled in monitor mode for protocol or flow
1982*5113495bSYour Name  * tagging in INI, false otherwise
1983*5113495bSYour Name  */
1984*5113495bSYour Name bool
1985*5113495bSYour Name wlan_cfg_is_rx_mon_protocol_flow_tag_enabled(struct wlan_cfg_dp_soc_ctxt *cfg);
1986*5113495bSYour Name 
1987*5113495bSYour Name /**
1988*5113495bSYour Name  * wlan_cfg_set_tx_per_pkt_vdev_id_check() - set flag to enable perpkt
1989*5113495bSYour Name  *                                              vdev id check in tx.
1990*5113495bSYour Name  * @cfg: soc configuration context
1991*5113495bSYour Name  * @val: feature flag value
1992*5113495bSYour Name  *
1993*5113495bSYour Name  * Return: None
1994*5113495bSYour Name  */
1995*5113495bSYour Name void
1996*5113495bSYour Name wlan_cfg_set_tx_per_pkt_vdev_id_check(struct wlan_cfg_dp_soc_ctxt *cfg,
1997*5113495bSYour Name 				      bool val);
1998*5113495bSYour Name 
1999*5113495bSYour Name /**
2000*5113495bSYour Name  * wlan_cfg_is_tx_per_pkt_vdev_id_check_enabled() - get flag to check if
2001*5113495bSYour Name  *                              perpkt vdev id check is enabled in tx.
2002*5113495bSYour Name  * @cfg: soc configuration context
2003*5113495bSYour Name  *
2004*5113495bSYour Name  * Return: true if feature is enabled, false otherwise
2005*5113495bSYour Name  */
2006*5113495bSYour Name bool
2007*5113495bSYour Name wlan_cfg_is_tx_per_pkt_vdev_id_check_enabled(struct wlan_cfg_dp_soc_ctxt *cfg);
2008*5113495bSYour Name 
2009*5113495bSYour Name /**
2010*5113495bSYour Name  * wlan_cfg_fill_interrupt_mask() - set interrupt mask
2011*5113495bSYour Name  *
2012*5113495bSYour Name  * @wlan_cfg_ctx: soc configuration context
2013*5113495bSYour Name  * @num_dp_msi: Number of DP interrupts available (0 for integrated)
2014*5113495bSYour Name  * @interrupt_mode: Type of interrupt
2015*5113495bSYour Name  * @is_monitor_mode: is monitor mode enabled
2016*5113495bSYour Name  * @ppeds_attached: is ppeds attached
2017*5113495bSYour Name  * @umac_reset_support: Umac reset support
2018*5113495bSYour Name  *
2019*5113495bSYour Name  * Return: void
2020*5113495bSYour Name  */
2021*5113495bSYour Name void wlan_cfg_fill_interrupt_mask(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx,
2022*5113495bSYour Name 				  int num_dp_msi, int interrupt_mode,
2023*5113495bSYour Name 				  bool is_monitor_mode, bool ppeds_attached,
2024*5113495bSYour Name 				  bool umac_reset_support);
2025*5113495bSYour Name 
2026*5113495bSYour Name /**
2027*5113495bSYour Name  * wlan_cfg_is_rx_buffer_pool_enabled() - Get RX buffer pool enabled flag
2028*5113495bSYour Name  *
2029*5113495bSYour Name  *
2030*5113495bSYour Name  * @cfg: soc configuration context
2031*5113495bSYour Name  *
2032*5113495bSYour Name  * Return: true if enabled, false otherwise.
2033*5113495bSYour Name  */
2034*5113495bSYour Name bool wlan_cfg_is_rx_buffer_pool_enabled(struct wlan_cfg_dp_soc_ctxt *cfg);
2035*5113495bSYour Name 
2036*5113495bSYour Name /**
2037*5113495bSYour Name  * wlan_cfg_is_rx_refill_buffer_pool_enabled() - Get RX refill buffer pool enabled flag
2038*5113495bSYour Name  *
2039*5113495bSYour Name  *
2040*5113495bSYour Name  * @cfg: soc configuration context
2041*5113495bSYour Name  *
2042*5113495bSYour Name  * Return: true if enabled, false otherwise.
2043*5113495bSYour Name  */
2044*5113495bSYour Name bool wlan_cfg_is_rx_refill_buffer_pool_enabled(struct wlan_cfg_dp_soc_ctxt *cfg);
2045*5113495bSYour Name 
2046*5113495bSYour Name /**
2047*5113495bSYour Name  * wlan_cfg_is_dp_buf_page_frag_alloc_enable() - Get nbuf allocations from page
2048*5113495bSYour Name  *						 frags.
2049*5113495bSYour Name  *
2050*5113495bSYour Name  * @cfg: soc configuration context
2051*5113495bSYour Name  *
2052*5113495bSYour Name  * Return: true if enabled, false otherwise.
2053*5113495bSYour Name  */
2054*5113495bSYour Name 
2055*5113495bSYour Name bool
2056*5113495bSYour Name wlan_cfg_is_dp_buf_page_frag_alloc_enable(struct wlan_cfg_dp_soc_ctxt *cfg);
2057*5113495bSYour Name 
2058*5113495bSYour Name #ifdef WLAN_FEATURE_RX_PREALLOC_BUFFER_POOL
2059*5113495bSYour Name /**
2060*5113495bSYour Name  * wlan_cfg_get_rx_refill_buf_pool_size() - Get Rx refill buf pool size
2061*5113495bSYour Name  *
2062*5113495bSYour Name  * @cfg: soc configuration context
2063*5113495bSYour Name  *
2064*5113495bSYour Name  * Return: Rx refill buffer pool size
2065*5113495bSYour Name  */
2066*5113495bSYour Name int wlan_cfg_get_rx_refill_buf_pool_size(struct wlan_cfg_dp_soc_ctxt *cfg);
2067*5113495bSYour Name 
2068*5113495bSYour Name /**
2069*5113495bSYour Name  * wlan_cfg_set_rx_refill_buf_pool_size() - Set Rx refill buf pool size
2070*5113495bSYour Name  *
2071*5113495bSYour Name  * @cfg: soc configuration context
2072*5113495bSYour Name  * @size: size of the Rx buffer pool size
2073*5113495bSYour Name  *
2074*5113495bSYour Name  * Return: None
2075*5113495bSYour Name  */
2076*5113495bSYour Name void
2077*5113495bSYour Name wlan_cfg_set_rx_refill_buf_pool_size(struct wlan_cfg_dp_soc_ctxt *cfg,
2078*5113495bSYour Name 				     int size);
2079*5113495bSYour Name #endif
2080*5113495bSYour Name 
2081*5113495bSYour Name void wlan_cfg_set_tso_desc_attach_defer(struct wlan_cfg_dp_soc_ctxt *cfg,
2082*5113495bSYour Name 					bool val);
2083*5113495bSYour Name 
2084*5113495bSYour Name bool wlan_cfg_is_tso_desc_attach_defer(struct wlan_cfg_dp_soc_ctxt *cfg);
2085*5113495bSYour Name 
2086*5113495bSYour Name /**
2087*5113495bSYour Name  * wlan_cfg_get_reo_rings_mapping() - Get Reo destination ring bitmap
2088*5113495bSYour Name  *
2089*5113495bSYour Name  *
2090*5113495bSYour Name  * @cfg: soc configuration context
2091*5113495bSYour Name  *
2092*5113495bSYour Name  * Return: reo ring bitmap.
2093*5113495bSYour Name  */
2094*5113495bSYour Name uint32_t wlan_cfg_get_reo_rings_mapping(struct wlan_cfg_dp_soc_ctxt *cfg);
2095*5113495bSYour Name 
2096*5113495bSYour Name /**
2097*5113495bSYour Name  * wlan_cfg_get_rx_rings_mapping() - Get RX ring bitmap
2098*5113495bSYour Name  *
2099*5113495bSYour Name  * @cfg: soc configuration context
2100*5113495bSYour Name  *
2101*5113495bSYour Name  * Return: rx ring bitmap.
2102*5113495bSYour Name  */
2103*5113495bSYour Name uint32_t wlan_cfg_get_rx_rings_mapping(struct wlan_cfg_dp_soc_ctxt *cfg);
2104*5113495bSYour Name 
2105*5113495bSYour Name /**
2106*5113495bSYour Name  * wlan_cfg_set_peer_ext_stats() - set peer extended stats
2107*5113495bSYour Name  *
2108*5113495bSYour Name  * @cfg: soc configuration context
2109*5113495bSYour Name  * @val: Flag value read from INI
2110*5113495bSYour Name  *
2111*5113495bSYour Name  * Return: void
2112*5113495bSYour Name  */
2113*5113495bSYour Name void
2114*5113495bSYour Name wlan_cfg_set_peer_ext_stats(struct wlan_cfg_dp_soc_ctxt *cfg,
2115*5113495bSYour Name 			    bool val);
2116*5113495bSYour Name 
2117*5113495bSYour Name /**
2118*5113495bSYour Name  * wlan_cfg_set_peer_jitter_stats() - set peer jitter stats
2119*5113495bSYour Name  *
2120*5113495bSYour Name  * @cfg: soc configuration context
2121*5113495bSYour Name  * @val: Flag value read from INI
2122*5113495bSYour Name  *
2123*5113495bSYour Name  * Return: bool
2124*5113495bSYour Name  */
2125*5113495bSYour Name void
2126*5113495bSYour Name wlan_cfg_set_peer_jitter_stats(struct wlan_cfg_dp_soc_ctxt *cfg,
2127*5113495bSYour Name 			       bool val);
2128*5113495bSYour Name 
2129*5113495bSYour Name /**
2130*5113495bSYour Name  * wlan_cfg_is_peer_ext_stats_enabled() - Check if peer extended
2131*5113495bSYour Name  *                                        stats are enabled
2132*5113495bSYour Name  *
2133*5113495bSYour Name  * @cfg: soc configuration context
2134*5113495bSYour Name  *
2135*5113495bSYour Name  * Return: bool
2136*5113495bSYour Name  */
2137*5113495bSYour Name bool
2138*5113495bSYour Name wlan_cfg_is_peer_ext_stats_enabled(struct wlan_cfg_dp_soc_ctxt *cfg);
2139*5113495bSYour Name 
2140*5113495bSYour Name /**
2141*5113495bSYour Name  * wlan_cfg_is_peer_jitter_stats_enabled() - check if jitter stats are enabled
2142*5113495bSYour Name  *
2143*5113495bSYour Name  * @cfg: soc configuration context
2144*5113495bSYour Name  *
2145*5113495bSYour Name  * Return: bool
2146*5113495bSYour Name  */
2147*5113495bSYour Name bool
2148*5113495bSYour Name wlan_cfg_is_peer_jitter_stats_enabled(struct wlan_cfg_dp_soc_ctxt *cfg);
2149*5113495bSYour Name 
2150*5113495bSYour Name /**
2151*5113495bSYour Name  * wlan_cfg_is_poll_mode_enabled() - Check if poll mode is enabled
2152*5113495bSYour Name  *
2153*5113495bSYour Name  * @cfg: soc configuration context
2154*5113495bSYour Name  *
2155*5113495bSYour Name  * Return: bool
2156*5113495bSYour Name  */
2157*5113495bSYour Name 
2158*5113495bSYour Name bool wlan_cfg_is_poll_mode_enabled(struct wlan_cfg_dp_soc_ctxt *cfg);
2159*5113495bSYour Name 
2160*5113495bSYour Name /**
2161*5113495bSYour Name  * wlan_cfg_is_fst_in_cmem_enabled() - Check if FST in CMEM is enabled
2162*5113495bSYour Name  * @cfg: soc configuration context
2163*5113495bSYour Name  *
2164*5113495bSYour Name  * Return: true if enabled, false otherwise.
2165*5113495bSYour Name  */
2166*5113495bSYour Name bool wlan_cfg_is_fst_in_cmem_enabled(struct wlan_cfg_dp_soc_ctxt *cfg);
2167*5113495bSYour Name 
2168*5113495bSYour Name /**
2169*5113495bSYour Name  * wlan_cfg_is_swlm_enabled() - Get SWLMenabled flag
2170*5113495bSYour Name  * @cfg: soc configuration context
2171*5113495bSYour Name  *
2172*5113495bSYour Name  * Return: true if enabled, false otherwise.
2173*5113495bSYour Name  */
2174*5113495bSYour Name bool wlan_cfg_is_swlm_enabled(struct wlan_cfg_dp_soc_ctxt *cfg);
2175*5113495bSYour Name 
2176*5113495bSYour Name /**
2177*5113495bSYour Name  * wlan_cfg_set_peer_link_stats() - set peer link stats
2178*5113495bSYour Name  *
2179*5113495bSYour Name  * @cfg: soc configuration context
2180*5113495bSYour Name  * @val: Flag value read from INI
2181*5113495bSYour Name  *
2182*5113495bSYour Name  * Return: void
2183*5113495bSYour Name  */
2184*5113495bSYour Name void
2185*5113495bSYour Name wlan_cfg_set_peer_link_stats(struct wlan_cfg_dp_soc_ctxt *cfg,
2186*5113495bSYour Name 			     bool val);
2187*5113495bSYour Name /**
2188*5113495bSYour Name  * wlan_cfg_is_peer_link_stats_enabled() - check if link peer stats are enabled
2189*5113495bSYour Name  *
2190*5113495bSYour Name  * @cfg: soc configuration context
2191*5113495bSYour Name  *
2192*5113495bSYour Name  * Return: bool
2193*5113495bSYour Name  */
2194*5113495bSYour Name bool
2195*5113495bSYour Name wlan_cfg_is_peer_link_stats_enabled(struct wlan_cfg_dp_soc_ctxt *cfg);
2196*5113495bSYour Name 
2197*5113495bSYour Name #ifdef IPA_OFFLOAD
2198*5113495bSYour Name /**
2199*5113495bSYour Name  * wlan_cfg_ipa_tx_ring_size - Get Tx DMA ring size (TCL Data Ring)
2200*5113495bSYour Name  * @cfg: dp cfg context
2201*5113495bSYour Name  *
2202*5113495bSYour Name  * Return: IPA Tx Ring Size
2203*5113495bSYour Name  */
2204*5113495bSYour Name uint32_t wlan_cfg_ipa_tx_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg);
2205*5113495bSYour Name 
2206*5113495bSYour Name /**
2207*5113495bSYour Name  * wlan_cfg_ipa_tx_comp_ring_size - Get Tx completion ring size (WBM Ring)
2208*5113495bSYour Name  * @cfg: dp cfg context
2209*5113495bSYour Name  *
2210*5113495bSYour Name  * Return: IPA Tx Completion ring size
2211*5113495bSYour Name  */
2212*5113495bSYour Name uint32_t wlan_cfg_ipa_tx_comp_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg);
2213*5113495bSYour Name 
2214*5113495bSYour Name /**
2215*5113495bSYour Name  * wlan_cfg_ipa_tx_alt_ring_size - Get Tx alt DMA ring size (TCL Data Ring)
2216*5113495bSYour Name  * @cfg: dp cfg context
2217*5113495bSYour Name  *
2218*5113495bSYour Name  * Return: IPA Tx alt Ring Size
2219*5113495bSYour Name  */
2220*5113495bSYour Name int wlan_cfg_ipa_tx_alt_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg);
2221*5113495bSYour Name 
2222*5113495bSYour Name /**
2223*5113495bSYour Name  * wlan_cfg_ipa_tx_alt_comp_ring_size - Get Tx alt comp DMA ring size
2224*5113495bSYour Name  *  (TCL Data Ring)
2225*5113495bSYour Name  * @cfg: dp cfg context
2226*5113495bSYour Name  *
2227*5113495bSYour Name  * Return: IPA Tx alt comp Ring Size
2228*5113495bSYour Name  */
2229*5113495bSYour Name int
2230*5113495bSYour Name wlan_cfg_ipa_tx_alt_comp_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg);
2231*5113495bSYour Name 
2232*5113495bSYour Name #else
2233*5113495bSYour Name static inline
wlan_cfg_ipa_tx_ring_size(struct wlan_cfg_dp_soc_ctxt * cfg)2234*5113495bSYour Name uint32_t wlan_cfg_ipa_tx_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg)
2235*5113495bSYour Name {
2236*5113495bSYour Name 	return 0;
2237*5113495bSYour Name }
2238*5113495bSYour Name 
2239*5113495bSYour Name static inline
wlan_cfg_ipa_tx_comp_ring_size(struct wlan_cfg_dp_soc_ctxt * cfg)2240*5113495bSYour Name uint32_t wlan_cfg_ipa_tx_comp_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg)
2241*5113495bSYour Name {
2242*5113495bSYour Name 	return 0;
2243*5113495bSYour Name }
2244*5113495bSYour Name #endif
2245*5113495bSYour Name 
2246*5113495bSYour Name /**
2247*5113495bSYour Name  * wlan_cfg_radio0_default_reo_get -  Get Radio0 default REO
2248*5113495bSYour Name  * @cfg: soc configuration context
2249*5113495bSYour Name  *
2250*5113495bSYour Name  * Return: None
2251*5113495bSYour Name  */
2252*5113495bSYour Name uint8_t wlan_cfg_radio0_default_reo_get(struct wlan_cfg_dp_soc_ctxt *cfg);
2253*5113495bSYour Name 
2254*5113495bSYour Name /**
2255*5113495bSYour Name  * wlan_cfg_radio1_default_reo_get - Get Radio1 default REO
2256*5113495bSYour Name  * @cfg: soc configuration context
2257*5113495bSYour Name  *
2258*5113495bSYour Name  * Return: None
2259*5113495bSYour Name  */
2260*5113495bSYour Name uint8_t wlan_cfg_radio1_default_reo_get(struct wlan_cfg_dp_soc_ctxt *cfg);
2261*5113495bSYour Name 
2262*5113495bSYour Name /**
2263*5113495bSYour Name  * wlan_cfg_radio2_default_reo_get() - Get Radio2 default REO
2264*5113495bSYour Name  * @cfg: soc configuration context
2265*5113495bSYour Name  *
2266*5113495bSYour Name  * Return: None
2267*5113495bSYour Name  */
2268*5113495bSYour Name uint8_t wlan_cfg_radio2_default_reo_get(struct wlan_cfg_dp_soc_ctxt *cfg);
2269*5113495bSYour Name 
2270*5113495bSYour Name /**
2271*5113495bSYour Name  * wlan_cfg_set_rxdma1_enable() - Enable rxdma1
2272*5113495bSYour Name  * @wlan_cfg_ctx: soc configuration context
2273*5113495bSYour Name  *
2274*5113495bSYour Name  * Return: None
2275*5113495bSYour Name  */
2276*5113495bSYour Name void wlan_cfg_set_rxdma1_enable(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
2277*5113495bSYour Name 
2278*5113495bSYour Name /**
2279*5113495bSYour Name  * wlan_cfg_is_delay_mon_replenish() - Get if delayed monitor replenish
2280*5113495bSYour Name  * is enabled
2281*5113495bSYour Name  * @cfg: soc configuration context
2282*5113495bSYour Name  *
2283*5113495bSYour Name  * Return: true if enabled, false otherwise.
2284*5113495bSYour Name  */
2285*5113495bSYour Name bool
2286*5113495bSYour Name wlan_cfg_is_delay_mon_replenish(struct wlan_cfg_dp_soc_ctxt *cfg);
2287*5113495bSYour Name 
2288*5113495bSYour Name /**
2289*5113495bSYour Name  * wlan_cfg_set_delay_mon_replenish() - Set delayed monitor replenish
2290*5113495bSYour Name  * @cfg: soc configuration context
2291*5113495bSYour Name  * @val: val to set
2292*5113495bSYour Name  *
2293*5113495bSYour Name  * Return: None
2294*5113495bSYour Name  */
2295*5113495bSYour Name void
2296*5113495bSYour Name wlan_cfg_set_delay_mon_replenish(struct wlan_cfg_dp_soc_ctxt *cfg, bool val);
2297*5113495bSYour Name 
2298*5113495bSYour Name /**
2299*5113495bSYour Name  * wlan_cfg_dp_soc_ctx_dump() - Dump few DP cfg soc parameters
2300*5113495bSYour Name  * @cfg: soc configuration context
2301*5113495bSYour Name  *
2302*5113495bSYour Name  * Return:
2303*5113495bSYour Name  */
2304*5113495bSYour Name void wlan_cfg_dp_soc_ctx_dump(struct wlan_cfg_dp_soc_ctxt *cfg);
2305*5113495bSYour Name 
2306*5113495bSYour Name #ifdef WLAN_SUPPORT_PPEDS
2307*5113495bSYour Name /**
2308*5113495bSYour Name  * wlan_cfg_get_dp_soc_ppeds_enable() - API to get ppe enable flag
2309*5113495bSYour Name  * @cfg: Configuration Handle
2310*5113495bSYour Name  *
2311*5113495bSYour Name  * Return: true if ppeds support is enabled else return false
2312*5113495bSYour Name  */
2313*5113495bSYour Name bool
2314*5113495bSYour Name wlan_cfg_get_dp_soc_ppeds_enable(struct wlan_cfg_dp_soc_ctxt *cfg);
2315*5113495bSYour Name 
2316*5113495bSYour Name /**
2317*5113495bSYour Name  * wlan_cfg_get_dp_soc_reo2ppe_ring_size() - get ppe rx ring size
2318*5113495bSYour Name  * @cfg: Configuration Handle
2319*5113495bSYour Name  *
2320*5113495bSYour Name  * Return: size of reo2ppe ring
2321*5113495bSYour Name  */
2322*5113495bSYour Name int
2323*5113495bSYour Name wlan_cfg_get_dp_soc_reo2ppe_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg);
2324*5113495bSYour Name 
2325*5113495bSYour Name /**
2326*5113495bSYour Name  * wlan_cfg_get_dp_soc_ppe2tcl_ring_size() - get ppe tx ring size
2327*5113495bSYour Name  * @cfg: Configuration Handle
2328*5113495bSYour Name  *
2329*5113495bSYour Name  * Return: size of ppe2tcl ring
2330*5113495bSYour Name  */
2331*5113495bSYour Name int
2332*5113495bSYour Name wlan_cfg_get_dp_soc_ppe2tcl_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg);
2333*5113495bSYour Name 
2334*5113495bSYour Name /**
2335*5113495bSYour Name  * wlan_cfg_get_dp_soc_ppeds_num_tx_desc() - Number of ppeds tx Descriptors
2336*5113495bSYour Name  * @cfg: Configuration Handle
2337*5113495bSYour Name  *
2338*5113495bSYour Name  * Return: num_tx_desc
2339*5113495bSYour Name  */
2340*5113495bSYour Name int
2341*5113495bSYour Name wlan_cfg_get_dp_soc_ppeds_num_tx_desc(struct wlan_cfg_dp_soc_ctxt *cfg);
2342*5113495bSYour Name 
2343*5113495bSYour Name /**
2344*5113495bSYour Name  * wlan_cfg_get_dp_soc_ppeds_tx_desc_hotlist_len() - Max hotlist len of tx descs
2345*5113495bSYour Name  * @cfg: Configuration Handle
2346*5113495bSYour Name  *
2347*5113495bSYour Name  * Return: hotlist len
2348*5113495bSYour Name  */
2349*5113495bSYour Name int
2350*5113495bSYour Name wlan_cfg_get_dp_soc_ppeds_tx_desc_hotlist_len(struct wlan_cfg_dp_soc_ctxt *cfg);
2351*5113495bSYour Name /**
2352*5113495bSYour Name  * wlan_cfg_get_dp_soc_ppeds_tx_comp_napi_budget() - ppeds Tx comp napi budget
2353*5113495bSYour Name  * @cfg: Configuration Handle
2354*5113495bSYour Name  *
2355*5113495bSYour Name  * Return: napi budget
2356*5113495bSYour Name  */
2357*5113495bSYour Name int
2358*5113495bSYour Name wlan_cfg_get_dp_soc_ppeds_tx_comp_napi_budget(struct wlan_cfg_dp_soc_ctxt *cfg);
2359*5113495bSYour Name #else
2360*5113495bSYour Name static inline bool
wlan_cfg_get_dp_soc_ppeds_enable(struct wlan_cfg_dp_soc_ctxt * cfg)2361*5113495bSYour Name wlan_cfg_get_dp_soc_ppeds_enable(struct wlan_cfg_dp_soc_ctxt *cfg)
2362*5113495bSYour Name {
2363*5113495bSYour Name 	return false;
2364*5113495bSYour Name }
2365*5113495bSYour Name 
2366*5113495bSYour Name static inline int
wlan_cfg_get_dp_soc_reo2ppe_ring_size(struct wlan_cfg_dp_soc_ctxt * cfg)2367*5113495bSYour Name wlan_cfg_get_dp_soc_reo2ppe_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg)
2368*5113495bSYour Name {
2369*5113495bSYour Name 	return 0;
2370*5113495bSYour Name }
2371*5113495bSYour Name 
2372*5113495bSYour Name static inline int
wlan_cfg_get_dp_soc_ppe2tcl_ring_size(struct wlan_cfg_dp_soc_ctxt * cfg)2373*5113495bSYour Name wlan_cfg_get_dp_soc_ppe2tcl_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg)
2374*5113495bSYour Name {
2375*5113495bSYour Name 	return 0;
2376*5113495bSYour Name }
2377*5113495bSYour Name 
2378*5113495bSYour Name static inline int
wlan_cfg_get_dp_soc_ppeds_num_tx_desc(struct wlan_cfg_dp_soc_ctxt * cfg)2379*5113495bSYour Name wlan_cfg_get_dp_soc_ppeds_num_tx_desc(struct wlan_cfg_dp_soc_ctxt *cfg)
2380*5113495bSYour Name {
2381*5113495bSYour Name 	return 0;
2382*5113495bSYour Name }
2383*5113495bSYour Name 
2384*5113495bSYour Name static inline int
wlan_cfg_get_dp_soc_ppeds_tx_comp_napi_budget(struct wlan_cfg_dp_soc_ctxt * cfg)2385*5113495bSYour Name wlan_cfg_get_dp_soc_ppeds_tx_comp_napi_budget(struct wlan_cfg_dp_soc_ctxt *cfg)
2386*5113495bSYour Name {
2387*5113495bSYour Name 	return 0;
2388*5113495bSYour Name }
2389*5113495bSYour Name 
2390*5113495bSYour Name static inline int
wlan_cfg_get_dp_soc_ppeds_tx_desc_hotlist_len(struct wlan_cfg_dp_soc_ctxt * cfg)2391*5113495bSYour Name wlan_cfg_get_dp_soc_ppeds_tx_desc_hotlist_len(struct wlan_cfg_dp_soc_ctxt *cfg)
2392*5113495bSYour Name {
2393*5113495bSYour Name 	return 0;
2394*5113495bSYour Name }
2395*5113495bSYour Name #endif
2396*5113495bSYour Name 
2397*5113495bSYour Name /**
2398*5113495bSYour Name  * wlan_cfg_get_prealloc_cfg() - Get dp prealloc related cfg param
2399*5113495bSYour Name  * @ctrl_psoc: PSOC object
2400*5113495bSYour Name  * @cfg: cfg ctx where values will be populated
2401*5113495bSYour Name  *
2402*5113495bSYour Name  * Return: None
2403*5113495bSYour Name  */
2404*5113495bSYour Name void
2405*5113495bSYour Name wlan_cfg_get_prealloc_cfg(struct cdp_ctrl_objmgr_psoc *ctrl_psoc,
2406*5113495bSYour Name 			  struct wlan_dp_prealloc_cfg *cfg);
2407*5113495bSYour Name #ifdef WLAN_FEATURE_PKT_CAPTURE_V2
2408*5113495bSYour Name /**
2409*5113495bSYour Name  * wlan_cfg_get_pkt_capture_mode() - Get packet capture mode config
2410*5113495bSYour Name  * @cfg: config context
2411*5113495bSYour Name  *
2412*5113495bSYour Name  * Return: value of packet capture mode
2413*5113495bSYour Name  */
2414*5113495bSYour Name uint32_t wlan_cfg_get_pkt_capture_mode(struct wlan_cfg_dp_soc_ctxt *cfg);
2415*5113495bSYour Name #else
2416*5113495bSYour Name static inline
wlan_cfg_get_pkt_capture_mode(struct wlan_cfg_dp_soc_ctxt * cfg)2417*5113495bSYour Name uint32_t wlan_cfg_get_pkt_capture_mode(struct wlan_cfg_dp_soc_ctxt *cfg)
2418*5113495bSYour Name {
2419*5113495bSYour Name 	return 0;
2420*5113495bSYour Name }
2421*5113495bSYour Name #endif
2422*5113495bSYour Name 
2423*5113495bSYour Name /**
2424*5113495bSYour Name  * wlan_cfg_get_dp_soc_rx_mon_buf_ring_size() - Rx MON buf ring size
2425*5113495bSYour Name  * @cfg:  Configuration Handle
2426*5113495bSYour Name  *
2427*5113495bSYour Name  * Return: Size of Rx MON buf ring size
2428*5113495bSYour Name  */
2429*5113495bSYour Name uint32_t
2430*5113495bSYour Name wlan_cfg_get_dp_soc_rx_mon_buf_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg);
2431*5113495bSYour Name 
2432*5113495bSYour Name /**
2433*5113495bSYour Name  * wlan_cfg_get_dp_soc_tx_mon_buf_ring_size() - Tx MON buf ring size
2434*5113495bSYour Name  * @cfg:  Configuration Handle
2435*5113495bSYour Name  *
2436*5113495bSYour Name  * Return: Size of Tx MON buf ring size
2437*5113495bSYour Name  */
2438*5113495bSYour Name uint32_t
2439*5113495bSYour Name wlan_cfg_get_dp_soc_tx_mon_buf_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg);
2440*5113495bSYour Name 
2441*5113495bSYour Name /**
2442*5113495bSYour Name  * wlan_cfg_get_dma_rx_mon_dest_ring_size() - Rx MON dest ring size
2443*5113495bSYour Name  * @cfg:  Configuration Handle
2444*5113495bSYour Name  *
2445*5113495bSYour Name  * Return: Size of Rx MON dest ring size
2446*5113495bSYour Name  */
2447*5113495bSYour Name int wlan_cfg_get_dma_rx_mon_dest_ring_size(struct wlan_cfg_dp_pdev_ctxt *cfg);
2448*5113495bSYour Name 
2449*5113495bSYour Name /**
2450*5113495bSYour Name  * wlan_cfg_get_dma_sw2rxdma_link_ring_size() - SW2RXDMA link ring size
2451*5113495bSYour Name  * @cfg:  Configuration Handle
2452*5113495bSYour Name  *
2453*5113495bSYour Name  * Return: Size of SW2RXDMA link ring size
2454*5113495bSYour Name  */
2455*5113495bSYour Name int wlan_cfg_get_dma_sw2rxdma_link_ring_size(struct wlan_cfg_dp_pdev_ctxt *cfg);
2456*5113495bSYour Name 
2457*5113495bSYour Name /**
2458*5113495bSYour Name  * wlan_cfg_get_dma_tx_mon_dest_ring_size() - Tx MON dest ring size
2459*5113495bSYour Name  * @cfg:  Configuration Handle
2460*5113495bSYour Name  *
2461*5113495bSYour Name  * Return: Size of Tx MON dest ring size
2462*5113495bSYour Name  */
2463*5113495bSYour Name int wlan_cfg_get_dma_tx_mon_dest_ring_size(struct wlan_cfg_dp_pdev_ctxt *cfg);
2464*5113495bSYour Name 
2465*5113495bSYour Name /**
2466*5113495bSYour Name  * wlan_cfg_get_rx_rel_ring_id() - get wbm2sw ring id for Rx release ring
2467*5113495bSYour Name  * @cfg: Configuration Handle
2468*5113495bSYour Name  *
2469*5113495bSYour Name  * Return: wbm2sw ring id
2470*5113495bSYour Name  */
2471*5113495bSYour Name uint8_t
2472*5113495bSYour Name wlan_cfg_get_rx_rel_ring_id(struct wlan_cfg_dp_soc_ctxt *cfg);
2473*5113495bSYour Name 
2474*5113495bSYour Name /**
2475*5113495bSYour Name  * wlan_cfg_set_rx_rel_ring_id() - set wbm2sw ring id for Rx release ring
2476*5113495bSYour Name  * @cfg: soc configuration context
2477*5113495bSYour Name  * @wbm2sw_ring_id: wbm2sw ring id
2478*5113495bSYour Name  *
2479*5113495bSYour Name  * Return: None
2480*5113495bSYour Name  */
2481*5113495bSYour Name void
2482*5113495bSYour Name wlan_cfg_set_rx_rel_ring_id(struct wlan_cfg_dp_soc_ctxt *cfg,
2483*5113495bSYour Name 			    uint8_t wbm2sw_ring_id);
2484*5113495bSYour Name 
2485*5113495bSYour Name /**
2486*5113495bSYour Name  * wlan_cfg_set_vdev_stats_hw_offload_config() - Set hw vdev stats offload
2487*5113495bSYour Name  *						 config
2488*5113495bSYour Name  * @cfg: config context
2489*5113495bSYour Name  * @value: value to be set
2490*5113495bSYour Name  *
2491*5113495bSYour Name  * Return: none
2492*5113495bSYour Name  */
2493*5113495bSYour Name void
2494*5113495bSYour Name wlan_cfg_set_vdev_stats_hw_offload_config(struct wlan_cfg_dp_soc_ctxt *cfg,
2495*5113495bSYour Name 					  bool value);
2496*5113495bSYour Name 
2497*5113495bSYour Name /**
2498*5113495bSYour Name  * wlan_cfg_get_vdev_stats_hw_offload_config() - Get hw vdev stats offload
2499*5113495bSYour Name  *						 config
2500*5113495bSYour Name  * @cfg: config context
2501*5113495bSYour Name  *
2502*5113495bSYour Name  * Return: value of hw vdev stats config
2503*5113495bSYour Name  */
2504*5113495bSYour Name bool
2505*5113495bSYour Name wlan_cfg_get_vdev_stats_hw_offload_config(struct wlan_cfg_dp_soc_ctxt *cfg);
2506*5113495bSYour Name 
2507*5113495bSYour Name /**
2508*5113495bSYour Name  * wlan_cfg_get_vdev_stats_hw_offload_timer()- Get hw vdev stats timer duration
2509*5113495bSYour Name  * @cfg: config context
2510*5113495bSYour Name  *
2511*5113495bSYour Name  * Return: value of hw vdev stats timer duration
2512*5113495bSYour Name  */
2513*5113495bSYour Name int wlan_cfg_get_vdev_stats_hw_offload_timer(struct wlan_cfg_dp_soc_ctxt *cfg);
2514*5113495bSYour Name 
2515*5113495bSYour Name /**
2516*5113495bSYour Name  * wlan_cfg_set_sawf_config() - Set SAWF config enable/disable
2517*5113495bSYour Name  * @cfg: config context
2518*5113495bSYour Name  * @value: value to be set
2519*5113495bSYour Name  *
2520*5113495bSYour Name  * Return: none
2521*5113495bSYour Name  */
2522*5113495bSYour Name void
2523*5113495bSYour Name wlan_cfg_set_sawf_config(struct wlan_cfg_dp_soc_ctxt *cfg, bool value);
2524*5113495bSYour Name 
2525*5113495bSYour Name /**
2526*5113495bSYour Name  * wlan_cfg_get_sawf_config() - Get SAWF config enable/disable
2527*5113495bSYour Name  * @cfg: config context
2528*5113495bSYour Name  *
2529*5113495bSYour Name  * Return: true or false
2530*5113495bSYour Name  */
2531*5113495bSYour Name bool
2532*5113495bSYour Name wlan_cfg_get_sawf_config(struct wlan_cfg_dp_soc_ctxt *cfg);
2533*5113495bSYour Name 
2534*5113495bSYour Name /**
2535*5113495bSYour Name  * wlan_cfg_set_sawf_stats_config() - Set SAWF stats config
2536*5113495bSYour Name  * @cfg: config context
2537*5113495bSYour Name  * @value: value to be set
2538*5113495bSYour Name  *
2539*5113495bSYour Name  * Return: void
2540*5113495bSYour Name  */
2541*5113495bSYour Name void
2542*5113495bSYour Name wlan_cfg_set_sawf_stats_config(struct wlan_cfg_dp_soc_ctxt *cfg, uint8_t value);
2543*5113495bSYour Name 
2544*5113495bSYour Name /**
2545*5113495bSYour Name  * wlan_cfg_get_sawf_stats_config() - Get SAWF stats config
2546*5113495bSYour Name  * @cfg: config context
2547*5113495bSYour Name  *
2548*5113495bSYour Name  * Return: value for sawf_stats_config
2549*5113495bSYour Name  */
2550*5113495bSYour Name uint8_t
2551*5113495bSYour Name wlan_cfg_get_sawf_stats_config(struct wlan_cfg_dp_soc_ctxt *cfg);
2552*5113495bSYour Name 
2553*5113495bSYour Name #if defined(WLAN_FEATURE_11BE_MLO) && defined(WLAN_MLO_MULTI_CHIP)
2554*5113495bSYour Name /**
2555*5113495bSYour Name  * wlan_cfg_mlo_rx_ring_map_get() - get rx ring map
2556*5113495bSYour Name  * @cfg: soc configuration context
2557*5113495bSYour Name  *
2558*5113495bSYour Name  * Return: rx_ring_map
2559*5113495bSYour Name  */
2560*5113495bSYour Name uint8_t
2561*5113495bSYour Name wlan_cfg_mlo_rx_ring_map_get(struct wlan_cfg_dp_soc_ctxt *cfg);
2562*5113495bSYour Name #endif
2563*5113495bSYour Name 
2564*5113495bSYour Name /**
2565*5113495bSYour Name  * wlan_cfg_set_host2txmon_ring_mask() - Set host2txmon ring
2566*5113495bSYour Name  *                               interrupt mask mapped to an interrupt context
2567*5113495bSYour Name  * @cfg: Configuration Handle
2568*5113495bSYour Name  * @context: interrupt context
2569*5113495bSYour Name  * @mask: interrupt mask
2570*5113495bSYour Name  *
2571*5113495bSYour Name  * Return: None
2572*5113495bSYour Name  */
2573*5113495bSYour Name void wlan_cfg_set_host2txmon_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg,
2574*5113495bSYour Name 				       int context, int mask);
2575*5113495bSYour Name /**
2576*5113495bSYour Name  * wlan_cfg_get_host2txmon_ring_mask() - Return host2txmon ring
2577*5113495bSYour Name  *                               interrupt mask mapped to an interrupt context
2578*5113495bSYour Name  * @cfg: Configuration Handle
2579*5113495bSYour Name  * @context: Numerical ID identifying the Interrupt/NAPI context
2580*5113495bSYour Name  *
2581*5113495bSYour Name  * Return: int_host2txmon_ring_mask[context]
2582*5113495bSYour Name  */
2583*5113495bSYour Name int wlan_cfg_get_host2txmon_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg,
2584*5113495bSYour Name 				      int context);
2585*5113495bSYour Name /**
2586*5113495bSYour Name  * wlan_cfg_set_txmon_hw_support () - Set txmon hw support
2587*5113495bSYour Name  * @cfg:  Configuration Handle
2588*5113495bSYour Name  * @txmon_hw_support: value to set
2589*5113495bSYour Name  *
2590*5113495bSYour Name  * Return: None
2591*5113495bSYour Name  */
2592*5113495bSYour Name void wlan_cfg_set_txmon_hw_support(struct wlan_cfg_dp_soc_ctxt *cfg,
2593*5113495bSYour Name 				   bool txmon_hw_support);
2594*5113495bSYour Name 
2595*5113495bSYour Name /**
2596*5113495bSYour Name  * wlan_cfg_get_txmon_hw_support () - Get txmon hw support
2597*5113495bSYour Name  * @cfg:  Configuration Handle
2598*5113495bSYour Name  *
2599*5113495bSYour Name  * Return: txmon_hw_support
2600*5113495bSYour Name  */
2601*5113495bSYour Name bool wlan_cfg_get_txmon_hw_support(struct wlan_cfg_dp_soc_ctxt *cfg);
2602*5113495bSYour Name 
2603*5113495bSYour Name void wlan_cfg_set_txmon_sw_peer_filtering(struct wlan_cfg_dp_soc_ctxt *cfg,
2604*5113495bSYour Name 					  bool txmon_sw_peer_filtering);
2605*5113495bSYour Name bool wlan_cfg_get_txmon_sw_peer_filtering(struct wlan_cfg_dp_soc_ctxt *cfg);
2606*5113495bSYour Name 
2607*5113495bSYour Name #ifdef WLAN_TX_PKT_CAPTURE_ENH
2608*5113495bSYour Name /**
2609*5113495bSYour Name  * wlan_cfg_get_tx_capt_max_mem - Get max memory allowed for TX capture feature
2610*5113495bSYour Name  * @cfg: Configuration Handle
2611*5113495bSYour Name  *
2612*5113495bSYour Name  * Return: user given size in bytes
2613*5113495bSYour Name  */
2614*5113495bSYour Name static inline int
wlan_cfg_get_tx_capt_max_mem(struct wlan_cfg_dp_soc_ctxt * cfg)2615*5113495bSYour Name wlan_cfg_get_tx_capt_max_mem(struct wlan_cfg_dp_soc_ctxt *cfg)
2616*5113495bSYour Name {
2617*5113495bSYour Name 	return cfg->tx_capt_max_mem_allowed;
2618*5113495bSYour Name }
2619*5113495bSYour Name 
2620*5113495bSYour Name /**
2621*5113495bSYour Name  * wlan_cfg_get_tx_capt_rbm_id - Get RBM_ID to be used for tx capture feature
2622*5113495bSYour Name  * @cfg: Configuration Handle
2623*5113495bSYour Name  * @idx: Pdev_id
2624*5113495bSYour Name  *
2625*5113495bSYour Name  * Return: Return Buffer manager id to be used
2626*5113495bSYour Name  */
2627*5113495bSYour Name static inline int
wlan_cfg_get_tx_capt_rbm_id(struct wlan_cfg_dp_soc_ctxt * cfg,uint8_t idx)2628*5113495bSYour Name wlan_cfg_get_tx_capt_rbm_id(struct wlan_cfg_dp_soc_ctxt *cfg, uint8_t idx)
2629*5113495bSYour Name {
2630*5113495bSYour Name 	if (idx >= MAX_PDEV_CNT) {
2631*5113495bSYour Name 		qdf_err("!!! pdev index is greater than expected");
2632*5113495bSYour Name 		qdf_assert(0);
2633*5113495bSYour Name 		/* resetting idx to zero */
2634*5113495bSYour Name 		idx = 0;
2635*5113495bSYour Name 	}
2636*5113495bSYour Name 
2637*5113495bSYour Name 	return cfg->tx_capt_rbm_id[idx];
2638*5113495bSYour Name }
2639*5113495bSYour Name #endif /* WLAN_TX_PKT_CAPTURE_ENH */
2640*5113495bSYour Name 
2641*5113495bSYour Name #ifdef DP_TX_PACKET_INSPECT_FOR_ILP
2642*5113495bSYour Name /**
2643*5113495bSYour Name  * wlan_cfg_get_tx_ilp_inspect_config() - Get TX ILP configuration
2644*5113495bSYour Name  * @cfg: Configuration Handle
2645*5113495bSYour Name  *
2646*5113495bSYour Name  * Return: TX ILP enable or not
2647*5113495bSYour Name  */
2648*5113495bSYour Name static inline bool
wlan_cfg_get_tx_ilp_inspect_config(struct wlan_cfg_dp_soc_ctxt * cfg)2649*5113495bSYour Name wlan_cfg_get_tx_ilp_inspect_config(struct wlan_cfg_dp_soc_ctxt *cfg)
2650*5113495bSYour Name {
2651*5113495bSYour Name 	return cfg->tx_pkt_inspect_for_ilp;
2652*5113495bSYour Name }
2653*5113495bSYour Name #endif
2654*5113495bSYour Name 
2655*5113495bSYour Name /**
2656*5113495bSYour Name  * wlan_cfg_get_napi_scale_factor() - Get napi scale factor
2657*5113495bSYour Name  * @cfg: soc configuration context
2658*5113495bSYour Name  *
2659*5113495bSYour Name  * Return: napi scale factor
2660*5113495bSYour Name  */
2661*5113495bSYour Name uint8_t wlan_cfg_get_napi_scale_factor(struct wlan_cfg_dp_soc_ctxt *cfg);
2662*5113495bSYour Name 
2663*5113495bSYour Name /**
2664*5113495bSYour Name  * wlan_cfg_soc_update_tgt_params() - Update band specific params
2665*5113495bSYour Name  * @wlan_cfg_ctx: SOC cfg context
2666*5113495bSYour Name  * @ctrl_obj: PSOC object
2667*5113495bSYour Name  *
2668*5113495bSYour Name  * Return: void
2669*5113495bSYour Name  */
2670*5113495bSYour Name void
2671*5113495bSYour Name wlan_cfg_soc_update_tgt_params(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx,
2672*5113495bSYour Name 			       struct cdp_ctrl_objmgr_psoc *ctrl_obj);
2673*5113495bSYour Name 
2674*5113495bSYour Name /**
2675*5113495bSYour Name  * wlan_cfg_get_pointer_timer_threshold_rx() - Get timer threshold for RX
2676*5113495bSYour Name  *                                             pointer update
2677*5113495bSYour Name  * @cfg: soc configuration context
2678*5113495bSYour Name  *
2679*5113495bSYour Name  * Return: timer threshold for RX REO Dest ring  pointer update
2680*5113495bSYour Name  */
2681*5113495bSYour Name uint16_t
2682*5113495bSYour Name wlan_cfg_get_pointer_timer_threshold_rx(struct wlan_cfg_dp_soc_ctxt *cfg);
2683*5113495bSYour Name 
2684*5113495bSYour Name /**
2685*5113495bSYour Name  * wlan_cfg_get_pointer_num_threshold_rx() - Get number threshold for RX
2686*5113495bSYour Name  *                                           pointer update
2687*5113495bSYour Name  * @cfg: soc configuration context
2688*5113495bSYour Name  *
2689*5113495bSYour Name  * Return: entries number threshold for RX REO Dest ring  pointer update
2690*5113495bSYour Name  */
2691*5113495bSYour Name uint8_t
2692*5113495bSYour Name wlan_cfg_get_pointer_num_threshold_rx(struct wlan_cfg_dp_soc_ctxt *cfg);
2693*5113495bSYour Name 
2694*5113495bSYour Name #ifdef WLAN_FEATURE_LOCAL_PKT_CAPTURE
2695*5113495bSYour Name static inline
wlan_cfg_get_local_pkt_capture(struct wlan_cfg_dp_soc_ctxt * cfg)2696*5113495bSYour Name bool wlan_cfg_get_local_pkt_capture(struct wlan_cfg_dp_soc_ctxt *cfg)
2697*5113495bSYour Name {
2698*5113495bSYour Name 	return cfg->local_pkt_capture;
2699*5113495bSYour Name }
2700*5113495bSYour Name #else
2701*5113495bSYour Name static inline
wlan_cfg_get_local_pkt_capture(struct wlan_cfg_dp_soc_ctxt * cfg)2702*5113495bSYour Name bool wlan_cfg_get_local_pkt_capture(struct wlan_cfg_dp_soc_ctxt *cfg)
2703*5113495bSYour Name {
2704*5113495bSYour Name 	return false;
2705*5113495bSYour Name }
2706*5113495bSYour Name #endif
2707*5113495bSYour Name 
2708*5113495bSYour Name /**
2709*5113495bSYour Name  * wlan_cfg_get_special_frame_cfg() - Get special frame mask
2710*5113495bSYour Name  * @cfg: soc configuration context
2711*5113495bSYour Name  *
2712*5113495bSYour Name  * Return: frame mask
2713*5113495bSYour Name  */
2714*5113495bSYour Name uint32_t
2715*5113495bSYour Name wlan_cfg_get_special_frame_cfg(struct wlan_cfg_dp_soc_ctxt *cfg);
2716*5113495bSYour Name 
2717*5113495bSYour Name #ifdef DP_UMAC_HW_RESET_SUPPORT
2718*5113495bSYour Name /**
2719*5113495bSYour Name  * wlan_cfg_get_umac_reset_buffer_window_ms() - Get umac reset buffer window
2720*5113495bSYour Name  * @cfg: soc configuration context
2721*5113495bSYour Name  *
2722*5113495bSYour Name  * Return: Umac reset buffer window in milliseconds
2723*5113495bSYour Name  */
2724*5113495bSYour Name uint32_t
2725*5113495bSYour Name wlan_cfg_get_umac_reset_buffer_window_ms(struct wlan_cfg_dp_soc_ctxt *cfg);
2726*5113495bSYour Name #else
2727*5113495bSYour Name static inline uint32_t
wlan_cfg_get_umac_reset_buffer_window_ms(struct wlan_cfg_dp_soc_ctxt * cfg)2728*5113495bSYour Name wlan_cfg_get_umac_reset_buffer_window_ms(struct wlan_cfg_dp_soc_ctxt *cfg)
2729*5113495bSYour Name {
2730*5113495bSYour Name 	return 0;
2731*5113495bSYour Name }
2732*5113495bSYour Name #endif /* DP_UMAC_HW_RESET_SUPPORT */
2733*5113495bSYour Name 
2734*5113495bSYour Name /**
2735*5113495bSYour Name  * wlan_cfg_set_ast_indication_disable - Set AST disable
2736*5113495bSYour Name  *
2737*5113495bSYour Name  * @cfg: soc configuration context
2738*5113495bSYour Name  * @val: value to be set
2739*5113495bSYour Name  *
2740*5113495bSYour Name  * Return: void
2741*5113495bSYour Name  */
2742*5113495bSYour Name void wlan_cfg_set_ast_indication_disable(struct wlan_cfg_dp_soc_ctxt *cfg,
2743*5113495bSYour Name 					 bool val);
2744*5113495bSYour Name 
2745*5113495bSYour Name /**
2746*5113495bSYour Name  * wlan_cfg_get_ast_indication_disable - Get AST disable
2747*5113495bSYour Name  *
2748*5113495bSYour Name  * @cfg: soc configuration context
2749*5113495bSYour Name  *
2750*5113495bSYour Name  * Return: true or false
2751*5113495bSYour Name  */
2752*5113495bSYour Name bool wlan_cfg_get_ast_indication_disable(struct wlan_cfg_dp_soc_ctxt *cfg);
2753*5113495bSYour Name 
2754*5113495bSYour Name /**
2755*5113495bSYour Name  * wlan_cfg_get_dp_soc_dpdk_cfg - Return soc dpdk config
2756*5113495bSYour Name  * @psoc: psoc object
2757*5113495bSYour Name  *
2758*5113495bSYour Name  * Return: dpdk_cfg
2759*5113495bSYour Name  */
2760*5113495bSYour Name int wlan_cfg_get_dp_soc_dpdk_cfg(struct cdp_ctrl_objmgr_psoc *psoc);
2761*5113495bSYour Name #endif /*__WLAN_CFG_H*/
2762