8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync * Copyright (c) 1997-2003 by The XFree86 Project, Inc.
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync * Permission is hereby granted, free of charge, to any person obtaining a
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync * copy of this software and associated documentation files (the "Software"),
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync * to deal in the Software without restriction, including without limitation
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync * and/or sell copies of the Software, and to permit persons to whom the
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync * Software is furnished to do so, subject to the following conditions:
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync * The above copyright notice and this permission notice shall be included in
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync * all copies or substantial portions of the Software.
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync * OTHER DEALINGS IN THE SOFTWARE.
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync * Except as contained in this notice, the name of the copyright holder(s)
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync * and author(s) shall not be used in advertising or otherwise to promote
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync * the sale, use or other dealings in this Software without prior written
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync * authorization from the copyright holder(s) and author(s).
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync * This file contains definitions of the public XFree86 data structures/types.
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync * Any data structures that video drivers need to access should go here.
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync * Integer type that is of the size of the addressable memory (machine size).
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync * On most platforms \c uintptr_t will suffice. However, on some mixed
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync * 32-bit / 64-bit platforms, such as 32-bit binaries on 64-bit PowerPC, this
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync * must be 64-bits.
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync/* Video mode flags */
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsynctypedef enum {
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsynctypedef enum {
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync INTERLACE_HALVE_V = 0x0001 /* Halve V values for interlacing */
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync/* Flags passed to ChipValidMode() */
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsynctypedef enum {
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync/* These are possible return values for xf86CheckMode() and ValidMode() */
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsynctypedef enum {
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync MODE_H_ILLEGAL, /* mode has illegal horizontal timings */
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync MODE_V_ILLEGAL, /* mode has illegal horizontal timings */
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync MODE_BAD_WIDTH, /* requires an unsupported linepitch */
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync MODE_NO_INTERLACE, /* interlaced mode not supported */
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync MODE_NO_DBLESCAN, /* doublescan mode not supported */
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync MODE_VIRTUAL_X, /* mode width too large for specified virtual size */
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync MODE_VIRTUAL_Y, /* mode height too large for specified virtual size */
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync MODE_MEM_VIRT, /* insufficient video memory given virtual size */
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync MODE_CLOCK_RANGE, /* clock/mode isn't in a ClockRange */
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync MODE_BAD_HVALUE, /* horizontal timing was out of range */
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync MODE_BAD_VVALUE, /* vertical timing was out of range */
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync MODE_HSYNC_NARROW, /* horizontal sync too narrow */
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync MODE_HBLANK_NARROW, /* horizontal blanking too narrow */
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync MODE_HBLANK_WIDE, /* horizontal blanking too wide */
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync MODE_VBLANK_NARROW, /* vertical blanking too narrow */
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync MODE_INTERLACE_WIDTH, /* width too large for interlaced mode */
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync MODE_ONE_HEIGHT, /* only one height is supported */
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync MODE_ONE_SIZE, /* only one resolution is supported */
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync MODE_NO_REDUCED, /* monitor doesn't accept reduced blanking */
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync MODE_BANDWIDTH, /* mode requires too much memory bandwidth */
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync * The mode sets are, from best to worst: USERDEF, DRIVER, and DEFAULT/BUILTIN.
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync * Preferred will bubble a mode to the top within a set.
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync# define M_T_CLOCK_C (0x02 | M_T_BUILTIN) /* built-in mode - configure clock */
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync# define M_T_CRTC_C (0x04 | M_T_BUILTIN) /* built-in mode - configure CRTC */
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync# define M_T_CLOCK_CRTC_C (M_T_CLOCK_C | M_T_CRTC_C)
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync /* built-in mode - configure CRTC and clock */
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync# define M_T_PREFERRED 0x08 /* preferred mode within a set */
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync# define M_T_DEFAULT 0x10 /* (VESA) default modes */
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync# define M_T_USERDEF 0x20 /* One of the modes from the config file */
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync# define M_T_DRIVER 0x40 /* Supplied by the driver (EDID, etc) */
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync# define M_T_USERPREF 0x80 /* mode preferred by the user config */
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync/* Video mode */
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync /* These are the values that the user sees/provides */
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync /* These are the values the hardware uses */
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync * be programmed (kHz) */
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync/* The monitor description */
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync/* The permitted gamma range is 1 / GAMMA_MAX <= g <= GAMMA_MAX */
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsynctypedef struct {
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync DisplayModePtr Modes; /* Start of the monitor's mode list */
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync DisplayModePtr Last; /* End of the monitor's mode list */
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync Bool reducedblanking; /* Allow CVT reduced blanking modes? */
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync/* the list of clock ranges */
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync * The driverFunc. xorgDriverFuncOp specifies the action driver should
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync * perform. If requested option is not supported function should return
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync * FALSE. pointer can be used to pass arguments to the function or
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync * to return data to the caller.
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync/* do not change order */
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsynctypedef enum {
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsynctypedef Bool xorgDriverFuncProc (ScrnInfoPtr, xorgDriverFuncOp,
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync/* RR_GET_INFO, RR_SET_CONFIG */
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsynctypedef struct {
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsynctypedef union {
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync/* RR_GET_MODE_MM */
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsynctypedef struct {
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync/* GET_REQUIRED_HW_INTERFACES */
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync * The driver list struct. This contains the information required for each
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync * driver before a ScrnInfoRec has been allocated.
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsynctypedef struct {
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync const OptionInfoRec * (*AvailableOptions)(int chipid, int bustype);
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync const OptionInfoRec * (*AvailableOptions)(int chipid, int bustype);
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync Bool (*PciProbe)( struct _DriverRec * drv, int entity_num,
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync * AddDriver flags
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync * These are the private bus types. New types can be added here. Types
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync * required for the public interface should be added to xf86str.h, with
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync * function prototypes added to xf86.h.
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync/* Tolerate prior #include <linux/input.h> */
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsynctypedef enum {
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsynctypedef struct {
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsynctypedef enum {
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsynctypedef struct {
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync unsigned long BiosBase; /* Base address of video BIOS */
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync unsigned long MemBase; /* Frame buffer base address */
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsynctypedef struct {
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsynctypedef enum {
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync XF86DRI_WC_HINT = 0x0001 /* Placeholder: not implemented */
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync/* These values should be adjusted when new fields are added to ScrnInfoRec */
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync/* flags for depth 24 pixmap options */
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsynctypedef enum {
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync/* Power management events: so far we only support APM */
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsynctypedef enum {
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsynctypedef enum {
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync * Key used to match this device with its name in an array of
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync * \c SymTabRec.
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync * This value is quirky. Depending on the driver, it can take on one of
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync * three meanings. In drivers that have exactly one vendor ID (e.g.,
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync * radeon, mga, i810) the low 16-bits are the device ID.
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync * In drivers that can have multiple vendor IDs (e.g., the glint driver
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync * can have either 3dlabs' ID or TI's ID, the i740 driver can have either
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync * Intel's ID or Real3D's ID, etc.) the low 16-bits are the device ID and
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync * the high 16-bits are the vendor ID.
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync * In drivers that don't have a specific vendor (e.g., vga) contains the
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync * device ID for either the generic VGA or generic 8514 devices. This
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync * turns out to be the same as the subclass and programming interface
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync * value (e.g., the full 24-bit class for the VGA device is 0x030000 (or
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync * 0x000101) and for 8514 is 0x030001).
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync/* dummy place holders for drivers to build against old/new servers */
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync/* Entity properties */
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsynctypedef void (*EntityProc)(int entityIndex,pointer private);
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsynctypedef struct {
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync int num; /* A unique identifier for the mode (num > 0) */
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync int imageWidth; /* linear accessible portion (pixels) */
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync int pixmapWidth; /* Xlib accessible portion (pixels) */
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync int pixmapHeight; /* both fields ignored if no concurrent access */
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync int xViewportStep; /* viewport position granularity */
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync int viewportFlags; /* types of page flipping possible */
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync unsigned char *address; /* server's mapped framebuffer */
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsynctypedef struct {
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync * Flags for driver Probe() functions.
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync * Driver entry point types
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsynctypedef Bool xf86ScreenInitProc (int, ScreenPtr, int, char**);
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsynctypedef Bool xf86SwitchModeProc (int, DisplayModePtr, int);
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsynctypedef void xf86AdjustFrameProc (int, int, int, int);
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsynctypedef ModeStatus xf86ValidModeProc (int, DisplayModePtr, Bool, int);
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsynctypedef void xf86EnableDisableFBAccessProc(int, Bool);
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsynctypedef int xf86SetDGAModeProc (int, int, DGADevicePtr);
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsynctypedef void xf86DPMSSetProc (ScrnInfoPtr, int, int);
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsynctypedef void xf86LoadPaletteProc (ScrnInfoPtr, int, int *, LOCO *, VisualPtr);
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsynctypedef void xf86SetOverscanProc (ScrnInfoPtr, int);
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync * ScrnInfoRec
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync * There is one of these for each screen, and it holds all the screen-specific
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync * information.
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync * Note: the size and layout must be kept the same across versions. New
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync * fields are to be added in place of the "reserved*" fields. No fields
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync * are to be dependent on compile-time defines.
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync /* the config file */
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync * this screen before
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync * finalising the number of
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync * available screens */
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync /* Display-wide screenInfo values needed by this screen */
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync Pix24Flags pixmap24; /* pixmap pref for depth 24 */
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync MessageType bitsPerPixelFrom; /* set from config? */
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync DisplayModePtr modePool; /* list of compatible modes */
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync * This was previously
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync * overloaded with the modes
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync * field, which is a pointer
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync * into a circular list */
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync /* Some of these may be moved out of here into the driver private area */
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync int clock[MAXCLOCKS]; /* list of clock frequencies */
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync unsigned long biosBase; /* Base address of video BIOS */
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync unsigned long memPhysBase; /* Physical address of FB */
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync unsigned long fbOffset; /* Offset of FB in the above */
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync IOADDRESS domainIOBase; /* Domain I/O base address */
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync /* Allow screens to be enabled/disabled individually */
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync /* hw cursor moves at SIGIO time */
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync /* Storage for clockRanges and adjustFlags for use with the VidMode ext */
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync * These can be used when the minor ABI version is incremented.
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync * The NUM_* parameters must be reduced appropriately to keep the
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync * structure size and alignment unchanged.
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync * Driver entry points.
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync xf86EnableDisableFBAccessProc *EnableDisableFBAccess;
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync * This can be used when the minor ABI version is incremented.
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync * The NUM_* parameter must be reduced appropriately to keep the
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync * structure size and alignment unchanged.
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsynctypedef struct {
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync unsigned char **mem,
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync Bool (*SetMode)(ScrnInfoPtr pScrn, DGAModePtr pMode);
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync void (*SetViewport)(ScrnInfoPtr pScrn, int x, int y, int flags);
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync int x, int y, int w, int h,
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync unsigned long color
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync int w, int h,
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync int w, int h,
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync unsigned long color
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync/* flags for xf86LookupMode */
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsynctypedef enum {
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync LOOKUP_DEFAULT = 0, /* Use default mode lookup method */
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync LOOKUP_BEST_REFRESH, /* Pick modes with best refresh */
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync LOOKUP_CLOSEST_CLOCK, /* Pick modes with the closest clock */
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync LOOKUP_LIST_ORDER, /* Pick first useful mode in list */
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync LOOKUP_OPTIONAL_TOLERANCES = 0x0200 /* Allow missing hsync/vrefresh */
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync#define Support24bppFb 0x01 /* 24bpp framebuffer supported */
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync#define Support32bppFb 0x02 /* 32bpp framebuffer supported */
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync#define SupportConvert24to32 0x04 /* Can convert 24bpp pixmap to 32bpp */
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync#define SupportConvert32to24 0x08 /* Can convert 32bpp pixmap to 24bpp */
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync#define PreferConvert24to32 0x10 /* prefer 24bpp pixmap to 32bpp conv */
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync#define PreferConvert32to24 0x20 /* prefer 32bpp pixmap to 24bpp conv */
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync/* For DPMS */
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsynctypedef void (*DPMSSetProcPtr)(ScrnInfoPtr, int, int);
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync/* Input handler proc */
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsynctypedef void (*InputHandlerProc)(int fd, pointer data);
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync/* These are used by xf86GetClocks */
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync * misc constants
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync#define CLOCK_TOLERANCE 2000 /* Clock matching tolerance (2MHz) */
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync/* Values of xf86Info.mouseFlags */
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync/* Action Events */
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsynctypedef enum {
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync ACTION_NEXT_MODE = 10, /* Switch to next video mode */
8c3d541c7ee7442f570b22eca3d82808b35b0385vboxsync#endif /* _XF86STR_H */