blob: a4a74af56a773d68668e1996c99db8a44711f264 [file] [log] [blame]
Ben Cheng655a7c02013-10-16 16:09:24 -07001/****************************************************************************
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_
Christopher Ferris106b3a82016-08-24 12:15:38 -070021#include "drm.h"
22#ifdef __cplusplus
Ben Cheng655a7c02013-10-16 16:09:24 -070023/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris106b3a82016-08-24 12:15:38 -070024#endif
25#ifdef __alpha__
Ben Cheng655a7c02013-10-16 16:09:24 -070026#define SAREA_MAX 0x2000U
27#elif defined(__mips__)
Christopher Ferris106b3a82016-08-24 12:15:38 -070028/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070029#define SAREA_MAX 0x4000U
30#elif defined(__ia64__)
Ben Cheng655a7c02013-10-16 16:09:24 -070031#define SAREA_MAX 0x10000U
32#else
Christopher Ferris106b3a82016-08-24 12:15:38 -070033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070034#define SAREA_MAX 0x2000U
35#endif
Ben Cheng655a7c02013-10-16 16:09:24 -070036#define SAREA_MAX_DRAWABLES 256
37#define SAREA_DRAWABLE_CLAIMED_ENTRY 0x80000000
Christopher Ferris106b3a82016-08-24 12:15:38 -070038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070039struct drm_sarea_drawable {
Tao Baod7db5942015-01-28 10:07:51 -080040 unsigned int stamp;
Tao Baod7db5942015-01-28 10:07:51 -080041 unsigned int flags;
Ben Cheng655a7c02013-10-16 16:09:24 -070042};
Christopher Ferris106b3a82016-08-24 12:15:38 -070043/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070044struct drm_sarea_frame {
Tao Baod7db5942015-01-28 10:07:51 -080045 unsigned int x;
Tao Baod7db5942015-01-28 10:07:51 -080046 unsigned int y;
47 unsigned int width;
Christopher Ferris106b3a82016-08-24 12:15:38 -070048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080049 unsigned int height;
50 unsigned int fullscreen;
Ben Cheng655a7c02013-10-16 16:09:24 -070051};
52struct drm_sarea {
Christopher Ferris106b3a82016-08-24 12:15:38 -070053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080054 struct drm_hw_lock lock;
55 struct drm_hw_lock drawable_lock;
Tao Baod7db5942015-01-28 10:07:51 -080056 struct drm_sarea_drawable drawableTable[SAREA_MAX_DRAWABLES];
57 struct drm_sarea_frame frame;
Christopher Ferris106b3a82016-08-24 12:15:38 -070058/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080059 drm_context_t dummy_context;
Ben Cheng655a7c02013-10-16 16:09:24 -070060};
Ben Cheng655a7c02013-10-16 16:09:24 -070061typedef struct drm_sarea_drawable drm_sarea_drawable_t;
62typedef struct drm_sarea_frame drm_sarea_frame_t;
Christopher Ferris106b3a82016-08-24 12:15:38 -070063/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070064typedef struct drm_sarea drm_sarea_t;
Christopher Ferris106b3a82016-08-24 12:15:38 -070065#ifdef __cplusplus
66#endif
Ben Cheng655a7c02013-10-16 16:09:24 -070067#endif
68/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */