RK3368 GPU: Rogue N Init.
[firefly-linux-kernel-4.4.55.git] / drivers / staging / imgtec / rogue / generated / pdumpmm_bridge / client_pdumpmm_bridge.h
1 /*************************************************************************/ /*!
2 @File
3 @Title          Client bridge header for pdumpmm
4 @Copyright      Copyright (c) Imagination Technologies Ltd. All Rights Reserved
5 @Description    Exports the client bridge functions for pdumpmm
6 @License        Dual MIT/GPLv2
7
8 The contents of this file are subject to the MIT license as set out below.
9
10 Permission is hereby granted, free of charge, to any person obtaining a copy
11 of this software and associated documentation files (the "Software"), to deal
12 in the Software without restriction, including without limitation the rights
13 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14 copies of the Software, and to permit persons to whom the Software is
15 furnished to do so, subject to the following conditions:
16
17 The above copyright notice and this permission notice shall be included in
18 all copies or substantial portions of the Software.
19
20 Alternatively, the contents of this file may be used under the terms of
21 the GNU General Public License Version 2 ("GPL") in which case the provisions
22 of GPL are applicable instead of those above.
23
24 If you wish to allow use of your version of this file only under the terms of
25 GPL, and not to allow others to use your version of this file under the terms
26 of the MIT license, indicate your decision by deleting the provisions above
27 and replace them with the notice and other provisions required by GPL as set
28 out in the file called "GPL-COPYING" included in this distribution. If you do
29 not delete the provisions above, a recipient may use your version of this file
30 under the terms of either the MIT license or GPL.
31
32 This License is also included in this distribution in the file called
33 "MIT-COPYING".
34
35 EXCEPT AS OTHERWISE STATED IN A NEGOTIATED AGREEMENT: (A) THE SOFTWARE IS
36 PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
37 BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
38 PURPOSE AND NONINFRINGEMENT; AND (B) IN NO EVENT SHALL THE AUTHORS OR
39 COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
40 IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
41 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
42 */ /**************************************************************************/
43
44 #ifndef CLIENT_PDUMPMM_BRIDGE_H
45 #define CLIENT_PDUMPMM_BRIDGE_H
46
47 #include "img_defs.h"
48 #include "pvrsrv_error.h"
49
50 #if defined(PVR_INDIRECT_BRIDGE_CLIENTS)
51 #include "pvr_bridge_client.h"
52 #include "pvr_bridge.h"
53 #endif
54
55 #include "common_pdumpmm_bridge.h"
56
57 IMG_INTERNAL PVRSRV_ERROR IMG_CALLCONV BridgePMRPDumpLoadMem(IMG_HANDLE hBridge,
58                                                              IMG_HANDLE hPMR,
59                                                              IMG_DEVMEM_OFFSET_T uiOffset,
60                                                              IMG_DEVMEM_SIZE_T uiSize,
61                                                              IMG_UINT32 ui32PDumpFlags,
62                                                              IMG_BOOL bbZero);
63
64 IMG_INTERNAL PVRSRV_ERROR IMG_CALLCONV BridgePMRPDumpLoadMemValue32(IMG_HANDLE hBridge,
65                                                                     IMG_HANDLE hPMR,
66                                                                     IMG_DEVMEM_OFFSET_T uiOffset,
67                                                                     IMG_UINT32 ui32Value,
68                                                                     IMG_UINT32 ui32PDumpFlags);
69
70 IMG_INTERNAL PVRSRV_ERROR IMG_CALLCONV BridgePMRPDumpLoadMemValue64(IMG_HANDLE hBridge,
71                                                                     IMG_HANDLE hPMR,
72                                                                     IMG_DEVMEM_OFFSET_T uiOffset,
73                                                                     IMG_UINT64 ui64Value,
74                                                                     IMG_UINT32 ui32PDumpFlags);
75
76 IMG_INTERNAL PVRSRV_ERROR IMG_CALLCONV BridgePMRPDumpSaveToFile(IMG_HANDLE hBridge,
77                                                                 IMG_HANDLE hPMR,
78                                                                 IMG_DEVMEM_OFFSET_T uiOffset,
79                                                                 IMG_DEVMEM_SIZE_T uiSize,
80                                                                 IMG_UINT32 ui32ArraySize,
81                                                                 const IMG_CHAR *puiFileName,
82                                                                 IMG_UINT32 ui32uiFileOffset);
83
84 IMG_INTERNAL PVRSRV_ERROR IMG_CALLCONV BridgePMRPDumpSymbolicAddr(IMG_HANDLE hBridge,
85                                                                   IMG_HANDLE hPMR,
86                                                                   IMG_DEVMEM_OFFSET_T uiOffset,
87                                                                   IMG_UINT32 ui32MemspaceNameLen,
88                                                                   IMG_CHAR *puiMemspaceName,
89                                                                   IMG_UINT32 ui32SymbolicAddrLen,
90                                                                   IMG_CHAR *puiSymbolicAddr,
91                                                                   IMG_DEVMEM_OFFSET_T *puiNewOffset,
92                                                                   IMG_DEVMEM_OFFSET_T *puiNextSymName);
93
94 IMG_INTERNAL PVRSRV_ERROR IMG_CALLCONV BridgePMRPDumpPol32(IMG_HANDLE hBridge,
95                                                            IMG_HANDLE hPMR,
96                                                            IMG_DEVMEM_OFFSET_T uiOffset,
97                                                            IMG_UINT32 ui32Value,
98                                                            IMG_UINT32 ui32Mask,
99                                                            PDUMP_POLL_OPERATOR eOperator,
100                                                            IMG_UINT32 ui32PDumpFlags);
101
102 IMG_INTERNAL PVRSRV_ERROR IMG_CALLCONV BridgePMRPDumpCBP(IMG_HANDLE hBridge,
103                                                          IMG_HANDLE hPMR,
104                                                          IMG_DEVMEM_OFFSET_T uiReadOffset,
105                                                          IMG_DEVMEM_OFFSET_T uiWriteOffset,
106                                                          IMG_DEVMEM_SIZE_T uiPacketSize,
107                                                          IMG_DEVMEM_SIZE_T uiBufferSize);
108
109 IMG_INTERNAL PVRSRV_ERROR IMG_CALLCONV BridgeDevmemIntPDumpSaveToFileVirtual(IMG_HANDLE hBridge,
110                                                                              IMG_HANDLE hDevmemServerContext,
111                                                                              IMG_DEV_VIRTADDR sAddress,
112                                                                              IMG_DEVMEM_SIZE_T uiSize,
113                                                                              IMG_UINT32 ui32ArraySize,
114                                                                              const IMG_CHAR *puiFileName,
115                                                                              IMG_UINT32 ui32FileOffset,
116                                                                              IMG_UINT32 ui32PDumpFlags);
117
118
119 #endif /* CLIENT_PDUMPMM_BRIDGE_H */