staging: wilc1000: move struct Message and WILC_MsgQueueHandle
This patch moves struct Message and WILC_MsgQueueHandle from wilc_platform.h to wilc_msgqueue.h because those two structures are used only at wilc_msgqueue.c so that it is good to be defined at wilc_msgqueue.h Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
70f52debbe
commit
6e8c37df4c
2 changed files with 15 additions and 14 deletions
|
@ -12,6 +12,21 @@
|
||||||
|
|
||||||
#include "wilc_platform.h"
|
#include "wilc_platform.h"
|
||||||
|
|
||||||
|
/* 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;
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* @brief Creates a new Message queue
|
* @brief Creates a new Message queue
|
||||||
* @details Creates a new Message queue, if the feature
|
* @details Creates a new Message queue, if the feature
|
||||||
|
|
|
@ -16,20 +16,6 @@
|
||||||
* OS specific types
|
* 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;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue