Nuke device_ptr_t, USBBASEDEVICE, USBDEVNAME(), USBDEVUNIT(), USBGETSOFTC(),
[dragonfly/vkernel-mp.git] / sys / dev / drm / drm_sarea.h
blobff47f998d530186d2915f17cb69ae738e1cb055d
1 /* sarea.h -- SAREA definitions -*- linux-c -*-
3 * Copyright 2002 Tungsten Graphics, Inc., Cedar Park, Texas.
4 * All Rights Reserved.
6 * Permission is hereby granted, free of charge, to any person obtaining a
7 * copy of this software and associated documentation files (the "Software"),
8 * to deal in the Software without restriction, including without limitation
9 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
10 * and/or sell copies of the Software, and to permit persons to whom the
11 * Software is furnished to do so, subject to the following conditions:
13 * The above copyright notice and this permission notice (including the next
14 * paragraph) shall be included in all copies or substantial portions of the
15 * Software.
17 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
20 * TUNGSTEN GRAPHICS AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
21 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
22 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
23 * OTHER DEALINGS IN THE SOFTWARE.
25 * Authors:
26 * Michel Dänzer <michel@daenzer.net>
28 * $FreeBSD: src/sys/dev/drm/drm_sarea.h,v 1.1.2.1 2003/04/26 07:05:28 anholt Exp $
29 * $DragonFly: src/sys/dev/drm/drm_sarea.h,v 1.2 2003/06/17 06:28:24 dillon Exp $
32 #ifndef _DRM_SAREA_H_
33 #define _DRM_SAREA_H_
35 #define SAREA_MAX_DRAWABLES 256
37 typedef struct _drm_sarea_drawable_t {
38 unsigned int stamp;
39 unsigned int flags;
40 } drm_sarea_drawable_t;
42 typedef struct _dri_sarea_frame_t {
43 unsigned int x;
44 unsigned int y;
45 unsigned int width;
46 unsigned int height;
47 unsigned int fullscreen;
48 } drm_sarea_frame_t;
50 typedef struct _drm_sarea_t {
51 /* first thing is always the drm locking structure */
52 drm_hw_lock_t lock;
53 /* NOT_DONE: Use readers/writer lock for drawable_lock */
54 drm_hw_lock_t drawable_lock;
55 drm_sarea_drawable_t drawableTable[SAREA_MAX_DRAWABLES];
56 drm_sarea_frame_t frame;
57 drm_context_t dummy_context;
58 } drm_sarea_t;
60 #endif /* _DRM_SAREA_H_ */