]> pilppa.org Git - linux-2.6-omap-h63xx.git/blob - drivers/staging/winbond/linux/common.h
Staging: w35und: remove abs() and BIT() macros
[linux-2.6-omap-h63xx.git] / drivers / staging / winbond / linux / common.h
1 //
2 // common.h
3 //
4 // This file contains the OS dependant definition and function.
5 // Every OS has this file individual.
6 //
7
8 #define DebugUsbdStatusInformation( _A )
9
10 #ifndef COMMON_DEF
11 #define COMMON_DEF
12
13 #include <linux/version.h>
14 #include <linux/usb.h>
15 #include <linux/kernel.h> //need for kernel alert
16 #include <linux/autoconf.h>
17 #include <linux/sched.h>
18 #include <linux/signal.h>
19 #include <linux/slab.h> //memory allocate
20 #include <linux/module.h>
21 #include <linux/netdevice.h>
22 #include <linux/etherdevice.h>
23 #include <linux/init.h>//need for init and exit modules marco
24 #include <linux/ctype.h>
25 #include <linux/wait.h>
26 #include <linux/list.h>
27 #include <linux/wireless.h>
28 #include <linux/if_arp.h>
29 #include <asm/uaccess.h>
30 #include <net/iw_handler.h>
31 #include <linux/skbuff.h>
32
33
34 //#define DEBUG_ENABLED  1
35
36
37
38 //===============================================================
39 // Common type definition
40 //===============================================================
41
42 //===========================================
43 #define IGNORE      2
44 #define SUCCESS     1
45 #define FAILURE     0
46
47
48 #define STATUS_MEDIA_CONNECT 1
49 #define STATUS_MEDIA_DISCONNECT 0
50
51 //==================================================================================================
52 // Common function definition
53 //==================================================================================================
54 #define DEBUG_ENABLED
55 #define ETH_LENGTH_OF_ADDRESS   6
56 #ifdef DEBUG_ENABLED
57 #define WBDEBUG( _M )   printk _M
58 #else
59 #define WBDEBUG( _M )   0
60 #endif
61
62 #define OS_DISCONNECTED 0
63 #define OS_CONNECTED    1
64
65
66 #define OS_EVENT_INDICATE( _A, _B, _F )
67 #define OS_PMKID_STATUS_EVENT( _A )
68
69 #endif // COMMON_DEF
70