tizen 2.4 release
[kernel/linux-3.0.git] / drivers / gpu / arm / mali400 / mali / common / mali_pm.h
1 /*
2  * Copyright (C) 2011-2012 ARM Limited. All rights reserved.
3  *
4  * This program is free software and is provided to you under the terms of the GNU General Public License version 2
5  * as published by the Free Software Foundation, and any use by you of this program is subject to the terms of such GNU licence.
6  *
7  * A copy of the licence is included with the program, and can also be obtained from Free Software
8  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
9  */
10
11 #ifndef __MALI_PM_H__
12 #define __MALI_PM_H__
13
14 #include "mali_osk.h"
15
16 enum mali_core_event
17 {
18         MALI_CORE_EVENT_GP_START,
19         MALI_CORE_EVENT_GP_STOP,
20         MALI_CORE_EVENT_PP_START,
21         MALI_CORE_EVENT_PP_STOP
22 };
23
24 _mali_osk_errcode_t mali_pm_initialize(void);
25 void mali_pm_terminate(void);
26
27 void mali_pm_core_event(enum mali_core_event core_event);
28
29 /* Callback functions registered for the runtime PMM system */
30 void mali_pm_os_suspend(void);
31 void mali_pm_os_resume(void);
32 void mali_pm_runtime_suspend(void);
33 void mali_pm_runtime_resume(void);
34
35
36 #endif /* __MALI_PM_H__ */