blob: a0c7f3a836e15a19e718609344d2e13346556208 [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
Christopher Ferris48fe0ae2019-01-10 15:59:33 -080023extern "C" {
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__)
28#define SAREA_MAX 0x4000U
29#elif defined(__ia64__)
Ben Cheng655a7c02013-10-16 16:09:24 -070030#define SAREA_MAX 0x10000U
31#else
32#define SAREA_MAX 0x2000U
33#endif
Ben Cheng655a7c02013-10-16 16:09:24 -070034#define SAREA_MAX_DRAWABLES 256
35#define SAREA_DRAWABLE_CLAIMED_ENTRY 0x80000000
36struct drm_sarea_drawable {
Tao Baod7db5942015-01-28 10:07:51 -080037 unsigned int stamp;
Tao Baod7db5942015-01-28 10:07:51 -080038 unsigned int flags;
Ben Cheng655a7c02013-10-16 16:09:24 -070039};
40struct drm_sarea_frame {
Tao Baod7db5942015-01-28 10:07:51 -080041 unsigned int x;
Tao Baod7db5942015-01-28 10:07:51 -080042 unsigned int y;
43 unsigned int width;
44 unsigned int height;
45 unsigned int fullscreen;
Ben Cheng655a7c02013-10-16 16:09:24 -070046};
47struct drm_sarea {
Tao Baod7db5942015-01-28 10:07:51 -080048 struct drm_hw_lock lock;
49 struct drm_hw_lock drawable_lock;
Tao Baod7db5942015-01-28 10:07:51 -080050 struct drm_sarea_drawable drawableTable[SAREA_MAX_DRAWABLES];
51 struct drm_sarea_frame frame;
52 drm_context_t dummy_context;
Ben Cheng655a7c02013-10-16 16:09:24 -070053};
Ben Cheng655a7c02013-10-16 16:09:24 -070054typedef struct drm_sarea_drawable drm_sarea_drawable_t;
55typedef struct drm_sarea_frame drm_sarea_frame_t;
56typedef struct drm_sarea drm_sarea_t;
Christopher Ferris106b3a82016-08-24 12:15:38 -070057#ifdef __cplusplus
Christopher Ferris48fe0ae2019-01-10 15:59:33 -080058}
Christopher Ferris106b3a82016-08-24 12:15:38 -070059#endif
Ben Cheng655a7c02013-10-16 16:09:24 -070060#endif