halmac_8821c_cfg.h 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. /******************************************************************************
  2. *
  3. * Copyright(c) 2016 - 2018 Realtek Corporation. All rights reserved.
  4. *
  5. * This program is free software; you can redistribute it and/or modify it
  6. * under the terms of version 2 of the GNU General Public License as
  7. * published by the Free Software Foundation.
  8. *
  9. * This program is distributed in the hope that it will be useful, but WITHOUT
  10. * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11. * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
  12. * more details.
  13. *
  14. ******************************************************************************/
  15. #ifndef _HALMAC_8821C_CFG_H_
  16. #define _HALMAC_8821C_CFG_H_
  17. #include "../../halmac_hw_cfg.h"
  18. #include "../halmac_88xx_cfg.h"
  19. #if HALMAC_8821C_SUPPORT
  20. #define TX_FIFO_SIZE_8821C 65536
  21. #define RX_FIFO_SIZE_8821C 16384
  22. #define TRX_SHARE_SIZE_8821C 32768
  23. #define RX_DESC_DUMMY_SIZE_8821C 72 /* 8 * 9 Bytes */
  24. #define RX_FIFO_EXPANDING_MODE_PKT_SIZE_MAX_8821C 80 /* 8 Byte alignment*/
  25. /* should be 8 Byte alignment*/
  26. #if (HALMAC_RX_FIFO_EXPANDING_MODE_PKT_SIZE <= \
  27. RX_FIFO_EXPANDING_MODE_PKT_SIZE_MAX_8821C)
  28. #define RX_FIFO_EXPANDING_UNIT_8821C (RX_DESC_SIZE_88XX + \
  29. RX_DESC_DUMMY_SIZE_8821C + HALMAC_RX_FIFO_EXPANDING_MODE_PKT_SIZE)
  30. #else
  31. #define RX_FIFO_EXPANDING_UNIT_8821C (RX_DESC_SIZE_88XX + \
  32. RX_DESC_DUMMY_SIZE_8821C + RX_FIFO_EXPANDING_MODE_PKT_SIZE_MAX_8821C)
  33. #endif
  34. #define TX_FIFO_SIZE_LA_8821C (TX_FIFO_SIZE_8821C >> 1)
  35. #define TX_FIFO_SIZE_RX_EXPAND_1BLK_8821C \
  36. (TX_FIFO_SIZE_8821C - TRX_SHARE_SIZE_8821C)
  37. #define RX_FIFO_SIZE_RX_EXPAND_1BLK_8821C \
  38. ((((RX_FIFO_EXPANDING_UNIT_8821C << 8) - 1) >> 10) << 10)
  39. #define EFUSE_SIZE_8821C 512
  40. #define EEPROM_SIZE_8821C 512
  41. #define BT_EFUSE_SIZE_8821C 128
  42. #define SEC_CAM_NUM_8821C 64
  43. #define OQT_ENTRY_AC_8821C 32
  44. #define OQT_ENTRY_NOAC_8821C 32
  45. #define MACID_MAX_8821C 128
  46. #define WLAN_FW_IRAM_MAX_SIZE_8821C 65536
  47. #define WLAN_FW_DRAM_MAX_SIZE_8821C 49152
  48. #define WLAN_FW_ERAM_MAX_SIZE_8821C 49152
  49. #define WLAN_FW_MAX_SIZE_8821C (WLAN_FW_IRAM_MAX_SIZE_8821C + \
  50. WLAN_FW_DRAM_MAX_SIZE_8821C + WLAN_FW_ERAM_MAX_SIZE_8821C)
  51. #endif /* HALMAC_8821C_SUPPORT */
  52. #endif