add rk3288 pinctrl dts code
[firefly-linux-kernel-4.4.55.git] / drivers / net / wireless / rtl8188eu / include / drv_conf.h
1 /******************************************************************************
2  *
3  * Copyright(c) 2007 - 2011 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  ******************************************************************************/
20 #ifndef __DRV_CONF_H__
21 #define __DRV_CONF_H__
22 #include "autoconf.h"
23
24 #if defined (PLATFORM_LINUX) && defined (PLATFORM_WINDOWS)
25
26 #error "Shall be Linux or Windows, but not both!\n"
27
28 #endif
29
30 //Older Android kernel doesn't has CONFIG_ANDROID defined,
31 //add this to force CONFIG_ANDROID defined
32 #ifdef CONFIG_PLATFORM_ANDROID
33 #ifndef CONFIG_ANDROID
34 #define CONFIG_ANDROID
35 #endif
36 #endif
37
38 #ifdef CONFIG_ANDROID
39 //Some Android build will restart the UI while non-printable ascii is passed
40 //between java and c/c++ layer (JNI). We force CONFIG_VALIDATE_SSID
41 //for Android here. If you are sure there is no risk on your system about this,
42 //mask this macro define to support non-printable ascii ssid.
43 //#define CONFIG_VALIDATE_SSID
44
45 //Android expect dbm as the rx signal strength unit
46 #define CONFIG_SIGNAL_DISPLAY_DBM
47 #endif
48
49 #if defined(CONFIG_HAS_EARLYSUSPEND) && defined (CONFIG_RESUME_IN_WORKQUEUE)
50         #warning "You have CONFIG_HAS_EARLYSUSPEND enabled in your system, we disable CONFIG_RESUME_IN_WORKQUEUE automatically"
51         #undef CONFIG_RESUME_IN_WORKQUEUE
52 #endif
53
54 #if defined(CONFIG_ANDROID_POWER) && defined (CONFIG_RESUME_IN_WORKQUEUE)
55         #warning "You have CONFIG_ANDROID_POWER enabled in your system, we disable CONFIG_RESUME_IN_WORKQUEUE automatically"
56         #undef CONFIG_RESUME_IN_WORKQUEUE
57 #endif
58
59 #ifdef CONFIG_RESUME_IN_WORKQUEUE //this can be removed, because there is no case for this...
60         #if !defined( CONFIG_WAKELOCK) && !defined(CONFIG_ANDROID_POWER)
61         #error "enable CONFIG_RESUME_IN_WORKQUEUE without CONFIG_WAKELOCK or CONFIG_ANDROID_POWER will suffer from the danger of wifi's unfunctionality..."
62         #error "If you still want to enable CONFIG_RESUME_IN_WORKQUEUE in this case, mask this preprossor checking and GOOD LUCK..."
63         #endif
64 #endif
65
66 //About USB VENDOR REQ
67 #if defined(CONFIG_USB_VENDOR_REQ_BUFFER_PREALLOC) && !defined(CONFIG_USB_VENDOR_REQ_MUTEX) 
68         #warning "define CONFIG_USB_VENDOR_REQ_MUTEX for CONFIG_USB_VENDOR_REQ_BUFFER_PREALLOC automatically"
69         #define CONFIG_USB_VENDOR_REQ_MUTEX
70 #endif
71 #if defined(CONFIG_VENDOR_REQ_RETRY) &&  !defined(CONFIG_USB_VENDOR_REQ_MUTEX)
72         #warning "define CONFIG_USB_VENDOR_REQ_MUTEX for CONFIG_VENDOR_REQ_RETRY automatically"
73         #define CONFIG_USB_VENDOR_REQ_MUTEX
74 #endif
75
76
77 //#include <rtl871x_byteorder.h>
78
79 #endif // __DRV_CONF_H__
80