1 /* **********************************************************
2  * Copyright (C) 1998-2000 VMware, Inc.
3  * All Rights Reserved
4  * **********************************************************/
5 
6 #ifndef _SVGA_STRUCT_H_
7 #define _SVGA_STRUCT_H_
8 
9 #define INCLUDE_ALLOW_USERLEVEL
10 #define INCLUDE_ALLOW_MONITOR
11 #include "includeCheck.h"
12 
13  /*
14   * Offscreen memory surface structure
15   *
16   */
17 
18 enum SVGASurfaceVersion {
19    SVGA_SURFACE_VERSION_1 = 1  /* Initial version... */
20 };
21 
22 typedef struct _SVGASurface {
23    uint32   size;             /* Size of the structure */
24    uint32   version;          /* Version of this surface structure.  */
25    uint32   bpp;              /* Format of the surface */
26    uint32   width;            /* Width of the surface */
27    uint32   height;           /* Height of the surface */
28    uint32   pitch;            /* Pitch of the surface */
29    volatile uint32   numQueued;        /* Number of times this bitmap has been queued */
30    volatile uint32   numDequeued;      /* Number of times this bitmap has been dequeued */
31    uint32   userData;         /* Driver defined data */
32    uint32   dataOffset;       /* Offset to the data */
33 } SVGASurface;
34 
35 typedef struct SVGAPoint {
36     int16 x;
37     int16 y;
38 } SVGAPoint;
39 
40 #endif
41