45e9809aff7304721fddb95654901b32195c9c7avboxsync/*
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Copyright (c) 1997-2002 by The XFree86 Project, Inc.
45e9809aff7304721fddb95654901b32195c9c7avboxsync *
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Permission is hereby granted, free of charge, to any person obtaining a
45e9809aff7304721fddb95654901b32195c9c7avboxsync * copy of this software and associated documentation files (the "Software"),
45e9809aff7304721fddb95654901b32195c9c7avboxsync * to deal in the Software without restriction, including without limitation
45e9809aff7304721fddb95654901b32195c9c7avboxsync * the rights to use, copy, modify, merge, publish, distribute, sublicense,
45e9809aff7304721fddb95654901b32195c9c7avboxsync * and/or sell copies of the Software, and to permit persons to whom the
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Software is furnished to do so, subject to the following conditions:
45e9809aff7304721fddb95654901b32195c9c7avboxsync *
45e9809aff7304721fddb95654901b32195c9c7avboxsync * The above copyright notice and this permission notice shall be included in
45e9809aff7304721fddb95654901b32195c9c7avboxsync * all copies or substantial portions of the Software.
45e9809aff7304721fddb95654901b32195c9c7avboxsync *
45e9809aff7304721fddb95654901b32195c9c7avboxsync * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
45e9809aff7304721fddb95654901b32195c9c7avboxsync * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
45e9809aff7304721fddb95654901b32195c9c7avboxsync * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
45e9809aff7304721fddb95654901b32195c9c7avboxsync * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
45e9809aff7304721fddb95654901b32195c9c7avboxsync * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
45e9809aff7304721fddb95654901b32195c9c7avboxsync * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
45e9809aff7304721fddb95654901b32195c9c7avboxsync * OTHER DEALINGS IN THE SOFTWARE.
45e9809aff7304721fddb95654901b32195c9c7avboxsync *
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Except as contained in this notice, the name of the copyright holder(s)
45e9809aff7304721fddb95654901b32195c9c7avboxsync * and author(s) shall not be used in advertising or otherwise to promote
45e9809aff7304721fddb95654901b32195c9c7avboxsync * the sale, use or other dealings in this Software without prior written
45e9809aff7304721fddb95654901b32195c9c7avboxsync * authorization from the copyright holder(s) and author(s).
45e9809aff7304721fddb95654901b32195c9c7avboxsync */
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync/*
45e9809aff7304721fddb95654901b32195c9c7avboxsync * This file contains declarations for private XFree86 functions and variables,
45e9809aff7304721fddb95654901b32195c9c7avboxsync * and definitions of private macros.
45e9809aff7304721fddb95654901b32195c9c7avboxsync *
45e9809aff7304721fddb95654901b32195c9c7avboxsync * "private" means not available to video drivers.
45e9809aff7304721fddb95654901b32195c9c7avboxsync */
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#ifndef _XF86PRIV_H
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define _XF86PRIV_H
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#include <pciaccess.h>
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#include "xf86Privstr.h"
45e9809aff7304721fddb95654901b32195c9c7avboxsync#include "propertyst.h"
45e9809aff7304721fddb95654901b32195c9c7avboxsync#include "input.h"
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync/*
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Parameters set ONLY from the command line options
45e9809aff7304721fddb95654901b32195c9c7avboxsync * The global state of these things is held in xf86InfoRec (when appropriate).
45e9809aff7304721fddb95654901b32195c9c7avboxsync */
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern _X_EXPORT const char *xf86ConfigFile;
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern _X_EXPORT Bool xf86AllowMouseOpenFail;
45e9809aff7304721fddb95654901b32195c9c7avboxsync#ifdef XF86VIDMODE
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern _X_EXPORT Bool xf86VidModeDisabled;
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern _X_EXPORT Bool xf86VidModeAllowNonLocal;
45e9809aff7304721fddb95654901b32195c9c7avboxsync#endif
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern _X_EXPORT Bool xf86fpFlag;
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern _X_EXPORT Bool xf86sFlag;
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern _X_EXPORT Bool xf86bsEnableFlag;
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern _X_EXPORT Bool xf86bsDisableFlag;
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern _X_EXPORT Bool xf86silkenMouseDisableFlag;
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern _X_EXPORT Bool xf86xkbdirFlag;
45e9809aff7304721fddb95654901b32195c9c7avboxsync#ifdef HAVE_ACPI
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern _X_EXPORT Bool xf86acpiDisableFlag;
45e9809aff7304721fddb95654901b32195c9c7avboxsync#endif
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern _X_EXPORT char *xf86LayoutName;
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern _X_EXPORT char *xf86ScreenName;
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern _X_EXPORT char *xf86PointerName;
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern _X_EXPORT char *xf86KeyboardName;
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern _X_EXPORT int xf86FbBpp;
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern _X_EXPORT int xf86Depth;
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern _X_EXPORT Pix24Flags xf86Pix24;
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern _X_EXPORT rgb xf86Weight;
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern _X_EXPORT Bool xf86FlipPixels;
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern _X_EXPORT Gamma xf86Gamma;
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern _X_EXPORT char *xf86ServerName;
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern _X_EXPORT struct pci_slot_match xf86IsolateDevice;
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync/* Other parameters */
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern _X_EXPORT xf86InfoRec xf86Info;
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern _X_EXPORT const char *xf86ModulePath;
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern _X_EXPORT MessageType xf86ModPathFrom;
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern _X_EXPORT const char *xf86LogFile;
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern _X_EXPORT MessageType xf86LogFileFrom;
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern _X_EXPORT Bool xf86LogFileWasOpened;
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern _X_EXPORT serverLayoutRec xf86ConfigLayout;
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern _X_EXPORT DriverPtr *xf86DriverList;
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern _X_EXPORT int xf86NumDrivers;
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern _X_EXPORT Bool xf86Resetting;
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern _X_EXPORT Bool xf86Initialising;
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern _X_EXPORT int xf86NumScreens;
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern _X_EXPORT const char *xf86VisualNames[];
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern _X_EXPORT int xf86Verbose; /* verbosity level */
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern _X_EXPORT int xf86LogVerbose; /* log file verbosity level */
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern _X_EXPORT Bool xorgHWAccess;
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern _X_EXPORT RootWinPropPtr *xf86RegisteredPropertiesTable;
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#ifndef DEFAULT_VERBOSE
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define DEFAULT_VERBOSE 0
45e9809aff7304721fddb95654901b32195c9c7avboxsync#endif
45e9809aff7304721fddb95654901b32195c9c7avboxsync#ifndef DEFAULT_LOG_VERBOSE
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define DEFAULT_LOG_VERBOSE 3
45e9809aff7304721fddb95654901b32195c9c7avboxsync#endif
45e9809aff7304721fddb95654901b32195c9c7avboxsync#ifndef DEFAULT_DPI
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define DEFAULT_DPI 96
45e9809aff7304721fddb95654901b32195c9c7avboxsync#endif
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync/* Function Prototypes */
45e9809aff7304721fddb95654901b32195c9c7avboxsync#ifndef _NO_XF86_PROTOTYPES
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync/* xf86Bus.c */
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern _X_EXPORT void xf86BusProbe(void);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern _X_EXPORT void xf86AccessInit(void);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern _X_EXPORT void xf86AccessEnter(void);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern _X_EXPORT void xf86AccessLeave(void);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern _X_EXPORT void xf86EntityInit(void);
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern _X_EXPORT void xf86FindPrimaryDevice(void);
45e9809aff7304721fddb95654901b32195c9c7avboxsync/* new RAC */
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern _X_EXPORT void xf86PostProbe(void);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern _X_EXPORT void xf86ClearEntityListForScreen(int scrnIndex);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern _X_EXPORT void xf86AddDevToEntity(int entityIndex, GDevPtr dev);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern _X_EXPORT void xf86PostScreenInit(void);
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync/* xf86Config.c */
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern _X_EXPORT Bool xf86PathIsSafe(const char *path);
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync/* xf86DefaultModes */
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern _X_EXPORT const DisplayModeRec xf86DefaultModes[];
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern _X_EXPORT const int xf86NumDefaultModes;
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync/* xf86Configure.c */
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern _X_EXPORT void DoConfigure(void);
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync/* xf86ShowOpts.c */
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern _X_EXPORT void DoShowOptions(void);
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync/* xf86Events.c */
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern _X_EXPORT void xf86Wakeup(pointer blockData, int err, pointer pReadmask);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern _X_HIDDEN int xf86SigWrapper(int signo);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern _X_EXPORT void xf86HandlePMEvents(int fd, pointer data);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern _X_EXPORT int (*xf86PMGetEventFromOs)(int fd,pmEvent *events,int num);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern _X_EXPORT pmWait (*xf86PMConfirmEventToOs)(int fd,pmEvent event);
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync/* xf86Helper.c */
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern _X_EXPORT void xf86LogInit(void);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern _X_EXPORT void xf86CloseLog(void);
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync/* xf86Init.c */
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern _X_EXPORT Bool xf86LoadModules(char **list, pointer *optlist);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern _X_EXPORT int xf86SetVerbosity(int verb);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern _X_EXPORT int xf86SetLogVerbosity(int verb);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern _X_EXPORT Bool xf86CallDriverProbe( struct _DriverRec * drv, Bool detect_only );
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync/* xf86Xinput.c */
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern _X_EXPORT EventList *xf86Events;
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#endif /* _NO_XF86_PROTOTYPES */
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#endif /* _XF86PRIV_H */