hc
2024-03-22 a0752693d998599af469473b8dc239ef973a012f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
/******************************************************************************
 *
 * Copyright(c) 2007 - 2020  Realtek Corporation.
 *
 * This program is free software; you can redistribute it and/or modify it
 * under the terms of version 2 of the GNU General Public License as
 * published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
 * more details.
 *
 * The full GNU General Public License is included in this distribution in the
 * file called LICENSE.
 *
 * Contact Information:
 * wlanfae <wlanfae@realtek.com>
 * Realtek Corporation, No. 2, Innovation Road II, Hsinchu Science Park,
 * Hsinchu 300, Taiwan.
 *
 * Larry Finger <Larry.Finger@lwfinger.net>
 *
 *****************************************************************************/
#ifndef __HALRF_PRECOMP_H__
#define __HALRF_PRECOMP_H__
 
/*@--------------------------[Define] ---------------------------------------*/
 
#ifdef CONFIG_RTL8852A
    #define RF_8852A_SUPPORT
#endif
 
#ifdef CONFIG_RTL8852B
    #define RF_8852B_SUPPORT
#endif
 
#ifdef CONFIG_RTL8852C
    #define RF_8852C_SUPPORT
#endif
 
#define    MASKBYTE0        0xff
#define    MASKBYTE1        0xff00
#define    MASKBYTE2        0xff0000
#define    MASKBYTE3        0xff000000
#define    MASKHWORD        0xffff0000
#define    MASKLWORD        0x0000ffff
#define    MASKDWORD        0xffffffff
#define    MASKRF        0xfffff
#define    MASKRFMODE        0xf0000
#define    MASKRFRXBB        0x003e0
#define    MASKTXPWR        0x0003f
#define    INVALID_RF_DATA 0xffffffff
 
 
/*---[Define Only] ----------------------------------------------------------*/
#include "../../hal_headers_le.h"
#include "halrf_ic_hw_info.h"
#include "halrf_ic_sw_info.h"
 
/*---[Include structure & prototype] ----------------------------------------*/
 
#include "halrf_hw_cfg.h"
#include "halrf_hw_cfg_ex.h"
#include "halrf_interface.h"
#include "halrf_dbg_cmd.h"
#include "halrf_dbg.h"
#include "halrf_txgapk.h"
#include "halrf_pwr_track.h"
#include "halrf_iqk.h"
#include "halrf_dpk.h"
#include "halrf_dack.h"
#include "halrf_pmac.h"
//#include "halrf_dbg_cmd.h"
#include "halrf_dbg_cmd_ex.h"
#include "halrf_init.h"
#include "halrf_init_ex.h"
#include "halrf_pwr_table.h"
#include "halrf_api.h"
#include "halrf_psd.h"
#include "halrf_kfree.h"
#include "halrf_hwimg.h"
#ifdef RF_8852A_SUPPORT
#include "halrf_8852a/halrf_dack_8852a.h"
#include "halrf_8852a/halrf_hwimg_8852a.h"
#include "halrf_8852a/halrf_kfree_8852a.h"
#endif
 
#ifdef RF_8852B_SUPPORT
#include "halrf_8852b/halrf_dack_8852b.h"
#include "halrf_8852b/halrf_hwimg_8852b.h"
#include "halrf_8852b/halrf_kfree_8852b.h"
#endif
 
#ifdef RF_8852C_SUPPORT
//#include "halrf_8852c/halrf_dack_8852c.h"
//#include "halrf_8852c/halrf_hwimg_8852c.h"
//#include "halrf_8852c/halrf_kfree_8852c.h"
#endif
 
#include "halrf.h"
#include "halrf_ex.h"
 
#ifdef RF_8852A_SUPPORT
   #include "halrf_8852a/halrf_efuse_8852a.h"
   #include "halrf_8852a/halrf_reg_cfg_8852a.h"
   #include "halrf_8852a/halrf_8852a.h"
   #include "halrf_8852a/halrf_8852a_api.h"
   #include "halrf_8852a/halrf_8852a_api_ex.h"
   #include "halrf_8852a/halrf_iqk_8852a.h"
   #include "halrf_8852a/halrf_dpk_8852a.h"
   #include "halrf_8852a/halrf_txgapk_8852a.h"
   #include "halrf_8852a/halrf_version_rtl8852a.h"
   #include "halrf_8852a/halrf_set_pwr_table_8852a.h"
   #include "halrf_8852a/halrf_tssi_8852a.h"
   #include "halrf_8852a/halrf_psd_8852a.h"
#endif
 
#ifdef RF_8852B_SUPPORT
   #include "halrf_8852b/halrf_efuse_8852b.h"
   #include "halrf_8852b/halrf_reg_cfg_8852b.h"
   #include "halrf_8852b/halrf_8852b.h"
   #include "halrf_8852b/halrf_8852b_api.h"
   #include "halrf_8852b/halrf_8852b_api_ex.h"
   #include "halrf_8852b/halrf_iqk_8852b.h"
   #include "halrf_8852b/halrf_dpk_8852b.h"
   #include "halrf_8852b/halrf_txgapk_8852b.h"
   #include "halrf_8852b/halrf_version_rtl8852b.h"
   #include "halrf_8852b/halrf_set_pwr_table_8852b.h"
   #include "halrf_8852b/halrf_tssi_8852b.h"
   #include "halrf_8852b/halrf_psd_8852b.h"
#endif
 
#ifdef RF_8852C_SUPPORT
//    #include "halrf_8852c/halrf_efuse_8852c.h"
//    #include "halrf_8852c/halrf_reg_cfg_8852c.h"
   #include "halrf_8852c/halrf_8852c.h"
//    #include "halrf_8852c/halrf_8852c_api.h"
//    #include "halrf_8852c/halrf_8852c_api_ex.h"
//    #include "halrf_8852c/halrf_iqk_8852c.h"
//    #include "halrf_8852c/halrf_dpk_8852c.h"
//    #include "halrf_8852c/halrf_txgapk_8852c.h"
//    #include "halrf_8852c/halrf_version_rtl8852c.h"
//    #include "halrf_8852c/halrf_set_pwr_table_8852c.h"
//    #include "halrf_8852c/halrf_tssi_8852c.h"
#endif
 
 
 
#endif