diff options
Diffstat (limited to 'omap5/sgx_src/eurasia_km/services4/srvkm/include/power.h')
-rw-r--r-- | omap5/sgx_src/eurasia_km/services4/srvkm/include/power.h | 140 |
1 files changed, 0 insertions, 140 deletions
diff --git a/omap5/sgx_src/eurasia_km/services4/srvkm/include/power.h b/omap5/sgx_src/eurasia_km/services4/srvkm/include/power.h deleted file mode 100644 index 0abaf75..0000000 --- a/omap5/sgx_src/eurasia_km/services4/srvkm/include/power.h +++ /dev/null | |||
@@ -1,140 +0,0 @@ | |||
1 | /*************************************************************************/ /*! | ||
2 | @Title Power Management Functions | ||
3 | @Copyright Copyright (c) Imagination Technologies Ltd. All Rights Reserved | ||
4 | @Description Main APIs for power management functions | ||
5 | @License Dual MIT/GPLv2 | ||
6 | |||
7 | The contents of this file are subject to the MIT license as set out below. | ||
8 | |||
9 | Permission is hereby granted, free of charge, to any person obtaining a copy | ||
10 | of this software and associated documentation files (the "Software"), to deal | ||
11 | in the Software without restriction, including without limitation the rights | ||
12 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
13 | copies of the Software, and to permit persons to whom the Software is | ||
14 | furnished to do so, subject to the following conditions: | ||
15 | |||
16 | The above copyright notice and this permission notice shall be included in | ||
17 | all copies or substantial portions of the Software. | ||
18 | |||
19 | Alternatively, the contents of this file may be used under the terms of | ||
20 | the GNU General Public License Version 2 ("GPL") in which case the provisions | ||
21 | of GPL are applicable instead of those above. | ||
22 | |||
23 | If you wish to allow use of your version of this file only under the terms of | ||
24 | GPL, and not to allow others to use your version of this file under the terms | ||
25 | of the MIT license, indicate your decision by deleting the provisions above | ||
26 | and replace them with the notice and other provisions required by GPL as set | ||
27 | out in the file called "GPL-COPYING" included in this distribution. If you do | ||
28 | not delete the provisions above, a recipient may use your version of this file | ||
29 | under the terms of either the MIT license or GPL. | ||
30 | |||
31 | This License is also included in this distribution in the file called | ||
32 | "MIT-COPYING". | ||
33 | |||
34 | EXCEPT AS OTHERWISE STATED IN A NEGOTIATED AGREEMENT: (A) THE SOFTWARE IS | ||
35 | PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING | ||
36 | BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR | ||
37 | PURPOSE AND NONINFRINGEMENT; AND (B) IN NO EVENT SHALL THE AUTHORS OR | ||
38 | COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER | ||
39 | IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN | ||
40 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
41 | */ /**************************************************************************/ | ||
42 | #ifndef POWER_H | ||
43 | #define POWER_H | ||
44 | |||
45 | #if defined(__cplusplus) | ||
46 | extern "C" { | ||
47 | #endif | ||
48 | |||
49 | |||
50 | /*! | ||
51 | ***************************************************************************** | ||
52 | * Power management | ||
53 | *****************************************************************************/ | ||
54 | |||
55 | typedef struct _PVRSRV_POWER_DEV_TAG_ | ||
56 | { | ||
57 | PFN_PRE_POWER pfnPrePower; | ||
58 | PFN_POST_POWER pfnPostPower; | ||
59 | PFN_PRE_CLOCKSPEED_CHANGE pfnPreClockSpeedChange; | ||
60 | PFN_POST_CLOCKSPEED_CHANGE pfnPostClockSpeedChange; | ||
61 | IMG_HANDLE hDevCookie; | ||
62 | IMG_UINT32 ui32DeviceIndex; | ||
63 | PVRSRV_DEV_POWER_STATE eDefaultPowerState; | ||
64 | PVRSRV_DEV_POWER_STATE eCurrentPowerState; | ||
65 | struct _PVRSRV_POWER_DEV_TAG_ *psNext; | ||
66 | struct _PVRSRV_POWER_DEV_TAG_ **ppsThis; | ||
67 | |||
68 | } PVRSRV_POWER_DEV; | ||
69 | |||
70 | typedef enum _PVRSRV_INIT_SERVER_STATE_ | ||
71 | { | ||
72 | PVRSRV_INIT_SERVER_Unspecified = -1, | ||
73 | PVRSRV_INIT_SERVER_RUNNING = 0, | ||
74 | PVRSRV_INIT_SERVER_RAN = 1, | ||
75 | PVRSRV_INIT_SERVER_SUCCESSFUL = 2, | ||
76 | PVRSRV_INIT_SERVER_NUM = 3, | ||
77 | PVRSRV_INIT_SERVER_FORCE_I32 = 0x7fffffff | ||
78 | |||
79 | } PVRSRV_INIT_SERVER_STATE, *PPVRSRV_INIT_SERVER_STATE; | ||
80 | |||
81 | IMG_IMPORT | ||
82 | IMG_BOOL PVRSRVGetInitServerState(PVRSRV_INIT_SERVER_STATE eInitServerState); | ||
83 | |||
84 | IMG_IMPORT | ||
85 | PVRSRV_ERROR PVRSRVSetInitServerState(PVRSRV_INIT_SERVER_STATE eInitServerState, IMG_BOOL bState); | ||
86 | |||
87 | |||
88 | |||
89 | IMG_IMPORT | ||
90 | PVRSRV_ERROR PVRSRVPowerLock(IMG_UINT32 ui32CallerID, | ||
91 | IMG_BOOL bSystemPowerEvent); | ||
92 | IMG_IMPORT | ||
93 | IMG_VOID PVRSRVPowerUnlock(IMG_UINT32 ui32CallerID); | ||
94 | |||
95 | IMG_IMPORT | ||
96 | PVRSRV_ERROR PVRSRVSetDevicePowerStateKM(IMG_UINT32 ui32DeviceIndex, | ||
97 | PVRSRV_DEV_POWER_STATE eNewPowerState); | ||
98 | |||
99 | IMG_IMPORT | ||
100 | PVRSRV_ERROR PVRSRVSystemPrePowerStateKM(PVRSRV_SYS_POWER_STATE eNewPowerState); | ||
101 | IMG_IMPORT | ||
102 | PVRSRV_ERROR PVRSRVSystemPostPowerStateKM(PVRSRV_SYS_POWER_STATE eNewPowerState); | ||
103 | |||
104 | IMG_IMPORT | ||
105 | PVRSRV_ERROR PVRSRVSetPowerStateKM (PVRSRV_SYS_POWER_STATE ePVRState); | ||
106 | |||
107 | IMG_IMPORT | ||
108 | PVRSRV_ERROR PVRSRVRegisterPowerDevice(IMG_UINT32 ui32DeviceIndex, | ||
109 | PFN_PRE_POWER pfnPrePower, | ||
110 | PFN_POST_POWER pfnPostPower, | ||
111 | PFN_PRE_CLOCKSPEED_CHANGE pfnPreClockSpeedChange, | ||
112 | PFN_POST_CLOCKSPEED_CHANGE pfnPostClockSpeedChange, | ||
113 | IMG_HANDLE hDevCookie, | ||
114 | PVRSRV_DEV_POWER_STATE eCurrentPowerState, | ||
115 | PVRSRV_DEV_POWER_STATE eDefaultPowerState); | ||
116 | |||
117 | IMG_IMPORT | ||
118 | PVRSRV_ERROR PVRSRVRemovePowerDevice (IMG_UINT32 ui32DeviceIndex); | ||
119 | |||
120 | IMG_IMPORT | ||
121 | IMG_BOOL PVRSRVIsDevicePowered(IMG_UINT32 ui32DeviceIndex); | ||
122 | |||
123 | IMG_IMPORT | ||
124 | PVRSRV_ERROR PVRSRVDevicePreClockSpeedChange(IMG_UINT32 ui32DeviceIndex, | ||
125 | IMG_BOOL bIdleDevice, | ||
126 | IMG_VOID *pvInfo); | ||
127 | |||
128 | IMG_IMPORT | ||
129 | IMG_VOID PVRSRVDevicePostClockSpeedChange(IMG_UINT32 ui32DeviceIndex, | ||
130 | IMG_BOOL bIdleDevice, | ||
131 | IMG_VOID *pvInfo); | ||
132 | |||
133 | #if defined (__cplusplus) | ||
134 | } | ||
135 | #endif | ||
136 | #endif /* POWER_H */ | ||
137 | |||
138 | /****************************************************************************** | ||
139 | End of file (power.h) | ||
140 | ******************************************************************************/ | ||