1
/******************************************************************************
3
* Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
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.
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
14
* You should have received a copy of the GNU General Public License along with
15
* this program; if not, write to the Free Software Foundation, Inc.,
16
* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
19
******************************************************************************/
20
#ifndef __INC_PHYDM_API_H_8821C__
21
#define __INC_PHYDM_API_H_8821C__
23
#if (RTL8821C_SUPPORT == 1)
25
#define PHY_CONFIG_VERSION_8821C "3.1.20" /*2016.11.21 (HW user guide version: R03, SW user guide version: R01, Modification: R20)*/
27
#define INVALID_RF_DATA 0xffffffff
28
#define INVALID_TXAGC_DATA 0xff
30
#define config_phydm_read_rf_check_8821c(data) (data != INVALID_RF_DATA)
31
#define config_phydm_read_txagc_check_8821c(data) (data != INVALID_TXAGC_DATA)
45
enum ant_num_map_8821c {
53
config_phydm_read_rf_reg_8821c(
54
struct PHY_DM_STRUCT *p_dm_odm,
55
enum odm_rf_radio_path_e rf_path,
61
config_phydm_write_rf_reg_8821c(
62
struct PHY_DM_STRUCT *p_dm_odm,
63
enum odm_rf_radio_path_e rf_path,
70
config_phydm_write_txagc_8821c(
71
struct PHY_DM_STRUCT *p_dm_odm,
73
enum odm_rf_radio_path_e path,
78
config_phydm_read_txagc_8821c(
79
struct PHY_DM_STRUCT *p_dm_odm,
80
enum odm_rf_radio_path_e path,
85
config_phydm_switch_band_8821c(
86
struct PHY_DM_STRUCT *p_dm_odm,
91
config_phydm_switch_channel_8821c(
92
struct PHY_DM_STRUCT *p_dm_odm,
97
config_phydm_switch_bandwidth_8821c(
98
struct PHY_DM_STRUCT *p_dm_odm,
100
enum odm_bw_e bandwidth
104
config_phydm_switch_channel_bw_8821c(
105
struct PHY_DM_STRUCT *p_dm_odm,
108
enum odm_bw_e bandwidth
112
config_phydm_trx_mode_8821c(
113
struct PHY_DM_STRUCT *p_dm_odm,
114
enum odm_rf_path_e tx_path,
115
enum odm_rf_path_e rx_path,
120
config_phydm_parameter_init_8821c(
121
struct PHY_DM_STRUCT *p_dm_odm,
122
enum odm_parameter_init_e type
126
config_phydm_switch_rf_set_8821c(
127
struct PHY_DM_STRUCT *p_dm_odm,
132
config_phydm_set_ant_path(
133
struct PHY_DM_STRUCT *p_dm_odm,
138
/* ======================================================================== */
139
/* These following functions can be used for PHY DM only*/
142
phydm_write_txagc_1byte_8821c(
143
struct PHY_DM_STRUCT *p_dm_odm,
145
enum odm_rf_radio_path_e path,
150
phydm_init_hw_info_by_rfe_type_8821c(
151
struct PHY_DM_STRUCT *p_dm_odm
155
phydm_set_gnt_state_8821c(
156
struct PHY_DM_STRUCT *p_dm_odm,
157
boolean gnt_wl_state,
161
/* ======================================================================== */
164
query_phydm_trx_capability_8821c(
165
struct PHY_DM_STRUCT *p_dm_odm
169
query_phydm_stbc_capability_8821c(
170
struct PHY_DM_STRUCT *p_dm_odm
174
query_phydm_ldpc_capability_8821c(
175
struct PHY_DM_STRUCT *p_dm_odm
179
query_phydm_txbf_parameters_8821c(
180
struct PHY_DM_STRUCT *p_dm_odm
184
query_phydm_txbf_capability_8821c(
185
struct PHY_DM_STRUCT *p_dm_odm
189
query_phydm_default_rf_set_8821c(
190
struct PHY_DM_STRUCT *p_dm_odm
194
query_phydm_current_rf_set_8821c(
195
struct PHY_DM_STRUCT *p_dm_odm
199
query_phydm_rfetype_8821c(
200
struct PHY_DM_STRUCT *p_dm_odm
204
query_phydm_current_ant_num_8821c(
205
struct PHY_DM_STRUCT *p_dm_odm
209
query_phydm_ant_num_map_8821c(
210
struct PHY_DM_STRUCT *p_dm_odm
213
#endif /* RTL8821C_SUPPORT == 1 */
214
#endif /* __INC_PHYDM_API_H_8821C__ */