hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
/******************************************************************************
 *
 * Copyright(c) 2007 - 2020  Realtek Corporation.
 *
 * 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.
 *
 * The full GNU General Public License is included in this distribution in the
 * file called LICENSE.
 *
 * Contact Information:
 * wlanfae <wlanfae@realtek.com>
 * Realtek Corporation, No. 2, Innovation Road II, Hsinchu Science Park,
 * Hsinchu 300, Taiwan.
 *
 * Larry Finger <Larry.Finger@lwfinger.net>
 *
 *****************************************************************************/
 
#ifndef __HALBB_FEATURES_H__
#define __HALBB_FEATURES_H__
 
#include "../../hal_headers_le.h"
#include "halbb_cfg_ic.h"
#include "halbb_ic_hw_info.h"
 
/*[Control by Outer Driver]--------------------------------------------------*/
#ifndef DRV_BB_TIMER_SUPPORT_DISABLE
   #define HALBB_TIMER_SUPPORT
#endif
 
#ifndef DRV_BB_DBG_TRACE_DISABLE
   #define HALBB_DBG_TRACE_SUPPORT
#endif
 
#ifndef DRV_BB_PHYSTS_PARSING_DISABLE
   #define HALBB_PHYSTS_PARSING_SUPPORT
#endif
#ifndef DRV_BB_ENV_MNTR_DISABLE
   #define HALBB_ENV_MNTR_SUPPORT
   #define CLM_SUPPORT
   #define NHM_SUPPORT
   #define IFS_CLM_SUPPORT
   #define FAHM_SUPPORT
   #define EDCCA_CLM_SUPPORT
#endif
#ifndef DRV_BB_STATISTICS_DISABLE
   #define HALBB_STATISTICS_SUPPORT
#endif
#ifndef DRV_BB_RA_DISABLE
   #define HALBB_RA_SUPPORT
#endif
#ifndef DRV_BB_ADPTVTY_DISABLE
   #define HALBB_EDCCA_SUPPORT
#endif
#ifndef DRV_BB_DFS_DISABLE
   #define HALBB_DFS_SUPPORT
#endif
#ifndef DRV_BB_CFO_TRK_DISABLE
   #define HALBB_CFO_TRK_SUPPORT
   #define HALBB_CFO_DAMPING_CHK
   //#define BB_DYN_CFO_TRK_LOP
#endif
#ifndef DRV_BB_DIG_DISABLE
   #define HALBB_DIG_SUPPORT
   #ifndef DRV_BB_TDMADIG_DISABLE
   #if (HLABB_CODE_BASE_NUM >= 34) || (HLABB_CODE_BASE_NUM == 29) || (HLABB_CODE_BASE_NUM == 27) || (HLABB_CODE_BASE_NUM == 25)
   #define HALBB_DIG_TDMA_SUPPORT
   #endif
   #endif
   #ifndef DRV_BB_DIG_MCC_DISABLE
   #define HALBB_DIG_MCC_SUPPORT
   #define HALBB_DIG_MCC_SUPPORT_IC (BB_RTL8852A | BB_RTL8852B | BB_RTL8851B)
   #endif
   #define HALBB_DIG_DAMPING_CHK
#endif
#ifndef DRV_BB_LA_MODE_DISABLE
   #define HALBB_LA_MODE_SUPPORT
   #ifdef BB_1115_SUPPORT
   #define HALBB_LA_320M_PATCH /*for RTL1115 320M 3-phase case only*/
   #endif
 
   #define BB_IC_LA_MODE_GEN2    (BB_IC_BE_1 | BB_IC_BE_2)
   #if (defined(HALBB_COMPILE_BE1_SERIES)||defined(HALBB_COMPILE_BE2_SERIES))
       #define HALBB_COMPILE_LA_MODE_GEN2
   #endif
#endif
#ifndef DRV_BB_PSD_DISABLE
   #define HALBB_PSD_SUPPORT
#endif
#ifndef DRV_BB_PWR_CTRL_DISABLE
   #define HALBB_PWR_CTRL_SUPPORT
