wlan_cfg.h 45 KB

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