cf8a8131c22ed29b846f8c3b28029ec0147b0e1c
[firefly-linux-kernel-4.4.55.git] / drivers / gpu / arm / midgard / mali_kbase_hwaccess_gpuprops.h
1 /*
2  *
3  * (C) COPYRIGHT 2014-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
19 /**
20  * Base kernel property query backend APIs
21  */
22
23 #ifndef _KBASE_HWACCESS_GPUPROPS_H_
24 #define _KBASE_HWACCESS_GPUPROPS_H_
25
26 /**
27  * kbase_backend_gpuprops_get() - Fill @regdump with GPU properties read from
28  *                                GPU
29  * @kbdev:      Device pointer
30  * @regdump:    Pointer to struct kbase_gpuprops_regdump structure
31  */
32 void kbase_backend_gpuprops_get(struct kbase_device *kbdev,
33                                         struct kbase_gpuprops_regdump *regdump);
34
35 /**
36  * kbase_backend_gpuprops_get - Fill @regdump with GPU properties read from GPU
37  * @kbdev:   Device pointer
38  * @regdump: Pointer to struct kbase_gpuprops_regdump structure
39  *
40  * This function reads GPU properties that are dependent on the hardware
41  * features bitmask
42  */
43 void kbase_backend_gpuprops_get_features(struct kbase_device *kbdev,
44                                         struct kbase_gpuprops_regdump *regdump);
45
46
47 #endif /* _KBASE_HWACCESS_GPUPROPS_H_ */