wlan_cfg.h 31 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024
  1. /*
  2. * Copyright (c) 2013-2019 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(CONFIG_MCL)
  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 0x1FFF
  36. #define NUM_RXDMA_RINGS_PER_PDEV 2
  37. #else
  38. #define WLAN_CFG_DST_RING_CACHED_DESC 1
  39. #define MAX_PDEV_CNT 3
  40. #define WLAN_CFG_INT_NUM_CONTEXTS 11
  41. #define WLAN_CFG_RXDMA1_ENABLE 1
  42. /*
  43. * This mask defines how many transmit frames account for 1 NAPI work unit
  44. * 0xFFFF means each 64K tx frame completions account for 1 unit of NAPI budget
  45. */
  46. #define DP_TX_NAPI_BUDGET_DIV_MASK 0xFFFF
  47. /* PPDU Stats Configuration - Configure bitmask for enabling tx ppdu tlv's */
  48. #define DP_PPDU_TXLITE_STATS_BITMASK_CFG 0xFFFF
  49. #define NUM_RXDMA_RINGS_PER_PDEV 1
  50. #endif
  51. /* Tx configuration */
  52. #define MAX_LINK_DESC_BANKS 8
  53. #define MAX_TXDESC_POOLS 4
  54. #define MAX_TCL_DATA_RINGS 4
  55. /* Rx configuration */
  56. #define MAX_RXDESC_POOLS 4
  57. #define MAX_REO_DEST_RINGS 4
  58. #define MAX_RX_MAC_RINGS 2
  59. /* DP process status */
  60. #ifdef CONFIG_MCL
  61. #define CONFIG_PROCESS_RX_STATUS 1
  62. #define CONFIG_PROCESS_TX_STATUS 1
  63. #else
  64. #define CONFIG_PROCESS_RX_STATUS 0
  65. #define CONFIG_PROCESS_TX_STATUS 0
  66. #endif
  67. /* Miscellaneous configuration */
  68. #define MAX_IDLE_SCATTER_BUFS 16
  69. #define DP_MAX_IRQ_PER_CONTEXT 12
  70. #define MAX_HTT_METADATA_LEN 32
  71. #define MAX_NUM_PEER_ID_PER_PEER 8
  72. #define DP_MAX_TIDS 17
  73. #define DP_NON_QOS_TID 16
  74. struct wlan_cfg_dp_pdev_ctxt;
  75. /**
  76. * struct wlan_cfg_dp_soc_ctxt - Configuration parameters for SoC (core TxRx)
  77. * @num_int_ctxts: Number of NAPI/Interrupt contexts to be registered for DP
  78. * @max_clients: Maximum number of peers/stations supported by device
  79. * @max_alloc_size: Maximum allocation size for any dynamic memory
  80. * allocation request for this device
  81. * @per_pdev_tx_ring: 0: TCL ring is not mapped per radio
  82. * 1: Each TCL ring is mapped to one radio/pdev
  83. * @num_tcl_data_rings: Number of TCL Data rings supported by device
  84. * @per_pdev_rx_ring: 0: REO ring is not mapped per radio
  85. * 1: Each REO ring is mapped to one radio/pdev
  86. * @num_tx_desc_pool: Number of Tx Descriptor pools
  87. * @num_tx_ext_desc_pool: Number of Tx MSDU extension Descriptor pools
  88. * @num_tx_desc: Number of Tx Descriptors per pool
  89. * @min_tx_desc: Minimum number of Tx Descriptors per pool
  90. * @num_tx_ext_desc: Number of Tx MSDU extension Descriptors per pool
  91. * @max_peer_id: Maximum value of peer id that FW can assign for a client
  92. * @htt_packet_type: Default 802.11 encapsulation type for any VAP created
  93. * @int_tx_ring_mask: Bitmap of Tx interrupts mapped to each NAPI/Intr context
  94. * @int_rx_ring_mask: Bitmap of Rx interrupts mapped to each NAPI/Intr context
  95. * @int_rx_mon_ring_mask: Bitmap of Rx monitor ring interrupts mapped to each
  96. * NAPI/Intr context
  97. * @int_rx_err_ring_mask: Bitmap of Rx err ring interrupts mapped to each
  98. * NAPI/Intr context
  99. * @int_wbm_rel_ring_mask: Bitmap of wbm rel ring interrupts mapped to each
  100. * NAPI/Intr context
  101. * @int_reo_status_ring_mask: Bitmap of reo status ring interrupts mapped to
  102. * each NAPI/Intr context
  103. * @int_ce_ring_mask: Bitmap of CE interrupts mapped to each NAPI/Intr context
  104. * @lro_enabled: enable/disable lro feature
  105. * @rx_hash: Enable hash based steering of rx packets
  106. * @tso_enabled: enable/disable tso feature
  107. * @lro_enabled: enable/disable LRO feature
  108. * @sg_enabled: enable disable scatter gather feature
  109. * @gro_enabled: enable disable GRO feature
  110. * @ipa_enabled: Flag indicating if IPA is enabled
  111. * @ol_tx_csum_enabled: Flag indicating if TX csum is enabled
  112. * @ol_rx_csum_enabled: Flag indicating if Rx csum is enabled
  113. * @rawmode_enabled: Flag indicating if RAW mode is enabled
  114. * @peer_flow_ctrl_enabled: Flag indicating if peer flow control is enabled
  115. * @napi_enabled: enable/disable interrupt mode for reaping tx and rx packets
  116. * @tcp_udp_checksumoffload: enable/disable checksum offload
  117. * @nss_cfg: nss configuration
  118. * @rx_defrag_min_timeout: rx defrag minimum timeout
  119. * @wbm_release_ring: wbm release ring size
  120. * @tcl_cmd_ring: tcl cmd ring size
  121. * @tcl_status_ring: tcl status ring size
  122. * @reo_reinject_ring: reo reinject ring
  123. * @rx_release_ring: rx release ring size
  124. * @reo_exception_ring: reo exception ring size
  125. * @reo_cmd_ring: reo cmd ring size
  126. * @reo_status_ring: reo status ting size
  127. * @rxdma_refill_ring: rxdma refill ring size
  128. * @rxdma_err_dst_ring: rxdma error detination ring size
  129. * @raw_mode_war: enable/disable raw mode war
  130. * @enable_data_stall_detection: flag to enable data stall detection
  131. * @disable_intra_bss_fwd: flag to disable intra bss forwarding
  132. * @rxdma1_enable: flag to indicate if rxdma1 is enabled
  133. * @tx_comp_loop_pkt_limit: Max # of packets to be processed in 1 tx comp loop
  134. * @rx_reap_loop_pkt_limit: Max # of packets to be processed in 1 rx reap loop
  135. * @rx_hp_oos_update_limit: Max # of HP OOS (out of sync) updates
  136. * @rx_enable_eol_data_check: flag to enable check for more ring data at end of
  137. * dp_rx_process loop
  138. * tx_comp_enable_eol_data_check: flag to enable/disable checking for more data
  139. * at end of tx_comp_handler loop.
  140. */
  141. struct wlan_cfg_dp_soc_ctxt {
  142. int num_int_ctxts;
  143. int max_clients;
  144. int max_alloc_size;
  145. int per_pdev_tx_ring;
  146. int num_tcl_data_rings;
  147. int per_pdev_rx_ring;
  148. int per_pdev_lmac_ring;
  149. int num_reo_dest_rings;
  150. int num_tx_desc_pool;
  151. int num_tx_ext_desc_pool;
  152. int num_tx_desc;
  153. int min_tx_desc;
  154. int num_tx_ext_desc;
  155. int max_peer_id;
  156. int htt_packet_type;
  157. int int_batch_threshold_tx;
  158. int int_timer_threshold_tx;
  159. int int_batch_threshold_rx;
  160. int int_timer_threshold_rx;
  161. int int_batch_threshold_other;
  162. int int_timer_threshold_other;
  163. int int_timer_threshold_mon;
  164. int tx_ring_size;
  165. int tx_comp_ring_size;
  166. int tx_comp_ring_size_nss;
  167. int int_tx_ring_mask[WLAN_CFG_INT_NUM_CONTEXTS];
  168. int int_rx_ring_mask[WLAN_CFG_INT_NUM_CONTEXTS];
  169. int int_rx_mon_ring_mask[WLAN_CFG_INT_NUM_CONTEXTS];
  170. int int_host2rxdma_mon_ring_mask[WLAN_CFG_INT_NUM_CONTEXTS];
  171. int int_rxdma2host_mon_ring_mask[WLAN_CFG_INT_NUM_CONTEXTS];
  172. int int_ce_ring_mask[WLAN_CFG_INT_NUM_CONTEXTS];
  173. int int_rx_err_ring_mask[WLAN_CFG_INT_NUM_CONTEXTS];
  174. int int_rx_wbm_rel_ring_mask[WLAN_CFG_INT_NUM_CONTEXTS];
  175. int int_reo_status_ring_mask[WLAN_CFG_INT_NUM_CONTEXTS];
  176. int int_rxdma2host_ring_mask[WLAN_CFG_INT_NUM_CONTEXTS];
  177. int int_host2rxdma_ring_mask[WLAN_CFG_INT_NUM_CONTEXTS];
  178. int hw_macid[MAX_PDEV_CNT];
  179. int base_hw_macid;
  180. bool rx_hash;
  181. bool tso_enabled;
  182. bool lro_enabled;
  183. bool sg_enabled;
  184. bool gro_enabled;
  185. bool ipa_enabled;
  186. bool ol_tx_csum_enabled;
  187. bool ol_rx_csum_enabled;
  188. bool rawmode_enabled;
  189. bool peer_flow_ctrl_enabled;
  190. bool napi_enabled;
  191. bool tcp_udp_checksumoffload;
  192. bool defrag_timeout_check;
  193. int nss_cfg;
  194. uint32_t tx_flow_stop_queue_threshold;
  195. uint32_t tx_flow_start_queue_offset;
  196. int rx_defrag_min_timeout;
  197. int reo_dst_ring_size;
  198. int wbm_release_ring;
  199. int tcl_cmd_ring;
  200. int tcl_status_ring;
  201. int reo_reinject_ring;
  202. int rx_release_ring;
  203. int reo_exception_ring;
  204. int reo_cmd_ring;
  205. int reo_status_ring;
  206. int rxdma_refill_ring;
  207. int rxdma_err_dst_ring;
  208. uint32_t per_pkt_trace;
  209. bool raw_mode_war;
  210. bool enable_data_stall_detection;
  211. bool disable_intra_bss_fwd;
  212. bool rxdma1_enable;
  213. int max_ast_idx;
  214. #ifdef WLAN_FEATURE_RX_SOFTIRQ_TIME_LIMIT
  215. uint32_t tx_comp_loop_pkt_limit;
  216. uint32_t rx_reap_loop_pkt_limit;
  217. uint32_t rx_hp_oos_update_limit;
  218. bool rx_enable_eol_data_check;
  219. bool tx_comp_enable_eol_data_check;
  220. #endif /* WLAN_FEATURE_RX_SOFTIRQ_TIME_LIMIT */
  221. };
  222. /**
  223. * struct wlan_cfg_dp_pdev_ctxt - Configuration parameters for pdev (radio)
  224. * @rx_dma_buf_ring_size - Size of RxDMA buffer ring
  225. * @dma_mon_buf_ring_size - Size of RxDMA Monitor buffer ring
  226. * @dma_mon_dest_ring_size - Size of RxDMA Monitor Destination ring
  227. * @dma_mon_status_ring_size - Size of RxDMA Monitor Status ring
  228. * @rxdma_monitor_desc_ring - rxdma monitor desc ring size
  229. */
  230. struct wlan_cfg_dp_pdev_ctxt {
  231. int rx_dma_buf_ring_size;
  232. int dma_mon_buf_ring_size;
  233. int dma_mon_dest_ring_size;
  234. int dma_mon_status_ring_size;
  235. int rxdma_monitor_desc_ring;
  236. int num_mac_rings;
  237. int nss_enabled;
  238. };
  239. /**
  240. * wlan_cfg_soc_attach() - Attach configuration interface for SoC
  241. * @ctrl_obj - PSOC object
  242. *
  243. * Allocates context for Soc configuration parameters,
  244. * Read configuration information from device tree/ini file and
  245. * returns back handle
  246. *
  247. * Return: Handle to configuration context
  248. */
  249. struct wlan_cfg_dp_soc_ctxt *wlan_cfg_soc_attach(void *ctrl_obj);
  250. /**
  251. * wlan_cfg_soc_detach() - Detach soc configuration handle
  252. * @wlan_cfg_ctx: soc configuration handle
  253. *
  254. * De-allocates memory allocated for SoC configuration
  255. *
  256. * Return:none
  257. */
  258. void wlan_cfg_soc_detach(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
  259. /**
  260. * wlan_cfg_pdev_attach() Attach configuration interface for pdev
  261. * @ctrl_obj - PSOC object
  262. *
  263. * Allocates context for pdev configuration parameters,
  264. * Read configuration information from device tree/ini file and
  265. * returns back handle
  266. *
  267. * Return: Handle to configuration context
  268. */
  269. struct wlan_cfg_dp_pdev_ctxt *wlan_cfg_pdev_attach(void *ctrl_obj);
  270. /**
  271. * wlan_cfg_pdev_detach() Detach and free pdev configuration handle
  272. * @wlan_cfg_pdev_ctx - PDEV Configuration Handle
  273. *
  274. * Return: void
  275. */
  276. void wlan_cfg_pdev_detach(struct wlan_cfg_dp_pdev_ctxt *wlan_cfg_pdev_ctx);
  277. void wlan_cfg_set_num_contexts(struct wlan_cfg_dp_soc_ctxt *cfg, int num);
  278. void wlan_cfg_set_tx_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg,
  279. int context, int mask);
  280. void wlan_cfg_set_rx_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg,
  281. int context, int mask);
  282. void wlan_cfg_set_rx_mon_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg,
  283. int context, int mask);
  284. void wlan_cfg_set_ce_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg,
  285. int context, int mask);
  286. void wlan_cfg_set_rxbuf_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg, int context,
  287. int mask);
  288. void wlan_cfg_set_max_peer_id(struct wlan_cfg_dp_soc_ctxt *cfg, uint32_t val);
  289. void wlan_cfg_set_max_ast_idx(struct wlan_cfg_dp_soc_ctxt *cfg, uint32_t val);
  290. int wlan_cfg_get_max_ast_idx(struct wlan_cfg_dp_soc_ctxt *cfg);
  291. int wlan_cfg_set_rx_err_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg,
  292. int context, int mask);
  293. int wlan_cfg_set_rx_wbm_rel_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg,
  294. int context, int mask);
  295. int wlan_cfg_set_reo_status_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg,
  296. int context, int mask);
  297. /**
  298. * wlan_cfg_get_num_contexts() - Number of interrupt contexts to be registered
  299. * @wlan_cfg_ctx - Configuration Handle
  300. *
  301. * For WIN, DP_NUM_INTERRUPT_CONTEXTS will be equal to number of CPU cores.
  302. * Each context (for linux it is a NAPI context) will have a tx_ring_mask,
  303. * rx_ring_mask ,and rx_monitor_ring mask to indicate the rings
  304. * that are processed by the handler.
  305. *
  306. * Return: num_contexts
  307. */
  308. int wlan_cfg_get_num_contexts(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
  309. /**
  310. * wlan_cfg_get_tx_ring_mask() - Return Tx interrupt mask mapped to an
  311. * interrupt context
  312. * @wlan_cfg_ctx - Configuration Handle
  313. * @context - Numerical ID identifying the Interrupt/NAPI context
  314. *
  315. * Return: int_tx_ring_mask[context]
  316. */
  317. int wlan_cfg_get_tx_ring_mask(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx,
  318. int context);
  319. /**
  320. * wlan_cfg_get_rx_ring_mask() - Return Rx interrupt mask mapped to an
  321. * interrupt context
  322. * @wlan_cfg_ctx - Configuration Handle
  323. * @context - Numerical ID identifying the Interrupt/NAPI context
  324. *
  325. * Return: int_rx_ring_mask[context]
  326. */
  327. int wlan_cfg_get_rx_ring_mask(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx,
  328. int context);
  329. /**
  330. * wlan_cfg_get_rx_mon_ring_mask() - Return Rx monitor ring interrupt mask
  331. * mapped to an interrupt context
  332. * @wlan_cfg_ctx - Configuration Handle
  333. * @context - Numerical ID identifying the Interrupt/NAPI context
  334. *
  335. * Return: int_rx_mon_ring_mask[context]
  336. */
  337. int wlan_cfg_get_rx_mon_ring_mask(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx,
  338. int context);
  339. /**
  340. * wlan_cfg_set_rxdma2host_ring_mask() - Set rxdma2host ring interrupt mask
  341. * for the given interrupt context
  342. * @wlan_cfg_ctx - Configuration Handle
  343. * @context - Numerical ID identifying the Interrupt/NAPI context
  344. *
  345. */
  346. void wlan_cfg_set_rxdma2host_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg,
  347. int context, int mask);
  348. /**
  349. * wlan_cfg_get_rxdma2host_ring_mask() - Return rxdma2host ring interrupt mask
  350. * mapped to an interrupt context
  351. * @wlan_cfg_ctx - Configuration Handle
  352. * @context - Numerical ID identifying the Interrupt/NAPI context
  353. *
  354. * Return: int_rxdma2host_ring_mask[context]
  355. */
  356. int wlan_cfg_get_rxdma2host_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg,
  357. int context);
  358. /**
  359. * wlan_cfg_set_host2rxdma_ring_mask() - Set host2rxdma ring interrupt mask
  360. * for the given interrupt context
  361. * @wlan_cfg_ctx - Configuration Handle
  362. * @context - Numerical ID identifying the Interrupt/NAPI context
  363. *
  364. */
  365. void wlan_cfg_set_host2rxdma_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg,
  366. int context, int mask);
  367. /**
  368. * wlan_cfg_get_host2rxdma_ring_mask() - Return host2rxdma ring interrupt mask
  369. * mapped to an interrupt context
  370. * @wlan_cfg_ctx - Configuration Handle
  371. * @context - Numerical ID identifying the Interrupt/NAPI context
  372. *
  373. * Return: int_host2rxdma_ring_mask[context]
  374. */
  375. int wlan_cfg_get_host2rxdma_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg,
  376. int context);
  377. /**
  378. * wlan_cfg_set_host2rxdma_mon_ring_mask() - Set host2rxdma monitor ring
  379. * interrupt mask for the given interrupt context
  380. * @wlan_cfg_ctx - Configuration Handle
  381. * @context - Numerical ID identifying the Interrupt/NAPI context
  382. *
  383. */
  384. void wlan_cfg_set_host2rxdma_mon_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg,
  385. int context, int mask);
  386. /**
  387. * wlan_cfg_get_host2rxdma_mon_ring_mask() - Return host2rxdma monitoe ring
  388. * interrupt mask mapped to an interrupt context
  389. * @wlan_cfg_ctx - Configuration Handle
  390. * @context - Numerical ID identifying the Interrupt/NAPI context
  391. *
  392. * Return: int_host2rxdma_mon_ring_mask[context]
  393. */
  394. int wlan_cfg_get_host2rxdma_mon_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg,
  395. int context);
  396. /**
  397. * wlan_cfg_set_rxdma2host_mon_ring_mask() - Set rxdma2host monitor
  398. * destination ring interrupt mask
  399. * for the given interrupt context
  400. * @wlan_cfg_ctx - Configuration Handle
  401. * @context - Numerical ID identifying the Interrupt/NAPI context
  402. *
  403. */
  404. void wlan_cfg_set_rxdma2host_mon_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg,
  405. int context, int mask);
  406. /**
  407. * wlan_cfg_get_rxdma2host_mon_ring_mask() - Return rxdma2host monitor
  408. * destination ring interrupt mask
  409. * mapped to an interrupt context
  410. * @wlan_cfg_ctx - Configuration Handle
  411. * @context - Numerical ID identifying the Interrupt/NAPI context
  412. *
  413. * Return: int_rxdma2host_mon_ring_mask[context]
  414. */
  415. int wlan_cfg_get_rxdma2host_mon_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg,
  416. int context);
  417. /**
  418. * wlan_cfg_set_hw_macid() - Set HW MAC Id for the given PDEV index
  419. *
  420. * @wlan_cfg_ctx - Configuration Handle
  421. * @pdev_idx - Index of SW PDEV
  422. * @hw_macid - HW MAC Id
  423. *
  424. */
  425. void wlan_cfg_set_hw_macid(struct wlan_cfg_dp_soc_ctxt *cfg, int pdev_idx,
  426. int hw_macid);
  427. /**
  428. * wlan_cfg_get_hw_macid() - Get HW MAC Id for the given PDEV index
  429. *
  430. * @wlan_cfg_ctx - Configuration Handle
  431. * @pdev_idx - Index of SW PDEV
  432. *
  433. * Return: HW MAC Id
  434. */
  435. int wlan_cfg_get_hw_macid(struct wlan_cfg_dp_soc_ctxt *cfg, int pdev_idx);
  436. /**
  437. * wlan_cfg_get_hw_mac_idx() - Get 0 based HW MAC index for the given
  438. * PDEV index
  439. *
  440. * @wlan_cfg_ctx - Configuration Handle
  441. * @pdev_idx - Index of SW PDEV
  442. *
  443. * Return: HW MAC index
  444. */
  445. int wlan_cfg_get_hw_mac_idx(struct wlan_cfg_dp_soc_ctxt *cfg, int pdev_idx);
  446. /**
  447. * wlan_cfg_get_rx_err_ring_mask() - Return Rx monitor ring interrupt mask
  448. * mapped to an interrupt context
  449. * @wlan_cfg_ctx - Configuration Handle
  450. * @context - Numerical ID identifying the Interrupt/NAPI context
  451. *
  452. * Return: int_rx_err_ring_mask[context]
  453. */
  454. int wlan_cfg_get_rx_err_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg, int
  455. context);
  456. /**
  457. * wlan_cfg_get_rx_wbm_rel_ring_mask() - Return Rx monitor ring interrupt mask
  458. * mapped to an interrupt context
  459. * @wlan_cfg_ctx - Configuration Handle
  460. * @context - Numerical ID identifying the Interrupt/NAPI context
  461. *
  462. * Return: int_wbm_rel_ring_mask[context]
  463. */
  464. int wlan_cfg_get_rx_wbm_rel_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg, int
  465. context);
  466. /**
  467. * wlan_cfg_get_reo_status_ring_mask() - Return Rx monitor ring interrupt mask
  468. * mapped to an interrupt context
  469. * @wlan_cfg_ctx - Configuration Handle
  470. * @context - Numerical ID identifying the Interrupt/NAPI context
  471. *
  472. * Return: int_reo_status_ring_mask[context]
  473. */
  474. int wlan_cfg_get_reo_status_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg, int
  475. context);
  476. /**
  477. * wlan_cfg_get_ce_ring_mask() - Return CE ring interrupt mask
  478. * mapped to an interrupt context
  479. * @wlan_cfg_ctx - Configuration Handle
  480. * @context - Numerical ID identifying the Interrupt/NAPI context
  481. *
  482. * Return: int_ce_ring_mask[context]
  483. */
  484. int wlan_cfg_get_ce_ring_mask(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx,
  485. int context);
  486. /**
  487. * wlan_cfg_get_max_clients() - Return maximum number of peers/stations
  488. * supported by device
  489. * @wlan_cfg_ctx - Configuration Handle
  490. *
  491. * Return: max_clients
  492. */
  493. uint32_t wlan_cfg_get_max_clients(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
  494. /**
  495. * wlan_cfg_max_alloc_size() - Return Maximum allocation size for any dynamic
  496. * memory allocation request for this device
  497. * @wlan_cfg_ctx - Configuration Handle
  498. *
  499. * Return: max_alloc_size
  500. */
  501. uint32_t wlan_cfg_max_alloc_size(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
  502. /*
  503. * wlan_cfg_per_pdev_tx_ring() - Return true if Tx rings are mapped as
  504. * one per radio
  505. * @wlan_cfg_ctx - Configuration Handle
  506. *
  507. * Return: per_pdev_tx_ring
  508. */
  509. int wlan_cfg_per_pdev_tx_ring(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
  510. /*
  511. * wlan_cfg_num_tcl_data_rings() - Number of TCL Data rings supported by device
  512. * @wlan_cfg_ctx
  513. *
  514. * Return: num_tcl_data_rings
  515. */
  516. int wlan_cfg_num_tcl_data_rings(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
  517. /*
  518. * wlan_cfg_per_pdev_rx_ring() - Return true if Rx rings are mapped as
  519. * one per radio
  520. * @wlan_cfg_ctx
  521. *
  522. * Return: per_pdev_rx_ring
  523. */
  524. int wlan_cfg_per_pdev_rx_ring(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
  525. /*
  526. * wlan_cfg_per_pdev_lmac_ring() - Return true if error rings are mapped as
  527. * one per radio
  528. * @wlan_cfg_ctx
  529. *
  530. * Return: return 1 if per pdev error ring else 0
  531. */
  532. int wlan_cfg_per_pdev_lmac_ring(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
  533. /*
  534. * wlan_cfg_num_reo_dest_rings() - Number of REO Data rings supported by device
  535. * @wlan_cfg_ctx - Configuration Handle
  536. *
  537. * Return: num_reo_dest_rings
  538. */
  539. int wlan_cfg_num_reo_dest_rings(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
  540. /*
  541. * wlan_cfg_pkt_type() - Default 802.11 encapsulation type
  542. * @wlan_cfg_ctx - Configuration Handle
  543. *
  544. * Return: htt_pkt_type_ethernet
  545. */
  546. int wlan_cfg_pkt_type(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
  547. /*
  548. * wlan_cfg_get_num_tx_desc_pool() - Number of Tx Descriptor pools for the
  549. * device
  550. * @wlan_cfg_ctx - Configuration Handle
  551. *
  552. * Return: num_tx_desc_pool
  553. */
  554. int wlan_cfg_get_num_tx_desc_pool(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
  555. /*
  556. * wlan_cfg_set_num_tx_desc_pool() - Set the number of Tx Descriptor pools for the
  557. * device
  558. * @wlan_cfg_ctx - Configuration Handle
  559. * @num_pool - Number of pool
  560. */
  561. void wlan_cfg_set_num_tx_desc_pool(struct wlan_cfg_dp_soc_ctxt *cfg, int num_pool);
  562. /*
  563. * wlan_cfg_get_num_tx_ext_desc_pool() - Number of Tx MSDU ext Descriptor
  564. * pools
  565. * @wlan_cfg_ctx - Configuration Handle
  566. *
  567. * Return: num_tx_ext_desc_pool
  568. */
  569. int wlan_cfg_get_num_tx_ext_desc_pool(
  570. struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
  571. /*
  572. * wlan_cfg_get_reo_dst_ring_size() - Get REO destination ring size
  573. *
  574. * @wlan_cfg_ctx - Configuration Handle
  575. *
  576. * Return: reo_dst_ring_size
  577. */
  578. int wlan_cfg_get_reo_dst_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg);
  579. /*
  580. * wlan_cfg_set_num_tx_desc_pool() - Set the REO Destination ring size
  581. *
  582. * @wlan_cfg_ctx - Configuration Handle
  583. * @reo_dst_ring_size - REO Destination ring size
  584. */
  585. void wlan_cfg_set_reo_dst_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg,
  586. int reo_dst_ring_size);
  587. /*
  588. * wlan_cfg_set_raw_mode_war() - Set raw mode war configuration
  589. *
  590. * @wlan_cfg_ctx - Configuration Handle
  591. * @raw_mode_war - raw mode war configuration
  592. */
  593. void wlan_cfg_set_raw_mode_war(struct wlan_cfg_dp_soc_ctxt *cfg,
  594. bool raw_mode_war);
  595. /*
  596. * wlan_cfg_get_raw_mode_war() - Get raw mode war configuration
  597. *
  598. * @wlan_cfg_ctx - Configuration Handle
  599. *
  600. * Return: reo_dst_ring_size
  601. */
  602. bool wlan_cfg_get_raw_mode_war(struct wlan_cfg_dp_soc_ctxt *cfg);
  603. /*
  604. * wlan_cfg_set_num_tx_ext_desc_pool() - Set the number of Tx MSDU ext Descriptor
  605. * pools
  606. * @wlan_cfg_ctx - Configuration Handle
  607. * @num_pool - Number of pool
  608. */
  609. void wlan_cfg_set_num_tx_ext_desc_pool(struct wlan_cfg_dp_soc_ctxt *cfg, int num_pool);
  610. /*
  611. * wlan_cfg_get_num_tx_desc() - Number of Tx Descriptors per pool
  612. * @wlan_cfg_ctx - Configuration Handle
  613. *
  614. * Return: num_tx_desc
  615. */
  616. int wlan_cfg_get_num_tx_desc(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
  617. /*
  618. * wlan_cfg_get_min_tx_desc() - Minimum number of Tx Descriptors per pool
  619. * @wlan_cfg_ctx - Configuration Handle
  620. *
  621. * Return: num_tx_desc
  622. */
  623. int wlan_cfg_get_min_tx_desc(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
  624. /*
  625. * wlan_cfg_set_num_tx_desc() - Set the number of Tx Descriptors per pool
  626. *
  627. * @wlan_cfg_ctx - Configuration Handle
  628. * @num_desc: Number of descriptor
  629. */
  630. void wlan_cfg_set_num_tx_desc(struct wlan_cfg_dp_soc_ctxt *cfg, int num_desc);
  631. /*
  632. * wlan_cfg_get_num_tx_ext_desc() - Number of Tx MSDU extension Descriptors
  633. * per pool
  634. * @wlan_cfg_ctx - Configuration Handle
  635. *
  636. * Return: num_tx_ext_desc
  637. */
  638. int wlan_cfg_get_num_tx_ext_desc(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
  639. /*
  640. * wlan_cfg_set_num_tx_ext_desc() - Set the number of Tx MSDU extension Descriptors
  641. * per pool
  642. * @wlan_cfg_ctx - Configuration Handle
  643. * @num_desc: Number of descriptor
  644. */
  645. void wlan_cfg_set_num_tx_ext_desc(struct wlan_cfg_dp_soc_ctxt *cfg, int num_ext_desc);
  646. /*
  647. * wlan_cfg_max_peer_id() - Get maximum peer ID
  648. * @cfg: Configuration Handle
  649. *
  650. * Return: maximum peer ID
  651. */
  652. uint32_t wlan_cfg_max_peer_id(struct wlan_cfg_dp_soc_ctxt *cfg);
  653. /*
  654. * wlan_cfg_get_dma_mon_buf_ring_size() - Return Size of monitor buffer ring
  655. * @wlan_cfg_pdev_ctx
  656. *
  657. * Return: dma_mon_buf_ring_size
  658. */
  659. int wlan_cfg_get_dma_mon_buf_ring_size(
  660. struct wlan_cfg_dp_pdev_ctxt *wlan_cfg_pdev_ctx);
  661. /*
  662. * wlan_cfg_get_dma_mon_dest_ring_size() - Return Size of RxDMA Monitor
  663. * Destination ring
  664. * @wlan_cfg_pdev_ctx
  665. *
  666. * Return: dma_mon_dest_size
  667. */
  668. int wlan_cfg_get_dma_mon_dest_ring_size(
  669. struct wlan_cfg_dp_pdev_ctxt *wlan_cfg_pdev_ctx);
  670. /*
  671. * wlan_cfg_get_dma_mon_stat_ring_size() - Return size of Monitor Status ring
  672. * @wlan_cfg_pdev_ctx
  673. *
  674. * Return: dma_mon_stat_ring_size
  675. */
  676. int wlan_cfg_get_dma_mon_stat_ring_size(
  677. struct wlan_cfg_dp_pdev_ctxt *wlan_cfg_pdev_ctx);
  678. /*
  679. * wlan_cfg_get_dma_mon_desc_ring_size - Get rxdma monitor size
  680. * @wlan_cfg_soc_ctx
  681. *
  682. * Return: rxdma monitor desc ring size
  683. */
  684. int
  685. wlan_cfg_get_dma_mon_desc_ring_size(struct wlan_cfg_dp_pdev_ctxt *cfg);
  686. /*
  687. * wlan_cfg_get_rx_dma_buf_ring_size() - Return Size of RxDMA buffer ring
  688. * @wlan_cfg_pdev_ctx
  689. *
  690. * Return: rx_dma_buf_ring_size
  691. */
  692. int wlan_cfg_get_rx_dma_buf_ring_size(
  693. struct wlan_cfg_dp_pdev_ctxt *wlan_cfg_pdev_ctx);
  694. /*
  695. * wlan_cfg_get_num_mac_rings() - Return the number of MAC RX DMA rings
  696. * per pdev
  697. * @wlan_cfg_pdev_ctx
  698. *
  699. * Return: number of mac DMA rings per pdev
  700. */
  701. int wlan_cfg_get_num_mac_rings(struct wlan_cfg_dp_pdev_ctxt *cfg);
  702. /*
  703. * wlan_cfg_is_lro_enabled - Return LRO enabled/disabled
  704. * @wlan_cfg_dp_soc_ctxt
  705. *
  706. * Return: true - LRO enabled false - LRO disabled
  707. */
  708. bool wlan_cfg_is_lro_enabled(struct wlan_cfg_dp_soc_ctxt *cfg);
  709. /*
  710. * wlan_cfg_is_gro_enabled - Return GRO enabled/disabled
  711. * @wlan_cfg_dp_soc_ctxt
  712. *
  713. * Return: true - GRO enabled false - GRO disabled
  714. */
  715. bool wlan_cfg_is_gro_enabled(struct wlan_cfg_dp_soc_ctxt *cfg);
  716. /*
  717. * wlan_cfg_is_rx_hash_enabled - Return RX hash enabled/disabled
  718. * @wlan_cfg_dp_soc_ctxt
  719. *
  720. * Return: true - enabled false - disabled
  721. */
  722. bool wlan_cfg_is_rx_hash_enabled(struct wlan_cfg_dp_soc_ctxt *cfg);
  723. /*
  724. * wlan_cfg_is_ipa_enabled - Return IPA enabled/disabled
  725. * @wlan_cfg_dp_soc_ctxt
  726. *
  727. * Return: true - enabled false - disabled
  728. */
  729. bool wlan_cfg_is_ipa_enabled(struct wlan_cfg_dp_soc_ctxt *cfg);
  730. /*
  731. * wlan_cfg_set_rx_hash - set rx hash enabled/disabled
  732. * @wlan_cfg_soc_ctx
  733. * @rx_hash
  734. */
  735. void wlan_cfg_set_rx_hash(struct wlan_cfg_dp_soc_ctxt *cfg, bool rx_hash);
  736. /*
  737. * wlan_cfg_get_dp_pdev_nss_enabled - Return pdev nss enabled/disabled
  738. * @wlan_cfg_pdev_ctx
  739. *
  740. * Return: 1 - enabled 0 - disabled
  741. */
  742. int wlan_cfg_get_dp_pdev_nss_enabled(struct wlan_cfg_dp_pdev_ctxt *cfg);
  743. /*
  744. * wlan_cfg_set_dp_pdev_nss_enabled - set pdev nss enabled/disabled
  745. * @wlan_cfg_pdev_ctx
  746. */
  747. void wlan_cfg_set_dp_pdev_nss_enabled(struct wlan_cfg_dp_pdev_ctxt *cfg, int nss_enabled);
  748. /*
  749. * wlan_cfg_get_dp_soc_nss_cfg - Return soc nss config
  750. * @wlan_cfg_pdev_ctx
  751. *
  752. * Return: nss_cfg
  753. */
  754. int wlan_cfg_get_dp_soc_nss_cfg(struct wlan_cfg_dp_soc_ctxt *cfg);
  755. /*
  756. * wlan_cfg_set_dp_soc_nss_cfg - set soc nss config
  757. * @wlan_cfg_pdev_ctx
  758. *
  759. */
  760. void wlan_cfg_set_dp_soc_nss_cfg(struct wlan_cfg_dp_soc_ctxt *cfg, int nss_cfg);
  761. /*
  762. * wlan_cfg_get_int_batch_threshold_tx - Get interrupt mitigation cfg for Tx
  763. * @wlan_cfg_soc_ctx
  764. *
  765. * Return: Batch threshold
  766. */
  767. int wlan_cfg_get_int_batch_threshold_tx(struct wlan_cfg_dp_soc_ctxt *cfg);
  768. /*
  769. * wlan_cfg_get_int_timer_threshold_tx - Get interrupt mitigation cfg for Tx
  770. * @wlan_cfg_soc_ctx
  771. *
  772. * Return: Timer threshold
  773. */
  774. int wlan_cfg_get_int_timer_threshold_tx(struct wlan_cfg_dp_soc_ctxt *cfg);
  775. /*
  776. * wlan_cfg_get_int_batch_threshold_rx - Get interrupt mitigation cfg for Rx
  777. * @wlan_cfg_soc_ctx
  778. *
  779. * Return: Batch threshold
  780. */
  781. int wlan_cfg_get_int_batch_threshold_rx(struct wlan_cfg_dp_soc_ctxt *cfg);
  782. /*
  783. * wlan_cfg_get_int_batch_threshold_rx - Get interrupt mitigation cfg for Rx
  784. * @wlan_cfg_soc_ctx
  785. *
  786. * Return: Timer threshold
  787. */
  788. int wlan_cfg_get_int_timer_threshold_rx(struct wlan_cfg_dp_soc_ctxt *cfg);
  789. /*
  790. * wlan_cfg_get_int_batch_threshold_tx - Get interrupt mitigation cfg for other srngs
  791. * @wlan_cfg_soc_ctx
  792. *
  793. * Return: Batch threshold
  794. */
  795. int wlan_cfg_get_int_batch_threshold_other(struct wlan_cfg_dp_soc_ctxt *cfg);
  796. /*
  797. * wlan_cfg_get_int_batch_threshold_tx - Get interrupt mitigation cfg for other srngs
  798. * @wlan_cfg_soc_ctx
  799. *
  800. * Return: Timer threshold
  801. */
  802. int wlan_cfg_get_int_timer_threshold_other(struct wlan_cfg_dp_soc_ctxt *cfg);
  803. /*
  804. * wlan_cfg_get_int_timer_threshold_mon - Get int mitigation cfg for mon srngs
  805. * @wlan_cfg_soc_ctx
  806. *
  807. * Return: Timer threshold
  808. */
  809. int wlan_cfg_get_int_timer_threshold_mon(struct wlan_cfg_dp_soc_ctxt *cfg);
  810. /*
  811. * wlan_cfg_get_checksum_offload - Get checksum offload enable or disable status
  812. * @wlan_cfg_soc_ctx
  813. *
  814. * Return: Checksum offload enable or disable
  815. */
  816. int wlan_cfg_get_checksum_offload(struct wlan_cfg_dp_soc_ctxt *cfg);
  817. /*
  818. * wlan_cfg_tx_ring_size - Get Tx DMA ring size (TCL Data Ring)
  819. * @wlan_cfg_soc_ctx
  820. *
  821. * Return: Tx Ring Size
  822. */
  823. int wlan_cfg_tx_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg);
  824. /*
  825. * wlan_cfg_tx_comp_ring_size - Get Tx completion ring size (WBM Ring)
  826. * @wlan_cfg_soc_ctx
  827. *
  828. * Return: Tx Completion ring size
  829. */
  830. int wlan_cfg_tx_comp_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg);
  831. /*
  832. * wlan_cfg_get_dp_soc_wbm_release_ring_size - Get wbm_release_ring size
  833. * @wlan_cfg_soc_ctx
  834. *
  835. * Return: wbm_release_ring size
  836. */
  837. int
  838. wlan_cfg_get_dp_soc_wbm_release_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg);
  839. /*
  840. * wlan_cfg_get_dp_soc_tcl_cmd_ring_size - Get tcl_cmd_ring size
  841. * @wlan_cfg_soc_ctx
  842. *
  843. * Return: tcl_cmd_ring size
  844. */
  845. int
  846. wlan_cfg_get_dp_soc_tcl_cmd_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg);
  847. /*
  848. * wlan_cfg_get_dp_soc_tcl_status_ring_size - Get tcl_status_ring size
  849. * @wlan_cfg_soc_ctx
  850. *
  851. * Return: tcl_status_ring size
  852. */
  853. int
  854. wlan_cfg_get_dp_soc_tcl_status_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg);
  855. /*
  856. * wlan_cfg_get_dp_soc_reo_reinject_ring_size - Get reo_reinject_ring size
  857. * @wlan_cfg_soc_ctx
  858. *
  859. * Return: reo_reinject_ring size
  860. */
  861. int
  862. wlan_cfg_get_dp_soc_reo_reinject_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg);
  863. /*
  864. * wlan_cfg_get_dp_soc_rx_release_ring_size - Get rx_release_ring size
  865. * @wlan_cfg_soc_ctx
  866. *
  867. * Return: rx_release_ring size
  868. */
  869. int
  870. wlan_cfg_get_dp_soc_rx_release_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg);
  871. /*
  872. * wlan_cfg_get_dp_soc_reo_exception_ring_size - Get reo_exception_ring size
  873. * @wlan_cfg_soc_ctx
  874. *
  875. * Return: reo_exception_ring size
  876. */
  877. int
  878. wlan_cfg_get_dp_soc_reo_exception_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg);
  879. /*
  880. * wlan_cfg_get_dp_soc_reo_cmd_ring_size - Get reo_cmd_ring size
  881. * @wlan_cfg_soc_ctx
  882. *
  883. * Return: reo_cmd_ring size
  884. */
  885. int
  886. wlan_cfg_get_dp_soc_reo_cmd_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg);
  887. /*
  888. * wlan_cfg_get_dp_soc_reo_status_ring_size - Get reo_status_ring size
  889. * @wlan_cfg_soc_ctx
  890. *
  891. * Return: reo_status_ring size
  892. */
  893. int
  894. wlan_cfg_get_dp_soc_reo_status_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg);
  895. /*
  896. * wlan_cfg_get_dp_soc_rxdma_refill_ring_size - Get rxdma refill ring size
  897. * @wlan_cfg_soc_ctx
  898. *
  899. * Return: rxdma refill ring size
  900. */
  901. int
  902. wlan_cfg_get_dp_soc_rxdma_refill_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg);
  903. /*
  904. * wlan_cfg_get_dp_soc_rxdma_err_dst_ring_size - Get rxdma dst ring size
  905. * @wlan_cfg_soc_ctx
  906. *
  907. * Return: rxdma error dst ring size
  908. */
  909. int
  910. wlan_cfg_get_dp_soc_rxdma_err_dst_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg);
  911. /*
  912. * wlan_cfg_get_dp_caps - Get dp capablities
  913. * @wlan_cfg_soc_ctx
  914. * @dp_caps: enum for dp capablities
  915. *
  916. * Return: bool if a dp capabilities is enabled
  917. */
  918. bool
  919. wlan_cfg_get_dp_caps(struct wlan_cfg_dp_soc_ctxt *cfg,
  920. enum cdp_capabilities dp_caps);
  921. #ifdef QCA_LL_TX_FLOW_CONTROL_V2
  922. int wlan_cfg_get_tx_flow_stop_queue_th(struct wlan_cfg_dp_soc_ctxt *cfg);
  923. int wlan_cfg_get_tx_flow_start_queue_offset(struct wlan_cfg_dp_soc_ctxt *cfg);
  924. #endif /* QCA_LL_TX_FLOW_CONTROL_V2 */
  925. int wlan_cfg_get_rx_defrag_min_timeout(struct wlan_cfg_dp_soc_ctxt *cfg);
  926. int wlan_cfg_get_defrag_timeout_check(struct wlan_cfg_dp_soc_ctxt *cfg);
  927. #endif