16df26cacSmrg/* **********************************************************
26df26cacSmrg * Copyright (C) 1998-2000 VMware, Inc.
36df26cacSmrg * All Rights Reserved
46df26cacSmrg * **********************************************************/
56df26cacSmrg
66df26cacSmrg#ifndef _SVGA_STRUCT_H_
76df26cacSmrg#define _SVGA_STRUCT_H_
86df26cacSmrg
96df26cacSmrg#define INCLUDE_ALLOW_USERLEVEL
106df26cacSmrg#define INCLUDE_ALLOW_MONITOR
116df26cacSmrg#include "includeCheck.h"
126df26cacSmrg
136df26cacSmrg /*
146df26cacSmrg  * Offscreen memory surface structure
156df26cacSmrg  *
166df26cacSmrg  */
176df26cacSmrg
186df26cacSmrgenum SVGASurfaceVersion {
196df26cacSmrg   SVGA_SURFACE_VERSION_1 = 1  /* Initial version... */
206df26cacSmrg};
216df26cacSmrg
226df26cacSmrgtypedef struct _SVGASurface {
236df26cacSmrg   uint32   size;             /* Size of the structure */
246df26cacSmrg   uint32   version;          /* Version of this surface structure.  */
256df26cacSmrg   uint32   bpp;              /* Format of the surface */
266df26cacSmrg   uint32   width;            /* Width of the surface */
276df26cacSmrg   uint32   height;           /* Height of the surface */
286df26cacSmrg   uint32   pitch;            /* Pitch of the surface */
296df26cacSmrg   volatile uint32   numQueued;        /* Number of times this bitmap has been queued */
306df26cacSmrg   volatile uint32   numDequeued;      /* Number of times this bitmap has been dequeued */
316df26cacSmrg   uint32   userData;         /* Driver defined data */
326df26cacSmrg   uint32   dataOffset;       /* Offset to the data */
336df26cacSmrg} SVGASurface;
346df26cacSmrg
356df26cacSmrgtypedef struct SVGAPoint {
366df26cacSmrg    int16 x;
376df26cacSmrg    int16 y;
386df26cacSmrg} SVGAPoint;
396df26cacSmrg
406df26cacSmrg#endif
41