From e5fd91f1ef340da553f7a79da9540c3db711c937 Mon Sep 17 00:00:00 2001 From: André Fabian Silva Delgado Date: Tue, 8 Sep 2015 01:01:14 -0300 Subject: Linux-libre 4.2-gnu --- drivers/staging/wilc1000/wilc_platform.h | 52 ++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 drivers/staging/wilc1000/wilc_platform.h (limited to 'drivers/staging/wilc1000/wilc_platform.h') diff --git a/drivers/staging/wilc1000/wilc_platform.h b/drivers/staging/wilc1000/wilc_platform.h new file mode 100644 index 000000000..d03532cc3 --- /dev/null +++ b/drivers/staging/wilc1000/wilc_platform.h @@ -0,0 +1,52 @@ +#ifndef __WILC_platfrom_H__ +#define __WILC_platfrom_H__ + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "linux/string.h" +/****************************************************************** + * OS specific types + *******************************************************************/ + +typedef struct timer_list WILC_TimerHandle; + + + +/* Message Queue type is a structure */ +typedef struct __Message_struct { + void *pvBuffer; + u32 u32Length; + struct __Message_struct *pstrNext; +} Message; + +typedef struct __MessageQueue_struct { + struct semaphore hSem; + spinlock_t strCriticalSection; + bool bExiting; + u32 u32ReceiversCount; + Message *pstrMessageList; +} WILC_MsgQueueHandle; + + + +/*Time represented in 64 bit format*/ +typedef time_t WILC_Time; + + +/******************************************************************* + * others + ********************************************************************/ + +/* Generic printf function */ +#define __WILC_FILE__ __FILE__ +#define __WILC_FUNCTION__ __func__ +#define __WILC_LINE__ __LINE__ +#endif -- cgit v1.2.3-54-g00ecf