5929b14a12cd608b7a5b385f3f24df875cbb5cf8
[firefly-linux-kernel-4.4.55.git] / drivers / gpu / arm / t6xx / kbase / src / common / mali_kbase_mem_alloc.h
1 /*
2  *
3  * (C) COPYRIGHT 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 #include <linux/atomic.h>
21 #include <linux/mempool.h>
22 #include <linux/slab.h>
23
24 /* raw page handling */
25 typedef struct kbase_mem_allocator
26 {
27         atomic_t            free_list_size;
28         unsigned int        free_list_max_size;
29         struct mutex        free_list_lock;
30         struct list_head    free_list_head;
31         struct shrinker     free_list_reclaimer;
32 } kbase_mem_allocator;
33