mali_kbase_ipa.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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. struct kbase_ipa_context;
  16. /**
  17. * kbase_ipa_init - initialize the kbase ipa core
  18. * @kbdev: kbase device
  19. *
  20. * Return: pointer to the IPA context or NULL on failure
  21. */
  22. struct kbase_ipa_context *kbase_ipa_init(struct kbase_device *kbdev);
  23. /**
  24. * kbase_ipa_term - terminate the kbase ipa core
  25. * @ctx: pointer to the IPA context
  26. */
  27. void kbase_ipa_term(struct kbase_ipa_context *ctx);
  28. /**
  29. * kbase_ipa_dynamic_power - calculate power
  30. * @ctx: pointer to the IPA context
  31. * @err: 0 on success, negative on failure
  32. *
  33. * Return: returns power consumption as mw @ 1GHz @ 1V
  34. */
  35. u32 kbase_ipa_dynamic_power(struct kbase_ipa_context *ctx, int *err);