MALI: midgard: RK: add separate src dir of Midgard driver for RK Linux device
[firefly-linux-kernel-4.4.55.git] / drivers / gpu / arm / midgard_for_linux / mali_kbase_utility.h
1 /*
2  *
3  * (C) COPYRIGHT 2012-2013, 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 #ifndef _KBASE_UTILITY_H
21 #define _KBASE_UTILITY_H
22
23 #ifndef _KBASE_H_
24 #error "Don't include this file directly, use mali_kbase.h instead"
25 #endif
26
27 /** Test whether the given list entry is a member of the given list.
28  *
29  * @param base      The head of the list to be tested
30  * @param entry     The list entry to be tested
31  *
32  * @return          true if entry is a member of base
33  *                  false otherwise
34  */
35 bool kbasep_list_member_of(const struct list_head *base, struct list_head *entry);
36
37 #endif                          /* _KBASE_UTILITY_H */