Commit | Line | Data |
---|---|---|
6fa3eb70 S |
1 | /* |
2 | * This confidential and proprietary software may be used only as | |
3 | * authorised by a licensing agreement from ARM Limited | |
bdc132d7 | 4 | * (C) COPYRIGHT 2007-2015 ARM Limited |
6fa3eb70 S |
5 | * ALL RIGHTS RESERVED |
6 | * The entire notice above must be reproduced on all authorised | |
7 | * copies and copies may only be made to the extent permitted | |
8 | * by a licensing agreement from ARM Limited. | |
9 | */ | |
10 | ||
11 | #ifndef __MALI_KERNEL_CORE_H__ | |
12 | #define __MALI_KERNEL_CORE_H__ | |
13 | ||
14 | #include "mali_osk.h" | |
15 | ||
16 | typedef enum { | |
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, | |
bdc132d7 | 22 | _MALI_PRODUCT_ID_MALI470, |
6fa3eb70 S |
23 | } _mali_product_id_t; |
24 | ||
25 | extern mali_bool mali_gpu_class_is_mali450; | |
bdc132d7 | 26 | extern mali_bool mali_gpu_class_is_mali470; |
6fa3eb70 S |
27 | |
28 | _mali_osk_errcode_t mali_initialize_subsystems(void); | |
29 | ||
30 | void mali_terminate_subsystems(void); | |
31 | ||
32 | _mali_product_id_t mali_kernel_core_get_product_id(void); | |
33 | ||
34 | u32 mali_kernel_core_get_gpu_major_version(void); | |
35 | ||
36 | u32 mali_kernel_core_get_gpu_minor_version(void); | |
37 | ||
bdc132d7 S |
38 | u32 _mali_kernel_core_dump_state(char *buf, u32 size); |
39 | ||
40 | MALI_STATIC_INLINE mali_bool mali_is_mali470(void) | |
41 | { | |
42 | return mali_gpu_class_is_mali470; | |
43 | } | |
6fa3eb70 S |
44 | |
45 | MALI_STATIC_INLINE mali_bool mali_is_mali450(void) | |
46 | { | |
6fa3eb70 | 47 | return mali_gpu_class_is_mali450; |
6fa3eb70 S |
48 | } |
49 | ||
50 | MALI_STATIC_INLINE mali_bool mali_is_mali400(void) | |
51 | { | |
bdc132d7 S |
52 | if (mali_gpu_class_is_mali450 || mali_gpu_class_is_mali470) |
53 | return MALI_FALSE; | |
54 | ||
6fa3eb70 | 55 | return MALI_TRUE; |
6fa3eb70 | 56 | } |
6fa3eb70 | 57 | #endif /* __MALI_KERNEL_CORE_H__ */ |