RK3368 GPU: Rogue N Init.
[firefly-linux-kernel-4.4.55.git] / drivers / staging / imgtec / rogue / rgxpdump.h
1 /*************************************************************************/ /*!
2 @File
3 @Title          RGX pdump Functionality
4 @Copyright      Copyright (c) Imagination Technologies Ltd. All Rights Reserved
5 @Description    RGX pdump functionality
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 #include "img_defs.h"
45 #include "pvrsrv_error.h"
46 #include "rgxdevice.h"
47 #include "device.h"
48 #include "devicemem.h"
49 #include "pdump_km.h"
50 #include "pvr_debug.h"
51
52 #if defined(PDUMP)
53 /*!
54 ******************************************************************************
55
56  @Function      PVRSRVPDumpSignatureBufferKM
57
58  @Description
59
60  Dumps TA and 3D signature and checksum buffers
61
62  @Return   PVRSRV_ERROR
63
64 ******************************************************************************/
65 IMG_EXPORT
66 PVRSRV_ERROR PVRSRVPDumpSignatureBufferKM(CONNECTION_DATA * psConnection,
67                                           PVRSRV_DEVICE_NODE * psDeviceNode,
68                                           IMG_UINT32 ui32PDumpFlags);
69
70 /*!
71 ******************************************************************************
72
73  @Function      PVRSRVPDumpTraceBufferKM
74
75  @Description
76
77  Dumps TA and 3D signature and checksum buffers
78
79  @Return   PVRSRV_ERROR
80
81 ******************************************************************************/
82 IMG_EXPORT
83 PVRSRV_ERROR PVRSRVPDumpTraceBufferKM(CONNECTION_DATA * psConnection,
84                                       PVRSRV_DEVICE_NODE *psDeviceNode,
85                                       IMG_UINT32 ui32PDumpFlags);
86 #else   /* PDUMP */
87
88 #ifdef INLINE_IS_PRAGMA
89 #pragma inline(PVRSRVPDumpSignatureBufferKM)
90 #endif
91 static INLINE PVRSRV_ERROR
92 PVRSRVPDumpSignatureBufferKM(CONNECTION_DATA * psConnection,
93                              PVRSRV_DEVICE_NODE *psDeviceNode,
94                                                          IMG_UINT32                     ui32PDumpFlags)
95 {
96         PVR_UNREFERENCED_PARAMETER(psConnection);
97         PVR_UNREFERENCED_PARAMETER(psDeviceNode);
98         PVR_UNREFERENCED_PARAMETER(ui32PDumpFlags);
99         return PVRSRV_OK;
100 }
101
102 #ifdef INLINE_IS_PRAGMA
103 #pragma inline(PVRSRVPDumpTraceBufferKM)
104 #endif
105 static INLINE PVRSRV_ERROR
106 PVRSRVPDumpTraceBufferKM(CONNECTION_DATA * psConnection,
107                          PVRSRV_DEVICE_NODE     *psDeviceNode,
108                                                  IMG_UINT32                     ui32PDumpFlags)
109 {
110         PVR_UNREFERENCED_PARAMETER(psConnection);       
111         PVR_UNREFERENCED_PARAMETER(psDeviceNode);
112         PVR_UNREFERENCED_PARAMETER(ui32PDumpFlags);
113         return PVRSRV_OK;
114 }
115 #endif  /* PDUMP */
116 /******************************************************************************
117  End of file (rgxpdump.h)
118 ******************************************************************************/