Commit b0813ddf authored by Siarhei Siamashka's avatar Siarhei Siamashka
Browse files

Move driver private data into a separate header file

It is going to be included by multiple different source files.
parent 703aea28
......@@ -30,4 +30,5 @@ sunxifb_drv_ladir = @moduledir@/drivers
sunxifb_drv_la_SOURCES = \
compat-api.h \
fbdev.c
fbdev.c \
fbdev_priv.h
......@@ -177,25 +177,7 @@ FBDevSetup(pointer module, pointer opts, int *errmaj, int *errmin)
/* -------------------------------------------------------------------- */
/* our private data, and two functions to allocate/free this */
typedef struct {
unsigned char* fbstart;
unsigned char* fbmem;
int fboff;
int lineLength;
int rotate;
Bool shadowFB;
void *shadow;
CloseScreenProcPtr CloseScreen;
CreateScreenResourcesProcPtr CreateScreenResources;
void (*PointerMoved)(SCRN_ARG_TYPE arg, int x, int y);
EntityInfoPtr pEnt;
/* DGA info */
DGAModePtr pDGAMode;
int nDGAMode;
OptionInfoPtr Options;
} FBDevRec, *FBDevPtr;
#define FBDEVPTR(p) ((FBDevPtr)((p)->driverPrivate))
#include "fbdev_priv.h"
static Bool
FBDevGetRec(ScrnInfoPtr pScrn)
......
/*
* Authors: Alan Hourihane, <alanh@fairlite.demon.co.uk>
* Michel Dänzer, <michel@tungstengraphics.com>
*/
#include "compat-api.h"
typedef struct {
unsigned char* fbstart;
unsigned char* fbmem;
int fboff;
int lineLength;
int rotate;
Bool shadowFB;
void *shadow;
CloseScreenProcPtr CloseScreen;
CreateScreenResourcesProcPtr CreateScreenResources;
void (*PointerMoved)(SCRN_ARG_TYPE arg, int x, int y);
EntityInfoPtr pEnt;
/* DGA info */
DGAModePtr pDGAMode;
int nDGAMode;
OptionInfoPtr Options;
} FBDevRec, *FBDevPtr;
#define FBDEVPTR(p) ((FBDevPtr)((p)->driverPrivate))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment