My Project
mali_kbase_gpuprops_types.h
Go to the documentation of this file.
1 /*
2  *
3  * (C) COPYRIGHT 2011-2016 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 
19 
25 #ifndef _KBASE_GPUPROPS_TYPES_H_
26 #define _KBASE_GPUPROPS_TYPES_H_
27 
28 #include "mali_base_kernel.h"
29 
30 #define KBASE_GPU_SPEED_MHZ 123
31 #define KBASE_GPU_PC_SIZE_LOG2 24U
32 
34  u32 gpu_id;
35  u32 l2_features;
36  u32 suspend_size; /* API 8.2+ */
37  u32 tiler_features;
38  u32 mem_features;
39  u32 mmu_features;
40  u32 as_present;
41  u32 js_present;
42  u32 thread_max_threads;
43  u32 thread_max_workgroup_size;
44  u32 thread_max_barrier_size;
45  u32 thread_features;
46  u32 texture_features[BASE_GPU_NUM_TEXTURE_FEATURES_REGISTERS];
47  u32 js_features[GPU_MAX_JOB_SLOTS];
48  u32 shader_present_lo;
49  u32 shader_present_hi;
50  u32 tiler_present_lo;
51  u32 tiler_present_hi;
52  u32 l2_present_lo;
53  u32 l2_present_hi;
54  u32 stack_present_lo;
55  u32 stack_present_hi;
56  u32 coherency_features;
57 };
58 
60  u8 associativity;
61  u8 external_bus_width;
62 };
63 
65  u8 core_group;
66 };
67 
69  u8 va_bits;
70  u8 pa_bits;
71 };
72 
74  /* kernel-only properties */
75  u8 num_cores;
76  u8 num_core_groups;
77  u8 num_address_spaces;
78  u8 num_job_slots;
79 
80  struct kbase_gpu_cache_props l2_props;
81 
82  struct kbase_gpu_mem_props mem;
83  struct kbase_gpu_mmu_props mmu;
84 
89 
90  /* Properties shared with userspace */
91  base_gpu_props props;
92 };
93 
94 #endif /* _KBASE_GPUPROPS_TYPES_H_ */
Definition: mali_kbase_gpuprops_types.h:64
Definition: mali_kbase_gpuprops_types.h:73
Definition: mali_kbase_gpuprops_types.h:59
int irq_throttle_time_us
Definition: mali_kbase_gpuprops_types.h:88
Definition: mali_base_kernel.h:1639
Definition: mali_kbase_gpuprops_types.h:68
Definition: mali_kbase_gpuprops_types.h:33