Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
nu11secur1ty
GitHub Repository: nu11secur1ty/Kali-Linux
Path: blob/master/ALFA-W1F1/RTL8814AU/hal/phydm/halrf/rtl8814a/halrf_8814a_ap.h
1308 views
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
*****************************************************************************/
15
16
#ifndef __HALRF_8814A_H__
17
#define __HALRF_8814A_H__
18
19
/*--------------------------Define Parameters-------------------------------*/
20
#define IQK_DELAY_TIME_8814A 10 /* ms */
21
#define index_mapping_NUM_8814A 15
22
#define AVG_THERMAL_NUM_8814A 4
23
#define RF_T_METER_8814A 0x42
24
#define MAX_PATH_NUM_8814A 4
25
26
#include "../halphyrf_ap.h"
27
28
29
void configure_txpower_track_8814a(
30
struct txpwrtrack_cfg *config
31
);
32
33
void
34
get_delta_swing_table_8814a(
35
struct dm_struct *dm,
36
u8 **temperature_up_a,
37
u8 **temperature_down_a,
38
u8 **temperature_up_b,
39
u8 **temperature_down_b
40
);
41
42
void
43
get_delta_swing_table_8814a_path_cd(
44
struct dm_struct *dm,
45
u8 **temperature_up_c,
46
u8 **temperature_down_c,
47
u8 **temperature_up_d,
48
u8 **temperature_down_d
49
);
50
51
void
52
configure_txpower_track_8814a(
53
struct txpwrtrack_cfg *config
54
);
55
56
57
void
58
odm_tx_pwr_track_set_pwr8814a(
59
struct dm_struct *dm,
60
enum pwrtrack_method method,
61
u8 rf_path,
62
u8 channel_mapped_index
63
);
64
65
66
u8
67
check_rf_gain_offset(
68
struct dm_struct *dm,
69
enum pwrtrack_method method,
70
u8 rf_path
71
);
72
73
74
/*
75
* LC calibrate
76
* */
77
void
78
phy_lc_calibrate_8814a(
79
void *dm_void
80
);
81
82
void
83
_phy_lc_calibrate_8814a(
84
struct dm_struct *dm,
85
boolean is2T
86
);
87
88
89
/*
90
* AP calibrate
91
* */
92
void
93
phy_ap_calibrate_8814a(
94
struct dm_struct *dm,
95
s8 delta);
96
97
98
#if 0 /* FOR_8814_IQK */
99
void
100
_phy_save_adda_registers(
101
#if (DM_ODM_SUPPORT_TYPE & ODM_AP)
102
struct dm_struct *dm,
103
#else
104
void *adapter,
105
#endif
106
u32 *adda_reg,
107
u32 *adda_backup,
108
u32 register_num
109
);
110
111
void
112
_phy_path_adda_on(
113
#if (DM_ODM_SUPPORT_TYPE & ODM_AP)
114
struct dm_struct *dm,
115
#else
116
void *adapter,
117
#endif
118
u32 *adda_reg,
119
boolean is_path_a_on,
120
boolean is2T
121
);
122
123
void
124
_phy_mac_setting_calibration(
125
#if (DM_ODM_SUPPORT_TYPE & ODM_AP)
126
struct dm_struct *dm,
127
#else
128
void *adapter,
129
#endif
130
u32 *mac_reg,
131
u32 *mac_backup
132
);
133
134
135
136
void
137
_phy_path_a_stand_by(
138
#if (DM_ODM_SUPPORT_TYPE & ODM_AP)
139
struct dm_struct *dm
140
#else
141
void *adapter
142
#endif
143
);
144
145
#endif
146
147
148
#endif /*#ifndef __HALRF_8814A_H__*/
149
150