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_win.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
#if (RTL8814A_SUPPORT == 1)
20
21
22
/*--------------------------Define Parameters-------------------------------*/
23
#define AVG_THERMAL_NUM_8814A 4
24
25
#include "halrf/halphyrf_win.h"
26
27
void configure_txpower_track_8814a(
28
struct txpwrtrack_cfg *config
29
);
30
31
void get_delta_swing_table_8814a(
32
void *dm_void,
33
u8 **temperature_up_a,
34
u8 **temperature_down_a,
35
u8 **temperature_up_b,
36
u8 **temperature_down_b
37
);
38
39
40
void
41
get_delta_swing_table_8814a_path_cd(
42
void *dm_void,
43
u8 **temperature_up_c,
44
u8 **temperature_down_c,
45
u8 **temperature_up_d,
46
u8 **temperature_down_d
47
);
48
49
50
void
51
odm_tx_pwr_track_set_pwr8814a(
52
void *dm_void,
53
enum pwrtrack_method method,
54
u8 rf_path,
55
u8 channel_mapped_index
56
);
57
58
#if 0
59
u8
60
check_rf_gain_offset(
61
struct dm_struct *dm,
62
enum pwrtrack_method method,
63
u8 rf_path
64
);
65
#endif
66
67
u8
68
get_tssivalue(
69
struct dm_struct *dm,
70
enum pwrtrack_method method,
71
u8 rf_path
72
);
73
74
boolean
75
get_tssi_mode_tx_agc_bb_swing_offset(
76
struct dm_struct *dm,
77
enum pwrtrack_method method,
78
u8 rf_path,
79
u32 offset_vaule,
80
u8 tx_power_index_offest
81
);
82
83
84
void
85
power_tracking_by_mix_mode(
86
struct dm_struct *dm,
87
enum pwrtrack_method method,
88
u8 rf_path
89
);
90
91
void
92
power_tracking_by_tssi_mode(
93
struct dm_struct *dm,
94
enum pwrtrack_method method,
95
u8 rf_path
96
);
97
98
99
/*
100
* LC calibrate
101
* */
102
void
103
phy_lc_calibrate_8814a(
104
void *dm_void
105
);
106
107
void
108
phy_dp_calibrate_8814a(
109
struct dm_struct *dm
110
);
111
112
void phy_set_rf_path_switch_8814a(
113
#if (DM_ODM_SUPPORT_TYPE & ODM_AP)
114
struct dm_struct *dm,
115
#else
116
void *adapter,
117
#endif
118
boolean is_main
119
);
120
121
122
#else /* (RTL8814A_SUPPORT == 0)*/
123
124
#define phy_lc_calibrate_8814a(_pdm_odm) false
125
126
#endif /* RTL8814A_SUPPORT */
127
128
#endif /*#ifndef __HALRF_8814A_WIN_H__*/
129
130