[PATCH] Add two drivers for Hexium frame grabber cards
[linux-2.6/history.git] / drivers / media / video / hexium.h
blob80ddb2418d9a6126afb3851735ebadead5a2aa56
1 #ifndef __HEXIUM__
2 #define __HEXIUM__
4 #define HEXIUM_HV_PCI6_ORION 1
5 #define HEXIUM_ORION_1SVHS_3BNC 2
6 #define HEXIUM_ORION_4BNC 3
7 #define HEXIUM_GEMUINI 4
8 #define HEXIUM_GEMUINI_DUAL 5
10 static struct saa7146_standard hexium_standards[] = {
12 .name = "PAL", .id = V4L2_STD_PAL,
13 .v_offset = 0x17, .v_field = 288, .v_calc = 576,
14 .h_offset = 0x14, .h_pixels = 680, .h_calc = 680+1,
15 .v_max_out = 576, .h_max_out = 768,
16 }, {
17 .name = "NTSC", .id = V4L2_STD_NTSC,
18 .v_offset = 0x17, .v_field = 240, .v_calc = 480,
19 .h_offset = 0x06, .h_pixels = 640, .h_calc = 641+1,
20 .v_max_out = 480, .h_max_out = 640,
21 }, {
22 .name = "SECAM", .id = V4L2_STD_SECAM,
23 .v_offset = 0x14, .v_field = 288, .v_calc = 576,
24 .h_offset = 0x14, .h_pixels = 720, .h_calc = 720+1,
25 .v_max_out = 576, .h_max_out = 768,
27 };
30 #define HEXIUM_INPUTS 9
31 static struct v4l2_input hexium_inputs[HEXIUM_INPUTS] = {
32 { 0, "CVBS 1", V4L2_INPUT_TYPE_CAMERA, 2, 0, V4L2_STD_PAL_BG|V4L2_STD_NTSC_M, 0 },
33 { 1, "CVBS 2", V4L2_INPUT_TYPE_CAMERA, 2, 0, V4L2_STD_PAL_BG|V4L2_STD_NTSC_M, 0 },
34 { 2, "CVBS 3", V4L2_INPUT_TYPE_CAMERA, 2, 0, V4L2_STD_PAL_BG|V4L2_STD_NTSC_M, 0 },
35 { 3, "CVBS 4", V4L2_INPUT_TYPE_CAMERA, 2, 0, V4L2_STD_PAL_BG|V4L2_STD_NTSC_M, 0 },
36 { 4, "CVBS 5", V4L2_INPUT_TYPE_CAMERA, 2, 0, V4L2_STD_PAL_BG|V4L2_STD_NTSC_M, 0 },
37 { 5, "CVBS 6", V4L2_INPUT_TYPE_CAMERA, 2, 0, V4L2_STD_PAL_BG|V4L2_STD_NTSC_M, 0 },
38 { 6, "Y/C 1", V4L2_INPUT_TYPE_CAMERA, 2, 0, V4L2_STD_PAL_BG|V4L2_STD_NTSC_M, 0 },
39 { 7, "Y/C 2", V4L2_INPUT_TYPE_CAMERA, 2, 0, V4L2_STD_PAL_BG|V4L2_STD_NTSC_M, 0 },
40 { 8, "Y/C 3", V4L2_INPUT_TYPE_CAMERA, 2, 0, V4L2_STD_PAL_BG|V4L2_STD_NTSC_M, 0 },
43 #define HEXIUM_AUDIOS 0
45 struct hexium_data
47 s8 adr;
48 u8 byte;
51 #endif