1 #ifndef CSR_FRAMEWORK_EXT_TYPES_H__
2 #define CSR_FRAMEWORK_EXT_TYPES_H__
3 /*****************************************************************************
5 (c) Cambridge Silicon Radio Limited 2010
6 All rights reserved and confidential information of CSR
8 Refer to LICENSE.txt included with this source for details
11 *****************************************************************************/
14 #include <linux/kthread.h>
15 #include <linux/semaphore.h>
23 /* wait_queue for waking the kernel thread */
24 wait_queue_head_t wakeup_q;
25 unsigned int wakeup_flag;
28 typedef struct CsrEvent CsrEventHandle;
29 typedef struct semaphore CsrMutexHandle;
31 #else /* __KERNEL __ */
35 pthread_mutex_t mutex;
39 typedef struct CsrEvent CsrEventHandle;
40 typedef pthread_mutex_t CsrMutexHandle;
42 #endif /* __KERNEL__ */