wlan_cfg.h 45 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504
  1. /*
  2. * Copyright (c) 2013-2020 The Linux Foundation. All rights reserved.
  3. *
  4. * Permission to use, copy, modify, and/or distribute this software for
  5. * any purpose with or without fee is hereby granted, provided that the
  6. * above copyright notice and this permission notice appear in all
  7. * copies.
  8. *
  9. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
  10. * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
  11. * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
  12. * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
  13. * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
  14. * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  15. * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  16. * PERFORMANCE OF THIS SOFTWARE.
  17. */
  18. #ifndef __WLAN_CFG_H
  19. #define __WLAN_CFG_H
  20. /*
  21. * Temporary place holders. These should come either from target config
  22. * or platform configuration
  23. */
  24. #if defined(WLAN_MAX_PDEVS) && (WLAN_MAX_PDEVS == 1)
  25. #define WLAN_CFG_DST_RING_CACHED_DESC 0
  26. #define MAX_PDEV_CNT 1
  27. #define WLAN_CFG_INT_NUM_CONTEXTS 7
  28. #define WLAN_CFG_RXDMA1_ENABLE 1
  29. /*
  30. * This mask defines how many transmit frames account for 1 NAPI work unit
  31. * 0 means each tx completion is 1 unit
  32. */
  33. #define DP_TX_NAPI_BUDGET_DIV_MASK 0
  34. /* PPDU Stats Configuration - Configure bitmask for enabling tx ppdu tlv's */
  35. #define DP_PPDU_TXLITE_STATS_BITMASK_CFG 0x3FFF
  36. #define NUM_RXDMA_RINGS_PER_PDEV 2
  37. /*Maximum Number of LMAC instances*/
  38. #define MAX_NUM_LMAC_HW 2
  39. #else
  40. #define WLAN_CFG_DST_RING_CACHED_DESC 1
  41. #define MAX_PDEV_CNT 3
  42. #define WLAN_CFG_INT_NUM_CONTEXTS 11
  43. #define NUM_RXDMA_RINGS_PER_PDEV 1
  44. #define MAX_NUM_LMAC_HW 3
  45. #endif
  46. #define WLAN_CFG_INT_NUM_CONTEXTS_MAX 11
  47. /* Tx configuration */
  48. #define MAX_LINK_DESC_BANKS 8
  49. #define MAX_TXDESC_POOLS 4
  50. #define MAX_TCL_DATA_RINGS 4
  51. /* Rx configuration */
  52. #define MAX_RXDESC_POOLS 4
  53. #define MAX_REO_DEST_RINGS 4
  54. #define MAX_RX_MAC_RINGS 2
  55. /* DP process status */
  56. #if defined(MAX_PDEV_CNT) && (MAX_PDEV_CNT == 1)
  57. #define CONFIG_PROCESS_RX_STATUS 1
  58. #define CONFIG_PROCESS_TX_STATUS 1
  59. #else
  60. #define CONFIG_PROCESS_RX_STATUS 0
  61. #define CONFIG_PROCESS_TX_STATUS 0
  62. #endif
  63. /* Miscellaneous configuration */
  64. #define MAX_IDLE_SCATTER_BUFS 16
  65. #define DP_MAX_IRQ_PER_CONTEXT 12
  66. #define MAX_HTT_METADATA_LEN 32
  67. #define DP_MAX_TIDS 17
  68. #define DP_NON_QOS_TID 16
  69. #define DP_NULL_DATA_TID 17
  70. #define WLAN_CFG_RX_FST_MAX_SEARCH 2
  71. #define WLAN_CFG_RX_FST_TOEPLITZ_KEYLEN 40
  72. #define INVALID_PDEV_ID 0xFF
  73. struct wlan_cfg_dp_pdev_ctxt;
  74. /**
  75. * struct wlan_srng_cfg - Per ring configuration parameters
  76. * @timer_threshold: Config to control interrupts based on timer duration
  77. * @batch_count_threshold: Config to control interrupts based on
  78. * number of packets in the ring
  79. * @low_threshold: Config to control low threshold interrupts for SRC rings
  80. */
  81. struct wlan_srng_cfg {
  82. uint32_t timer_threshold;
  83. uint32_t batch_count_threshold;
  84. uint32_t low_threshold;
  85. };
  86. /**
  87. * struct wlan_cfg_dp_soc_ctxt - Configuration parameters for SoC (core TxRx)
  88. * @num_int_ctxts: Number of NAPI/Interrupt contexts to be registered for DP
  89. * @max_clients: Maximum number of peers/stations supported by device
  90. * @max_alloc_size: Maximum allocation size for any dynamic memory
  91. * allocation request for this device
  92. * @per_pdev_tx_ring: 0: TCL ring is not mapped per radio
  93. * 1: Each TCL ring is mapped to one radio/pdev
  94. * @num_tcl_data_rings: Number of TCL Data rings supported by device
  95. * @per_pdev_rx_ring: 0: REO ring is not mapped per radio
  96. * 1: Each REO ring is mapped to one radio/pdev
  97. * @num_tx_desc_pool: Number of Tx Descriptor pools
  98. * @num_tx_ext_desc_pool: Number of Tx MSDU extension Descriptor pools
  99. * @num_tx_desc: Number of Tx Descriptors per pool
  100. * @min_tx_desc: Minimum number of Tx Descriptors per pool
  101. * @num_tx_ext_desc: Number of Tx MSDU extension Descriptors per pool
  102. * @max_peer_id: Maximum value of peer id that FW can assign for a client
  103. * @htt_packet_type: Default 802.11 encapsulation type for any VAP created
  104. * @int_tx_ring_mask: Bitmap of Tx interrupts mapped to each NAPI/Intr context
  105. * @int_rx_ring_mask: Bitmap of Rx interrupts mapped to each NAPI/Intr context
  106. * @int_rx_mon_ring_mask: Bitmap of Rx monitor ring interrupts mapped to each
  107. * NAPI/Intr context
  108. * @int_rx_err_ring_mask: Bitmap of Rx err ring interrupts mapped to each
  109. * NAPI/Intr context
  110. * @int_wbm_rel_ring_mask: Bitmap of wbm rel ring interrupts mapped to each
  111. * NAPI/Intr context
  112. * @int_reo_status_ring_mask: Bitmap of reo status ring interrupts mapped to
  113. * each NAPI/Intr context
  114. * @int_ce_ring_mask: Bitmap of CE interrupts mapped to each NAPI/Intr context
  115. * @lro_enabled: enable/disable lro feature
  116. * @rx_hash: Enable hash based steering of rx packets
  117. * @tso_enabled: enable/disable tso feature
  118. * @lro_enabled: enable/disable LRO feature
  119. * @sg_enabled: enable disable scatter gather feature
  120. * @gro_enabled: enable disable GRO feature
  121. * @ipa_enabled: Flag indicating if IPA is enabled
  122. * @ol_tx_csum_enabled: Flag indicating if TX csum is enabled
  123. * @ol_rx_csum_enabled: Flag indicating if Rx csum is enabled
  124. * @rawmode_enabled: Flag indicating if RAW mode is enabled
  125. * @peer_flow_ctrl_enabled: Flag indicating if peer flow control is enabled
  126. * @napi_enabled: enable/disable interrupt mode for reaping tx and rx packets
  127. * @p2p_tcp_udp_checksumoffload: enable/disable checksum offload for P2P mode
  128. * @nan_tcp_udp_checksumoffload: enable/disable checksum offload for NAN mode
  129. * @tcp_udp_checksumoffload: enable/disable checksum offload
  130. * @nss_cfg: nss configuration
  131. * @rx_defrag_min_timeout: rx defrag minimum timeout
  132. * @wbm_release_ring: wbm release ring size
  133. * @tcl_cmd_credit_ring: tcl command/credit ring size
  134. * @tcl_status_ring: tcl status ring size
  135. * @reo_reinject_ring: reo reinject ring
  136. * @rx_release_ring: rx release ring size
  137. * @reo_exception_ring: reo exception ring size
  138. * @reo_cmd_ring: reo cmd ring size
  139. * @reo_status_ring: reo status ting size
  140. * @rxdma_refill_ring: rxdma refill ring size
  141. * @rxdma_err_dst_ring: rxdma error detination ring size
  142. * @raw_mode_war: enable/disable raw mode war
  143. * @enable_data_stall_detection: flag to enable data stall detection
  144. * @disable_intra_bss_fwd: flag to disable intra bss forwarding
  145. * @rxdma1_enable: flag to indicate if rxdma1 is enabled
  146. * @tx_desc_limit_0: tx_desc limit for 5G H
  147. * @tx_desc_limit_1: tx_desc limit for 2G
  148. * @tx_desc_limit_2: tx_desc limit for 5G L
  149. * @tx_device_limit: tx device limit
  150. * @tx_sw_internode_queue: tx sw internode queue
  151. * @tx_comp_loop_pkt_limit: Max # of packets to be processed in 1 tx comp loop
  152. * @rx_reap_loop_pkt_limit: Max # of packets to be processed in 1 rx reap loop
  153. * @rx_hp_oos_update_limit: Max # of HP OOS (out of sync) updates
  154. * @rx_enable_eol_data_check: flag to enable check for more ring data at end of
  155. * dp_rx_process loop
  156. * @tx_comp_enable_eol_data_check: flag to enable/disable checking for more data
  157. * at end of tx_comp_handler loop.
  158. * @rx_sw_desc_weight: rx sw descriptor weight configuration
  159. * @is_rx_mon_protocol_flow_tag_enabled: flag to enable/disable RX protocol or
  160. * flow tagging in monitor/mon-lite mode
  161. * @is_rx_flow_tag_enabled: flag to enable/disable RX flow tagging using FSE
  162. * @is_rx_flow_search_table_per_pdev: flag to indicate if a per-SOC or per-pdev
  163. * table should be used
  164. * @rx_flow_search_table_size: indicates the number of flows in the flow search
  165. * table
  166. * @rx_flow_max_search: max skid length for each hash entry
  167. * @rx_toeplitz_hash_key: toeplitz key pointer used for hash computation over
  168. * 5 tuple flow entry
  169. * @pktlog_buffer_size: packet log buffer size
  170. * @is_rx_fisa_enabled: flag to enable/disable FISA Rx
  171. * @pext_stats_enabled: Flag to enable and disabled peer extended stats
  172. * @is_rx_buff_pool_enabled: flag to enable/disable emergency RX buffer
  173. * pool support
  174. * @rx_pending_high_threshold: threshold of starting pkt drop
  175. * @rx_pending_low_threshold: threshold of stopping pkt drop
  176. * @is_swlm_enabled: flag to enable/disable SWLM
  177. * @tx_per_pkt_vdev_id_check: Enable tx perpkt vdev id check
  178. */
  179. struct wlan_cfg_dp_soc_ctxt {
  180. int num_int_ctxts;
  181. int max_clients;
  182. int max_alloc_size;
  183. int per_pdev_tx_ring;
  184. int num_tcl_data_rings;
  185. int per_pdev_rx_ring;
  186. int per_pdev_lmac_ring;
  187. int num_reo_dest_rings;
  188. int num_tx_desc_pool;
  189. int num_tx_ext_desc_pool;
  190. int num_tx_desc;
  191. int min_tx_desc;
  192. int num_tx_ext_desc;
  193. int max_peer_id;
  194. int htt_packet_type;
  195. int int_batch_threshold_tx;
  196. int int_timer_threshold_tx;
  197. int int_batch_threshold_rx;
  198. int int_timer_threshold_rx;
  199. int int_batch_threshold_other;
  200. int int_timer_threshold_other;
  201. int int_timer_threshold_mon;
  202. int tx_ring_size;
  203. int tx_comp_ring_size;
  204. int tx_comp_ring_size_nss;
  205. int int_tx_ring_mask[WLAN_CFG_INT_NUM_CONTEXTS];
  206. int int_rx_ring_mask[WLAN_CFG_INT_NUM_CONTEXTS];
  207. int int_rx_mon_ring_mask[WLAN_CFG_INT_NUM_CONTEXTS];
  208. int int_host2rxdma_mon_ring_mask[WLAN_CFG_INT_NUM_CONTEXTS];
  209. int int_rxdma2host_mon_ring_mask[WLAN_CFG_INT_NUM_CONTEXTS];
  210. int int_ce_ring_mask[WLAN_CFG_INT_NUM_CONTEXTS];
  211. int int_rx_err_ring_mask[WLAN_CFG_INT_NUM_CONTEXTS];
  212. int int_rx_wbm_rel_ring_mask[WLAN_CFG_INT_NUM_CONTEXTS];
  213. int int_reo_status_ring_mask[WLAN_CFG_INT_NUM_CONTEXTS];
  214. int int_rxdma2host_ring_mask[WLAN_CFG_INT_NUM_CONTEXTS];
  215. int int_host2rxdma_ring_mask[WLAN_CFG_INT_NUM_CONTEXTS];
  216. int hw_macid[MAX_PDEV_CNT];
  217. int hw_macid_pdev_id_map[MAX_NUM_LMAC_HW];
  218. int base_hw_macid;
  219. bool rx_hash;
  220. bool tso_enabled;
  221. bool lro_enabled;
  222. bool sg_enabled;
  223. bool gro_enabled;
  224. bool ipa_enabled;
  225. bool ol_tx_csum_enabled;
  226. bool ol_rx_csum_enabled;
  227. bool rawmode_enabled;
  228. bool peer_flow_ctrl_enabled;
  229. bool napi_enabled;
  230. bool p2p_tcp_udp_checksumoffload;
  231. bool nan_tcp_udp_checksumoffload;
  232. bool tcp_udp_checksumoffload;
  233. bool legacy_mode_checksumoffload_disable;
  234. bool defrag_timeout_check;
  235. int nss_cfg;
  236. uint32_t tx_flow_stop_queue_threshold;
  237. uint32_t tx_flow_start_queue_offset;
  238. int rx_defrag_min_timeout;
  239. int reo_dst_ring_size;
  240. int wbm_release_ring;
  241. int tcl_cmd_credit_ring;
  242. int tcl_status_ring;
  243. int reo_reinject_ring;
  244. int rx_release_ring;
  245. int reo_exception_ring;
  246. int reo_cmd_ring;
  247. int reo_status_ring;
  248. int rxdma_refill_ring;
  249. int rxdma_err_dst_ring;
  250. uint32_t per_pkt_trace;
  251. bool raw_mode_war;
  252. bool enable_data_stall_detection;
  253. bool disable_intra_bss_fwd;
  254. bool rxdma1_enable;
  255. int max_ast_idx;
  256. int tx_desc_limit_0;
  257. int tx_desc_limit_1;
  258. int tx_desc_limit_2;
  259. int tx_device_limit;
  260. int tx_sw_internode_queue;
  261. int mon_drop_thresh;
  262. #ifdef WLAN_FEATURE_RX_SOFTIRQ_TIME_LIMIT
  263. uint32_t tx_comp_loop_pkt_limit;
  264. uint32_t rx_reap_loop_pkt_limit;
  265. uint32_t rx_hp_oos_update_limit;
  266. bool rx_enable_eol_data_check;
  267. bool tx_comp_enable_eol_data_check;
  268. #endif /* WLAN_FEATURE_RX_SOFTIRQ_TIME_LIMIT */
  269. int rx_sw_desc_weight;
  270. int rx_sw_desc_num;
  271. bool is_rx_mon_protocol_flow_tag_enabled;
  272. bool is_rx_flow_tag_enabled;
  273. bool is_rx_flow_search_table_per_pdev;
  274. uint16_t rx_flow_search_table_size;
  275. uint16_t rx_flow_max_search;
  276. uint8_t *rx_toeplitz_hash_key;
  277. uint8_t pktlog_buffer_size;
  278. uint8_t is_rx_fisa_enabled;
  279. bool is_tso_desc_attach_defer;
  280. uint32_t delayed_replenish_entries;
  281. uint32_t reo_rings_mapping;
  282. bool pext_stats_enabled;
  283. bool is_rx_buff_pool_enabled;
  284. uint32_t rx_pending_high_threshold;
  285. uint32_t rx_pending_low_threshold;
  286. bool is_poll_mode_enabled;
  287. uint8_t is_swlm_enabled;
  288. bool fst_in_cmem;
  289. bool tx_per_pkt_vdev_id_check;
  290. uint8_t radio0_rx_default_reo;
  291. uint8_t radio1_rx_default_reo;
  292. uint8_t radio2_rx_default_reo;
  293. };
  294. /**
  295. * struct wlan_cfg_dp_pdev_ctxt - Configuration parameters for pdev (radio)
  296. * @rx_dma_buf_ring_size - Size of RxDMA buffer ring
  297. * @dma_mon_buf_ring_size - Size of RxDMA Monitor buffer ring
  298. * @dma_mon_dest_ring_size - Size of RxDMA Monitor Destination ring
  299. * @dma_mon_status_ring_size - Size of RxDMA Monitor Status ring
  300. * @rxdma_monitor_desc_ring - rxdma monitor desc ring size
  301. */
  302. struct wlan_cfg_dp_pdev_ctxt {
  303. int rx_dma_buf_ring_size;
  304. int dma_mon_buf_ring_size;
  305. int dma_mon_dest_ring_size;
  306. int dma_mon_status_ring_size;
  307. int rxdma_monitor_desc_ring;
  308. int num_mac_rings;
  309. int nss_enabled;
  310. };
  311. /**
  312. * wlan_cfg_soc_attach() - Attach configuration interface for SoC
  313. * @ctrl_obj - PSOC object
  314. *
  315. * Allocates context for Soc configuration parameters,
  316. * Read configuration information from device tree/ini file and
  317. * returns back handle
  318. *
  319. * Return: Handle to configuration context
  320. */
  321. struct wlan_cfg_dp_soc_ctxt *
  322. wlan_cfg_soc_attach(struct cdp_ctrl_objmgr_psoc *ctrl_obj);
  323. /**
  324. * wlan_cfg_soc_detach() - Detach soc configuration handle
  325. * @wlan_cfg_ctx: soc configuration handle
  326. *
  327. * De-allocates memory allocated for SoC configuration
  328. *
  329. * Return:none
  330. */
  331. void wlan_cfg_soc_detach(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
  332. /**
  333. * wlan_cfg_pdev_attach() Attach configuration interface for pdev
  334. * @ctrl_obj - PSOC object
  335. *
  336. * Allocates context for pdev configuration parameters,
  337. * Read configuration information from device tree/ini file and
  338. * returns back handle
  339. *
  340. * Return: Handle to configuration context
  341. */
  342. struct wlan_cfg_dp_pdev_ctxt *
  343. wlan_cfg_pdev_attach(struct cdp_ctrl_objmgr_psoc *ctrl_obj);
  344. /**
  345. * wlan_cfg_pdev_detach() Detach and free pdev configuration handle
  346. * @wlan_cfg_pdev_ctx - PDEV Configuration Handle
  347. *
  348. * Return: void
  349. */
  350. void wlan_cfg_pdev_detach(struct wlan_cfg_dp_pdev_ctxt *wlan_cfg_pdev_ctx);
  351. void wlan_cfg_set_num_contexts(struct wlan_cfg_dp_soc_ctxt *cfg, int num);
  352. void wlan_cfg_set_tx_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg,
  353. int context, int mask);
  354. void wlan_cfg_set_rx_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg,
  355. int context, int mask);
  356. void wlan_cfg_set_rx_mon_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg,
  357. int context, int mask);
  358. void wlan_cfg_set_ce_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg,
  359. int context, int mask);
  360. void wlan_cfg_set_rxbuf_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg, int context,
  361. int mask);
  362. void wlan_cfg_set_max_peer_id(struct wlan_cfg_dp_soc_ctxt *cfg, uint32_t val);
  363. void wlan_cfg_set_max_ast_idx(struct wlan_cfg_dp_soc_ctxt *cfg, uint32_t val);
  364. int wlan_cfg_get_max_ast_idx(struct wlan_cfg_dp_soc_ctxt *cfg);
  365. int wlan_cfg_get_mon_drop_thresh(struct wlan_cfg_dp_soc_ctxt *cfg);
  366. int wlan_cfg_set_rx_err_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg,
  367. int context, int mask);
  368. int wlan_cfg_set_rx_wbm_rel_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg,
  369. int context, int mask);
  370. int wlan_cfg_set_reo_status_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg,
  371. int context, int mask);
  372. /**
  373. * wlan_cfg_set_mon_delayed_replenish_entries() - number of buffers to replenish
  374. * for monitor buffer ring at initialization
  375. * @wlan_cfg_ctx - Configuration Handle
  376. * @replenish_entries - number of entries to replenish at initialization
  377. *
  378. */
  379. void wlan_cfg_set_mon_delayed_replenish_entries(struct wlan_cfg_dp_soc_ctxt
  380. *wlan_cfg_ctx,
  381. uint32_t replenish_entries);
  382. /**
  383. * wlan_cfg_get_mon_delayed_replenish_entries() - get num of buffer to replenish
  384. * for monitor buffer ring at initialization
  385. * @wlan_cfg_ctx - Configuration Handle
  386. * @replenish_entries - number of entries to replenish at initialization
  387. *
  388. * Return: delayed_replenish_entries;
  389. */
  390. int wlan_cfg_get_mon_delayed_replenish_entries(struct wlan_cfg_dp_soc_ctxt
  391. *wlan_cfg_ctx);
  392. /**
  393. * wlan_cfg_get_num_contexts() - Number of interrupt contexts to be registered
  394. * @wlan_cfg_ctx - Configuration Handle
  395. *
  396. * For WIN, DP_NUM_INTERRUPT_CONTEXTS will be equal to number of CPU cores.
  397. * Each context (for linux it is a NAPI context) will have a tx_ring_mask,
  398. * rx_ring_mask ,and rx_monitor_ring mask to indicate the rings
  399. * that are processed by the handler.
  400. *
  401. * Return: num_contexts
  402. */
  403. int wlan_cfg_get_num_contexts(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
  404. /**
  405. * wlan_cfg_get_tx_ring_mask() - Return Tx interrupt mask mapped to an
  406. * interrupt context
  407. * @wlan_cfg_ctx - Configuration Handle
  408. * @context - Numerical ID identifying the Interrupt/NAPI context
  409. *
  410. * Return: int_tx_ring_mask[context]
  411. */
  412. int wlan_cfg_get_tx_ring_mask(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx,
  413. int context);
  414. /**
  415. * wlan_cfg_get_rx_ring_mask() - Return Rx interrupt mask mapped to an
  416. * interrupt context
  417. * @wlan_cfg_ctx - Configuration Handle
  418. * @context - Numerical ID identifying the Interrupt/NAPI context
  419. *
  420. * Return: int_rx_ring_mask[context]
  421. */
  422. int wlan_cfg_get_rx_ring_mask(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx,
  423. int context);
  424. /**
  425. * wlan_cfg_get_rx_mon_ring_mask() - Return Rx monitor ring interrupt mask
  426. * mapped to an interrupt context
  427. * @wlan_cfg_ctx - Configuration Handle
  428. * @context - Numerical ID identifying the Interrupt/NAPI context
  429. *
  430. * Return: int_rx_mon_ring_mask[context]
  431. */
  432. int wlan_cfg_get_rx_mon_ring_mask(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx,
  433. int context);
  434. /**
  435. * wlan_cfg_set_rxdma2host_ring_mask() - Set rxdma2host ring interrupt mask
  436. * for the given interrupt context
  437. * @wlan_cfg_ctx - Configuration Handle
  438. * @context - Numerical ID identifying the Interrupt/NAPI context
  439. *
  440. */
  441. void wlan_cfg_set_rxdma2host_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg,
  442. int context, int mask);
  443. /**
  444. * wlan_cfg_get_rxdma2host_ring_mask() - Return rxdma2host ring interrupt mask
  445. * mapped to an interrupt context
  446. * @wlan_cfg_ctx - Configuration Handle
  447. * @context - Numerical ID identifying the Interrupt/NAPI context
  448. *
  449. * Return: int_rxdma2host_ring_mask[context]
  450. */
  451. int wlan_cfg_get_rxdma2host_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg,
  452. int context);
  453. /**
  454. * wlan_cfg_set_host2rxdma_ring_mask() - Set host2rxdma ring interrupt mask
  455. * for the given interrupt context
  456. * @wlan_cfg_ctx - Configuration Handle
  457. * @context - Numerical ID identifying the Interrupt/NAPI context
  458. *
  459. */
  460. void wlan_cfg_set_host2rxdma_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg,
  461. int context, int mask);
  462. /**
  463. * wlan_cfg_get_host2rxdma_ring_mask() - Return host2rxdma ring interrupt mask
  464. * mapped to an interrupt context
  465. * @wlan_cfg_ctx - Configuration Handle
  466. * @context - Numerical ID identifying the Interrupt/NAPI context
  467. *
  468. * Return: int_host2rxdma_ring_mask[context]
  469. */
  470. int wlan_cfg_get_host2rxdma_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg,
  471. int context);
  472. /**
  473. * wlan_cfg_set_host2rxdma_mon_ring_mask() - Set host2rxdma monitor ring
  474. * interrupt mask for the given interrupt context
  475. * @wlan_cfg_ctx - Configuration Handle
  476. * @context - Numerical ID identifying the Interrupt/NAPI context
  477. *
  478. */
  479. void wlan_cfg_set_host2rxdma_mon_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg,
  480. int context, int mask);
  481. /**
  482. * wlan_cfg_get_host2rxdma_mon_ring_mask() - Return host2rxdma monitoe ring
  483. * interrupt mask mapped to an interrupt context
  484. * @wlan_cfg_ctx - Configuration Handle
  485. * @context - Numerical ID identifying the Interrupt/NAPI context
  486. *
  487. * Return: int_host2rxdma_mon_ring_mask[context]
  488. */
  489. int wlan_cfg_get_host2rxdma_mon_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg,
  490. int context);
  491. /**
  492. * wlan_cfg_set_rxdma2host_mon_ring_mask() - Set rxdma2host monitor
  493. * destination ring interrupt mask
  494. * for the given interrupt context
  495. * @wlan_cfg_ctx - Configuration Handle
  496. * @context - Numerical ID identifying the Interrupt/NAPI context
  497. *
  498. */
  499. void wlan_cfg_set_rxdma2host_mon_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg,
  500. int context, int mask);
  501. /**
  502. * wlan_cfg_get_rxdma2host_mon_ring_mask() - Return rxdma2host monitor
  503. * destination ring interrupt mask
  504. * mapped to an interrupt context
  505. * @wlan_cfg_ctx - Configuration Handle
  506. * @context - Numerical ID identifying the Interrupt/NAPI context
  507. *
  508. * Return: int_rxdma2host_mon_ring_mask[context]
  509. */
  510. int wlan_cfg_get_rxdma2host_mon_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg,
  511. int context);
  512. /**
  513. * wlan_cfg_set_hw_macidx() - Set HW MAC Idx for the given PDEV index
  514. *
  515. * @wlan_cfg_ctx - Configuration Handle
  516. * @pdev_idx - Index of SW PDEV
  517. * @hw_macid - HW MAC Id
  518. *
  519. */
  520. void wlan_cfg_set_hw_mac_idx
  521. (struct wlan_cfg_dp_soc_ctxt *cfg, int pdev_idx, int hw_macid);
  522. /**
  523. * wlan_cfg_get_hw_mac_idx() - Get 0 based HW MAC index for the given
  524. * PDEV index
  525. *
  526. * @wlan_cfg_ctx - Configuration Handle
  527. * @pdev_idx - Index of SW PDEV
  528. *
  529. * Return: HW MAC index
  530. */
  531. int wlan_cfg_get_hw_mac_idx(struct wlan_cfg_dp_soc_ctxt *cfg, int pdev_idx);
  532. /**
  533. * wlan_cfg_get_target_pdev_id() - Get target PDEV ID for HW MAC ID
  534. *
  535. * @wlan_cfg_ctx - Configuration Handle
  536. * @hw_macid - Index of hw mac
  537. *
  538. * Return: PDEV ID
  539. */
  540. int
  541. wlan_cfg_get_target_pdev_id(struct wlan_cfg_dp_soc_ctxt *cfg, int hw_macid);
  542. /**
  543. * wlan_cfg_set_pdev_idx() - Set 0 based host PDEV index for the given
  544. * hw mac index
  545. *
  546. * @wlan_cfg_ctx - Configuration Handle
  547. * @pdev_idx - Index of SW PDEV
  548. * @hw_macid - Index of hw mac
  549. *
  550. * Return: PDEV index
  551. */
  552. void wlan_cfg_set_pdev_idx
  553. (struct wlan_cfg_dp_soc_ctxt *cfg, int pdev_idx, int hw_macid);
  554. /**
  555. * wlan_cfg_get_pdev_idx() - Get 0 based PDEV index for the given
  556. * hw mac index
  557. *
  558. * @wlan_cfg_ctx - Configuration Handle
  559. * @hw_macid - Index of hw mac
  560. *
  561. * Return: PDEV index
  562. */
  563. int wlan_cfg_get_pdev_idx(struct wlan_cfg_dp_soc_ctxt *cfg, int hw_macid);
  564. /**
  565. * wlan_cfg_get_rx_err_ring_mask() - Return Rx monitor ring interrupt mask
  566. * mapped to an interrupt context
  567. * @wlan_cfg_ctx - Configuration Handle
  568. * @context - Numerical ID identifying the Interrupt/NAPI context
  569. *
  570. * Return: int_rx_err_ring_mask[context]
  571. */
  572. int wlan_cfg_get_rx_err_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg, int
  573. context);
  574. /**
  575. * wlan_cfg_get_rx_wbm_rel_ring_mask() - Return Rx monitor ring interrupt mask
  576. * mapped to an interrupt context
  577. * @wlan_cfg_ctx - Configuration Handle
  578. * @context - Numerical ID identifying the Interrupt/NAPI context
  579. *
  580. * Return: int_wbm_rel_ring_mask[context]
  581. */
  582. int wlan_cfg_get_rx_wbm_rel_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg, int
  583. context);
  584. /**
  585. * wlan_cfg_get_reo_status_ring_mask() - Return Rx monitor ring interrupt mask
  586. * mapped to an interrupt context
  587. * @wlan_cfg_ctx - Configuration Handle
  588. * @context - Numerical ID identifying the Interrupt/NAPI context
  589. *
  590. * Return: int_reo_status_ring_mask[context]
  591. */
  592. int wlan_cfg_get_reo_status_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg, int
  593. context);
  594. /**
  595. * wlan_cfg_get_ce_ring_mask() - Return CE ring interrupt mask
  596. * mapped to an interrupt context
  597. * @wlan_cfg_ctx - Configuration Handle
  598. * @context - Numerical ID identifying the Interrupt/NAPI context
  599. *
  600. * Return: int_ce_ring_mask[context]
  601. */
  602. int wlan_cfg_get_ce_ring_mask(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx,
  603. int context);
  604. /**
  605. * wlan_cfg_get_max_clients() - Return maximum number of peers/stations
  606. * supported by device
  607. * @wlan_cfg_ctx - Configuration Handle
  608. *
  609. * Return: max_clients
  610. */
  611. uint32_t wlan_cfg_get_max_clients(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
  612. /**
  613. * wlan_cfg_max_alloc_size() - Return Maximum allocation size for any dynamic
  614. * memory allocation request for this device
  615. * @wlan_cfg_ctx - Configuration Handle
  616. *
  617. * Return: max_alloc_size
  618. */
  619. uint32_t wlan_cfg_max_alloc_size(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
  620. /*
  621. * wlan_cfg_per_pdev_tx_ring() - Return true if Tx rings are mapped as
  622. * one per radio
  623. * @wlan_cfg_ctx - Configuration Handle
  624. *
  625. * Return: per_pdev_tx_ring
  626. */
  627. int wlan_cfg_per_pdev_tx_ring(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
  628. /*
  629. * wlan_cfg_num_tcl_data_rings() - Number of TCL Data rings supported by device
  630. * @wlan_cfg_ctx
  631. *
  632. * Return: num_tcl_data_rings
  633. */
  634. int wlan_cfg_num_tcl_data_rings(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
  635. /*
  636. * wlan_cfg_per_pdev_rx_ring() - Return true if Rx rings are mapped as
  637. * one per radio
  638. * @wlan_cfg_ctx
  639. *
  640. * Return: per_pdev_rx_ring
  641. */
  642. int wlan_cfg_per_pdev_rx_ring(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
  643. /*
  644. * wlan_cfg_per_pdev_lmac_ring() - Return true if error rings are mapped as
  645. * one per radio
  646. * @wlan_cfg_ctx
  647. *
  648. * Return: return 1 if per pdev error ring else 0
  649. */
  650. int wlan_cfg_per_pdev_lmac_ring(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
  651. /*
  652. * wlan_cfg_num_reo_dest_rings() - Number of REO Data rings supported by device
  653. * @wlan_cfg_ctx - Configuration Handle
  654. *
  655. * Return: num_reo_dest_rings
  656. */
  657. int wlan_cfg_num_reo_dest_rings(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
  658. /*
  659. * wlan_cfg_pkt_type() - Default 802.11 encapsulation type
  660. * @wlan_cfg_ctx - Configuration Handle
  661. *
  662. * Return: htt_pkt_type_ethernet
  663. */
  664. int wlan_cfg_pkt_type(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
  665. /*
  666. * wlan_cfg_get_num_tx_desc_pool() - Number of Tx Descriptor pools for the
  667. * device
  668. * @wlan_cfg_ctx - Configuration Handle
  669. *
  670. * Return: num_tx_desc_pool
  671. */
  672. int wlan_cfg_get_num_tx_desc_pool(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
  673. /*
  674. * wlan_cfg_set_num_tx_desc_pool() - Set the number of Tx Descriptor pools for the
  675. * device
  676. * @wlan_cfg_ctx - Configuration Handle
  677. * @num_pool - Number of pool
  678. */
  679. void wlan_cfg_set_num_tx_desc_pool(struct wlan_cfg_dp_soc_ctxt *cfg, int num_pool);
  680. /*
  681. * wlan_cfg_get_num_tx_ext_desc_pool() - Number of Tx MSDU ext Descriptor
  682. * pools
  683. * @wlan_cfg_ctx - Configuration Handle
  684. *
  685. * Return: num_tx_ext_desc_pool
  686. */
  687. int wlan_cfg_get_num_tx_ext_desc_pool(
  688. struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
  689. /*
  690. * wlan_cfg_get_reo_dst_ring_size() - Get REO destination ring size
  691. *
  692. * @wlan_cfg_ctx - Configuration Handle
  693. *
  694. * Return: reo_dst_ring_size
  695. */
  696. int wlan_cfg_get_reo_dst_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg);
  697. /*
  698. * wlan_cfg_set_num_tx_desc_pool() - Set the REO Destination ring size
  699. *
  700. * @wlan_cfg_ctx - Configuration Handle
  701. * @reo_dst_ring_size - REO Destination ring size
  702. */
  703. void wlan_cfg_set_reo_dst_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg,
  704. int reo_dst_ring_size);
  705. /*
  706. * wlan_cfg_set_raw_mode_war() - Set raw mode war configuration
  707. *
  708. * @wlan_cfg_ctx - Configuration Handle
  709. * @raw_mode_war - raw mode war configuration
  710. */
  711. void wlan_cfg_set_raw_mode_war(struct wlan_cfg_dp_soc_ctxt *cfg,
  712. bool raw_mode_war);
  713. /*
  714. * wlan_cfg_get_raw_mode_war() - Get raw mode war configuration
  715. *
  716. * @wlan_cfg_ctx - Configuration Handle
  717. *
  718. * Return: reo_dst_ring_size
  719. */
  720. bool wlan_cfg_get_raw_mode_war(struct wlan_cfg_dp_soc_ctxt *cfg);
  721. /*
  722. * wlan_cfg_set_num_tx_ext_desc_pool() - Set the number of Tx MSDU ext Descriptor
  723. * pools
  724. * @wlan_cfg_ctx - Configuration Handle
  725. * @num_pool - Number of pool
  726. */
  727. void wlan_cfg_set_num_tx_ext_desc_pool(struct wlan_cfg_dp_soc_ctxt *cfg, int num_pool);
  728. /*
  729. * wlan_cfg_get_num_tx_desc() - Number of Tx Descriptors per pool
  730. * @wlan_cfg_ctx - Configuration Handle
  731. *
  732. * Return: num_tx_desc
  733. */
  734. int wlan_cfg_get_num_tx_desc(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
  735. /*
  736. * wlan_cfg_get_min_tx_desc() - Minimum number of Tx Descriptors per pool
  737. * @wlan_cfg_ctx - Configuration Handle
  738. *
  739. * Return: num_tx_desc
  740. */
  741. int wlan_cfg_get_min_tx_desc(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
  742. /*
  743. * wlan_cfg_set_num_tx_desc() - Set the number of Tx Descriptors per pool
  744. *
  745. * @wlan_cfg_ctx - Configuration Handle
  746. * @num_desc: Number of descriptor
  747. */
  748. void wlan_cfg_set_num_tx_desc(struct wlan_cfg_dp_soc_ctxt *cfg, int num_desc);
  749. /*
  750. * wlan_cfg_get_num_tx_ext_desc() - Number of Tx MSDU extension Descriptors
  751. * per pool
  752. * @wlan_cfg_ctx - Configuration Handle
  753. *
  754. * Return: num_tx_ext_desc
  755. */
  756. int wlan_cfg_get_num_tx_ext_desc(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
  757. /*
  758. * wlan_cfg_set_num_tx_ext_desc() - Set the number of Tx MSDU extension Descriptors
  759. * per pool
  760. * @wlan_cfg_ctx - Configuration Handle
  761. * @num_desc: Number of descriptor
  762. */
  763. void wlan_cfg_set_num_tx_ext_desc(struct wlan_cfg_dp_soc_ctxt *cfg, int num_ext_desc);
  764. /*
  765. * wlan_cfg_max_peer_id() - Get maximum peer ID
  766. * @cfg: Configuration Handle
  767. *
  768. * Return: maximum peer ID
  769. */
  770. uint32_t wlan_cfg_max_peer_id(struct wlan_cfg_dp_soc_ctxt *cfg);
  771. /*
  772. * wlan_cfg_get_dma_mon_buf_ring_size() - Return Size of monitor buffer ring
  773. * @wlan_cfg_pdev_ctx
  774. *
  775. * Return: dma_mon_buf_ring_size
  776. */
  777. int wlan_cfg_get_dma_mon_buf_ring_size(
  778. struct wlan_cfg_dp_pdev_ctxt *wlan_cfg_pdev_ctx);
  779. /*
  780. * wlan_cfg_get_dma_mon_dest_ring_size() - Return Size of RxDMA Monitor
  781. * Destination ring
  782. * @wlan_cfg_pdev_ctx
  783. *
  784. * Return: dma_mon_dest_size
  785. */
  786. int wlan_cfg_get_dma_mon_dest_ring_size(
  787. struct wlan_cfg_dp_pdev_ctxt *wlan_cfg_pdev_ctx);
  788. /*
  789. * wlan_cfg_get_dma_mon_stat_ring_size() - Return size of Monitor Status ring
  790. * @wlan_cfg_pdev_ctx
  791. *
  792. * Return: dma_mon_stat_ring_size
  793. */
  794. int wlan_cfg_get_dma_mon_stat_ring_size(
  795. struct wlan_cfg_dp_pdev_ctxt *wlan_cfg_pdev_ctx);
  796. /*
  797. * wlan_cfg_get_dma_mon_desc_ring_size - Get rxdma monitor size
  798. * @wlan_cfg_soc_ctx
  799. *
  800. * Return: rxdma monitor desc ring size
  801. */
  802. int
  803. wlan_cfg_get_dma_mon_desc_ring_size(struct wlan_cfg_dp_pdev_ctxt *cfg);
  804. /*
  805. * wlan_cfg_get_rx_dma_buf_ring_size() - Return Size of RxDMA buffer ring
  806. * @wlan_cfg_pdev_ctx
  807. *
  808. * Return: rx_dma_buf_ring_size
  809. */
  810. int wlan_cfg_get_rx_dma_buf_ring_size(
  811. struct wlan_cfg_dp_pdev_ctxt *wlan_cfg_pdev_ctx);
  812. /*
  813. * wlan_cfg_rx_pending_hl_threshold() - Return high threshold of rx pending
  814. * @wlan_cfg_pdev_ctx
  815. *
  816. * Return: rx_pending_high_threshold
  817. */
  818. uint32_t
  819. wlan_cfg_rx_pending_hl_threshold(struct wlan_cfg_dp_soc_ctxt *cfg);
  820. /*
  821. * wlan_cfg_rx_pending_lo_threshold() - Return low threshold of rx pending
  822. * @wlan_cfg_pdev_ctx
  823. *
  824. * Return: rx_pending_low_threshold
  825. */
  826. uint32_t
  827. wlan_cfg_rx_pending_lo_threshold(struct wlan_cfg_dp_soc_ctxt *cfg);
  828. /*
  829. * wlan_cfg_get_num_mac_rings() - Return the number of MAC RX DMA rings
  830. * per pdev
  831. * @wlan_cfg_pdev_ctx
  832. *
  833. * Return: number of mac DMA rings per pdev
  834. */
  835. int wlan_cfg_get_num_mac_rings(struct wlan_cfg_dp_pdev_ctxt *cfg);
  836. /*
  837. * wlan_cfg_is_lro_enabled - Return LRO enabled/disabled
  838. * @wlan_cfg_dp_soc_ctxt
  839. *
  840. * Return: true - LRO enabled false - LRO disabled
  841. */
  842. bool wlan_cfg_is_lro_enabled(struct wlan_cfg_dp_soc_ctxt *cfg);
  843. /*
  844. * wlan_cfg_is_gro_enabled - Return GRO enabled/disabled
  845. * @wlan_cfg_dp_soc_ctxt
  846. *
  847. * Return: true - GRO enabled false - GRO disabled
  848. */
  849. bool wlan_cfg_is_gro_enabled(struct wlan_cfg_dp_soc_ctxt *cfg);
  850. /*
  851. * wlan_cfg_is_rx_hash_enabled - Return RX hash enabled/disabled
  852. * @wlan_cfg_dp_soc_ctxt
  853. *
  854. * Return: true - enabled false - disabled
  855. */
  856. bool wlan_cfg_is_rx_hash_enabled(struct wlan_cfg_dp_soc_ctxt *cfg);
  857. /*
  858. * wlan_cfg_is_ipa_enabled - Return IPA enabled/disabled
  859. * @wlan_cfg_dp_soc_ctxt
  860. *
  861. * Return: true - enabled false - disabled
  862. */
  863. bool wlan_cfg_is_ipa_enabled(struct wlan_cfg_dp_soc_ctxt *cfg);
  864. /*
  865. * wlan_cfg_set_rx_hash - set rx hash enabled/disabled
  866. * @wlan_cfg_soc_ctx
  867. * @rx_hash
  868. */
  869. void wlan_cfg_set_rx_hash(struct wlan_cfg_dp_soc_ctxt *cfg, bool rx_hash);
  870. /*
  871. * wlan_cfg_get_dp_pdev_nss_enabled - Return pdev nss enabled/disabled
  872. * @wlan_cfg_pdev_ctx
  873. *
  874. * Return: 1 - enabled 0 - disabled
  875. */
  876. int wlan_cfg_get_dp_pdev_nss_enabled(struct wlan_cfg_dp_pdev_ctxt *cfg);
  877. /*
  878. * wlan_cfg_set_dp_pdev_nss_enabled - set pdev nss enabled/disabled
  879. * @wlan_cfg_pdev_ctx
  880. */
  881. void wlan_cfg_set_dp_pdev_nss_enabled(struct wlan_cfg_dp_pdev_ctxt *cfg, int nss_enabled);
  882. /*
  883. * wlan_cfg_get_dp_soc_nss_cfg - Return soc nss config
  884. * @wlan_cfg_pdev_ctx
  885. *
  886. * Return: nss_cfg
  887. */
  888. int wlan_cfg_get_dp_soc_nss_cfg(struct wlan_cfg_dp_soc_ctxt *cfg);
  889. /*
  890. * wlan_cfg_set_dp_soc_nss_cfg - set soc nss config
  891. * @wlan_cfg_pdev_ctx
  892. *
  893. */
  894. void wlan_cfg_set_dp_soc_nss_cfg(struct wlan_cfg_dp_soc_ctxt *cfg, int nss_cfg);
  895. /*
  896. * wlan_cfg_get_int_batch_threshold_tx - Get interrupt mitigation cfg for Tx
  897. * @wlan_cfg_soc_ctx
  898. *
  899. * Return: Batch threshold
  900. */
  901. int wlan_cfg_get_int_batch_threshold_tx(struct wlan_cfg_dp_soc_ctxt *cfg);
  902. /*
  903. * wlan_cfg_get_int_timer_threshold_tx - Get interrupt mitigation cfg for Tx
  904. * @wlan_cfg_soc_ctx
  905. *
  906. * Return: Timer threshold
  907. */
  908. int wlan_cfg_get_int_timer_threshold_tx(struct wlan_cfg_dp_soc_ctxt *cfg);
  909. /*
  910. * wlan_cfg_get_int_batch_threshold_rx - Get interrupt mitigation cfg for Rx
  911. * @wlan_cfg_soc_ctx
  912. *
  913. * Return: Batch threshold
  914. */
  915. int wlan_cfg_get_int_batch_threshold_rx(struct wlan_cfg_dp_soc_ctxt *cfg);
  916. /*
  917. * wlan_cfg_get_int_batch_threshold_rx - Get interrupt mitigation cfg for Rx
  918. * @wlan_cfg_soc_ctx
  919. *
  920. * Return: Timer threshold
  921. */
  922. int wlan_cfg_get_int_timer_threshold_rx(struct wlan_cfg_dp_soc_ctxt *cfg);
  923. /*
  924. * wlan_cfg_get_int_batch_threshold_tx - Get interrupt mitigation cfg for other srngs
  925. * @wlan_cfg_soc_ctx
  926. *
  927. * Return: Batch threshold
  928. */
  929. int wlan_cfg_get_int_batch_threshold_other(struct wlan_cfg_dp_soc_ctxt *cfg);
  930. /*
  931. * wlan_cfg_get_int_batch_threshold_tx - Get interrupt mitigation cfg for other srngs
  932. * @wlan_cfg_soc_ctx
  933. *
  934. * Return: Timer threshold
  935. */
  936. int wlan_cfg_get_int_timer_threshold_other(struct wlan_cfg_dp_soc_ctxt *cfg);
  937. /*
  938. * wlan_cfg_get_int_timer_threshold_mon - Get int mitigation cfg for mon srngs
  939. * @wlan_cfg_soc_ctx
  940. *
  941. * Return: Timer threshold
  942. */
  943. int wlan_cfg_get_int_timer_threshold_mon(struct wlan_cfg_dp_soc_ctxt *cfg);
  944. /*
  945. * wlan_cfg_get_checksum_offload - Get checksum offload enable or disable status
  946. * @wlan_cfg_soc_ctx
  947. *
  948. * Return: Checksum offload enable or disable
  949. */
  950. int wlan_cfg_get_checksum_offload(struct wlan_cfg_dp_soc_ctxt *cfg);
  951. /*
  952. * wlan_cfg_get_nan_checksum_offload - Get checksum offload enable/disable val
  953. * @wlan_cfg_soc_ctx
  954. *
  955. * Return: Checksum offload enable or disable value for NAN mode
  956. */
  957. int wlan_cfg_get_nan_checksum_offload(struct wlan_cfg_dp_soc_ctxt *cfg);
  958. /*
  959. * wlan_cfg_get_p2p_checksum_offload - Get checksum offload enable/disable val
  960. * @wlan_cfg_soc_ctx
  961. *
  962. * Return: Checksum offload enable or disable value for P2P mode
  963. */
  964. int wlan_cfg_get_p2p_checksum_offload(struct wlan_cfg_dp_soc_ctxt *cfg);
  965. /*
  966. * wlan_cfg_tx_ring_size - Get Tx DMA ring size (TCL Data Ring)
  967. * @wlan_cfg_soc_ctx
  968. *
  969. * Return: Tx Ring Size
  970. */
  971. int wlan_cfg_tx_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg);
  972. /*
  973. * wlan_cfg_tx_comp_ring_size - Get Tx completion ring size (WBM Ring)
  974. * @wlan_cfg_soc_ctx
  975. *
  976. * Return: Tx Completion ring size
  977. */
  978. int wlan_cfg_tx_comp_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg);
  979. /*
  980. * wlan_cfg_get_dp_soc_wbm_release_ring_size - Get wbm_release_ring size
  981. * @wlan_cfg_soc_ctx
  982. *
  983. * Return: wbm_release_ring size
  984. */
  985. int
  986. wlan_cfg_get_dp_soc_wbm_release_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg);
  987. /*
  988. * wlan_cfg_get_dp_soc_tcl_cmd_credit_ring_size - Get command/credit ring size
  989. * @wlan_cfg_soc_ctx
  990. *
  991. * Return: tcl_cmd_credit_ring size
  992. */
  993. int
  994. wlan_cfg_get_dp_soc_tcl_cmd_credit_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg);
  995. /*
  996. * wlan_cfg_get_dp_soc_tcl_status_ring_size - Get tcl_status_ring size
  997. * @wlan_cfg_soc_ctx
  998. *
  999. * Return: tcl_status_ring size
  1000. */
  1001. int
  1002. wlan_cfg_get_dp_soc_tcl_status_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg);
  1003. /*
  1004. * wlan_cfg_get_dp_soc_reo_reinject_ring_size - Get reo_reinject_ring size
  1005. * @wlan_cfg_soc_ctx
  1006. *
  1007. * Return: reo_reinject_ring size
  1008. */
  1009. int
  1010. wlan_cfg_get_dp_soc_reo_reinject_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg);
  1011. /*
  1012. * wlan_cfg_get_dp_soc_rx_release_ring_size - Get rx_release_ring size
  1013. * @wlan_cfg_soc_ctx
  1014. *
  1015. * Return: rx_release_ring size
  1016. */
  1017. int
  1018. wlan_cfg_get_dp_soc_rx_release_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg);
  1019. /*
  1020. * wlan_cfg_get_dp_soc_reo_exception_ring_size - Get reo_exception_ring size
  1021. * @wlan_cfg_soc_ctx
  1022. *
  1023. * Return: reo_exception_ring size
  1024. */
  1025. int
  1026. wlan_cfg_get_dp_soc_reo_exception_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg);
  1027. /*
  1028. * wlan_cfg_get_dp_soc_reo_cmd_ring_size - Get reo_cmd_ring size
  1029. * @wlan_cfg_soc_ctx
  1030. *
  1031. * Return: reo_cmd_ring size
  1032. */
  1033. int
  1034. wlan_cfg_get_dp_soc_reo_cmd_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg);
  1035. /*
  1036. * wlan_cfg_get_dp_soc_reo_status_ring_size - Get reo_status_ring size
  1037. * @wlan_cfg_soc_ctx
  1038. *
  1039. * Return: reo_status_ring size
  1040. */
  1041. int
  1042. wlan_cfg_get_dp_soc_reo_status_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg);
  1043. /*
  1044. * wlan_cfg_get_dp_soc_tx_desc_limit_0 - Get tx desc limit for 5G H
  1045. * @wlan_cfg_soc_ctx
  1046. *
  1047. * Return: tx desc limit for 5G H
  1048. */
  1049. int
  1050. wlan_cfg_get_dp_soc_tx_desc_limit_0(struct wlan_cfg_dp_soc_ctxt *cfg);
  1051. /*
  1052. * wlan_cfg_get_dp_soc_tx_desc_limit_1 - Get tx desc limit for 2G
  1053. * @wlan_cfg_soc_ctx
  1054. *
  1055. * Return: tx desc limit for 2G
  1056. */
  1057. int
  1058. wlan_cfg_get_dp_soc_tx_desc_limit_1(struct wlan_cfg_dp_soc_ctxt *cfg);
  1059. /*
  1060. * wlan_cfg_get_dp_soc_tx_desc_limit_2 - Get tx desc limit for 5G L
  1061. * @wlan_cfg_soc_ctx
  1062. *
  1063. * Return: tx desc limit for 5G L
  1064. */
  1065. int
  1066. wlan_cfg_get_dp_soc_tx_desc_limit_2(struct wlan_cfg_dp_soc_ctxt *cfg);
  1067. /*
  1068. * wlan_cfg_get_dp_soc_tx_device_limit - Get tx device limit
  1069. * @wlan_cfg_soc_ctx
  1070. *
  1071. * Return: tx device limit
  1072. */
  1073. int
  1074. wlan_cfg_get_dp_soc_tx_device_limit(struct wlan_cfg_dp_soc_ctxt *cfg);
  1075. /*
  1076. * wlan_cfg_get_dp_soc_tx_sw_internode_queue - Get tx sw internode queue
  1077. * @wlan_cfg_soc_ctx
  1078. *
  1079. * Return: tx sw internode queue
  1080. */
  1081. int
  1082. wlan_cfg_get_dp_soc_tx_sw_internode_queue(struct wlan_cfg_dp_soc_ctxt *cfg);
  1083. /*
  1084. * wlan_cfg_get_dp_soc_rxdma_refill_ring_size - Get rxdma refill ring size
  1085. * @wlan_cfg_soc_ctx
  1086. *
  1087. * Return: rxdma refill ring size
  1088. */
  1089. int
  1090. wlan_cfg_get_dp_soc_rxdma_refill_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg);
  1091. /*
  1092. * wlan_cfg_get_dp_soc_rxdma_err_dst_ring_size - Get rxdma dst ring size
  1093. * @wlan_cfg_soc_ctx
  1094. *
  1095. * Return: rxdma error dst ring size
  1096. */
  1097. int
  1098. wlan_cfg_get_dp_soc_rxdma_err_dst_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg);
  1099. /*
  1100. * wlan_cfg_get_dp_soc_rx_sw_desc_weight - Get rx sw desc weight
  1101. * @wlan_cfg_soc_ctx
  1102. *
  1103. * Return: rx_sw_desc_weight
  1104. */
  1105. int
  1106. wlan_cfg_get_dp_soc_rx_sw_desc_weight(struct wlan_cfg_dp_soc_ctxt *cfg);
  1107. /*
  1108. * wlan_cfg_get_dp_soc_rx_sw_desc_num - Get rx sw desc num
  1109. * @wlan_cfg_soc_ctx
  1110. *
  1111. * Return: rx_sw_desc_num
  1112. */
  1113. int
  1114. wlan_cfg_get_dp_soc_rx_sw_desc_num(struct wlan_cfg_dp_soc_ctxt *cfg);
  1115. /*
  1116. * wlan_cfg_get_dp_caps - Get dp capablities
  1117. * @wlan_cfg_soc_ctx
  1118. * @dp_caps: enum for dp capablities
  1119. *
  1120. * Return: bool if a dp capabilities is enabled
  1121. */
  1122. bool
  1123. wlan_cfg_get_dp_caps(struct wlan_cfg_dp_soc_ctxt *cfg,
  1124. enum cdp_capabilities dp_caps);
  1125. /**
  1126. * wlan_set_srng_cfg() - Fill per ring specific
  1127. * configuration parameters
  1128. * @wlan_cfg: global srng configuration table
  1129. *
  1130. * Return: None
  1131. */
  1132. void wlan_set_srng_cfg(struct wlan_srng_cfg **wlan_cfg);
  1133. #ifdef QCA_LL_TX_FLOW_CONTROL_V2
  1134. int wlan_cfg_get_tx_flow_stop_queue_th(struct wlan_cfg_dp_soc_ctxt *cfg);
  1135. int wlan_cfg_get_tx_flow_start_queue_offset(struct wlan_cfg_dp_soc_ctxt *cfg);
  1136. #endif /* QCA_LL_TX_FLOW_CONTROL_V2 */
  1137. int wlan_cfg_get_rx_defrag_min_timeout(struct wlan_cfg_dp_soc_ctxt *cfg);
  1138. int wlan_cfg_get_defrag_timeout_check(struct wlan_cfg_dp_soc_ctxt *cfg);
  1139. /**
  1140. * wlan_cfg_get_rx_flow_search_table_size() - Return the size of Rx FST
  1141. * in number of entries
  1142. *
  1143. * @wlan_cfg_dp_soc_ctxt: soc configuration context
  1144. *
  1145. * Return: rx_fst_size
  1146. */
  1147. uint16_t
  1148. wlan_cfg_get_rx_flow_search_table_size(struct wlan_cfg_dp_soc_ctxt *cfg);
  1149. /**
  1150. * wlan_cfg_rx_fst_get_max_search() - Return the max skid length for FST search
  1151. *
  1152. * @wlan_cfg_dp_soc_ctxt: soc configuration context
  1153. *
  1154. * Return: max_search
  1155. */
  1156. uint8_t wlan_cfg_rx_fst_get_max_search(struct wlan_cfg_dp_soc_ctxt *cfg);
  1157. /**
  1158. * wlan_cfg_rx_fst_get_hash_key() - Return Toeplitz Hash Key used for FST
  1159. * search
  1160. *
  1161. * @wlan_cfg_dp_soc_ctxt: soc configuration context
  1162. *
  1163. * Return: 320-bit Hash Key
  1164. */
  1165. uint8_t *wlan_cfg_rx_fst_get_hash_key(struct wlan_cfg_dp_soc_ctxt *cfg);
  1166. /**
  1167. * wlan_cfg_set_rx_flow_tag_enabled() - set rx flow tag enabled flag in
  1168. * DP soc context
  1169. * @wlan_cfg_dp_soc_ctxt: soc configuration context
  1170. * @val: Rx flow tag feature flag value
  1171. *
  1172. * Return: None
  1173. */
  1174. void wlan_cfg_set_rx_flow_tag_enabled(struct wlan_cfg_dp_soc_ctxt *cfg,
  1175. bool val);
  1176. /**
  1177. * wlan_cfg_is_rx_flow_tag_enabled() - get rx flow tag enabled flag from
  1178. * DP soc context
  1179. * @wlan_cfg_dp_soc_ctxt: soc configuration context
  1180. *
  1181. * Return: true if feature is enabled, else false
  1182. */
  1183. bool wlan_cfg_is_rx_flow_tag_enabled(struct wlan_cfg_dp_soc_ctxt *cfg);
  1184. /**
  1185. * wlan_cfg_set_rx_flow_search_table_per_pdev() - Set flag to indicate that
  1186. * Rx FST is per pdev
  1187. * @wlan_cfg_dp_soc_ctxt: soc configuration context
  1188. * @val: boolean flag indicating Rx FST per pdev or per SOC
  1189. *
  1190. * Return: None
  1191. */
  1192. void
  1193. wlan_cfg_set_rx_flow_search_table_per_pdev(struct wlan_cfg_dp_soc_ctxt *cfg,
  1194. bool val);
  1195. /**
  1196. * wlan_cfg_is_rx_flow_search_table_per_pdev() - get RX FST flag for per pdev
  1197. * @wlan_cfg_dp_soc_ctxt: soc configuration context
  1198. *
  1199. * Return: true if Rx FST is per pdev, else false
  1200. */
  1201. bool
  1202. wlan_cfg_is_rx_flow_search_table_per_pdev(struct wlan_cfg_dp_soc_ctxt *cfg);
  1203. /**
  1204. * wlan_cfg_set_rx_flow_search_table_size() - set RX FST size in DP SoC context
  1205. * @wlan_cfg_dp_soc_ctxt: soc configuration context
  1206. * @val: Rx FST size in number of entries
  1207. *
  1208. * Return: None
  1209. */
  1210. void
  1211. wlan_cfg_set_rx_flow_search_table_size(struct wlan_cfg_dp_soc_ctxt *cfg,
  1212. uint16_t val);
  1213. /**
  1214. * wlan_cfg_set_rx_mon_protocol_flow_tag_enabled() - set mon rx tag enabled flag
  1215. * in DP soc context
  1216. * @wlan_cfg_dp_soc_ctxt: soc configuration context
  1217. * @val: Rx protocol or flow tag feature flag value in monitor mode from INI
  1218. *
  1219. * Return: None
  1220. */
  1221. void
  1222. wlan_cfg_set_rx_mon_protocol_flow_tag_enabled(struct wlan_cfg_dp_soc_ctxt *cfg,
  1223. bool val);
  1224. /**
  1225. * wlan_cfg_is_rx_mon_protocol_flow_tag_enabled() - get mon rx tag enabled flag
  1226. * from DP soc context
  1227. * @wlan_cfg_dp_soc_ctxt: soc configuration context
  1228. *
  1229. * Return: true if feature is enabled in monitor mode for protocol or flow
  1230. * tagging in INI, false otherwise
  1231. */
  1232. bool
  1233. wlan_cfg_is_rx_mon_protocol_flow_tag_enabled(struct wlan_cfg_dp_soc_ctxt *cfg);
  1234. /**
  1235. * wlan_cfg_set_tx_per_pkt_vdev_id_check() - set flag to enable perpkt
  1236. * vdev id check in tx.
  1237. * @wlan_cfg_dp_soc_ctxt: soc configuration context
  1238. * @val: feature flag value
  1239. *
  1240. * Return: None
  1241. */
  1242. void
  1243. wlan_cfg_set_tx_per_pkt_vdev_id_check(struct wlan_cfg_dp_soc_ctxt *cfg,
  1244. bool val);
  1245. /**
  1246. * wlan_cfg_is_tx_per_pkt_vdev_id_check_enabled() - get flag to check if
  1247. * perpkt vdev id check is enabled in tx.
  1248. * @wlan_cfg_dp_soc_ctxt: soc configuration context
  1249. *
  1250. * Return: true if feature is enabled, false otherwise
  1251. */
  1252. bool
  1253. wlan_cfg_is_tx_per_pkt_vdev_id_check_enabled(struct wlan_cfg_dp_soc_ctxt *cfg);
  1254. /**
  1255. * wlan_cfg_fill_interrupt_mask() - set interrupt mask
  1256. *
  1257. * @wlan_cfg_dp_soc_ctxt: soc configuration context
  1258. * @interrupt_mode: interrupt_mode: MSI/LEGACY
  1259. * @is_monitor_mode: is monitor mode enabled
  1260. *
  1261. * Return: void
  1262. */
  1263. void wlan_cfg_fill_interrupt_mask(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx,
  1264. int interrupt_mode, bool is_monitor_mode);
  1265. /**
  1266. * wlan_cfg_is_rx_fisa_enabled() - Get Rx FISA enabled flag
  1267. *
  1268. *
  1269. * @cfg: soc configuration context
  1270. *
  1271. * Return: true if enabled, false otherwise.
  1272. */
  1273. bool wlan_cfg_is_rx_fisa_enabled(struct wlan_cfg_dp_soc_ctxt *cfg);
  1274. /**
  1275. * wlan_cfg_is_rx_buffer_pool_enabled() - Get RX buffer pool enabled flag
  1276. *
  1277. *
  1278. * @cfg: soc configuration context
  1279. *
  1280. * Return: true if enabled, false otherwise.
  1281. */
  1282. bool wlan_cfg_is_rx_buffer_pool_enabled(struct wlan_cfg_dp_soc_ctxt *cfg);
  1283. void wlan_cfg_set_tso_desc_attach_defer(struct wlan_cfg_dp_soc_ctxt *cfg,
  1284. bool val);
  1285. bool wlan_cfg_is_tso_desc_attach_defer(struct wlan_cfg_dp_soc_ctxt *cfg);
  1286. /**
  1287. * wlan_cfg_get_reo_rings_mapping() - Get Reo destination ring bitmap
  1288. *
  1289. *
  1290. * @cfg: soc configuration context
  1291. *
  1292. * Return: reo ring bitmap.
  1293. */
  1294. uint32_t wlan_cfg_get_reo_rings_mapping(struct wlan_cfg_dp_soc_ctxt *cfg);
  1295. /**
  1296. * wlan_cfg_set_peer_ext_stats() - set peer extended stats
  1297. *
  1298. * @wlan_cfg_dp_soc_ctxt: soc configuration context
  1299. * @val: Flag value read from INI
  1300. *
  1301. * Return: void
  1302. */
  1303. void
  1304. wlan_cfg_set_peer_ext_stats(struct wlan_cfg_dp_soc_ctxt *cfg,
  1305. bool val);
  1306. /**
  1307. * wlan_cfg_is_peer_ext_stats_enabled() - Check if peer extended
  1308. * stats are enabled
  1309. *
  1310. * @wlan_cfg_dp_soc_ctxt: soc configuration context
  1311. *
  1312. * Return: bool
  1313. */
  1314. bool
  1315. wlan_cfg_is_peer_ext_stats_enabled(struct wlan_cfg_dp_soc_ctxt *cfg);
  1316. /**
  1317. * wlan_cfg_is_poll_mode_enabled() - Check if poll mode is enabled
  1318. *
  1319. * @wlan_cfg_dp_soc_ctxt: soc configuration context
  1320. *
  1321. * Return: bool
  1322. */
  1323. bool wlan_cfg_is_poll_mode_enabled(struct wlan_cfg_dp_soc_ctxt *cfg);
  1324. /**
  1325. * wlan_cfg_is_fst_in_cmem_enabled() - Check if FST in CMEM is enabled
  1326. * @cfg: soc configuration context
  1327. *
  1328. * Return: true if enabled, false otherwise.
  1329. */
  1330. bool wlan_cfg_is_fst_in_cmem_enabled(struct wlan_cfg_dp_soc_ctxt *cfg);
  1331. /**
  1332. * wlan_cfg_is_swlm_enabled() - Get SWLMenabled flag
  1333. * @cfg: soc configuration context
  1334. *
  1335. * Return: true if enabled, false otherwise.
  1336. */
  1337. bool wlan_cfg_is_swlm_enabled(struct wlan_cfg_dp_soc_ctxt *cfg);
  1338. #endif
  1339. /**
  1340. * wlan_cfg_radio0_default_reo_get - Get Radio0 default REO
  1341. * @cfg: soc configuration context
  1342. *
  1343. * Return: .
  1344. */
  1345. uint8_t wlan_cfg_radio0_default_reo_get(struct wlan_cfg_dp_soc_ctxt *cfg);
  1346. /**
  1347. * wlan_cfg_radio1_default_reo_get - Get Radio1 default REO
  1348. * @cfg: soc configuration context
  1349. *
  1350. * Return: .
  1351. */
  1352. uint8_t wlan_cfg_radio1_default_reo_get(struct wlan_cfg_dp_soc_ctxt *cfg);
  1353. /**
  1354. * wlan_cfg_radio2_default_reo_get() - Get Radio2 default REO
  1355. * @cfg: soc configuration context
  1356. *
  1357. * Return: .
  1358. */
  1359. uint8_t wlan_cfg_radio2_default_reo_get(struct wlan_cfg_dp_soc_ctxt *cfg);