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 #ifndef RTL8723F_SUPPORT 173 #define RTL8723F_SUPPORT 0 174 #endif 175 #if (DM_ODM_SUPPORT_TYPE & ODM_CE) && \ 176 (!defined(DM_ODM_CE_MAC80211) && !defined(DM_ODM_CE_MAC80211_V2)) 177 178 void phy_set_tx_power_limit( 179 struct dm_struct *dm, 180 u8 *regulation, 181 u8 *band, 182 u8 *bandwidth, 183 u8 *rate_section, 184 u8 *rf_path, 185 u8 *channel, 186 u8 *power_limit); 187 188 void phy_set_tx_power_limit_ex(struct dm_struct *dm, u8 regulation, u8 band, 189 u8 bandwidth, u8 rate_section, u8 rf_path, 190 u8 channel, s8 power_limit); 191 192 enum hal_status 193 rtw_phydm_fw_iqk( 194 struct dm_struct *dm, 195 u8 clear, 196 u8 segment); 197 198 enum hal_status 199 rtw_phydm_fw_dpk( 200 struct dm_struct *dm); 201 202 enum hal_status 203 rtw_phydm_cfg_phy_para( 204 struct dm_struct *dm, 205 enum phydm_halmac_param config_type, 206 u32 offset, 207 u32 data, 208 u32 mask, 209 enum rf_path e_rf_path, 210 u32 delay_time); 211 212 #endif 213 214 #if RTL8188E_SUPPORT == 1 215 #define RTL8188E_T_SUPPORT 1 216 #ifdef CONFIG_SFW_SUPPORTED 217 #define RTL8188E_S_SUPPORT 1 218 #else 219 #define RTL8188E_S_SUPPORT 0 220 #endif 221 222 #include "rtl8188e/hal8188erateadaptive.h" /* @for RA,Power training */ 223 #include "rtl8188e/halhwimg8188e_mac.h" 224 #include "rtl8188e/halhwimg8188e_rf.h" 225 #include "rtl8188e/halhwimg8188e_bb.h" 226 #include "rtl8188e/phydm_regconfig8188e.h" 227 #include "rtl8188e/phydm_rtl8188e.h" 228 #include "rtl8188e/hal8188ereg.h" 229 #include "rtl8188e/version_rtl8188e.h" 230 #if (DM_ODM_SUPPORT_TYPE == ODM_CE) 231 #include "rtl8188e_hal.h" 232 #include "halrf/rtl8188e/halrf_8188e_ce.h" 233 #endif 234 #if (DM_ODM_SUPPORT_TYPE == ODM_WIN) 235 #include "halrf/rtl8188e/halrf_8188e_win.h" 236 #endif 237 #if (DM_ODM_SUPPORT_TYPE == ODM_AP) 238 #include "halrf/rtl8188e/halrf_8188e_ap.h" 239 #endif 240 #endif /* @88E END */ 241 242 #if (RTL8192E_SUPPORT == 1) 243 244 #if (DM_ODM_SUPPORT_TYPE == ODM_WIN) 245 #include "halrf/rtl8192e/halrf_8192e_win.h" /*@FOR_8192E_IQK*/ 246 #elif (DM_ODM_SUPPORT_TYPE == ODM_AP) 247 #include "halrf/rtl8192e/halrf_8192e_ap.h" /*@FOR_8192E_IQK*/ 248 #elif (DM_ODM_SUPPORT_TYPE == ODM_CE) 249 #include "halrf/rtl8192e/halrf_8192e_ce.h" /*@FOR_8192E_IQK*/ 250 #endif 251 252 #include "rtl8192e/phydm_rtl8192e.h" /* @FOR_8192E_IQK */ 253 #include "rtl8192e/version_rtl8192e.h" 254 #if (DM_ODM_SUPPORT_TYPE != ODM_AP) 255 #include "rtl8192e/halhwimg8192e_bb.h" 256 #include "rtl8192e/halhwimg8192e_mac.h" 257 #include "rtl8192e/halhwimg8192e_rf.h" 258 #include "rtl8192e/phydm_regconfig8192e.h" 259 #include "rtl8192e/hal8192ereg.h" 260 #endif 261 #if (DM_ODM_SUPPORT_TYPE == ODM_CE) 262 #include "rtl8192e_hal.h" 263 #endif 264 #endif /* @92E END */ 265 266 #if (RTL8812A_SUPPORT == 1) 267 268 #if (DM_ODM_SUPPORT_TYPE == ODM_WIN) 269 #include "halrf/rtl8812a/halrf_8812a_win.h" 270 #elif (DM_ODM_SUPPORT_TYPE == ODM_AP) 271 #include "halrf/rtl8812a/halrf_8812a_ap.h" 272 #elif (DM_ODM_SUPPORT_TYPE == ODM_CE) 273 #include "halrf/rtl8812a/halrf_8812a_ce.h" 274 #endif 275 276 #if (DM_ODM_SUPPORT_TYPE != ODM_AP) 277 #include "rtl8812a/halhwimg8812a_bb.h" 278 #include "rtl8812a/halhwimg8812a_mac.h" 279 #include "rtl8812a/halhwimg8812a_rf.h" 280 #include "rtl8812a/phydm_regconfig8812a.h" 281 #endif 282 #include "rtl8812a/phydm_rtl8812a.h" 283 284 #if (DM_ODM_SUPPORT_TYPE == ODM_CE) 285 #include "rtl8812a_hal.h" 286 #endif 287 #include "rtl8812a/version_rtl8812a.h" 288 289 #endif /* @8812 END */ 290 291 #if (RTL8814A_SUPPORT == 1) 292 293 #include "rtl8814a/halhwimg8814a_mac.h" 294 #include "rtl8814a/halhwimg8814a_bb.h" 295 #include "rtl8814a/version_rtl8814a.h" 296 #include "rtl8814a/phydm_rtl8814a.h" 297 #include "halrf/rtl8814a/halhwimg8814a_rf.h" 298 #include "halrf/rtl8814a/version_rtl8814a_rf.h" 299 #if (DM_ODM_SUPPORT_TYPE == ODM_WIN) 300 #include "halrf/rtl8814a/halrf_8814a_win.h" 301 #elif (DM_ODM_SUPPORT_TYPE == ODM_CE) 302 #include "halrf/rtl8814a/halrf_8814a_ce.h" 303 #elif (DM_ODM_SUPPORT_TYPE == ODM_AP) 304 #include "halrf/rtl8814a/halrf_8814a_ap.h" 305 #endif 306 #include "rtl8814a/phydm_regconfig8814a.h" 307 #if (DM_ODM_SUPPORT_TYPE == ODM_CE) 308 #include "rtl8814a_hal.h" 309 #include "halrf/rtl8814a/halrf_iqk_8814a.h" 310 #endif 311 #endif /* @8814 END */ 312 313 #if (RTL8881A_SUPPORT == 1)/* @FOR_8881_IQK */ 314 #if (DM_ODM_SUPPORT_TYPE == ODM_WIN) 315 #include "halrf/rtl8821a/halrf_iqk_8821a_win.h" 316 #elif (DM_ODM_SUPPORT_TYPE == ODM_CE) 317 #include "halrf/rtl8821a/halrf_iqk_8821a_ce.h" 318 #else 319 #include "halrf/rtl8821a/halrf_iqk_8821a_ap.h" 320 #endif 321 #endif 322 323 #if (RTL8723B_SUPPORT == 1) 324 #include "rtl8723b/halhwimg8723b_mac.h" 325 #include "rtl8723b/halhwimg8723b_rf.h" 326 #include "rtl8723b/halhwimg8723b_bb.h" 327 #include "rtl8723b/phydm_regconfig8723b.h" 328 #include "rtl8723b/phydm_rtl8723b.h" 329 #include "rtl8723b/hal8723breg.h" 330 #include "rtl8723b/version_rtl8723b.h" 331 #if (DM_ODM_SUPPORT_TYPE == ODM_WIN) 332 #include "halrf/rtl8723b/halrf_8723b_win.h" 333 #elif (DM_ODM_SUPPORT_TYPE == ODM_CE) 334 #include "halrf/rtl8723b/halrf_8723b_ce.h" 335 #include "rtl8723b/halhwimg8723b_mp.h" 336 #include "rtl8723b_hal.h" 337 #else 338 #include "halrf/rtl8723b/halrf_8723b_ap.h" 339 #endif 340 #endif 341 342 #if (RTL8821A_SUPPORT == 1) 343 #include "rtl8821a/halhwimg8821a_mac.h" 344 #include "rtl8821a/halhwimg8821a_rf.h" 345 #include "rtl8821a/halhwimg8821a_bb.h" 346 #include "rtl8821a/phydm_regconfig8821a.h" 347 #include "rtl8821a/phydm_rtl8821a.h" 348 #include "rtl8821a/version_rtl8821a.h" 349 #if (DM_ODM_SUPPORT_TYPE == ODM_WIN) 350 #include "halrf/rtl8821a/halrf_8821a_win.h" 351 #elif (DM_ODM_SUPPORT_TYPE == ODM_CE) 352 #include "halrf/rtl8821a/halrf_8821a_ce.h" 353 #include "halrf/rtl8821a/halrf_iqk_8821a_ce.h"/*@for IQK*/ 354 #include "halrf/rtl8812a/halrf_8812a_ce.h"/*@for IQK,LCK,Power-tracking*/ 355 #include "rtl8812a_hal.h" 356 #else 357 #endif 358 #endif 359 360 #if (DM_ODM_SUPPORT_TYPE == ODM_CE) && defined(DM_ODM_CE_MAC80211) 361 #include "../halmac/halmac_reg2.h" 362 #elif (DM_ODM_SUPPORT_TYPE == ODM_CE) && defined(DM_ODM_CE_MAC80211_V2) 363 #include "../halmac/halmac_reg2.h" 364 #endif 365 366 367 #if (RTL8822B_SUPPORT == 1) 368 #include "rtl8822b/halhwimg8822b_mac.h" 369 #include "rtl8822b/halhwimg8822b_bb.h" 370 #include "rtl8822b/phydm_regconfig8822b.h" 371 #include "halrf/rtl8822b/halrf_8822b.h" 372 #include "halrf/rtl8822b/halhwimg8822b_rf.h" 373 #include "halrf/rtl8822b/version_rtl8822b_rf.h" 374 #include "rtl8822b/phydm_rtl8822b.h" 375 #include "rtl8822b/phydm_hal_api8822b.h" 376 #include "rtl8822b/version_rtl8822b.h" 377 378 #if (DM_ODM_SUPPORT_TYPE == ODM_WIN) 379 #elif (DM_ODM_SUPPORT_TYPE == ODM_CE) 380 #ifdef DM_ODM_CE_MAC80211 381 #include "../halmac/halmac_reg_8822b.h" 382 #elif defined(DM_ODM_CE_MAC80211_V2) 383 #include "../halmac/halmac_reg_8822b.h" 384 #else 385 #include <hal_data.h> /* @struct HAL_DATA_TYPE */ 386 #include <rtl8822b_hal.h> /* @RX_SMOOTH_FACTOR, reg definition and etc.*/ 387 #endif 388 #elif (DM_ODM_SUPPORT_TYPE == ODM_AP) 389 #endif 390 391 #endif 392 393 #if (RTL8703B_SUPPORT == 1) 394 #include "rtl8703b/phydm_rtl8703b.h" 395 #include "rtl8703b/phydm_regconfig8703b.h" 396 #include "rtl8703b/halhwimg8703b_mac.h" 397 #include "rtl8703b/halhwimg8703b_rf.h" 398 #include "rtl8703b/halhwimg8703b_bb.h" 399 #include "halrf/rtl8703b/halrf_8703b.h" 400 #include "rtl8703b/version_rtl8703b.h" 401 #if (DM_ODM_SUPPORT_TYPE == ODM_CE) 402 #include "rtl8703b_hal.h" 403 #endif 404 #endif 405 406 #if (RTL8188F_SUPPORT == 1) 407 #include "rtl8188f/halhwimg8188f_mac.h" 408 #include "rtl8188f/halhwimg8188f_rf.h" 409 #include "rtl8188f/halhwimg8188f_bb.h" 410 #include "rtl8188f/hal8188freg.h" 411 #include "rtl8188f/phydm_rtl8188f.h" 412 #include "rtl8188f/phydm_regconfig8188f.h" 413 #include "halrf/rtl8188f/halrf_8188f.h" /*@for IQK,LCK,Power-tracking*/ 414 #include "rtl8188f/version_rtl8188f.h" 415 #if (DM_ODM_SUPPORT_TYPE == ODM_CE) 416 #include "rtl8188f_hal.h" 417 #endif 418 #endif 419 420 #if (RTL8723D_SUPPORT == 1) 421 #if (DM_ODM_SUPPORT_TYPE != ODM_AP) 422 423 #include "rtl8723d/halhwimg8723d_bb.h" 424 #include "rtl8723d/halhwimg8723d_mac.h" 425 #include "rtl8723d/halhwimg8723d_rf.h" 426 #include "rtl8723d/phydm_regconfig8723d.h" 427 #include "rtl8723d/hal8723dreg.h" 428 #include "rtl8723d/phydm_rtl8723d.h" 429 #include "halrf/rtl8723d/halrf_8723d.h" 430 #include "rtl8723d/version_rtl8723d.h" 431 #endif 432 #if (DM_ODM_SUPPORT_TYPE == ODM_CE) 433 #ifdef DM_ODM_CE_MAC80211 434 #else 435 #include "rtl8723d_hal.h" 436 #endif 437 #endif 438 #endif /* @8723D End */ 439 440 #if (RTL8710B_SUPPORT == 1) 441 #if (DM_ODM_SUPPORT_TYPE != ODM_AP) 442 443 #include "rtl8710b/halhwimg8710b_bb.h" 444 #include "rtl8710b/halhwimg8710b_mac.h" 445 #include "rtl8710b/phydm_regconfig8710b.h" 446 #include "rtl8710b/hal8710breg.h" 447 #include "rtl8710b/phydm_rtl8710b.h" 448 #include "halrf/rtl8710b/halrf_8710b.h" 449 #include "halrf/rtl8710b/halhwimg8710b_rf.h" 450 #include "halrf/rtl8710b/version_rtl8710b_rf.h" 451 #include "rtl8710b/version_rtl8710b.h" 452 #endif 453 #if (DM_ODM_SUPPORT_TYPE == ODM_CE) 454 #include "rtl8710b_hal.h" 455 #endif 456 #endif /* @8710B End */ 457 458 #if (RTL8197F_SUPPORT == 1) 459 #include "rtl8197f/halhwimg8197f_mac.h" 460 #include "rtl8197f/halhwimg8197f_bb.h" 461 #include "rtl8197f/phydm_hal_api8197f.h" 462 #include "rtl8197f/version_rtl8197f.h" 463 #include "rtl8197f/phydm_rtl8197f.h" 464 #include "rtl8197f/phydm_regconfig8197f.h" 465 #include "halrf/rtl8197f/halrf_8197f.h" 466 #include "halrf/rtl8197f/halrf_iqk_8197f.h" 467 #include "halrf/rtl8197f/halrf_dpk_8197f.h" 468 #include "halrf/rtl8197f/halhwimg8197f_rf.h" 469 #include "halrf/rtl8197f/version_rtl8197f_rf.h" 470 #endif 471 472 #if (RTL8821C_SUPPORT == 1) 473 #include "rtl8821c/phydm_hal_api8821c.h" 474 #include "rtl8821c/halhwimg8821c_mac.h" 475 #include "rtl8821c/halhwimg8821c_bb.h" 476 #include "rtl8821c/phydm_regconfig8821c.h" 477 #include "rtl8821c/phydm_rtl8821c.h" 478 #include "halrf/rtl8821c/halrf_8821c.h" 479 #include "halrf/rtl8821c/halhwimg8821c_rf.h" 480 #include "halrf/rtl8821c/version_rtl8821c_rf.h" 481 #include "rtl8821c/version_rtl8821c.h" 482 #if (DM_ODM_SUPPORT_TYPE == ODM_CE) 483 #ifdef DM_ODM_CE_MAC80211 484 #include "../halmac/halmac_reg_8821c.h" 485 #else 486 #include "rtl8821c_hal.h" 487 #endif 488 #endif 489 #endif 490 491 #if (RTL8192F_SUPPORT == 1) 492 #if (DM_ODM_SUPPORT_TYPE == ODM_CE) 493 #include "rtl8192f_hal.h"/*need to before rf.h*/ 494 #endif 495 #include "rtl8192f/halhwimg8192f_mac.h" 496 #include "rtl8192f/halhwimg8192f_bb.h" 497 #include "rtl8192f/phydm_hal_api8192f.h" 498 #include "rtl8192f/version_rtl8192f.h" 499 #include "rtl8192f/phydm_rtl8192f.h" 500 #include "rtl8192f/phydm_regconfig8192f.h" 501 #include "halrf/rtl8192f/halrf_8192f.h" 502 #include "halrf/rtl8192f/halhwimg8192f_rf.h" 503 #include "halrf/rtl8192f/version_rtl8192f_rf.h" 504 #if (DM_ODM_SUPPORT_TYPE == ODM_AP) 505 #include "halrf/rtl8192f/halrf_dpk_8192f.h" 506 #endif 507 #endif 508 509 #if (RTL8721D_SUPPORT == 1) 510 #include "halrf/rtl8721d/halrf_btiqk_8721d.h" 511 #include "halrf/rtl8721d/halrf_rfk_init_8721d.h" 512 #include "halrf/rtl8721d/halrf_dpk_8721d.h" 513 #include "halrf/rtl8721d/halrf_8721d.h" 514 #include "halrf/rtl8721d/halhwimg8721d_rf.h" 515 #include "halrf/rtl8721d/version_rtl8721d_rf.h" 516 #include "rtl8721d/phydm_hal_api8721d.h" 517 #include "rtl8721d/phydm_regconfig8721d.h" 518 #include "rtl8721d/halhwimg8721d_mac.h" 519 #include "rtl8721d/halhwimg8721d_bb.h" 520 #include "rtl8721d/version_rtl8721d.h" 521 #include "rtl8721d/phydm_rtl8721d.h" 522 #include "rtl8721d/hal8721dreg.h" 523 #include <hal_data.h> 524 #if 0 525 #if (DM_ODM_SUPPORT_TYPE == ODM_AP) 526 #endif 527 #if (DM_ODM_SUPPORT_TYPE == ODM_CE) 528 #include "rtl8721d_hal.h" 529 #endif 530 #endif 531 #endif 532 533 #if (RTL8710C_SUPPORT == 1) 534 #include "halrf/rtl8710c/halrf_8710c.h" 535 #include "halrf/rtl8710c/halhwimg8710c_rf.h" 536 //#include "halrf/rtl8710c/version_rtl8710c_rf.h" 537 #include "rtl8710c/phydm_hal_api8710c.h" 538 #include "rtl8710c/phydm_regconfig8710c.h" 539 #include "rtl8710c/halhwimg8710c_mac.h" 540 #include "rtl8710c/halhwimg8710c_bb.h" 541 #include "rtl8710c/version_rtl8710c.h" 542 #include "rtl8710c/phydm_rtl8710c.h" 543 //#include "rtl8710c/hal87100creg.h" 544 #include <hal_data.h> /*@HAL_DATA_TYPE*/ 545 #if 0 546 #if (DM_ODM_SUPPORT_TYPE == ODM_AP) 547 #include "halrf/rtl8710c/halrf_dpk_8710c.h" 548 #endif 549 #if (DM_ODM_SUPPORT_TYPE == ODM_CE) 550 #include "rtl8710c_hal.h" 551 #endif 552 #endif 553 #endif 554 555 #if (RTL8195B_SUPPORT == 1) 556 #include "halrf/rtl8195b/halrf_8195b.h" 557 #include "halrf/rtl8195b/halhwimg8195b_rf.h" 558 #include "halrf/rtl8195b/version_rtl8195b_rf.h" 559 #include "rtl8195b/phydm_hal_api8195b.h" 560 #include "rtl8195b/phydm_regconfig8195b.h" 561 #include "rtl8195b/halhwimg8195b_mac.h" 562 #include "rtl8195b/halhwimg8195b_bb.h" 563 #include "rtl8195b/version_rtl8195b.h" 564 #include <hal_data.h> /*@HAL_DATA_TYPE*/ 565 #endif 566 567 #if (RTL8198F_SUPPORT == 1) 568 #include "rtl8198f/phydm_regconfig8198f.h" 569 #include "rtl8198f/phydm_hal_api8198f.h" 570 #include "rtl8198f/halhwimg8198f_mac.h" 571 #include "rtl8198f/halhwimg8198f_bb.h" 572 #include "rtl8198f/version_rtl8198f.h" 573 #include "halrf/rtl8198f/halrf_8198f.h" 574 #include "halrf/rtl8198f/halrf_iqk_8198f.h" 575 #include "halrf/rtl8198f/halhwimg8198f_rf.h" 576 #include "halrf/rtl8198f/version_rtl8198f_rf.h" 577 #endif 578 579 #if (RTL8822C_SUPPORT) 580 #include "rtl8822c/halhwimg8822c_bb.h" 581 #include "rtl8822c/phydm_regconfig8822c.h" 582 #include "rtl8822c/phydm_hal_api8822c.h" 583 #include "rtl8822c/version_rtl8822c.h" 584 #include "rtl8822c/phydm_rtl8822c.h" 585 #include "halrf/rtl8822c/halrf_8822c.h" 586 #include "halrf/rtl8822c/halhwimg8822c_rf.h" 587 #include "halrf/rtl8822c/version_rtl8822c_rf.h" 588 #if (DM_ODM_SUPPORT_TYPE == ODM_CE) 589 /* @struct HAL_DATA_TYPE */ 590 #include <hal_data.h> 591 /* @RX_SMOOTH_FACTOR, reg definition and etc.*/ 592 #include <rtl8822c_hal.h> 593 #endif 594 #endif 595 #if (RTL8814B_SUPPORT == 1) 596 #include "rtl8814b/halhwimg8814b_bb.h" 597 #include "rtl8814b/phydm_regconfig8814b.h" 598 #include "halrf/rtl8814b/halrf_8814b.h" 599 #include "halrf/rtl8814b/halhwimg8814b_rf.h" 600 #include "halrf/rtl8814b/version_rtl8814b_rf.h" 601 #include "rtl8814b/phydm_hal_api8814b.h" 602 #include "rtl8814b/version_rtl8814b.h" 603 #include "rtl8814b/phydm_extraagc8814b.h" 604 #if (DM_ODM_SUPPORT_TYPE == ODM_CE) 605 #include <hal_data.h> /* @struct HAL_DATA_TYPE */ 606 #include <rtl8814b_hal.h> /* @RX_SMOOTH_FACTOR, reg definition and etc.*/ 607 #endif 608 #endif 609 #if (RTL8812F_SUPPORT) 610 #include "rtl8812f/halhwimg8812f_bb.h" 611 #include "rtl8812f/phydm_regconfig8812f.h" 612 #include "halrf/rtl8812f/halrf_8812f.h" 613 #include "halrf/rtl8812f/halhwimg8812f_rf.h" 614 #include "halrf/rtl8812f/version_rtl8812f_rf.h" 615 #include "rtl8812f/phydm_hal_api8812f.h" 616 #include "rtl8812f/version_rtl8812f.h" 617 #include "rtl8812f/phydm_rtl8812f.h" 618 #endif 619 #if (RTL8197G_SUPPORT) 620 #include "rtl8197g/halhwimg8197g_bb.h" 621 #include "rtl8197g/halhwimg8197g_mac.h" 622 #include "rtl8197g/phydm_regconfig8197g.h" 623 #include "halrf/rtl8197g/halrf_8197g.h" 624 #include "halrf/rtl8197g/halhwimg8197g_rf.h" 625 #include "halrf/rtl8197g/version_rtl8197g_rf.h" 626 #include "rtl8197g/phydm_hal_api8197g.h" 627 #include "rtl8197g/version_rtl8197g.h" 628 #include "rtl8197g/phydm_rtl8197g.h" 629 #endif 630 #if (RTL8723F_SUPPORT) 631 #include "rtl8723f/halhwimg8723f_bb.h" 632 #include "rtl8723f/halhwimg8723f_mac.h" 633 #include "rtl8723f/phydm_regconfig8723f.h" 634 #include "halrf/rtl8723f/halrf_8723f.h" 635 #include "halrf/rtl8723f/halhwimg8723f_rf.h" 636 #include "halrf/rtl8723f/version_rtl8723f_rf.h" 637 #include "halrf/rtl8723f/halrf_iqk_8723f.h" 638 #include "halrf/rtl8723f/halrf_dpk_8723f.h" 639 #include "halrf/rtl8723f/halrf_txgapk_8723f.h" 640 #include "halrf/rtl8723f/halrf_tssi_8723f.h" 641 #include "halrf/rtl8723f/halrf_rfk_init_8723f.h" 642 #include "rtl8723f/phydm_hal_api8723f.h" 643 #include "rtl8723f/version_rtl8723f.h" 644 #include "rtl8723f/phydm_rtl8723f.h" 645 #if (DM_ODM_SUPPORT_TYPE == ODM_CE) 646 /* @struct HAL_DATA_TYPE */ 647 #include <hal_data.h> 648 /* @RX_SMOOTH_FACTOR, reg definition and etc.*/ 649 #include <rtl8723f_hal.h> 650 #endif 651 #endif 652 #endif /* @__ODM_PRECOMP_H__ */ 653