a467602c6c
change "foo.h" to <X11/foo.h> for core headers, e.g. X.h, Xpoll.h; change "foo.h", "extensions/foo.h" and "X11/foo.h" to <X11/extensions/foo.h> for extension headers, e.g. Xv.h; change "foo.[ch]" to <X11/Xtrans/foo.[ch]> for Xtrans files.
75 lines
1.6 KiB
C
75 lines
1.6 KiB
C
/* $XFree86$ */
|
|
|
|
/* All drivers should typically include these */
|
|
#include "xf86.h"
|
|
#include "xf86_OSproc.h"
|
|
#include "xf86_ansic.h"
|
|
|
|
#include "xf86Cursor.h"
|
|
|
|
#include "xf86xv.h"
|
|
#include <X11/extensions/Xv.h>
|
|
|
|
/* Supported chipsets */
|
|
typedef enum {
|
|
DUMMY_CHIP
|
|
} DUMMYType;
|
|
|
|
/* function prototypes */
|
|
|
|
extern Bool DUMMYSwitchMode(int scrnIndex, DisplayModePtr mode, int flags);
|
|
extern void DUMMYAdjustFrame(int scrnIndex, int x, int y, int flags);
|
|
|
|
/* in dummy_cursor.c */
|
|
extern Bool DUMMYCursorInit(ScreenPtr pScrn);
|
|
extern void DUMMYShowCursor(ScrnInfoPtr pScrn);
|
|
extern void DUMMYHideCursor(ScrnInfoPtr pScrn);
|
|
|
|
/* in dummy_dga.c */
|
|
Bool DUMMYDGAInit(ScreenPtr pScreen);
|
|
|
|
/* in dummy_video.c */
|
|
extern void DUMMYInitVideo(ScreenPtr pScreen);
|
|
|
|
/* globals */
|
|
typedef struct _color
|
|
{
|
|
int red;
|
|
int green;
|
|
int blue;
|
|
} dummy_colors;
|
|
|
|
typedef struct dummyRec
|
|
{
|
|
DGAModePtr DGAModes;
|
|
int numDGAModes;
|
|
Bool DGAactive;
|
|
int DGAViewportStatus;
|
|
/* options */
|
|
OptionInfoPtr Options;
|
|
Bool swCursor;
|
|
/* proc pointer */
|
|
CloseScreenProcPtr CloseScreen;
|
|
xf86CursorInfoPtr CursorInfo;
|
|
|
|
Bool DummyHWCursorShown;
|
|
int cursorX, cursorY;
|
|
int cursorFG, cursorBG;
|
|
|
|
Bool screenSaver;
|
|
Bool video;
|
|
XF86VideoAdaptorPtr overlayAdaptor;
|
|
int overlay;
|
|
int overlay_offset;
|
|
int videoKey;
|
|
int interlace;
|
|
dummy_colors colors[256];
|
|
pointer* FBBase;
|
|
Bool (*CreateWindow)() ; /* wrapped CreateWindow */
|
|
Bool prop;
|
|
} DUMMYRec, *DUMMYPtr;
|
|
|
|
/* The privates of the DUMMY driver */
|
|
#define DUMMYPTR(p) ((DUMMYPtr)((p)->driverPrivate))
|
|
|