mali_pp.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /*
  2. * Copyright (C) 2011-2012 ARM Limited. All rights reserved.
  3. *
  4. * This program is free software and is provided to you under the terms of the GNU General Public License version 2
  5. * as published by the Free Software Foundation, and any use by you of this program is subject to the terms of such GNU licence.
  6. *
  7. * A copy of the licence is included with the program, and can also be obtained from Free Software
  8. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  9. */
  10. #ifndef __MALI_PP_H__
  11. #define __MALI_PP_H__
  12. #include "mali_osk.h"
  13. #include "mali_pp_job.h"
  14. struct mali_pp_core;
  15. struct mali_group;
  16. _mali_osk_errcode_t mali_pp_initialize(void);
  17. void mali_pp_terminate(void);
  18. struct mali_pp_core *mali_pp_create(const _mali_osk_resource_t * resource, struct mali_group *group);
  19. void mali_pp_delete(struct mali_pp_core *core);
  20. void mali_pp_stop_bus(struct mali_pp_core *core);
  21. _mali_osk_errcode_t mali_pp_stop_bus_wait(struct mali_pp_core *core);
  22. _mali_osk_errcode_t mali_pp_reset(struct mali_pp_core *core);
  23. _mali_osk_errcode_t mali_pp_hard_reset(struct mali_pp_core *core);
  24. void mali_pp_job_start(struct mali_pp_core *core, struct mali_pp_job *job, u32 sub_job);
  25. u32 mali_pp_core_get_version(struct mali_pp_core *core);
  26. u32 mali_pp_core_get_id(struct mali_pp_core *core);
  27. mali_bool mali_pp_core_set_counter_src0(struct mali_pp_core *core, u32 counter);
  28. mali_bool mali_pp_core_set_counter_src1(struct mali_pp_core *core, u32 counter);
  29. u32 mali_pp_core_get_counter_src0(struct mali_pp_core *core);
  30. u32 mali_pp_core_get_counter_src1(struct mali_pp_core *core);
  31. struct mali_pp_core* mali_pp_get_global_pp_core(u32 index);
  32. u32 mali_pp_get_glob_num_pp_cores(void);
  33. u32 mali_pp_get_max_num_pp_cores(void);
  34. /* Debug */
  35. u32 mali_pp_dump_state(struct mali_pp_core *core, char *buf, u32 size);
  36. #endif /* __MALI_PP_H__ */