alistair23-linux/drivers/staging/wilc1000/wilc_platform.h
Greg Kroah-Hartman da711eb68e staging: wilc1000: remove WILC_TimerHandle typedef
Use the proper structure (struct timer_list) instead, which makes things
much more readable.

Cc: Johnny Kim <johnny.kim@atmel.com>
Cc: Rachel Kim <rachel.kim@atmel.com>
Cc: Dean Lee <dean.lee@atmel.com>
Cc: Chris Park <chris.park@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-08-14 20:35:29 -07:00

49 lines
1.2 KiB
C

#ifndef __WILC_platform_H__
#define __WILC_platform_H__
#include <linux/kthread.h>
#include <linux/semaphore.h>
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/kernel.h>
#include <linux/delay.h>
#include <linux/types.h>
#include <linux/stat.h>
#include <linux/time.h>
#include <linux/version.h>
#include "linux/string.h"
/******************************************************************
* OS specific types
*******************************************************************/
/* 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