My Project
mali_kbase_pm.h
Go to the documentation of this file.
1 /*
2  *
3  * (C) COPYRIGHT 2010-2015 ARM Limited. All rights reserved.
4  *
5  * This program is free software and is provided to you under the terms of the
6  * GNU General Public License version 2 as published by the Free Software
7  * Foundation, and any use by you of this program is subject to the terms
8  * of such GNU licence.
9  *
10  * A copy of the licence is included with the program, and can also be obtained
11  * from Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
12  * Boston, MA 02110-1301, USA.
13  *
14  */
15 
16 
17 
18 
19 
25 #ifndef _KBASE_PM_H_
26 #define _KBASE_PM_H_
27 
28 #include "mali_kbase_hwaccess_pm.h"
29 
30 #define PM_ENABLE_IRQS 0x01
31 #define PM_HW_ISSUES_DETECT 0x02
32 
33 
42 int kbase_pm_init(struct kbase_device *kbdev);
43 
52 int kbase_pm_powerup(struct kbase_device *kbdev, unsigned int flags);
53 
63 void kbase_pm_halt(struct kbase_device *kbdev);
64 
72 void kbase_pm_term(struct kbase_device *kbdev);
73 
90 void kbase_pm_context_active(struct kbase_device *kbdev);
91 
92 
106 };
107 
123 int kbase_pm_context_active_handle_suspend(struct kbase_device *kbdev, enum kbase_pm_suspend_handler suspend_handler);
124 
132 void kbase_pm_context_idle(struct kbase_device *kbdev);
133 
147 void kbase_pm_suspend(struct kbase_device *kbdev);
148 
158 void kbase_pm_resume(struct kbase_device *kbdev);
159 
169 void kbase_pm_vsync_callback(int buffer_updated, void *data);
170 
171 #endif /* _KBASE_PM_H_ */
int kbase_pm_init(struct kbase_device *kbdev)
int kbase_pm_powerup(struct kbase_device *kbdev, unsigned int flags)
Definition: mali_kbase_pm.c:31
int kbase_pm_context_active_handle_suspend(struct kbase_device *kbdev, enum kbase_pm_suspend_handler suspend_handler)
Definition: mali_kbase_pm.c:46
void kbase_pm_vsync_callback(int buffer_updated, void *data)
void kbase_pm_term(struct kbase_device *kbdev)
void kbase_pm_suspend(struct kbase_device *kbdev)
Definition: mali_kbase_pm.c:150
void kbase_pm_resume(struct kbase_device *kbdev)
Definition: mali_kbase_pm.c:182
kbase_pm_suspend_handler
Definition: mali_kbase_pm.h:94
void kbase_pm_context_active(struct kbase_device *kbdev)
Definition: mali_kbase_pm.c:41
Definition: mali_kbase_pm.h:97
Definition: mali_kbase_defs.h:951
void kbase_pm_context_idle(struct kbase_device *kbdev)
Definition: mali_kbase_pm.c:105
Definition: mali_kbase_pm.h:99
void kbase_pm_halt(struct kbase_device *kbdev)
Definition: mali_kbase_pm.c:36
Definition: mali_kbase_pm.h:105