#ifndef _XAALOCAL_H
#define _XAALOCAL_H
/* This file is very unorganized ! */
#include "gcstruct.h"
#include "regionstr.h"
#include "xf86fbman.h"
#include "xaa.h"
#include "mi.h"
#ifdef RENDER
#include "picturestr.h"
#endif
);
int, int, int, int, int, int,
typedef struct _XAAScreen {
void (*LeaveVT)(int, int);
#ifdef RENDER
#endif
typedef struct _XAAGC {
int DashLength;
unsigned char* DashPattern;
unsigned long changes;
unsigned long flags;
#define REDUCIBILITY_MASK \
typedef struct _XAAPixmap {
unsigned long flags;
int fg;
int bg;
);
);
int srcx,
int srcy,
int width,
int height,
int dstx,
int dsty,
unsigned long bitPlane
);
void
int nbox,
int xdir,
int ydir,
int alu,
unsigned int planemask
);
void
);
void
);
void
);
void
);
int srcx,
int srcy,
int width,
int height,
int dstx,
int dsty
);
void
unsigned long changes,
);
void
unsigned long changes,
);
void
unsigned long changes,
);
void
unsigned long changes,
);
void
unsigned long changes,
);
void
unsigned long changes,
);
void
unsigned long changes,
);
void
unsigned long changes,
);
int srcx,
int srcy,
int width,
int height,
int dstx,
int dsty,
unsigned long bitPlane
);
void
int dx,
int dy,
int xOrg,
int yOrg
);
void
int x, int y, int w, int h,
unsigned char *src,
int srcwidth,
int skipleft,
int rop,
unsigned int planemask
);
void
int x, int y, int w, int h,
unsigned char *src,
int srcwidth,
int skipleft,
int rop,
unsigned int planemask
);
void
int x, int y, int w, int h,
unsigned char *src,
int srcwidth,
int skipleft,
int rop,
unsigned int planemask
);
void
int x, int y, int w, int h,
unsigned char *src,
int srcwidth,
int skipleft,
int rop,
unsigned int planemask
);
void
int x, int y, int w, int h,
unsigned char *src,
int srcwidth,
int skipleft,
int rop,
unsigned int planemask
);
void
int x, int y, int w, int h,
unsigned char *src,
int srcwidth,
int skipleft,
int rop,
unsigned int planemask
);
void
int x, int y, int w, int h,
unsigned char *src,
int srcwidth,
int skipleft,
int rop,
unsigned int planemask
);
void
int x, int y, int w, int h,
unsigned char *src,
int srcwidth,
int skipleft,
int rop,
unsigned int planemask
);
void
int x, int y, int w, int h,
unsigned char *src,
int srcwidth,
int skipleft,
int rop,
unsigned int planemask
);
void
int x, int y, int w, int h,
unsigned char *src,
int srcwidth,
int skipleft,
int rop,
unsigned int planemask
);
void
int x, int y, int w, int h,
unsigned char *src,
int srcwidth,
int skipleft,
int rop,
unsigned int planemask
);
void
int x, int y, int w, int h,
unsigned char *src,
int srcwidth,
int skipleft,
int rop,
unsigned int planemask
);
void
int x, int y, int w, int h,
unsigned char *src,
int srcwidth,
int skipleft,
int rop,
unsigned int planemask
);
void
int x, int y, int w, int h,
unsigned char *src,
int srcwidth,
int skipleft,
int rop,
unsigned int planemask
);
void
int x, int y, int w, int h,
unsigned char *src,
int srcwidth,
int skipleft,
int rop,
unsigned int planemask
);
void
int x, int y, int w, int h,
unsigned char *src,
int srcwidth,
int skipleft,
int rop,
unsigned int planemask
);
void
int x, int y, int w, int h,
unsigned char *src,
int srcwidth,
int rop,
unsigned int planemask,
int transparency_color,
);
void
int x, int y, int w, int h,
unsigned char *src,
int srcwidth,
int rop,
unsigned int planemask,
int transparency_color,
);
void
int nrectFill,
);
int, int, int);
void
int *pwidth,
int nspans,
int fSorted,
int xorg,
int yorg
);
void
unsigned int planemask,
int nBox,
);
void
unsigned int planemask,
int nBox,
);
void
unsigned int planemask,
int nBox,
);
void
int rop,
unsigned int planemask,
int nBox,
);
void
int rop,
unsigned int planemask,
int nBox,
);
void
int rop,
unsigned int planemask,
int nBox,
);
void
unsigned int planemask,
int nBox,
);
void
int rop,
unsigned int planemask,
int nBox,
);
void
int nrectFill,
);
void
unsigned int **glyphs, int glyphWidth,
);
void
unsigned int **glyphs, int glyphWidth,
);
void
unsigned int **glyphs, int glyphWidth,
);
void
unsigned int **glyphs, int glyphWidth,
);
void
unsigned int **glyphs, int glyphWidth,
);
void
unsigned int **glyphs, int glyphWidth,
);
void
unsigned int **glyphs, int glyphWidth,
);
void
unsigned int **glyphs, int glyphWidth,
);
void
unsigned int **glyphs, int glyphWidth,
);
void
unsigned int **glyphs, int glyphWidth,
);
void
unsigned int **glyphs, int glyphWidth,
);
void
unsigned int **glyphs, int glyphWidth,
);
);
);
);
);
void
unsigned int planemask,
int nBox,
);
void
unsigned int planemask,
int nBox,
);
void
unsigned int planemask,
int nBox,
);
void
unsigned int planemask,
int nBox,
);
void
unsigned int planemask,
int nBox,
);
void
unsigned int planemask,
int nBox,
);
void
unsigned int planemask,
int nBox,
);
void
unsigned int planemask,
int nBox,
);
void
unsigned int planemask,
int nBox,
);
void
unsigned int planemask,
int nBox,
);
void
unsigned int planemask,
int nBox,
);
void
unsigned int planemask,
int nBox,
);
void
unsigned int planemask,
int n,
int *pwidth,
int fSorted,
);
void
unsigned int planemask,
int n,
int *pwidth,
int fSorted,
);
void
unsigned int planemask,
int n,
int *pwidth,
int fSorted,
);
void
unsigned int planemask,
int n,
int *pwidth,
int fSorted,
);
void
unsigned int planemask,
int n,
int *pwidth,
int fSorted,
);
void
unsigned int planemask,
int n,
int *pwidth,
int fSorted,
);
void
unsigned int planemask,
int n,
int *pwidth,
int fSorted,
);
void
unsigned int planemask,
int n,
int *pwidth,
int fSorted,
);
void
unsigned int planemask,
int n,
int *pwidth,
int fSorted,
);
void
unsigned int planemask,
int n,
int *pwidth,
int fSorted,
);
void
int depth,
int x,
int y,
int w,
int h,
int leftPad,
int format,
char *pImage
);
void
unsigned int planemask,
int n,
int *pwidth,
int fSorted,
);
void
unsigned int planemask,
int n,
int *pwidth,
int fSorted,
);
);
);
);
);
int
int x, int y,
int count,
char *chars
);
int
int x, int y,
int count,
unsigned short *chars
);
void
int x, int y,
int count,
char *chars
);
void
int x, int y,
int count,
unsigned short *chars
);
void
unsigned int nglyph,
);
void
unsigned int nglyph,
);
int
int x, int y,
int count,
char *chars
);
int
int x, int y,
int count,
unsigned short *chars
);
void
int x, int y,
int count,
char *chars
);
void
int x, int y,
int count,
unsigned short *chars
);
void
unsigned int nglyph,
);
void
unsigned int nglyph,
);
void XAANonTEGlyphRenderer(
int x, int y, int n,
unsigned int planemask
);
void
unsigned int planemask,
int n,
);
void
unsigned int planemask,
int n,
);
void
unsigned int planemask,
int n,
);
void
int rop,
unsigned int planemask,
int n,
);
void
int rop,
unsigned int planemask,
int n,
);
void
int rop,
unsigned int planemask,
int n,
int *widths,
int fSorted,
);
void
unsigned int planemask,
int n,
int *pwidth,
int fSorted,
);
void
int nInit,
int *pwidth,
int fSorted
);
void
);
void
int x, int y, int w, int h,
unsigned char *src,
int srcwidth,
);
void
int x, int y, int w, int h,
unsigned char *src,
int srcwidth,
);
void
int x, int y, int w, int h,
unsigned char *src,
int srcwidth,
);
void
int x, int y, int w, int h,
unsigned char *src,
int srcwidth,
);
void
int what
);
void
);
void
);
void
);
void
int nRectsInit,
);
void
int mode,
int npt,
);
void
int shape,
int mode,
int count,
);
void
int shape,
int mode,
int count,
);
void
int shape,
int mode,
int count,
);
int
int count,
int origin,
int shape
);
void
int count,
int y,
int maxy,
int origin,
int xorg,
int yorg,
);
void
int nseg,
);
void
int mode,
int npt,
);
void
int nseg,
);
void
int mode,
int npt,
);
void
void
);
void
);
void XAAMoveDWORDS_FixedBase(
register int dwords
);
void XAAMoveDWORDS_FixedSrc(
register int dwords
);
void XAAMoveDWORDS(
register int dwords
);
int
int nrectFill,
);
void
void
void
#ifdef RENDER
void
void
int nlist,
int nlist,
/* helpers */
void
int alphaPitch,
int dstPitch, /* in dwords */
int width,
int height
);
);
);
#endif
/* XXX should be static */
extern GCOps XAAFallbackOps;
extern GCOps *XAAGetFallbackOps(void);
extern GCFuncs XAAGCFuncs;
extern int XAAGetScreenIndex(void);
extern int XAAGetGCIndex(void);
extern int XAAGetPixmapIndex(void);
extern unsigned int XAAShiftMasks[32];
(!(flags & NO_PLANEMASK) || \
while(_pLink) { \
break; \
} \
}}
#define SWAP_BITS_IN_BYTES(v) \
(((0x01010101 & (v)) << 7) | ((0x02020202 & (v)) << 5) | \
((0x04040404 & (v)) << 3) | ((0x08080808 & (v)) << 1) | \
((0x10101010 & (v)) >> 1) | ((0x20202020 & (v)) >> 3) | \
((0x40404040 & (v)) >> 5) | ((0x80808080 & (v)) >> 7))
/*
* Moved XAAPixmapCachePrivate here from xaaPCache.c, since driver
* replacements for CacheMonoStipple need access to it
*/
typedef struct {
int Num512x512;
int Current512;
int Num256x256;
int Current256;
int Num128x128;
int Current128;
int NumMono;
int CurrentMono;
int NumColor;
int CurrentColor;
int NumPartial;
int CurrentPartial;
#endif /* _XAALOCAL_H */