tizen 2.4 release
[kernel/linux-3.0.git] / drivers / gpu / arm / mali400 / ump / linux / ump_ukk_ref_wrappers.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_ukk_wrappers.h
13  * Defines the wrapper functions which turn Linux IOCTL calls into _ukk_ calls for the reference implementation
14  */
15
16 #ifndef __UMP_UKK_REF_WRAPPERS_H__
17 #define __UMP_UKK_REF_WRAPPERS_H__
18
19 #include <linux/kernel.h>
20 #include "ump_kernel_common.h"
21
22 #ifdef __cplusplus
23 extern "C"
24 {
25 #endif
26
27
28 int ump_allocate_wrapper(u32 __user * argument, struct ump_session_data  * session_data);
29 /* MALI_SEC */
30 #ifdef CONFIG_ION_EXYNOS
31 int ump_ion_import_wrapper(u32 __user * argument, struct ump_session_data  * session_data);
32 #endif
33
34 #ifdef CONFIG_DMA_SHARED_BUFFER
35 int ump_dmabuf_import_wrapper(u32 __user *argument,
36                                 struct ump_session_data  *session_data);
37 #endif
38
39 #ifdef __cplusplus
40 }
41 #endif
42
43 #endif /* __UMP_UKK_REF_WRAPPERS_H__ */