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 struct task_struct *thread_task;
33 /* wait_queue for waking the kernel thread */
34 wait_queue_head_t wakeup_q;
35 unsigned int wakeup_flag;
38 typedef struct CsrEvent CsrEventHandle;
39 typedef struct semaphore CsrMutexHandle;
40 typedef struct CsrThread CsrThreadHandle;
42 #else /* __KERNEL __ */
46 pthread_mutex_t mutex;
50 typedef struct CsrEvent CsrEventHandle;
51 typedef pthread_mutex_t CsrMutexHandle;
52 typedef pthread_t CsrThreadHandle;
54 #endif /* __KERNEL__ */