Merge branch 'linux-linaro-lsk-v4.4-android' of git://git.linaro.org/kernel/linux...
[firefly-linux-kernel-4.4.55.git] / drivers / gpu / rogue / generated / syncsexport_bridge / common_syncsexport_bridge.h
1 /*************************************************************************/ /*!
2 @File
3 @Title          Common bridge header for syncsexport
4 @Copyright      Copyright (c) Imagination Technologies Ltd. All Rights Reserved
5 @Description    Declares common defines and structures that are used by both
6                 the client and sever side of the bridge for syncsexport
7 @License        Dual MIT/GPLv2
8
9 The contents of this file are subject to the MIT license as set out below.
10
11 Permission is hereby granted, free of charge, to any person obtaining a copy
12 of this software and associated documentation files (the "Software"), to deal
13 in the Software without restriction, including without limitation the rights
14 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
15 copies of the Software, and to permit persons to whom the Software is
16 furnished to do so, subject to the following conditions:
17
18 The above copyright notice and this permission notice shall be included in
19 all copies or substantial portions of the Software.
20
21 Alternatively, the contents of this file may be used under the terms of
22 the GNU General Public License Version 2 ("GPL") in which case the provisions
23 of GPL are applicable instead of those above.
24
25 If you wish to allow use of your version of this file only under the terms of
26 GPL, and not to allow others to use your version of this file under the terms
27 of the MIT license, indicate your decision by deleting the provisions above
28 and replace them with the notice and other provisions required by GPL as set
29 out in the file called "GPL-COPYING" included in this distribution. If you do
30 not delete the provisions above, a recipient may use your version of this file
31 under the terms of either the MIT license or GPL.
32
33 This License is also included in this distribution in the file called
34 "MIT-COPYING".
35
36 EXCEPT AS OTHERWISE STATED IN A NEGOTIATED AGREEMENT: (A) THE SOFTWARE IS
37 PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
38 BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
39 PURPOSE AND NONINFRINGEMENT; AND (B) IN NO EVENT SHALL THE AUTHORS OR
40 COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
41 IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
42 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
43 */ /**************************************************************************/
44
45 #ifndef COMMON_SYNCSEXPORT_BRIDGE_H
46 #define COMMON_SYNCSEXPORT_BRIDGE_H
47
48
49
50 #include "pvr_bridge_io.h"
51
52 #define PVRSRV_BRIDGE_SYNCSEXPORT_CMD_FIRST                     (PVRSRV_BRIDGE_SYNCSEXPORT_START)
53 #define PVRSRV_BRIDGE_SYNCSEXPORT_SYNCPRIMSERVERSECUREEXPORT                    PVRSRV_IOWR(PVRSRV_BRIDGE_SYNCSEXPORT_CMD_FIRST+0)
54 #define PVRSRV_BRIDGE_SYNCSEXPORT_SYNCPRIMSERVERSECUREUNEXPORT                  PVRSRV_IOWR(PVRSRV_BRIDGE_SYNCSEXPORT_CMD_FIRST+1)
55 #define PVRSRV_BRIDGE_SYNCSEXPORT_SYNCPRIMSERVERSECUREIMPORT                    PVRSRV_IOWR(PVRSRV_BRIDGE_SYNCSEXPORT_CMD_FIRST+2)
56 #define PVRSRV_BRIDGE_SYNCSEXPORT_CMD_LAST                      (PVRSRV_BRIDGE_SYNCSEXPORT_CMD_FIRST+2)
57
58
59 /*******************************************
60             SyncPrimServerSecureExport          
61  *******************************************/
62
63 /* Bridge in structure for SyncPrimServerSecureExport */
64 typedef struct PVRSRV_BRIDGE_IN_SYNCPRIMSERVERSECUREEXPORT_TAG
65 {
66         IMG_HANDLE hSyncHandle;
67 } __attribute__((packed)) PVRSRV_BRIDGE_IN_SYNCPRIMSERVERSECUREEXPORT;
68
69
70 /* Bridge out structure for SyncPrimServerSecureExport */
71 typedef struct PVRSRV_BRIDGE_OUT_SYNCPRIMSERVERSECUREEXPORT_TAG
72 {
73         IMG_SECURE_TYPE Export;
74         PVRSRV_ERROR eError;
75 } __attribute__((packed)) PVRSRV_BRIDGE_OUT_SYNCPRIMSERVERSECUREEXPORT;
76
77 /*******************************************
78             SyncPrimServerSecureUnexport          
79  *******************************************/
80
81 /* Bridge in structure for SyncPrimServerSecureUnexport */
82 typedef struct PVRSRV_BRIDGE_IN_SYNCPRIMSERVERSECUREUNEXPORT_TAG
83 {
84         IMG_HANDLE hExport;
85 } __attribute__((packed)) PVRSRV_BRIDGE_IN_SYNCPRIMSERVERSECUREUNEXPORT;
86
87
88 /* Bridge out structure for SyncPrimServerSecureUnexport */
89 typedef struct PVRSRV_BRIDGE_OUT_SYNCPRIMSERVERSECUREUNEXPORT_TAG
90 {
91         PVRSRV_ERROR eError;
92 } __attribute__((packed)) PVRSRV_BRIDGE_OUT_SYNCPRIMSERVERSECUREUNEXPORT;
93
94 /*******************************************
95             SyncPrimServerSecureImport          
96  *******************************************/
97
98 /* Bridge in structure for SyncPrimServerSecureImport */
99 typedef struct PVRSRV_BRIDGE_IN_SYNCPRIMSERVERSECUREIMPORT_TAG
100 {
101         IMG_SECURE_TYPE Export;
102 } __attribute__((packed)) PVRSRV_BRIDGE_IN_SYNCPRIMSERVERSECUREIMPORT;
103
104
105 /* Bridge out structure for SyncPrimServerSecureImport */
106 typedef struct PVRSRV_BRIDGE_OUT_SYNCPRIMSERVERSECUREIMPORT_TAG
107 {
108         IMG_HANDLE hSyncHandle;
109         IMG_UINT32 ui32SyncPrimVAddr;
110         PVRSRV_ERROR eError;
111 } __attribute__((packed)) PVRSRV_BRIDGE_OUT_SYNCPRIMSERVERSECUREIMPORT;
112
113 #endif /* COMMON_SYNCSEXPORT_BRIDGE_H */