1 /* 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 */ 7 #ifndef _DRM_SAREA_H_ 8 #define _DRM_SAREA_H_ 9 #include "drm.h" 10 #ifdef __cplusplus 11 extern "C" { 12 #endif 13 #ifdef __alpha__ 14 #define SAREA_MAX 0x2000U 15 #elif defined(__mips__) 16 #define SAREA_MAX 0x4000U 17 #elif defined(__ia64__) 18 #define SAREA_MAX 0x10000U 19 #else 20 #define SAREA_MAX 0x2000U 21 #endif 22 #define SAREA_MAX_DRAWABLES 256 23 #define SAREA_DRAWABLE_CLAIMED_ENTRY 0x80000000 24 struct drm_sarea_drawable { 25 unsigned int stamp; 26 unsigned int flags; 27 }; 28 struct drm_sarea_frame { 29 unsigned int x; 30 unsigned int y; 31 unsigned int width; 32 unsigned int height; 33 unsigned int fullscreen; 34 }; 35 struct drm_sarea { 36 struct drm_hw_lock lock; 37 struct drm_hw_lock drawable_lock; 38 struct drm_sarea_drawable drawableTable[SAREA_MAX_DRAWABLES]; 39 struct drm_sarea_frame frame; 40 drm_context_t dummy_context; 41 }; 42 typedef struct drm_sarea_drawable drm_sarea_drawable_t; 43 typedef struct drm_sarea_frame drm_sarea_frame_t; 44 typedef struct drm_sarea drm_sarea_t; 45 #ifdef __cplusplus 46 } 47 #endif 48 #endif 49