summaryrefslogtreecommitdiff
path: root/src/xine-engine/nvtv/debug.h
blob: 72b0a5cf7f5cf63bd84e065a2dd70d13b32913fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
/* NVTV debug -- Dirk Thierbach <dthierbach@gmx.de>
 *
 * This is open software protected by the GPL. See GPL.txt for details.
 *
 * Debug definitions.
 *
 */

#ifndef _DEBUG_H
#define _DEBUG_H

#include <stdio.h>

/* -------- Config defines -------- */

/* Chrontel slave sync modes (normally not necessary) */
/* #define CONFIG_SLAVE_CH */

/* Brooktree async modes (test) */
/* #define CONFIG_ASYNC_BT */

/* Setup BlankEnd for Voodoo cards */
#define CONFIG_TDFX_SETUP_BLANK

/* Allow GeForce2Go */
#define CONFIG_GEFORCEGO_OK

/* Allow overlay modes */
/* #define CONFIG_OVERLAY_NV */

/* -------- Debugging defines -------- */

/* Temporary define for philips 7104 test modes */
/* #define TEST_PHILIPS */

/* Enable DPRINTF messages */
/* #define NVTV_DEBUG */

/* Disable timeout procs */
/* #define DISABLE_TIMEOUT */

/* Enable probe/debug routines */
#define DEBUG_PROBE 

/* Scan all unknown chips of no known tv chip is found (nv_tv.c) */
#define PROBE_ALL_UNKNOWN

/* The EEPROM on the XBox bus might cause problems when probed. */
#ifdef XBOX_SUPPORT
#undef PROBE_ALL_UNKOWN
#endif

/* -------- Meta */

/* Fake XBox (Meta) */
/* #define FAKE_XBOX */

/* Fake GeForce3 (Meta) */
/* #define FAKE_GEFORCE3 */

/* Fake Voodoo3 (Meta) */
/* #define FAKE_VOODOO */

/* Fake Intel i810 (Meta) */
/* #define FAKE_I810 */

/* Fake Brooktree chip (Meta) */
/* #define FAKE_BROOKTREE */

/* Fake Conexant chip (Meta) */
/* #define FAKE_CONEXANT */

/* Fake Chrontel chip (Meta) */
/* #define FAKE_CHRONTEL */

/* Fake Philips chip (Meta) */
/* #define FAKE_PHILIPS */

/* Fake TV mode (Meta) */
/* #define FAKE_TV */

/* -------- Assertions */

/* Check MMIO when faking it */
/* #define CHECK_MMIO */

/* Base and range for check */
/* #define CHECK_MMIO_BASE 0x601 */
/* #define CHECK_MMIO_MIN 0x2000 */
/* #define CHECK_MMIO_MAX 0x4000 */
/* #define CHECK_MMIO_ABORT      */

/* -------- */

/* Fake successful probing of all tv chips (nv_tv.c) */
/* #define FAKE_PROBE_ALL */

/* Fake successful probing of this addr on all busses (nv_tv.c) */
/* #define FAKE_PROBE_ADDR 0xEA */

/* Fake Brooktree chip identification */
/* #define FAKE_PROBE_BROOKTREE */

/* Fake Conexant chip identification */
/* #define FAKE_PROBE_CONEXANT */

/* Fake Chrontel chip identification */
/* #define FAKE_PROBE_CHRONTEL */

/* Fake Philips chip identification */
/* #define FAKE_PROBE_PHILIPS */

/* Fake id to return on identification */
/* #define FAKE_PROBE_ID TV_PHILIPS_7104 */

/* Fake I2C Bus reads and writes (nv_tv.c) */
/* #define FAKE_I2C */

/* Fake CRTC register writes (nv_tv.c) */
/* #define FAKE_CRTC */

/* Fake mmapped register writes (tv_nv.c) */
/* #define FAKE_MMIO */

/* Fake pci card in root backend */
/* #define FAKE_CARD */

/* Fake memory mapping */
/* #define FAKE_CARD_MMAP */

/* Fake vendor id of pci card.  */
/* #define FAKE_CARD_VENDOR PCI_VENDOR_3DFX */

/* Fake device id of pci card */
/* #define FAKE_CARD_DEVICE PCI_CHIP_VOODOO3 */

/* -------- */

#ifdef FAKE_XBOX
#define FAKE_CARD
#define FAKE_CARD_MMAP
#define FAKE_MMIO
#define FAKE_CRTC
#define FAKE_I2C
#define FAKE_CARD_VENDOR PCI_VENDOR_NVIDIA
#define FAKE_CARD_DEVICE PCI_CHIP_GEFORCE3_MCPX
#endif

#ifdef FAKE_GEFORCE3
#define FAKE_CARD
#define FAKE_CARD_MMAP
#define FAKE_MMIO
#define FAKE_CARD_VENDOR PCI_VENDOR_NVIDIA
#define FAKE_CARD_DEVICE PCI_CHIP_GEFORCE3
#endif

#ifdef FAKE_VOODOO
#define FAKE_CARD
#define FAKE_CARD_MMAP
#define FAKE_CARD_VENDOR PCI_VENDOR_3DFX
#define FAKE_CARD_DEVICE PCI_CHIP_VOODOO3
#endif

#ifdef FAKE_I810
#define FAKE_CARD
#define FAKE_CARD_MMAP
#define FAKE_CARD_VENDOR PCI_VENDOR_INTEL
#define FAKE_CARD_DEVICE PCI_CHIP_I810
#endif

#ifdef FAKE_BROOKTREE
#define FAKE_MMIO
#define FAKE_CRTC
#define FAKE_I2C
#define FAKE_PROBE_ADDR 0x8A
#define FAKE_PROBE_BROOKTREE
#endif

#ifdef FAKE_CONEXANT
#define FAKE_MMIO
#define FAKE_CRTC
#define FAKE_I2C
#define FAKE_PROBE_ADDR 0x8A
#define FAKE_PROBE_CONEXANT
#endif

#ifdef FAKE_CHRONTEL
#define FAKE_MMIO
#define FAKE_CRTC
#define FAKE_I2C
#define FAKE_PROBE_ADDR 0xEA
#define FAKE_PROBE_CHRONTEL
#endif

#ifdef FAKE_PHILIPS
#define FAKE_MMIO
#define FAKE_CRTC
#define FAKE_I2C
#define FAKE_PROBE_ADDR 0x88
#define FAKE_PROBE_PHILIPS
#endif

#ifdef FAKE_TV
#define FAKE_MMIO
#define FAKE_CRTC
#endif

#endif /* _DEBUG_H */