hc
2024-05-10 23fa18eaa71266feff7ba8d83022d9e1cc83c65a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/* SPDX-License-Identifier: GPL-2.0 */
/******************************************************************************
 *
 * 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