wlan_cfg.h 30 KB

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