xf86.h revision a2760a4d593af57a19ec32cdfd1723b68495df8c
/*
* Copyright (c) 1997 by The XFree86 Project, Inc.
*/
/*
* This file contains declarations for public XFree86 functions and variables,
* and definitions of public macros.
*
* "public" means available to video drivers.
*/
#ifndef _XF86_H
#define _XF86_H
#include "xf86str.h"
#include "xf86Opt.h"
#include <X11/Xfuncproto.h>
#ifndef IN_MODULE
#include <stdarg.h>
#else
#include "xf86_ansic.h"
#endif
#include "propertyst.h"
/* General parameters */
extern int xf86DoConfigure;
extern Bool xf86DoConfigurePass1;
extern int xf86ScreenIndex; /* Index into pScreen.devPrivates */
extern int xf86CreateRootWindowIndex; /* Index into pScreen.devPrivates */
extern int xf86PixmapIndex;
extern Bool xf86ResAccessEnter;
extern const unsigned char byte_reversed[256];
extern PropertyPtr *xf86RegisteredPropertiesTable;
extern ScrnInfoPtr xf86CurrentScreen;
extern Bool pciSlotClaimed;
extern Bool isaSlotClaimed;
extern Bool fbSlotClaimed;
#ifdef __sparc__
extern Bool sbusSlotClaimed;
#endif
extern confDRIRec xf86ConfigDRI;
#define XF86FLIP_PIXELS() \
do { \
if (xf86GetFlipPixels()) { \
} \
while (0)
(((p) == Pix24Use32) ? 32 : 0))
/* variables for debugging */
#ifdef BUILDDEBUG
extern char* xf86p8bit[];
extern CARD32 xf86DummyVar1;
extern CARD32 xf86DummyVar2;
extern CARD32 xf86DummyVar3;
#endif
/* Function Prototypes */
#ifndef _NO_XF86_PROTOTYPES
/* xf86Bus.c */
int *func);
pciVideoPtr *xf86GetPciVideoInfo(void);
#ifdef _XF86PCI_H
pciConfigPtr *xf86GetPciConfigInfo(void);
#endif
int xf86GetIsaInfoForScreen(int scrnIndex);
int xf86GetFbInfoForScreen(int scrnIndex);
Bool xf86IsPrimaryIsa(void);
/* new RAC */
int instance);
int xf86GetNumEntityInstances(int entityIndex);
unsigned long type);
char n, pciVideoPtr pvp_exclude);
char n, pciVideoPtr pvp_exclude);
void xf86RegisterStateChangeNotificationCallback(xf86StateChangeNotificationCallbackFunc func, pointer arg);
#ifdef async
#endif
int xf86GetLastScrnFlag(int entityIndex);
void xf86SetEntityShared(int entityIndex);
void xf86SetEntitySharable(int entityIndex);
void xf86SetPrimInitDone(int entityIndex);
void xf86ClearPrimInitDone(int entityIndex);
int xf86AllocateEntityPrivateIndex(void);
/* xf86Configure.c */
int chipset);
/* xf86Cursor.c */
void *xf86GetPointerScreenFuncs(void);
void xf86InitOrigins(void);
/* xf86DPMS.c */
/* xf86DGA.c */
int num);
/* xf86Events.c */
void SetTimeSinceLastInputEvent(void);
void xf86InterceptSignals(int *signo);
/* xf86Helper.c */
void xf86DeleteDriver(int drvIndex);
int xf86AllocateScrnInfoPrivateIndex(void);
int depth24flags);
const char *format, ...);
void xf86ErrorF(const char *format, ...);
int **foundEntities);
int numDevs, int **foundEntities);
const char *xf86GetVisualName(int visual);
int xf86GetVerbosity(void);
Pix24Flags xf86GetPix24(void);
int xf86GetDepth(void);
rgb xf86GetWeight(void);
Gamma xf86GetGamma(void);
Bool xf86GetFlipPixels(void);
const char *xf86GetServerName(void);
Bool xf86ServerIsExiting(void);
Bool xf86ServerIsResetting(void);
Bool xf86ServerIsInitialising(void);
Bool xf86ServerIsOnlyDetecting(void);
Bool xf86ServerIsOnlyProbing(void);
Bool xf86CaughtSignal(void);
Bool xf86GetVidModeAllowNonLocal(void);
Bool xf86GetVidModeEnabled(void);
Bool xf86GetModInDevAllowNonLocal(void);
Bool xf86GetModInDevEnabled(void);
Bool xf86GetAllowMouseOpenFail(void);
Bool xf86IsPc98(void);
void xf86LoaderReqSymLists(const char **, ...);
void xf86LoaderReqSymbols(const char *, ...);
void xf86LoaderRefSymLists(const char **, ...);
void xf86LoaderRefSymbols(const char *, ...);
/* Obsolete! don't use */
/* Obsolete! don't use */
#ifdef XFree86LOADER
void xf86DeleteModuleInfo(int idx);
#endif
/* xf86Debug.c */
#ifdef BUILDDEBUG
void xf86Break1(void);
void xf86Break2(void);
void xf86Break3(void);
#endif
/* xf86Init.c */
/* xf86Mode.c */
int virtualY);
int flags);
/* xf86Option.c */
#endif /* _NO_XF86_PROTOTYPES */
#endif /* _XF86_H */