XenevaOS
Loading...
Searching...
No Matches
drm_sarea.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: MIT */
9/*
10 * Copyright 2002 Tungsten Graphics, Inc., Cedar Park, Texas.
11 * All Rights Reserved.
12 */
13
14#ifndef _DRM_SAREA_H_
15#define _DRM_SAREA_H_
16
17#include "drm.h"
18
19#if defined(__cplusplus)
20extern "C" {
21#endif
22
23/* SAREA area needs to be at least a page */
24#if defined(__alpha__)
25#define SAREA_MAX 0x2000U
26#elif defined(__mips__)
27#define SAREA_MAX 0x4000U
28#elif defined(__ia64__)
29#define SAREA_MAX 0x10000U /* 64kB */
30#else
31/* Intel 830M driver needs at least 8k SAREA */
32#define SAREA_MAX 0x2000U
33#endif
34
36#define SAREA_MAX_DRAWABLES 256
37
38#define SAREA_DRAWABLE_CLAIMED_ENTRY 0x80000000
39
42 unsigned int stamp;
43 unsigned int flags;
44};
45
48 unsigned int x;
49 unsigned int y;
50 unsigned int width;
51 unsigned int height;
52 unsigned int fullscreen;
53};
54
65
66#ifndef __KERNEL__
69typedef struct drm_sarea drm_sarea_t;
70#endif
71
72#if defined(__cplusplus)
73}
74#endif
75
76#endif /* _DRM_SAREA_H_ */
unsigned int drm_context_t
Definition drm.h:65
#define SAREA_MAX_DRAWABLES
Definition drm_sarea.h:36
Definition drm.h:111
Definition drm_sarea.h:41
unsigned int flags
Definition drm_sarea.h:43
unsigned int stamp
Definition drm_sarea.h:42
Definition drm_sarea.h:47
unsigned int width
Definition drm_sarea.h:50
unsigned int height
Definition drm_sarea.h:51
unsigned int y
Definition drm_sarea.h:49
unsigned int x
Definition drm_sarea.h:48
unsigned int fullscreen
Definition drm_sarea.h:52
Definition drm_sarea.h:56
struct drm_sarea_drawable drawableTable[SAREA_MAX_DRAWABLES]
Definition drm_sarea.h:61
struct drm_sarea_frame frame
Definition drm_sarea.h:62
struct drm_hw_lock drawable_lock
Definition drm_sarea.h:60
drm_context_t dummy_context
Definition drm_sarea.h:63
struct drm_hw_lock lock
Definition drm_sarea.h:58