staging: wilc1000: remove WILC_TimerHandle typedef
[firefly-linux-kernel-4.4.55.git] / drivers / staging / wilc1000 / wilc_platform.h
1 #ifndef __WILC_platform_H__
2 #define __WILC_platform_H__
3
4 #include <linux/kthread.h>
5 #include <linux/semaphore.h>
6 #include <linux/module.h>
7 #include <linux/slab.h>
8 #include <linux/kernel.h>
9 #include <linux/delay.h>
10 #include <linux/types.h>
11 #include <linux/stat.h>
12 #include <linux/time.h>
13 #include <linux/version.h>
14 #include "linux/string.h"
15 /******************************************************************
16  *      OS specific types
17  *******************************************************************/
18
19 /* Message Queue type is a structure */
20 typedef struct __Message_struct {
21         void *pvBuffer;
22         u32 u32Length;
23         struct __Message_struct *pstrNext;
24 } Message;
25
26 typedef struct __MessageQueue_struct {
27         struct semaphore hSem;
28         spinlock_t strCriticalSection;
29         bool bExiting;
30         u32 u32ReceiversCount;
31         Message *pstrMessageList;
32 } WILC_MsgQueueHandle;
33
34
35
36 /*Time represented in 64 bit format*/
37 typedef time_t WILC_Time;
38
39
40 /*******************************************************************
41  *      others
42  ********************************************************************/
43
44 /* Generic printf function */
45 #define __WILC_FILE__           __FILE__
46 #define __WILC_FUNCTION__       __func__
47 #define __WILC_LINE__           __LINE__
48 #endif