2 * This confidential and proprietary software may be used only as
3 * authorised by a licensing agreement from ARM Limited
4 * (C) COPYRIGHT 2008-2010, 2013 ARM Limited
6 * The entire notice above must be reproduced on all authorised
7 * copies and copies may only be made to the extent permitted
8 * by a licensing agreement from ARM Limited.
11 #ifndef __MALI_BLOCK_ALLOCATOR_H__
12 #define __MALI_BLOCK_ALLOCATOR_H__
14 #include "mali_session.h"
15 #include "mali_memory.h"
17 #include "mali_memory_types.h"
19 typedef struct mali_mem_allocator mali_mem_allocator;
21 mali_mem_allocator *mali_block_allocator_create(u32 base_address, u32 cpu_usage_adjust, u32 size);
22 void mali_mem_block_allocator_destroy(mali_mem_allocator *allocator);
24 mali_mem_allocation *mali_mem_block_alloc(u32 mali_addr, u32 size, struct vm_area_struct *vma, struct mali_session_data *session);
25 void mali_mem_block_release(mali_mem_allocation *descriptor);
27 u32 mali_mem_block_allocator_stat(void);
29 #endif /* __MALI_BLOCK_ALLOCATOR_H__ */