comparison vidix/sis_defs.h @ 22850:9a1e26fef45b

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