wlan_cfg.h 30 KB

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