annotate vidix/drivers/sis_defs.h @ 13337:c2cd3374a1cb

add a comment to the Xorg workaround
author faust3
date Wed, 15 Sep 2004 08:02:51 +0000
parents 3bac281db5a1
children 401b440a6d76
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
11038
3bac281db5a1 SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents:
diff changeset
1 /**
3bac281db5a1 SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents:
diff changeset
2 SiS graphics misc definitions.
3bac281db5a1 SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents:
diff changeset
3
3bac281db5a1 SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents:
diff changeset
4 Taken from SiS Xv driver:
3bac281db5a1 SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents:
diff changeset
5 Copyright 2002-2003 by Thomas Winischhofer, Vienna, Austria.
3bac281db5a1 SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents:
diff changeset
6
3bac281db5a1 SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents:
diff changeset
7 This program is free software; you can redistribute it and/or modify
3bac281db5a1 SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents:
diff changeset
8 it under the terms of the GNU General Public License as published by
3bac281db5a1 SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents:
diff changeset
9 the Free Software Foundation; either version 2 of the License, or
3bac281db5a1 SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents:
diff changeset
10 (at your option) any later version.
3bac281db5a1 SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents:
diff changeset
11
3bac281db5a1 SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents:
diff changeset
12 This program is distributed in the hope that it will be useful,
3bac281db5a1 SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents:
diff changeset
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
3bac281db5a1 SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents:
diff changeset
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
3bac281db5a1 SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents:
diff changeset
15 GNU General Public License for more details.
3bac281db5a1 SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents:
diff changeset
16
3bac281db5a1 SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents:
diff changeset
17 You should have received a copy of the GNU General Public License
3bac281db5a1 SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents:
diff changeset
18 along with this program; if not, write to the Free Software
3bac281db5a1 SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents:
diff changeset
19 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
3bac281db5a1 SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents:
diff changeset
20
3bac281db5a1 SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents:
diff changeset
21 **/
3bac281db5a1 SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents:
diff changeset
22
3bac281db5a1 SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents:
diff changeset
23 #ifndef VIDIX_SIS_DEFS_H
3bac281db5a1 SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents:
diff changeset
24 #define VIDIX_SIS_DEFS_H
3bac281db5a1 SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents:
diff changeset
25
3bac281db5a1 SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents:
diff changeset
26 /** PCI IDs **/
3bac281db5a1 SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents:
diff changeset
27 #define VENDOR_SIS 0x1039
3bac281db5a1 SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents:
diff changeset
28
3bac281db5a1 SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents:
diff changeset
29 #define DEVICE_SIS_300 0x0300
3bac281db5a1 SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents:
diff changeset
30 #define DEVICE_SIS_315H 0x0310
3bac281db5a1 SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents:
diff changeset
31 #define DEVICE_SIS_315 0x0315
3bac281db5a1 SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents:
diff changeset
32 #define DEVICE_SIS_315PRO 0x0325
3bac281db5a1 SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents:
diff changeset
33 #define DEVICE_SIS_330 0x0330
3bac281db5a1 SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents:
diff changeset
34 #define DEVICE_SIS_540 0x0540
3bac281db5a1 SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents:
diff changeset
35 #define DEVICE_SIS_540_VGA 0x5300
3bac281db5a1 SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents:
diff changeset
36 #define DEVICE_SIS_550 0x0550
3bac281db5a1 SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents:
diff changeset
37 #define DEVICE_SIS_550_VGA 0x5315
3bac281db5a1 SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents:
diff changeset
38 #define DEVICE_SIS_630 0x0630
3bac281db5a1 SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents:
diff changeset
39 #define DEVICE_SIS_630_VGA 0x6300
3bac281db5a1 SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents:
diff changeset
40 #define DEVICE_SIS_650 0x0650
3bac281db5a1 SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents:
diff changeset
41 #define DEVICE_SIS_650_VGA 0x6325
3bac281db5a1 SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents:
diff changeset
42 #define DEVICE_SIS_730 0x0730
3bac281db5a1 SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents:
diff changeset
43
3bac281db5a1 SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents:
diff changeset
44
3bac281db5a1 SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents:
diff changeset
45 /* TW: VBFlags */
3bac281db5a1 SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents:
diff changeset
46 #define CRT2_DEFAULT 0x00000001
3bac281db5a1 SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents:
diff changeset
47 #define CRT2_LCD 0x00000002 /* TW: Never change the order of the CRT2_XXX entries */
3bac281db5a1 SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents:
diff changeset
48 #define CRT2_TV 0x00000004 /* (see SISCycleCRT2Type()) */
3bac281db5a1 SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents:
diff changeset
49 #define CRT2_VGA 0x00000008
3bac281db5a1 SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents:
diff changeset
50 #define CRT2_ENABLE (CRT2_LCD | CRT2_TV | CRT2_VGA)
3bac281db5a1 SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents:
diff changeset
51 #define DISPTYPE_DISP2 CRT2_ENABLE
3bac281db5a1 SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents:
diff changeset
52 #define TV_NTSC 0x00000010
3bac281db5a1 SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents:
diff changeset
53 #define TV_PAL 0x00000020
3bac281db5a1 SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents:
diff changeset
54 #define TV_HIVISION 0x00000040
3bac281db5a1 SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents:
diff changeset
55 #define TV_HIVISION_LV 0x00000080
3bac281db5a1 SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents:
diff changeset
56 #define TV_TYPE (TV_NTSC | TV_PAL | TV_HIVISION | TV_HIVISION_LV)
3bac281db5a1 SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents:
diff changeset
57 #define TV_AVIDEO 0x00000100
3bac281db5a1 SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents:
diff changeset
58 #define TV_SVIDEO 0x00000200
3bac281db5a1 SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents:
diff changeset
59 #define TV_SCART 0x00000400
3bac281db5a1 SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents:
diff changeset
60 #define TV_INTERFACE (TV_AVIDEO | TV_SVIDEO | TV_SCART | TV_CHSCART | TV_CHHDTV)
3bac281db5a1 SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents:
diff changeset
61 #define VB_USELCDA 0x00000800
3bac281db5a1 SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents:
diff changeset
62 #define TV_PALM 0x00001000
3bac281db5a1 SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents:
diff changeset
63 #define TV_PALN 0x00002000
3bac281db5a1 SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents:
diff changeset
64 #define TV_CHSCART 0x00008000
3bac281db5a1 SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents:
diff changeset
65 #define TV_CHHDTV 0x00010000
3bac281db5a1 SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents:
diff changeset
66 #define VGA2_CONNECTED 0x00040000
3bac281db5a1 SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents:
diff changeset
67 #define DISPTYPE_CRT1 0x00080000 /* TW: CRT1 connected and used */
3bac281db5a1 SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents:
diff changeset
68 #define DISPTYPE_DISP1 DISPTYPE_CRT1
3bac281db5a1 SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents:
diff changeset
69 #define VB_301 0x00100000 /* Video bridge type */
3bac281db5a1 SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents:
diff changeset
70 #define VB_301B 0x00200000
3bac281db5a1 SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents:
diff changeset
71 #define VB_302B 0x00400000
3bac281db5a1 SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents:
diff changeset
72 #define VB_30xBDH 0x00800000 /* 30xB DH version (w/o LCD support) */
3bac281db5a1 SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents:
diff changeset
73 #define VB_LVDS 0x01000000
3bac281db5a1 SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents:
diff changeset
74 #define VB_CHRONTEL 0x02000000
3bac281db5a1 SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents:
diff changeset
75 #define VB_301LV 0x04000000
3bac281db5a1 SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents:
diff changeset
76 #define VB_302LV 0x08000000
3bac281db5a1 SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents:
diff changeset
77 #define VB_30xLV VB_301LV
3bac281db5a1 SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents:
diff changeset
78 #define VB_30xLVX VB_302LV
3bac281db5a1 SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents:
diff changeset
79 #define VB_TRUMPION 0x10000000
3bac281db5a1 SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents:
diff changeset
80 #define VB_VIDEOBRIDGE (VB_301|VB_301B|VB_302B|VB_301LV|VB_302LV| \
3bac281db5a1 SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents:
diff changeset
81 VB_LVDS|VB_CHRONTEL|VB_TRUMPION) /* TW */
3bac281db5a1 SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents:
diff changeset
82 #define VB_SISBRIDGE (VB_301|VB_301B|VB_302B|VB_301LV|VB_302LV)
3bac281db5a1 SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents:
diff changeset
83 #define SINGLE_MODE 0x20000000 /* TW: CRT1 or CRT2; determined by DISPTYPE_CRTx */
3bac281db5a1 SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents:
diff changeset
84 #define VB_DISPMODE_SINGLE SINGLE_MODE /* TW: alias */
3bac281db5a1 SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents:
diff changeset
85 #define MIRROR_MODE 0x40000000 /* TW: CRT1 + CRT2 identical (mirror mode) */
3bac281db5a1 SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents:
diff changeset
86 #define VB_DISPMODE_MIRROR MIRROR_MODE /* TW: alias */
3bac281db5a1 SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents:
diff changeset
87 #define DUALVIEW_MODE 0x80000000 /* TW: CRT1 + CRT2 independent (dual head mode) */
3bac281db5a1 SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents:
diff changeset
88 #define VB_DISPMODE_DUAL DUALVIEW_MODE /* TW: alias */
3bac281db5a1 SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents:
diff changeset
89 #define DISPLAY_MODE (SINGLE_MODE | MIRROR_MODE | DUALVIEW_MODE) /* TW */
3bac281db5a1 SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents:
diff changeset
90
3bac281db5a1 SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents:
diff changeset
91 /* SiS vga engine type */
3bac281db5a1 SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents:
diff changeset
92 #define UNKNOWN_VGA 0
3bac281db5a1 SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents:
diff changeset
93 #define SIS_300_VGA 1
3bac281db5a1 SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents:
diff changeset
94 #define SIS_315_VGA 2
3bac281db5a1 SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents:
diff changeset
95
3bac281db5a1 SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents:
diff changeset
96 extern unsigned int sis_verbose;
3bac281db5a1 SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents:
diff changeset
97 extern unsigned short sis_iobase;
3bac281db5a1 SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents:
diff changeset
98 extern unsigned int sis_vga_engine;
3bac281db5a1 SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents:
diff changeset
99 extern unsigned int sis_vbflags;
3bac281db5a1 SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents:
diff changeset
100 extern unsigned int sis_overlay_on_crt1;
3bac281db5a1 SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents:
diff changeset
101 extern unsigned int sis_crt1_off;
3bac281db5a1 SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents:
diff changeset
102 extern unsigned int sis_detected_crt2_devices;
3bac281db5a1 SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents:
diff changeset
103 extern unsigned int sis_force_crt2_type;
3bac281db5a1 SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents:
diff changeset
104 extern unsigned int sis_device_id;
3bac281db5a1 SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents:
diff changeset
105
3bac281db5a1 SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents:
diff changeset
106 #endif /* VIDIX_SIS_DEFS_H */