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>
28 /* wait_queue for waking the kernel thread */
29 wait_queue_head_t wakeup_q;
30 unsigned int wakeup_flag;
33 typedef struct CsrEvent CsrEventHandle;
34 typedef struct semaphore CsrMutexHandle;
36 #else /* __KERNEL __ */
40 pthread_mutex_t mutex;
44 typedef struct CsrEvent CsrEventHandle;
45 typedef pthread_mutex_t CsrMutexHandle;
47 #endif /* __KERNEL__ */