1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- #ifndef __DRV_CONF_H__
- #define __DRV_CONF_H__
- #include "autoconf.h"
- #if defined (PLATFORM_LINUX) && defined (PLATFORM_WINDOWS)
- #error "Shall be Linux or Windows, but not both!\n"
- #endif
- #ifdef CONFIG_PLATFORM_ANDROID
- #define CONFIG_ANDROID
- #endif
- #ifdef CONFIG_ANDROID
- #ifdef CONFIG_PLATFORM_ARM_SUNxI
- #ifdef CONFIG_VALIDATE_SSID
- #undef CONFIG_VALIDATE_SSID
- #endif
- #endif
- #define CONFIG_SIGNAL_DISPLAY_DBM
- #endif
- #if defined(CONFIG_HAS_EARLYSUSPEND) && defined (CONFIG_RESUME_IN_WORKQUEUE)
- #warning "You have CONFIG_HAS_EARLYSUSPEND enabled in your system, we disable CONFIG_RESUME_IN_WORKQUEUE automatically"
- #undef CONFIG_RESUME_IN_WORKQUEUE
- #endif
- #if defined(CONFIG_ANDROID_POWER) && defined (CONFIG_RESUME_IN_WORKQUEUE)
- #warning "You have CONFIG_ANDROID_POWER enabled in your system, we disable CONFIG_RESUME_IN_WORKQUEUE automatically"
- #undef CONFIG_RESUME_IN_WORKQUEUE
- #endif
- #ifdef CONFIG_RESUME_IN_WORKQUEUE
- #if !defined( CONFIG_WAKELOCK) && !defined(CONFIG_ANDROID_POWER)
- #error "enable CONFIG_RESUME_IN_WORKQUEUE without CONFIG_WAKELOCK or CONFIG_ANDROID_POWER will suffer from the danger of wifi's unfunctionality..."
- #error "If you still want to enable CONFIG_RESUME_IN_WORKQUEUE in this case, mask this preprossor checking and GOOD LUCK..."
- #endif
- #endif
- #if defined(CONFIG_USB_VENDOR_REQ_BUFFER_PREALLOC) && !defined(CONFIG_USB_VENDOR_REQ_MUTEX)
- #warning "define CONFIG_USB_VENDOR_REQ_MUTEX for CONFIG_USB_VENDOR_REQ_BUFFER_PREALLOC automatically"
- #define CONFIG_USB_VENDOR_REQ_MUTEX
- #endif
- #if defined(CONFIG_VENDOR_REQ_RETRY) && !defined(CONFIG_USB_VENDOR_REQ_MUTEX)
- #warning "define CONFIG_USB_VENDOR_REQ_MUTEX for CONFIG_VENDOR_REQ_RETRY automatically"
- #define CONFIG_USB_VENDOR_REQ_MUTEX
- #endif
- #endif
|