1/*
2 * This header was generated from the Linux kernel headers by update_headers.py,
3 * to provide necessary information from kernel to userspace, such as constants,
4 * structures, and macros, and thus, contains no copyrightable information.
5 */
6#ifndef _DRM_SAREA_H_
7#define _DRM_SAREA_H_
8#include "drm.h"
9#if defined(__cplusplus)
10extern "C" {
11#endif
12#if defined(__alpha__)
13#define SAREA_MAX                       0x2000U
14#elif defined(__mips__)
15#define SAREA_MAX                       0x4000U
16#elif defined(__ia64__)
17#define SAREA_MAX                       0x10000U
18#else
19#define SAREA_MAX                       0x2000U
20#endif
21#define SAREA_MAX_DRAWABLES		256
22#define SAREA_DRAWABLE_CLAIMED_ENTRY    0x80000000
23struct drm_sarea_drawable {
24	unsigned int stamp;
25	unsigned int flags;
26};
27struct drm_sarea_frame {
28	unsigned int x;
29	unsigned int y;
30	unsigned int width;
31	unsigned int height;
32	unsigned int fullscreen;
33};
34struct drm_sarea {
35
36	struct drm_hw_lock lock;
37
38	struct drm_hw_lock drawable_lock;
39	struct drm_sarea_drawable drawableTable[SAREA_MAX_DRAWABLES];
40	struct drm_sarea_frame frame;
41	drm_context_t dummy_context;
42};
43#ifndef __KERNEL__
44typedef struct drm_sarea_drawable drm_sarea_drawable_t;
45typedef struct drm_sarea_frame drm_sarea_frame_t;
46typedef struct drm_sarea drm_sarea_t;
47#endif
48#if defined(__cplusplus)
49}
50#endif
51#endif
52