1 /****************************************************************************
2  ****************************************************************************
3  ***
4  ***   This header was automatically generated from a Linux kernel header
5  ***   of the same name, to make information necessary for userspace to
6  ***   call into the kernel available to libc.  It contains only constants,
7  ***   structures, and macros generated from the original header, and thus,
8  ***   contains no copyrightable information.
9  ***
10  ***   To edit the content of this header, modify the corresponding
11  ***   source file (e.g. under external/kernel-headers/original/) then
12  ***   run bionic/libc/kernel/tools/update_all.py
13  ***
14  ***   Any manual change here will be lost the next time this script will
15  ***   be run. You've been warned!
16  ***
17  ****************************************************************************
18  ****************************************************************************/
19 #ifndef _DRM_SAREA_H_
20 #define _DRM_SAREA_H_
21 #include <drm/drm.h>
22 #ifdef __alpha__
23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24 #define SAREA_MAX 0x2000U
25 #elif defined(__mips__)
26 #define SAREA_MAX 0x4000U
27 #elif defined(__ia64__)
28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29 #define SAREA_MAX 0x10000U
30 #else
31 #define SAREA_MAX 0x2000U
32 #endif
33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34 #define SAREA_MAX_DRAWABLES 256
35 #define SAREA_DRAWABLE_CLAIMED_ENTRY 0x80000000
36 struct drm_sarea_drawable {
37  unsigned int stamp;
38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39  unsigned int flags;
40 };
41 struct drm_sarea_frame {
42  unsigned int x;
43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44  unsigned int y;
45  unsigned int width;
46  unsigned int height;
47  unsigned int fullscreen;
48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49 };
50 struct drm_sarea {
51  struct drm_hw_lock lock;
52  struct drm_hw_lock drawable_lock;
53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54  struct drm_sarea_drawable drawableTable[SAREA_MAX_DRAWABLES];
55  struct drm_sarea_frame frame;
56  drm_context_t dummy_context;
57 };
58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59 typedef struct drm_sarea_drawable drm_sarea_drawable_t;
60 typedef struct drm_sarea_frame drm_sarea_frame_t;
61 typedef struct drm_sarea drm_sarea_t;
62 #endif
63 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64