packaging: update the changelog
[profile/ivi/intel-emgd-kmod.git] / drivers / pvr / services4 / srvkm / include / osperproc.h
1 /**********************************************************************
2  Copyright (c) Imagination Technologies Ltd.
3
4  Permission is hereby granted, free of charge, to any person obtaining a copy
5  of this software and associated documentation files (the "Software"), to deal
6  in the Software without restriction, including without limitation the rights
7  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8  copies of the Software, and to permit persons to whom the Software is
9  furnished to do so, subject to the following conditions:
10
11  The above copyright notice and this permission notice shall be included in
12  all copies or substantial portions of the Software.
13
14  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20  THE SOFTWARE.
21  ******************************************************************************/
22
23 #ifndef __OSPERPROC_H__
24 #define __OSPERPROC_H__
25
26 #if defined (__cplusplus)
27 extern "C" {
28 #endif
29
30 #if defined(__linux__)
31 PVRSRV_ERROR OSPerProcessPrivateDataInit(IMG_HANDLE *phOsPrivateData);
32 PVRSRV_ERROR OSPerProcessPrivateDataDeInit(IMG_HANDLE hOsPrivateData);
33
34 PVRSRV_ERROR OSPerProcessSetHandleOptions(PVRSRV_HANDLE_BASE *psHandleBase);
35 #else
36 #ifdef INLINE_IS_PRAGMA
37 #pragma inline(OSPerProcessPrivateDataInit)
38 #endif
39 static INLINE PVRSRV_ERROR OSPerProcessPrivateDataInit(IMG_HANDLE *phOsPrivateData)
40 {
41         PVR_UNREFERENCED_PARAMETER(phOsPrivateData);
42
43         return PVRSRV_OK;
44 }
45
46 #ifdef INLINE_IS_PRAGMA
47 #pragma inline(OSPerProcessPrivateDataDeInit)
48 #endif
49 static INLINE PVRSRV_ERROR OSPerProcessPrivateDataDeInit(IMG_HANDLE hOsPrivateData)
50 {
51         PVR_UNREFERENCED_PARAMETER(hOsPrivateData);
52
53         return PVRSRV_OK;
54 }
55
56 #ifdef INLINE_IS_PRAGMA
57 #pragma inline(OSPerProcessSetHandleOptions)
58 #endif
59 static INLINE PVRSRV_ERROR OSPerProcessSetHandleOptions(PVRSRV_HANDLE_BASE *psHandleBase)
60 {
61         PVR_UNREFERENCED_PARAMETER(psHandleBase);
62
63         return PVRSRV_OK;
64 }
65 #endif
66
67 #if defined (__cplusplus)
68 }
69 #endif
70
71 #endif
72