1 #ifndef __WILC_platform_H__
2 #define __WILC_platform_H__
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 /******************************************************************
17 *******************************************************************/
19 /* Message Queue type is a structure */
20 typedef struct __Message_struct {
23 struct __Message_struct *pstrNext;
26 typedef struct __MessageQueue_struct {
27 struct semaphore hSem;
28 spinlock_t strCriticalSection;
30 u32 u32ReceiversCount;
31 Message *pstrMessageList;
32 } WILC_MsgQueueHandle;
36 /*Time represented in 64 bit format*/
37 typedef time_t WILC_Time;
40 /*******************************************************************
42 ********************************************************************/
44 /* Generic printf function */
45 #define __WILC_FILE__ __FILE__
46 #define __WILC_FUNCTION__ __func__
47 #define __WILC_LINE__ __LINE__