~ubuntu-branches/ubuntu/trusty/xserver-xorg-video-dummy-lts-utopic/trusty-proposed

« back to all changes in this revision

Viewing changes to src/dummy.h

  • Committer: Package Import Robot
  • Author(s): Maarten Lankhorst
  • Date: 2015-01-06 10:39:13 UTC
  • Revision ID: package-import@ubuntu.com-20150106103913-fjjsho4g2a4ziord
Tags: upstream-0.3.7
ImportĀ upstreamĀ versionĀ 0.3.7

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
/* All drivers should typically include these */
 
3
#include "xf86.h"
 
4
#include "xf86_OSproc.h"
 
5
 
 
6
#include "xf86Cursor.h"
 
7
 
 
8
#ifdef XvExtension
 
9
#include "xf86xv.h"
 
10
#include <X11/extensions/Xv.h>
 
11
#endif
 
12
#include <string.h>
 
13
 
 
14
#include "compat-api.h"
 
15
 
 
16
/* Supported chipsets */
 
17
typedef enum {
 
18
    DUMMY_CHIP
 
19
} DUMMYType;
 
20
 
 
21
/* function prototypes */
 
22
 
 
23
extern Bool DUMMYSwitchMode(SWITCH_MODE_ARGS_DECL);
 
24
extern void DUMMYAdjustFrame(ADJUST_FRAME_ARGS_DECL);
 
25
 
 
26
/* in dummy_cursor.c */
 
27
extern Bool DUMMYCursorInit(ScreenPtr pScrn);
 
28
extern void DUMMYShowCursor(ScrnInfoPtr pScrn);
 
29
extern void DUMMYHideCursor(ScrnInfoPtr pScrn);
 
30
 
 
31
/* in dummy_dga.c */
 
32
Bool DUMMYDGAInit(ScreenPtr pScreen);
 
33
 
 
34
/* in dummy_video.c */
 
35
extern void DUMMYInitVideo(ScreenPtr pScreen);
 
36
 
 
37
/* globals */
 
38
typedef struct _color
 
39
{
 
40
    int red;
 
41
    int green;
 
42
    int blue;
 
43
} dummy_colors;
 
44
 
 
45
typedef struct dummyRec 
 
46
{
 
47
    DGAModePtr          DGAModes;
 
48
    int                 numDGAModes;
 
49
    Bool                DGAactive;
 
50
    int                 DGAViewportStatus;
 
51
    /* options */
 
52
    OptionInfoPtr Options;
 
53
    Bool swCursor;
 
54
    /* proc pointer */
 
55
    CloseScreenProcPtr CloseScreen;
 
56
    xf86CursorInfoPtr CursorInfo;
 
57
 
 
58
    Bool DummyHWCursorShown;
 
59
    int cursorX, cursorY;
 
60
    int cursorFG, cursorBG;
 
61
 
 
62
    Bool screenSaver;
 
63
    Bool video;
 
64
#ifdef XvExtension
 
65
    XF86VideoAdaptorPtr overlayAdaptor;
 
66
#endif
 
67
    int overlay;
 
68
    int overlay_offset;
 
69
    int videoKey;
 
70
    int interlace;
 
71
    dummy_colors colors[256];
 
72
    pointer* FBBase;
 
73
    Bool        (*CreateWindow)() ;     /* wrapped CreateWindow */
 
74
    Bool prop;
 
75
} DUMMYRec, *DUMMYPtr;
 
76
 
 
77
/* The privates of the DUMMY driver */
 
78
#define DUMMYPTR(p)     ((DUMMYPtr)((p)->driverPrivate))
 
79