hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
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
151
152
153
154
155
/* SPDX-License-Identifier: GPL-2.0 */
/******************************************************************************
 *
 * Copyright(c) 2007 - 2017 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>
 *
 *****************************************************************************/
 
/*Image2HeaderVersion: R3 1.5.10.1*/
#if (RTL8821C_SUPPORT == 1)
#ifndef __INC_MP_RF_HW_IMG_8821C_H
#define __INC_MP_RF_HW_IMG_8821C_H
 
/* Please add following compiler flags definition (#define CONFIG_XXX_DRV_DIS)
 * into driver source code to reduce code size if necessary.
 * #define CONFIG_8821C_DRV_DIS
 * #define CONFIG_8821C_TYPE0X20_DRV_DIS
 * #define CONFIG_8821C_TYPE0X28_DRV_DIS
 * #define CONFIG_8821C_FCCSAR_DRV_DIS
 * #define CONFIG_8821C_ICSAR_DRV_DIS
 * #define CONFIG_8821C_LOWPOWER_DRV_DIS
 */
 
#define CONFIG_8821C
#ifdef CONFIG_8821C_DRV_DIS
    #undef CONFIG_8821C
#endif
 
#define CONFIG_8821C_TYPE0X20
#ifdef CONFIG_8821C_TYPE0X20_DRV_DIS
    #undef CONFIG_8821C_TYPE0X20
#endif
 
#define CONFIG_8821C_TYPE0X28
#ifdef CONFIG_8821C_TYPE0X28_DRV_DIS
    #undef CONFIG_8821C_TYPE0X28
#endif
 
#define CONFIG_8821C_FCCSAR
#ifdef CONFIG_8821C_FCCSAR_DRV_DIS
    #undef CONFIG_8821C_FCCSAR
#endif
 
#define CONFIG_8821C_ICSAR
#ifdef CONFIG_8821C_ICSAR_DRV_DIS
    #undef CONFIG_8821C_ICSAR
#endif
 
#define CONFIG_8821C_LOWPOWER
#ifdef CONFIG_8821C_LOWPOWER_DRV_DIS
    #undef CONFIG_8821C_LOWPOWER
#endif
 
struct txpwr_lmt_t_8821c {
   u8            reg;
   u8            band:1;
   u8            bw:3;
   u8            rs:2;
   u8            ntx:2;
   u8            ch;
   s8            val;
};
 
/******************************************************************************
 *                           radioa.TXT
 ******************************************************************************/
 
/* tc: Test Chip, mp: mp Chip*/
void
odm_read_and_config_mp_8821c_radioa(struct dm_struct *dm);
u32 odm_get_version_mp_8821c_radioa(void);
 
/******************************************************************************
 *                           txpowertrack.TXT
 ******************************************************************************/
 
/* tc: Test Chip, mp: mp Chip*/
void
odm_read_and_config_mp_8821c_txpowertrack(struct dm_struct *dm);
u32 odm_get_version_mp_8821c_txpowertrack(void);
 
/******************************************************************************
 *                           txpowertrack_type0x20.TXT
 ******************************************************************************/
 
/* tc: Test Chip, mp: mp Chip*/
void
odm_read_and_config_mp_8821c_txpowertrack_type0x20(struct dm_struct *dm);
u32 odm_get_version_mp_8821c_txpowertrack_type0x20(void);
 
/******************************************************************************
 *                           txpowertrack_type0x28.TXT
 ******************************************************************************/
 
/* tc: Test Chip, mp: mp Chip*/
void
odm_read_and_config_mp_8821c_txpowertrack_type0x28(struct dm_struct *dm);
u32 odm_get_version_mp_8821c_txpowertrack_type0x28(void);
 
/******************************************************************************
 *                           txpwr_lmt.TXT
 ******************************************************************************/
 
/* tc: Test Chip, mp: mp Chip*/
void
odm_read_and_config_mp_8821c_txpwr_lmt(struct dm_struct *dm);
u32 odm_get_version_mp_8821c_txpwr_lmt(void);
 
/******************************************************************************
 *                           txpwr_lmt_fccsar.TXT
 ******************************************************************************/
 
/* tc: Test Chip, mp: mp Chip*/
void
odm_read_and_config_mp_8821c_txpwr_lmt_fccsar(struct dm_struct *dm);
u32 odm_get_version_mp_8821c_txpwr_lmt_fccsar(void);
 
/******************************************************************************
 *                           txpwr_lmt_icsar.TXT
 ******************************************************************************/
 
/* tc: Test Chip, mp: mp Chip*/
void
odm_read_and_config_mp_8821c_txpwr_lmt_icsar(struct dm_struct *dm);
u32 odm_get_version_mp_8821c_txpwr_lmt_icsar(void);
 
/******************************************************************************
 *                           txpwr_lmt_lowpower.TXT
 ******************************************************************************/
 
/* tc: Test Chip, mp: mp Chip*/
void
odm_read_and_config_mp_8821c_txpwr_lmt_lowpower(struct dm_struct *dm);
u32 odm_get_version_mp_8821c_txpwr_lmt_lowpower(void);
 
#endif
#endif /* end of HWIMG_SUPPORT*/