blob: abe919184929135354ef49c64249ee89ebeec88c [file] [log] [blame]
Elliott Hughes180edef2023-11-02 00:08:05 +00001/*
2 * This file is auto-generated. Modifications will be lost.
3 *
4 * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/
5 * for more information.
6 */
Ben Cheng655a7c02013-10-16 16:09:24 -07007#ifndef _DRM_SAREA_H_
8#define _DRM_SAREA_H_
Christopher Ferris106b3a82016-08-24 12:15:38 -07009#include "drm.h"
10#ifdef __cplusplus
Christopher Ferris48fe0ae2019-01-10 15:59:33 -080011extern "C" {
Christopher Ferris106b3a82016-08-24 12:15:38 -070012#endif
13#ifdef __alpha__
Ben Cheng655a7c02013-10-16 16:09:24 -070014#define SAREA_MAX 0x2000U
15#elif defined(__mips__)
16#define SAREA_MAX 0x4000U
17#elif defined(__ia64__)
Ben Cheng655a7c02013-10-16 16:09:24 -070018#define SAREA_MAX 0x10000U
19#else
20#define SAREA_MAX 0x2000U
21#endif
Ben Cheng655a7c02013-10-16 16:09:24 -070022#define SAREA_MAX_DRAWABLES 256
23#define SAREA_DRAWABLE_CLAIMED_ENTRY 0x80000000
24struct drm_sarea_drawable {
Tao Baod7db5942015-01-28 10:07:51 -080025 unsigned int stamp;
Tao Baod7db5942015-01-28 10:07:51 -080026 unsigned int flags;
Ben Cheng655a7c02013-10-16 16:09:24 -070027};
28struct drm_sarea_frame {
Tao Baod7db5942015-01-28 10:07:51 -080029 unsigned int x;
Tao Baod7db5942015-01-28 10:07:51 -080030 unsigned int y;
31 unsigned int width;
32 unsigned int height;
33 unsigned int fullscreen;
Ben Cheng655a7c02013-10-16 16:09:24 -070034};
35struct drm_sarea {
Tao Baod7db5942015-01-28 10:07:51 -080036 struct drm_hw_lock lock;
37 struct drm_hw_lock drawable_lock;
Tao Baod7db5942015-01-28 10:07:51 -080038 struct drm_sarea_drawable drawableTable[SAREA_MAX_DRAWABLES];
39 struct drm_sarea_frame frame;
40 drm_context_t dummy_context;
Ben Cheng655a7c02013-10-16 16:09:24 -070041};
Ben Cheng655a7c02013-10-16 16:09:24 -070042typedef struct drm_sarea_drawable drm_sarea_drawable_t;
43typedef struct drm_sarea_frame drm_sarea_frame_t;
44typedef struct drm_sarea drm_sarea_t;
Christopher Ferris106b3a82016-08-24 12:15:38 -070045#ifdef __cplusplus
Christopher Ferris48fe0ae2019-01-10 15:59:33 -080046}
Christopher Ferris106b3a82016-08-24 12:15:38 -070047#endif
Ben Cheng655a7c02013-10-16 16:09:24 -070048#endif