Some AP disables AMSDU in BA256 mode, this has draw back with KPI in HE mode, so leave a config field to use 64 BA forcibly to make high KPI with these types of AP Change-Id: Ia69ffe118fd5bbda78cfb98126a483fcf305294e CRs-Fixed: 2828304
1542 lines
46 KiB
C
1542 lines
46 KiB
C
/*
|
|
* Copyright (c) 2013-2020 The Linux Foundation. All rights reserved.
|
|
*
|
|
* Permission to use, copy, modify, and/or distribute this software for
|
|
* any purpose with or without fee is hereby granted, provided that the
|
|
* above copyright notice and this permission notice appear in all
|
|
* copies.
|
|
*
|
|
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
|
|
* WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
|
|
* WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
|
|
* AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
|
|
* DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
|
|
* PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
|
|
* TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
* PERFORMANCE OF THIS SOFTWARE.
|
|
*/
|
|
|
|
#ifndef __WLAN_CFG_H
|
|
#define __WLAN_CFG_H
|
|
|
|
/*
|
|
* Temporary place holders. These should come either from target config
|
|
* or platform configuration
|
|
*/
|
|
#if defined(WLAN_MAX_PDEVS) && (WLAN_MAX_PDEVS == 1)
|
|
#define WLAN_CFG_DST_RING_CACHED_DESC 0
|
|
#define MAX_PDEV_CNT 1
|
|
#define WLAN_CFG_INT_NUM_CONTEXTS 7
|
|
#define WLAN_CFG_RXDMA1_ENABLE 1
|
|
/*
|
|
* This mask defines how many transmit frames account for 1 NAPI work unit
|
|
* 0 means each tx completion is 1 unit
|
|
*/
|
|
#define DP_TX_NAPI_BUDGET_DIV_MASK 0
|
|
|
|
/* PPDU Stats Configuration - Configure bitmask for enabling tx ppdu tlv's */
|
|
#define DP_PPDU_TXLITE_STATS_BITMASK_CFG 0x3FFF
|
|
|
|
#define NUM_RXDMA_RINGS_PER_PDEV 2
|
|
|
|
/*Maximum Number of LMAC instances*/
|
|
#define MAX_NUM_LMAC_HW 2
|
|
#else
|
|
#define WLAN_CFG_DST_RING_CACHED_DESC 1
|
|
#define MAX_PDEV_CNT 3
|
|
#define WLAN_CFG_INT_NUM_CONTEXTS 11
|
|
#define NUM_RXDMA_RINGS_PER_PDEV 1
|
|
#define MAX_NUM_LMAC_HW 3
|
|
|
|
#endif
|
|
|
|
#define WLAN_CFG_INT_NUM_CONTEXTS_MAX 11
|
|
|
|
/* Tx configuration */
|
|
#define MAX_LINK_DESC_BANKS 8
|
|
#define MAX_TXDESC_POOLS 4
|
|
#define MAX_TCL_DATA_RINGS 4
|
|
|
|
/* Rx configuration */
|
|
#define MAX_RXDESC_POOLS 4
|
|
#define MAX_REO_DEST_RINGS 4
|
|
#define MAX_RX_MAC_RINGS 2
|
|
|
|
/* DP process status */
|
|
#if defined(MAX_PDEV_CNT) && (MAX_PDEV_CNT == 1)
|
|
#define CONFIG_PROCESS_RX_STATUS 1
|
|
#define CONFIG_PROCESS_TX_STATUS 1
|
|
#else
|
|
#define CONFIG_PROCESS_RX_STATUS 0
|
|
#define CONFIG_PROCESS_TX_STATUS 0
|
|
#endif
|
|
|
|
/* Miscellaneous configuration */
|
|
#define MAX_IDLE_SCATTER_BUFS 16
|
|
#define DP_MAX_IRQ_PER_CONTEXT 12
|
|
#define MAX_HTT_METADATA_LEN 32
|
|
#define DP_MAX_TIDS 17
|
|
#define DP_NON_QOS_TID 16
|
|
#define DP_NULL_DATA_TID 17
|
|
|
|
#define WLAN_CFG_RX_FST_MAX_SEARCH 2
|
|
#define WLAN_CFG_RX_FST_TOEPLITZ_KEYLEN 40
|
|
|
|
#define INVALID_PDEV_ID 0xFF
|
|
|
|
struct wlan_cfg_dp_pdev_ctxt;
|
|
|
|
/**
|
|
* struct wlan_srng_cfg - Per ring configuration parameters
|
|
* @timer_threshold: Config to control interrupts based on timer duration
|
|
* @batch_count_threshold: Config to control interrupts based on
|
|
* number of packets in the ring
|
|
* @low_threshold: Config to control low threshold interrupts for SRC rings
|
|
*/
|
|
struct wlan_srng_cfg {
|
|
uint32_t timer_threshold;
|
|
uint32_t batch_count_threshold;
|
|
uint32_t low_threshold;
|
|
};
|
|
|
|
/**
|
|
* struct wlan_cfg_dp_soc_ctxt - Configuration parameters for SoC (core TxRx)
|
|
* @num_int_ctxts: Number of NAPI/Interrupt contexts to be registered for DP
|
|
* @max_clients: Maximum number of peers/stations supported by device
|
|
* @max_alloc_size: Maximum allocation size for any dynamic memory
|
|
* allocation request for this device
|
|
* @per_pdev_tx_ring: 0: TCL ring is not mapped per radio
|
|
* 1: Each TCL ring is mapped to one radio/pdev
|
|
* @num_tcl_data_rings: Number of TCL Data rings supported by device
|
|
* @per_pdev_rx_ring: 0: REO ring is not mapped per radio
|
|
* 1: Each REO ring is mapped to one radio/pdev
|
|
* @num_tx_desc_pool: Number of Tx Descriptor pools
|
|
* @num_tx_ext_desc_pool: Number of Tx MSDU extension Descriptor pools
|
|
* @num_tx_desc: Number of Tx Descriptors per pool
|
|
* @min_tx_desc: Minimum number of Tx Descriptors per pool
|
|
* @num_tx_ext_desc: Number of Tx MSDU extension Descriptors per pool
|
|
* @max_peer_id: Maximum value of peer id that FW can assign for a client
|
|
* @htt_packet_type: Default 802.11 encapsulation type for any VAP created
|
|
* @int_tx_ring_mask: Bitmap of Tx interrupts mapped to each NAPI/Intr context
|
|
* @int_rx_ring_mask: Bitmap of Rx interrupts mapped to each NAPI/Intr context
|
|
* @int_rx_mon_ring_mask: Bitmap of Rx monitor ring interrupts mapped to each
|
|
* NAPI/Intr context
|
|
* @int_rx_err_ring_mask: Bitmap of Rx err ring interrupts mapped to each
|
|
* NAPI/Intr context
|
|
* @int_wbm_rel_ring_mask: Bitmap of wbm rel ring interrupts mapped to each
|
|
* NAPI/Intr context
|
|
* @int_reo_status_ring_mask: Bitmap of reo status ring interrupts mapped to
|
|
* each NAPI/Intr context
|
|
* @int_ce_ring_mask: Bitmap of CE interrupts mapped to each NAPI/Intr context
|
|
* @lro_enabled: enable/disable lro feature
|
|
* @rx_hash: Enable hash based steering of rx packets
|
|
* @tso_enabled: enable/disable tso feature
|
|
* @lro_enabled: enable/disable LRO feature
|
|
* @sg_enabled: enable disable scatter gather feature
|
|
* @gro_enabled: enable disable GRO feature
|
|
* @ipa_enabled: Flag indicating if IPA is enabled
|
|
* @ol_tx_csum_enabled: Flag indicating if TX csum is enabled
|
|
* @ol_rx_csum_enabled: Flag indicating if Rx csum is enabled
|
|
* @rawmode_enabled: Flag indicating if RAW mode is enabled
|
|
* @peer_flow_ctrl_enabled: Flag indicating if peer flow control is enabled
|
|
* @napi_enabled: enable/disable interrupt mode for reaping tx and rx packets
|
|
* @p2p_tcp_udp_checksumoffload: enable/disable checksum offload for P2P mode
|
|
* @nan_tcp_udp_checksumoffload: enable/disable checksum offload for NAN mode
|
|
* @tcp_udp_checksumoffload: enable/disable checksum offload
|
|
* @nss_cfg: nss configuration
|
|
* @rx_defrag_min_timeout: rx defrag minimum timeout
|
|
* @wbm_release_ring: wbm release ring size
|
|
* @tcl_cmd_credit_ring: tcl command/credit ring size
|
|
* @tcl_status_ring: tcl status ring size
|
|
* @reo_reinject_ring: reo reinject ring
|
|
* @rx_release_ring: rx release ring size
|
|
* @reo_exception_ring: reo exception ring size
|
|
* @reo_cmd_ring: reo cmd ring size
|
|
* @reo_status_ring: reo status ting size
|
|
* @rxdma_refill_ring: rxdma refill ring size
|
|
* @rxdma_err_dst_ring: rxdma error detination ring size
|
|
* @raw_mode_war: enable/disable raw mode war
|
|
* @enable_data_stall_detection: flag to enable data stall detection
|
|
* @enable_force_rx_64_ba: flag to enable force 64 blockack in RX
|
|
* @disable_intra_bss_fwd: flag to disable intra bss forwarding
|
|
* @rxdma1_enable: flag to indicate if rxdma1 is enabled
|
|
* @tx_desc_limit_0: tx_desc limit for 5G H
|
|
* @tx_desc_limit_1: tx_desc limit for 2G
|
|
* @tx_desc_limit_2: tx_desc limit for 5G L
|
|
* @tx_device_limit: tx device limit
|
|
* @tx_sw_internode_queue: tx sw internode queue
|
|
* @tx_comp_loop_pkt_limit: Max # of packets to be processed in 1 tx comp loop
|
|
* @rx_reap_loop_pkt_limit: Max # of packets to be processed in 1 rx reap loop
|
|
* @rx_hp_oos_update_limit: Max # of HP OOS (out of sync) updates
|
|
* @rx_enable_eol_data_check: flag to enable check for more ring data at end of
|
|
* dp_rx_process loop
|
|
* @tx_comp_enable_eol_data_check: flag to enable/disable checking for more data
|
|
* at end of tx_comp_handler loop.
|
|
* @rx_sw_desc_weight: rx sw descriptor weight configuration
|
|
* @is_rx_mon_protocol_flow_tag_enabled: flag to enable/disable RX protocol or
|
|
* flow tagging in monitor/mon-lite mode
|
|
* @is_rx_flow_tag_enabled: flag to enable/disable RX flow tagging using FSE
|
|
* @is_rx_flow_search_table_per_pdev: flag to indicate if a per-SOC or per-pdev
|
|
* table should be used
|
|
* @rx_flow_search_table_size: indicates the number of flows in the flow search
|
|
* table
|
|
* @rx_flow_max_search: max skid length for each hash entry
|
|
* @rx_toeplitz_hash_key: toeplitz key pointer used for hash computation over
|
|
* 5 tuple flow entry
|
|
* @pktlog_buffer_size: packet log buffer size
|
|
* @is_rx_fisa_enabled: flag to enable/disable FISA Rx
|
|
* @pext_stats_enabled: Flag to enable and disabled peer extended stats
|
|
* @is_rx_buff_pool_enabled: flag to enable/disable emergency RX buffer
|
|
* pool support
|
|
* @rx_pending_high_threshold: threshold of starting pkt drop
|
|
* @rx_pending_low_threshold: threshold of stopping pkt drop
|
|
* @is_swlm_enabled: flag to enable/disable SWLM
|
|
* @tx_per_pkt_vdev_id_check: Enable tx perpkt vdev id check
|
|
* @wow_check_rx_pending_enable: Enable RX frame pending check in WoW
|
|
*/
|
|
struct wlan_cfg_dp_soc_ctxt {
|
|
int num_int_ctxts;
|
|
int max_clients;
|
|
int max_alloc_size;
|
|
int per_pdev_tx_ring;
|
|
int num_tcl_data_rings;
|
|
int num_nss_tcl_data_rings;
|
|
int per_pdev_rx_ring;
|
|
int per_pdev_lmac_ring;
|
|
int num_reo_dest_rings;
|
|
int num_nss_reo_dest_rings;
|
|
int num_tx_desc_pool;
|
|
int num_tx_ext_desc_pool;
|
|
int num_tx_desc;
|
|
int min_tx_desc;
|
|
int num_tx_ext_desc;
|
|
int max_peer_id;
|
|
int htt_packet_type;
|
|
int int_batch_threshold_tx;
|
|
int int_timer_threshold_tx;
|
|
int int_batch_threshold_rx;
|
|
int int_timer_threshold_rx;
|
|
int int_batch_threshold_other;
|
|
int int_timer_threshold_other;
|
|
int int_timer_threshold_mon;
|
|
int tx_ring_size;
|
|
int tx_comp_ring_size;
|
|
int tx_comp_ring_size_nss;
|
|
int int_tx_ring_mask[WLAN_CFG_INT_NUM_CONTEXTS];
|
|
int int_rx_ring_mask[WLAN_CFG_INT_NUM_CONTEXTS];
|
|
int int_rx_mon_ring_mask[WLAN_CFG_INT_NUM_CONTEXTS];
|
|
int int_host2rxdma_mon_ring_mask[WLAN_CFG_INT_NUM_CONTEXTS];
|
|
int int_rxdma2host_mon_ring_mask[WLAN_CFG_INT_NUM_CONTEXTS];
|
|
int int_ce_ring_mask[WLAN_CFG_INT_NUM_CONTEXTS];
|
|
int int_rx_err_ring_mask[WLAN_CFG_INT_NUM_CONTEXTS];
|
|
int int_rx_wbm_rel_ring_mask[WLAN_CFG_INT_NUM_CONTEXTS];
|
|
int int_reo_status_ring_mask[WLAN_CFG_INT_NUM_CONTEXTS];
|
|
int int_rxdma2host_ring_mask[WLAN_CFG_INT_NUM_CONTEXTS];
|
|
int int_host2rxdma_ring_mask[WLAN_CFG_INT_NUM_CONTEXTS];
|
|
int hw_macid[MAX_PDEV_CNT];
|
|
int hw_macid_pdev_id_map[MAX_NUM_LMAC_HW];
|
|
int base_hw_macid;
|
|
bool rx_hash;
|
|
bool tso_enabled;
|
|
bool lro_enabled;
|
|
bool sg_enabled;
|
|
bool gro_enabled;
|
|
bool ipa_enabled;
|
|
bool ol_tx_csum_enabled;
|
|
bool ol_rx_csum_enabled;
|
|
bool rawmode_enabled;
|
|
bool peer_flow_ctrl_enabled;
|
|
bool napi_enabled;
|
|
bool p2p_tcp_udp_checksumoffload;
|
|
bool nan_tcp_udp_checksumoffload;
|
|
bool tcp_udp_checksumoffload;
|
|
bool legacy_mode_checksumoffload_disable;
|
|
bool defrag_timeout_check;
|
|
int nss_cfg;
|
|
uint32_t tx_flow_stop_queue_threshold;
|
|
uint32_t tx_flow_start_queue_offset;
|
|
int rx_defrag_min_timeout;
|
|
int reo_dst_ring_size;
|
|
int wbm_release_ring;
|
|
int tcl_cmd_credit_ring;
|
|
int tcl_status_ring;
|
|
int reo_reinject_ring;
|
|
int rx_release_ring;
|
|
int reo_exception_ring;
|
|
int reo_cmd_ring;
|
|
int reo_status_ring;
|
|
int rxdma_refill_ring;
|
|
int rxdma_err_dst_ring;
|
|
uint32_t per_pkt_trace;
|
|
bool raw_mode_war;
|
|
bool enable_data_stall_detection;
|
|
bool enable_force_rx_64_ba;
|
|
bool disable_intra_bss_fwd;
|
|
bool rxdma1_enable;
|
|
int max_ast_idx;
|
|
int tx_desc_limit_0;
|
|
int tx_desc_limit_1;
|
|
int tx_desc_limit_2;
|
|
int tx_device_limit;
|
|
int tx_sw_internode_queue;
|
|
int mon_drop_thresh;
|
|
#ifdef WLAN_FEATURE_RX_SOFTIRQ_TIME_LIMIT
|
|
uint32_t tx_comp_loop_pkt_limit;
|
|
uint32_t rx_reap_loop_pkt_limit;
|
|
uint32_t rx_hp_oos_update_limit;
|
|
bool rx_enable_eol_data_check;
|
|
bool tx_comp_enable_eol_data_check;
|
|
#endif /* WLAN_FEATURE_RX_SOFTIRQ_TIME_LIMIT */
|
|
int rx_sw_desc_weight;
|
|
int rx_sw_desc_num;
|
|
bool is_rx_mon_protocol_flow_tag_enabled;
|
|
bool is_rx_flow_tag_enabled;
|
|
bool is_rx_flow_search_table_per_pdev;
|
|
uint16_t rx_flow_search_table_size;
|
|
uint16_t rx_flow_max_search;
|
|
uint8_t *rx_toeplitz_hash_key;
|
|
uint8_t pktlog_buffer_size;
|
|
uint8_t is_rx_fisa_enabled;
|
|
bool is_tso_desc_attach_defer;
|
|
uint32_t delayed_replenish_entries;
|
|
uint32_t reo_rings_mapping;
|
|
bool pext_stats_enabled;
|
|
bool is_rx_buff_pool_enabled;
|
|
uint32_t rx_pending_high_threshold;
|
|
uint32_t rx_pending_low_threshold;
|
|
bool is_poll_mode_enabled;
|
|
uint8_t is_swlm_enabled;
|
|
bool fst_in_cmem;
|
|
bool tx_per_pkt_vdev_id_check;
|
|
uint8_t radio0_rx_default_reo;
|
|
uint8_t radio1_rx_default_reo;
|
|
uint8_t radio2_rx_default_reo;
|
|
bool wow_check_rx_pending_enable;
|
|
};
|
|
|
|
/**
|
|
* struct wlan_cfg_dp_pdev_ctxt - Configuration parameters for pdev (radio)
|
|
* @rx_dma_buf_ring_size - Size of RxDMA buffer ring
|
|
* @dma_mon_buf_ring_size - Size of RxDMA Monitor buffer ring
|
|
* @dma_mon_dest_ring_size - Size of RxDMA Monitor Destination ring
|
|
* @dma_mon_status_ring_size - Size of RxDMA Monitor Status ring
|
|
* @rxdma_monitor_desc_ring - rxdma monitor desc ring size
|
|
*/
|
|
struct wlan_cfg_dp_pdev_ctxt {
|
|
int rx_dma_buf_ring_size;
|
|
int dma_mon_buf_ring_size;
|
|
int dma_mon_dest_ring_size;
|
|
int dma_mon_status_ring_size;
|
|
int rxdma_monitor_desc_ring;
|
|
int num_mac_rings;
|
|
int nss_enabled;
|
|
};
|
|
|
|
/**
|
|
* wlan_cfg_soc_attach() - Attach configuration interface for SoC
|
|
* @ctrl_obj - PSOC object
|
|
*
|
|
* Allocates context for Soc configuration parameters,
|
|
* Read configuration information from device tree/ini file and
|
|
* returns back handle
|
|
*
|
|
* Return: Handle to configuration context
|
|
*/
|
|
struct wlan_cfg_dp_soc_ctxt *
|
|
wlan_cfg_soc_attach(struct cdp_ctrl_objmgr_psoc *ctrl_obj);
|
|
|
|
/**
|
|
* wlan_cfg_soc_detach() - Detach soc configuration handle
|
|
* @wlan_cfg_ctx: soc configuration handle
|
|
*
|
|
* De-allocates memory allocated for SoC configuration
|
|
*
|
|
* Return:none
|
|
*/
|
|
void wlan_cfg_soc_detach(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
|
|
|
|
/**
|
|
* wlan_cfg_pdev_attach() Attach configuration interface for pdev
|
|
* @ctrl_obj - PSOC object
|
|
*
|
|
* Allocates context for pdev configuration parameters,
|
|
* Read configuration information from device tree/ini file and
|
|
* returns back handle
|
|
*
|
|
* Return: Handle to configuration context
|
|
*/
|
|
struct wlan_cfg_dp_pdev_ctxt *
|
|
wlan_cfg_pdev_attach(struct cdp_ctrl_objmgr_psoc *ctrl_obj);
|
|
|
|
/**
|
|
* wlan_cfg_pdev_detach() Detach and free pdev configuration handle
|
|
* @wlan_cfg_pdev_ctx - PDEV Configuration Handle
|
|
*
|
|
* Return: void
|
|
*/
|
|
void wlan_cfg_pdev_detach(struct wlan_cfg_dp_pdev_ctxt *wlan_cfg_pdev_ctx);
|
|
|
|
void wlan_cfg_set_num_contexts(struct wlan_cfg_dp_soc_ctxt *cfg, int num);
|
|
void wlan_cfg_set_tx_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg,
|
|
int context, int mask);
|
|
void wlan_cfg_set_rx_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg,
|
|
int context, int mask);
|
|
void wlan_cfg_set_rx_mon_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg,
|
|
int context, int mask);
|
|
void wlan_cfg_set_ce_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg,
|
|
int context, int mask);
|
|
void wlan_cfg_set_rxbuf_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg, int context,
|
|
int mask);
|
|
void wlan_cfg_set_max_peer_id(struct wlan_cfg_dp_soc_ctxt *cfg, uint32_t val);
|
|
void wlan_cfg_set_max_ast_idx(struct wlan_cfg_dp_soc_ctxt *cfg, uint32_t val);
|
|
int wlan_cfg_get_max_ast_idx(struct wlan_cfg_dp_soc_ctxt *cfg);
|
|
int wlan_cfg_get_mon_drop_thresh(struct wlan_cfg_dp_soc_ctxt *cfg);
|
|
int wlan_cfg_set_rx_err_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg,
|
|
int context, int mask);
|
|
int wlan_cfg_set_rx_wbm_rel_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg,
|
|
int context, int mask);
|
|
int wlan_cfg_set_reo_status_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg,
|
|
int context, int mask);
|
|
|
|
/**
|
|
* wlan_cfg_set_mon_delayed_replenish_entries() - number of buffers to replenish
|
|
* for monitor buffer ring at initialization
|
|
* @wlan_cfg_ctx - Configuration Handle
|
|
* @replenish_entries - number of entries to replenish at initialization
|
|
*
|
|
*/
|
|
void wlan_cfg_set_mon_delayed_replenish_entries(struct wlan_cfg_dp_soc_ctxt
|
|
*wlan_cfg_ctx,
|
|
uint32_t replenish_entries);
|
|
|
|
/**
|
|
* wlan_cfg_get_mon_delayed_replenish_entries() - get num of buffer to replenish
|
|
* for monitor buffer ring at initialization
|
|
* @wlan_cfg_ctx - Configuration Handle
|
|
* @replenish_entries - number of entries to replenish at initialization
|
|
*
|
|
* Return: delayed_replenish_entries;
|
|
*/
|
|
int wlan_cfg_get_mon_delayed_replenish_entries(struct wlan_cfg_dp_soc_ctxt
|
|
*wlan_cfg_ctx);
|
|
/**
|
|
* wlan_cfg_get_num_contexts() - Number of interrupt contexts to be registered
|
|
* @wlan_cfg_ctx - Configuration Handle
|
|
*
|
|
* For WIN, DP_NUM_INTERRUPT_CONTEXTS will be equal to number of CPU cores.
|
|
* Each context (for linux it is a NAPI context) will have a tx_ring_mask,
|
|
* rx_ring_mask ,and rx_monitor_ring mask to indicate the rings
|
|
* that are processed by the handler.
|
|
*
|
|
* Return: num_contexts
|
|
*/
|
|
int wlan_cfg_get_num_contexts(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
|
|
|
|
/**
|
|
* wlan_cfg_get_tx_ring_mask() - Return Tx interrupt mask mapped to an
|
|
* interrupt context
|
|
* @wlan_cfg_ctx - Configuration Handle
|
|
* @context - Numerical ID identifying the Interrupt/NAPI context
|
|
*
|
|
* Return: int_tx_ring_mask[context]
|
|
*/
|
|
int wlan_cfg_get_tx_ring_mask(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx,
|
|
int context);
|
|
|
|
/**
|
|
* wlan_cfg_get_rx_ring_mask() - Return Rx interrupt mask mapped to an
|
|
* interrupt context
|
|
* @wlan_cfg_ctx - Configuration Handle
|
|
* @context - Numerical ID identifying the Interrupt/NAPI context
|
|
*
|
|
* Return: int_rx_ring_mask[context]
|
|
*/
|
|
int wlan_cfg_get_rx_ring_mask(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx,
|
|
int context);
|
|
|
|
/**
|
|
* wlan_cfg_get_rx_mon_ring_mask() - Return Rx monitor ring interrupt mask
|
|
* mapped to an interrupt context
|
|
* @wlan_cfg_ctx - Configuration Handle
|
|
* @context - Numerical ID identifying the Interrupt/NAPI context
|
|
*
|
|
* Return: int_rx_mon_ring_mask[context]
|
|
*/
|
|
int wlan_cfg_get_rx_mon_ring_mask(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx,
|
|
int context);
|
|
|
|
/**
|
|
* wlan_cfg_set_rxdma2host_ring_mask() - Set rxdma2host ring interrupt mask
|
|
* for the given interrupt context
|
|
* @wlan_cfg_ctx - Configuration Handle
|
|
* @context - Numerical ID identifying the Interrupt/NAPI context
|
|
*
|
|
*/
|
|
void wlan_cfg_set_rxdma2host_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg,
|
|
int context, int mask);
|
|
|
|
/**
|
|
* wlan_cfg_get_rxdma2host_ring_mask() - Return rxdma2host ring interrupt mask
|
|
* mapped to an interrupt context
|
|
* @wlan_cfg_ctx - Configuration Handle
|
|
* @context - Numerical ID identifying the Interrupt/NAPI context
|
|
*
|
|
* Return: int_rxdma2host_ring_mask[context]
|
|
*/
|
|
int wlan_cfg_get_rxdma2host_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg,
|
|
int context);
|
|
|
|
/**
|
|
* wlan_cfg_set_host2rxdma_ring_mask() - Set host2rxdma ring interrupt mask
|
|
* for the given interrupt context
|
|
* @wlan_cfg_ctx - Configuration Handle
|
|
* @context - Numerical ID identifying the Interrupt/NAPI context
|
|
*
|
|
*/
|
|
void wlan_cfg_set_host2rxdma_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg,
|
|
int context, int mask);
|
|
|
|
/**
|
|
* wlan_cfg_get_host2rxdma_ring_mask() - Return host2rxdma ring interrupt mask
|
|
* mapped to an interrupt context
|
|
* @wlan_cfg_ctx - Configuration Handle
|
|
* @context - Numerical ID identifying the Interrupt/NAPI context
|
|
*
|
|
* Return: int_host2rxdma_ring_mask[context]
|
|
*/
|
|
int wlan_cfg_get_host2rxdma_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg,
|
|
int context);
|
|
|
|
/**
|
|
* wlan_cfg_set_host2rxdma_mon_ring_mask() - Set host2rxdma monitor ring
|
|
* interrupt mask for the given interrupt context
|
|
* @wlan_cfg_ctx - Configuration Handle
|
|
* @context - Numerical ID identifying the Interrupt/NAPI context
|
|
*
|
|
*/
|
|
void wlan_cfg_set_host2rxdma_mon_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg,
|
|
int context, int mask);
|
|
|
|
/**
|
|
* wlan_cfg_get_host2rxdma_mon_ring_mask() - Return host2rxdma monitoe ring
|
|
* interrupt mask mapped to an interrupt context
|
|
* @wlan_cfg_ctx - Configuration Handle
|
|
* @context - Numerical ID identifying the Interrupt/NAPI context
|
|
*
|
|
* Return: int_host2rxdma_mon_ring_mask[context]
|
|
*/
|
|
int wlan_cfg_get_host2rxdma_mon_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg,
|
|
int context);
|
|
|
|
/**
|
|
* wlan_cfg_set_rxdma2host_mon_ring_mask() - Set rxdma2host monitor
|
|
* destination ring interrupt mask
|
|
* for the given interrupt context
|
|
* @wlan_cfg_ctx - Configuration Handle
|
|
* @context - Numerical ID identifying the Interrupt/NAPI context
|
|
*
|
|
*/
|
|
void wlan_cfg_set_rxdma2host_mon_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg,
|
|
int context, int mask);
|
|
|
|
/**
|
|
* wlan_cfg_get_rxdma2host_mon_ring_mask() - Return rxdma2host monitor
|
|
* destination ring interrupt mask
|
|
* mapped to an interrupt context
|
|
* @wlan_cfg_ctx - Configuration Handle
|
|
* @context - Numerical ID identifying the Interrupt/NAPI context
|
|
*
|
|
* Return: int_rxdma2host_mon_ring_mask[context]
|
|
*/
|
|
int wlan_cfg_get_rxdma2host_mon_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg,
|
|
int context);
|
|
|
|
/**
|
|
* wlan_cfg_set_hw_macidx() - Set HW MAC Idx for the given PDEV index
|
|
*
|
|
* @wlan_cfg_ctx - Configuration Handle
|
|
* @pdev_idx - Index of SW PDEV
|
|
* @hw_macid - HW MAC Id
|
|
*
|
|
*/
|
|
void wlan_cfg_set_hw_mac_idx
|
|
(struct wlan_cfg_dp_soc_ctxt *cfg, int pdev_idx, int hw_macid);
|
|
|
|
/**
|
|
* wlan_cfg_get_hw_mac_idx() - Get 0 based HW MAC index for the given
|
|
* PDEV index
|
|
*
|
|
* @wlan_cfg_ctx - Configuration Handle
|
|
* @pdev_idx - Index of SW PDEV
|
|
*
|
|
* Return: HW MAC index
|
|
*/
|
|
int wlan_cfg_get_hw_mac_idx(struct wlan_cfg_dp_soc_ctxt *cfg, int pdev_idx);
|
|
|
|
/**
|
|
* wlan_cfg_get_target_pdev_id() - Get target PDEV ID for HW MAC ID
|
|
*
|
|
* @wlan_cfg_ctx - Configuration Handle
|
|
* @hw_macid - Index of hw mac
|
|
*
|
|
* Return: PDEV ID
|
|
*/
|
|
int
|
|
wlan_cfg_get_target_pdev_id(struct wlan_cfg_dp_soc_ctxt *cfg, int hw_macid);
|
|
|
|
/**
|
|
* wlan_cfg_set_pdev_idx() - Set 0 based host PDEV index for the given
|
|
* hw mac index
|
|
*
|
|
* @wlan_cfg_ctx - Configuration Handle
|
|
* @pdev_idx - Index of SW PDEV
|
|
* @hw_macid - Index of hw mac
|
|
*
|
|
* Return: PDEV index
|
|
*/
|
|
void wlan_cfg_set_pdev_idx
|
|
(struct wlan_cfg_dp_soc_ctxt *cfg, int pdev_idx, int hw_macid);
|
|
|
|
/**
|
|
* wlan_cfg_get_pdev_idx() - Get 0 based PDEV index for the given
|
|
* hw mac index
|
|
*
|
|
* @wlan_cfg_ctx - Configuration Handle
|
|
* @hw_macid - Index of hw mac
|
|
*
|
|
* Return: PDEV index
|
|
*/
|
|
int wlan_cfg_get_pdev_idx(struct wlan_cfg_dp_soc_ctxt *cfg, int hw_macid);
|
|
|
|
/**
|
|
* wlan_cfg_get_rx_err_ring_mask() - Return Rx monitor ring interrupt mask
|
|
* mapped to an interrupt context
|
|
* @wlan_cfg_ctx - Configuration Handle
|
|
* @context - Numerical ID identifying the Interrupt/NAPI context
|
|
*
|
|
* Return: int_rx_err_ring_mask[context]
|
|
*/
|
|
int wlan_cfg_get_rx_err_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg, int
|
|
context);
|
|
|
|
/**
|
|
* wlan_cfg_get_rx_wbm_rel_ring_mask() - Return Rx monitor ring interrupt mask
|
|
* mapped to an interrupt context
|
|
* @wlan_cfg_ctx - Configuration Handle
|
|
* @context - Numerical ID identifying the Interrupt/NAPI context
|
|
*
|
|
* Return: int_wbm_rel_ring_mask[context]
|
|
*/
|
|
int wlan_cfg_get_rx_wbm_rel_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg, int
|
|
context);
|
|
|
|
/**
|
|
* wlan_cfg_get_reo_status_ring_mask() - Return Rx monitor ring interrupt mask
|
|
* mapped to an interrupt context
|
|
* @wlan_cfg_ctx - Configuration Handle
|
|
* @context - Numerical ID identifying the Interrupt/NAPI context
|
|
*
|
|
* Return: int_reo_status_ring_mask[context]
|
|
*/
|
|
int wlan_cfg_get_reo_status_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg, int
|
|
context);
|
|
|
|
/**
|
|
* wlan_cfg_get_ce_ring_mask() - Return CE ring interrupt mask
|
|
* mapped to an interrupt context
|
|
* @wlan_cfg_ctx - Configuration Handle
|
|
* @context - Numerical ID identifying the Interrupt/NAPI context
|
|
*
|
|
* Return: int_ce_ring_mask[context]
|
|
*/
|
|
int wlan_cfg_get_ce_ring_mask(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx,
|
|
int context);
|
|
|
|
/**
|
|
* wlan_cfg_get_max_clients() - Return maximum number of peers/stations
|
|
* supported by device
|
|
* @wlan_cfg_ctx - Configuration Handle
|
|
*
|
|
* Return: max_clients
|
|
*/
|
|
uint32_t wlan_cfg_get_max_clients(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
|
|
|
|
/**
|
|
* wlan_cfg_max_alloc_size() - Return Maximum allocation size for any dynamic
|
|
* memory allocation request for this device
|
|
* @wlan_cfg_ctx - Configuration Handle
|
|
*
|
|
* Return: max_alloc_size
|
|
*/
|
|
uint32_t wlan_cfg_max_alloc_size(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
|
|
|
|
/*
|
|
* wlan_cfg_per_pdev_tx_ring() - Return true if Tx rings are mapped as
|
|
* one per radio
|
|
* @wlan_cfg_ctx - Configuration Handle
|
|
*
|
|
* Return: per_pdev_tx_ring
|
|
*/
|
|
int wlan_cfg_per_pdev_tx_ring(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
|
|
|
|
/*
|
|
* wlan_cfg_num_tcl_data_rings() - Number of TCL Data rings (HOST mode)
|
|
* @wlan_cfg_ctx
|
|
*
|
|
* Return: num_tcl_data_rings
|
|
*/
|
|
int wlan_cfg_num_tcl_data_rings(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
|
|
|
|
/*
|
|
* wlan_cfg_num_nss_tcl_data_rings() - Number of TCL Data rings (NSS offload)
|
|
* @wlan_cfg_ctx
|
|
*
|
|
* Return: num_tcl_data_rings
|
|
*/
|
|
int wlan_cfg_num_nss_tcl_data_rings(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
|
|
|
|
/*
|
|
* wlan_cfg_per_pdev_rx_ring() - Return true if Rx rings are mapped as
|
|
* one per radio
|
|
* @wlan_cfg_ctx
|
|
*
|
|
* Return: per_pdev_rx_ring
|
|
*/
|
|
int wlan_cfg_per_pdev_rx_ring(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
|
|
|
|
/*
|
|
* wlan_cfg_per_pdev_lmac_ring() - Return true if error rings are mapped as
|
|
* one per radio
|
|
* @wlan_cfg_ctx
|
|
*
|
|
* Return: return 1 if per pdev error ring else 0
|
|
*/
|
|
int wlan_cfg_per_pdev_lmac_ring(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
|
|
|
|
/*
|
|
* wlan_cfg_num_reo_dest_rings() - Number of REO Data rings (HOST mode)
|
|
* @wlan_cfg_ctx - Configuration Handle
|
|
*
|
|
* Return: num_reo_dest_rings
|
|
*/
|
|
int wlan_cfg_num_reo_dest_rings(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
|
|
|
|
/*
|
|
* wlan_cfg_num_nss_reo_dest_rings() - Number of REO Data rings (NSS offload)
|
|
* @wlan_cfg_ctx - Configuration Handle
|
|
*
|
|
* Return: num_reo_dest_rings
|
|
*/
|
|
int wlan_cfg_num_nss_reo_dest_rings(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
|
|
|
|
/*
|
|
* wlan_cfg_pkt_type() - Default 802.11 encapsulation type
|
|
* @wlan_cfg_ctx - Configuration Handle
|
|
*
|
|
* Return: htt_pkt_type_ethernet
|
|
*/
|
|
int wlan_cfg_pkt_type(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
|
|
|
|
/*
|
|
* wlan_cfg_get_num_tx_desc_pool() - Number of Tx Descriptor pools for the
|
|
* device
|
|
* @wlan_cfg_ctx - Configuration Handle
|
|
*
|
|
* Return: num_tx_desc_pool
|
|
*/
|
|
int wlan_cfg_get_num_tx_desc_pool(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
|
|
|
|
/*
|
|
* wlan_cfg_set_num_tx_desc_pool() - Set the number of Tx Descriptor pools for the
|
|
* device
|
|
* @wlan_cfg_ctx - Configuration Handle
|
|
* @num_pool - Number of pool
|
|
*/
|
|
void wlan_cfg_set_num_tx_desc_pool(struct wlan_cfg_dp_soc_ctxt *cfg, int num_pool);
|
|
|
|
/*
|
|
* wlan_cfg_get_num_tx_ext_desc_pool() - Number of Tx MSDU ext Descriptor
|
|
* pools
|
|
* @wlan_cfg_ctx - Configuration Handle
|
|
*
|
|
* Return: num_tx_ext_desc_pool
|
|
*/
|
|
int wlan_cfg_get_num_tx_ext_desc_pool(
|
|
struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
|
|
|
|
/*
|
|
* wlan_cfg_get_reo_dst_ring_size() - Get REO destination ring size
|
|
*
|
|
* @wlan_cfg_ctx - Configuration Handle
|
|
*
|
|
* Return: reo_dst_ring_size
|
|
*/
|
|
int wlan_cfg_get_reo_dst_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg);
|
|
|
|
/*
|
|
* wlan_cfg_set_num_tx_desc_pool() - Set the REO Destination ring size
|
|
*
|
|
* @wlan_cfg_ctx - Configuration Handle
|
|
* @reo_dst_ring_size - REO Destination ring size
|
|
*/
|
|
void wlan_cfg_set_reo_dst_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg,
|
|
int reo_dst_ring_size);
|
|
|
|
/*
|
|
* wlan_cfg_set_raw_mode_war() - Set raw mode war configuration
|
|
*
|
|
* @wlan_cfg_ctx - Configuration Handle
|
|
* @raw_mode_war - raw mode war configuration
|
|
*/
|
|
void wlan_cfg_set_raw_mode_war(struct wlan_cfg_dp_soc_ctxt *cfg,
|
|
bool raw_mode_war);
|
|
|
|
/*
|
|
* wlan_cfg_get_raw_mode_war() - Get raw mode war configuration
|
|
*
|
|
* @wlan_cfg_ctx - Configuration Handle
|
|
*
|
|
* Return: reo_dst_ring_size
|
|
*/
|
|
bool wlan_cfg_get_raw_mode_war(struct wlan_cfg_dp_soc_ctxt *cfg);
|
|
|
|
/*
|
|
* wlan_cfg_set_num_tx_ext_desc_pool() - Set the number of Tx MSDU ext Descriptor
|
|
* pools
|
|
* @wlan_cfg_ctx - Configuration Handle
|
|
* @num_pool - Number of pool
|
|
*/
|
|
void wlan_cfg_set_num_tx_ext_desc_pool(struct wlan_cfg_dp_soc_ctxt *cfg, int num_pool);
|
|
|
|
/*
|
|
* wlan_cfg_get_num_tx_desc() - Number of Tx Descriptors per pool
|
|
* @wlan_cfg_ctx - Configuration Handle
|
|
*
|
|
* Return: num_tx_desc
|
|
*/
|
|
int wlan_cfg_get_num_tx_desc(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
|
|
|
|
/*
|
|
* wlan_cfg_get_min_tx_desc() - Minimum number of Tx Descriptors per pool
|
|
* @wlan_cfg_ctx - Configuration Handle
|
|
*
|
|
* Return: num_tx_desc
|
|
*/
|
|
int wlan_cfg_get_min_tx_desc(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
|
|
|
|
/*
|
|
* wlan_cfg_set_num_tx_desc() - Set the number of Tx Descriptors per pool
|
|
*
|
|
* @wlan_cfg_ctx - Configuration Handle
|
|
* @num_desc: Number of descriptor
|
|
*/
|
|
void wlan_cfg_set_num_tx_desc(struct wlan_cfg_dp_soc_ctxt *cfg, int num_desc);
|
|
|
|
/*
|
|
* wlan_cfg_get_num_tx_ext_desc() - Number of Tx MSDU extension Descriptors
|
|
* per pool
|
|
* @wlan_cfg_ctx - Configuration Handle
|
|
*
|
|
* Return: num_tx_ext_desc
|
|
*/
|
|
int wlan_cfg_get_num_tx_ext_desc(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
|
|
|
|
/*
|
|
* wlan_cfg_set_num_tx_ext_desc() - Set the number of Tx MSDU extension Descriptors
|
|
* per pool
|
|
* @wlan_cfg_ctx - Configuration Handle
|
|
* @num_desc: Number of descriptor
|
|
*/
|
|
void wlan_cfg_set_num_tx_ext_desc(struct wlan_cfg_dp_soc_ctxt *cfg, int num_ext_desc);
|
|
|
|
/*
|
|
* wlan_cfg_max_peer_id() - Get maximum peer ID
|
|
* @cfg: Configuration Handle
|
|
*
|
|
* Return: maximum peer ID
|
|
*/
|
|
uint32_t wlan_cfg_max_peer_id(struct wlan_cfg_dp_soc_ctxt *cfg);
|
|
|
|
/*
|
|
* wlan_cfg_get_dma_mon_buf_ring_size() - Return Size of monitor buffer ring
|
|
* @wlan_cfg_pdev_ctx
|
|
*
|
|
* Return: dma_mon_buf_ring_size
|
|
*/
|
|
int wlan_cfg_get_dma_mon_buf_ring_size(
|
|
struct wlan_cfg_dp_pdev_ctxt *wlan_cfg_pdev_ctx);
|
|
|
|
/*
|
|
* wlan_cfg_get_dma_mon_dest_ring_size() - Return Size of RxDMA Monitor
|
|
* Destination ring
|
|
* @wlan_cfg_pdev_ctx
|
|
*
|
|
* Return: dma_mon_dest_size
|
|
*/
|
|
int wlan_cfg_get_dma_mon_dest_ring_size(
|
|
struct wlan_cfg_dp_pdev_ctxt *wlan_cfg_pdev_ctx);
|
|
|
|
/*
|
|
* wlan_cfg_get_dma_mon_stat_ring_size() - Return size of Monitor Status ring
|
|
* @wlan_cfg_pdev_ctx
|
|
*
|
|
* Return: dma_mon_stat_ring_size
|
|
*/
|
|
int wlan_cfg_get_dma_mon_stat_ring_size(
|
|
struct wlan_cfg_dp_pdev_ctxt *wlan_cfg_pdev_ctx);
|
|
|
|
/*
|
|
* wlan_cfg_get_dma_mon_desc_ring_size - Get rxdma monitor size
|
|
* @wlan_cfg_soc_ctx
|
|
*
|
|
* Return: rxdma monitor desc ring size
|
|
*/
|
|
int
|
|
wlan_cfg_get_dma_mon_desc_ring_size(struct wlan_cfg_dp_pdev_ctxt *cfg);
|
|
|
|
/*
|
|
* wlan_cfg_get_rx_dma_buf_ring_size() - Return Size of RxDMA buffer ring
|
|
* @wlan_cfg_pdev_ctx
|
|
*
|
|
* Return: rx_dma_buf_ring_size
|
|
*/
|
|
int wlan_cfg_get_rx_dma_buf_ring_size(
|
|
struct wlan_cfg_dp_pdev_ctxt *wlan_cfg_pdev_ctx);
|
|
|
|
/*
|
|
* wlan_cfg_rx_pending_hl_threshold() - Return high threshold of rx pending
|
|
* @wlan_cfg_pdev_ctx
|
|
*
|
|
* Return: rx_pending_high_threshold
|
|
*/
|
|
uint32_t
|
|
wlan_cfg_rx_pending_hl_threshold(struct wlan_cfg_dp_soc_ctxt *cfg);
|
|
|
|
/*
|
|
* wlan_cfg_rx_pending_lo_threshold() - Return low threshold of rx pending
|
|
* @wlan_cfg_pdev_ctx
|
|
*
|
|
* Return: rx_pending_low_threshold
|
|
*/
|
|
uint32_t
|
|
wlan_cfg_rx_pending_lo_threshold(struct wlan_cfg_dp_soc_ctxt *cfg);
|
|
|
|
/*
|
|
* wlan_cfg_get_num_mac_rings() - Return the number of MAC RX DMA rings
|
|
* per pdev
|
|
* @wlan_cfg_pdev_ctx
|
|
*
|
|
* Return: number of mac DMA rings per pdev
|
|
*/
|
|
int wlan_cfg_get_num_mac_rings(struct wlan_cfg_dp_pdev_ctxt *cfg);
|
|
|
|
/*
|
|
* wlan_cfg_is_lro_enabled - Return LRO enabled/disabled
|
|
* @wlan_cfg_dp_soc_ctxt
|
|
*
|
|
* Return: true - LRO enabled false - LRO disabled
|
|
*/
|
|
bool wlan_cfg_is_lro_enabled(struct wlan_cfg_dp_soc_ctxt *cfg);
|
|
|
|
/*
|
|
* wlan_cfg_is_gro_enabled - Return GRO enabled/disabled
|
|
* @wlan_cfg_dp_soc_ctxt
|
|
*
|
|
* Return: true - GRO enabled false - GRO disabled
|
|
*/
|
|
bool wlan_cfg_is_gro_enabled(struct wlan_cfg_dp_soc_ctxt *cfg);
|
|
|
|
/*
|
|
* wlan_cfg_is_rx_hash_enabled - Return RX hash enabled/disabled
|
|
* @wlan_cfg_dp_soc_ctxt
|
|
*
|
|
* Return: true - enabled false - disabled
|
|
*/
|
|
bool wlan_cfg_is_rx_hash_enabled(struct wlan_cfg_dp_soc_ctxt *cfg);
|
|
|
|
/*
|
|
* wlan_cfg_is_ipa_enabled - Return IPA enabled/disabled
|
|
* @wlan_cfg_dp_soc_ctxt
|
|
*
|
|
* Return: true - enabled false - disabled
|
|
*/
|
|
bool wlan_cfg_is_ipa_enabled(struct wlan_cfg_dp_soc_ctxt *cfg);
|
|
|
|
/*
|
|
* wlan_cfg_set_rx_hash - set rx hash enabled/disabled
|
|
* @wlan_cfg_soc_ctx
|
|
* @rx_hash
|
|
*/
|
|
void wlan_cfg_set_rx_hash(struct wlan_cfg_dp_soc_ctxt *cfg, bool rx_hash);
|
|
|
|
/*
|
|
* wlan_cfg_get_dp_pdev_nss_enabled - Return pdev nss enabled/disabled
|
|
* @wlan_cfg_pdev_ctx
|
|
*
|
|
* Return: 1 - enabled 0 - disabled
|
|
*/
|
|
int wlan_cfg_get_dp_pdev_nss_enabled(struct wlan_cfg_dp_pdev_ctxt *cfg);
|
|
|
|
/*
|
|
* wlan_cfg_set_dp_pdev_nss_enabled - set pdev nss enabled/disabled
|
|
* @wlan_cfg_pdev_ctx
|
|
*/
|
|
void wlan_cfg_set_dp_pdev_nss_enabled(struct wlan_cfg_dp_pdev_ctxt *cfg, int nss_enabled);
|
|
|
|
/*
|
|
* wlan_cfg_get_dp_soc_nss_cfg - Return soc nss config
|
|
* @wlan_cfg_pdev_ctx
|
|
*
|
|
* Return: nss_cfg
|
|
*/
|
|
int wlan_cfg_get_dp_soc_nss_cfg(struct wlan_cfg_dp_soc_ctxt *cfg);
|
|
|
|
/*
|
|
* wlan_cfg_set_dp_soc_nss_cfg - set soc nss config
|
|
* @wlan_cfg_pdev_ctx
|
|
*
|
|
*/
|
|
void wlan_cfg_set_dp_soc_nss_cfg(struct wlan_cfg_dp_soc_ctxt *cfg, int nss_cfg);
|
|
|
|
/*
|
|
* wlan_cfg_get_int_batch_threshold_tx - Get interrupt mitigation cfg for Tx
|
|
* @wlan_cfg_soc_ctx
|
|
*
|
|
* Return: Batch threshold
|
|
*/
|
|
int wlan_cfg_get_int_batch_threshold_tx(struct wlan_cfg_dp_soc_ctxt *cfg);
|
|
|
|
/*
|
|
* wlan_cfg_get_int_timer_threshold_tx - Get interrupt mitigation cfg for Tx
|
|
* @wlan_cfg_soc_ctx
|
|
*
|
|
* Return: Timer threshold
|
|
*/
|
|
int wlan_cfg_get_int_timer_threshold_tx(struct wlan_cfg_dp_soc_ctxt *cfg);
|
|
|
|
/*
|
|
* wlan_cfg_get_int_batch_threshold_rx - Get interrupt mitigation cfg for Rx
|
|
* @wlan_cfg_soc_ctx
|
|
*
|
|
* Return: Batch threshold
|
|
*/
|
|
int wlan_cfg_get_int_batch_threshold_rx(struct wlan_cfg_dp_soc_ctxt *cfg);
|
|
|
|
/*
|
|
* wlan_cfg_get_int_batch_threshold_rx - Get interrupt mitigation cfg for Rx
|
|
* @wlan_cfg_soc_ctx
|
|
*
|
|
* Return: Timer threshold
|
|
*/
|
|
int wlan_cfg_get_int_timer_threshold_rx(struct wlan_cfg_dp_soc_ctxt *cfg);
|
|
|
|
/*
|
|
* wlan_cfg_get_int_batch_threshold_tx - Get interrupt mitigation cfg for other srngs
|
|
* @wlan_cfg_soc_ctx
|
|
*
|
|
* Return: Batch threshold
|
|
*/
|
|
int wlan_cfg_get_int_batch_threshold_other(struct wlan_cfg_dp_soc_ctxt *cfg);
|
|
|
|
/*
|
|
* wlan_cfg_get_int_batch_threshold_tx - Get interrupt mitigation cfg for other srngs
|
|
* @wlan_cfg_soc_ctx
|
|
*
|
|
* Return: Timer threshold
|
|
*/
|
|
int wlan_cfg_get_int_timer_threshold_other(struct wlan_cfg_dp_soc_ctxt *cfg);
|
|
|
|
/*
|
|
* wlan_cfg_get_int_timer_threshold_mon - Get int mitigation cfg for mon srngs
|
|
* @wlan_cfg_soc_ctx
|
|
*
|
|
* Return: Timer threshold
|
|
*/
|
|
int wlan_cfg_get_int_timer_threshold_mon(struct wlan_cfg_dp_soc_ctxt *cfg);
|
|
|
|
/*
|
|
* wlan_cfg_get_checksum_offload - Get checksum offload enable or disable status
|
|
* @wlan_cfg_soc_ctx
|
|
*
|
|
* Return: Checksum offload enable or disable
|
|
*/
|
|
int wlan_cfg_get_checksum_offload(struct wlan_cfg_dp_soc_ctxt *cfg);
|
|
|
|
/*
|
|
* wlan_cfg_get_nan_checksum_offload - Get checksum offload enable/disable val
|
|
* @wlan_cfg_soc_ctx
|
|
*
|
|
* Return: Checksum offload enable or disable value for NAN mode
|
|
*/
|
|
int wlan_cfg_get_nan_checksum_offload(struct wlan_cfg_dp_soc_ctxt *cfg);
|
|
|
|
/*
|
|
* wlan_cfg_get_p2p_checksum_offload - Get checksum offload enable/disable val
|
|
* @wlan_cfg_soc_ctx
|
|
*
|
|
* Return: Checksum offload enable or disable value for P2P mode
|
|
*/
|
|
int wlan_cfg_get_p2p_checksum_offload(struct wlan_cfg_dp_soc_ctxt *cfg);
|
|
|
|
/*
|
|
* wlan_cfg_tx_ring_size - Get Tx DMA ring size (TCL Data Ring)
|
|
* @wlan_cfg_soc_ctx
|
|
*
|
|
* Return: Tx Ring Size
|
|
*/
|
|
int wlan_cfg_tx_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg);
|
|
|
|
/*
|
|
* wlan_cfg_tx_comp_ring_size - Get Tx completion ring size (WBM Ring)
|
|
* @wlan_cfg_soc_ctx
|
|
*
|
|
* Return: Tx Completion ring size
|
|
*/
|
|
int wlan_cfg_tx_comp_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg);
|
|
|
|
/*
|
|
* wlan_cfg_get_dp_soc_wbm_release_ring_size - Get wbm_release_ring size
|
|
* @wlan_cfg_soc_ctx
|
|
*
|
|
* Return: wbm_release_ring size
|
|
*/
|
|
int
|
|
wlan_cfg_get_dp_soc_wbm_release_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg);
|
|
|
|
/*
|
|
* wlan_cfg_get_dp_soc_tcl_cmd_credit_ring_size - Get command/credit ring size
|
|
* @wlan_cfg_soc_ctx
|
|
*
|
|
* Return: tcl_cmd_credit_ring size
|
|
*/
|
|
int
|
|
wlan_cfg_get_dp_soc_tcl_cmd_credit_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg);
|
|
|
|
/*
|
|
* wlan_cfg_get_dp_soc_tcl_status_ring_size - Get tcl_status_ring size
|
|
* @wlan_cfg_soc_ctx
|
|
*
|
|
* Return: tcl_status_ring size
|
|
*/
|
|
int
|
|
wlan_cfg_get_dp_soc_tcl_status_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg);
|
|
|
|
/*
|
|
* wlan_cfg_get_dp_soc_reo_reinject_ring_size - Get reo_reinject_ring size
|
|
* @wlan_cfg_soc_ctx
|
|
*
|
|
* Return: reo_reinject_ring size
|
|
*/
|
|
int
|
|
wlan_cfg_get_dp_soc_reo_reinject_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg);
|
|
|
|
/*
|
|
* wlan_cfg_get_dp_soc_rx_release_ring_size - Get rx_release_ring size
|
|
* @wlan_cfg_soc_ctx
|
|
*
|
|
* Return: rx_release_ring size
|
|
*/
|
|
int
|
|
wlan_cfg_get_dp_soc_rx_release_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg);
|
|
|
|
/*
|
|
* wlan_cfg_get_dp_soc_reo_exception_ring_size - Get reo_exception_ring size
|
|
* @wlan_cfg_soc_ctx
|
|
*
|
|
* Return: reo_exception_ring size
|
|
*/
|
|
int
|
|
wlan_cfg_get_dp_soc_reo_exception_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg);
|
|
|
|
/*
|
|
* wlan_cfg_get_dp_soc_reo_cmd_ring_size - Get reo_cmd_ring size
|
|
* @wlan_cfg_soc_ctx
|
|
*
|
|
* Return: reo_cmd_ring size
|
|
*/
|
|
int
|
|
wlan_cfg_get_dp_soc_reo_cmd_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg);
|
|
|
|
/*
|
|
* wlan_cfg_get_dp_soc_reo_status_ring_size - Get reo_status_ring size
|
|
* @wlan_cfg_soc_ctx
|
|
*
|
|
* Return: reo_status_ring size
|
|
*/
|
|
int
|
|
wlan_cfg_get_dp_soc_reo_status_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg);
|
|
|
|
/*
|
|
* wlan_cfg_get_dp_soc_tx_desc_limit_0 - Get tx desc limit for 5G H
|
|
* @wlan_cfg_soc_ctx
|
|
*
|
|
* Return: tx desc limit for 5G H
|
|
*/
|
|
int
|
|
wlan_cfg_get_dp_soc_tx_desc_limit_0(struct wlan_cfg_dp_soc_ctxt *cfg);
|
|
|
|
/*
|
|
* wlan_cfg_get_dp_soc_tx_desc_limit_1 - Get tx desc limit for 2G
|
|
* @wlan_cfg_soc_ctx
|
|
*
|
|
* Return: tx desc limit for 2G
|
|
*/
|
|
int
|
|
wlan_cfg_get_dp_soc_tx_desc_limit_1(struct wlan_cfg_dp_soc_ctxt *cfg);
|
|
|
|
/*
|
|
* wlan_cfg_get_dp_soc_tx_desc_limit_2 - Get tx desc limit for 5G L
|
|
* @wlan_cfg_soc_ctx
|
|
*
|
|
* Return: tx desc limit for 5G L
|
|
*/
|
|
int
|
|
wlan_cfg_get_dp_soc_tx_desc_limit_2(struct wlan_cfg_dp_soc_ctxt *cfg);
|
|
|
|
/*
|
|
* wlan_cfg_get_dp_soc_tx_device_limit - Get tx device limit
|
|
* @wlan_cfg_soc_ctx
|
|
*
|
|
* Return: tx device limit
|
|
*/
|
|
int
|
|
wlan_cfg_get_dp_soc_tx_device_limit(struct wlan_cfg_dp_soc_ctxt *cfg);
|
|
|
|
/*
|
|
* wlan_cfg_get_dp_soc_tx_sw_internode_queue - Get tx sw internode queue
|
|
* @wlan_cfg_soc_ctx
|
|
*
|
|
* Return: tx sw internode queue
|
|
*/
|
|
int
|
|
wlan_cfg_get_dp_soc_tx_sw_internode_queue(struct wlan_cfg_dp_soc_ctxt *cfg);
|
|
|
|
/*
|
|
* wlan_cfg_get_dp_soc_rxdma_refill_ring_size - Get rxdma refill ring size
|
|
* @wlan_cfg_soc_ctx
|
|
*
|
|
* Return: rxdma refill ring size
|
|
*/
|
|
int
|
|
wlan_cfg_get_dp_soc_rxdma_refill_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg);
|
|
|
|
/*
|
|
* wlan_cfg_get_dp_soc_rxdma_err_dst_ring_size - Get rxdma dst ring size
|
|
* @wlan_cfg_soc_ctx
|
|
*
|
|
* Return: rxdma error dst ring size
|
|
*/
|
|
int
|
|
wlan_cfg_get_dp_soc_rxdma_err_dst_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg);
|
|
|
|
/*
|
|
* wlan_cfg_get_dp_soc_rx_sw_desc_weight - Get rx sw desc weight
|
|
* @wlan_cfg_soc_ctx
|
|
*
|
|
* Return: rx_sw_desc_weight
|
|
*/
|
|
int
|
|
wlan_cfg_get_dp_soc_rx_sw_desc_weight(struct wlan_cfg_dp_soc_ctxt *cfg);
|
|
|
|
/*
|
|
* wlan_cfg_get_dp_soc_rx_sw_desc_num - Get rx sw desc num
|
|
* @wlan_cfg_soc_ctx
|
|
*
|
|
* Return: rx_sw_desc_num
|
|
*/
|
|
int
|
|
wlan_cfg_get_dp_soc_rx_sw_desc_num(struct wlan_cfg_dp_soc_ctxt *cfg);
|
|
|
|
/*
|
|
* wlan_cfg_get_dp_caps - Get dp capablities
|
|
* @wlan_cfg_soc_ctx
|
|
* @dp_caps: enum for dp capablities
|
|
*
|
|
* Return: bool if a dp capabilities is enabled
|
|
*/
|
|
bool
|
|
wlan_cfg_get_dp_caps(struct wlan_cfg_dp_soc_ctxt *cfg,
|
|
enum cdp_capabilities dp_caps);
|
|
|
|
/**
|
|
* wlan_set_srng_cfg() - Fill per ring specific
|
|
* configuration parameters
|
|
* @wlan_cfg: global srng configuration table
|
|
*
|
|
* Return: None
|
|
*/
|
|
void wlan_set_srng_cfg(struct wlan_srng_cfg **wlan_cfg);
|
|
|
|
#ifdef QCA_LL_TX_FLOW_CONTROL_V2
|
|
int wlan_cfg_get_tx_flow_stop_queue_th(struct wlan_cfg_dp_soc_ctxt *cfg);
|
|
|
|
int wlan_cfg_get_tx_flow_start_queue_offset(struct wlan_cfg_dp_soc_ctxt *cfg);
|
|
#endif /* QCA_LL_TX_FLOW_CONTROL_V2 */
|
|
int wlan_cfg_get_rx_defrag_min_timeout(struct wlan_cfg_dp_soc_ctxt *cfg);
|
|
|
|
int wlan_cfg_get_defrag_timeout_check(struct wlan_cfg_dp_soc_ctxt *cfg);
|
|
|
|
/**
|
|
* wlan_cfg_get_rx_flow_search_table_size() - Return the size of Rx FST
|
|
* in number of entries
|
|
*
|
|
* @wlan_cfg_dp_soc_ctxt: soc configuration context
|
|
*
|
|
* Return: rx_fst_size
|
|
*/
|
|
uint16_t
|
|
wlan_cfg_get_rx_flow_search_table_size(struct wlan_cfg_dp_soc_ctxt *cfg);
|
|
|
|
/**
|
|
* wlan_cfg_rx_fst_get_max_search() - Return the max skid length for FST search
|
|
*
|
|
* @wlan_cfg_dp_soc_ctxt: soc configuration context
|
|
*
|
|
* Return: max_search
|
|
*/
|
|
uint8_t wlan_cfg_rx_fst_get_max_search(struct wlan_cfg_dp_soc_ctxt *cfg);
|
|
|
|
/**
|
|
* wlan_cfg_rx_fst_get_hash_key() - Return Toeplitz Hash Key used for FST
|
|
* search
|
|
*
|
|
* @wlan_cfg_dp_soc_ctxt: soc configuration context
|
|
*
|
|
* Return: 320-bit Hash Key
|
|
*/
|
|
uint8_t *wlan_cfg_rx_fst_get_hash_key(struct wlan_cfg_dp_soc_ctxt *cfg);
|
|
|
|
/**
|
|
* wlan_cfg_set_rx_flow_tag_enabled() - set rx flow tag enabled flag in
|
|
* DP soc context
|
|
* @wlan_cfg_dp_soc_ctxt: soc configuration context
|
|
* @val: Rx flow tag feature flag value
|
|
*
|
|
* Return: None
|
|
*/
|
|
void wlan_cfg_set_rx_flow_tag_enabled(struct wlan_cfg_dp_soc_ctxt *cfg,
|
|
bool val);
|
|
|
|
/**
|
|
* wlan_cfg_is_rx_flow_tag_enabled() - get rx flow tag enabled flag from
|
|
* DP soc context
|
|
* @wlan_cfg_dp_soc_ctxt: soc configuration context
|
|
*
|
|
* Return: true if feature is enabled, else false
|
|
*/
|
|
bool wlan_cfg_is_rx_flow_tag_enabled(struct wlan_cfg_dp_soc_ctxt *cfg);
|
|
|
|
/**
|
|
* wlan_cfg_set_rx_flow_search_table_per_pdev() - Set flag to indicate that
|
|
* Rx FST is per pdev
|
|
* @wlan_cfg_dp_soc_ctxt: soc configuration context
|
|
* @val: boolean flag indicating Rx FST per pdev or per SOC
|
|
*
|
|
* Return: None
|
|
*/
|
|
void
|
|
wlan_cfg_set_rx_flow_search_table_per_pdev(struct wlan_cfg_dp_soc_ctxt *cfg,
|
|
bool val);
|
|
|
|
/**
|
|
* wlan_cfg_is_rx_flow_search_table_per_pdev() - get RX FST flag for per pdev
|
|
* @wlan_cfg_dp_soc_ctxt: soc configuration context
|
|
*
|
|
* Return: true if Rx FST is per pdev, else false
|
|
*/
|
|
bool
|
|
wlan_cfg_is_rx_flow_search_table_per_pdev(struct wlan_cfg_dp_soc_ctxt *cfg);
|
|
|
|
/**
|
|
* wlan_cfg_set_rx_flow_search_table_size() - set RX FST size in DP SoC context
|
|
* @wlan_cfg_dp_soc_ctxt: soc configuration context
|
|
* @val: Rx FST size in number of entries
|
|
*
|
|
* Return: None
|
|
*/
|
|
void
|
|
wlan_cfg_set_rx_flow_search_table_size(struct wlan_cfg_dp_soc_ctxt *cfg,
|
|
uint16_t val);
|
|
|
|
/**
|
|
* wlan_cfg_set_rx_mon_protocol_flow_tag_enabled() - set mon rx tag enabled flag
|
|
* in DP soc context
|
|
* @wlan_cfg_dp_soc_ctxt: soc configuration context
|
|
* @val: Rx protocol or flow tag feature flag value in monitor mode from INI
|
|
*
|
|
* Return: None
|
|
*/
|
|
void
|
|
wlan_cfg_set_rx_mon_protocol_flow_tag_enabled(struct wlan_cfg_dp_soc_ctxt *cfg,
|
|
bool val);
|
|
|
|
/**
|
|
* wlan_cfg_is_rx_mon_protocol_flow_tag_enabled() - get mon rx tag enabled flag
|
|
* from DP soc context
|
|
* @wlan_cfg_dp_soc_ctxt: soc configuration context
|
|
*
|
|
* Return: true if feature is enabled in monitor mode for protocol or flow
|
|
* tagging in INI, false otherwise
|
|
*/
|
|
bool
|
|
wlan_cfg_is_rx_mon_protocol_flow_tag_enabled(struct wlan_cfg_dp_soc_ctxt *cfg);
|
|
|
|
/**
|
|
* wlan_cfg_set_tx_per_pkt_vdev_id_check() - set flag to enable perpkt
|
|
* vdev id check in tx.
|
|
* @wlan_cfg_dp_soc_ctxt: soc configuration context
|
|
* @val: feature flag value
|
|
*
|
|
* Return: None
|
|
*/
|
|
void
|
|
wlan_cfg_set_tx_per_pkt_vdev_id_check(struct wlan_cfg_dp_soc_ctxt *cfg,
|
|
bool val);
|
|
|
|
/**
|
|
* wlan_cfg_is_tx_per_pkt_vdev_id_check_enabled() - get flag to check if
|
|
* perpkt vdev id check is enabled in tx.
|
|
* @wlan_cfg_dp_soc_ctxt: soc configuration context
|
|
*
|
|
* Return: true if feature is enabled, false otherwise
|
|
*/
|
|
bool
|
|
wlan_cfg_is_tx_per_pkt_vdev_id_check_enabled(struct wlan_cfg_dp_soc_ctxt *cfg);
|
|
|
|
/**
|
|
* wlan_cfg_fill_interrupt_mask() - set interrupt mask
|
|
*
|
|
* @wlan_cfg_dp_soc_ctxt: soc configuration context
|
|
* @interrupt_mode: interrupt_mode: MSI/LEGACY
|
|
* @is_monitor_mode: is monitor mode enabled
|
|
*
|
|
* Return: void
|
|
*/
|
|
void wlan_cfg_fill_interrupt_mask(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx,
|
|
int interrupt_mode, bool is_monitor_mode);
|
|
|
|
/**
|
|
* wlan_cfg_is_rx_fisa_enabled() - Get Rx FISA enabled flag
|
|
*
|
|
*
|
|
* @cfg: soc configuration context
|
|
*
|
|
* Return: true if enabled, false otherwise.
|
|
*/
|
|
bool wlan_cfg_is_rx_fisa_enabled(struct wlan_cfg_dp_soc_ctxt *cfg);
|
|
|
|
/**
|
|
* wlan_cfg_is_rx_buffer_pool_enabled() - Get RX buffer pool enabled flag
|
|
*
|
|
*
|
|
* @cfg: soc configuration context
|
|
*
|
|
* Return: true if enabled, false otherwise.
|
|
*/
|
|
bool wlan_cfg_is_rx_buffer_pool_enabled(struct wlan_cfg_dp_soc_ctxt *cfg);
|
|
|
|
void wlan_cfg_set_tso_desc_attach_defer(struct wlan_cfg_dp_soc_ctxt *cfg,
|
|
bool val);
|
|
|
|
bool wlan_cfg_is_tso_desc_attach_defer(struct wlan_cfg_dp_soc_ctxt *cfg);
|
|
|
|
/**
|
|
* wlan_cfg_get_reo_rings_mapping() - Get Reo destination ring bitmap
|
|
*
|
|
*
|
|
* @cfg: soc configuration context
|
|
*
|
|
* Return: reo ring bitmap.
|
|
*/
|
|
uint32_t wlan_cfg_get_reo_rings_mapping(struct wlan_cfg_dp_soc_ctxt *cfg);
|
|
|
|
/**
|
|
* wlan_cfg_set_peer_ext_stats() - set peer extended stats
|
|
*
|
|
* @wlan_cfg_dp_soc_ctxt: soc configuration context
|
|
* @val: Flag value read from INI
|
|
*
|
|
* Return: void
|
|
*/
|
|
void
|
|
wlan_cfg_set_peer_ext_stats(struct wlan_cfg_dp_soc_ctxt *cfg,
|
|
bool val);
|
|
|
|
/**
|
|
* wlan_cfg_is_peer_ext_stats_enabled() - Check if peer extended
|
|
* stats are enabled
|
|
*
|
|
* @wlan_cfg_dp_soc_ctxt: soc configuration context
|
|
*
|
|
* Return: bool
|
|
*/
|
|
bool
|
|
wlan_cfg_is_peer_ext_stats_enabled(struct wlan_cfg_dp_soc_ctxt *cfg);
|
|
|
|
/**
|
|
* wlan_cfg_is_poll_mode_enabled() - Check if poll mode is enabled
|
|
*
|
|
* @wlan_cfg_dp_soc_ctxt: soc configuration context
|
|
*
|
|
* Return: bool
|
|
*/
|
|
|
|
bool wlan_cfg_is_poll_mode_enabled(struct wlan_cfg_dp_soc_ctxt *cfg);
|
|
|
|
/**
|
|
* wlan_cfg_is_fst_in_cmem_enabled() - Check if FST in CMEM is enabled
|
|
* @cfg: soc configuration context
|
|
*
|
|
* Return: true if enabled, false otherwise.
|
|
*/
|
|
bool wlan_cfg_is_fst_in_cmem_enabled(struct wlan_cfg_dp_soc_ctxt *cfg);
|
|
|
|
/**
|
|
* wlan_cfg_is_swlm_enabled() - Get SWLMenabled flag
|
|
* @cfg: soc configuration context
|
|
*
|
|
* Return: true if enabled, false otherwise.
|
|
*/
|
|
bool wlan_cfg_is_swlm_enabled(struct wlan_cfg_dp_soc_ctxt *cfg);
|
|
|
|
/**
|
|
* wlan_cfg_is_dp_force_rx_64_ba() - Get force use 64 BA flag
|
|
* @cfg: config context
|
|
*
|
|
* Return: force use 64 BA flag
|
|
*/
|
|
bool wlan_cfg_is_dp_force_rx_64_ba(struct wlan_cfg_dp_soc_ctxt *cfg);
|
|
#endif
|
|
|
|
/**
|
|
* wlan_cfg_radio0_default_reo_get - Get Radio0 default REO
|
|
* @cfg: soc configuration context
|
|
*
|
|
* Return: .
|
|
*/
|
|
uint8_t wlan_cfg_radio0_default_reo_get(struct wlan_cfg_dp_soc_ctxt *cfg);
|
|
|
|
/**
|
|
* wlan_cfg_radio1_default_reo_get - Get Radio1 default REO
|
|
* @cfg: soc configuration context
|
|
*
|
|
* Return: .
|
|
*/
|
|
uint8_t wlan_cfg_radio1_default_reo_get(struct wlan_cfg_dp_soc_ctxt *cfg);
|
|
|
|
/**
|
|
* wlan_cfg_radio2_default_reo_get() - Get Radio2 default REO
|
|
* @cfg: soc configuration context
|
|
*
|
|
* Return: .
|
|
*/
|
|
uint8_t wlan_cfg_radio2_default_reo_get(struct wlan_cfg_dp_soc_ctxt *cfg);
|
|
|
|
/**
|
|
* wlan_cfg_set_rxdma1_enable() - Enable rxdma1
|
|
* @cfg: soc configuration context
|
|
*
|
|
* Return: .
|
|
*/
|
|
void wlan_cfg_set_rxdma1_enable(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
|