Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
nu11secur1ty
GitHub Repository: nu11secur1ty/Kali-Linux
Path: blob/master/ALFA-W1F1/RTL8814AU/hal/phydm/phydm_hwconfig.h
1307 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
* The full GNU General Public License is included in this distribution in the
15
* file called LICENSE.
16
*
17
* Contact Information:
18
* wlanfae <[email protected]>
19
* Realtek Corporation, No. 2, Innovation Road II, Hsinchu Science Park,
20
* Hsinchu 300, Taiwan.
21
*
22
* Larry Finger <[email protected]>
23
*
24
*****************************************************************************/
25
26
#ifndef __HALHWOUTSRC_H__
27
#define __HALHWOUTSRC_H__
28
29
/*@--------------------------Define -------------------------------------------*/
30
#define AGC_DIFF_CONFIG_MP(ic, band) \
31
(odm_read_and_config_mp_##ic##_agc_tab_diff(dm, \
32
array_mp_##ic##_agc_tab_diff_##band, \
33
sizeof(array_mp_##ic##_agc_tab_diff_##band) / sizeof(u32)))
34
#define AGC_DIFF_CONFIG_TC(ic, band) \
35
(odm_read_and_config_tc_##ic##_agc_tab_diff(dm, \
36
array_tc_##ic##_agc_tab_diff_##band, \
37
sizeof(array_tc_##ic##_agc_tab_diff_##band) / sizeof(u32)))
38
#if defined(DM_ODM_CE_MAC80211)
39
#else
40
#define AGC_DIFF_CONFIG(ic, band) \
41
do { \
42
if (dm->is_mp_chip) \
43
AGC_DIFF_CONFIG_MP(ic, band); \
44
else \
45
AGC_DIFF_CONFIG_TC(ic, band); \
46
} while (0)
47
#endif
48
/*@************************************************************
49
* structure and define
50
************************************************************/
51
52
enum hal_status
53
odm_config_rf_with_tx_pwr_track_header_file(struct dm_struct *dm);
54
55
enum hal_status
56
odm_config_rf_with_header_file(struct dm_struct *dm,
57
enum odm_rf_config_type config_type,
58
u8 e_rf_path);
59
60
enum hal_status
61
odm_config_bb_with_header_file(struct dm_struct *dm,
62
enum odm_bb_config_type config_type);
63
64
enum hal_status
65
odm_config_mac_with_header_file(struct dm_struct *dm);
66
67
u32 odm_get_hw_img_version(struct dm_struct *dm);
68
69
u32 query_phydm_trx_capability(struct dm_struct *dm);
70
71
u32 query_phydm_stbc_capability(struct dm_struct *dm);
72
73
u32 query_phydm_ldpc_capability(struct dm_struct *dm);
74
75
u32 query_phydm_txbf_parameters(struct dm_struct *dm);
76
77
u32 query_phydm_txbf_capability(struct dm_struct *dm);
78
79
#endif /*@#ifndef __HALHWOUTSRC_H__*/
80
81