74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync/* $XFree86: xc/include/extensions/xf86rush.h,v 1.4 2000/02/29 03:09:00 dawes Exp $ */
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync/*
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncCopyright (c) 1998 Daryll Strauss
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync*/
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#ifndef _XF86RUSH_H_
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#define _XF86RUSH_H_
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#include <X11/extensions/Xv.h>
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#include <X11/Xfuncproto.h>
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#define X_XF86RushQueryVersion 0
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#define X_XF86RushLockPixmap 1
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#define X_XF86RushUnlockPixmap 2
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#define X_XF86RushUnlockAllPixmaps 3
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#define X_XF86RushGetCopyMode 4
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#define X_XF86RushSetCopyMode 5
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#define X_XF86RushGetPixelStride 6
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#define X_XF86RushSetPixelStride 7
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#define X_XF86RushOverlayPixmap 8
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#define X_XF86RushStatusRegOffset 9
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#define X_XF86RushAT3DEnableRegs 10
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#define X_XF86RushAT3DDisableRegs 11
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#define XF86RushNumberEvents 0
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#define XF86RushClientNotLocal 0
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#define XF86RushNumberErrors (XF86RushClientNotLocal + 1)
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#ifndef _XF86RUSH_SERVER_
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync_XFUNCPROTOBEGIN
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncBool XF86RushQueryVersion(
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#if NeedFunctionPrototypes
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync Display* /* dpy */,
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync int* /* majorVersion */,
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync int* /* minorVersion */
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#endif
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync);
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncBool XF86RushQueryExtension(
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#if NeedFunctionPrototypes
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync Display* /* dpy */,
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync int* /* event_base */,
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync int* /* error_base */
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#endif
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync);
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncBool XF86RushLockPixmap(
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#if NeedFunctionPrototypes
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync Display * /* dpy */,
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync int /* screen */,
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync Pixmap /* Pixmap */,
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync void ** /* Return address */
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#endif
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync);
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncBool XF86RushUnlockPixmap(
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#if NeedFunctionPrototypes
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync Display * /* dpy */,
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync int /* screen */,
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync Pixmap /* Pixmap */
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#endif
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync);
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncBool XF86RushUnlockAllPixmaps(
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#if NeedFunctionPrototypes
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync Display * /* dpy */
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#endif
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync);
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncBool XF86RushSetCopyMode(
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#if NeedFunctionPrototypes
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync Display * /* dpy */,
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync int /* screen */,
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync int /* copy mode */
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#endif
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync);
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncBool XF86RushSetPixelStride(
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#if NeedFunctionPrototypes
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync Display * /* dpy */,
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync int /* screen */,
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync int /* pixel stride */
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#endif
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync);
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncBool XF86RushOverlayPixmap(
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#if NeedFunctionPrototypes
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync Display * /* dpy */,
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync XvPortID /* port */,
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync Drawable /* d */,
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync GC /* gc */,
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync Pixmap /* pixmap */,
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync int /* src_x */,
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync int /* src_y */,
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync unsigned int /* src_w */,
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync unsigned int /* src_h */,
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync int /* dest_x */,
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync int /* dest_y */,
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync unsigned int /* dest_w */,
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync unsigned int /* dest_h */,
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync unsigned int /* id */
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#endif
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync);
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncint XF86RushStatusRegOffset(
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#if NeedFunctionPrototypes
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync Display * /* dpy */,
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync int /* screen */
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#endif
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync);
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncBool XF86RushAT3DEnableRegs(
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#if NeedFunctionPrototypes
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync Display * /* dpy */,
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync int /* screen */
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#endif
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync);
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncBool XF86RushAT3DDisableRegs(
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#if NeedFunctionPrototypes
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync Display * /* dpy */,
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync int /* screen */
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#endif
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync);
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync_XFUNCPROTOEND
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#endif /* _XF86RUSH_SERVER_ */
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#endif /* _XF86RUSH_H_ */