1 /*************************************************************************/ /*!
3 @Title RGX register configuration functionality
4 @Copyright Copyright (c) Imagination Technologies Ltd. All Rights Reserved
5 @Description Header for the RGX register configuration functionality
6 @License Dual MIT/GPLv2
8 The contents of this file are subject to the MIT license as set out below.
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:
17 The above copyright notice and this permission notice shall be included in
18 all copies or substantial portions of the Software.
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.
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.
32 This License is also included in this distribution in the file called
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 */ /**************************************************************************/
44 #if !defined(__RGXREGCONFIG_H__)
45 #define __RGXREGCONFIG_H__
47 #include "pvr_debug.h"
49 #include "rgxfwutils.h"
50 #include "rgx_fwif_km.h"
53 *******************************************************************************
54 @Function PVRSRVRGXSetRegConfigTypeKM
57 Server-side implementation of RGXSetRegConfig
59 @Input psDeviceNode - RGX Device node
60 @Input ui8RegPowerIsland - Reg configuration
63 ******************************************************************************/
64 PVRSRV_ERROR PVRSRVRGXSetRegConfigTypeKM(CONNECTION_DATA * psDevConnection,
65 PVRSRV_DEVICE_NODE *psDeviceNode,
66 IMG_UINT8 ui8RegPowerIsland);
68 *******************************************************************************
69 @Function PVRSRVRGXSetRegConfigKM
72 Server-side implementation of RGXSetRegConfig
74 @Input psDeviceNode - RGX Device node
75 @Input ui64RegAddr - Register address
76 @Input ui64RegValue - Reg value
77 @Input ui64RegMask - Reg mask
80 ******************************************************************************/
82 PVRSRV_ERROR PVRSRVRGXAddRegConfigKM(CONNECTION_DATA * psConnection,
83 PVRSRV_DEVICE_NODE *psDeviceNode,
84 IMG_UINT32 ui64RegAddr,
85 IMG_UINT64 ui64RegValue,
86 IMG_UINT64 ui64RegMask);
89 *******************************************************************************
90 @Function PVRSRVRGXClearRegConfigKM
93 Server-side implementation of RGXClearRegConfig
95 @Input psDeviceNode - RGX Device node
98 ******************************************************************************/
99 PVRSRV_ERROR PVRSRVRGXClearRegConfigKM(CONNECTION_DATA * psConnection,
100 PVRSRV_DEVICE_NODE *psDeviceNode);
103 *******************************************************************************
104 @Function PVRSRVRGXEnableRegConfigKM
107 Server-side implementation of RGXEnableRegConfig
109 @Input psDeviceNode - RGX Device node
112 ******************************************************************************/
113 PVRSRV_ERROR PVRSRVRGXEnableRegConfigKM(CONNECTION_DATA * psConnection,
114 PVRSRV_DEVICE_NODE *psDeviceNode);
117 *******************************************************************************
118 @Function PVRSRVRGXDisableRegConfigKM
121 Server-side implementation of RGXDisableRegConfig
123 @Input psDeviceNode - RGX Device node
126 ******************************************************************************/
127 PVRSRV_ERROR PVRSRVRGXDisableRegConfigKM(CONNECTION_DATA * psConnection,
128 PVRSRV_DEVICE_NODE *psDeviceNode);
130 #endif /* __RGXREGCONFIG_H__ */