upload tizen1.0 source
[kernel/linux-2.6.36.git] / drivers / media / video / samsung / ump / linux / ump_ioctl.h
1 /*
2  * Copyright (C) 2010 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 #ifndef __UMP_IOCTL_H__
12 #define __UMP_IOCTL_H__
13
14 #ifdef __cplusplus
15 extern "C"
16 {
17 #endif
18
19 #include <linux/types.h>
20 #include <linux/ioctl.h>
21
22 #include "../common/ump_uk_types.h"
23
24 #ifndef __user
25 #define __user
26 #endif
27
28
29 /**
30  * @file UMP_ioctl.h
31  * This file describes the interface needed to use the Linux device driver.
32  * The interface is used by the userpace UMP driver.
33  */
34
35 #define UMP_IOCTL_NR 0x90
36
37
38 #define UMP_IOC_QUERY_API_VERSION _IOR(UMP_IOCTL_NR, _UMP_IOC_QUERY_API_VERSION, _ump_uk_api_version_s)
39 #define UMP_IOC_ALLOCATE  _IOWR(UMP_IOCTL_NR,  _UMP_IOC_ALLOCATE,  _ump_uk_allocate_s)
40 #define UMP_IOC_RELEASE  _IOR(UMP_IOCTL_NR,  _UMP_IOC_RELEASE,  _ump_uk_release_s)
41 #define UMP_IOC_SIZE_GET  _IOWR(UMP_IOCTL_NR,  _UMP_IOC_SIZE_GET, _ump_uk_size_get_s)
42 #define UMP_IOC_MSYNC     _IOW(UMP_IOCTL_NR,  _UMP_IOC_MSYNC, _ump_uk_size_get_s)
43
44
45 #ifdef __cplusplus
46 }
47 #endif
48
49 #endif /* __UMP_IOCTL_H__ */