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>
29 struct task_struct *thread_task;
35 /* wait_queue for waking the kernel thread */
36 wait_queue_head_t wakeup_q;
37 unsigned int wakeup_flag;
40 typedef struct CsrEvent CsrEventHandle;
41 typedef struct semaphore CsrMutexHandle;
42 typedef struct CsrThread CsrThreadHandle;
44 #else /* __KERNEL __ */
49 pthread_mutex_t mutex;
53 typedef struct CsrEvent CsrEventHandle;
54 typedef pthread_mutex_t CsrMutexHandle;
55 typedef pthread_t CsrThreadHandle;
57 #endif /* __KERNEL__ */