1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761 |
- #ifndef __WLAN_CFG_H
- #define __WLAN_CFG_H
- #include <wlan_init_cfg.h>
- #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
- #define MAX_IDLE_SCATTER_BUFS 16
- #define DP_MAX_IRQ_PER_CONTEXT 12
- #define MAX_HTT_METADATA_LEN 32
- #define DP_MAX_TIDS 17
- #define DP_NON_QOS_TID 16
- #define DP_NULL_DATA_TID 17
- #ifdef CONFIG_BERYLLIUM
- #define WLAN_CFG_RX_FST_MAX_SEARCH 16
- #else
- #define WLAN_CFG_RX_FST_MAX_SEARCH 2
- #endif
- #define WLAN_CFG_RX_FST_TOEPLITZ_KEYLEN 40
- #define INVALID_PDEV_ID 0xFF
- #define WLAN_CFG_RX_RING_MASK_0 0x1
- #define WLAN_CFG_RX_RING_MASK_1 0x2
- #define WLAN_CFG_RX_RING_MASK_2 0x4
- #define WLAN_CFG_RX_RING_MASK_3 0x8
- #define WLAN_CFG_RX_RING_MASK_4 0x10
- #define WLAN_CFG_RX_RING_MASK_5 0x20
- #define WLAN_CFG_RX_RING_MASK_6 0x40
- #define WLAN_CFG_RX_RING_MASK_7 0x80
- #ifdef WLAN_FEATURE_NEAR_FULL_IRQ
- #ifdef IPA_OFFLOAD
- #define WLAN_CFG_RX_NEAR_FULL_IRQ_MASK_1 (WLAN_CFG_RX_RING_MASK_0 | \
- WLAN_CFG_RX_RING_MASK_1 | \
- WLAN_CFG_RX_RING_MASK_2)
- #define WLAN_CFG_RX_NEAR_FULL_IRQ_MASK_2 (WLAN_CFG_RX_RING_MASK_4 | \
- WLAN_CFG_RX_RING_MASK_5 | \
- WLAN_CFG_RX_RING_MASK_6)
- #define WLAN_CFG_TX_RING_NEAR_FULL_IRQ_MASK (WLAN_CFG_TX_RING_MASK_0 | \
- WLAN_CFG_TX_RING_MASK_4 | \
- WLAN_CFG_TX_RING_MASK_2)
- #else
- #define WLAN_CFG_RX_NEAR_FULL_IRQ_MASK_1 (WLAN_CFG_RX_RING_MASK_0 | \
- WLAN_CFG_RX_RING_MASK_1 | \
- WLAN_CFG_RX_RING_MASK_2 | \
- WLAN_CFG_RX_RING_MASK_3)
- #define WLAN_CFG_RX_NEAR_FULL_IRQ_MASK_2 (WLAN_CFG_RX_RING_MASK_4 | \
- WLAN_CFG_RX_RING_MASK_5 | \
- WLAN_CFG_RX_RING_MASK_6 | \
- WLAN_CFG_RX_RING_MASK_7)
- #ifdef QCA_WIFI_KIWI_V2
- #define WLAN_CFG_TX_RING_NEAR_FULL_IRQ_MASK (WLAN_CFG_TX_RING_MASK_0 | \
- WLAN_CFG_TX_RING_MASK_4 | \
- WLAN_CFG_TX_RING_MASK_2 | \
- WLAN_CFG_TX_RING_MASK_5 | \
- WLAN_CFG_TX_RING_MASK_6)
- #else
- #define WLAN_CFG_TX_RING_NEAR_FULL_IRQ_MASK (WLAN_CFG_TX_RING_MASK_0 | \
- WLAN_CFG_TX_RING_MASK_4 | \
- WLAN_CFG_TX_RING_MASK_2 | \
- WLAN_CFG_TX_RING_MASK_6 | \
- WLAN_CFG_TX_RING_MASK_7)
- #endif
- #endif
- #endif
- #if defined(WLAN_FEATURE_11BE_MLO) && defined(WLAN_MLO_MULTI_CHIP)
- #define WLAN_MAX_MLO_CHIPS 4
- #define WLAN_MAX_MLO_LINKS_PER_SOC 2
- #else
- #define WLAN_MAX_MLO_CHIPS 1
- #endif
- #define UMAC_RESET_IPC 451
- struct wlan_cfg_dp_pdev_ctxt;
- struct wlan_cfg_tcl_wbm_ring_num_map {
- uint8_t tcl_ring_num;
- uint8_t wbm_ring_num;
- uint8_t wbm_rbm_id;
- uint8_t for_ipa;
- };
- struct wlan_srng_cfg {
- uint32_t timer_threshold;
- uint32_t batch_count_threshold;
- uint32_t low_threshold;
- };
- struct wlan_cfg_dp_soc_ctxt {
- int num_int_ctxts;
- int max_clients;
- int max_alloc_size;
- int per_pdev_tx_ring;
- int num_tx_comp_rings;
- int num_tcl_data_rings;
- int num_nss_tcl_data_rings;
- int per_pdev_rx_ring;
- int per_pdev_lmac_ring;
- int num_reo_dest_rings;
- int num_nss_reo_dest_rings;
- int num_tx_desc_pool;
- int num_tx_ext_desc_pool;
- int num_global_tx_desc;
- int num_global_spcl_tx_desc;
- int num_tx_desc;
- int num_tx_spl_desc;
- int min_tx_desc;
- int num_tx_ext_desc;
- int max_peer_id;
- int htt_packet_type;
- int int_batch_threshold_ppe2tcl;
- int int_timer_threshold_ppe2tcl;
- int int_batch_threshold_tx;
- int int_timer_threshold_tx;
- int int_batch_threshold_rx;
- int int_timer_threshold_rx;
- int int_batch_threshold_other;
- int int_timer_threshold_other;
- int int_batch_threshold_mon_dest;
- int int_timer_threshold_mon_dest;
- int tx_ring_size;
- int time_control_bp;
- int rx_buffer_size;
- int qref_control_size;
- int tx_comp_ring_size;
- int tx_comp_ring_size_nss;
- uint8_t int_tx_ring_mask[WLAN_CFG_INT_NUM_CONTEXTS];
- uint8_t int_rx_ring_mask[WLAN_CFG_INT_NUM_CONTEXTS];
- uint8_t int_rx_mon_ring_mask[WLAN_CFG_INT_NUM_CONTEXTS];
- uint8_t int_tx_mon_ring_mask[WLAN_CFG_INT_NUM_CONTEXTS];
- uint8_t int_host2rxdma_mon_ring_mask[WLAN_CFG_INT_NUM_CONTEXTS];
- uint8_t int_rxdma2host_mon_ring_mask[WLAN_CFG_INT_NUM_CONTEXTS];
- uint8_t int_ce_ring_mask[WLAN_CFG_INT_NUM_CONTEXTS];
- uint8_t int_rx_err_ring_mask[WLAN_CFG_INT_NUM_CONTEXTS];
- uint8_t int_rx_wbm_rel_ring_mask[WLAN_CFG_INT_NUM_CONTEXTS];
- uint8_t int_reo_status_ring_mask[WLAN_CFG_INT_NUM_CONTEXTS];
- uint8_t int_rxdma2host_ring_mask[WLAN_CFG_INT_NUM_CONTEXTS];
- uint8_t int_host2rxdma_ring_mask[WLAN_CFG_INT_NUM_CONTEXTS];
- uint8_t int_rx_ring_near_full_irq_1_mask[WLAN_CFG_INT_NUM_CONTEXTS];
- uint8_t int_rx_ring_near_full_irq_2_mask[WLAN_CFG_INT_NUM_CONTEXTS];
- uint8_t int_tx_ring_near_full_irq_mask[WLAN_CFG_INT_NUM_CONTEXTS];
- uint8_t int_host2txmon_ring_mask[WLAN_CFG_INT_NUM_CONTEXTS];
- uint8_t int_ppeds_wbm_release_ring_mask[WLAN_CFG_INT_NUM_CONTEXTS];
- uint8_t int_ppe2tcl_ring_mask[WLAN_CFG_INT_NUM_CONTEXTS];
- uint8_t int_reo2ppe_ring_mask[WLAN_CFG_INT_NUM_CONTEXTS];
- uint8_t int_umac_reset_intr_mask[WLAN_CFG_INT_NUM_CONTEXTS];
- int hw_macid[MAX_PDEV_CNT];
- int hw_macid_pdev_id_map[MAX_NUM_LMAC_HW];
- int base_hw_macid;
- bool rx_hash;
- bool tso_enabled;
- bool lro_enabled;
- bool sg_enabled;
- bool gro_enabled;
- bool tc_based_dynamic_gro;
- uint32_t tc_ingress_prio;
- bool ipa_enabled;
- bool ol_tx_csum_enabled;
- bool ol_rx_csum_enabled;
- bool rawmode_enabled;
- bool peer_flow_ctrl_enabled;
- bool napi_enabled;
- bool p2p_tcp_udp_checksumoffload;
- bool nan_tcp_udp_checksumoffload;
- bool tcp_udp_checksumoffload;
- bool legacy_mode_checksumoffload_disable;
- bool defrag_timeout_check;
- int nss_cfg;
- uint32_t tx_flow_stop_queue_threshold;
- uint32_t tx_flow_start_queue_offset;
- int rx_defrag_min_timeout;
- int reo_dst_ring_size;
- int wbm_release_ring;
- int tcl_cmd_credit_ring;
- int tcl_status_ring;
- int reo_reinject_ring;
- int rx_release_ring;
- int reo_exception_ring;
- int reo_cmd_ring;
- int reo_status_ring;
- int rxdma_refill_ring;
- bool rxdma_refill_lt_disable;
- int rxdma_err_dst_ring;
- uint32_t per_pkt_trace;
- bool raw_mode_war;
- uint32_t enable_data_stall_detection;
- bool disable_intra_bss_fwd;
- bool rxdma1_enable;
- bool delay_mon_replenish;
- int max_ast_idx;
- int tx_desc_limit_0;
- int tx_desc_limit_1;
- int tx_desc_limit_2;
- int tx_device_limit;
- int tx_spl_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
- 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;
- bool is_tso_desc_attach_defer;
- uint32_t delayed_replenish_entries;
- uint32_t reo_rings_mapping;
- uint32_t rx_rings_mapping;
- bool pext_stats_enabled;
- bool is_rx_buff_pool_enabled;
- bool is_rx_refill_buff_pool_enabled;
- bool enable_dp_buf_page_frag_alloc;
- int rx_refill_buff_pool_size;
- uint32_t rx_pending_high_threshold;
- uint32_t rx_pending_low_threshold;
- bool is_poll_mode_enabled;
- uint8_t is_swlm_enabled;
- bool fst_in_cmem;
- bool tx_per_pkt_vdev_id_check;
- uint8_t radio0_rx_default_reo;
- uint8_t radio1_rx_default_reo;
- uint8_t radio2_rx_default_reo;
- bool wow_check_rx_pending_enable;
- bool jitter_stats_enabled;
- bool peer_link_stats_enabled;
- #ifdef IPA_OFFLOAD
- uint32_t ipa_tx_ring_size;
- uint32_t ipa_tx_comp_ring_size;
- #ifdef IPA_WDI3_TX_TWO_PIPES
- int ipa_tx_alt_ring_size;
- int ipa_tx_alt_comp_ring_size;
- #endif
- #endif
- bool hw_cc_enabled;
- struct wlan_cfg_tcl_wbm_ring_num_map *tcl_wbm_map_array;
- #ifdef WLAN_SUPPORT_PPEDS
- bool ppeds_enable;
- int reo2ppe_ring;
- int ppe2tcl_ring;
- int ppeds_num_tx_desc;
- int ppeds_tx_comp_napi_budget;
- int ppeds_tx_desc_hotlist_len;
- #endif
- #ifdef WLAN_FEATURE_PKT_CAPTURE_V2
- uint32_t pkt_capture_mode;
- #endif
- uint32_t rx_mon_buf_ring_size;
- uint32_t tx_mon_buf_ring_size;
- uint8_t rx_rel_wbm2sw_ring_id;
- uint32_t tx_rings_grp_bitmap;
- #if defined(WLAN_FEATURE_11BE_MLO) && defined(WLAN_MLO_MULTI_CHIP)
- uint8_t mlo_chip_rx_ring_map;
- #endif
- #ifdef QCA_VDEV_STATS_HW_OFFLOAD_SUPPORT
- bool vdev_stats_hw_offload_config;
- int vdev_stats_hw_offload_timer;
- #endif
- uint8_t num_rxdma_dst_rings_per_pdev;
- bool txmon_hw_support;
- bool txmon_sw_peer_filtering;
- uint8_t num_rxdma_status_rings_per_pdev;
- #ifdef WLAN_TX_PKT_CAPTURE_ENH
- uint32_t tx_capt_max_mem_allowed;
- uint8_t tx_capt_rbm_id[MAX_PDEV_CNT];
- #endif
- #ifdef CONFIG_SAWF
- bool sawf_enabled;
- #endif
- #ifdef CONFIG_SAWF_STATS
- uint8_t sawf_stats;
- #endif
- uint8_t mpdu_retry_threshold_1;
- uint8_t mpdu_retry_threshold_2;
- uint8_t napi_scale_factor;
- uint8_t notify_frame_support;
- bool is_handle_invalid_decap_type_disabled;
- #ifdef DP_TX_PACKET_INSPECT_FOR_ILP
- bool tx_pkt_inspect_for_ilp;
- #endif
- uint16_t pointer_timer_threshold_rx;
- uint8_t pointer_num_threshold_rx;
- #ifdef WLAN_FEATURE_LOCAL_PKT_CAPTURE
- bool local_pkt_capture;
- #endif
- uint32_t special_frame_msk;
- #ifdef WLAN_SUPPORT_RX_FLOW_TAG
- bool rx_rr;
- #endif
- #ifdef DP_UMAC_HW_RESET_SUPPORT
- uint32_t umac_reset_buffer_window;
- #endif
- bool fw_ast_indication_disable;
- uint16_t avg_rate_stats_filter_val;
- };
- struct wlan_cfg_dp_pdev_ctxt {
- int rx_dma_buf_ring_size;
- int dma_mon_buf_ring_size;
- int dma_rx_mon_dest_ring_size;
- int dma_tx_mon_dest_ring_size;
- int dma_mon_status_ring_size;
- int rxdma_monitor_desc_ring;
- int num_mac_rings;
- int nss_enabled;
- int dma_tx_mon_buf_ring_size;
- int sw2rxdma_link_ring_size;
- };
- struct wlan_dp_prealloc_cfg {
- int num_tx_ring_entries;
- int num_tx_comp_ring_entries;
- int num_wbm_rel_ring_entries;
- int num_rxdma_err_dst_ring_entries;
- int num_reo_exception_ring_entries;
- int num_tx_desc;
- int num_tx_ext_desc;
- int num_rx_sw_desc;
- int num_reo_dst_ring_entries;
- int num_rxdma_buf_ring_entries;
- int num_rxdma_refill_ring_entries;
- int num_reo_status_ring_entries;
- int num_mon_status_ring_entries;
- int num_tx_mon_buf_ring_entries;
- int num_tx_mon_dst_ring_entries;
- };
- struct wlan_cfg_dp_soc_ctxt *
- wlan_cfg_soc_attach(struct cdp_ctrl_objmgr_psoc *psoc);
- void wlan_cfg_soc_detach(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
- struct wlan_cfg_dp_pdev_ctxt *
- wlan_cfg_pdev_attach(struct cdp_ctrl_objmgr_psoc *ctrl_obj);
- 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);
- void wlan_cfg_set_mon_delayed_replenish_entries(struct wlan_cfg_dp_soc_ctxt
- *wlan_cfg_ctx,
- uint32_t replenish_entries);
- int wlan_cfg_get_mon_delayed_replenish_entries(struct wlan_cfg_dp_soc_ctxt
- *wlan_cfg_ctx);
- int wlan_cfg_get_num_contexts(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
- int wlan_cfg_get_tx_ring_mask(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx,
- int context);
- static inline
- void wlan_cfg_get_tcl_wbm_ring_num_for_index(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx,
- int index, int *tcl, int *wbm)
- {
- *tcl = wlan_cfg_ctx->tcl_wbm_map_array[index].tcl_ring_num;
- *wbm = wlan_cfg_ctx->tcl_wbm_map_array[index].wbm_ring_num;
- }
- static inline
- int wlan_cfg_get_wbm_ring_num_for_index(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx,
- int index)
- {
- return wlan_cfg_ctx->tcl_wbm_map_array[index].wbm_ring_num;
- }
- static inline
- int wlan_cfg_get_rbm_id_for_index(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx, int index)
- {
- return wlan_cfg_ctx->tcl_wbm_map_array[index].wbm_rbm_id;
- }
- int wlan_cfg_get_rx_ring_mask(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx,
- int context);
- int wlan_cfg_get_rx_mon_ring_mask(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx,
- int context);
- void wlan_cfg_set_tx_mon_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg,
- int context, int mask);
- int wlan_cfg_get_tx_mon_ring_mask(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx,
- int context);
- void wlan_cfg_set_rxdma2host_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg,
- int context, int mask);
- int wlan_cfg_get_rxdma2host_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg,
- int context);
- void wlan_cfg_set_host2rxdma_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg,
- int context, int mask);
- int wlan_cfg_get_host2rxdma_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg,
- int context);
- int wlan_cfg_get_rx_near_full_grp_1_mask(struct wlan_cfg_dp_soc_ctxt *cfg,
- int context);
- int wlan_cfg_get_rx_near_full_grp_2_mask(struct wlan_cfg_dp_soc_ctxt *cfg,
- int context);
- int wlan_cfg_get_tx_ring_near_full_mask(struct wlan_cfg_dp_soc_ctxt *cfg,
- int context);
- void wlan_cfg_set_host2rxdma_mon_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg,
- int context, int mask);
- int wlan_cfg_get_host2rxdma_mon_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg,
- int context);
- void wlan_cfg_set_rxdma2host_mon_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg,
- int context, int mask);
- int wlan_cfg_get_rxdma2host_mon_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg,
- int context);
- void wlan_cfg_set_hw_mac_idx(struct wlan_cfg_dp_soc_ctxt *cfg,
- int pdev_idx, int hw_macid);
- int wlan_cfg_get_hw_mac_idx(struct wlan_cfg_dp_soc_ctxt *cfg, int pdev_idx);
- int
- wlan_cfg_get_target_pdev_id(struct wlan_cfg_dp_soc_ctxt *cfg, int hw_macid);
- void wlan_cfg_set_pdev_idx
- (struct wlan_cfg_dp_soc_ctxt *cfg, int pdev_idx, int hw_macid);
- int wlan_cfg_get_pdev_idx(struct wlan_cfg_dp_soc_ctxt *cfg, int hw_macid);
- int wlan_cfg_get_rx_err_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg, int
- context);
- int wlan_cfg_get_rx_wbm_rel_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg, int
- context);
- int wlan_cfg_get_reo_status_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg, int
- context);
- int wlan_cfg_get_ce_ring_mask(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx,
- int context);
- int wlan_cfg_get_umac_reset_intr_mask(struct wlan_cfg_dp_soc_ctxt *cfg,
- int context);
- uint32_t wlan_cfg_get_max_clients(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
- uint32_t wlan_cfg_max_alloc_size(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
- int wlan_cfg_per_pdev_tx_ring(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
- int wlan_cfg_num_tx_comp_rings(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
- int wlan_cfg_num_tcl_data_rings(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
- int wlan_cfg_num_nss_tcl_data_rings(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
- int wlan_cfg_per_pdev_rx_ring(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
- int wlan_cfg_per_pdev_lmac_ring(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
- int wlan_cfg_num_reo_dest_rings(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
- int wlan_cfg_num_nss_reo_dest_rings(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
- int wlan_cfg_pkt_type(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
- int wlan_cfg_get_num_tx_desc_pool(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
- void wlan_cfg_set_num_tx_desc_pool(struct wlan_cfg_dp_soc_ctxt *cfg, int num_pool);
- int wlan_cfg_get_num_tx_ext_desc_pool(
- struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
- int wlan_cfg_get_reo_dst_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg);
- void wlan_cfg_set_reo_dst_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg,
- int reo_dst_ring_size);
- void wlan_cfg_set_raw_mode_war(struct wlan_cfg_dp_soc_ctxt *cfg,
- bool raw_mode_war);
- bool wlan_cfg_get_raw_mode_war(struct wlan_cfg_dp_soc_ctxt *cfg);
- void wlan_cfg_set_num_tx_ext_desc_pool(struct wlan_cfg_dp_soc_ctxt *cfg, int num_pool);
- int wlan_cfg_get_num_global_tx_desc(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
- int wlan_cfg_get_num_global_spcl_tx_desc(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
- int wlan_cfg_get_num_tx_desc(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
- void wlan_cfg_set_num_tx_spl_desc(struct wlan_cfg_dp_soc_ctxt *cfg,
- int num_desc);
- int wlan_cfg_get_num_tx_spl_desc(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
- int wlan_cfg_get_min_tx_desc(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
- void wlan_cfg_set_num_tx_desc(struct wlan_cfg_dp_soc_ctxt *cfg, int num_desc);
- int wlan_cfg_get_num_tx_ext_desc(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
- void wlan_cfg_set_num_tx_ext_desc(struct wlan_cfg_dp_soc_ctxt *cfg,
- int num_ext_desc);
- uint32_t wlan_cfg_max_peer_id(struct wlan_cfg_dp_soc_ctxt *cfg);
- int wlan_cfg_get_dma_mon_buf_ring_size(
- struct wlan_cfg_dp_pdev_ctxt *wlan_cfg_pdev_ctx);
- int wlan_cfg_get_dma_mon_stat_ring_size(
- struct wlan_cfg_dp_pdev_ctxt *wlan_cfg_pdev_ctx);
- int
- wlan_cfg_get_dma_mon_desc_ring_size(struct wlan_cfg_dp_pdev_ctxt *cfg);
- int wlan_cfg_get_rx_dma_buf_ring_size(
- struct wlan_cfg_dp_pdev_ctxt *wlan_cfg_pdev_ctx);
- void
- wlan_cfg_set_rx_dma_buf_ring_size(struct wlan_cfg_dp_pdev_ctxt *cfg,
- int ring_size);
- uint32_t
- wlan_cfg_rx_pending_hl_threshold(struct wlan_cfg_dp_soc_ctxt *cfg);
- uint32_t
- wlan_cfg_rx_pending_lo_threshold(struct wlan_cfg_dp_soc_ctxt *cfg);
- int wlan_cfg_get_num_mac_rings(struct wlan_cfg_dp_pdev_ctxt *cfg);
- bool wlan_cfg_is_lro_enabled(struct wlan_cfg_dp_soc_ctxt *cfg);
- bool wlan_cfg_is_gro_enabled(struct wlan_cfg_dp_soc_ctxt *cfg);
- bool wlan_cfg_is_rx_hash_enabled(struct wlan_cfg_dp_soc_ctxt *cfg);
- bool wlan_cfg_is_ipa_enabled(struct wlan_cfg_dp_soc_ctxt *cfg);
- void wlan_cfg_set_rx_hash(struct wlan_cfg_dp_soc_ctxt *cfg, bool rx_hash);
- bool wlan_cfg_is_rx_rr_enabled(struct wlan_cfg_dp_soc_ctxt *cfg);
- void wlan_cfg_set_rx_rr(struct wlan_cfg_dp_soc_ctxt *cfg, bool rx_rr);
- int wlan_cfg_get_dp_pdev_nss_enabled(struct wlan_cfg_dp_pdev_ctxt *cfg);
- void wlan_cfg_set_dp_pdev_nss_enabled(struct wlan_cfg_dp_pdev_ctxt *cfg,
- int nss_enabled);
- int wlan_cfg_get_dp_soc_nss_cfg(struct wlan_cfg_dp_soc_ctxt *cfg);
- void wlan_cfg_set_dp_soc_nss_cfg(struct wlan_cfg_dp_soc_ctxt *cfg, int nss_cfg);
- int wlan_cfg_get_int_timer_threshold_ppe2tcl(struct wlan_cfg_dp_soc_ctxt *cfg);
- int wlan_cfg_get_int_batch_threshold_ppe2tcl(struct wlan_cfg_dp_soc_ctxt *cfg);
- int wlan_cfg_get_int_batch_threshold_tx(struct wlan_cfg_dp_soc_ctxt *cfg);
- int wlan_cfg_get_int_timer_threshold_tx(struct wlan_cfg_dp_soc_ctxt *cfg);
- int wlan_cfg_get_int_batch_threshold_rx(struct wlan_cfg_dp_soc_ctxt *cfg);
- int wlan_cfg_get_int_timer_threshold_rx(struct wlan_cfg_dp_soc_ctxt *cfg);
- int wlan_cfg_get_int_batch_threshold_other(struct wlan_cfg_dp_soc_ctxt *cfg);
- int wlan_cfg_get_int_timer_threshold_other(struct wlan_cfg_dp_soc_ctxt *cfg);
- int wlan_cfg_get_int_batch_threshold_mon_dest(struct wlan_cfg_dp_soc_ctxt *cfg);
- int wlan_cfg_get_int_timer_threshold_mon_dest(struct wlan_cfg_dp_soc_ctxt *cfg);
- int wlan_cfg_get_checksum_offload(struct wlan_cfg_dp_soc_ctxt *cfg);
- int wlan_cfg_get_nan_checksum_offload(struct wlan_cfg_dp_soc_ctxt *cfg);
- int wlan_cfg_get_p2p_checksum_offload(struct wlan_cfg_dp_soc_ctxt *cfg);
- int wlan_cfg_tx_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg);
- void wlan_cfg_set_tx_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg,
- int ring_size);
- int wlan_cfg_time_control_bp(struct wlan_cfg_dp_soc_ctxt *cfg);
- int wlan_cfg_rx_buffer_size(struct wlan_cfg_dp_soc_ctxt *cfg);
- int wlan_cfg_qref_control_size(struct wlan_cfg_dp_soc_ctxt *cfg);
- int wlan_cfg_tx_comp_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg);
- void wlan_cfg_set_tx_comp_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg,
- int ring_size);
- int
- wlan_cfg_get_dp_soc_wbm_release_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg);
- int
- wlan_cfg_get_dp_soc_tcl_cmd_credit_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg);
- int
- wlan_cfg_get_dp_soc_tcl_status_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg);
- int
- wlan_cfg_get_dp_soc_reo_reinject_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg);
- int
- wlan_cfg_get_dp_soc_rx_release_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg);
- int
- wlan_cfg_get_dp_soc_reo_exception_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg);
- int
- wlan_cfg_get_dp_soc_reo_cmd_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg);
- int
- wlan_cfg_get_dp_soc_reo_status_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg);
- int
- wlan_cfg_get_dp_soc_tx_desc_limit_0(struct wlan_cfg_dp_soc_ctxt *cfg);
- int
- wlan_cfg_get_dp_soc_tx_desc_limit_1(struct wlan_cfg_dp_soc_ctxt *cfg);
- int
- wlan_cfg_get_dp_soc_tx_desc_limit_2(struct wlan_cfg_dp_soc_ctxt *cfg);
- int
- wlan_cfg_get_dp_soc_tx_device_limit(struct wlan_cfg_dp_soc_ctxt *cfg);
- int
- wlan_cfg_get_dp_soc_tx_spl_device_limit(struct wlan_cfg_dp_soc_ctxt *cfg);
- int
- wlan_cfg_get_dp_soc_tx_sw_internode_queue(struct wlan_cfg_dp_soc_ctxt *cfg);
- int
- wlan_cfg_get_dp_soc_rxdma_refill_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg);
- void
- wlan_cfg_set_dp_soc_rxdma_refill_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg,
- int ring_size);
- bool
- wlan_cfg_get_dp_soc_rxdma_refill_lt_disable(struct wlan_cfg_dp_soc_ctxt *cfg);
- int
- wlan_cfg_get_dp_soc_rxdma_err_dst_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg);
- int
- wlan_cfg_get_dp_soc_rx_sw_desc_weight(struct wlan_cfg_dp_soc_ctxt *cfg);
- int
- wlan_cfg_get_dp_soc_rx_sw_desc_num(struct wlan_cfg_dp_soc_ctxt *cfg);
- void
- wlan_cfg_set_dp_soc_rx_sw_desc_num(struct wlan_cfg_dp_soc_ctxt *cfg,
- int desc_num);
- bool
- wlan_cfg_get_dp_caps(struct wlan_cfg_dp_soc_ctxt *cfg,
- enum cdp_capabilities dp_caps);
- 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
- 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);
- uint16_t
- wlan_cfg_get_rx_flow_search_table_size(struct wlan_cfg_dp_soc_ctxt *cfg);
- uint8_t wlan_cfg_rx_fst_get_max_search(struct wlan_cfg_dp_soc_ctxt *cfg);
- uint8_t *wlan_cfg_rx_fst_get_hash_key(struct wlan_cfg_dp_soc_ctxt *cfg);
- void wlan_cfg_set_rx_flow_tag_enabled(struct wlan_cfg_dp_soc_ctxt *cfg,
- bool val);
- bool wlan_cfg_is_rx_flow_tag_enabled(struct wlan_cfg_dp_soc_ctxt *cfg);
- void
- wlan_cfg_set_rx_flow_search_table_per_pdev(struct wlan_cfg_dp_soc_ctxt *cfg,
- bool val);
- bool
- wlan_cfg_is_rx_flow_search_table_per_pdev(struct wlan_cfg_dp_soc_ctxt *cfg);
- void
- wlan_cfg_set_rx_flow_search_table_size(struct wlan_cfg_dp_soc_ctxt *cfg,
- uint16_t val);
- void
- wlan_cfg_set_rx_mon_protocol_flow_tag_enabled(struct wlan_cfg_dp_soc_ctxt *cfg,
- bool val);
- bool
- wlan_cfg_is_rx_mon_protocol_flow_tag_enabled(struct wlan_cfg_dp_soc_ctxt *cfg);
- void
- wlan_cfg_set_tx_per_pkt_vdev_id_check(struct wlan_cfg_dp_soc_ctxt *cfg,
- bool val);
- bool
- wlan_cfg_is_tx_per_pkt_vdev_id_check_enabled(struct wlan_cfg_dp_soc_ctxt *cfg);
- void wlan_cfg_fill_interrupt_mask(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx,
- int num_dp_msi, int interrupt_mode,
- bool is_monitor_mode, bool ppeds_attached,
- bool umac_reset_support);
- bool wlan_cfg_is_rx_buffer_pool_enabled(struct wlan_cfg_dp_soc_ctxt *cfg);
- bool wlan_cfg_is_rx_refill_buffer_pool_enabled(struct wlan_cfg_dp_soc_ctxt *cfg);
- bool
- wlan_cfg_is_dp_buf_page_frag_alloc_enable(struct wlan_cfg_dp_soc_ctxt *cfg);
- #ifdef WLAN_FEATURE_RX_PREALLOC_BUFFER_POOL
- int wlan_cfg_get_rx_refill_buf_pool_size(struct wlan_cfg_dp_soc_ctxt *cfg);
- void
- wlan_cfg_set_rx_refill_buf_pool_size(struct wlan_cfg_dp_soc_ctxt *cfg,
- int size);
- #endif
- 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);
- uint32_t wlan_cfg_get_reo_rings_mapping(struct wlan_cfg_dp_soc_ctxt *cfg);
- uint32_t wlan_cfg_get_rx_rings_mapping(struct wlan_cfg_dp_soc_ctxt *cfg);
- void
- wlan_cfg_set_peer_ext_stats(struct wlan_cfg_dp_soc_ctxt *cfg,
- bool val);
- void
- wlan_cfg_set_peer_jitter_stats(struct wlan_cfg_dp_soc_ctxt *cfg,
- bool val);
- bool
- wlan_cfg_is_peer_ext_stats_enabled(struct wlan_cfg_dp_soc_ctxt *cfg);
- bool
- wlan_cfg_is_peer_jitter_stats_enabled(struct wlan_cfg_dp_soc_ctxt *cfg);
- bool wlan_cfg_is_poll_mode_enabled(struct wlan_cfg_dp_soc_ctxt *cfg);
- bool wlan_cfg_is_fst_in_cmem_enabled(struct wlan_cfg_dp_soc_ctxt *cfg);
- bool wlan_cfg_is_swlm_enabled(struct wlan_cfg_dp_soc_ctxt *cfg);
- void
- wlan_cfg_set_peer_link_stats(struct wlan_cfg_dp_soc_ctxt *cfg,
- bool val);
- bool
- wlan_cfg_is_peer_link_stats_enabled(struct wlan_cfg_dp_soc_ctxt *cfg);
- #ifdef IPA_OFFLOAD
- uint32_t wlan_cfg_ipa_tx_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg);
- uint32_t wlan_cfg_ipa_tx_comp_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg);
- int wlan_cfg_ipa_tx_alt_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg);
- int
- wlan_cfg_ipa_tx_alt_comp_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg);
- #else
- static inline
- uint32_t wlan_cfg_ipa_tx_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg)
- {
- return 0;
- }
- static inline
- uint32_t wlan_cfg_ipa_tx_comp_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg)
- {
- return 0;
- }
- #endif
- uint8_t wlan_cfg_radio0_default_reo_get(struct wlan_cfg_dp_soc_ctxt *cfg);
- uint8_t wlan_cfg_radio1_default_reo_get(struct wlan_cfg_dp_soc_ctxt *cfg);
- uint8_t wlan_cfg_radio2_default_reo_get(struct wlan_cfg_dp_soc_ctxt *cfg);
- void wlan_cfg_set_rxdma1_enable(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
- bool
- wlan_cfg_is_delay_mon_replenish(struct wlan_cfg_dp_soc_ctxt *cfg);
- void
- wlan_cfg_set_delay_mon_replenish(struct wlan_cfg_dp_soc_ctxt *cfg, bool val);
- void wlan_cfg_dp_soc_ctx_dump(struct wlan_cfg_dp_soc_ctxt *cfg);
- #ifdef WLAN_SUPPORT_PPEDS
- bool
- wlan_cfg_get_dp_soc_ppeds_enable(struct wlan_cfg_dp_soc_ctxt *cfg);
- int
- wlan_cfg_get_dp_soc_reo2ppe_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg);
- int
- wlan_cfg_get_dp_soc_ppe2tcl_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg);
- int
- wlan_cfg_get_dp_soc_ppeds_num_tx_desc(struct wlan_cfg_dp_soc_ctxt *cfg);
- int
- wlan_cfg_get_dp_soc_ppeds_tx_desc_hotlist_len(struct wlan_cfg_dp_soc_ctxt *cfg);
- int
- wlan_cfg_get_dp_soc_ppeds_tx_comp_napi_budget(struct wlan_cfg_dp_soc_ctxt *cfg);
- #else
- static inline bool
- wlan_cfg_get_dp_soc_ppeds_enable(struct wlan_cfg_dp_soc_ctxt *cfg)
- {
- return false;
- }
- static inline int
- wlan_cfg_get_dp_soc_reo2ppe_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg)
- {
- return 0;
- }
- static inline int
- wlan_cfg_get_dp_soc_ppe2tcl_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg)
- {
- return 0;
- }
- static inline int
- wlan_cfg_get_dp_soc_ppeds_num_tx_desc(struct wlan_cfg_dp_soc_ctxt *cfg)
- {
- return 0;
- }
- static inline int
- wlan_cfg_get_dp_soc_ppeds_tx_comp_napi_budget(struct wlan_cfg_dp_soc_ctxt *cfg)
- {
- return 0;
- }
- static inline int
- wlan_cfg_get_dp_soc_ppeds_tx_desc_hotlist_len(struct wlan_cfg_dp_soc_ctxt *cfg)
- {
- return 0;
- }
- #endif
- void
- wlan_cfg_get_prealloc_cfg(struct cdp_ctrl_objmgr_psoc *ctrl_psoc,
- struct wlan_dp_prealloc_cfg *cfg);
- #ifdef WLAN_FEATURE_PKT_CAPTURE_V2
- uint32_t wlan_cfg_get_pkt_capture_mode(struct wlan_cfg_dp_soc_ctxt *cfg);
- #else
- static inline
- uint32_t wlan_cfg_get_pkt_capture_mode(struct wlan_cfg_dp_soc_ctxt *cfg)
- {
- return 0;
- }
- #endif
- uint32_t
- wlan_cfg_get_dp_soc_rx_mon_buf_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg);
- uint32_t
- wlan_cfg_get_dp_soc_tx_mon_buf_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg);
- int wlan_cfg_get_dma_rx_mon_dest_ring_size(struct wlan_cfg_dp_pdev_ctxt *cfg);
- int wlan_cfg_get_dma_sw2rxdma_link_ring_size(struct wlan_cfg_dp_pdev_ctxt *cfg);
- int wlan_cfg_get_dma_tx_mon_dest_ring_size(struct wlan_cfg_dp_pdev_ctxt *cfg);
- uint8_t
- wlan_cfg_get_rx_rel_ring_id(struct wlan_cfg_dp_soc_ctxt *cfg);
- void
- wlan_cfg_set_rx_rel_ring_id(struct wlan_cfg_dp_soc_ctxt *cfg,
- uint8_t wbm2sw_ring_id);
- void
- wlan_cfg_set_vdev_stats_hw_offload_config(struct wlan_cfg_dp_soc_ctxt *cfg,
- bool value);
- bool
- wlan_cfg_get_vdev_stats_hw_offload_config(struct wlan_cfg_dp_soc_ctxt *cfg);
- int wlan_cfg_get_vdev_stats_hw_offload_timer(struct wlan_cfg_dp_soc_ctxt *cfg);
- void
- wlan_cfg_set_sawf_config(struct wlan_cfg_dp_soc_ctxt *cfg, bool value);
- bool
- wlan_cfg_get_sawf_config(struct wlan_cfg_dp_soc_ctxt *cfg);
- void
- wlan_cfg_set_sawf_stats_config(struct wlan_cfg_dp_soc_ctxt *cfg, uint8_t value);
- uint8_t
- wlan_cfg_get_sawf_stats_config(struct wlan_cfg_dp_soc_ctxt *cfg);
- #if defined(WLAN_FEATURE_11BE_MLO) && defined(WLAN_MLO_MULTI_CHIP)
- uint8_t
- wlan_cfg_mlo_rx_ring_map_get(struct wlan_cfg_dp_soc_ctxt *cfg);
- #endif
- void wlan_cfg_set_host2txmon_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg,
- int context, int mask);
- int wlan_cfg_get_host2txmon_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg,
- int context);
- void wlan_cfg_set_txmon_hw_support(struct wlan_cfg_dp_soc_ctxt *cfg,
- bool txmon_hw_support);
- bool wlan_cfg_get_txmon_hw_support(struct wlan_cfg_dp_soc_ctxt *cfg);
- void wlan_cfg_set_txmon_sw_peer_filtering(struct wlan_cfg_dp_soc_ctxt *cfg,
- bool txmon_sw_peer_filtering);
- bool wlan_cfg_get_txmon_sw_peer_filtering(struct wlan_cfg_dp_soc_ctxt *cfg);
- #ifdef WLAN_TX_PKT_CAPTURE_ENH
- static inline int
- wlan_cfg_get_tx_capt_max_mem(struct wlan_cfg_dp_soc_ctxt *cfg)
- {
- return cfg->tx_capt_max_mem_allowed;
- }
- static inline int
- wlan_cfg_get_tx_capt_rbm_id(struct wlan_cfg_dp_soc_ctxt *cfg, uint8_t idx)
- {
- if (idx >= MAX_PDEV_CNT) {
- qdf_err("!!! pdev index is greater than expected");
- qdf_assert(0);
-
- idx = 0;
- }
- return cfg->tx_capt_rbm_id[idx];
- }
- #endif
- #ifdef DP_TX_PACKET_INSPECT_FOR_ILP
- static inline bool
- wlan_cfg_get_tx_ilp_inspect_config(struct wlan_cfg_dp_soc_ctxt *cfg)
- {
- return cfg->tx_pkt_inspect_for_ilp;
- }
- #endif
- uint8_t wlan_cfg_get_napi_scale_factor(struct wlan_cfg_dp_soc_ctxt *cfg);
- void
- wlan_cfg_soc_update_tgt_params(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx,
- struct cdp_ctrl_objmgr_psoc *ctrl_obj);
- uint16_t
- wlan_cfg_get_pointer_timer_threshold_rx(struct wlan_cfg_dp_soc_ctxt *cfg);
- uint8_t
- wlan_cfg_get_pointer_num_threshold_rx(struct wlan_cfg_dp_soc_ctxt *cfg);
- #ifdef WLAN_FEATURE_LOCAL_PKT_CAPTURE
- static inline
- bool wlan_cfg_get_local_pkt_capture(struct wlan_cfg_dp_soc_ctxt *cfg)
- {
- return cfg->local_pkt_capture;
- }
- #else
- static inline
- bool wlan_cfg_get_local_pkt_capture(struct wlan_cfg_dp_soc_ctxt *cfg)
- {
- return false;
- }
- #endif
- uint32_t
- wlan_cfg_get_special_frame_cfg(struct wlan_cfg_dp_soc_ctxt *cfg);
- #ifdef DP_UMAC_HW_RESET_SUPPORT
- uint32_t
- wlan_cfg_get_umac_reset_buffer_window_ms(struct wlan_cfg_dp_soc_ctxt *cfg);
- #else
- static inline uint32_t
- wlan_cfg_get_umac_reset_buffer_window_ms(struct wlan_cfg_dp_soc_ctxt *cfg)
- {
- return 0;
- }
- #endif
- void wlan_cfg_set_ast_indication_disable(struct wlan_cfg_dp_soc_ctxt *cfg,
- bool val);
- bool wlan_cfg_get_ast_indication_disable(struct wlan_cfg_dp_soc_ctxt *cfg);
- int wlan_cfg_get_dp_soc_dpdk_cfg(struct cdp_ctrl_objmgr_psoc *psoc);
- #endif
|