mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2024-11-10 15:39:38 +00:00
065126d8ce
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
146 lines
4.6 KiB
C
Executable file
146 lines
4.6 KiB
C
Executable file
/******************************************************************************
|
|
*
|
|
* Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
|
|
*
|
|
* 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.
|
|
*
|
|
* You should have received a copy of the GNU General Public License along with
|
|
* this program; if not, write to the Free Software Foundation, Inc.,
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
|
|
*
|
|
*
|
|
******************************************************************************/
|
|
#ifndef __RTL8723A_PG_H__
|
|
#define __RTL8723A_PG_H__
|
|
|
|
//====================================================
|
|
// EEPROM/Efuse PG Offset for 8723E/8723U/8723S
|
|
//====================================================
|
|
#define EEPROM_CCK_TX_PWR_INX_8723A 0x10
|
|
#define EEPROM_HT40_1S_TX_PWR_INX_8723A 0x16
|
|
#define EEPROM_HT20_TX_PWR_INX_DIFF_8723A 0x1C
|
|
#define EEPROM_OFDM_TX_PWR_INX_DIFF_8723A 0x1F
|
|
#define EEPROM_HT40_MAX_PWR_OFFSET_8723A 0x22
|
|
#define EEPROM_HT20_MAX_PWR_OFFSET_8723A 0x25
|
|
|
|
#define EEPROM_ChannelPlan_8723A 0x28
|
|
#define EEPROM_TSSI_A_8723A 0x29
|
|
#define EEPROM_THERMAL_METER_8723A 0x2A
|
|
#define RF_OPTION1_8723A 0x2B
|
|
#define RF_OPTION2_8723A 0x2C
|
|
#define RF_OPTION3_8723A 0x2D
|
|
#define RF_OPTION4_8723A 0x2E
|
|
#define EEPROM_VERSION_8723A 0x30
|
|
#define EEPROM_CustomID_8723A 0x31
|
|
#define EEPROM_SubCustomID_8723A 0x32
|
|
#define EEPROM_XTAL_K_8723A 0x33
|
|
#define EEPROM_Chipset_8723A 0x34
|
|
|
|
// RTL8723AE
|
|
#define EEPROM_VID_8723AE 0x49
|
|
#define EEPROM_DID_8723AE 0x4B
|
|
#define EEPROM_SVID_8723AE 0x4D
|
|
#define EEPROM_SMID_8723AE 0x4F
|
|
#define EEPROM_MAC_ADDR_8723AE 0x67
|
|
|
|
// RTL8723AU
|
|
#define EEPROM_MAC_ADDR_8723AU 0xC6
|
|
#define EEPROM_VID_8723AU 0xB7
|
|
#define EEPROM_PID_8723AU 0xB9
|
|
|
|
// RTL8723AS
|
|
#define EEPROM_MAC_ADDR_8723AS 0xAA
|
|
|
|
//====================================================
|
|
// EEPROM/Efuse Value Type
|
|
//====================================================
|
|
#define EETYPE_TX_PWR 0x0
|
|
|
|
//====================================================
|
|
// EEPROM/Efuse Default Value
|
|
//====================================================
|
|
#define EEPROM_Default_CrystalCap_8723A 0x20
|
|
|
|
|
|
//----------------------------------------------------------------------------
|
|
// EEPROM/EFUSE data structure definition.
|
|
//----------------------------------------------------------------------------
|
|
#define MAX_RF_PATH_NUM 2
|
|
#define MAX_CHNL_GROUP 3+9
|
|
typedef struct _TxPowerInfo
|
|
{
|
|
u8 CCKIndex[MAX_RF_PATH_NUM][MAX_CHNL_GROUP];
|
|
u8 HT40_1SIndex[MAX_RF_PATH_NUM][MAX_CHNL_GROUP];
|
|
u8 HT40_2SIndexDiff[MAX_RF_PATH_NUM][MAX_CHNL_GROUP];
|
|
u8 HT20IndexDiff[MAX_RF_PATH_NUM][MAX_CHNL_GROUP];
|
|
u8 OFDMIndexDiff[MAX_RF_PATH_NUM][MAX_CHNL_GROUP];
|
|
u8 HT40MaxOffset[MAX_RF_PATH_NUM][MAX_CHNL_GROUP];
|
|
u8 HT20MaxOffset[MAX_RF_PATH_NUM][MAX_CHNL_GROUP];
|
|
u8 TSSI_A[3];
|
|
u8 TSSI_B[3];
|
|
u8 TSSI_A_5G[3]; //5GL/5GM/5GH
|
|
u8 TSSI_B_5G[3];
|
|
} TxPowerInfo, *PTxPowerInfo;
|
|
|
|
#if 0
|
|
#define MAX_RF_PATH 4
|
|
#define MAX_CHNL_GROUP_24G 6
|
|
#define MAX_CHNL_GROUP_5G 14
|
|
|
|
// It must always set to 4, otherwise read efuse table secquence will be wrong.
|
|
#define MAX_TX_COUNT 4
|
|
|
|
typedef struct _TxPowerInfo24G
|
|
{
|
|
u8 IndexCCK_Base[MAX_RF_PATH][MAX_CHNL_GROUP_24G];
|
|
u8 IndexBW40_Base[MAX_RF_PATH][MAX_CHNL_GROUP_24G-1];
|
|
//If only one tx, only BW20 and OFDM are used.
|
|
s8 CCK_Diff[MAX_RF_PATH][MAX_TX_COUNT];
|
|
s8 OFDM_Diff[MAX_RF_PATH][MAX_TX_COUNT];
|
|
s8 BW20_Diff[MAX_RF_PATH][MAX_TX_COUNT];
|
|
s8 BW40_Diff[MAX_RF_PATH][MAX_TX_COUNT];
|
|
} TxPowerInfo24G, *PTxPowerInfo24G;
|
|
|
|
typedef struct _TxPowerInfo5G
|
|
{
|
|
u8 IndexBW40_Base[MAX_RF_PATH][MAX_CHNL_GROUP_5G];
|
|
//If only one tx, only BW20, OFDM, BW80 and BW160 are used.
|
|
s8 OFDM_Diff[MAX_RF_PATH][MAX_TX_COUNT];
|
|
s8 BW20_Diff[MAX_RF_PATH][MAX_TX_COUNT];
|
|
s8 BW40_Diff[MAX_RF_PATH][MAX_TX_COUNT];
|
|
s8 BW80_Diff[MAX_RF_PATH][MAX_TX_COUNT];
|
|
s8 BW160_Diff[MAX_RF_PATH][MAX_TX_COUNT];
|
|
} TxPowerInfo5G, *PTxPowerInfo5G;
|
|
#endif
|
|
|
|
typedef enum _BT_Ant_NUM
|
|
{
|
|
Ant_x2 = 0,
|
|
Ant_x1 = 1
|
|
} BT_Ant_NUM, *PBT_Ant_NUM;
|
|
|
|
typedef enum _BT_CoType
|
|
{
|
|
BT_2Wire = 0,
|
|
BT_ISSC_3Wire = 1,
|
|
BT_Accel = 2,
|
|
BT_CSR_BC4 = 3,
|
|
BT_CSR_BC8 = 4,
|
|
BT_RTL8756 = 5,
|
|
BT_RTL8723A = 6
|
|
} BT_CoType, *PBT_CoType;
|
|
|
|
typedef enum _BT_RadioShared
|
|
{
|
|
BT_Radio_Shared = 0,
|
|
BT_Radio_Individual = 1,
|
|
} BT_RadioShared, *PBT_RadioShared;
|
|
#endif
|
|
|