#ifndef LEO_H
#define LEO_H
#include "xf86.h"
#include "xf86_OSproc.h"
#include "xf86_ansic.h"
#include "xf86RamDac.h"
#include "Xmd.h"
#include "gcstruct.h"
#include "leo_regs.h"
#include "xf86sbusBus.h"
#define LEO_FB0_VOFF 0x00000000
#define LEO_LC0_VOFF 0x00800000
#define LEO_LD0_VOFF 0x00801000
#define LEO_LX0_CURSOR_VOFF 0x00802000
#define LEO_FB1_VOFF 0x00803000
#define LEO_LC1_VOFF 0x01003000
#define LEO_LD1 0x01004000
#define LEO_LX0_VERT_VOFF 0x01005000
#define LEO_LX_KRN_VOFF 0x01006000
#define LEO_LC0_KRN_VOFF 0x01007000
#define LEO_LC1_KRN_VOFF 0x01008000
#define LEO_LD_GBL_VOFF 0x01009000
typedef struct {
unsigned int fg, bg;
unsigned int patalign;
unsigned int alu;
unsigned int bits[32];
} LeoStippleRec, *LeoStipplePtr;
typedef struct {
int type;
LeoStipplePtr stipple;
} LeoPrivGCRec, *LeoPrivGCPtr;
typedef struct {
LeoCommand0 *lc0;
LeoDraw *ld0;
LeoCursor *dac;
unsigned *fb;
int vclipmax;
int width;
int height;
LeoStipplePtr tmpStipple;
sbusDevicePtr psdp;
Bool HWCursor;
Bool NoAccel;
Bool vtSema;
CloseScreenProcPtr CloseScreen;
xf86CursorInfoPtr CursorInfoRec;
unsigned char CursorShiftX, CursorShiftY;
unsigned char *CursorData;
OptionInfoPtr Options;
} LeoRec, *LeoPtr;
extern int LeoScreenPrivateIndex;
extern int LeoGCPrivateIndex;
extern int LeoWindowPrivateIndex;
#define GET_LEO_FROM_SCRN(p) ((LeoPtr)((p)->driverPrivate))
#define LeoGetScreenPrivate(s) \
((LeoPtr) (s)->devPrivates[LeoScreenPrivateIndex].ptr)
#define LeoGetGCPrivate(g) \
((LeoPrivGCPtr) (g)->devPrivates [LeoGCPrivateIndex].ptr)
#define LeoGetWindowPrivate(w) \
((LeoStipplePtr) (w)->devPrivates[LeoWindowPrivateIndex].ptr)
#define LeoSetWindowPrivate(w,p) \
((w)->devPrivates[LeoWindowPrivateIndex].ptr = (pointer) p)
extern int leoRopTable[];
#endif