summaryrefslogblamecommitdiffstats
path: root/drivers/staging/wilc1000/wilc_platform.h
blob: b7636167f4730ccb806e16ced25043008f29eaff (plain) (tree)
1
2
3

                           
 














                                                                     


                                       
                      



                                          
                              
                                      
                      
                              




                                 





                                                                      
      
#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;





/*******************************************************************
 *      others
 ********************************************************************/

#endif