tizen 2.4 release
[profile/mobile/platform/kernel/linux-3.10-sc7730.git] / drivers / staging / csr / csr_framework_ext_types.h
1 #ifndef CSR_FRAMEWORK_EXT_TYPES_H__
2 #define CSR_FRAMEWORK_EXT_TYPES_H__
3 /*****************************************************************************
4
5         (c) Cambridge Silicon Radio Limited 2010
6         All rights reserved and confidential information of CSR
7
8         Refer to LICENSE.txt included with this source for details
9         on the license terms.
10
11 *****************************************************************************/
12
13 #ifdef __KERNEL__
14 #include <linux/kthread.h>
15 #include <linux/semaphore.h>
16 #else
17 #include <pthread.h>
18 #endif
19
20 #ifdef __KERNEL__
21
22 typedef struct semaphore CsrMutexHandle;
23
24 #else /* __KERNEL __ */
25
26 typedef pthread_mutex_t CsrMutexHandle;
27
28 #endif /* __KERNEL__ */
29
30 #endif