blob: d2a914f108e6117cb1eb3f37ea01c4b0a0f46abc [file] [log] [blame]
Ali Bahar0e54f602011-08-23 13:53:37 +08001/******************************************************************************
2 *
3 * Copyright(c) 2007 - 2010 Realtek Corporation. All rights reserved.
4 *
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.
8 *
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
12 * more details.
13 *
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
17 *
18 *
19 ******************************************************************************/
Larry Finger2865d422010-08-20 10:15:30 -050020#ifndef __RTL871X_RF_H_
21#define __RTL871X_RF_H_
22
23#include "rtl871x_cmd.h"
24#include "rtl871x_mp_phy_regdef.h"
25
26#define OFDM_PHY 1
27#define MIXED_PHY 2
28#define CCK_PHY 3
29#define NumRates (13)
30#define RTL8711_RF_MAX_SENS 6
31#define RTL8711_RF_DEF_SENS 4
32#define NUM_CHANNELS 15
33
34struct regulatory_class {
35 u32 starting_freq; /*MHz, */
36 u8 channel_set[NUM_CHANNELS];
37 u8 channel_cck_power[NUM_CHANNELS]; /*dbm*/
38 u8 channel_ofdm_power[NUM_CHANNELS];/*dbm*/
39 u8 txpower_limit; /*dbm*/
40 u8 channel_spacing; /*MHz*/
41 u8 modem;
42};
43
Javier M. Mellid05937582011-04-02 03:01:49 +020044enum _REG_PREAMBLE_MODE {
Larry Finger2865d422010-08-20 10:15:30 -050045 PREAMBLE_LONG = 1,
46 PREAMBLE_AUTO = 2,
47 PREAMBLE_SHORT = 3,
48};
49
50enum {
51 RTL8712_RFC_1T = 0x10,
52 RTL8712_RFC_2T = 0x20,
53 RTL8712_RFC_1R = 0x01,
54 RTL8712_RFC_2R = 0x02,
55 RTL8712_RFC_1T1R = 0x11,
56 RTL8712_RFC_1T2R = 0x12,
57 RTL8712_RFC_TURBO = 0x92,
58 RTL8712_RFC_2T2R = 0x22
59};
60
61#endif /*_RTL8711_RF_H_*/
62