1 /* arch/arm/mack-rk29/include/mach/wimo.h
3 * Copyright (C) 2007 Google, Inc.
4 * author: chenhengming chm@rock-chips.com
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.
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.
17 #ifndef __ARCH_ARM_MACH_RK29_WIMO_H
18 #define __ARCH_ARM_MACH_RK29_WIMO_H
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)
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)
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)
45 #define WIMO_AUDIO_SET_BUFFER_SIZE 0xa1
46 #define WIMO_AUDIO_SET_BYTEPERFRAME 0xa2
49 #define WIMO_COUNT_ZERO -111
50 #define VIDEO_ENCODER_CLOSED -222
51 #define AUDIO_ENCODER_CLOSED -222
52 #define ENCODER_BUFFER_FULL -333
55 #define WIMO_IOCTL_ERROR -1111
59 struct wimo_platform_data
62 /* starting physical address of memory region */
64 /* size of memory region */
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 */
70 /* The MSM7k has bits to enable a write buffer in the bus controller*/
74 #endif //__ARCH_ARM_MACH_RK29_WIMO_H