wlan_cfg.h 31 KB

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