cosmetics: Remove stray tab.
[mplayer/glamo.git] / vidix / sis_defs.h
blob2137262ced9cc529b0b0f43b7e6a38854c9cb25a
1 /*
2 * SiS graphics misc definitions
4 * Taken from SiS Xv driver:
5 * Copyright (C) 2002-2003 by Thomas Winischhofer, Vienna, Austria
7 * This file is part of MPlayer.
9 * MPlayer is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
14 * MPlayer is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License along
20 * with MPlayer; if not, write to the Free Software Foundation, Inc.,
21 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
24 #ifndef MPLAYER_SIS_DEFS_H
25 #define MPLAYER_SIS_DEFS_H
27 /** PCI IDs **/
28 #define VENDOR_SIS 0x1039
30 #define DEVICE_SIS_300 0x0300
31 #define DEVICE_SIS_315H 0x0310
32 #define DEVICE_SIS_315 0x0315
33 #define DEVICE_SIS_315PRO 0x0325
34 #define DEVICE_SIS_330 0x0330
35 #define DEVICE_SIS_540 0x0540
36 #define DEVICE_SIS_540_VGA 0x5300
37 #define DEVICE_SIS_550 0x0550
38 #define DEVICE_SIS_550_VGA 0x5315
39 #define DEVICE_SIS_630 0x0630
40 #define DEVICE_SIS_630_VGA 0x6300
41 #define DEVICE_SIS_650 0x0650
42 #define DEVICE_SIS_650_VGA 0x6325
43 #define DEVICE_SIS_730 0x0730
46 /* TW: VBFlags */
47 #define CRT2_DEFAULT 0x00000001
48 #define CRT2_LCD 0x00000002 /* TW: Never change the order of the CRT2_XXX entries */
49 #define CRT2_TV 0x00000004 /* (see SISCycleCRT2Type()) */
50 #define CRT2_VGA 0x00000008
51 #define CRT2_ENABLE (CRT2_LCD | CRT2_TV | CRT2_VGA)
52 #define DISPTYPE_DISP2 CRT2_ENABLE
53 #define TV_NTSC 0x00000010
54 #define TV_PAL 0x00000020
55 #define TV_HIVISION 0x00000040
56 #define TV_HIVISION_LV 0x00000080
57 #define TV_TYPE (TV_NTSC | TV_PAL | TV_HIVISION | TV_HIVISION_LV)
58 #define TV_AVIDEO 0x00000100
59 #define TV_SVIDEO 0x00000200
60 #define TV_SCART 0x00000400
61 #define TV_INTERFACE (TV_AVIDEO | TV_SVIDEO | TV_SCART | TV_CHSCART | TV_CHHDTV)
62 #define VB_USELCDA 0x00000800
63 #define TV_PALM 0x00001000
64 #define TV_PALN 0x00002000
65 #define TV_CHSCART 0x00008000
66 #define TV_CHHDTV 0x00010000
67 #define VGA2_CONNECTED 0x00040000
68 #define DISPTYPE_CRT1 0x00080000 /* TW: CRT1 connected and used */
69 #define DISPTYPE_DISP1 DISPTYPE_CRT1
70 #define VB_301 0x00100000 /* Video bridge type */
71 #define VB_301B 0x00200000
72 #define VB_302B 0x00400000
73 #define VB_30xBDH 0x00800000 /* 30xB DH version (w/o LCD support) */
74 #define VB_LVDS 0x01000000
75 #define VB_CHRONTEL 0x02000000
76 #define VB_301LV 0x04000000
77 #define VB_302LV 0x08000000
78 #define VB_30xLV VB_301LV
79 #define VB_30xLVX VB_302LV
80 #define VB_TRUMPION 0x10000000
81 #define VB_VIDEOBRIDGE (VB_301|VB_301B|VB_302B|VB_301LV|VB_302LV| \
82 VB_LVDS|VB_CHRONTEL|VB_TRUMPION) /* TW */
83 #define VB_SISBRIDGE (VB_301|VB_301B|VB_302B|VB_301LV|VB_302LV)
84 #define SINGLE_MODE 0x20000000 /* TW: CRT1 or CRT2; determined by DISPTYPE_CRTx */
85 #define VB_DISPMODE_SINGLE SINGLE_MODE /* TW: alias */
86 #define MIRROR_MODE 0x40000000 /* TW: CRT1 + CRT2 identical (mirror mode) */
87 #define VB_DISPMODE_MIRROR MIRROR_MODE /* TW: alias */
88 #define DUALVIEW_MODE 0x80000000 /* TW: CRT1 + CRT2 independent (dual head mode) */
89 #define VB_DISPMODE_DUAL DUALVIEW_MODE /* TW: alias */
90 #define DISPLAY_MODE (SINGLE_MODE | MIRROR_MODE | DUALVIEW_MODE) /* TW */
92 /* SiS vga engine type */
93 #define UNKNOWN_VGA 0
94 #define SIS_300_VGA 1
95 #define SIS_315_VGA 2
97 extern unsigned int sis_verbose;
98 extern unsigned short sis_iobase;
99 extern unsigned int sis_vga_engine;
100 extern unsigned int sis_vbflags;
101 extern unsigned int sis_overlay_on_crt1;
102 extern int sis_crt1_off;
103 extern unsigned int sis_detected_crt2_devices;
104 extern unsigned int sis_force_crt2_type;
105 extern int sis_device_id;
107 #endif /* MPLAYER_SIS_DEFS_H */