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