staging: wilc1000: clean up sleep wrapper
[cascardo/linux.git] / drivers / staging / wilc1000 / wilc_oswrapper.h
1 #ifndef __WILC_OSWRAPPER_H__
2 #define __WILC_OSWRAPPER_H__
3
4 /*!
5  *  @file       wilc_oswrapper.h
6  *  @brief      Top level OS Wrapper, include this file and it will include all
7  *              other files as necessary
8  *  @author     syounan
9  *  @date       10 Aug 2010
10  *  @version    1.0
11  */
12
13 /* OS Wrapper interface version */
14 #define WILC_OSW_INTERFACE_VER 2
15
16 /* Integer Types */
17 typedef unsigned char WILC_Uint8;
18 typedef unsigned short WILC_Uint16;
19 typedef unsigned int WILC_Uint32;
20 typedef unsigned long long WILC_Uint64;
21 typedef signed char WILC_Sint8;
22 typedef signed short WILC_Sint16;
23 typedef signed int WILC_Sint32;
24 typedef signed long long WILC_Sint64;
25
26 /* Floating types */
27 typedef float WILC_Float;
28 typedef double WILC_Double;
29
30 /* Boolean type */
31 typedef enum {
32         WILC_FALSE = 0,
33         WILC_TRUE = 1
34 } WILC_Bool;
35
36 /* Character types */
37 typedef char WILC_Char;
38 typedef WILC_Uint16 WILC_WideChar;
39
40 #define WILC_OS_INFINITY (~((WILC_Uint32)0))
41 #define WILC_NULL ((void *)0)
42
43 /* standard min and max macros */
44 #define WILC_MIN(a, b)  (((a) < (b)) ? (a) : (b))
45 #define WILC_MAX(a, b)  (((a) > (b)) ? (a) : (b))
46
47 /* Os Configuration File */
48 #include "wilc_osconfig.h"
49 #include "wilc_platform.h"
50
51 /* Logging Functions */
52 #include "wilc_log.h"
53
54 /* Error reporting and handling support */
55 #include "wilc_errorsupport.h"
56
57 /* Semaphore support */
58 #include "wilc_semaphore.h"
59
60 /* Sleep support */
61 #include "wilc_sleep.h"
62
63 /* Timer support */
64 #ifdef CONFIG_WILC_TIMER_FEATURE
65 #include "wilc_timer.h"
66 #endif
67
68 /* Memory support */
69 #include "wilc_memory.h"
70
71 /* String Utilities */
72 #include "wilc_strutils.h"
73
74 /* Message Queue */
75 #include "wilc_msgqueue.h"
76
77 /* File operations */
78 #ifdef CONFIG_WILC_FILE_OPERATIONS_FEATURE
79 #include "wilc_fileops.h"
80 #endif
81
82 /* Event support */
83 #ifdef CONFIG_WILC_EVENT_FEATURE
84 #include "wilc_event.h"
85 #endif
86
87 /* Socket operations */
88 #ifdef CONFIG_WILC_SOCKET_FEATURE
89 #include "wilc_socket.h"
90 #endif
91
92 /* Math operations */
93 #ifdef CONFIG_WILC_MATH_OPERATIONS_FEATURE
94 #include "wilc_math.h"
95 #endif
96
97
98
99 #endif