1 /******************************************************************************
3 * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
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.
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
14 * You should have received a copy of the GNU General Public License along with
15 * this program; if not, write to the Free Software Foundation, Inc.,
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
19 ******************************************************************************/
20 #ifndef __HAL_IC_CFG_H__
21 #define __HAL_IC_CFG_H__
23 #define RTL8188E_SUPPORT 0
24 #define RTL8812A_SUPPORT 0
25 #define RTL8821A_SUPPORT 0
26 #define RTL8723B_SUPPORT 0
27 #define RTL8723D_SUPPORT 0
28 #define RTL8192E_SUPPORT 0
29 #define RTL8814A_SUPPORT 0
30 #define RTL8195A_SUPPORT 0
31 #define RTL8197F_SUPPORT 0
32 #define RTL8703B_SUPPORT 0
33 #define RTL8188F_SUPPORT 0
34 #define RTL8822B_SUPPORT 0
35 #define RTL8821B_SUPPORT 0
36 #define RTL8821C_SUPPORT 0
37 #define RTL8710B_SUPPORT 0
39 /*#if (RTL8188E_SUPPORT==1)*/
40 #define RATE_ADAPTIVE_SUPPORT 0
41 #define POWER_TRAINING_ACTIVE 0
43 #ifdef CONFIG_MULTIDRV
46 #ifdef CONFIG_RTL8188E
47 #undef RTL8188E_SUPPORT
48 #undef RATE_ADAPTIVE_SUPPORT
49 #undef POWER_TRAINING_ACTIVE
51 #define RTL8188E_SUPPORT 1
52 #define RATE_ADAPTIVE_SUPPORT 1
53 #define POWER_TRAINING_ACTIVE 1
54 #define CONFIG_GET_RAID_BY_DRV
57 #ifdef CONFIG_RTL8812A
58 #undef RTL8812A_SUPPORT
59 #define RTL8812A_SUPPORT 1
60 #ifndef CONFIG_FW_C2H_PKT
61 #define CONFIG_FW_C2H_PKT
65 #ifdef CONFIG_RTL8821A
66 #undef RTL8821A_SUPPORT
67 #define RTL8821A_SUPPORT 1
68 #ifndef CONFIG_FW_C2H_PKT
69 #define CONFIG_FW_C2H_PKT
73 #ifdef CONFIG_RTL8192E
74 #undef RTL8192E_SUPPORT
75 #define RTL8192E_SUPPORT 1
76 #ifndef CONFIG_FW_C2H_PKT
77 #define CONFIG_FW_C2H_PKT
81 #ifdef CONFIG_RTL8723B
82 #undef RTL8723B_SUPPORT
83 #define RTL8723B_SUPPORT 1
84 #ifndef CONFIG_FW_C2H_PKT
85 #define CONFIG_FW_C2H_PKT
89 #ifdef CONFIG_RTL8723D
90 #undef RTL8723D_SUPPORT
91 #define RTL8723D_SUPPORT 1
92 #ifndef CONFIG_FW_C2H_PKT
93 #define CONFIG_FW_C2H_PKT
95 #ifndef CONFIG_RTW_MAC_HIDDEN_RPT
96 #define CONFIG_RTW_MAC_HIDDEN_RPT
98 #ifndef CONFIG_RTW_CUSTOMER_STR
99 #define CONFIG_RTW_CUSTOMER_STR
103 #ifdef CONFIG_RTL8814A
104 #undef RTL8814A_SUPPORT
105 #define RTL8814A_SUPPORT 1
106 #ifndef CONFIG_FW_C2H_PKT
107 #define CONFIG_FW_C2H_PKT
111 #ifdef CONFIG_RTL8703B
112 #undef RTL8703B_SUPPORT
113 #define RTL8703B_SUPPORT 1
114 #ifndef CONFIG_FW_C2H_PKT
115 #define CONFIG_FW_C2H_PKT
117 #ifndef CONFIG_RTW_MAC_HIDDEN_RPT
118 #define CONFIG_RTW_MAC_HIDDEN_RPT
122 #ifdef CONFIG_RTL8188F
123 #undef RTL8188F_SUPPORT
124 #define RTL8188F_SUPPORT 1
125 #ifndef CONFIG_FW_C2H_PKT
126 #define CONFIG_FW_C2H_PKT
128 #ifndef CONFIG_RTW_MAC_HIDDEN_RPT
129 #define CONFIG_RTW_MAC_HIDDEN_RPT
131 #ifndef CONFIG_RTW_CUSTOMER_STR
132 #define CONFIG_RTW_CUSTOMER_STR
136 #ifdef CONFIG_RTL8822B
137 #undef RTL8822B_SUPPORT
138 #define RTL8822B_SUPPORT 1
139 #ifndef CONFIG_FW_C2H_PKT
140 #define CONFIG_FW_C2H_PKT
141 #endif /* CONFIG_FW_C2H_PKT */
144 #define CONFIG_GTK_OL
145 #define CONFIG_ARP_KEEP_ALIVE
146 #ifndef CONFIG_DEFAULT_PATTERNS_EN
147 #warning "Force to enable CONFIG_DEFAULT_PATTERNS_EN under WOW"
148 #define CONFIG_DEFAULT_PATTERNS_EN
149 #endif /* !CONFIG_DEFAULT_PATTERNS_EN */
151 #ifdef CONFIG_GPIO_WAKEUP
152 #ifndef WAKEUP_GPIO_IDX
153 #define WAKEUP_GPIO_IDX 6 /* WIFI Chip Side */
154 #endif /* !WAKEUP_GPIO_IDX */
155 #endif /* CONFIG_GPIO_WAKEUP */
157 #endif /* CONFIG_WOWLAN */
158 #ifdef CONFIG_CONCURRENT_MODE
159 #define CONFIG_AP_PORT_SWAP
160 #endif /* CONFIG_CONCURRENT_MODE */
163 * Beamforming related definition
165 #if defined(CONFIG_CONCURRENT_MODE) && defined(CONFIG_BEAMFORMING)
166 #undef CONFIG_BEAMFORMING
167 #warning "Not support Beamforming in concurrent mode yet!!"
168 #endif /* CONFIG_CONCURRENT_MODE && CONFIG_BEAMFORMING */
169 /* Beamforming mechanism is on driver not phydm, always disable it */
170 #define BEAMFORMING_SUPPORT 0
171 /* Only support new beamforming mechanism */
172 #ifdef CONFIG_BEAMFORMING
173 #define RTW_BEAMFORMING_VERSION_2
174 #endif /* CONFIG_BEAMFORMING */
176 #ifndef CONFIG_RTW_MAC_HIDDEN_RPT
177 #define CONFIG_RTW_MAC_HIDDEN_RPT
178 #endif /* CONFIG_RTW_MAC_HIDDEN_RPT */
180 #endif /* CONFIG_RTL8822B */
182 #ifdef CONFIG_RTL8821C
183 #undef RTL8821C_SUPPORT
184 #define RTL8821C_SUPPORT 1
185 #ifndef CONFIG_FW_C2H_PKT
186 #define CONFIG_FW_C2H_PKT
189 #ifdef CONFIG_RTW_MAC_HIDDEN_RPT
190 #undef CONFIG_RTW_MAC_HIDDEN_RPT
193 #ifndef CONFIG_RTW_MAC_HIDDEN_RPT
194 #define CONFIG_RTW_MAC_HIDDEN_RPT
197 #define LOAD_FW_HEADER_FROM_DRIVER
198 #define CONFIG_PHY_CAPABILITY_QUERY
199 #ifdef CONFIG_CONCURRENT_MODE
200 #define CONFIG_AP_PORT_SWAP
201 /*#define CONFIG_FW_MULTI_PORT_SUPPORT*/
203 #define CONFIG_SUPPORT_FIFO_DUMP
206 #endif /*__HAL_IC_CFG_H__*/