1 /****************************************************************************** 2 * 3 * Copyright(c) 2007 - 2017 Realtek Corporation. 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 * The full GNU General Public License is included in this distribution in the 15 * file called LICENSE. 16 * 17 * Contact Information: 18 * wlanfae <wlanfae@realtek.com> 19 * Realtek Corporation, No. 2, Innovation Road II, Hsinchu Science Park, 20 * Hsinchu 300, Taiwan. 21 * 22 * Larry Finger <Larry.Finger@lwfinger.net> 23 * 24 *****************************************************************************/ 25 26 #ifndef __ODM_PRECOMP_H__ 27 #define __ODM_PRECOMP_H__ 28 29 #include "phydm_types.h" 30 #include "halrf/halrf_features.h" 31 32 #if (DM_ODM_SUPPORT_TYPE == ODM_WIN) 33 #include "Precomp.h" /* @We need to include mp_precomp.h due to batch file setting. */ 34 #else 35 #define TEST_FALG___ 1 36 #endif 37 38 /* @2 Config Flags and Structs - defined by each ODM type */ 39 40 #if (DM_ODM_SUPPORT_TYPE == ODM_AP) 41 #include "../8192cd_cfg.h" 42 #include "../odm_inc.h" 43 44 #include "../8192cd.h" 45 #include "../8192cd_util.h" 46 #include "../8192cd_hw.h" 47 #ifdef _BIG_ENDIAN_ 48 #define ODM_ENDIAN_TYPE ODM_ENDIAN_BIG 49 #else 50 #define ODM_ENDIAN_TYPE ODM_ENDIAN_LITTLE 51 #endif 52 53 #include "../8192cd_headers.h" 54 #include "../8192cd_debug.h" 55 56 #if defined(CONFIG_RTL_TRIBAND_SUPPORT) && defined(CONFIG_USB_HCI) 57 #define INIT_TIMER_EVENT_ENTRY(_entry, _func, _data) \ 58 do { \ 59 _rtw_init_listhead(&(_entry)->list); \ 60 (_entry)->data = (_data); \ 61 (_entry)->function = (_func); \ 62 } while (0) 63 #endif 64 65 #elif (DM_ODM_SUPPORT_TYPE == ODM_CE) 66 #ifdef DM_ODM_CE_MAC80211 67 #include "../wifi.h" 68 #include "rtl_phydm.h" 69 #elif defined(DM_ODM_CE_MAC80211_V2) 70 #include "../main.h" 71 #include "../hw.h" 72 #include "../fw.h" 73 #endif 74 #define __PACK 75 #define __WLAN_ATTRIB_PACK__ 76 #elif (DM_ODM_SUPPORT_TYPE == ODM_WIN) 77 #include "mp_precomp.h" 78 #define ODM_ENDIAN_TYPE ODM_ENDIAN_LITTLE 79 #define __PACK 80 #define __WLAN_ATTRIB_PACK__ 81 #elif (DM_ODM_SUPPORT_TYPE == ODM_IOT) 82 #include <drv_types.h> 83 #include <wifi.h> 84 #define ODM_ENDIAN_TYPE ODM_ENDIAN_LITTLE 85 #define __PACK 86 #endif 87 88 /* @2 OutSrc Header Files */ 89 90 #include "phydm.h" 91 #include "phydm_hwconfig.h" 92 #include "phydm_phystatus.h" 93 #include "phydm_debug.h" 94 #include "phydm_regdefine11ac.h" 95 #include "phydm_regdefine11n.h" 96 #include "phydm_interface.h" 97 #include "phydm_reg.h" 98 #include "halrf/halrf_debug.h" 99 100 #ifndef RTL8188E_SUPPORT 101 #define RTL8188E_SUPPORT 0 102 #endif 103 #ifndef RTL8812A_SUPPORT 104 #define RTL8812A_SUPPORT 0 105 #endif 106 #ifndef RTL8821A_SUPPORT 107 #define RTL8821A_SUPPORT 0 108 #endif 109 #ifndef RTL8192E_SUPPORT 110 #define RTL8192E_SUPPORT 0 111 #endif 112 #ifndef RTL8723B_SUPPORT 113 #define RTL8723B_SUPPORT 0 114 #endif 115 #ifndef RTL8814A_SUPPORT 116 #define RTL8814A_SUPPORT 0 117 #endif 118 #ifndef RTL8881A_SUPPORT 119 #define RTL8881A_SUPPORT 0 120 #endif 121 #ifndef RTL8822B_SUPPORT 122 #define RTL8822B_SUPPORT 0 123 #endif 124 #ifndef RTL8703B_SUPPORT 125 #define RTL8703B_SUPPORT 0 126 #endif 127 #ifndef RTL8195A_SUPPORT 128 #define RTL8195A_SUPPORT 0 129 #endif 130 #ifndef RTL8188F_SUPPORT 131 #define RTL8188F_SUPPORT 0 132 #endif 133 #ifndef RTL8723D_SUPPORT 134 #define RTL8723D_SUPPORT 0 135 #endif 136 #ifndef RTL8197F_SUPPORT 137 #define RTL8197F_SUPPORT 0 138 #endif 139 #ifndef RTL8821C_SUPPORT 140 #define RTL8821C_SUPPORT 0 141 #endif 142 #ifndef RTL8814B_SUPPORT 143 #define RTL8814B_SUPPORT 0 144 #endif 145 #ifndef RTL8198F_SUPPORT 146 #define RTL8198F_SUPPORT 0 147 #endif 148 #ifndef RTL8710B_SUPPORT 149 #define RTL8710B_SUPPORT 0 150 #endif 151 #ifndef RTL8192F_SUPPORT 152 #define RTL8192F_SUPPORT 0 153 #endif 154 #ifndef RTL8822C_SUPPORT 155 #define RTL8822C_SUPPORT 0 156 #endif 157 #ifndef RTL8195B_SUPPORT 158 #define RTL8195B_SUPPORT 0 159 #endif 160 #ifndef RTL8812F_SUPPORT 161 #define RTL8812F_SUPPORT 0 162 #endif 163 #ifndef RTL8197G_SUPPORT 164 #define RTL8197G_SUPPORT 0 165 #endif 166 #ifndef RTL8721D_SUPPORT 167 #define RTL8721D_SUPPORT 0 168 #endif 169 #ifndef RTL8710C_SUPPORT 170 #define RTL8710C_SUPPORT 0 171 #endif 172 173 #if (DM_ODM_SUPPORT_TYPE & ODM_CE) && \ 174 (!defined(DM_ODM_CE_MAC80211) && !defined(DM_ODM_CE_MAC80211_V2)) 175 176 void phy_set_tx_power_limit( 177 struct dm_struct *dm, 178 u8 *regulation, 179 u8 *band, 180 u8 *bandwidth, 181 u8 *rate_section, 182 u8 *rf_path, 183 u8 *channel, 184 u8 *power_limit); 185 186 void phy_set_tx_power_limit_ex(struct dm_struct *dm, u8 regulation, u8 band, 187 u8 bandwidth, u8 rate_section, u8 rf_path, 188 u8 channel, s8 power_limit); 189 190 enum hal_status 191 rtw_phydm_fw_iqk( 192 struct dm_struct *dm, 193 u8 clear, 194 u8 segment); 195 196 enum hal_status 197 rtw_phydm_fw_dpk( 198 struct dm_struct *dm); 199 200 enum hal_status 201 rtw_phydm_cfg_phy_para( 202 struct dm_struct *dm, 203 enum phydm_halmac_param config_type, 204 u32 offset, 205 u32 data, 206 u32 mask, 207 enum rf_path e_rf_path, 208 u32 delay_time); 209 210 #endif 211 212 #if RTL8188E_SUPPORT == 1 213 #define RTL8188E_T_SUPPORT 1 214 #ifdef CONFIG_SFW_SUPPORTED 215 #define RTL8188E_S_SUPPORT 1 216 #else 217 #define RTL8188E_S_SUPPORT 0 218 #endif 219 220 #include "rtl8188e/hal8188erateadaptive.h" /* @for RA,Power training */ 221 #include "rtl8188e/halhwimg8188e_mac.h" 222 #include "rtl8188e/halhwimg8188e_rf.h" 223 #include "rtl8188e/halhwimg8188e_bb.h" 224 #include "rtl8188e/phydm_regconfig8188e.h" 225 #include "rtl8188e/phydm_rtl8188e.h" 226 #include "rtl8188e/hal8188ereg.h" 227 #include "rtl8188e/version_rtl8188e.h" 228 #if (DM_ODM_SUPPORT_TYPE == ODM_CE) 229 #include "rtl8188e_hal.h" 230 #include "halrf/rtl8188e/halrf_8188e_ce.h" 231 #endif 232 #if (DM_ODM_SUPPORT_TYPE == ODM_WIN) 233 #include "halrf/rtl8188e/halrf_8188e_win.h" 234 #endif 235 #if (DM_ODM_SUPPORT_TYPE == ODM_AP) 236 #include "halrf/rtl8188e/halrf_8188e_ap.h" 237 #endif 238 #endif /* @88E END */ 239 240 #if (RTL8192E_SUPPORT == 1) 241 242 #if (DM_ODM_SUPPORT_TYPE == ODM_WIN) 243 #include "halrf/rtl8192e/halrf_8192e_win.h" /*@FOR_8192E_IQK*/ 244 #elif (DM_ODM_SUPPORT_TYPE == ODM_AP) 245 #include "halrf/rtl8192e/halrf_8192e_ap.h" /*@FOR_8192E_IQK*/ 246 #elif (DM_ODM_SUPPORT_TYPE == ODM_CE) 247 #include "halrf/rtl8192e/halrf_8192e_ce.h" /*@FOR_8192E_IQK*/ 248 #endif 249 250 #include "rtl8192e/phydm_rtl8192e.h" /* @FOR_8192E_IQK */ 251 #include "rtl8192e/version_rtl8192e.h" 252 #if (DM_ODM_SUPPORT_TYPE != ODM_AP) 253 #include "rtl8192e/halhwimg8192e_bb.h" 254 #include "rtl8192e/halhwimg8192e_mac.h" 255 #include "rtl8192e/halhwimg8192e_rf.h" 256 #include "rtl8192e/phydm_regconfig8192e.h" 257 #include "rtl8192e/hal8192ereg.h" 258 #endif 259 #if (DM_ODM_SUPPORT_TYPE == ODM_CE) 260 #include "rtl8192e_hal.h" 261 #endif 262 #endif /* @92E END */ 263 264 #if (RTL8812A_SUPPORT == 1) 265 266 #if (DM_ODM_SUPPORT_TYPE == ODM_WIN) 267 #include "halrf/rtl8812a/halrf_8812a_win.h" 268 #elif (DM_ODM_SUPPORT_TYPE == ODM_AP) 269 #include "halrf/rtl8812a/halrf_8812a_ap.h" 270 #elif (DM_ODM_SUPPORT_TYPE == ODM_CE) 271 #include "halrf/rtl8812a/halrf_8812a_ce.h" 272 #endif 273 274 #if (DM_ODM_SUPPORT_TYPE != ODM_AP) 275 #include "rtl8812a/halhwimg8812a_bb.h" 276 #include "rtl8812a/halhwimg8812a_mac.h" 277 #include "rtl8812a/halhwimg8812a_rf.h" 278 #include "rtl8812a/phydm_regconfig8812a.h" 279 #endif 280 #include "rtl8812a/phydm_rtl8812a.h" 281 282 #if (DM_ODM_SUPPORT_TYPE == ODM_CE) 283 #include "rtl8812a_hal.h" 284 #endif 285 #include "rtl8812a/version_rtl8812a.h" 286 287 #endif /* @8812 END */ 288 289 #if (RTL8814A_SUPPORT == 1) 290 291 #include "rtl8814a/halhwimg8814a_mac.h" 292 #include "rtl8814a/halhwimg8814a_bb.h" 293 #include "rtl8814a/version_rtl8814a.h" 294 #include "rtl8814a/phydm_rtl8814a.h" 295 #include "halrf/rtl8814a/halhwimg8814a_rf.h" 296 #include "halrf/rtl8814a/version_rtl8814a_rf.h" 297 #if (DM_ODM_SUPPORT_TYPE == ODM_WIN) 298 #include "halrf/rtl8814a/halrf_8814a_win.h" 299 #elif (DM_ODM_SUPPORT_TYPE == ODM_CE) 300 #include "halrf/rtl8814a/halrf_8814a_ce.h" 301 #elif (DM_ODM_SUPPORT_TYPE == ODM_AP) 302 #include "halrf/rtl8814a/halrf_8814a_ap.h" 303 #endif 304 #include "rtl8814a/phydm_regconfig8814a.h" 305 #if (DM_ODM_SUPPORT_TYPE == ODM_CE) 306 #include "rtl8814a_hal.h" 307 #include "halrf/rtl8814a/halrf_iqk_8814a.h" 308 #endif 309 #endif /* @8814 END */ 310 311 #if (RTL8881A_SUPPORT == 1)/* @FOR_8881_IQK */ 312 #if (DM_ODM_SUPPORT_TYPE == ODM_WIN) 313 #include "halrf/rtl8821a/halrf_iqk_8821a_win.h" 314 #elif (DM_ODM_SUPPORT_TYPE == ODM_CE) 315 #include "halrf/rtl8821a/halrf_iqk_8821a_ce.h" 316 #else 317 #include "halrf/rtl8821a/halrf_iqk_8821a_ap.h" 318 #endif 319 #endif 320 321 #if (RTL8723B_SUPPORT == 1) 322 #include "rtl8723b/halhwimg8723b_mac.h" 323 #include "rtl8723b/halhwimg8723b_rf.h" 324 #include "rtl8723b/halhwimg8723b_bb.h" 325 #include "rtl8723b/phydm_regconfig8723b.h" 326 #include "rtl8723b/phydm_rtl8723b.h" 327 #include "rtl8723b/hal8723breg.h" 328 #include "rtl8723b/version_rtl8723b.h" 329 #if (DM_ODM_SUPPORT_TYPE == ODM_WIN) 330 #include "halrf/rtl8723b/halrf_8723b_win.h" 331 #elif (DM_ODM_SUPPORT_TYPE == ODM_CE) 332 #include "halrf/rtl8723b/halrf_8723b_ce.h" 333 #include "rtl8723b/halhwimg8723b_mp.h" 334 #include "rtl8723b_hal.h" 335 #else 336 #include "halrf/rtl8723b/halrf_8723b_ap.h" 337 #endif 338 #endif 339 340 #if (RTL8821A_SUPPORT == 1) 341 #include "rtl8821a/halhwimg8821a_mac.h" 342 #include "rtl8821a/halhwimg8821a_rf.h" 343 #include "rtl8821a/halhwimg8821a_bb.h" 344 #include "rtl8821a/phydm_regconfig8821a.h" 345 #include "rtl8821a/phydm_rtl8821a.h" 346 #include "rtl8821a/version_rtl8821a.h" 347 #if (DM_ODM_SUPPORT_TYPE == ODM_WIN) 348 #include "halrf/rtl8821a/halrf_8821a_win.h" 349 #elif (DM_ODM_SUPPORT_TYPE == ODM_CE) 350 #include "halrf/rtl8821a/halrf_8821a_ce.h" 351 #include "halrf/rtl8821a/halrf_iqk_8821a_ce.h"/*@for IQK*/ 352 #include "halrf/rtl8812a/halrf_8812a_ce.h"/*@for IQK,LCK,Power-tracking*/ 353 #include "rtl8812a_hal.h" 354 #else 355 #endif 356 #endif 357 358 #if (DM_ODM_SUPPORT_TYPE == ODM_CE) && defined(DM_ODM_CE_MAC80211) 359 #include "../halmac/halmac_reg2.h" 360 #elif (DM_ODM_SUPPORT_TYPE == ODM_CE) && defined(DM_ODM_CE_MAC80211_V2) 361 #include "../halmac/halmac_reg2.h" 362 #endif 363 364 365 #if (RTL8822B_SUPPORT == 1) 366 #include "rtl8822b/halhwimg8822b_mac.h" 367 #include "rtl8822b/halhwimg8822b_bb.h" 368 #include "rtl8822b/phydm_regconfig8822b.h" 369 #include "halrf/rtl8822b/halrf_8822b.h" 370 #include "halrf/rtl8822b/halhwimg8822b_rf.h" 371 #include "halrf/rtl8822b/version_rtl8822b_rf.h" 372 #include "rtl8822b/phydm_rtl8822b.h" 373 #include "rtl8822b/phydm_hal_api8822b.h" 374 #include "rtl8822b/version_rtl8822b.h" 375 376 #if (DM_ODM_SUPPORT_TYPE == ODM_WIN) 377 #elif (DM_ODM_SUPPORT_TYPE == ODM_CE) 378 #ifdef DM_ODM_CE_MAC80211 379 #include "../halmac/halmac_reg_8822b.h" 380 #elif defined(DM_ODM_CE_MAC80211_V2) 381 #include "../halmac/halmac_reg_8822b.h" 382 #else 383 #include <hal_data.h> /* @struct HAL_DATA_TYPE */ 384 #include <rtl8822b_hal.h> /* @RX_SMOOTH_FACTOR, reg definition and etc.*/ 385 #endif 386 #elif (DM_ODM_SUPPORT_TYPE == ODM_AP) 387 #endif 388 389 #endif 390 391 #if (RTL8703B_SUPPORT == 1) 392 #include "rtl8703b/phydm_rtl8703b.h" 393 #include "rtl8703b/phydm_regconfig8703b.h" 394 #include "rtl8703b/halhwimg8703b_mac.h" 395 #include "rtl8703b/halhwimg8703b_rf.h" 396 #include "rtl8703b/halhwimg8703b_bb.h" 397 #include "halrf/rtl8703b/halrf_8703b.h" 398 #include "rtl8703b/version_rtl8703b.h" 399 #if (DM_ODM_SUPPORT_TYPE == ODM_CE) 400 #include "rtl8703b_hal.h" 401 #endif 402 #endif 403 404 #if (RTL8188F_SUPPORT == 1) 405 #include "rtl8188f/halhwimg8188f_mac.h" 406 #include "rtl8188f/halhwimg8188f_rf.h" 407 #include "rtl8188f/halhwimg8188f_bb.h" 408 #include "rtl8188f/hal8188freg.h" 409 #include "rtl8188f/phydm_rtl8188f.h" 410 #include "rtl8188f/phydm_regconfig8188f.h" 411 #include "halrf/rtl8188f/halrf_8188f.h" /*@for IQK,LCK,Power-tracking*/ 412 #include "rtl8188f/version_rtl8188f.h" 413 #if (DM_ODM_SUPPORT_TYPE == ODM_CE) 414 #include "rtl8188f_hal.h" 415 #endif 416 #endif 417 418 #if (RTL8723D_SUPPORT == 1) 419 #if (DM_ODM_SUPPORT_TYPE != ODM_AP) 420 421 #include "rtl8723d/halhwimg8723d_bb.h" 422 #include "rtl8723d/halhwimg8723d_mac.h" 423 #include "rtl8723d/halhwimg8723d_rf.h" 424 #include "rtl8723d/phydm_regconfig8723d.h" 425 #include "rtl8723d/hal8723dreg.h" 426 #include "rtl8723d/phydm_rtl8723d.h" 427 #include "halrf/rtl8723d/halrf_8723d.h" 428 #include "rtl8723d/version_rtl8723d.h" 429 #endif 430 #if (DM_ODM_SUPPORT_TYPE == ODM_CE) 431 #ifdef DM_ODM_CE_MAC80211 432 #else 433 #include "rtl8723d_hal.h" 434 #endif 435 #endif 436 #endif /* @8723D End */ 437 438 #if (RTL8710B_SUPPORT == 1) 439 #if (DM_ODM_SUPPORT_TYPE != ODM_AP) 440 441 #include "rtl8710b/halhwimg8710b_bb.h" 442 #include "rtl8710b/halhwimg8710b_mac.h" 443 #include "rtl8710b/phydm_regconfig8710b.h" 444 #include "rtl8710b/hal8710breg.h" 445 #include "rtl8710b/phydm_rtl8710b.h" 446 #include "halrf/rtl8710b/halrf_8710b.h" 447 #include "halrf/rtl8710b/halhwimg8710b_rf.h" 448 #include "halrf/rtl8710b/version_rtl8710b_rf.h" 449 #include "rtl8710b/version_rtl8710b.h" 450 #endif 451 #if (DM_ODM_SUPPORT_TYPE == ODM_CE) 452 #include "rtl8710b_hal.h" 453 #endif 454 #endif /* @8710B End */ 455 456 #if (RTL8197F_SUPPORT == 1) 457 #include "rtl8197f/halhwimg8197f_mac.h" 458 #include "rtl8197f/halhwimg8197f_bb.h" 459 #include "rtl8197f/phydm_hal_api8197f.h" 460 #include "rtl8197f/version_rtl8197f.h" 461 #include "rtl8197f/phydm_rtl8197f.h" 462 #include "rtl8197f/phydm_regconfig8197f.h" 463 #include "halrf/rtl8197f/halrf_8197f.h" 464 #include "halrf/rtl8197f/halrf_iqk_8197f.h" 465 #include "halrf/rtl8197f/halrf_dpk_8197f.h" 466 #include "halrf/rtl8197f/halhwimg8197f_rf.h" 467 #include "halrf/rtl8197f/version_rtl8197f_rf.h" 468 #endif 469 470 #if (RTL8821C_SUPPORT == 1) 471 #include "rtl8821c/phydm_hal_api8821c.h" 472 #include "rtl8821c/halhwimg8821c_mac.h" 473 #include "rtl8821c/halhwimg8821c_bb.h" 474 #include "rtl8821c/phydm_regconfig8821c.h" 475 #include "rtl8821c/phydm_rtl8821c.h" 476 #include "halrf/rtl8821c/halrf_8821c.h" 477 #include "halrf/rtl8821c/halhwimg8821c_rf.h" 478 #include "halrf/rtl8821c/version_rtl8821c_rf.h" 479 #include "rtl8821c/version_rtl8821c.h" 480 #if (DM_ODM_SUPPORT_TYPE == ODM_CE) 481 #ifdef DM_ODM_CE_MAC80211 482 #include "../halmac/halmac_reg_8821c.h" 483 #else 484 #include "rtl8821c_hal.h" 485 #endif 486 #endif 487 #endif 488 489 #if (RTL8192F_SUPPORT == 1) 490 #if (DM_ODM_SUPPORT_TYPE == ODM_CE) 491 #include "rtl8192f_hal.h"/*need to before rf.h*/ 492 #endif 493 #include "rtl8192f/halhwimg8192f_mac.h" 494 #include "rtl8192f/halhwimg8192f_bb.h" 495 #include "rtl8192f/phydm_hal_api8192f.h" 496 #include "rtl8192f/version_rtl8192f.h" 497 #include "rtl8192f/phydm_rtl8192f.h" 498 #include "rtl8192f/phydm_regconfig8192f.h" 499 #include "halrf/rtl8192f/halrf_8192f.h" 500 #include "halrf/rtl8192f/halhwimg8192f_rf.h" 501 #include "halrf/rtl8192f/version_rtl8192f_rf.h" 502 #if (DM_ODM_SUPPORT_TYPE == ODM_AP) 503 #include "halrf/rtl8192f/halrf_dpk_8192f.h" 504 #endif 505 #endif 506 507 #if (RTL8721D_SUPPORT == 1) 508 #include "halrf/rtl8721d/halrf_btiqk_8721d.h" 509 #include "halrf/rtl8721d/halrf_rfk_init_8721d.h" 510 #include "halrf/rtl8721d/halrf_dpk_8721d.h" 511 #include "halrf/rtl8721d/halrf_8721d.h" 512 #include "halrf/rtl8721d/halhwimg8721d_rf.h" 513 #include "halrf/rtl8721d/version_rtl8721d_rf.h" 514 #include "rtl8721d/phydm_hal_api8721d.h" 515 #include "rtl8721d/phydm_regconfig8721d.h" 516 #include "rtl8721d/halhwimg8721d_mac.h" 517 #include "rtl8721d/halhwimg8721d_bb.h" 518 #include "rtl8721d/version_rtl8721d.h" 519 #include "rtl8721d/phydm_rtl8721d.h" 520 #include "rtl8721d/hal8721dreg.h" 521 #include <hal_data.h> 522 #if 0 523 #if (DM_ODM_SUPPORT_TYPE == ODM_AP) 524 #endif 525 #if (DM_ODM_SUPPORT_TYPE == ODM_CE) 526 #include "rtl8721d_hal.h" 527 #endif 528 #endif 529 #endif 530 531 #if (RTL8710C_SUPPORT == 1) 532 #include "halrf/rtl8710c/halrf_8710c.h" 533 #include "halrf/rtl8710c/halhwimg8710c_rf.h" 534 //#include "halrf/rtl8710c/version_rtl8710c_rf.h" 535 #include "rtl8710c/phydm_hal_api8710c.h" 536 #include "rtl8710c/phydm_regconfig8710c.h" 537 #include "rtl8710c/halhwimg8710c_mac.h" 538 #include "rtl8710c/halhwimg8710c_bb.h" 539 #include "rtl8710c/version_rtl8710c.h" 540 #include "rtl8710c/phydm_rtl8710c.h" 541 //#include "rtl8710c/hal87100creg.h" 542 #include <hal_data.h> /*@HAL_DATA_TYPE*/ 543 #if 0 544 #if (DM_ODM_SUPPORT_TYPE == ODM_AP) 545 #include "halrf/rtl8710c/halrf_dpk_8710c.h" 546 #endif 547 #if (DM_ODM_SUPPORT_TYPE == ODM_CE) 548 #include "rtl8710c_hal.h" 549 #endif 550 #endif 551 #endif 552 553 #if (RTL8195B_SUPPORT == 1) 554 #include "halrf/rtl8195b/halrf_8195b.h" 555 #include "halrf/rtl8195b/halhwimg8195b_rf.h" 556 #include "halrf/rtl8195b/version_rtl8195b_rf.h" 557 #include "rtl8195b/phydm_hal_api8195b.h" 558 #include "rtl8195b/phydm_regconfig8195b.h" 559 #include "rtl8195b/halhwimg8195b_mac.h" 560 #include "rtl8195b/halhwimg8195b_bb.h" 561 #include "rtl8195b/version_rtl8195b.h" 562 #include <hal_data.h> /*@HAL_DATA_TYPE*/ 563 #endif 564 565 #if (RTL8198F_SUPPORT == 1) 566 #include "rtl8198f/phydm_regconfig8198f.h" 567 #include "rtl8198f/phydm_hal_api8198f.h" 568 #include "rtl8198f/halhwimg8198f_mac.h" 569 #include "rtl8198f/halhwimg8198f_bb.h" 570 #include "rtl8198f/version_rtl8198f.h" 571 #include "halrf/rtl8198f/halrf_8198f.h" 572 #include "halrf/rtl8198f/halrf_iqk_8198f.h" 573 #include "halrf/rtl8198f/halhwimg8198f_rf.h" 574 #include "halrf/rtl8198f/version_rtl8198f_rf.h" 575 #endif 576 577 #if (RTL8822C_SUPPORT) 578 #include "rtl8822c/halhwimg8822c_bb.h" 579 #include "rtl8822c/phydm_regconfig8822c.h" 580 #include "rtl8822c/phydm_hal_api8822c.h" 581 #include "rtl8822c/version_rtl8822c.h" 582 #include "rtl8822c/phydm_rtl8822c.h" 583 #include "halrf/rtl8822c/halrf_8822c.h" 584 #include "halrf/rtl8822c/halhwimg8822c_rf.h" 585 #include "halrf/rtl8822c/version_rtl8822c_rf.h" 586 #if (DM_ODM_SUPPORT_TYPE == ODM_CE) 587 /* @struct HAL_DATA_TYPE */ 588 #include <hal_data.h> 589 /* @RX_SMOOTH_FACTOR, reg definition and etc.*/ 590 #include <rtl8822c_hal.h> 591 #endif 592 #endif 593 #if (RTL8814B_SUPPORT == 1) 594 #include "rtl8814b/halhwimg8814b_bb.h" 595 #include "rtl8814b/phydm_regconfig8814b.h" 596 #include "halrf/rtl8814b/halrf_8814b.h" 597 #include "halrf/rtl8814b/halhwimg8814b_rf.h" 598 #include "halrf/rtl8814b/version_rtl8814b_rf.h" 599 #include "rtl8814b/phydm_hal_api8814b.h" 600 #include "rtl8814b/version_rtl8814b.h" 601 #if (DM_ODM_SUPPORT_TYPE == ODM_CE) 602 #include <hal_data.h> /* @struct HAL_DATA_TYPE */ 603 #include <rtl8814b_hal.h> /* @RX_SMOOTH_FACTOR, reg definition and etc.*/ 604 #endif 605 #endif 606 #if (RTL8812F_SUPPORT) 607 #include "rtl8812f/halhwimg8812f_bb.h" 608 #include "rtl8812f/phydm_regconfig8812f.h" 609 #include "halrf/rtl8812f/halrf_8812f.h" 610 #include "halrf/rtl8812f/halhwimg8812f_rf.h" 611 #include "halrf/rtl8812f/version_rtl8812f_rf.h" 612 #include "rtl8812f/phydm_hal_api8812f.h" 613 #include "rtl8812f/version_rtl8812f.h" 614 #include "rtl8812f/phydm_rtl8812f.h" 615 #endif 616 #if (RTL8197G_SUPPORT) 617 #include "rtl8197g/halhwimg8197g_bb.h" 618 #include "rtl8197g/halhwimg8197g_mac.h" 619 #include "rtl8197g/phydm_regconfig8197g.h" 620 #include "halrf/rtl8197g/halrf_8197g.h" 621 #include "halrf/rtl8197g/halhwimg8197g_rf.h" 622 #include "halrf/rtl8197g/version_rtl8197g_rf.h" 623 #include "rtl8197g/phydm_hal_api8197g.h" 624 #include "rtl8197g/version_rtl8197g.h" 625 #include "rtl8197g/phydm_rtl8197g.h" 626 #endif 627 #endif /* @__ODM_PRECOMP_H__ */ 628