rk: gcc-wrapper.py ignore memcontrol.c:5355
[firefly-linux-kernel-4.4.55.git] / include / linux / wimo.h
1 /* arch/arm/mack-rk29/include/mach/wimo.h
2  *
3  * Copyright (C) 2007 Google, Inc.
4  * author: chenhengming chm@rock-chips.com
5  *
6  * This software is licensed under the terms of the GNU General Public
7  * License version 2, as published by the Free Software Foundation, and
8  * may be copied, distributed, and modified under those terms.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU General Public License for more details.
14  *
15  */
16
17 #ifndef __ARCH_ARM_MACH_RK29_WIMO_H
18 #define __ARCH_ARM_MACH_RK29_WIMO_H
19 #ifdef CONFIG_FB_WIMO
20 #define FB_WIMO_FLAG  
21 #endif
22
23
24
25
26
27 #if     1//def  CONFIG_FB_WIMO
28 #define WIMO_IOCTL_MAGIC 0x60
29 #define WIMO_START                              _IOW(WIMO_IOCTL_MAGIC, 0x1, unsigned int)
30 #define WIMO_STOP                               _IOW(WIMO_IOCTL_MAGIC, 0x2, unsigned int)
31 #define WIMO_SET_ROTATION                       _IOW(WIMO_IOCTL_MAGIC, 0x3, unsigned int)
32 #define WIMO_DEVICE_OKAY                        _IOW(WIMO_IOCTL_MAGIC, 0x4, unsigned int)
33
34 #define WIMO_VIDEO_OPEN                         _IOW(WIMO_IOCTL_MAGIC, 0x11, unsigned int)
35 #define WIMO_VIDEO_CLOSE                        _IOW(WIMO_IOCTL_MAGIC, 0x12, unsigned int)
36 #define WIMO_VIDEO_GET_BUF                      _IOW(WIMO_IOCTL_MAGIC, 0x13, unsigned int)
37
38 #define WIMO_AUDIO_OPEN                         _IOW(WIMO_IOCTL_MAGIC, 0x21, unsigned int)
39 #define WIMO_AUDIO_CLOSE                        _IOW(WIMO_IOCTL_MAGIC, 0x22, unsigned int)
40 #define WIMO_AUDIO_GET_BUF                      _IOW(WIMO_IOCTL_MAGIC, 0x23, unsigned int)
41 #define WIMO_AUDIO_SET_PARA                     _IOW(WIMO_IOCTL_MAGIC, 0x24, unsigned int)
42 #define WIMO_AUDIO_SET_VOL                      _IOW(WIMO_IOCTL_MAGIC, 0x25, unsigned int)
43 #define WIMO_AUDIO_GET_VOL                      _IOR(WIMO_IOCTL_MAGIC, 0x26, unsigned int)
44
45 #define WIMO_AUDIO_SET_BUFFER_SIZE              0xa1
46 #define WIMO_AUDIO_SET_BYTEPERFRAME             0xa2
47
48
49 #define WIMO_COUNT_ZERO                         -111
50 #define VIDEO_ENCODER_CLOSED                    -222
51 #define AUDIO_ENCODER_CLOSED                    -222
52 #define ENCODER_BUFFER_FULL                     -333
53
54
55 #define WIMO_IOCTL_ERROR                        -1111
56
57 #endif
58
59 struct wimo_platform_data
60 {
61         const char* name;
62         /* starting physical address of memory region */
63         unsigned long start;
64         /* size of memory region */
65         unsigned long size;
66         /* set to indicate maps of this region should be cached, if a mix of
67          * cached and uncached is desired, set this and open the device with
68          * O_SYNC to get an uncached region */
69         unsigned cached;
70         /* The MSM7k has bits to enable a write buffer in the bus controller*/
71         unsigned buffered;
72 };
73
74 #endif //__ARCH_ARM_MACH_RK29_WIMO_H
75