summaryrefslogtreecommitdiff
path: root/src/svga_struct.h
blob: fe4f0bfc5878f34d86530c29201523facc8599c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/* **********************************************************
 * Copyright (C) 1998-2000 VMware, Inc.
 * All Rights Reserved
 * **********************************************************/

#ifndef _SVGA_STRUCT_H_
#define _SVGA_STRUCT_H_

#define INCLUDE_ALLOW_USERLEVEL
#define INCLUDE_ALLOW_MONITOR
#include "includeCheck.h"

 /*
  * Offscreen memory surface structure
  *
  */

enum SVGASurfaceVersion {
   SVGA_SURFACE_VERSION_1 = 1  /* Initial version... */
};

typedef struct _SVGASurface {
   uint32   size;             /* Size of the structure */
   uint32   version;          /* Version of this surface structure.  */
   uint32   bpp;              /* Format of the surface */
   uint32   width;            /* Width of the surface */
   uint32   height;           /* Height of the surface */
   uint32   pitch;            /* Pitch of the surface */
   volatile uint32   numQueued;        /* Number of times this bitmap has been queued */
   volatile uint32   numDequeued;      /* Number of times this bitmap has been dequeued */
   uint32   userData;         /* Driver defined data */
   uint32   dataOffset;       /* Offset to the data */
} SVGASurface;

typedef struct SVGAPoint {
    int16 x;
    int16 y;
} SVGAPoint;

#endif