1
2
3#ifndef _LINUX_VFC_IOCTLS_H_
4#define _LINUX_VFC_IOCTLS_H_
5
6
7#define VFC_IOCTL(a) (('j' << 8) | a)
8#define VFCGCTRL (VFC_IOCTL (0))
9#define VFCSCTRL (VFC_IOCTL (1))
10#define VFCGVID (VFC_IOCTL (2))
11#define VFCSVID (VFC_IOCTL (3))
12#define VFCHUE (VFC_IOCTL (4))
13#define VFCPORTCHG (VFC_IOCTL (5))
14#define VFCRDINFO (VFC_IOCTL (6))
15
16
17#define MEMPRST 0x1
18#define CAPTRCMD 0x2
19#define DIAGMODE 0x3
20#define NORMMODE 0x4
21#define CAPTRSTR 0x5
22#define CAPTRWAIT 0x6
23
24
25
26#define STD_NTSC 0x1
27#define STD_PAL 0x2
28#define COLOR_ON 0x3
29#define MONO 0x4
30
31
32
33#define NO_LOCK 1
34#define NTSC_COLOR 2
35#define NTSC_NOCOLOR 3
36#define PAL_COLOR 4
37#define PAL_NOCOLOR 5
38
39
40
41#define ODD_FIELD 0x1
42#define EVEN_FIELD 0x0
43#define ACTIVE_ONLY 0x2
44#define NON_ACTIVE 0x0
45
46
47#define VFC_I2C_SEND 0
48#define VFC_I2C_RECV 1
49
50struct vfc_debug_inout
51{
52 unsigned long addr;
53 unsigned long ret;
54 unsigned long len;
55 unsigned char *buffer;
56};
57
58#endif
59