xref: /OK3568_Linux_fs/kernel/drivers/gpu/arm/mali400/mali/linux/mali_memory_virtual.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1 /*
2  * Copyright (C) 2013-2014, 2016-2017 ARM Limited. All rights reserved.
3  *
4  * This program is free software and is provided to you under the terms of the GNU General Public License version 2
5  * as published by the Free Software Foundation, and any use by you of this program is subject to the terms of such GNU licence.
6  *
7  * A copy of the licence is included with the program, and can also be obtained from Free Software
8  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
9  */
10 #ifndef __MALI_GPU_VMEM_H__
11 #define __MALI_GPU_VMEM_H__
12 
13 #include "mali_osk.h"
14 #include "mali_session.h"
15 #include <linux/list.h>
16 #include <linux/mm.h>
17 #include <linux/rbtree.h>
18 #include <linux/spinlock.h>
19 #include <linux/types.h>
20 #include "mali_memory_types.h"
21 #include "mali_memory_os_alloc.h"
22 #include "mali_memory_manager.h"
23 
24 
25 
26 int mali_vma_offset_add(struct mali_allocation_manager *mgr,
27 			struct mali_vma_node *node);
28 
29 void mali_vma_offset_remove(struct mali_allocation_manager *mgr,
30 			    struct mali_vma_node *node);
31 
32 struct mali_vma_node *mali_vma_offset_search(struct mali_allocation_manager *mgr,
33 		unsigned long start,    unsigned long pages);
34 
35 #endif
36