2022-06-08 23:46:35 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */
|
|
|
|
/* Copyright(c) 2007 - 2011 Realtek Corporation. */
|
2013-05-19 04:28:07 +00:00
|
|
|
|
|
|
|
#ifndef __HALHWOUTSRC_H__
|
|
|
|
#define __HALHWOUTSRC_H__
|
|
|
|
|
2013-08-12 04:36:23 +00:00
|
|
|
/* CCK Rates, TxHT = 0 */
|
2013-08-15 03:03:17 +00:00
|
|
|
#define DESC92C_RATE1M 0x00
|
2013-05-19 04:28:07 +00:00
|
|
|
#define DESC92C_RATE11M 0x03
|
|
|
|
|
2013-08-12 04:36:23 +00:00
|
|
|
/* MCS Rates, TxHT = 1 */
|
2013-08-15 03:03:17 +00:00
|
|
|
#define DESC92C_RATEMCS8 0x14
|
|
|
|
#define DESC92C_RATEMCS15 0x1b
|
2013-05-19 04:28:07 +00:00
|
|
|
|
2013-08-12 04:36:23 +00:00
|
|
|
/* structure and define */
|
2013-05-19 04:28:07 +00:00
|
|
|
|
2013-07-26 21:52:36 +00:00
|
|
|
struct phy_rx_agc_info {
|
2013-05-19 04:28:07 +00:00
|
|
|
#ifdef __LITTLE_ENDIAN
|
2013-08-15 03:03:17 +00:00
|
|
|
u8 gain:7, trsw:1;
|
2013-05-19 04:28:07 +00:00
|
|
|
#else
|
2013-08-15 03:03:17 +00:00
|
|
|
u8 trsw:1, gain:7;
|
2013-05-19 04:28:07 +00:00
|
|
|
#endif
|
2013-07-26 21:52:36 +00:00
|
|
|
};
|
2013-05-19 04:28:07 +00:00
|
|
|
|
2013-07-26 21:52:36 +00:00
|
|
|
struct phy_status_rpt {
|
2013-11-29 22:10:20 +00:00
|
|
|
struct phy_rx_agc_info path_agc[3];
|
2013-08-14 17:03:28 +00:00
|
|
|
u8 ch_corr[2];
|
|
|
|
u8 cck_sig_qual_ofdm_pwdb_all;
|
|
|
|
u8 cck_agc_rpt_ofdm_cfosho_a;
|
|
|
|
u8 cck_rpt_b_ofdm_cfosho_b;
|
|
|
|
u8 rsvd_1;/* ch_corr_msb; */
|
|
|
|
u8 noise_power_db_msb;
|
|
|
|
u8 path_cfotail[2];
|
|
|
|
u8 pcts_mask[2];
|
|
|
|
s8 stream_rxevm[2];
|
2013-11-29 22:10:20 +00:00
|
|
|
u8 path_rxsnr[3];
|
2013-08-14 17:03:28 +00:00
|
|
|
u8 noise_power_db_lsb;
|
|
|
|
u8 rsvd_2[3];
|
|
|
|
u8 stream_csi[2];
|
|
|
|
u8 stream_target_csi[2];
|
|
|
|
s8 sig_evm;
|
|
|
|
u8 rsvd_3;
|
2013-05-19 04:28:07 +00:00
|
|
|
|
|
|
|
#ifdef __LITTLE_ENDIAN
|
2013-08-14 17:03:28 +00:00
|
|
|
u8 antsel_rx_keep_2:1; /* ex_intf_flg:1; */
|
|
|
|
u8 sgi_en:1;
|
|
|
|
u8 rxsc:2;
|
|
|
|
u8 idle_long:1;
|
|
|
|
u8 r_ant_train_en:1;
|
|
|
|
u8 ant_sel_b:1;
|
|
|
|
u8 ant_sel:1;
|
2013-08-12 04:36:23 +00:00
|
|
|
#else /* _BIG_ENDIAN_ */
|
2013-08-14 17:03:28 +00:00
|
|
|
u8 ant_sel:1;
|
|
|
|
u8 ant_sel_b:1;
|
|
|
|
u8 r_ant_train_en:1;
|
|
|
|
u8 idle_long:1;
|
|
|
|
u8 rxsc:2;
|
|
|
|
u8 sgi_en:1;
|
|
|
|
u8 antsel_rx_keep_2:1; /* ex_intf_flg:1; */
|
2013-05-19 04:28:07 +00:00
|
|
|
#endif
|
2013-07-26 21:52:36 +00:00
|
|
|
};
|
2013-05-19 04:28:07 +00:00
|
|
|
|
2013-08-15 03:03:17 +00:00
|
|
|
void ODM_PhyStatusQuery(struct odm_dm_struct *pDM_Odm,
|
2022-06-08 23:46:35 +00:00
|
|
|
struct phy_info *pPhyInfo,
|
2013-08-14 17:03:28 +00:00
|
|
|
u8 *pPhyStatus,
|
2013-12-31 03:18:17 +00:00
|
|
|
struct odm_per_pkt_info *pPktinfo,
|
|
|
|
struct adapter *adapt);
|
2013-05-19 04:28:07 +00:00
|
|
|
|
2022-06-08 23:46:35 +00:00
|
|
|
enum HAL_STATUS ODM_ConfigRFWithHeaderFile(struct odm_dm_struct *pDM_Odm);
|
2013-05-19 04:28:07 +00:00
|
|
|
#endif
|