xref: /386bsd/usr/X386/lib/Server/XF86_S3.c (revision a2142627)
1 /*
2  * $XFree86: mit/server/ddx/x386/common/XF86_S3.c,v 2.2 1993/10/14 16:05:56 dawes Exp $
3  */
4 
5 #include "X.h"
6 #include "os.h"
7 #include "x386.h"
8 #include "xf86_Config.h"
9 
10 extern ScrnInfoRec s3InfoRec;
11 
12 /*
13  * This limit is set to 110MHz because this is the limit for
14  * the ramdacs used on many S3 cards Increasing this limit
15  * could result in damage to your hardware.
16  */
17 /* Clock limit for non-Bt485 cards */
18 #define MAX_S3_CLOCK    110000
19 
20 /*
21  * This limit is currently set to 85MHz because this is the limit for
22  * the Bt485 ramdac when running in 1:1 mode.  It will be increased when
23  * support for using the ramdac in 4:1 mode.  Increasing this limit
24  * could result in damage to your hardware.
25  */
26 
27 /* Clock limit for cards with a Bt485 */
28 #define MAX_BT485_CLOCK  85000
29 
30 int s3MaxClock = MAX_S3_CLOCK;
31 int s3MaxBt485Clock = MAX_BT485_CLOCK;
32 
33 ScrnInfoPtr x386Screens[] =
34 {
35   &s3InfoRec,
36 };
37 
38 int  x386MaxScreens = sizeof(x386Screens) / sizeof(ScrnInfoPtr);
39 
40 int xf86ScreenNames[] =
41 {
42   ACCEL,
43   -1
44 };
45 
46 int s3ValidTokens[] =
47 {
48   STATICGRAY,
49   GRAYSCALE,
50   STATICCOLOR,
51   PSEUDOCOLOR,
52   TRUECOLOR,
53   DIRECTCOLOR,
54   CHIPSET,
55   CLOCKS,
56   DISPLAYSIZE,
57   MODES,
58   OPTION,
59   VIDEORAM,
60   VIEWPORT,
61   VIRTUAL,
62   CLOCKPROG,
63   BIOSBASE,
64   -1
65 };
66 
67 /* Dummy function for PEX in LinkKit and mono server */
68 
69 #if defined(LINKKIT) && !defined(PEXEXT)
PexExtensionInit()70 PexExtensionInit() {}
71 #endif
72