wlan_init_cfg.h 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. /*
  2. * Copyright (c) 2021 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_INIT_CFG_H
  19. #define __WLAN_INIT_CFG_H
  20. /*
  21. * Temporary place holders. These should come either from target config
  22. * or platform configuration
  23. */
  24. #if defined(WLAN_MAX_PDEVS) && (WLAN_MAX_PDEVS == 1)
  25. #define WLAN_CFG_DST_RING_CACHED_DESC 0
  26. #define MAX_PDEV_CNT 1
  27. #ifdef CONFIG_BERYLLIUM
  28. /* (8 REOs + 5 WBMs + 2 Near Full + 1 Error handling) */
  29. #define WLAN_CFG_INT_NUM_CONTEXTS 18
  30. #define WLAN_CFG_INT_NUM_CONTEXTS_MAX 18
  31. #else
  32. #define WLAN_CFG_INT_NUM_CONTEXTS 7
  33. #define WLAN_CFG_INT_NUM_CONTEXTS_MAX 14
  34. #endif
  35. #define WLAN_CFG_RXDMA1_ENABLE 1
  36. /*
  37. * This mask defines how many transmit frames account for 1 NAPI work unit
  38. * 0 means each tx completion is 1 unit
  39. */
  40. #define DP_TX_NAPI_BUDGET_DIV_MASK 0
  41. /* PPDU Stats Configuration - Configure bitmask for enabling tx ppdu tlv's */
  42. #define DP_PPDU_TXLITE_STATS_BITMASK_CFG 0x3FFF
  43. #define NUM_RXDMA_RINGS_PER_PDEV 2
  44. /*Maximum Number of LMAC instances*/
  45. #define MAX_NUM_LMAC_HW 2
  46. #else
  47. #define WLAN_CFG_DST_RING_CACHED_DESC 1
  48. #define MAX_PDEV_CNT 3
  49. #define WLAN_CFG_INT_NUM_CONTEXTS 11
  50. #define WLAN_CFG_INT_NUM_CONTEXTS_MAX 11
  51. #define NUM_RXDMA_RINGS_PER_PDEV 1
  52. #define MAX_NUM_LMAC_HW 3
  53. #endif
  54. /* Tx configuration */
  55. #define MAX_LINK_DESC_BANKS 8
  56. #define MAX_TXDESC_POOLS 4
  57. /* Rx configuration */
  58. #define MAX_RXDESC_POOLS 4
  59. #define MAX_REO_DEST_RINGS 8
  60. #define MAX_TCL_DATA_RINGS 5
  61. #define WBM2SW_REL_ERR_RING_NUM 3
  62. #define MAX_RX_MAC_RINGS 2
  63. #endif /* __WLAN_INIT_CFG_H */