6d26ac6173b01e3921f02e58c9e18006cd140ad4
[pandora-kernel.git] / drivers / staging / csr / csr_framework_ext.h
1 #ifndef CSR_FRAMEWORK_EXT_H__
2 #define CSR_FRAMEWORK_EXT_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 #include "csr_result.h"
14 #include "csr_framework_ext_types.h"
15
16 /* Result codes */
17 #define CSR_FE_RESULT_NO_MORE_EVENTS    ((CsrResult) 0x0001)
18 #define CSR_FE_RESULT_INVALID_POINTER   ((CsrResult) 0x0002)
19 #define CSR_FE_RESULT_INVALID_HANDLE    ((CsrResult) 0x0003)
20 #define CSR_FE_RESULT_NO_MORE_MUTEXES   ((CsrResult) 0x0004)
21 #define CSR_FE_RESULT_TIMEOUT           ((CsrResult) 0x0005)
22 #define CSR_FE_RESULT_NO_MORE_THREADS   ((CsrResult) 0x0006)
23
24 /* Thread priorities */
25 #define CSR_THREAD_PRIORITY_HIGHEST     ((u16) 0)
26 #define CSR_THREAD_PRIORITY_HIGH        ((u16) 1)
27 #define CSR_THREAD_PRIORITY_NORMAL      ((u16) 2)
28 #define CSR_THREAD_PRIORITY_LOW         ((u16) 3)
29 #define CSR_THREAD_PRIORITY_LOWEST      ((u16) 4)
30
31 #define CSR_EVENT_WAIT_INFINITE         ((u16) 0xFFFF)
32
33 void CsrThreadSleep(u16 sleepTimeInMs);
34
35 #endif