Ali Bahar | 0e54f60 | 2011-08-23 13:53:37 +0800 | [diff] [blame] | 1 | /****************************************************************************** |
| 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 | * |
Ali Bahar | b4f6209 | 2011-08-23 13:53:38 +0800 | [diff] [blame] | 18 | * Modifications for inclusion into the Linux staging tree are |
| 19 | * Copyright(c) 2010 Larry Finger. All rights reserved. |
| 20 | * |
| 21 | * Contact information: |
| 22 | * WLAN FAE <wlanfae@realtek.com> |
| 23 | * Larry Finger <Larry.Finger@lwfinger.net> |
Ali Bahar | 0e54f60 | 2011-08-23 13:53:37 +0800 | [diff] [blame] | 24 | * |
| 25 | ******************************************************************************/ |
Larry Finger | 2865d42 | 2010-08-20 10:15:30 -0500 | [diff] [blame] | 26 | #ifndef __RTL871X_RF_H_ |
| 27 | #define __RTL871X_RF_H_ |
| 28 | |
| 29 | #include "rtl871x_cmd.h" |
| 30 | #include "rtl871x_mp_phy_regdef.h" |
| 31 | |
| 32 | #define OFDM_PHY 1 |
| 33 | #define MIXED_PHY 2 |
| 34 | #define CCK_PHY 3 |
| 35 | #define NumRates (13) |
| 36 | #define RTL8711_RF_MAX_SENS 6 |
| 37 | #define RTL8711_RF_DEF_SENS 4 |
| 38 | #define NUM_CHANNELS 15 |
| 39 | |
| 40 | struct regulatory_class { |
| 41 | u32 starting_freq; /*MHz, */ |
| 42 | u8 channel_set[NUM_CHANNELS]; |
| 43 | u8 channel_cck_power[NUM_CHANNELS]; /*dbm*/ |
| 44 | u8 channel_ofdm_power[NUM_CHANNELS];/*dbm*/ |
| 45 | u8 txpower_limit; /*dbm*/ |
| 46 | u8 channel_spacing; /*MHz*/ |
| 47 | u8 modem; |
| 48 | }; |
| 49 | |
Javier M. Mellid | 0593758 | 2011-04-02 03:01:49 +0200 | [diff] [blame] | 50 | enum _REG_PREAMBLE_MODE { |
Larry Finger | 2865d42 | 2010-08-20 10:15:30 -0500 | [diff] [blame] | 51 | PREAMBLE_LONG = 1, |
| 52 | PREAMBLE_AUTO = 2, |
| 53 | PREAMBLE_SHORT = 3, |
| 54 | }; |
| 55 | |
| 56 | enum { |
| 57 | RTL8712_RFC_1T = 0x10, |
| 58 | RTL8712_RFC_2T = 0x20, |
| 59 | RTL8712_RFC_1R = 0x01, |
| 60 | RTL8712_RFC_2R = 0x02, |
| 61 | RTL8712_RFC_1T1R = 0x11, |
| 62 | RTL8712_RFC_1T2R = 0x12, |
| 63 | RTL8712_RFC_TURBO = 0x92, |
| 64 | RTL8712_RFC_2T2R = 0x22 |
| 65 | }; |
| 66 | |
| 67 | #endif /*_RTL8711_RF_H_*/ |
| 68 | |