My Project
mali_kbase_hwaccess_pm.h
Go to the documentation of this file.
1 /*
2  *
3  * (C) COPYRIGHT 2014-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 
24 #ifndef _KBASE_HWACCESS_PM_H_
25 #define _KBASE_HWACCESS_PM_H_
26 
27 #include <mali_midg_regmap.h>
28 #include <linux/atomic.h>
29 
30 #include <mali_kbase_pm_defs.h>
31 
32 /* Forward definition - see mali_kbase.h */
33 struct kbase_device;
34 
35 /* Functions common to all HW access backends */
36 
48 int kbase_hwaccess_pm_init(struct kbase_device *kbdev);
49 
59 void kbase_hwaccess_pm_term(struct kbase_device *kbdev);
60 
71 int kbase_hwaccess_pm_powerup(struct kbase_device *kbdev,
72  unsigned int flags);
73 
85 void kbase_hwaccess_pm_halt(struct kbase_device *kbdev);
86 
93 void kbase_hwaccess_pm_suspend(struct kbase_device *kbdev);
94 
101 void kbase_hwaccess_pm_resume(struct kbase_device *kbdev);
102 
110 void kbase_hwaccess_pm_gpu_active(struct kbase_device *kbdev);
111 
119 void kbase_hwaccess_pm_gpu_idle(struct kbase_device *kbdev);
120 
121 
133 void kbase_pm_set_debug_core_mask(struct kbase_device *kbdev,
134  u64 new_core_mask_js0, u64 new_core_mask_js1,
135  u64 new_core_mask_js2);
136 
137 
148 const struct kbase_pm_ca_policy
149 *kbase_pm_ca_get_policy(struct kbase_device *kbdev);
150 
159 void kbase_pm_ca_set_policy(struct kbase_device *kbdev,
160  const struct kbase_pm_ca_policy *policy);
161 
171 int
172 kbase_pm_ca_list_policies(const struct kbase_pm_ca_policy * const **policies);
173 
174 
185 const struct kbase_pm_policy *kbase_pm_get_policy(struct kbase_device *kbdev);
186 
195 void kbase_pm_set_policy(struct kbase_device *kbdev,
196  const struct kbase_pm_policy *policy);
197 
207 int kbase_pm_list_policies(const struct kbase_pm_policy * const **policies);
208 
209 #endif /* _KBASE_HWACCESS_PM_H_ */
int kbase_hwaccess_pm_init(struct kbase_device *kbdev)
void kbase_hwaccess_pm_resume(struct kbase_device *kbdev)
void kbase_pm_set_debug_core_mask(struct kbase_device *kbdev, u64 new_core_mask_js0, u64 new_core_mask_js1, u64 new_core_mask_js2)
int kbase_pm_list_policies(const struct kbase_pm_policy *const **policies)
void kbase_hwaccess_pm_term(struct kbase_device *kbdev)
const struct kbase_pm_policy * kbase_pm_get_policy(struct kbase_device *kbdev)
void kbase_hwaccess_pm_suspend(struct kbase_device *kbdev)
const struct kbase_pm_ca_policy * kbase_pm_ca_get_policy(struct kbase_device *kbdev)
int kbase_pm_ca_list_policies(const struct kbase_pm_ca_policy *const **policies)
void kbase_hwaccess_pm_halt(struct kbase_device *kbdev)
void kbase_hwaccess_pm_gpu_idle(struct kbase_device *kbdev)
Definition: mali_kbase_defs.h:951
void kbase_pm_ca_set_policy(struct kbase_device *kbdev, const struct kbase_pm_ca_policy *policy)
void kbase_pm_set_policy(struct kbase_device *kbdev, const struct kbase_pm_policy *policy)
int kbase_hwaccess_pm_powerup(struct kbase_device *kbdev, unsigned int flags)
void kbase_hwaccess_pm_gpu_active(struct kbase_device *kbdev)