staging: r8712u: Add the new driver to the mainline kernel
[pandora-kernel.git] / drivers / staging / rtl8712 / rtl871x_rf.h
1 #ifndef __RTL871X_RF_H_
2 #define __RTL871X_RF_H_
3
4 #include "rtl871x_cmd.h"
5 #include "rtl871x_mp_phy_regdef.h"
6
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
14
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;
23 };
24
25 enum    _REG_PREAMBLE_MODE{
26         PREAMBLE_LONG   = 1,
27         PREAMBLE_AUTO   = 2,
28         PREAMBLE_SHORT  = 3,
29 };
30
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
40 };
41
42 #endif /*_RTL8711_RF_H_*/
43