OSDN Git Service

be6393cba8c29c689f50a06b9088ec480dbb4123
[uclinux-h8/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 #include "wilc_timer.h"
65
66 /* Memory support */
67 #include "wilc_memory.h"
68
69 /* String Utilities */
70 #include "wilc_strutils.h"
71
72 /* Message Queue */
73 #include "wilc_msgqueue.h"
74
75 /* File operations */
76 #ifdef CONFIG_WILC_FILE_OPERATIONS_FEATURE
77 #include "wilc_fileops.h"
78 #endif
79
80 /* Event support */
81 #ifdef CONFIG_WILC_EVENT_FEATURE
82 #include "wilc_event.h"
83 #endif
84
85 /* Socket operations */
86 #ifdef CONFIG_WILC_SOCKET_FEATURE
87 #include "wilc_socket.h"
88 #endif
89
90 /* Math operations */
91 #ifdef CONFIG_WILC_MATH_OPERATIONS_FEATURE
92 #include "wilc_math.h"
93 #endif
94
95
96
97 #endif