hc
2024-05-10 23fa18eaa71266feff7ba8d83022d9e1cc83c65a
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
/******************************************************************************
 *
 * 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.
 *
 *****************************************************************************/
 
 
#ifndef    __HALHWOUTSRC_H__
#define __HALHWOUTSRC_H__
 
 
/*--------------------------Define -------------------------------------------*/
#define AGC_DIFF_CONFIG_MP(ic, band) (odm_read_and_config_mp_##ic##_agc_tab_diff(p_dm, array_mp_##ic##_agc_tab_diff_##band, \
             sizeof(array_mp_##ic##_agc_tab_diff_##band)/sizeof(u32)))
#define AGC_DIFF_CONFIG_TC(ic, band) (odm_read_and_config_tc_##ic##_agc_tab_diff(p_dm, array_tc_##ic##_agc_tab_diff_##band, \
             sizeof(array_tc_##ic##_agc_tab_diff_##band)/sizeof(u32)))
 
#define AGC_DIFF_CONFIG(ic, band) do {\
       if (p_dm->is_mp_chip)\
           AGC_DIFF_CONFIG_MP(ic, band);\
       else\
           AGC_DIFF_CONFIG_TC(ic, band);\
   } while (0)
 
 
/* ************************************************************
 * structure and define
 * ************************************************************ */
 
enum hal_status
odm_config_rf_with_tx_pwr_track_header_file(
   struct PHY_DM_STRUCT        *p_dm
);
 
enum hal_status
odm_config_rf_with_header_file(
   struct PHY_DM_STRUCT        *p_dm,
   enum odm_rf_config_type        config_type,
   u8                        e_rf_path
);
 
enum hal_status
odm_config_bb_with_header_file(
   struct PHY_DM_STRUCT    *p_dm,
   enum odm_bb_config_type        config_type
);
 
enum hal_status
odm_config_mac_with_header_file(
   struct PHY_DM_STRUCT    *p_dm
);
 
u32
odm_get_hw_img_version(
   struct PHY_DM_STRUCT    *p_dm
);
 
 
u32
query_phydm_trx_capability(
   struct PHY_DM_STRUCT                    *p_dm
);
 
u32
query_phydm_stbc_capability(
   struct PHY_DM_STRUCT                    *p_dm
);
 
u32
query_phydm_ldpc_capability(
   struct PHY_DM_STRUCT                    *p_dm
);
 
u32
query_phydm_txbf_parameters(
   struct PHY_DM_STRUCT                    *p_dm
);
 
u32
query_phydm_txbf_capability(
   struct PHY_DM_STRUCT                    *p_dm
);
 
#endif /*#ifndef    __HALHWOUTSRC_H__*/