Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 /******************************************************************************
0003  *
0004  * Copyright(c) 2007 - 2010 Realtek Corporation. All rights reserved.
0005  *
0006  * Modifications for inclusion into the Linux staging tree are
0007  * Copyright(c) 2010 Larry Finger. All rights reserved.
0008  *
0009  * Contact information:
0010  * WLAN FAE <wlanfae@realtek.com>
0011  * Larry Finger <Larry.Finger@lwfinger.net>
0012  *
0013  ******************************************************************************/
0014 #ifndef __RTL871X_RF_H_
0015 #define __RTL871X_RF_H_
0016 
0017 #include "rtl871x_cmd.h"
0018 #include "rtl871x_mp_phy_regdef.h"
0019 
0020 #define OFDM_PHY        1
0021 #define MIXED_PHY       2
0022 #define CCK_PHY     3
0023 #define NumRates    (13)
0024 #define RTL8711_RF_MAX_SENS 6
0025 #define RTL8711_RF_DEF_SENS 4
0026 #define NUM_CHANNELS    15
0027 
0028 struct  regulatory_class {
0029     u32 starting_freq;      /*MHz, */
0030     u8  channel_set[NUM_CHANNELS];
0031     u8  channel_cck_power[NUM_CHANNELS]; /*dbm*/
0032     u8  channel_ofdm_power[NUM_CHANNELS];/*dbm*/
0033     u8  txpower_limit;      /*dbm*/
0034     u8  channel_spacing;    /*MHz*/
0035     u8  modem;
0036 };
0037 
0038 enum    _REG_PREAMBLE_MODE {
0039     PREAMBLE_LONG   = 1,
0040     PREAMBLE_AUTO   = 2,
0041     PREAMBLE_SHORT  = 3,
0042 };
0043 
0044 enum {
0045     RTL8712_RFC_1T = 0x10,
0046     RTL8712_RFC_2T = 0x20,
0047     RTL8712_RFC_1R = 0x01,
0048     RTL8712_RFC_2R = 0x02,
0049     RTL8712_RFC_1T1R = 0x11,
0050     RTL8712_RFC_1T2R = 0x12,
0051     RTL8712_RFC_TURBO = 0x92,
0052     RTL8712_RFC_2T2R = 0x22
0053 };
0054 
0055 #endif /*__RTL871X_RF_H_*/