xref: /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8822cs/hal/halmac/halmac_hw_cfg.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
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 
16 #ifndef __HALMAC__HW_CFG_H__
17 #define __HALMAC__HW_CFG_H__
18 
19 #include <drv_conf.h>	/* CONFIG_[IC], CONFIG_[INTF]_HCI */
20 
21 #ifdef CONFIG_RTL8723A
22 #define HALMAC_8723A_SUPPORT	1
23 #else
24 #define HALMAC_8723A_SUPPORT	0
25 #endif
26 
27 #ifdef CONFIG_RTL8188E
28 #define HALMAC_8188E_SUPPORT	1
29 #else
30 #define HALMAC_8188E_SUPPORT	0
31 #endif
32 
33 #ifdef CONFIG_RTL8821A
34 #define HALMAC_8821A_SUPPORT	1
35 #else
36 #define HALMAC_8821A_SUPPORT	0
37 #endif
38 
39 #ifdef CONFIG_RTL8723B
40 #define HALMAC_8723B_SUPPORT	1
41 #else
42 #define HALMAC_8723B_SUPPORT	0
43 #endif
44 
45 #ifdef CONFIG_RTL8812A
46 #define HALMAC_8812A_SUPPORT	1
47 #else
48 #define HALMAC_8812A_SUPPORT	0
49 #endif
50 
51 #ifdef CONFIG_RTL8192E
52 #define HALMAC_8192E_SUPPORT	1
53 #else
54 #define HALMAC_8192E_SUPPORT	0
55 #endif
56 
57 #ifdef CONFIG_RTL8881A
58 #define HALMAC_8881A_SUPPORT	1
59 #else
60 #define HALMAC_8881A_SUPPORT	0
61 #endif
62 
63 #ifdef CONFIG_RTL8821B
64 #define HALMAC_8821B_SUPPORT	1
65 #else
66 #define HALMAC_8821B_SUPPORT	0
67 #endif
68 
69 #ifdef CONFIG_RTL8814A
70 #define HALMAC_8814A_SUPPORT	1
71 #else
72 #define HALMAC_8814A_SUPPORT	0
73 #endif
74 
75 #ifdef CONFIG_RTL8881A
76 #define HALMAC_8881A_SUPPORT	1
77 #else
78 #define HALMAC_8881A_SUPPORT	0
79 #endif
80 
81 #ifdef CONFIG_RTL8703B
82 #define HALMAC_8703B_SUPPORT	1
83 #else
84 #define HALMAC_8703B_SUPPORT	0
85 #endif
86 
87 #ifdef CONFIG_RTL8723D
88 #define HALMAC_8723D_SUPPORT	1
89 #else
90 #define HALMAC_8723D_SUPPORT	0
91 #endif
92 
93 #ifdef CONFIG_RTL8188F
94 #define HALMAC_8188F_SUPPORT	1
95 #else
96 #define HALMAC_8188F_SUPPORT	0
97 #endif
98 
99 #ifdef CONFIG_RTL8821BMP
100 #define HALMAC_8821BMP_SUPPORT	1
101 #else
102 #define HALMAC_8821BMP_SUPPORT	0
103 #endif
104 
105 #ifdef CONFIG_RTL8814AMP
106 #define HALMAC_8814AMP_SUPPORT	1
107 #else
108 #define HALMAC_8814AMP_SUPPORT	0
109 #endif
110 
111 #ifdef CONFIG_RTL8195A
112 #define HALMAC_8195A_SUPPORT	1
113 #else
114 #define HALMAC_8195A_SUPPORT	0
115 #endif
116 
117 #ifdef CONFIG_RTL8821B
118 #define HALMAC_8821B_SUPPORT	1
119 #else
120 #define HALMAC_8821B_SUPPORT	0
121 #endif
122 
123 #ifdef CONFIG_RTL8196F
124 #define HALMAC_8196F_SUPPORT	1
125 #else
126 #define HALMAC_8196F_SUPPORT	0
127 #endif
128 
129 #ifdef CONFIG_RTL8197F
130 #define HALMAC_8197F_SUPPORT	1
131 #else
132 #define HALMAC_8197F_SUPPORT	0
133 #endif
134 
135 #ifdef CONFIG_RTL8198F
136 #define HALMAC_8198F_SUPPORT	1
137 #else
138 #define HALMAC_8198F_SUPPORT	0
139 #endif
140 
141 #ifdef CONFIG_RTL8192F
142 #define HALMAC_8192F_SUPPORT	1
143 #else
144 #define HALMAC_8192F_SUPPORT	0
145 #endif
146 
147 #ifdef CONFIG_RTL8197G
148 #define HALMAC_8197G_SUPPORT	1
149 #else
150 #define HALMAC_8197G_SUPPORT	0
151 #endif
152 
153 
154 
155 /* Halmac support IC version */
156 
157 #ifdef CONFIG_RTL8814B
158 #define HALMAC_8814B_SUPPORT	1
159 #else
160 #define HALMAC_8814B_SUPPORT	0
161 #endif
162 
163 #ifdef CONFIG_RTL8821C
164 #define HALMAC_8821C_SUPPORT	1
165 #else
166 #define HALMAC_8821C_SUPPORT	0
167 #endif
168 
169 #ifdef CONFIG_RTL8822B
170 #define HALMAC_8822B_SUPPORT	1
171 #else
172 #define HALMAC_8822B_SUPPORT	0
173 #endif
174 
175 #ifdef CONFIG_RTL8822C
176 #define HALMAC_8822C_SUPPORT	1
177 #else
178 #define HALMAC_8822C_SUPPORT	0
179 #endif
180 
181 #ifdef CONFIG_RTL8812F
182 #define HALMAC_8812F_SUPPORT	1
183 #else
184 #define HALMAC_8812F_SUPPORT	0
185 #endif
186 
187 
188 /* Interface support */
189 #ifdef CONFIG_SDIO_HCI
190 #define HALMAC_SDIO_SUPPORT	1
191 #else
192 #define HALMAC_SDIO_SUPPORT	0
193 #endif
194 #ifdef CONFIG_USB_HCI
195 #define HALMAC_USB_SUPPORT	1
196 #else
197 #define HALMAC_USB_SUPPORT	0
198 #endif
199 #ifdef CONFIG_PCI_HCI
200 #define HALMAC_PCIE_SUPPORT	1
201 #else
202 #define HALMAC_PCIE_SUPPORT	0
203 #endif
204 
205 #endif /* __HALMAC__HW_CFG_H__ */
206 
207 
208