MALI: rockchip: upgrade midgard DDK to r14p0-01rel0
[firefly-linux-kernel-4.4.55.git] / drivers / gpu / arm / midgard / mali_kbase_hwaccess_backend.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  * HW access backend common APIs
21  */
22
23 #ifndef _KBASE_HWACCESS_BACKEND_H_
24 #define _KBASE_HWACCESS_BACKEND_H_
25
26 /**
27  * kbase_backend_early_init - Perform any backend-specific initialization.
28  * @kbdev:      Device pointer
29  *
30  * Return: 0 on success, or an error code on failure.
31  */
32 int kbase_backend_early_init(struct kbase_device *kbdev);
33
34 /**
35  * kbase_backend_late_init - Perform any backend-specific initialization.
36  * @kbdev:      Device pointer
37  *
38  * Return: 0 on success, or an error code on failure.
39  */
40 int kbase_backend_late_init(struct kbase_device *kbdev);
41
42 /**
43  * kbase_backend_early_term - Perform any backend-specific termination.
44  * @kbdev:      Device pointer
45  */
46 void kbase_backend_early_term(struct kbase_device *kbdev);
47
48 /**
49  * kbase_backend_late_term - Perform any backend-specific termination.
50  * @kbdev:      Device pointer
51  */
52 void kbase_backend_late_term(struct kbase_device *kbdev);
53
54 #endif /* _KBASE_HWACCESS_BACKEND_H_ */