|
version 1.1.2.49, 1998/07/05 04:36:08
|
version 1.1.2.50, 1998/07/18 17:53:27
|
|
|
|
| /* $XFree86: xc/programs/Xserver/hw/xfree86/common/xf86str.h,v 1.1.2.48 1998/07/04 15:23:35 dawes Exp $ */ |
/* $XFree86: xc/programs/Xserver/hw/xfree86/common/xf86str.h,v 1.1.2.49 1998/07/05 04:36:08 dawes Exp $ */ |
| | |
| /* | /* |
| * Copyright (c) 1997 by The XFree86 Project, Inc. | * Copyright (c) 1997 by The XFree86 Project, Inc. |
|
|
|
| int VSyncStart; | int VSyncStart; |
| int VSyncEnd; | int VSyncEnd; |
| int VTotal; | int VTotal; |
| |
int VScan; |
| int Flags; | int Flags; |
| | |
| /* These are the values the hardware uses */ | /* These are the values the hardware uses */ |
|
|
|
| * | * |
| * Note: the size and layout must be kept the same across versions. New | * Note: the size and layout must be kept the same across versions. New |
| * fields are to be added in place of the "reserved*" fields. No fields | * fields are to be added in place of the "reserved*" fields. No fields |
| * are to be dependent on complie-time defines. |
* are to be dependent on compile-time defines. |
| */ | */ |
| | |
| typedef struct _ScrnInfoRec { | typedef struct _ScrnInfoRec { |
|
|
|
| int widthmm; /* physical display dimensions | int widthmm; /* physical display dimensions |
| * in mm */ | * in mm */ |
| int heightmm; | int heightmm; |
| |
int xDpi; /* width DPI */ |
| |
int yDpi; /* height DPI */ |
| char * name; /* Name to prefix messages */ | char * name; /* Name to prefix messages */ |
| pointer driverPrivate; /* Driver private area */ | pointer driverPrivate; /* Driver private area */ |
| DevUnion * privates; /* Other privates can hook in | DevUnion * privates; /* Other privates can hook in |
|
|
|
| Bool (*SwitchMode)(int scrnIndex, DisplayModePtr mode, | Bool (*SwitchMode)(int scrnIndex, DisplayModePtr mode, |
| int flags); | int flags); |
| void (*AdjustFrame)(int scrnIndex, int x, int y, int flags); | void (*AdjustFrame)(int scrnIndex, int x, int y, int flags); |
| void (*EnterVT)(int scrnIndex, int flags); |
Bool (*EnterVT)(int scrnIndex, int flags); |
| void (*LeaveVT)(int scrnIndex, int flags); | void (*LeaveVT)(int scrnIndex, int flags); |
| void (*FreeScreen)(int scrnIndex, int flags); | void (*FreeScreen)(int scrnIndex, int flags); |
| int (*ValidMode)(int scrnIndex, DisplayModePtr mode, | int (*ValidMode)(int scrnIndex, DisplayModePtr mode, |
|
|
|
| LOOKUP_DEFAULT = 0, /* Use default mode lookup method */ | LOOKUP_DEFAULT = 0, /* Use default mode lookup method */ |
| LOOKUP_BEST_REFRESH, /* Pick modes with best refresh */ | LOOKUP_BEST_REFRESH, /* Pick modes with best refresh */ |
| LOOKUP_CLOSEST_CLOCK, /* Pick modes with the closest clock */ | LOOKUP_CLOSEST_CLOCK, /* Pick modes with the closest clock */ |
| LOOKUP_LIST_ORDER /* Pick first useful mode in list */ |
LOOKUP_LIST_ORDER, /* Pick first useful mode in list */ |
| |
LOOKUP_CLKDIV2 = 0x0100 /* Allow half clocks */ |
| } LookupModeFlags; | } LookupModeFlags; |
| | |
| /* flags for indicating depth 24 support */ | /* flags for indicating depth 24 support */ |