3 * (C) COPYRIGHT 2015 ARM Limited. All rights reserved.
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
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.
18 struct kbase_ipa_context;
21 * kbase_ipa_init - initialize the kbase ipa core
22 * @kbdev: kbase device
24 * Return: pointer to the IPA context or NULL on failure
26 struct kbase_ipa_context *kbase_ipa_init(struct kbase_device *kbdev);
29 * kbase_ipa_term - terminate the kbase ipa core
30 * @ctx: pointer to the IPA context
32 void kbase_ipa_term(struct kbase_ipa_context *ctx);
35 * kbase_ipa_dynamic_power - calculate power
36 * @ctx: pointer to the IPA context
37 * @err: 0 on success, negative on failure
39 * Return: returns power consumption as mw @ 1GHz @ 1V
41 u32 kbase_ipa_dynamic_power(struct kbase_ipa_context *ctx, int *err);