2 * Copyright (C) 2013-2015 ARM Limited. All rights reserved.
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.
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.
10 #ifndef __MALI_GPU_VMEM_H__
\r
11 #define __MALI_GPU_VMEM_H__
\r
13 #include "mali_osk.h"
\r
14 #include "mali_session.h"
\r
15 #include <linux/list.h>
\r
16 #include <linux/mm.h>
\r
17 #include <linux/rbtree.h>
\r
18 #include <linux/spinlock.h>
\r
19 #include <linux/types.h>
\r
20 #include "mali_memory_types.h"
\r
21 #include "mali_memory_os_alloc.h"
\r
22 #include "mali_memory_manager.h"
\r
26 int mali_vma_offset_add(struct mali_allocation_manager *mgr,
\r
27 struct mali_vma_node *node);
\r
29 void mali_vma_offset_remove(struct mali_allocation_manager *mgr,
\r
30 struct mali_vma_node *node);
\r
32 struct mali_vma_node *mali_vma_offset_search(struct mali_allocation_manager *mgr,
\r
33 unsigned long start, unsigned long pages);
\r