Delete all Trailing spaces in code.
[reactos.git] / reactos / dll / 3rdparty / mesa32 / include / GL / internal / sarea.h
1 /* $XFree86: xc/programs/Xserver/GL/dri/sarea.h,v 1.11 2002/10/30 12:52:03 alanh Exp $ */
2 /**
3 * \file sarea.h
4 * SAREA definitions.
5 *
6 * \author Kevin E. Martin <kevin@precisioninsight.com>
7 * \author Jens Owen <jens@tungstengraphics.com>
8 * \author Rickard E. (Rik) Faith <faith@valinux.com>
9 */
10
11 /*
12 * Copyright 1998-1999 Precision Insight, Inc., Cedar Park, Texas.
13 * Copyright 2000 VA Linux Systems, Inc.
14 * All Rights Reserved.
15 *
16 * Permission is hereby granted, free of charge, to any person obtaining a
17 * copy of this software and associated documentation files (the
18 * "Software"), to deal in the Software without restriction, including
19 * without limitation the rights to use, copy, modify, merge, publish,
20 * distribute, sub license, and/or sell copies of the Software, and to
21 * permit persons to whom the Software is furnished to do so, subject to
22 * the following conditions:
23 *
24 * The above copyright notice and this permission notice (including the
25 * next paragraph) shall be included in all copies or substantial portions
26 * of the Software.
27 *
28 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
29 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
30 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
31 * IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR
32 * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
33 * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
34 * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
35 */
36
37 /* $XFree86: xc/programs/Xserver/GL/dri/sarea.h,v 1.11 2002/10/30 12:52:03 alanh Exp $ */
38
39 #ifndef _SAREA_H_
40 #define _SAREA_H_
41
42 #include "xf86drm.h"
43
44 /* SAREA area needs to be at least a page */
45 #if defined(__alpha__)
46 #define SAREA_MAX 0x2000
47 #elif defined(__ia64__)
48 #define SAREA_MAX 0x10000 /* 64kB */
49 #else
50 /* Intel 830M driver needs at least 8k SAREA */
51 #define SAREA_MAX 0x2000
52 #endif
53
54 #define SAREA_MAX_DRAWABLES 256
55
56 #define SAREA_DRAWABLE_CLAIMED_ENTRY 0x80000000
57
58 /**
59 * SAREA per drawable information.
60 *
61 * \sa _XF86DRISAREA.
62 */
63 typedef struct _XF86DRISAREADrawable {
64 unsigned int stamp;
65 unsigned int flags;
66 } XF86DRISAREADrawableRec, *XF86DRISAREADrawablePtr;
67
68 /**
69 * SAREA frame information.
70 *
71 * \sa _XF86DRISAREA.
72 */
73 typedef struct _XF86DRISAREAFrame {
74 unsigned int x;
75 unsigned int y;
76 unsigned int width;
77 unsigned int height;
78 unsigned int fullscreen;
79 } XF86DRISAREAFrameRec, *XF86DRISAREAFramePtr;
80
81 /**
82 * SAREA definition.
83 */
84 typedef struct _XF86DRISAREA {
85 /** first thing is always the DRM locking structure */
86 drmLock lock;
87 /** \todo Use readers/writer lock for drawable_lock */
88 drmLock drawable_lock;
89 XF86DRISAREADrawableRec drawableTable[SAREA_MAX_DRAWABLES];
90 XF86DRISAREAFrameRec frame;
91 drm_context_t dummy_context;
92 } XF86DRISAREARec, *XF86DRISAREAPtr;
93
94 #endif