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_ce.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 AVG_THERMAL_NUM_8814A 4
21
#define RF_T_METER_8814A 0x42
22
23
#include "../halphyrf_ce.h"
24
25
void configure_txpower_track_8814a(struct txpwrtrack_cfg *config);
26
27
void get_delta_swing_table_8814a(void *dm_void, u8 **temperature_up_a,
28
u8 **temperature_down_a, u8 **temperature_up_b,
29
u8 **temperature_down_b);
30
31
void get_delta_swing_table_8814a_path_cd(void *dm_void, u8 **temperature_up_c,
32
u8 **temperature_down_c,
33
u8 **temperature_up_d,
34
u8 **temperature_down_d);
35
36
void odm_tx_pwr_track_set_pwr8814a(void *dm_void, enum pwrtrack_method method,
37
u8 rf_path, u8 channel_mapped_index);
38
39
#if 0
40
u8
41
check_rf_gain_offset(
42
struct dm_struct *dm,
43
enum pwrtrack_method method,
44
u8 rf_path
45
);
46
#endif
47
48
u8 get_tssivalue(struct dm_struct *dm, enum pwrtrack_method method, u8 rf_path);
49
50
boolean
51
get_tssi_mode_tx_agc_bb_swing_offset(struct dm_struct *dm,
52
enum pwrtrack_method method, u8 rf_path,
53
u32 offset_vaule,
54
u8 tx_power_index_offest);
55
56
boolean
57
get_mix_mode_tx_agc_bb_swing_offset(struct dm_struct *dm,
58
enum pwrtrack_method method, u8 rf_path,
59
u8 tx_power_index_offest);
60
61
void power_tracking_by_mix_mode(struct dm_struct *dm,
62
enum pwrtrack_method method, u8 rf_path);
63
64
void power_tracking_by_tssi_mode(struct dm_struct *dm,
65
enum pwrtrack_method method, u8 rf_path);
66
67
/*
68
* LC calibrate
69
*
70
*/
71
void phy_lc_calibrate_8814a(void *dm_void);
72
73
void phy_set_rf_path_switch_8814a(
74
#if ((DM_ODM_SUPPORT_TYPE & ODM_AP) || (DM_ODM_SUPPORT_TYPE == ODM_CE))
75
struct dm_struct *dm,
76
#else
77
void *adapter,
78
#endif
79
boolean is_main);
80
81
#endif /*#ifndef __HALRF_8814A_H__*/
82
83