MALI: rockchip: upgrade DDK to r8p0-02rel0.
[firefly-linux-kernel-4.4.55.git] / drivers / gpu / arm / midgard / mali_kbase_ipa.h
1 /*
2  *
3  * (C) COPYRIGHT 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 struct kbase_ipa_context;
19
20 /**
21  * kbase_ipa_init - initialize the kbase ipa core
22  * @kbdev:      kbase device
23  *
24  * Return:      pointer to the IPA context or NULL on failure
25  */
26 struct kbase_ipa_context *kbase_ipa_init(struct kbase_device *kbdev);
27
28 /**
29  * kbase_ipa_term - terminate the kbase ipa core
30  * @ctx:        pointer to the IPA context
31  */
32 void kbase_ipa_term(struct kbase_ipa_context *ctx);
33
34 /**
35  * kbase_ipa_dynamic_power - calculate power
36  * @ctx:        pointer to the IPA context
37  * @err:        0 on success, negative on failure
38  *
39  * Return:      returns power consumption as mw @ 1GHz @ 1V
40  */
41 u32 kbase_ipa_dynamic_power(struct kbase_ipa_context *ctx, int *err);