1 /*************************************************************************/ /*!
3 @Title Common bridge header for pdumpctrl
4 @Copyright Copyright (c) Imagination Technologies Ltd. All Rights Reserved
5 @Description Declares common defines and structures used by both the client
6 and server side of the bridge for pdumpctrl
7 @License Dual MIT/GPLv2
9 The contents of this file are subject to the MIT license as set out below.
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:
18 The above copyright notice and this permission notice shall be included in
19 all copies or substantial portions of the Software.
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.
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.
33 This License is also included in this distribution in the file called
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 */ /**************************************************************************/
45 #ifndef COMMON_PDUMPCTRL_BRIDGE_H
46 #define COMMON_PDUMPCTRL_BRIDGE_H
48 #include <powervr/mem_types.h>
50 #include "img_types.h"
51 #include "pvrsrv_error.h"
55 #define PVRSRV_BRIDGE_PDUMPCTRL_CMD_FIRST 0
56 #define PVRSRV_BRIDGE_PDUMPCTRL_PVRSRVPDUMPISCAPTURING PVRSRV_BRIDGE_PDUMPCTRL_CMD_FIRST+0
57 #define PVRSRV_BRIDGE_PDUMPCTRL_PVRSRVPDUMPGETFRAME PVRSRV_BRIDGE_PDUMPCTRL_CMD_FIRST+1
58 #define PVRSRV_BRIDGE_PDUMPCTRL_PVRSRVPDUMPSETDEFAULTCAPTUREPARAMS PVRSRV_BRIDGE_PDUMPCTRL_CMD_FIRST+2
59 #define PVRSRV_BRIDGE_PDUMPCTRL_PVRSRVPDUMPISLASTCAPTUREFRAME PVRSRV_BRIDGE_PDUMPCTRL_CMD_FIRST+3
60 #define PVRSRV_BRIDGE_PDUMPCTRL_CMD_LAST (PVRSRV_BRIDGE_PDUMPCTRL_CMD_FIRST+3)
63 /*******************************************
64 PVRSRVPDumpIsCapturing
65 *******************************************/
67 /* Bridge in structure for PVRSRVPDumpIsCapturing */
68 typedef struct PVRSRV_BRIDGE_IN_PVRSRVPDUMPISCAPTURING_TAG
70 IMG_UINT32 ui32EmptyStructPlaceholder;
71 } __attribute__((packed)) PVRSRV_BRIDGE_IN_PVRSRVPDUMPISCAPTURING;
73 /* Bridge out structure for PVRSRVPDumpIsCapturing */
74 typedef struct PVRSRV_BRIDGE_OUT_PVRSRVPDUMPISCAPTURING_TAG
76 IMG_BOOL bIsCapturing;
78 } __attribute__((packed)) PVRSRV_BRIDGE_OUT_PVRSRVPDUMPISCAPTURING;
81 /*******************************************
83 *******************************************/
85 /* Bridge in structure for PVRSRVPDumpGetFrame */
86 typedef struct PVRSRV_BRIDGE_IN_PVRSRVPDUMPGETFRAME_TAG
88 IMG_UINT32 ui32EmptyStructPlaceholder;
89 } __attribute__((packed)) PVRSRV_BRIDGE_IN_PVRSRVPDUMPGETFRAME;
91 /* Bridge out structure for PVRSRVPDumpGetFrame */
92 typedef struct PVRSRV_BRIDGE_OUT_PVRSRVPDUMPGETFRAME_TAG
96 } __attribute__((packed)) PVRSRV_BRIDGE_OUT_PVRSRVPDUMPGETFRAME;
99 /*******************************************
100 PVRSRVPDumpSetDefaultCaptureParams
101 *******************************************/
103 /* Bridge in structure for PVRSRVPDumpSetDefaultCaptureParams */
104 typedef struct PVRSRV_BRIDGE_IN_PVRSRVPDUMPSETDEFAULTCAPTUREPARAMS_TAG
107 IMG_UINT32 ui32Start;
109 IMG_UINT32 ui32Interval;
110 IMG_UINT32 ui32MaxParamFileSize;
111 } __attribute__((packed)) PVRSRV_BRIDGE_IN_PVRSRVPDUMPSETDEFAULTCAPTUREPARAMS;
113 /* Bridge out structure for PVRSRVPDumpSetDefaultCaptureParams */
114 typedef struct PVRSRV_BRIDGE_OUT_PVRSRVPDUMPSETDEFAULTCAPTUREPARAMS_TAG
117 } __attribute__((packed)) PVRSRV_BRIDGE_OUT_PVRSRVPDUMPSETDEFAULTCAPTUREPARAMS;
120 /*******************************************
121 PVRSRVPDumpIsLastCaptureFrame
122 *******************************************/
124 /* Bridge in structure for PVRSRVPDumpIsLastCaptureFrame */
125 typedef struct PVRSRV_BRIDGE_IN_PVRSRVPDUMPISLASTCAPTUREFRAME_TAG
127 IMG_UINT32 ui32EmptyStructPlaceholder;
128 } __attribute__((packed)) PVRSRV_BRIDGE_IN_PVRSRVPDUMPISLASTCAPTUREFRAME;
130 /* Bridge out structure for PVRSRVPDumpIsLastCaptureFrame */
131 typedef struct PVRSRV_BRIDGE_OUT_PVRSRVPDUMPISLASTCAPTUREFRAME_TAG
133 IMG_BOOL bpbIsLastCaptureFrame;
135 } __attribute__((packed)) PVRSRV_BRIDGE_OUT_PVRSRVPDUMPISLASTCAPTUREFRAME;
138 #endif /* COMMON_PDUMPCTRL_BRIDGE_H */