50e5f45e52bcc534e3b96caf6d1cf9abcd6c1688
[firefly-linux-kernel-4.4.55.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 #ifdef __cplusplus
17 extern "C" {
18 #endif
19
20 /* Result codes */
21 #define CSR_FE_RESULT_NO_MORE_EVENTS    ((CsrResult) 0x0001)
22 #define CSR_FE_RESULT_INVALID_POINTER   ((CsrResult) 0x0002)
23 #define CSR_FE_RESULT_INVALID_HANDLE    ((CsrResult) 0x0003)
24 #define CSR_FE_RESULT_NO_MORE_MUTEXES   ((CsrResult) 0x0004)
25 #define CSR_FE_RESULT_TIMEOUT           ((CsrResult) 0x0005)
26 #define CSR_FE_RESULT_NO_MORE_THREADS   ((CsrResult) 0x0006)
27
28 /* Thread priorities */
29 #define CSR_THREAD_PRIORITY_HIGHEST     ((u16) 0)
30 #define CSR_THREAD_PRIORITY_HIGH        ((u16) 1)
31 #define CSR_THREAD_PRIORITY_NORMAL      ((u16) 2)
32 #define CSR_THREAD_PRIORITY_LOW         ((u16) 3)
33 #define CSR_THREAD_PRIORITY_LOWEST      ((u16) 4)
34
35 #define CSR_EVENT_WAIT_INFINITE         ((u16) 0xFFFF)
36
37 void CsrThreadSleep(u16 sleepTimeInMs);
38
39 #ifdef __cplusplus
40 }
41 #endif
42
43 #endif