5
* \author Kevin E. Martin <kevin@precisioninsight.com>
6
* \author Jens Owen <jens@tungstengraphics.com>
7
* \author Rickard E. (Rik) Faith <faith@valinux.com>
11
* Copyright 1998-1999 Precision Insight, Inc., Cedar Park, Texas.
12
* Copyright 2000 VA Linux Systems, Inc.
13
* All Rights Reserved.
15
* Permission is hereby granted, free of charge, to any person obtaining a
16
* copy of this software and associated documentation files (the
17
* "Software"), to deal in the Software without restriction, including
18
* without limitation the rights to use, copy, modify, merge, publish,
19
* distribute, sub license, and/or sell copies of the Software, and to
20
* permit persons to whom the Software is furnished to do so, subject to
21
* the following conditions:
23
* The above copyright notice and this permission notice (including the
24
* next paragraph) shall be included in all copies or substantial portions
27
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
28
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
29
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
30
* IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR
31
* ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
32
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
33
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
42
/* SAREA area needs to be at least a page */
43
#if defined(__alpha__)
44
#define SAREA_MAX 0x2000
45
#elif defined(__ia64__)
46
#define SAREA_MAX 0x10000 /* 64kB */
48
/* Intel 830M driver needs at least 8k SAREA */
49
#define SAREA_MAX 0x2000
52
#define SAREA_MAX_DRAWABLES 256
54
#define SAREA_DRAWABLE_CLAIMED_ENTRY 0x80000000
57
* SAREA per drawable information.
61
typedef struct _XF86DRISAREADrawable {
64
} XF86DRISAREADrawableRec, *XF86DRISAREADrawablePtr;
67
* SAREA frame information.
71
typedef struct _XF86DRISAREAFrame {
76
unsigned int fullscreen;
77
} XF86DRISAREAFrameRec, *XF86DRISAREAFramePtr;
82
typedef struct _XF86DRISAREA {
83
/** first thing is always the DRM locking structure */
85
/** \todo Use readers/writer lock for drawable_lock */
86
drmLock drawable_lock;
87
XF86DRISAREADrawableRec drawableTable[SAREA_MAX_DRAWABLES];
88
XF86DRISAREAFrameRec frame;
89
drm_context_t dummy_context;
90
} XF86DRISAREARec, *XF86DRISAREAPtr;