summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaleb Keithley <kaleb@freedesktop.org>2003-11-14 16:48:43 +0000
committerKaleb Keithley <kaleb@freedesktop.org>2003-11-14 16:48:43 +0000
commit6ba19772871d83ee98748fc86c4693fb9b10a15b (patch)
treec17f7ee0ef27956697508f29bfbc449fcf7e7fbe
Initial revisionXORG-STABLE
-rw-r--r--xf86rush.h135
-rw-r--r--xf86rushstr.h163
2 files changed, 298 insertions, 0 deletions
diff --git a/xf86rush.h b/xf86rush.h
new file mode 100644
index 0000000..32628b4
--- /dev/null
+++ b/xf86rush.h
@@ -0,0 +1,135 @@
+/* $XFree86: xc/include/extensions/xf86rush.h,v 1.4 2000/02/29 03:09:00 dawes Exp $ */
+/*
+
+Copyright (c) 1998 Daryll Strauss
+
+*/
+
+#ifndef _XF86RUSH_H_
+#define _XF86RUSH_H_
+
+#include <X11/extensions/Xv.h>
+#include <X11/Xfuncproto.h>
+
+#define X_XF86RushQueryVersion 0
+#define X_XF86RushLockPixmap 1
+#define X_XF86RushUnlockPixmap 2
+#define X_XF86RushUnlockAllPixmaps 3
+#define X_XF86RushGetCopyMode 4
+#define X_XF86RushSetCopyMode 5
+#define X_XF86RushGetPixelStride 6
+#define X_XF86RushSetPixelStride 7
+#define X_XF86RushOverlayPixmap 8
+#define X_XF86RushStatusRegOffset 9
+#define X_XF86RushAT3DEnableRegs 10
+#define X_XF86RushAT3DDisableRegs 11
+
+#define XF86RushNumberEvents 0
+
+#define XF86RushClientNotLocal 0
+#define XF86RushNumberErrors (XF86RushClientNotLocal + 1)
+
+#ifndef _XF86RUSH_SERVER_
+
+_XFUNCPROTOBEGIN
+
+Bool XF86RushQueryVersion(
+#if NeedFunctionPrototypes
+ Display* /* dpy */,
+ int* /* majorVersion */,
+ int* /* minorVersion */
+#endif
+);
+
+Bool XF86RushQueryExtension(
+#if NeedFunctionPrototypes
+ Display* /* dpy */,
+ int* /* event_base */,
+ int* /* error_base */
+#endif
+);
+
+Bool XF86RushLockPixmap(
+#if NeedFunctionPrototypes
+ Display * /* dpy */,
+ int /* screen */,
+ Pixmap /* Pixmap */,
+ void ** /* Return address */
+#endif
+);
+
+Bool XF86RushUnlockPixmap(
+#if NeedFunctionPrototypes
+ Display * /* dpy */,
+ int /* screen */,
+ Pixmap /* Pixmap */
+#endif
+);
+
+Bool XF86RushUnlockAllPixmaps(
+#if NeedFunctionPrototypes
+ Display * /* dpy */
+#endif
+);
+
+Bool XF86RushSetCopyMode(
+#if NeedFunctionPrototypes
+ Display * /* dpy */,
+ int /* screen */,
+ int /* copy mode */
+#endif
+);
+
+Bool XF86RushSetPixelStride(
+#if NeedFunctionPrototypes
+ Display * /* dpy */,
+ int /* screen */,
+ int /* pixel stride */
+#endif
+);
+
+Bool XF86RushOverlayPixmap(
+#if NeedFunctionPrototypes
+ Display * /* dpy */,
+ XvPortID /* port */,
+ Drawable /* d */,
+ GC /* gc */,
+ Pixmap /* pixmap */,
+ int /* src_x */,
+ int /* src_y */,
+ unsigned int /* src_w */,
+ unsigned int /* src_h */,
+ int /* dest_x */,
+ int /* dest_y */,
+ unsigned int /* dest_w */,
+ unsigned int /* dest_h */,
+ unsigned int /* id */
+#endif
+);
+
+int XF86RushStatusRegOffset(
+#if NeedFunctionPrototypes
+ Display * /* dpy */,
+ int /* screen */
+#endif
+);
+
+Bool XF86RushAT3DEnableRegs(
+#if NeedFunctionPrototypes
+ Display * /* dpy */,
+ int /* screen */
+#endif
+);
+
+Bool XF86RushAT3DDisableRegs(
+#if NeedFunctionPrototypes
+ Display * /* dpy */,
+ int /* screen */
+#endif
+);
+
+_XFUNCPROTOEND
+
+#endif /* _XF86RUSH_SERVER_ */
+
+#endif /* _XF86RUSH_H_ */
diff --git a/xf86rushstr.h b/xf86rushstr.h
new file mode 100644
index 0000000..33b4d32
--- /dev/null
+++ b/xf86rushstr.h
@@ -0,0 +1,163 @@
+/* $XFree86: xc/include/extensions/xf86rushstr.h,v 1.5 2001/08/01 00:44:36 tsi Exp $ */
+/*
+
+Copyright (c) 1998 Daryll Strauss
+
+*/
+
+#ifndef _XF86RUSHSTR_H_
+#define _XF86RUSHSTR_H_
+
+#include <X11/extensions/xf86rush.h>
+
+#define XF86RUSHNAME "XFree86-Rush"
+
+#define XF86RUSH_MAJOR_VERSION 1 /* current version numbers */
+#define XF86RUSH_MINOR_VERSION 1
+
+typedef struct _XF86RushQueryVersion {
+ CARD8 reqType; /* always RushReqCode */
+ CARD8 rushReqType; /* always X_RushQueryVersion */
+ CARD16 length B16;
+} xXF86RushQueryVersionReq;
+#define sz_xXF86RushQueryVersionReq 4
+
+typedef struct {
+ BYTE type; /* X_Reply */
+ BOOL pad1;
+ CARD16 sequenceNumber B16;
+ CARD32 length B32;
+ CARD16 majorVersion B16; /* major version of Rush protocol */
+ CARD16 minorVersion B16; /* minor version of Rush protocol */
+ CARD32 pad2 B32;
+ CARD32 pad3 B32;
+ CARD32 pad4 B32;
+ CARD32 pad5 B32;
+ CARD32 pad6 B32;
+} xXF86RushQueryVersionReply;
+#define sz_xXF86RushQueryVersionReply 32
+
+typedef struct _XF86RushLockPixmap {
+ CARD8 reqType; /* always RushReqCode */
+ CARD8 rushReqType; /* always X_RushLockPixmap */
+ CARD16 length B16;
+ CARD16 screen B16;
+ CARD16 pad B16;
+ CARD32 pixmap B32;
+} xXF86RushLockPixmapReq;
+#define sz_xXF86RushLockPixmapReq 12
+
+typedef struct {
+ BYTE type;
+ BOOL pad1;
+ CARD16 sequenceNumber B16;
+ CARD32 length B32;
+ CARD32 addr B32;
+ CARD32 pad2 B32;
+ CARD32 pad3 B32;
+ CARD32 pad4 B32;
+ CARD32 pad5 B32;
+ CARD32 pad6 B32;
+} xXF86RushLockPixmapReply;
+#define sz_xXF86RushLockPixmapReply 32
+
+typedef struct _XF86RushUnlockPixmap {
+ CARD8 reqType; /* always RushReqCode */
+ CARD8 rushReqType; /* always X_RushUnlockPixmap */
+ CARD16 length B16;
+ CARD16 screen B16;
+ CARD16 pad B16;
+ CARD32 pixmap B32;
+} xXF86RushUnlockPixmapReq;
+#define sz_xXF86RushUnlockPixmapReq 12
+
+typedef struct _XF86RushUnlockAllPixmaps {
+ CARD8 reqType; /* always RushReqCode */
+ CARD8 rushReqType; /* always X_RushUnlockAllPixmaps */
+ CARD16 length B16;
+} xXF86RushUnlockAllPixmapsReq;
+#define sz_xXF86RushUnlockAllPixmapsReq 4
+
+typedef struct _XF86RushSetCopyMode {
+ CARD8 reqType; /* always RushReqCode */
+ CARD8 rushReqType; /* always X_RushSetCopyMode */
+ CARD16 length B16;
+ CARD16 screen B16;
+ CARD16 pad B16;
+ CARD32 CopyMode B32;
+} xXF86RushSetCopyModeReq;
+#define sz_xXF86RushSetCopyModeReq 12
+
+
+typedef struct _XF86RushSetPixelStride {
+ CARD8 reqType; /* always RushReqCode */
+ CARD8 rushReqType; /* always X_RushSetCopyMode */
+ CARD16 length B16;
+ CARD16 screen B16;
+ CARD16 pad B16;
+ CARD32 PixelStride B32;
+} xXF86RushSetPixelStrideReq;
+#define sz_xXF86RushSetPixelStrideReq 12
+
+typedef struct {
+ CARD8 reqType; /* always RushReqCode */
+ CARD8 rushReqType; /* always X_RushOverlayPixmap */
+ CARD16 length B16;
+ XvPortID port B32;
+ Drawable drawable B32;
+ GContext gc B32;
+ Pixmap pixmap B32;
+ CARD32 id B32;
+ INT16 src_x B16;
+ INT16 src_y B16;
+ CARD16 src_w B16;
+ CARD16 src_h B16;
+ INT16 drw_x B16;
+ INT16 drw_y B16;
+ CARD16 drw_w B16;
+ CARD16 drw_h B16;
+} xXF86RushOverlayPixmapReq;
+#define sz_xXF86RushOverlayPixmapReq 40
+
+typedef struct _XF86RushStatusRegOffset {
+ CARD8 reqType; /* always RushReqCode */
+ CARD8 rushReqType; /* always X_RushStatusRegOffset */
+ CARD16 length B16;
+ CARD16 screen B16;
+ CARD16 pad B16;
+} xXF86RushStatusRegOffsetReq;
+#define sz_xXF86RushStatusRegOffsetReq 8
+
+typedef struct {
+ BYTE type; /* X_Reply */
+ BOOL pad1;
+ CARD16 sequenceNumber B16;
+ CARD32 length B32;
+ CARD32 offset B32; /* Offset of Rush status reg in mem */
+ CARD32 pad2 B32;
+ CARD32 pad3 B32;
+ CARD32 pad4 B32;
+ CARD32 pad5 B32;
+ CARD32 pad6 B32;
+} xXF86RushStatusRegOffsetReply;
+#define sz_xXF86RushStatusRegOffsetReply 32
+
+typedef struct _XF86RushAT3DEnableRegs {
+ CARD8 reqType; /* always RushReqCode */
+ CARD8 rushReqType; /* always X_RushAT3DEnableRegs */
+ CARD16 length B16;
+ CARD16 screen B16;
+ CARD16 pad B16;
+} xXF86RushAT3DEnableRegsReq;
+#define sz_xXF86RushAT3DEnableRegsReq 8
+
+typedef struct _XF86RushAT3DDisableRegs {
+ CARD8 reqType; /* always RushReqCode */
+ CARD8 rushReqType; /* always X_RushAT3DDisableRegs */
+ CARD16 length B16;
+ CARD16 screen B16;
+ CARD16 pad B16;
+} xXF86RushAT3DDisableRegsReq;
+#define sz_xXF86RushAT3DDisableRegsReq 8
+
+#endif /* _XF86RUSHSTR_H_ */