tizen 2.4 release
[kernel/linux-3.0.git] / drivers / gpu / arm / mali400 / ump / include / ump_kernel_interface_ref_drv.h
1 /*
2  * Copyright (C) 2011-2012 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
11 /**
12  * @file ump_kernel_interface.h
13  */
14
15 #ifndef __UMP_KERNEL_INTERFACE_REF_DRV_H__
16 #define __UMP_KERNEL_INTERFACE_REF_DRV_H__
17
18 #include "ump_kernel_interface.h"
19
20 #ifdef __cplusplus
21 extern "C" {
22 #endif
23
24 /** Turn specified physical memory into UMP memory. */
25 UMP_KERNEL_API_EXPORT ump_dd_handle ump_dd_handle_create_from_phys_blocks(ump_dd_physical_block * blocks, unsigned long num_blocks);
26 UMP_KERNEL_API_EXPORT ump_dd_handle ump_dd_handle_get(ump_secure_id secure_id);
27 UMP_KERNEL_API_EXPORT ump_dd_status_code ump_dd_meminfo_set(ump_dd_handle memh, void* args);
28 UMP_KERNEL_API_EXPORT void *ump_dd_meminfo_get(ump_secure_id secure_id, void* args);
29 UMP_KERNEL_API_EXPORT ump_dd_handle ump_dd_handle_get_from_vaddr(unsigned long vaddr);
30
31 #ifdef __cplusplus
32 }
33 #endif
34
35 #endif  /* __UMP_KERNEL_INTERFACE_REF_DRV_H__ */