2 * Copyright (C) 2010-2016 ARM Limited. All rights reserved.
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.
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.
11 #ifndef __MALI_KERNEL_CORE_H__
12 #define __MALI_KERNEL_CORE_H__
17 _MALI_PRODUCT_ID_UNKNOWN,
18 _MALI_PRODUCT_ID_MALI200,
19 _MALI_PRODUCT_ID_MALI300,
20 _MALI_PRODUCT_ID_MALI400,
21 _MALI_PRODUCT_ID_MALI450,
22 _MALI_PRODUCT_ID_MALI470,
25 extern mali_bool mali_gpu_class_is_mali450;
26 extern mali_bool mali_gpu_class_is_mali470;
28 _mali_osk_errcode_t mali_initialize_subsystems(void);
30 void mali_terminate_subsystems(void);
32 _mali_product_id_t mali_kernel_core_get_product_id(void);
34 u32 mali_kernel_core_get_gpu_major_version(void);
36 u32 mali_kernel_core_get_gpu_minor_version(void);
38 u32 _mali_kernel_core_dump_state(char *buf, u32 size);
40 MALI_STATIC_INLINE mali_bool mali_is_mali470(void)
42 return mali_gpu_class_is_mali470;
45 MALI_STATIC_INLINE mali_bool mali_is_mali450(void)
47 return mali_gpu_class_is_mali450;
50 MALI_STATIC_INLINE mali_bool mali_is_mali400(void)
52 if (mali_gpu_class_is_mali450 || mali_gpu_class_is_mali470)
57 #endif /* __MALI_KERNEL_CORE_H__ */