Merge branch 'upstream' of git://git.linux-mips.org/pub/scm/upstream-linus
[linux-btrfs-devel.git] / drivers / staging / rtl8712 / rtl871x_rf.h
blob6c54966f13f7dbd23492cad615330a3831e83815
1 #ifndef __RTL871X_RF_H_
2 #define __RTL871X_RF_H_
4 #include "rtl871x_cmd.h"
5 #include "rtl871x_mp_phy_regdef.h"
7 #define OFDM_PHY 1
8 #define MIXED_PHY 2
9 #define CCK_PHY 3
10 #define NumRates (13)
11 #define RTL8711_RF_MAX_SENS 6
12 #define RTL8711_RF_DEF_SENS 4
13 #define NUM_CHANNELS 15
15 struct regulatory_class {
16 u32 starting_freq; /*MHz, */
17 u8 channel_set[NUM_CHANNELS];
18 u8 channel_cck_power[NUM_CHANNELS]; /*dbm*/
19 u8 channel_ofdm_power[NUM_CHANNELS];/*dbm*/
20 u8 txpower_limit; /*dbm*/
21 u8 channel_spacing; /*MHz*/
22 u8 modem;
25 enum _REG_PREAMBLE_MODE {
26 PREAMBLE_LONG = 1,
27 PREAMBLE_AUTO = 2,
28 PREAMBLE_SHORT = 3,
31 enum {
32 RTL8712_RFC_1T = 0x10,
33 RTL8712_RFC_2T = 0x20,
34 RTL8712_RFC_1R = 0x01,
35 RTL8712_RFC_2R = 0x02,
36 RTL8712_RFC_1T1R = 0x11,
37 RTL8712_RFC_1T2R = 0x12,
38 RTL8712_RFC_TURBO = 0x92,
39 RTL8712_RFC_2T2R = 0x22
42 #endif /*_RTL8711_RF_H_*/