mirror of
https://github.com/morrownr/8821cu-20210916.git
synced 2024-09-16 11:41:44 +00:00
67 lines
2.2 KiB
C
67 lines
2.2 KiB
C
/******************************************************************************
|
|
*
|
|
* Copyright(c) 2016 - 2019 Realtek Corporation. All rights reserved.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify it
|
|
* under the terms of version 2 of the GNU General Public License as
|
|
* published by the Free Software Foundation.
|
|
*
|
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
|
* more details.
|
|
*
|
|
******************************************************************************/
|
|
|
|
#ifndef _HALMAC_8821C_CFG_H_
|
|
#define _HALMAC_8821C_CFG_H_
|
|
|
|
#include "../../halmac_hw_cfg.h"
|
|
#include "../halmac_88xx_cfg.h"
|
|
|
|
#if HALMAC_8821C_SUPPORT
|
|
|
|
#define TX_FIFO_SIZE_8821C 65536
|
|
#define RX_FIFO_SIZE_8821C 16384
|
|
#define TRX_SHARE_SIZE_8821C 32768
|
|
|
|
#define RX_DESC_DUMMY_SIZE_8821C 72 /* 8 * 9 Bytes */
|
|
#define RX_FIFO_EXPANDING_MODE_PKT_SIZE_MAX_8821C 80 /* 8 Byte alignment*/
|
|
|
|
/* should be 8 Byte alignment*/
|
|
#if (HALMAC_RX_FIFO_EXPANDING_MODE_PKT_SIZE <= \
|
|
RX_FIFO_EXPANDING_MODE_PKT_SIZE_MAX_8821C)
|
|
#define RX_FIFO_EXPANDING_UNIT_8821C (RX_DESC_SIZE_88XX + \
|
|
RX_DESC_DUMMY_SIZE_8821C + HALMAC_RX_FIFO_EXPANDING_MODE_PKT_SIZE)
|
|
#else
|
|
#define RX_FIFO_EXPANDING_UNIT_8821C (RX_DESC_SIZE_88XX + \
|
|
RX_DESC_DUMMY_SIZE_8821C + RX_FIFO_EXPANDING_MODE_PKT_SIZE_MAX_8821C)
|
|
#endif
|
|
|
|
#define TX_FIFO_SIZE_LA_8821C (TX_FIFO_SIZE_8821C >> 1)
|
|
#define TX_FIFO_SIZE_RX_EXPAND_1BLK_8821C \
|
|
(TX_FIFO_SIZE_8821C - TRX_SHARE_SIZE_8821C)
|
|
#define RX_FIFO_SIZE_RX_EXPAND_1BLK_8821C \
|
|
((((RX_FIFO_EXPANDING_UNIT_8821C << 8) - 1) >> 10) << 10)
|
|
|
|
#define EFUSE_SIZE_8821C 512
|
|
#define EEPROM_SIZE_8821C 512
|
|
#define BT_EFUSE_SIZE_8821C 128
|
|
#define PRTCT_EFUSE_SIZE_8821C 96
|
|
|
|
#define SEC_CAM_NUM_8821C 64
|
|
|
|
#define OQT_ENTRY_AC_8821C 32
|
|
#define OQT_ENTRY_NOAC_8821C 32
|
|
#define MACID_MAX_8821C 128
|
|
|
|
#define WLAN_FW_IRAM_MAX_SIZE_8821C 65536
|
|
#define WLAN_FW_DRAM_MAX_SIZE_8821C 49152
|
|
#define WLAN_FW_ERAM_MAX_SIZE_8821C 49152
|
|
#define WLAN_FW_MAX_SIZE_8821C (WLAN_FW_IRAM_MAX_SIZE_8821C + \
|
|
WLAN_FW_DRAM_MAX_SIZE_8821C + WLAN_FW_ERAM_MAX_SIZE_8821C)
|
|
|
|
#endif /* HALMAC_8821C_SUPPORT */
|
|
|
|
#endif
|