summaryrefslogtreecommitdiffstats
path: root/drivers/staging/wilc1000/wilc_msgqueue.h
diff options
context:
space:
mode:
authorChaehyun Lim2015-09-23 11:03:45 +0200
committerGreg Kroah-Hartman2015-09-29 02:38:30 +0200
commit6e8c37df4cf101c7f4c051868c4dc2c33dbabf0d (patch)
tree203d491a6591922882c7b2e2520c633d5265fed5 /drivers/staging/wilc1000/wilc_msgqueue.h
parentstaging: wilc1000: remove define DISABLE_PWRSAVE_AND_SCAN_DURING_IP (diff)
downloadkernel-qcow2-linux-6e8c37df4cf101c7f4c051868c4dc2c33dbabf0d.tar.gz
kernel-qcow2-linux-6e8c37df4cf101c7f4c051868c4dc2c33dbabf0d.tar.xz
kernel-qcow2-linux-6e8c37df4cf101c7f4c051868c4dc2c33dbabf0d.zip
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>
Diffstat (limited to 'drivers/staging/wilc1000/wilc_msgqueue.h')
-rw-r--r--drivers/staging/wilc1000/wilc_msgqueue.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/drivers/staging/wilc1000/wilc_msgqueue.h b/drivers/staging/wilc1000/wilc_msgqueue.h
index a3c0bba2cc88..982628e570a3 100644
--- a/drivers/staging/wilc1000/wilc_msgqueue.h
+++ b/drivers/staging/wilc1000/wilc_msgqueue.h
@@ -12,6 +12,21 @@
#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
* @details Creates a new Message queue, if the feature