1
0
mirror of https://github.com/morrownr/8821cu-20210916.git synced 2024-11-22 21:44:59 +00:00
8821cu-20210916/hal/phydm/phydm_pmac_tx_setting.h

112 lines
3.0 KiB
C
Raw Normal View History

2022-11-17 14:26:57 +00:00
/******************************************************************************
*
* 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.
*
* The full GNU General Public License is included in this distribution in the
* file called LICENSE.
*
* Contact Information:
* wlanfae <wlanfae@realtek.com>
* Realtek Corporation, No. 2, Innovation Road II, Hsinchu Science Park,
* Hsinchu 300, Taiwan.
*
* Larry Finger <Larry.Finger@lwfinger.net>
*
*****************************************************************************/
#ifndef __PHYDM_PMAC_TX_SETTING_H__
#define __PHYDM_PMAC_TX_SETTING_H__
/*2020.03.16 Fix TxInfo content in B mode*/
#define PMAC_TX_SETTING_VERSION "2.1"
/* 1 ============================================================
* 1 Definition
* 1 ============================================================
*/
/* 1 ============================================================
* 1 structure
* 1 ============================================================
*/
struct phydm_pmac_info {
u8 en_pmac_tx:1; /*0: disable pmac 1: enable pmac */
u8 mode:3; /*0: Packet TX 3:Continuous TX */
u8 tx_rate; /*should be HW rate*/
u8 tx_sc;
u8 is_short_preamble:1;
u8 ndp_sound:1;
u8 bw:3; /* 0:20 1:40 2:80Mhz */
u8 m_stbc; /* bSTBC + 1 for WIN/CE, bSTBC for others*/
u16 packet_period;
u32 packet_count;
u32 packet_length;
u8 packet_pattern;
u16 sfd;
u8 signal_field;
u8 service_field;
u8 service_field_bit2:1;
u16 length;
u8 crc16[2];
u8 lsig[3];
u8 ht_sig[6];
u8 vht_sig_a[6];
u8 vht_sig_b[4];
u8 vht_sig_b_crc;
u8 vht_delimiter[4];
};
struct phydm_pmac_tx {
boolean is_cck_rate;
boolean is_ofdm_rate;
boolean is_ht_rate;
boolean is_vht_rate;
boolean cck_cont_tx;
boolean ofdm_cont_tx;
u8 path;
};
/* 1 ============================================================
* 1 enumeration
* 1 ============================================================
*/
enum phydm_pmac_mode {
NONE_TEST,
PKTS_TX,
PKTS_RX,
CONT_TX,
OFDM_SINGLE_TONE_TX,
CCK_CARRIER_SIPPRESSION_TX
};
/* 1 ============================================================
* 1 function prototype
* 1 ============================================================
*/
void phydm_start_cck_cont_tx(void *dm_void, struct phydm_pmac_info *tx_info);
void phydm_stop_cck_cont_tx(void *dm_void);
void phydm_start_ofdm_cont_tx(void *dm_void);
void phydm_stop_ofdm_cont_tx(void *dm_void);
void phydm_set_pmac_tx(void *dm_void, struct phydm_pmac_info *tx_info,
enum rf_path mpt_rf_path);
void phydm_set_tmac_tx(void *dm_void);
void phydm_pmac_tx_dbg(void *dm_void, char input[][16], u32 *_used,
char *output, u32 *_out_len);
#endif