MALI: midgard: RK: add separate src dir of Midgard driver for RK Linux device
[firefly-linux-kernel-4.4.55.git] / drivers / gpu / arm / midgard_for_linux / mali_kbase_gator.h
1 /*
2  *
3  * (C) COPYRIGHT 2011-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 /* NB taken from gator  */
19 /*
20  * List of possible actions to be controlled by DS-5 Streamline.
21  * The following numbers are used by gator to control the frame buffer dumping
22  * and s/w counter reporting. We cannot use the enums in mali_uk_types.h because
23  * they are unknown inside gator.
24  */
25 #ifndef _KBASE_GATOR_H_
26 #define _KBASE_GATOR_H_
27
28 #ifdef CONFIG_MALI_GATOR_SUPPORT
29 #define GATOR_MAKE_EVENT(type, number) (((type) << 24) | ((number) << 16))
30 #define GATOR_JOB_SLOT_START 1
31 #define GATOR_JOB_SLOT_STOP  2
32 #define GATOR_JOB_SLOT_SOFT_STOPPED  3
33
34 void kbase_trace_mali_job_slots_event(u32 event, const struct kbase_context *kctx, u8 atom_id);
35 void kbase_trace_mali_pm_status(u32 event, u64 value);
36 void kbase_trace_mali_pm_power_off(u32 event, u64 value);
37 void kbase_trace_mali_pm_power_on(u32 event, u64 value);
38 void kbase_trace_mali_page_fault_insert_pages(int event, u32 value);
39 void kbase_trace_mali_mmu_as_in_use(int event);
40 void kbase_trace_mali_mmu_as_released(int event);
41 void kbase_trace_mali_total_alloc_pages_change(long long int event);
42
43 #endif /* CONFIG_MALI_GATOR_SUPPORT */
44
45 #endif  /* _KBASE_GATOR_H_ */