Merge branch 'for-linus' of git://git.o-hand.com/linux-rpurdie-backlight
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / drivers / staging / rt3090 / rt3390.h
1 /*
2 *************************************************************************
3 * Ralink Tech Inc.
4 * 5F., No.36, Taiyuan St., Jhubei City,
5 * Hsinchu County 302,
6 * Taiwan, R.O.C.
7 *
8 * (c) Copyright 2002-2007, Ralink Technology, Inc.
9 *
10 * This program is free software; you can redistribute it and/or modify *
11 * it under the terms of the GNU General Public License as published by *
12 * the Free Software Foundation; either version 2 of the License, or *
13 * (at your option) any later version. *
14 * *
15 * This program is distributed in the hope that it will be useful, *
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
18 * GNU General Public License for more details. *
19 * *
20 * You should have received a copy of the GNU General Public License *
21 * along with this program; if not, write to the *
22 * Free Software Foundation, Inc., *
23 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
24 * *
25 *************************************************************************
26
27 Module Name:
28 rt3390.h
29
30 Abstract:
31
32 Revision History:
33 Who When What
34 --------- ---------- ----------------------------------------------
35 */
36
37 #ifndef __RT3390_H__
38 #define __RT3390_H__
39
40 #ifdef RT3390
41
42 #ifndef RTMP_PCI_SUPPORT
43 #error "For RT3390, you should define the compile flag -DRTMP_PCI_SUPPORT"
44 #endif
45
46 #ifndef RTMP_MAC_PCI
47 #error "For RT3390, you should define the compile flag -DRTMP_MAC_PCI"
48 #endif
49
50 #ifndef RTMP_RF_RW_SUPPORT
51 #error "For RT3390, you should define the compile flag -DRTMP_RF_RW_SUPPORT"
52 #endif
53
54 #ifndef RT30xx
55 #error "For RT3390, you should define the compile flag -DRT30xx"
56 #endif
57
58 #ifdef CARRIER_DETECTION_SUPPORT
59 #define TONE_RADAR_DETECT_SUPPORT
60 #define CARRIER_SENSE_NEW_ALGO
61 #endif // CARRIER_DETECTION_SUPPORT //
62
63 #define PCIE_PS_SUPPORT
64
65 #include "mac_pci.h"
66 #include "rt33xx.h"
67
68 //
69 // Device ID & Vendor ID, these values should match EEPROM value
70 //
71 #define NIC3390_PCIe_DEVICE_ID 0x3090 // 1T/1R miniCard
72 #define NIC3391_PCIe_DEVICE_ID 0x3091 // 1T/2R miniCard
73 #define NIC3392_PCIe_DEVICE_ID 0x3092 // 2T/2R miniCard
74
75 #endif // RT3390 //
76
77 #endif //__RT3390_H__ //