MOXA linux-2.6.x / linux-2.6.19-uc1 from UC-7110-LX-BOOTLOADER-1.9_VERSION-4.2.tgz
[linux-2.6.19-moxart.git] / include / linux / dm270-id.h
blob5698caf625acc24b78b0830deaebf781f160e3cb
1 /* FIXME: this temporarily, until these are included in linux/video_decoder.h */
2 struct video_decoder_reg
4 unsigned short addr;
5 unsigned char val;
6 };
8 #define DM270V4L_IMGSIZE_SUBQCIF_WIDTH 128
9 #define DM270V4L_IMGSIZE_SUBQCIF_HEIGHT 96
10 #define DM270V4L_IMGSIZE_QQVGA_WIDTH 160
11 #define DM270V4L_IMGSIZE_QQVGA_HEIGHT 120
12 #define DM270V4L_IMGSIZE_QCIF_WIDTH 176
13 #define DM270V4L_IMGSIZE_QCIF_HEIGHT 144
14 #define DM270V4L_IMGSIZE_QVGA_WIDTH 320
15 #define DM270V4L_IMGSIZE_QVGA_HEIGHT 240
16 #define DM270V4L_IMGSIZE_CIF_WIDTH 352
17 #define DM270V4L_IMGSIZE_CIF_HEIGHT 288
18 #define DM270V4L_IMGSIZE_VGA_WIDTH 640
19 #define DM270V4L_IMGSIZE_VGA_HEIGHT 480
20 #define DM270V4L_IMGSIZE_NTSC_WIDTH 720
21 #define DM270V4L_IMGSIZE_NTSC_HEIGHT 480
23 /* FIXME: this temporarily, until these are included in linux/fb.h */
24 #define FBIOPUT_DM270_COLORIMG 0x4680
25 #define FBCMD_DM270_PRINT_FBUF 0x468e
26 #define FBCMD_DM270_PRINT_REG 0x468f
28 /* FIXME: this temporarily, until these are included in linux/i2c-id.h */
29 /* sensor/video decoder chips */
30 #ifndef I2C_DRIVERID_STV0974
31 # define I2C_DRIVERID_STV0974 I2C_DRIVERID_EXP0
32 #endif
33 #ifndef I2C_DRIVERID_MT9V111
34 # define I2C_DRIVERID_MT9V111 I2C_DRIVERID_EXP1
35 #endif
36 #ifndef I2C_DRIVERID_TCM8210MDA
37 # define I2C_DRIVERID_TCM8210MDA I2C_DRIVERID_EXP2
38 #endif
39 #ifndef I2C_DRIVERID_SAA7113
40 # define I2C_DRIVERID_SAA7113 I2C_DRIVERID_EXP3
41 #endif
42 #ifndef I2C_DRIVERID_TVP5150A
43 # define I2C_DRIVERID_TVP5150A (I2C_DRIVERID_EXP0 + 4)
44 #endif
46 #ifndef GPIO_DRIVERID_4T103X3M
47 # define GPIO_DRIVERID_4T103X3M (I2C_DRIVERID_EXP0 + 5)
48 #endif
50 /* video encoder chips */
51 #ifndef MMIO_DRIVERID_DM270VENC
52 # define MMIO_DRIVERID_DM270VENC (I2C_DRIVERID_EXP0 + 8)
53 #endif
55 /* FIXME: this temporarily, until these are included in linux/videodev2.h */
56 #ifndef V4L2_PIX_FMT_MPEG4
57 # define V4L2_PIX_FMT_MPEG4 v4l2_fourcc('M','P','G','4') /* MPEG4 */
58 #endif
60 /* FIXME: this temporarily, until these are included in linux/videodev2.h */
61 #ifndef V4L2_PIX_FMT_H263
62 # define V4L2_PIX_FMT_H263 v4l2_fourcc('H','2','6','3') /* H.263 */
63 #endif
65 /* FIXME: this temporarily, until these are included in linux/video_decoder.h */
66 #ifndef DECODER_GET_FIELD
67 # define DECODER_GET_FIELD _IOR('d', 128, int)
68 #endif
69 #ifndef DECODER_SET_CROP
70 # define DECODER_SET_CROP _IOW('d', 129, struct v4l2_crop)
71 #endif
72 #ifndef DECODER_SET_FMT
73 # define DECODER_SET_FMT _IOW('d', 130, struct v4l2_format)
74 #endif
75 #ifndef DECODER_INIT
76 # define DECODER_INIT _IOW('d', 131, int)
77 #endif
78 #ifndef DECODER_REG_READ
79 # define DECODER_REG_READ _IOWR('d', 132, struct video_decoder_reg)
80 #endif
81 #ifndef DECODER_REG_WRITE
82 # define DECODER_REG_WRITE _IOW('d', 133, struct video_decoder_reg)
83 #endif
85 /* FIXME: this temporarily, until these are included in linux/videodev2.h */
86 #ifndef VIDIOC_S_CAMERAPWR
87 # define VIDIOC_S_CAMERAPWR _IOW('v', BASE_VIDIOCPRIVATE+4, int)
88 #endif
89 #ifndef VIDIOC_DBGPRINT
90 # define VIDIOC_DBGPRINT _IOW('v', BASE_VIDIOCPRIVATE+7, int)
91 #endif
92 #ifndef VIDIOC_PRTCAPTURE
93 # define VIDIOC_PRTCAPTURE _IOW('v', BASE_VIDIOCPRIVATE+8, int)
94 #endif
95 #ifndef VIDIOC_PRTOUTPUT
96 # define VIDIOC_PRTOUTPUT _IOW('v', BASE_VIDIOCPRIVATE+9, int)
97 #endif
98 #ifndef VIDIOC_PRTOVERLAY
99 # define VIDIOC_PRTOVERLAY _IOW('v', BASE_VIDIOCPRIVATE+10, int)
100 #endif
101 #ifndef VIDIOC_G_DECREG
102 # define VIDIOC_G_DECREG _IOWR('v', BASE_VIDIOCPRIVATE+11, struct video_decoder_reg)
103 #endif
104 #ifndef VIDIOC_S_DECREG
105 # define VIDIOC_S_DECREG _IOW('v', BASE_VIDIOCPRIVATE+12, struct video_decoder_reg)
106 #endif