annotate vidix/sis_regs.h @ 35258:109f7c33a9b6

Simplify mp_input_get_input_from_name.
author reimar
date Mon, 05 Nov 2012 21:22:14 +0000
parents 3abd1629658b
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
23074
109c80c869ac Use standard GPL header.
diego
parents: 22850
diff changeset
1 /*
26718
051b2632f121 consistency cosmetics: Move some parts of file headers around; typo fixes.
diego
parents: 26030
diff changeset
2 * SiS register definitions and access macros
051b2632f121 consistency cosmetics: Move some parts of file headers around; typo fixes.
diego
parents: 26030
diff changeset
3 * From SiS X11 driver
23074
109c80c869ac Use standard GPL header.
diego
parents: 22850
diff changeset
4 *
26718
051b2632f121 consistency cosmetics: Move some parts of file headers around; typo fixes.
diego
parents: 26030
diff changeset
5 * Copyright (C) 2001-2003 by Thomas Winischhofer, Vienna, Austria
23074
109c80c869ac Use standard GPL header.
diego
parents: 22850
diff changeset
6 *
109c80c869ac Use standard GPL header.
diego
parents: 22850
diff changeset
7 * This file is part of MPlayer.
109c80c869ac Use standard GPL header.
diego
parents: 22850
diff changeset
8 *
109c80c869ac Use standard GPL header.
diego
parents: 22850
diff changeset
9 * MPlayer is free software; you can redistribute it and/or modify
109c80c869ac Use standard GPL header.
diego
parents: 22850
diff changeset
10 * it under the terms of the GNU General Public License as published by
109c80c869ac Use standard GPL header.
diego
parents: 22850
diff changeset
11 * the Free Software Foundation; either version 2 of the License, or
109c80c869ac Use standard GPL header.
diego
parents: 22850
diff changeset
12 * (at your option) any later version.
109c80c869ac Use standard GPL header.
diego
parents: 22850
diff changeset
13 *
109c80c869ac Use standard GPL header.
diego
parents: 22850
diff changeset
14 * MPlayer is distributed in the hope that it will be useful,
109c80c869ac Use standard GPL header.
diego
parents: 22850
diff changeset
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
109c80c869ac Use standard GPL header.
diego
parents: 22850
diff changeset
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
109c80c869ac Use standard GPL header.
diego
parents: 22850
diff changeset
17 * GNU General Public License for more details.
109c80c869ac Use standard GPL header.
diego
parents: 22850
diff changeset
18 *
26719
3abd1629658b Use standard license headers.
diego
parents: 26718
diff changeset
19 * You should have received a copy of the GNU General Public License along
3abd1629658b Use standard license headers.
diego
parents: 26718
diff changeset
20 * with MPlayer; if not, write to the Free Software Foundation, Inc.,
3abd1629658b Use standard license headers.
diego
parents: 26718
diff changeset
21 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
23074
109c80c869ac Use standard GPL header.
diego
parents: 22850
diff changeset
22 */
22850
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
23
26030
a93e46adb54c Add MPLAYER_ prefix to multiple inclusion guards.
diego
parents: 25620
diff changeset
24 #ifndef MPLAYER_SIS_REGS_H
a93e46adb54c Add MPLAYER_ prefix to multiple inclusion guards.
diego
parents: 25620
diff changeset
25 #define MPLAYER_SIS_REGS_H
22850
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
26
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
27 #define inSISREG(base) INPORT8(base)
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
28 #define outSISREG(base,val) OUTPORT8(base, val)
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
29 #define orSISREG(base,val) do { \
25620
53e5107ea80d Fix illegal identifiers, names starting with __ are reserved for the system.
diego
parents: 25619
diff changeset
30 unsigned char tmp = INPORT8(base); \
53e5107ea80d Fix illegal identifiers, names starting with __ are reserved for the system.
diego
parents: 25619
diff changeset
31 outSISREG(base, tmp | (val)); \
22850
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
32 } while (0)
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
33 #define andSISREG(base,val) do { \
25620
53e5107ea80d Fix illegal identifiers, names starting with __ are reserved for the system.
diego
parents: 25619
diff changeset
34 unsigned char tmp = INPORT8(base); \
53e5107ea80d Fix illegal identifiers, names starting with __ are reserved for the system.
diego
parents: 25619
diff changeset
35 outSISREG(base, tmp & (val)); \
22850
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
36 } while (0)
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
37
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
38 #define inSISIDXREG(base,idx,var) do { \
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
39 OUTPORT8(base, idx); var=INPORT8((base)+1); \
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
40 } while (0)
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
41 #define outSISIDXREG(base,idx,val) do { \
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
42 OUTPORT8(base, idx); OUTPORT8((base)+1, val); \
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
43 } while (0)
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
44 #define orSISIDXREG(base,idx,val) do { \
25620
53e5107ea80d Fix illegal identifiers, names starting with __ are reserved for the system.
diego
parents: 25619
diff changeset
45 unsigned char tmp; \
22850
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
46 OUTPORT8(base, idx); \
25620
53e5107ea80d Fix illegal identifiers, names starting with __ are reserved for the system.
diego
parents: 25619
diff changeset
47 tmp = INPORT8((base)+1)|(val); \
53e5107ea80d Fix illegal identifiers, names starting with __ are reserved for the system.
diego
parents: 25619
diff changeset
48 outSISIDXREG(base,idx,tmp); \
22850
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
49 } while (0)
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
50 #define andSISIDXREG(base,idx,and) do { \
25620
53e5107ea80d Fix illegal identifiers, names starting with __ are reserved for the system.
diego
parents: 25619
diff changeset
51 unsigned char tmp; \
22850
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
52 OUTPORT8(base, idx); \
25620
53e5107ea80d Fix illegal identifiers, names starting with __ are reserved for the system.
diego
parents: 25619
diff changeset
53 tmp = INPORT8((base)+1)&(and); \
53e5107ea80d Fix illegal identifiers, names starting with __ are reserved for the system.
diego
parents: 25619
diff changeset
54 outSISIDXREG(base,idx,tmp); \
22850
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
55 } while (0)
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
56 #define setSISIDXREG(base,idx,and,or) do { \
25620
53e5107ea80d Fix illegal identifiers, names starting with __ are reserved for the system.
diego
parents: 25619
diff changeset
57 unsigned char tmp; \
22850
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
58 OUTPORT8(base, idx); \
25620
53e5107ea80d Fix illegal identifiers, names starting with __ are reserved for the system.
diego
parents: 25619
diff changeset
59 tmp = (INPORT8((base)+1)&(and))|(or); \
53e5107ea80d Fix illegal identifiers, names starting with __ are reserved for the system.
diego
parents: 25619
diff changeset
60 outSISIDXREG(base,idx,tmp); \
22850
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
61 } while (0)
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
62
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
63 #define BITMASK(h,l) (((unsigned)(1U << ((h)-(l)+1))-1)<<(l))
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
64 #define GENMASK(mask) BITMASK(1?mask,0?mask)
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
65
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
66 #define GETBITS(var,mask) (((var) & GENMASK(mask)) >> (0?mask))
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
67 #define SETBITS(val,mask) ((val) << (0?mask))
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
68 #define SETBIT(n) (1<<(n))
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
69
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
70 #define GETBITSTR(val,from,to) ((GETBITS(val,from)) << (0?to))
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
71 #define SETVARBITS(var,val,from,to) (((var)&(~(GENMASK(to)))) | \
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
72 GETBITSTR(val,from,to))
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
73 #define GETVAR8(var) ((var)&0xFF)
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
74 #define SETVAR8(var,val) (var) = GETVAR8(val)
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
75
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
76 /* #define VGA_RELIO_BASE 0x380 */
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
77
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
78 #define AROFFSET 0x40 /* VGA_ATTR_INDEX - VGA_RELIO_BASE */
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
79 #define ARROFFSET 0x41 /* VGA_ATTR_DATA_R - VGA_RELIO_BASE */
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
80 #define GROFFSET 0x4e /* VGA_GRAPH_INDEX - VGA_RELIO_BASE */
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
81 #define SROFFSET 0x44 /* VGA_SEQ_INDEX - VGA_RELIO_BASE */
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
82 #define CROFFSET 0x54 /* VGA_CRTC_INDEX_OFFSET + VGA_IOBASE_COLOR - VGA_RELIO_BASE */
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
83 #define MISCROFFSET 0x4c /* VGA_MISC_OUT_R - VGA_RELIO_BASE */
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
84 #define MISCWOFFSET 0x42 /* VGA_MISC_OUT_W - VGA_RELIO_BASE */
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
85 #define INPUTSTATOFFSET 0x5A
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
86 #define PART1OFFSET 0x04
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
87 #define PART2OFFSET 0x10
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
88 #define PART3OFFSET 0x12
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
89 #define PART4OFFSET 0x14
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
90 #define PART5OFFSET 0x16
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
91 #define VIDEOOFFSET 0x02
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
92 #define COLREGOFFSET 0x48
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
93
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
94 #define SIS_IOBASE sis_iobase /* var defined in sis_vid.c */
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
95 #define SISAR SIS_IOBASE + AROFFSET
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
96 #define SISARR SIS_IOBASE + ARROFFSET
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
97 #define SISGR SIS_IOBASE + GROFFSET
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
98 #define SISSR SIS_IOBASE + SROFFSET
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
99 #define SISCR SIS_IOBASE + CROFFSET
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
100 #define SISMISCR SIS_IOBASE + MISCROFFSET
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
101 #define SISMISCW SIS_IOBASE + MISCWOFFSET
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
102 #define SISINPSTAT SIS_IOBASE + INPUTSTATOFFSET
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
103 #define SISPART1 SIS_IOBASE + PART1OFFSET
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
104 #define SISPART2 SIS_IOBASE + PART2OFFSET
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
105 #define SISPART3 SIS_IOBASE + PART3OFFSET
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
106 #define SISPART4 SIS_IOBASE + PART4OFFSET
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
107 #define SISPART5 SIS_IOBASE + PART5OFFSET
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
108 #define SISVID SIS_IOBASE + VIDEOOFFSET
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
109 #define SISCOLIDX SIS_IOBASE + COLREGOFFSET
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
110 #define SISCOLDATA SIS_IOBASE + COLREGOFFSET + 1
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
111 #define SISCOL2IDX SISPART5
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
112 #define SISCOL2DATA SISPART5 + 1
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
113
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
114
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
115 #define vc_index_offset 0x00 /* Video capture - unused */
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
116 #define vc_data_offset 0x01
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
117 #define vi_index_offset VIDEOOFFSET
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
118 #define vi_data_offset (VIDEOOFFSET + 1)
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
119 #define crt2_index_offset PART1OFFSET
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
120 #define crt2_port_offset (PART1OFFSET + 1)
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
121 #define sr_index_offset SROFFSET
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
122 #define sr_data_offset (SROFFSET + 1)
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
123 #define cr_index_offset CROFFSET
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
124 #define cr_data_offset (CROFFSET + 1)
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
125 #define input_stat INPUTSTATOFFSET
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
126
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
127 /* For old chipsets (5597/5598, 6326, 530/620) ------------ */
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
128 /* SR (3C4) */
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
129 #define BankReg 0x06
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
130 #define ClockReg 0x07
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
131 #define CPUThreshold 0x08
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
132 #define CRTThreshold 0x09
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
133 #define CRTCOff 0x0A
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
134 #define DualBanks 0x0B
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
135 #define MMIOEnable 0x0B
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
136 #define RAMSize 0x0C
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
137 #define Mode64 0x0C
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
138 #define ExtConfStatus1 0x0E
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
139 #define ClockBase 0x13
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
140 #define LinearAdd0 0x20
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
141 #define LinearAdd1 0x21
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
142 #define GraphEng 0x27
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
143 #define MemClock0 0x28
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
144 #define MemClock1 0x29
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
145 #define XR2A 0x2A
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
146 #define XR2B 0x2B
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
147 #define TurboQueueBase 0x2C
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
148 #define FBSize 0x2F
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
149 #define ExtMiscCont5 0x34
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
150 #define ExtMiscCont9 0x3C
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
151
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
152 /* 3x4 */
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
153 #define Offset 0x13
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
154
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
155 /* SiS Registers for 300, 540, 630, 730, 315, 550, 650, 740 */
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
156
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
157 /* VGA standard register */
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
158 #define Index_SR_Graphic_Mode 0x06
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
159 #define Index_SR_RAMDAC_Ctrl 0x07
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
160 #define Index_SR_Threshold_Ctrl1 0x08
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
161 #define Index_SR_Threshold_Ctrl2 0x09
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
162 #define Index_SR_Misc_Ctrl 0x0F
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
163 #define Index_SR_DDC 0x11
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
164 #define Index_SR_Feature_Connector_Ctrl 0x12
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
165 #define Index_SR_DRAM_Sizing 0x14
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
166 #define Index_SR_DRAM_State_Machine_Ctrl 0x15
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
167 #define Index_SR_AGP_PCI_State_Machine 0x21
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
168 #define Index_SR_Internal_MCLK0 0x28
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
169 #define Index_SR_Internal_MCLK1 0x29
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
170 #define Index_SR_Internal_DCLK1 0x2B
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
171 #define Index_SR_Internal_DCLK2 0x2C
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
172 #define Index_SR_Internal_DCLK3 0x2D
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
173 #define Index_SR_Ext_Clock_Sel 0x32
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
174 #define Index_SR_Int_Status 0x34
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
175 #define Index_SR_Int_Enable 0x35
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
176 #define Index_SR_Int_Reset 0x36
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
177 #define Index_SR_Power_On_Trap 0x38
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
178 #define Index_SR_Power_On_Trap2 0x39
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
179 #define Index_SR_Power_On_Trap3 0x3A
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
180
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
181 /* video registers (300/630/730/315/550/650/740 only) */
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
182 #define Index_VI_Passwd 0x00
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
183
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
184 /* Video overlay horizontal start/end, unit=screen pixels */
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
185 #define Index_VI_Win_Hor_Disp_Start_Low 0x01
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
186 #define Index_VI_Win_Hor_Disp_End_Low 0x02
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
187 #define Index_VI_Win_Hor_Over 0x03 /* Overflow */
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
188
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
189 /* Video overlay vertical start/end, unit=screen pixels */
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
190 #define Index_VI_Win_Ver_Disp_Start_Low 0x04
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
191 #define Index_VI_Win_Ver_Disp_End_Low 0x05
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
192 #define Index_VI_Win_Ver_Over 0x06 /* Overflow */
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
193
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
194 /* Y Plane (4:2:0) or YUV (4:2:2) buffer start address, unit=word */
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
195 #define Index_VI_Disp_Y_Buf_Start_Low 0x07
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
196 #define Index_VI_Disp_Y_Buf_Start_Middle 0x08
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
197 #define Index_VI_Disp_Y_Buf_Start_High 0x09
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
198
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
199 /* U Plane (4:2:0) buffer start address, unit=word */
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
200 #define Index_VI_U_Buf_Start_Low 0x0A
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
201 #define Index_VI_U_Buf_Start_Middle 0x0B
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
202 #define Index_VI_U_Buf_Start_High 0x0C
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
203
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
204 /* V Plane (4:2:0) buffer start address, unit=word */
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
205 #define Index_VI_V_Buf_Start_Low 0x0D
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
206 #define Index_VI_V_Buf_Start_Middle 0x0E
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
207 #define Index_VI_V_Buf_Start_High 0x0F
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
208
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
209 /* Pitch for Y, UV Planes, unit=word */
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
210 #define Index_VI_Disp_Y_Buf_Pitch_Low 0x10
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
211 #define Index_VI_Disp_UV_Buf_Pitch_Low 0x11
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
212 #define Index_VI_Disp_Y_UV_Buf_Pitch_Middle 0x12
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
213
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
214 /* What is this ? */
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
215 #define Index_VI_Disp_Y_Buf_Preset_Low 0x13
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
216 #define Index_VI_Disp_Y_Buf_Preset_Middle 0x14
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
217
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
218 #define Index_VI_UV_Buf_Preset_Low 0x15
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
219 #define Index_VI_UV_Buf_Preset_Middle 0x16
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
220 #define Index_VI_Disp_Y_UV_Buf_Preset_High 0x17
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
221
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
222 /* Scaling control registers */
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
223 #define Index_VI_Hor_Post_Up_Scale_Low 0x18
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
224 #define Index_VI_Hor_Post_Up_Scale_High 0x19
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
225 #define Index_VI_Ver_Up_Scale_Low 0x1A
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
226 #define Index_VI_Ver_Up_Scale_High 0x1B
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
227 #define Index_VI_Scale_Control 0x1C
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
228
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
229 /* Playback line buffer control */
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
230 #define Index_VI_Play_Threshold_Low 0x1D
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
231 #define Index_VI_Play_Threshold_High 0x1E
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
232 #define Index_VI_Line_Buffer_Size 0x1F
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
233
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
234 /* Destination color key */
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
235 #define Index_VI_Overlay_ColorKey_Red_Min 0x20
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
236 #define Index_VI_Overlay_ColorKey_Green_Min 0x21
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
237 #define Index_VI_Overlay_ColorKey_Blue_Min 0x22
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
238 #define Index_VI_Overlay_ColorKey_Red_Max 0x23
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
239 #define Index_VI_Overlay_ColorKey_Green_Max 0x24
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
240 #define Index_VI_Overlay_ColorKey_Blue_Max 0x25
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
241
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
242 /* Source color key, YUV color space */
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
243 #define Index_VI_Overlay_ChromaKey_Red_Y_Min 0x26
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
244 #define Index_VI_Overlay_ChromaKey_Green_U_Min 0x27
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
245 #define Index_VI_Overlay_ChromaKey_Blue_V_Min 0x28
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
246 #define Index_VI_Overlay_ChromaKey_Red_Y_Max 0x29
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
247 #define Index_VI_Overlay_ChromaKey_Green_U_Max 0x2A
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
248 #define Index_VI_Overlay_ChromaKey_Blue_V_Max 0x2B
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
249
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
250 /* Contrast enhancement and brightness control */
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
251 #define Index_VI_Contrast_Factor 0x2C /* obviously unused/undefined */
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
252 #define Index_VI_Brightness 0x2D
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
253 #define Index_VI_Contrast_Enh_Ctrl 0x2E
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
254
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
255 #define Index_VI_Key_Overlay_OP 0x2F
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
256
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
257 #define Index_VI_Control_Misc0 0x30
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
258 #define Index_VI_Control_Misc1 0x31
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
259 #define Index_VI_Control_Misc2 0x32
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
260
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
261 /* TW: Subpicture registers */
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
262 #define Index_VI_SubPict_Buf_Start_Low 0x33
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
263 #define Index_VI_SubPict_Buf_Start_Middle 0x34
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
264 #define Index_VI_SubPict_Buf_Start_High 0x35
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
265
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
266 /* TW: What is this ? */
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
267 #define Index_VI_SubPict_Buf_Preset_Low 0x36
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
268 #define Index_VI_SubPict_Buf_Preset_Middle 0x37
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
269
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
270 /* TW: Subpicture pitch, unit=16 bytes */
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
271 #define Index_VI_SubPict_Buf_Pitch 0x38
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
272
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
273 /* TW: Subpicture scaling control */
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
274 #define Index_VI_SubPict_Hor_Scale_Low 0x39
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
275 #define Index_VI_SubPict_Hor_Scale_High 0x3A
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
276 #define Index_VI_SubPict_Vert_Scale_Low 0x3B
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
277 #define Index_VI_SubPict_Vert_Scale_High 0x3C
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
278
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
279 #define Index_VI_SubPict_Scale_Control 0x3D
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
280 /* (0x40 = enable/disable subpicture) */
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
281
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
282 /* TW: Subpicture line buffer control */
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
283 #define Index_VI_SubPict_Threshold 0x3E
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
284
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
285 /* TW: What is this? */
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
286 #define Index_VI_FIFO_Max 0x3F
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
287
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
288 /* TW: Subpicture palette; 16 colors, total 32 bytes address space */
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
289 #define Index_VI_SubPict_Pal_Base_Low 0x40
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
290 #define Index_VI_SubPict_Pal_Base_High 0x41
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
291
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
292 /* I wish I knew how to use these ... */
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
293 #define Index_MPEG_Read_Ctrl0 0x60 /* MPEG auto flip */
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
294 #define Index_MPEG_Read_Ctrl1 0x61 /* MPEG auto flip */
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
295 #define Index_MPEG_Read_Ctrl2 0x62 /* MPEG auto flip */
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
296 #define Index_MPEG_Read_Ctrl3 0x63 /* MPEG auto flip */
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
297
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
298 /* TW: MPEG AutoFlip scale */
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
299 #define Index_MPEG_Ver_Up_Scale_Low 0x64
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
300 #define Index_MPEG_Ver_Up_Scale_High 0x65
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
301
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
302 #define Index_MPEG_Y_Buf_Preset_Low 0x66
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
303 #define Index_MPEG_Y_Buf_Preset_Middle 0x67
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
304 #define Index_MPEG_UV_Buf_Preset_Low 0x68
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
305 #define Index_MPEG_UV_Buf_Preset_Middle 0x69
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
306 #define Index_MPEG_Y_UV_Buf_Preset_High 0x6A
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
307
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
308 /* TW: The following registers only exist on the 310/325 series */
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
309
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
310 /* TW: Bit 16:24 of Y_U_V buf start address (?) */
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
311 #define Index_VI_Y_Buf_Start_Over 0x6B
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
312 #define Index_VI_U_Buf_Start_Over 0x6C
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
313 #define Index_VI_V_Buf_Start_Over 0x6D
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
314
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
315 #define Index_VI_Disp_Y_Buf_Pitch_High 0x6E
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
316 #define Index_VI_Disp_UV_Buf_Pitch_High 0x6F
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
317
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
318 /* Hue and saturation */
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
319 #define Index_VI_Hue 0x70
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
320 #define Index_VI_Saturation 0x71
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
321
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
322 #define Index_VI_SubPict_Start_Over 0x72
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
323 #define Index_VI_SubPict_Buf_Pitch_High 0x73
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
324
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
325 #define Index_VI_Control_Misc3 0x74
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
326
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
327
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
328 /* TW: Bits (and helpers) for Index_VI_Control_Misc0 */
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
329 #define VI_Misc0_Enable_Overlay 0x02
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
330 #define VI_Misc0_420_Plane_Enable 0x04 /* Select Plane or Packed mode */
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
331 #define VI_Misc0_422_Enable 0x20 /* Select 422 or 411 mode */
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
332 #define VI_Misc0_Fmt_YVU420P 0x0C /* YUV420 Planar (I420, YV12) */
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
333 #define VI_Misc0_Fmt_YUYV 0x28 /* YUYV Packed (YUY2) */
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
334 #define VI_Misc0_Fmt_UYVY 0x08 /* (UYVY) */
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
335
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
336 /* TW: Bits for Index_VI_Control_Misc1 */
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
337 /* #define VI_Misc1_? 0x01 */
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
338 #define VI_Misc1_BOB_Enable 0x02
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
339 #define VI_Misc1_Line_Merge 0x04
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
340 #define VI_Misc1_Field_Mode 0x08
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
341 /* #define VI_Misc1_? 0x10 */
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
342 #define VI_Misc1_Non_Interleave 0x20 /* 300 series only? */
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
343 #define VI_Misc1_Buf_Addr_Lock 0x20 /* 310 series only? */
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
344 /* #define VI_Misc1_? 0x40 */
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
345 /* #define VI_Misc1_? 0x80 */
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
346
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
347 /* TW: Bits for Index_VI_Control_Misc2 */
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
348 #define VI_Misc2_Select_Video2 0x01
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
349 #define VI_Misc2_Video2_On_Top 0x02
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
350 /* #define VI_Misc2_? 0x04 */
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
351 #define VI_Misc2_Vertical_Interpol 0x08
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
352 #define VI_Misc2_Dual_Line_Merge 0x10
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
353 #define VI_Misc2_All_Line_Merge 0x20 /* 310 series only? */
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
354 #define VI_Misc2_Auto_Flip_Enable 0x40 /* 300 series only? */
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
355 #define VI_Misc2_Video_Reg_Write_Enable 0x80 /* 310 series only? */
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
356
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
357 /* TW: Bits for Index_VI_Control_Misc3 */
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
358 #define VI_Misc3_Submit_Video_1 0x01 /* AKA "address ready" */
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
359 #define VI_Misc3_Submit_Video_2 0x02 /* AKA "address ready" */
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
360 #define VI_Misc3_Submit_SubPict 0x04 /* AKA "address ready" */
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
361
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
362 /* TW: Values for Index_VI_Key_Overlay_OP (0x2F) */
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
363 #define VI_ROP_Never 0x00
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
364 #define VI_ROP_DestKey 0x03
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
365 #define VI_ROP_Always 0x0F
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
366
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
367 /*
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
368 * CRT_2 function control register ---------------------------------
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
369 */
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
370 #define Index_CRT2_FC_CONTROL 0x00
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
371 #define Index_CRT2_FC_SCREEN_HIGH 0x04
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
372 #define Index_CRT2_FC_SCREEN_MID 0x05
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
373 #define Index_CRT2_FC_SCREEN_LOW 0x06
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
374 #define Index_CRT2_FC_ENABLE_WRITE 0x24
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
375 #define Index_CRT2_FC_VR 0x25
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
376 #define Index_CRT2_FC_VCount 0x27
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
377 #define Index_CRT2_FC_VCount1 0x28
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
378
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
379 #define Index_310_CRT2_FC_VR 0x30 /* d[1] = vertical retrace */
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
380 #define Index_310_CRT2_FC_RT 0x33 /* d[7] = retrace in progress */
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
381
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
382 /* video attributes - these should probably be configurable on the fly
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
383 * so users with different desktop sizes can keep
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
384 * captured data off the desktop
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
385 */
25619
20f549053410 Fix illegal identifier, names starting with _ and uppercase are reserved.
diego
parents: 23074
diff changeset
386 #define VINWID 704
20f549053410 Fix illegal identifier, names starting with _ and uppercase are reserved.
diego
parents: 23074
diff changeset
387 #define VINHGT VINHGT_NTSC
20f549053410 Fix illegal identifier, names starting with _ and uppercase are reserved.
diego
parents: 23074
diff changeset
388 #define VINHGT_NTSC 240
20f549053410 Fix illegal identifier, names starting with _ and uppercase are reserved.
diego
parents: 23074
diff changeset
389 #define VINHGT_PAL 290
20f549053410 Fix illegal identifier, names starting with _ and uppercase are reserved.
diego
parents: 23074
diff changeset
390 #define VIN_WINDOW (704 * 291 * 2)
20f549053410 Fix illegal identifier, names starting with _ and uppercase are reserved.
diego
parents: 23074
diff changeset
391 #define VBI_WINDOW (704 * 64 * 2)
22850
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
392
25619
20f549053410 Fix illegal identifier, names starting with _ and uppercase are reserved.
diego
parents: 23074
diff changeset
393 #define VIN_FIELD_EVEN 1
20f549053410 Fix illegal identifier, names starting with _ and uppercase are reserved.
diego
parents: 23074
diff changeset
394 #define VIN_FIELD_ODD 2
20f549053410 Fix illegal identifier, names starting with _ and uppercase are reserved.
diego
parents: 23074
diff changeset
395 #define VIN_FIELD_BOTH 4
22850
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
396
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
397
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
398 /* i2c registers (TW; not on 300/310/325 series) */
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
399 #define X_INDEXREG 0x14
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
400 #define X_PORTREG 0x15
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
401 #define X_DATA 0x0f
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
402 #define I2C_SCL 0x00
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
403 #define I2C_SDA 0x01
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
404 #define I2C_DELAY 10
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
405
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
406 /* mmio registers for video */
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
407 #define REG_PRIM_CRT_COUNTER 0x8514
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
408
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
409 /* TW: MPEG MMIO registers (630 and later) ----------------------------*/
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
410
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
411 /* Not public (yet?) */
9a1e26fef45b Move driver files directly into the vidix directory.
diego
parents:
diff changeset
412
26030
a93e46adb54c Add MPLAYER_ prefix to multiple inclusion guards.
diego
parents: 25620
diff changeset
413 #endif /* MPLAYER_SIS_REGS_H */