annotate vidix/drivers/unichrome_regs.h @ 22756:3d6a64f3d28f

Every X-QT stream needs video frame rate (not just avc, mpeg4 and svq3)
author cehoyos
date Thu, 22 Mar 2007 10:01:20 +0000
parents c971585ddcab
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
13605
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
1 /* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/via/via.h,v 1.5 2004/01/05 00:34:17 dawes Exp $ */
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
2 /*
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
3 * Copyright 1998-2003 VIA Technologies, Inc. All Rights Reserved.
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
4 * Copyright 2001-2003 S3 Graphics, Inc. All Rights Reserved.
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
5 *
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
6 * Permission is hereby granted, free of charge, to any person obtaining a
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
7 * copy of this software and associated documentation files (the "Software"),
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
8 * to deal in the Software without restriction, including without limitation
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
9 * the rights to use, copy, modify, merge, publish, distribute, sub license,
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
10 * and/or sell copies of the Software, and to permit persons to whom the
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
11 * Software is furnished to do so, subject to the following conditions:
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
12 *
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
13 * The above copyright notice and this permission notice (including the
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
14 * next paragraph) shall be included in all copies or substantial portions
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
15 * of the Software.
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
16 *
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
17 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
18 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
19 * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
20 * VIA, S3 GRAPHICS, AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
21 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
22 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
23 * DEALINGS IN THE SOFTWARE.
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
24 */
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
25
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
26 #ifndef _VIA_H_
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
27 #define _VIA_H_ 1
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
28
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
29 /* Video status flag */
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
30
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
31 #define VIDEO_SHOW 0x80000000 /*Video on*/
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
32 #define VIDEO_HIDE 0x00000000 /*Video off*/
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
33 #define VIDEO_MPEG_INUSE 0x08000000 /*Video is used with MPEG */
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
34 #define VIDEO_HQV_INUSE 0x04000000 /*Video is used with HQV*/
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
35 #define VIDEO_CAPTURE0_INUSE 0x02000000 /*Video is used with CAPTURE 0*/
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
36 #define VIDEO_CAPTURE1_INUSE 0x00000000 /*Video is used with CAPTURE 1*/
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
37 #define VIDEO_1_INUSE 0x01000000 /*Video 1 is used with software flip*/
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
38 #define VIDEO_3_INUSE 0x00000000 /*Video 3 is used with software flip*/
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
39 #define MPEG_USE_V1 0x00010000 /*[16] : 1:MPEG use V1, 0:MPEG use V3*/
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
40 #define MPEG_USE_V3 0x00000000 /*[16] : 1:MPEG use V1, 0:MPEG use V3*/
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
41 #define MPEG_USE_HQV 0x00020000 /*[17] : 1:MPEG use HQV,0:MPEG not use HQV*/
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
42 #define MPEG_USE_HW_FLIP 0x00040000 /*[18] : 1:MPEG use H/W flip,0:MPEG use S/W flip*/
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
43 #define MPEG_USE_SW_FLIP 0x00000000 /*[18] : 1:MPEG use H/W flip,0:MPEG use S/W flip*/
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
44 #define CAP0_USE_V1 0x00001000 /*[12] : 1:Capture 0 use V1, 0:Capture 0 use V3*/
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
45 #define CAP0_USE_V3 0x00000000 /*[12] : 1:Capture 0 use V1, 0:Capture 0 use V3*/
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
46 #define CAP0_USE_HQV 0x00002000 /*[13] : 1:Capture 0 use HQV,0:Capture 0 not use HQV*/
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
47 #define CAP0_USE_HW_FLIP 0x00004000 /*[14] : 1:Capture 0 use H/W flip,0:Capture 0 use S/W flip*/
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
48 #define CAP0_USE_CCIR656 0x00008000 /*[15] : 1:Capture 0 use CCIR656,0:Capture 0 CCIR601*/
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
49 #define CAP1_USE_V1 0x00000100 /*[ 8] : 1:Capture 1 use V1, 0:Capture 1 use V3*/
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
50 #define CAP1_USE_V3 0x00000000 /*[ 8] : 1:Capture 1 use V1, 0:Capture 1 use V3*/
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
51 #define CAP1_USE_HQV 0x00000200 /*[ 9] : 1:Capture 1 use HQV,0:Capture 1 not use HQV*/
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
52 #define CAP1_USE_HW_FLIP 0x00000400 /*[10] : 1:Capture 1 use H/W flip,0:Capture 1 use S/W flip */
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
53 #define SW_USE_V1 0x00000010 /*[ 4] : 1:Capture 1 use V1, 0:Capture 1 use V3 */
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
54 #define SW_USE_V3 0x00000000 /*[ 4] : 1:Capture 1 use V1, 0:Capture 1 use V3 */
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
55 #define SW_USE_HQV 0x00000020 /*[ 5] : 1:Capture 1 use HQV,0:Capture 1 not use HQV */
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
56
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
57 /*
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
58 #define VIDEO1_INUSE 0x00000010 //[ 4] : 1:Video 1 is used with S/W flip
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
59 #define VIDEO1_USE_HQV 0x00000020 //[ 5] : 1:Video 1 use HQV with S/W flip
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
60 #define VIDEO3_INUSE 0x00000001 //[ 0] : 1:Video 3 is used with S/W flip
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
61 #define VIDEO3_USE_HQV 0x00000002 //[ 1] : 1:Video 3 use HQV with S/W flip
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
62 */
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
63
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
64 /* H/W registers for Video Engine */
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
65
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
66 /*
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
67 * bus master
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
68 */
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
69 #define PCI_MASTER_ENABLE 0x01
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
70 #define PCI_MASTER_SCATTER 0x00
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
71 #define PCI_MASTER_SINGLE 0x02
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
72 #define PCI_MASTER_GUI 0x00
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
73 #define PCI_MASTER_VIDEO 0x04
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
74 #define PCI_MASTER_INPUT 0x00
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
75 #define PCI_MASTER_OUTPUT 0x08
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
76
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
77 /*
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
78 * video registers
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
79 */
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
80 #define V_FLAGS 0x00
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
81 #define V_CAP_STATUS 0x04
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
82 #define V_FLIP_STATUS 0x04
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
83 #define V_ALPHA_WIN_START 0x08
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
84 #define V_ALPHA_WIN_END 0x0C
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
85 #define V_ALPHA_CONTROL 0x10
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
86 #define V_CRT_STARTADDR 0x14
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
87 #define V_CRT_STARTADDR_2 0x18
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
88 #define V_ALPHA_STRIDE 0x1C
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
89 #define V_COLOR_KEY 0x20
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
90 #define V_ALPHA_STARTADDR 0x24
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
91 #define V_CHROMAKEY_LOW 0x28
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
92 #define V_CHROMAKEY_HIGH 0x2C
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
93 #define V1_CONTROL 0x30
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
94 #define V12_QWORD_PER_LINE 0x34
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
95 #define V1_STARTADDR_1 0x38
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
96 #define V1_STARTADDR_Y1 V1_STARTADDR_1
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
97 #define V1_STRIDE 0x3C
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
98 #define V1_WIN_START_Y 0x40
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
99 #define V1_WIN_START_X 0x42
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
100 #define V1_WIN_END_Y 0x44
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
101 #define V1_WIN_END_X 0x46
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
102 #define V1_STARTADDR_2 0x48
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
103 #define V1_STARTADDR_Y2 V1_STARTADDR_2
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
104 #define V1_ZOOM_CONTROL 0x4C
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
105 #define V1_MINI_CONTROL 0x50
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
106 #define V1_STARTADDR_0 0x54
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
107 #define V1_STARTADDR_Y0 V1_STARTADDR_0
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
108 #define V_FIFO_CONTROL 0x58
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
109 #define V1_STARTADDR_3 0x5C
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
110 #define V1_STARTADDR_Y3 V1_STARTADDR_3
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
111 #define HI_CONTROL 0x60
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
112 #define SND_COLOR_KEY 0x64
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
113 #define ALPHA_V3_PREFIFO_CONTROL 0x68
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
114 #define V1_SOURCE_HEIGHT 0x6C
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
115 #define HI_TRANSPARENT_COLOR 0x70
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
116 #define V_DISPLAY_TEMP 0x74 /* No use */
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
117 #define ALPHA_V3_FIFO_CONTROL 0x78
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
118 #define V3_SOURCE_WIDTH 0x7C
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
119 #define V3_COLOR_KEY 0x80
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
120 #define V1_ColorSpaceReg_1 0x84
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
121 #define V1_ColorSpaceReg_2 0x88
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
122 #define V1_STARTADDR_CB0 0x8C
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
123 #define V1_OPAQUE_CONTROL 0x90 /* To be deleted */
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
124 #define V3_OPAQUE_CONTROL 0x94 /* To be deleted */
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
125 #define V_COMPOSE_MODE 0x98
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
126 #define V3_STARTADDR_2 0x9C
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
127 #define V3_CONTROL 0xA0
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
128 #define V3_STARTADDR_0 0xA4
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
129 #define V3_STARTADDR_1 0xA8
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
130 #define V3_STRIDE 0xAC
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
131 #define V3_WIN_START_Y 0xB0
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
132 #define V3_WIN_START_X 0xB2
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
133 #define V3_WIN_END_Y 0xB4
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
134 #define V3_WIN_END_X 0xB6
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
135 #define V3_ALPHA_QWORD_PER_LINE 0xB8
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
136 #define V3_ZOOM_CONTROL 0xBC
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
137 #define V3_MINI_CONTROL 0xC0
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
138 #define V3_ColorSpaceReg_1 0xC4
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
139 #define V3_ColorSpaceReg_2 0xC8
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
140 #define V3_DISPLAY_TEMP 0xCC /* No use */
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
141 #define V1_STARTADDR_CB1 0xE4
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
142 #define V1_STARTADDR_CB2 0xE8
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
143 #define V1_STARTADDR_CB3 0xEC
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
144 #define V1_STARTADDR_CR0 0xF0
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
145 #define V1_STARTADDR_CR1 0xF4
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
146 #define V1_STARTADDR_CR2 0xF8
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
147 #define V1_STARTADDR_CR3 0xFC
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
148
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
149 /* Video Capture Engine Registers
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
150 * Capture Port 1
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
151 */
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
152 #define CAP0_MASKS 0x100
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
153 #define CAP1_MASKS 0x104
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
154 #define CAP0_CONTROL 0x110
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
155 #define CAP0_H_RANGE 0x114
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
156 #define CAP0_V_RANGE 0x118
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
157 #define CAP0_SCAL_CONTROL 0x11C
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
158 #define CAP0_VBI_H_RANGE 0x120
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
159 #define CAP0_VBI_V_RANGE 0x124
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
160 #define CAP0_VBI_STARTADDR 0x128
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
161 #define CAP0_VBI_STRIDE 0x12C
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
162 #define CAP0_ANCIL_COUNT 0x130
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
163 #define CAP0_MAXCOUNT 0x134
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
164 #define CAP0_VBIMAX_COUNT 0x138
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
165 #define CAP0_DATA_COUNT 0x13C
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
166 #define CAP0_FB_STARTADDR0 0x140
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
167 #define CAP0_FB_STARTADDR1 0x144
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
168 #define CAP0_FB_STARTADDR2 0x148
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
169 #define CAP0_STRIDE 0x150
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
170 /* Capture Port 2 */
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
171 #define CAP1_CONTROL 0x154
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
172 #define CAP1_SCAL_CONTROL 0x160
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
173 #define CAP1_VBI_H_RANGE 0x164 /*To be deleted*/
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
174 #define CAP1_VBI_V_RANGE 0x168 /*To be deleted*/
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
175 #define CAP1_VBI_STARTADDR 0x16C /*To be deleted*/
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
176 #define CAP1_VBI_STRIDE 0x170 /*To be deleted*/
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
177 #define CAP1_ANCIL_COUNT 0x174 /*To be deleted*/
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
178 #define CAP1_MAXCOUNT 0x178
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
179 #define CAP1_VBIMAX_COUNT 0x17C /*To be deleted*/
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
180 #define CAP1_DATA_COUNT 0x180
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
181 #define CAP1_FB_STARTADDR0 0x184
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
182 #define CAP1_FB_STARTADDR1 0x188
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
183 #define CAP1_STRIDE 0x18C
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
184
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
185 /* SUBPICTURE Registers */
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
186 #define SUBP_CONTROL_STRIDE 0x1C0
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
187 #define SUBP_STARTADDR 0x1C4
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
188 #define RAM_TABLE_CONTROL 0x1C8
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
189 #define RAM_TABLE_READ 0x1CC
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
190
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
191 /* HQV Registers */
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
192 #define HQV_CONTROL 0x1D0
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
193 #define HQV_SRC_STARTADDR_Y 0x1D4
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
194 #define HQV_SRC_STARTADDR_U 0x1D8
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
195 #define HQV_SRC_STARTADDR_V 0x1DC
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
196 #define HQV_SRC_FETCH_LINE 0x1E0
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
197 #define HQV_FILTER_CONTROL 0x1E4
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
198 #define HQV_MINIFY_CONTROL 0x1E8
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
199 #define HQV_DST_STARTADDR0 0x1EC
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
200 #define HQV_DST_STARTADDR1 0x1F0
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
201 #define HQV_DST_STARTADDR2 0x1FC
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
202 #define HQV_DST_STRIDE 0x1F4
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
203 #define HQV_SRC_STRIDE 0x1F8
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
204
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
205
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
206 /*
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
207 * Video command definition
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
208 */
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
209 /* #define V_ALPHA_CONTROL 0x210 */
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
210 #define ALPHA_WIN_EXPIRENUMBER_4 0x00040000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
211 #define ALPHA_WIN_CONSTANT_FACTOR_4 0x00004000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
212 #define ALPHA_WIN_CONSTANT_FACTOR_12 0x0000c000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
213 #define ALPHA_WIN_BLENDING_CONSTANT 0x00000000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
214 #define ALPHA_WIN_BLENDING_ALPHA 0x00000001
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
215 #define ALPHA_WIN_BLENDING_GRAPHIC 0x00000002
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
216 #define ALPHA_WIN_PREFIFO_THRESHOLD_12 0x000c0000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
217 #define ALPHA_WIN_FIFO_THRESHOLD_8 0x000c0000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
218 #define ALPHA_WIN_FIFO_DEPTH_16 0x00100000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
219
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
220 /* V_CHROMAKEY_LOW 0x228 */
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
221 #define V_CHROMAKEY_V3 0x80000000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
222
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
223 /* V1_CONTROL 0x230 */
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
224 #define V1_ENABLE 0x00000001
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
225 #define V1_FULL_SCREEN 0x00000002
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
226 #define V1_YUV422 0x00000000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
227 #define V1_RGB32 0x00000004
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
228 #define V1_RGB15 0x00000008
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
229 #define V1_RGB16 0x0000000C
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
230 #define V1_YCbCr420 0x00000010
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
231 #define V1_COLORSPACE_SIGN 0x00000080
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
232 #define V1_SRC_IS_FIELD_PIC 0x00000200
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
233 #define V1_SRC_IS_FRAME_PIC 0x00000000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
234 #define V1_BOB_ENABLE 0x00400000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
235 #define V1_FIELD_BASE 0x00000000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
236 #define V1_FRAME_BASE 0x01000000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
237 #define V1_SWAP_SW 0x00000000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
238 #define V1_SWAP_HW_HQV 0x02000000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
239 #define V1_SWAP_HW_CAPTURE 0x04000000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
240 #define V1_SWAP_HW_MC 0x06000000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
241 /* #define V1_DOUBLE_BUFFERS 0x00000000 */
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
242 /* #define V1_QUADRUPLE_BUFFERS 0x18000000 */
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
243 #define V1_EXPIRE_NUM 0x00050000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
244 #define V1_EXPIRE_NUM_A 0x000a0000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
245 #define V1_EXPIRE_NUM_F 0x000f0000 /* jason */
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
246 #define V1_FIFO_EXTENDED 0x00200000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
247 #define V1_ON_CRT 0x00000000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
248 #define V1_ON_SND_DISPLAY 0x80000000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
249 #define V1_FIFO_32V1_32V2 0x00000000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
250 #define V1_FIFO_48V1_32V2 0x00200000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
251
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
252 /* V12_QWORD_PER_LINE 0x234 */
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
253 #define V1_FETCH_COUNT 0x3ff00000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
254 #define V1_FETCHCOUNT_ALIGNMENT 0x0000000f
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
255 #define V1_FETCHCOUNT_UNIT 0x00000004 /* Doubld QWORD */
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
256
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
257 /* V1_STRIDE */
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
258 #define V1_STRIDE_YMASK 0x00001fff
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
259 #define V1_STRIDE_UVMASK 0x1ff00000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
260
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
261 /* V1_ZOOM_CONTROL 0x24C */
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
262 #define V1_X_ZOOM_ENABLE 0x80000000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
263 #define V1_Y_ZOOM_ENABLE 0x00008000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
264
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
265 /* V1_MINI_CONTROL 0x250 */
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
266 #define V1_X_INTERPOLY 0x00000002 /* X interpolation */
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
267 #define V1_Y_INTERPOLY 0x00000001 /* Y interpolation */
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
268 #define V1_YCBCR_INTERPOLY 0x00000004 /* Y, Cb, Cr all interpolation */
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
269 #define V1_X_DIV_2 0x01000000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
270 #define V1_X_DIV_4 0x03000000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
271 #define V1_X_DIV_8 0x05000000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
272 #define V1_X_DIV_16 0x07000000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
273 #define V1_Y_DIV_2 0x00010000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
274 #define V1_Y_DIV_4 0x00030000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
275 #define V1_Y_DIV_8 0x00050000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
276 #define V1_Y_DIV_16 0x00070000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
277
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
278 /* V1_STARTADDR0 0x254 */
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
279 #define SW_FLIP_ODD 0x08000000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
280
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
281 /* V_FIFO_CONTROL 0x258
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
282 * IA2 has 32 level FIFO for packet mode video format
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
283 * 32 level FIFO for planar mode video YV12. with extension reg 230 bit 21 enable
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
284 * 16 level FIFO for planar mode video YV12. with extension reg 230 bit 21 disable
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
285 * BCos of 128 bits. 1 level in IA2 = 2 level in VT3122
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
286 */
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
287 #define V1_FIFO_DEPTH12 0x0000000B
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
288 #define V1_FIFO_DEPTH16 0x0000000F
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
289 #define V1_FIFO_DEPTH32 0x0000001F
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
290 #define V1_FIFO_DEPTH48 0x0000002F
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
291 #define V1_FIFO_DEPTH64 0x0000003F
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
292 #define V1_FIFO_THRESHOLD6 0x00000600
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
293 #define V1_FIFO_THRESHOLD8 0x00000800
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
294 #define V1_FIFO_THRESHOLD12 0x00000C00
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
295 #define V1_FIFO_THRESHOLD16 0x00001000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
296 #define V1_FIFO_THRESHOLD24 0x00001800
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
297 #define V1_FIFO_THRESHOLD32 0x00002000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
298 #define V1_FIFO_THRESHOLD40 0x00002800
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
299 #define V1_FIFO_THRESHOLD48 0x00003000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
300 #define V1_FIFO_THRESHOLD56 0x00003800
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
301 #define V1_FIFO_THRESHOLD61 0x00003D00
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
302 #define V1_FIFO_PRETHRESHOLD10 0x0A000000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
303 #define V1_FIFO_PRETHRESHOLD12 0x0C000000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
304 #define V1_FIFO_PRETHRESHOLD29 0x1d000000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
305 #define V1_FIFO_PRETHRESHOLD40 0x28000000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
306 #define V1_FIFO_PRETHRESHOLD44 0x2c000000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
307 #define V1_FIFO_PRETHRESHOLD56 0x38000000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
308 #define V1_FIFO_PRETHRESHOLD61 0x3D000000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
309
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
310 /* ALPHA_V3_FIFO_CONTROL 0x278
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
311 * IA2 has 32 level FIFO for packet mode video format
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
312 * 32 level FIFO for planar mode video YV12. with extension reg 230 bit 21 enable
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
313 * 16 level FIFO for planar mode video YV12. with extension reg 230 bit 21 disable
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
314 * 8 level FIFO for ALPHA
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
315 * BCos of 128 bits. 1 level in IA2 = 2 level in VT3122
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
316 */
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
317 #define V3_FIFO_DEPTH16 0x0000000F
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
318 #define V3_FIFO_DEPTH24 0x00000017
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
319 #define V3_FIFO_DEPTH32 0x0000001F
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
320 #define V3_FIFO_DEPTH48 0x0000002F
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
321 #define V3_FIFO_DEPTH64 0x0000003F
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
322 #define V3_FIFO_THRESHOLD8 0x00000800
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
323 #define V3_FIFO_THRESHOLD12 0x00000C00
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
324 #define V3_FIFO_THRESHOLD16 0x00001000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
325 #define V3_FIFO_THRESHOLD24 0x00001800
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
326 #define V3_FIFO_THRESHOLD32 0x00002000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
327 #define V3_FIFO_THRESHOLD40 0x00002800
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
328 #define V3_FIFO_THRESHOLD48 0x00003000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
329 #define V3_FIFO_THRESHOLD56 0x00003800
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
330 #define V3_FIFO_THRESHOLD61 0x00003D00
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
331 #define V3_FIFO_PRETHRESHOLD10 0x0000000A
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
332 #define V3_FIFO_PRETHRESHOLD12 0x0000000C
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
333 #define V3_FIFO_PRETHRESHOLD29 0x0000001d
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
334 #define V3_FIFO_PRETHRESHOLD40 0x00000028
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
335 #define V3_FIFO_PRETHRESHOLD44 0x0000002c
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
336 #define V3_FIFO_PRETHRESHOLD56 0x00000038
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
337 #define V3_FIFO_PRETHRESHOLD61 0x0000003D
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
338 #define V3_FIFO_MASK 0x0000007F
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
339 #define ALPHA_FIFO_DEPTH8 0x00070000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
340 #define ALPHA_FIFO_THRESHOLD4 0x04000000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
341 #define ALPHA_FIFO_MASK 0xffff0000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
342 #define ALPHA_FIFO_PRETHRESHOLD4 0x00040000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
343
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
344 /* IA2 */
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
345 #define ColorSpaceValue_1 0x140020f2
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
346 #define ColorSpaceValue_2 0x0a0a2c00
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
347
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
348 #define ColorSpaceValue_1_3123C0 0x13000DED
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
349 #define ColorSpaceValue_2_3123C0 0x13171000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
350
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
351 /* For TV setting */
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
352 #define ColorSpaceValue_1TV 0x140020f2
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
353 #define ColorSpaceValue_2TV 0x0a0a2c00
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
354
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
355 /* V_COMPOSE_MODE 0x298 */
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
356 #define SELECT_VIDEO_IF_COLOR_KEY 0x00000001 /* select video if (color key),otherwise select graphics */
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
357 #define SELECT_VIDEO3_IF_COLOR_KEY 0x00000020 /* For 3123C0, select video3 if (color key),otherwise select graphics */
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
358 #define SELECT_VIDEO_IF_CHROMA_KEY 0x00000002 /* 0x0000000a //select video if (chroma key ),otherwise select graphics */
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
359 #define ALWAYS_SELECT_VIDEO 0x00000000 /* always select video,Chroma key and Color key disable */
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
360 #define COMPOSE_V1_V3 0x00000000 /* V1 on top of V3 */
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
361 #define COMPOSE_V3_V1 0x00100000 /* V3 on top of V1 */
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
362 #define COMPOSE_V1_TOP 0x00000000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
363 #define COMPOSE_V3_TOP 0x00100000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
364 #define V1_COMMAND_FIRE 0x80000000 /* V1 commands fire */
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
365 #define V3_COMMAND_FIRE 0x40000000 /* V3 commands fire */
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
366 #define V_COMMAND_LOAD 0x20000000 /* Video register always loaded */
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
367 #define V_COMMAND_LOAD_VBI 0x10000000 /* Video register always loaded at vbi without waiting source flip */
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
368 #define V3_COMMAND_LOAD 0x08000000 /* CLE_C0 Video3 register always loaded */
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
369 #define V3_COMMAND_LOAD_VBI 0x00000100 /* CLE_C0 Video3 register always loaded at vbi without waiting source flip */
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
370 #define SECOND_DISPLAY_COLOR_KEY_ENABLE 0x00010000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
371
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
372 /* V3_ZOOM_CONTROL 0x2bc */
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
373 #define V3_X_ZOOM_ENABLE 0x80000000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
374 #define V3_Y_ZOOM_ENABLE 0x00008000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
375
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
376 /* V3_MINI_CONTROL 0x2c0 */
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
377 #define V3_X_INTERPOLY 0x00000002 /* X interpolation */
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
378 #define V3_Y_INTERPOLY 0x00000001 /* Y interpolation */
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
379 #define V3_YCBCR_INTERPOLY 0x00000004 /* Y, Cb, Cr all interpolation */
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
380 #define V3_X_DIV_2 0x01000000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
381 #define V3_X_DIV_4 0x03000000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
382 #define V3_X_DIV_8 0x05000000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
383 #define V3_X_DIV_16 0x07000000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
384 #define V3_Y_DIV_2 0x00010000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
385 #define V3_Y_DIV_4 0x00030000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
386 #define V3_Y_DIV_8 0x00050000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
387 #define V3_Y_DIV_16 0x00070000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
388
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
389 /* SUBP_CONTROL_STRIDE 0x3c0 */
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
390 #define SUBP_HQV_ENABLE 0x00010000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
391 #define SUBP_IA44 0x00020000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
392 #define SUBP_AI44 0x00000000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
393 #define SUBP_STRIDE_MASK 0x00001fff
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
394 #define SUBP_CONTROL_MASK 0x00070000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
395
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
396 /* RAM_TABLE_CONTROL 0x3c8 */
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
397 #define RAM_TABLE_RGB_ENABLE 0x00000007
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
398
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
399 /* CAPTURE0_CONTROL 0x310 */
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
400 #define C0_ENABLE 0x00000001
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
401 #define BUFFER_2_MODE 0x00000000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
402 #define BUFFER_3_MODE 0x00000004
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
403 #define BUFFER_4_MODE 0x00000006
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
404 #define SWAP_YUYV 0x00000000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
405 #define SWAP_UYVY 0x00000100
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
406 #define SWAP_YVYU 0x00000200
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
407 #define SWAP_VYUY 0x00000300
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
408 #define IN_601_8 0x00000000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
409 #define IN_656_8 0x00000010
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
410 #define IN_601_16 0x00000020
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
411 #define IN_656_16 0x00000030
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
412 #define DEINTER_ODD 0x00000000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
413 #define DEINTER_EVEN 0x00001000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
414 #define DEINTER_ODD_EVEN 0x00002000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
415 #define DEINTER_FRAME 0x00003000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
416 #define VIP_1 0x00000000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
417 #define VIP_2 0x00000400
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
418 #define H_FILTER_2 0x00010000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
419 #define H_FILTER_4 0x00020000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
420 #define H_FILTER_8_1331 0x00030000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
421 #define H_FILTER_8_12221 0x00040000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
422 #define VIP_ENABLE 0x00000008
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
423 #define EN_FIELD_SIG 0x00000800
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
424 #define VREF_INVERT 0x00100000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
425 #define FIELD_INPUT_INVERSE 0x00400000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
426 #define FIELD_INVERSE 0x40000000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
427
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
428 #define C1_H_MINI_EN 0x00000800
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
429 #define C0_H_MINI_EN 0x00000800
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
430 #define C1_V_MINI_EN 0x04000000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
431 #define C0_V_MINI_EN 0x04000000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
432 #define C1_H_MINI_2 0x00000400
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
433
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
434 /* CAPTURE1_CONTROL 0x354 */
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
435 #define C1_ENABLE 0x00000001
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
436
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
437 /* V3_CONTROL 0x2A0 */
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
438 #define V3_ENABLE 0x00000001
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
439 #define V3_FULL_SCREEN 0x00000002
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
440 #define V3_YUV422 0x00000000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
441 #define V3_RGB32 0x00000004
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
442 #define V3_RGB15 0x00000008
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
443 #define V3_RGB16 0x0000000C
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
444 #define V3_COLORSPACE_SIGN 0x00000080
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
445 #define V3_EXPIRE_NUM 0x00040000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
446 #define V3_EXPIRE_NUM_F 0x000f0000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
447 #define V3_BOB_ENABLE 0x00400000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
448 #define V3_FIELD_BASE 0x00000000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
449 #define V3_FRAME_BASE 0x01000000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
450 #define V3_SWAP_SW 0x00000000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
451 #define V3_SWAP_HW_HQV 0x02000000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
452 #define V3_FLIP_HW_CAPTURE0 0x04000000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
453 #define V3_FLIP_HW_CAPTURE1 0x06000000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
454
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
455 /* V3_ALPHA_FETCH_COUNT 0x2B8 */
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
456 #define V3_FETCH_COUNT 0x3ff00000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
457 #define ALPHA_FETCH_COUNT 0x000003ff
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
458
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
459 /* HQV_CONTROL 0x3D0 */
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
460 #define HQV_RGB32 0x00000000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
461 #define HQV_RGB16 0x20000000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
462 #define HQV_RGB15 0x30000000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
463 #define HQV_YUV422 0x80000000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
464 #define HQV_YUV420 0xC0000000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
465 #define HQV_ENABLE 0x08000000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
466 #define HQV_SRC_SW 0x00000000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
467 #define HQV_SRC_MC 0x01000000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
468 #define HQV_SRC_CAPTURE0 0x02000000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
469 #define HQV_SRC_CAPTURE1 0x03000000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
470 #define HQV_FLIP_EVEN 0x00000000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
471 #define HQV_FLIP_ODD 0x00000020
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
472 #define HQV_SW_FLIP 0x00000010 /* Write 1 to flip HQV buffer */
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
473 #define HQV_DEINTERLACE 0x00010000 /* First line of odd field will be repeated 3 times */
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
474 #define HQV_FIELD_2_FRAME 0x00020000 /* Src is field. Display each line 2 times */
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
475 #define HQV_FRAME_2_FIELD 0x00040000 /* Src is field. Display field */
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
476 #define HQV_FRAME_UV 0x00000000 /* Src is Non-interleaved */
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
477 #define HQV_FIELD_UV 0x00100000 /* Src is interleaved */
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
478 #define HQV_IDLE 0x00000008
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
479 #define HQV_FLIP_STATUS 0x00000001
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
480 #define HQV_DOUBLE_BUFF 0x00000000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
481 #define HQV_TRIPLE_BUFF 0x04000000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
482 #define HQV_SUBPIC_FLIP 0x00008000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
483 #define HQV_FIFO_STATUS 0x00001000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
484
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
485 /* HQV_FILTER_CONTROL 0x3E4 */
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
486 #define HQV_H_LOWPASS_2TAP 0x00000001
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
487 #define HQV_H_LOWPASS_4TAP 0x00000002
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
488 #define HQV_H_LOWPASS_8TAP1 0x00000003 /* To be deleted */
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
489 #define HQV_H_LOWPASS_8TAP2 0x00000004 /* To be deleted */
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
490 #define HQV_H_HIGH_PASS 0x00000008
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
491 #define HQV_H_LOW_PASS 0x00000000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
492 #define HQV_V_LOWPASS_2TAP 0x00010000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
493 #define HQV_V_LOWPASS_4TAP 0x00020000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
494 #define HQV_V_LOWPASS_8TAP1 0x00030000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
495 #define HQV_V_LOWPASS_8TAP2 0x00040000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
496 #define HQV_V_HIGH_PASS 0x00080000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
497 #define HQV_V_LOW_PASS 0x00000000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
498 #define HQV_H_HIPASS_F1_DEFAULT 0x00000040
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
499 #define HQV_H_HIPASS_F2_DEFAULT 0x00000000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
500 #define HQV_V_HIPASS_F1_DEFAULT 0x00400000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
501 #define HQV_V_HIPASS_F2_DEFAULT 0x00000000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
502 #define HQV_H_HIPASS_F1_2TAP 0x00000050
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
503 #define HQV_H_HIPASS_F2_2TAP 0x00000100
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
504 #define HQV_V_HIPASS_F1_2TAP 0x00500000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
505 #define HQV_V_HIPASS_F2_2TAP 0x01000000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
506 #define HQV_H_HIPASS_F1_4TAP 0x00000060
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
507 #define HQV_H_HIPASS_F2_4TAP 0x00000200
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
508 #define HQV_V_HIPASS_F1_4TAP 0x00600000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
509 #define HQV_V_HIPASS_F2_4TAP 0x02000000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
510 #define HQV_H_HIPASS_F1_8TAP 0x00000080
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
511 #define HQV_H_HIPASS_F2_8TAP 0x00000400
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
512 #define HQV_V_HIPASS_F1_8TAP 0x00800000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
513 #define HQV_V_HIPASS_F2_8TAP 0x04000000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
514 /* IA2 NEW */
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
515 #define HQV_V_FILTER2 0x00080000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
516 #define HQV_H_FILTER2 0x00000008
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
517 #define HQV_H_TAP2_11 0x00000041
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
518 #define HQV_H_TAP4_121 0x00000042
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
519 #define HQV_H_TAP4_1111 0x00000401
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
520 #define HQV_H_TAP8_1331 0x00000221
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
521 #define HQV_H_TAP8_12221 0x00000402
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
522 #define HQV_H_TAP16_1991 0x00000159
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
523 #define HQV_H_TAP16_141041 0x0000026A
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
524 #define HQV_H_TAP32 0x0000015A
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
525 #define HQV_V_TAP2_11 0x00410000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
526 #define HQV_V_TAP4_121 0x00420000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
527 #define HQV_V_TAP4_1111 0x04010000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
528 #define HQV_V_TAP8_1331 0x02210000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
529 #define HQV_V_TAP8_12221 0x04020000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
530 #define HQV_V_TAP16_1991 0x01590000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
531 #define HQV_V_TAP16_141041 0x026A0000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
532 #define HQV_V_TAP32 0x015A0000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
533 #define HQV_V_FILTER_DEFAULT 0x00420000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
534 #define HQV_H_FILTER_DEFAULT 0x00000040
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
535
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
536
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
537
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
538
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
539 /* HQV_MINI_CONTROL 0x3E8 */
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
540 #define HQV_H_MINIFY_ENABLE 0x00000800
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
541 #define HQV_V_MINIFY_ENABLE 0x08000000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
542 #define HQV_VDEBLOCK_FILTER 0x80000000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
543 #define HQV_HDEBLOCK_FILTER 0x00008000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
544
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
545
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
546 #define CHROMA_KEY_LOW 0x00FFFFFF
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
547 #define CHROMA_KEY_HIGH 0x00FFFFFF
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
548
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
549 /* V_CAP_STATUS */
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
550 #define V_ST_UPDATE_NOT_YET 0x00000003
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
551 #define V1_ST_UPDATE_NOT_YET 0x00000001
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
552 #define V3_ST_UPDATE_NOT_YET 0x00000008
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
553
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
554 #define VBI_STATUS 0x00000002
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
555
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
556 /*
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
557 * Macros for Video MMIO
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
558 */
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
559 #ifndef V4L2
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
560 #define VIDInB(port) *((volatile CARD8 *)(pVia->VidMapBase + (port)))
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
561 #define VIDInW(port) *((volatile CARD16 *)(pVia->VidMapBase + (port)))
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
562 #define VIDInD(port) *((volatile CARD32 *)(pVia->VidMapBase + (port)))
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
563 #define VIDOutB(port, data) *((volatile CARD8 *)(pVia->VidMapBase + (port))) = (data)
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
564 #define VIDOutW(port, data) *((volatile CARD16 *)(pVia->VidMapBase + (port))) = (data)
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
565 #define VIDOutD(port, data) *((volatile CARD32 *)(pVia->VidMapBase + (port))) = (data)
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
566 #define MPGOutD(port, data) *((volatile CARD32 *)(lpMPEGMMIO +(port))) = (data)
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
567 #define MPGInD(port) *((volatile CARD32 *)(lpMPEGMMIO +(port)))
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
568 #endif
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
569
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
570 /*
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
571 * Macros for GE MMIO
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
572 */
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
573 #define GEInW(port) *((volatile CARD16 *)(lpGEMMIO + (port)))
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
574 #define GEInD(port) *((volatile CARD32 *)(lpGEMMIO + (port)))
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
575 #define GEOutW(port, data) *((volatile CARD16 *)(lpGEMMIO + (port))) = (data)
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
576 #define GEOutD(port, data) *((volatile CARD32 *)(lpGEMMIO + (port))) = (data)
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
577
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
578 /*
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
579 * MPEG 1/2 Slice Engine (at 0xC00 relative to base)
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
580 */
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
581
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
582 #define MPG_CONTROL 0x00
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
583 #define MPG_CONTROL_STRUCT 0x03
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
584 #define MPG_CONTROL_STRUCT_TOP 0x01
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
585 #define MPG_CONTROL_STRUCT_BOTTOM 0x02
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
586 #define MPG_CONTROL_STRUCT_FRAME 0x03
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
587 /* Use TOP if interlaced */
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
588 #define MPG_CONTROL_TYPE 0x3C
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
589 #define MPG_CONTROL_TYPE_I (0x01 << 2)
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
590 #define MPG_CONTROL_TYPE_B (0x02 << 2)
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
591 #define MPG_CONTROL_TYPE_P (0x03 << 3)
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
592 #define MPG_CONTROL_ALTSCAN 0x40
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
593 #define MPG_BLOCK 0x08 /* Unsure */
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
594 #define MPG_COMMAND 0x0C
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
595 #define MPG_DATA1 0x10
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
596 #define MPG_DATA2 0x14
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
597 #define MPG_DATA3 0x18
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
598 #define MPG_DATA4 0x1C
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
599
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
600 #define MPG_YPHYSICAL(x) (0x20 + 12*(x))
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
601 #define MPG_CbPHYSICAL(x) (0x24 + 12*(x))
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
602 #define MPG_CrPHYSICAL(x) (0x28 + 12*(x))
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
603
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
604 #define MPG_PITCH 0x50
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
605 #define MPG_STATUS 0x54
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
606
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
607 #define MPG_MATRIX_IDX 0x5C
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
608 #define MPG_MATRIX_IDX_INTRA 0x00
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
609 #define MPG_MATRIX_IDX_NON 0x01
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
610 #define MPG_MATRIX_DATA 0x60
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
611
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
612 #define MPG_SLICE_CTRL_1 0x90
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
613 #define MPG_SLICE_MBAMAX 0x2FFF
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
614 #define MPG_SLICE_PREDICTIVE_DCT 0x4000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
615 #define MPG_SLICE_TOP_FIRST 0x8000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
616 #define MPG_SLICE_MACROBLOCK_WIDTH(x) ((x)<<18) /* in 64's */
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
617 #define MPG_SLICE_CTRL_2 0x94
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
618 #define MPG_SLICE_CONCEAL_MVEC 0x0000001
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
619 #define MPG_SLICE_QSCALE_TYPE 0x0000002
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
620 #define MPG_SLICE_DCPRECISION 0x000000C
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
621 #define MPG_SLICE_MACROBQUOT 0x0FFFFF0
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
622 #define MPG_SLICE_INTRAVLC 0x1000000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
623 #define MPG_SLICE_CTRL_3 0x98
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
624 #define MPG_SLICE_FHMVR 0x0000003
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
625 #define MPG_SLICE_FVMVR 0x000000C
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
626 #define MPG_SLICE_BHMVR 0x0000030
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
627 #define MPG_SLICE_BVMVR 0x00000C0
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
628 #define MPG_SLICE_SECOND_FIELD 0x0100000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
629 #define MPG_SLICE_RESET 0x0400000
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
630 #define MPG_SLICE_LENGTH 0x9C
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
631 #define MPG_SLICE_DATA 0xA0
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
632
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
633
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
634
c971585ddcab CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
diff changeset
635 #endif /* _VIA_H_ */