xf86_config.h

来自「基于组件方式开发操作系统的OSKIT源代码」· C头文件 代码 · 共 661 行 · 第 1/2 页

H
661
字号
/* $XFree86: xc/programs/Xserver/hw/xfree86/common/xf86_Config.h,v 3.59.2.4 1997/05/18 12:00:08 dawes Exp $ *//* * Copyright 1990,91 by Thomas Roell, Dinkelscherben, Germany * Copyright 1993 by David Dawes <dawes@physics.su.oz.au> * * Permission to use, copy, modify, distribute, and sell this software and its * documentation for any purpose is hereby granted without fee, provided that * the above copyright notice appear in all copies and that both that * copyright notice and this permission notice appear in supporting * documentation, and that the names of Thomas Roell and David Dawes  * not be used in advertising or publicity pertaining to distribution of  * the software without specific, written prior permission.  Thomas Roell and * David Dawes makes no representations about the suitability of this  * software for any purpose.  It is provided "as is" without express or  * implied warranty. * * THOMAS ROELL AND DAVID DAWES DISCLAIMS ALL WARRANTIES WITH REGARD TO  * THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND  * FITNESS, IN NO EVENT SHALL THOMAS ROELL OR DAVID DAWES BE LIABLE FOR  * ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER  * RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF  * CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN  * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * *//* $XConsortium: xf86_Config.h /main/25 1996/10/25 11:36:49 kaleb $ */#ifndef _xf86_config_h#define _xf86_config_h#ifndef XCONFIG_FLAGS_ONLY#define CLOCK_TOLERANCE 2000         /* Clock matching tolerance (2MHz) */#ifdef BLACK#undef BLACK#endif#ifdef WHITE#undef WHITE#endif#ifdef SCROLLLOCK#undef SCROLLLOCK#endif#ifdef MONO#undef MONO#endiftypedef struct {  int           num;                  /* returned number */  char          *str;                 /* private copy of the return-string */  double        realnum;              /* returned number as a real */} LexRec, *LexPtr;typedef struct {   char *identifier;   char *vendor;   char *board;   char *chipset;   char *ramdac;   int dacSpeeds[MAXDACSPEEDS];   int clocks;   int clock[MAXCLOCKS];   OFlagSet options;   OFlagSet clockOptions;   OFlagSet xconfigFlag;   int videoRam;   unsigned long speedup;   char *clockprog;   int textClockValue;   int BIOSbase;                 /* Base address of video BIOS */   unsigned long MemBase;        /* Frame buffer base address */   unsigned int  IObase;   unsigned int  DACbase;   unsigned long COPbase;   unsigned int  POSbase;   int instance;   int s3Madjust;   int s3Nadjust;   int s3MClk;   int chipID;   int chipRev;   unsigned long VGAbase;      /* VGA ot XGA 64K aperature base address */   int s3RefClk;   int s3BlankDelay;   char *DCConfig;   char *DCOptions;   int MemClk;                 /* General flag used for memory clocking */} GDevRec, *GDevPtr;typedef struct {   int depth;   xrgb weight;   int frameX0;   int frameY0;   int virtualX;   int virtualY;   DisplayModePtr modes;   xrgb whiteColour;   xrgb blackColour;   int defaultVisual;   OFlagSet options;   OFlagSet xconfigFlag;   char *DCOptions;} DispRec, *DispPtr;/* * We use the convention that tokens >= 1000 or < 0 do not need to be * present in a screen's list of valid tokens in order to be valid. * Also, each token should have a unique value regardless of the section * it is used in. */#define LOCK_TOKEN  -3#define ERROR_TOKEN -2#define NUMBER		10000                  #define STRING		10001/* GJA -- gave those high numbers since they occur in many sections. */#define SECTION		10002#define SUBSECTION	10003  /* Only used at one place now. */#define ENDSECTION	10004#define ENDSUBSECTION	10005#define IDENTIFIER	10006#define VENDOR		10007#define DASH		10008#define COMMA		10009#ifdef INIT_CONFIGstatic SymTabRec TopLevelTab[] = {    { SECTION,   "section" },    { -1,         "" },};#endif /* INIT_CONFIG */#define HRZ	1001	/* Silly name to avoid conflict with linux/param.h */#define KHZ	1002#define MHZ	1003#ifdef INIT_CONFIGstatic SymTabRec UnitTab[] = {  { HRZ,	"hz" },  { KHZ,	"khz" },  { MHZ,	"mhz" },  { -1,		"" },};#endif /* INIT_CONFIG */#define SVGA	1010#define VGA2	1011#define MONO	1012#define VGA16	1013#define ACCEL	1014#define FBDEV	1015#ifdef INIT_CONFIGstatic SymTabRec DriverTab[] = {  { SVGA,	"svga" },  { SVGA,	"vga256" },  { VGA2,	"vga2" },  { MONO,	"mono" },  { VGA16,	"vga16" },  { ACCEL,	"accel" },  { FBDEV,	"fbdev" },  { -1,		"" },};#endif /* INIT_CONFIG */#define MICROSOFT	1020#define MOUSESYS	1021#define MMSERIES	1022#define LOGITECH	1023#define BUSMOUSE	1024#define LOGIMAN		1025#define PS_2		1026#define MMHITTAB	1027#define GLIDEPOINT	1028#define INTELLIMOUSE    1029#define XQUE      	1030#define OSMOUSE   	1031#ifdef INIT_CONFIGstatic SymTabRec MouseTab[] = {  { MICROSOFT,	"microsoft" },  { MOUSESYS,	"mousesystems" },  { MMSERIES,	"mmseries" },  { LOGITECH,	"logitech" },  { BUSMOUSE,	"busmouse" },  { LOGIMAN,	"mouseman" },  { PS_2,	"ps/2" },  { MMHITTAB,	"mmhittab" },  { GLIDEPOINT,	"glidepoint" },  { INTELLIMOUSE,"intellimouse" },  { XQUE,	"xqueue" },  { OSMOUSE,	"osmouse" },  { -1,		"" },};#endif /* INIT_CONFIG */#define FONTPATH	1040#define RGBPATH		1041#define MODULEPATH	1042#ifdef INIT_CONFIGstatic SymTabRec FilesTab[] = {  { ENDSECTION,	"endsection"},  { FONTPATH,	"fontpath" },  { RGBPATH,	"rgbpath" },  { MODULEPATH,	"modulepath" },  { -1,		"" },};#endif /* INIT_CONFIG */#define NOTRAPSIGNALS		1050#define DONTZAP			1051#define DONTZOOM		1052#define DISABLEVIDMODE		1054#define ALLOWNONLOCAL		1055#define DISABLEMODINDEV		1056#define MODINDEVALLOWNONLOCAL	1057#define ALLOWMOUSEOPENFAIL	1058#define PCIPROBE1		1059#define PCIPROBE2		1060#define PCIFORCECONFIG1		1061#define PCIFORCECONFIG2		1062#ifdef INIT_CONFIGstatic SymTabRec ServerFlagsTab[] = {  { ENDSECTION, "endsection"},  { NOTRAPSIGNALS, "notrapsignals" },  { DONTZAP,	"dontzap" },  { DONTZOOM,	"dontzoom" },  { DISABLEVIDMODE, "disablevidmodeextension" },  { ALLOWNONLOCAL, "allownonlocalxvidtune" },  { DISABLEMODINDEV, "disablemodindev" },  { MODINDEVALLOWNONLOCAL, "allownonlocalmodindev" },  { ALLOWMOUSEOPENFAIL, "allowmouseopenfail" },  { PCIPROBE1, "pciprobe1" },  { PCIPROBE2, "pciprobe2" },  { PCIFORCECONFIG1, "pciforceconfig1" },  { PCIFORCECONFIG2, "pciforceconfig2" },  { -1,         "" },};#endif /* INIT_CONFIG */#define DISPLAYSIZE	1070#define MODELINE	1071#define MODEL		1072#define BANDWIDTH	1073#define HORIZSYNC	1074#define VERTREFRESH	1075#define MODE		1076#define GAMMA		1077#ifdef INIT_CONFIGstatic SymTabRec MonitorTab[] = {  { ENDSECTION,	"endsection"},  { IDENTIFIER,	"identifier"},   { VENDOR,	"vendorname"},  { MODEL,	"modelname"},   { MODELINE,	"modeline"},  { DISPLAYSIZE,"displaysize" },  { BANDWIDTH,	"bandwidth" },  { HORIZSYNC,	"horizsync" },  { VERTREFRESH,"vertrefresh" },  { MODE,	"mode" },  { GAMMA,	"gamma" },  { -1,		"" },};#endif /* INIT_CONFIG */#define DOTCLOCK	1090#define HTIMINGS	1091#define VTIMINGS	1092#define FLAGS		1093#define HSKEW		1094#define ENDMODE		1095#ifdef INIT_CONFIGstatic SymTabRec ModeTab[] = {  { DOTCLOCK,	"dotclock"},  { HTIMINGS,	"htimings"},   { VTIMINGS,	"vtimings"},  { FLAGS,	"flags"},   { HSKEW,	"hskew"},  { ENDMODE,	"endmode"},  { -1,		"" },};#endif /* INIT_CONFIG */#define DRIVER		1110#define MDEVICE		1111#define MONITOR		1112#define SCREENNO	1113#define BLANKTIME	1114#define STANDBYTIME	1115#define SUSPENDTIME	1116#define OFFTIME		1117#define DEFBPP		1118#ifdef INIT_CONFIGstatic SymTabRec ScreenTab[] = {  { ENDSECTION, "endsection"},  { DRIVER,	"driver" },  { MDEVICE,	"device" },  { MONITOR,	"monitor" },  { SCREENNO,	"screenno" },  { BLANKTIME,	"blanktime" },  { STANDBYTIME,"standbytime" },  { SUSPENDTIME,"suspendtime" },  { OFFTIME,	"offtime" },  { SUBSECTION,	"subsection" },  { DEFBPP,	"defaultcolordepth" },  { -1,		"" },};#endif /* INIT_CONFIG *//* Mode timing keywords */#define TT_INTERLACE	1130#define TT_PHSYNC	1131#define TT_NHSYNC	1132#define TT_PVSYNC	1133#define TT_NVSYNC	1134#define TT_CSYNC	1135#define TT_PCSYNC	1136#define TT_NCSYNC	1137#define TT_DBLSCAN	1138#define TT_HSKEW	1139#ifdef INIT_CONFIGSymTabRec TimingTab[] = {  { TT_INTERLACE,	"interlace"},

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?