#endif
#ifndef DRV_BB_WRAP_DISABLE
   #ifdef HALBB_COMPILE_BE_SERIES
   #define HALBB_BB_WRAP_SUPPORT
   #endif
#endif
#ifndef DRV_BB_SR_DISABLE
   #if (HLABB_CODE_BASE_NUM == 29)
   #define HALBB_SR_SUPPORT
   #endif
#endif
#ifndef DRV_BB_RUA_DISABLE
   #define HALBB_RUA_SUPPORT
#endif
#ifndef DRV_BB_PMAC_TX_DISABLE
   #define HALBB_PMAC_TX_SUPPORT
#endif
#ifndef DRV_BB_CH_INFO_DISABLE
   #define HALBB_CH_INFO_SUPPORT
   #ifndef DRV_BB_DYN_CSI_RSP_DISABLE
   #define HALBB_DYN_CSI_RSP_SUPPORT
   #endif
#endif
#ifndef DRV_BB_AUTO_DBG_DISABLE
   #define HALBB_AUTO_DBG_SUPPORT
#endif
#ifndef DRV_BB_ANT_DIV_DISABLE
   #define HALBB_ANT_DIV_SUPPORT
#endif
#ifndef DRV_BB_PATH_DIV_DISABLE
   #define HALBB_PATH_DIV_SUPPORT
#endif
#ifndef DRV_BB_DYN_L2H_DISABLE
   #define HALBB_DYN_L2H_SUPPORT
#endif
#ifndef DRV_BB_PMAC_TX_SETTING_DISABLE
   #define HALBB_PMAC_TX_SETTING_SUPPORT
#endif
 
/*[FW OFFLOAD]*/
#if ((defined(CONFIG_PHL_IO_OFLD) ||defined(CONFIG_FW_DBCC_OFLD_SUPPORT)) && defined(HALBB_COMPILE_IC_FWOFLD))
#define HALBB_FW_OFLD_SUPPORT
   #if (defined(CONFIG_PHL_IO_OFLD))
   #define HALBB_FW_NORMAL_OFLD_SUPPORT
   #endif
   #if (defined(CONFIG_FW_DBCC_OFLD_SUPPORT))
   #define HALBB_FW_DBCC_OFLD_SUPPORT
   #endif
#endif
 
/*[DBCC]*/
#if (defined(CONFIG_DBCC_SUPPORT) && defined(HALBB_COMPILE_IC_DBCC))
   #define HALBB_DBCC_SUPPORT
   #define HALBB_DBCC_DVLP_FLAG
#endif
 
#define HALBB_TDMA_CR_SUPPORT
 
/*[POP resolved hang]*/
#ifdef DRV_RESOLVED_POP_BY_BB
   #define HALBB_RESOLVED_POP_BY_BB
#endif
 
#ifndef DRV_BB_ULOFDMA_CTRL_DISABLE
   #define HALBB_UL_TB_CTRL_SUPPORT
#endif
 
/*[Shared crystal]*/
#ifdef DRV_BB_CFO_TRK_DISABLE_BY_SHARE_XTAL
   #define HALBB_SHARE_XSTAL_SUPPORT
#endif
 
#define HALBB_DYN_1R_CCA_SUPPORT
 
#if 1//(defined(DRV_BB_CNSL_CMN_INFO) || !defined(HALBB_DBG_TRACE_SUPPORT))
   #define HALBB_CNSL_CMN_INFO_SUPPORT
#endif
 
#ifndef DRV_BB_SNIF_SUPPORT
   #define HALBB_SNIF_SUPPORT
#endif
 
/*[DTR]*/
#ifndef DRV_BB_DYN_DTR_DISABLE
   #define HALBB_DYN_DTR_SUPPORT
   //#define BB_DYN_DTR
#endif
 
#ifdef DRV_BB_DCRA_EN
   #define HALBB_DCRA_EN
#endif
 
#ifdef DRV_BB_INIT_FW_NHM_EN
   #define HALBB_INIT_FW_NHM_EN
#endif
 
#ifdef CONFIG_24G_256QAM
   #define HALBB_CONFIG_HT2VHT_SUPPORT
#endif
 
#endif