Elliott Hughes | 180edef | 2023-11-02 00:08:05 +0000 | [diff] [blame] | 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 | */ |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 7 | #ifndef _DRM_SAREA_H_ |
| 8 | #define _DRM_SAREA_H_ |
Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 9 | #include "drm.h" |
| 10 | #ifdef __cplusplus |
Christopher Ferris | 48fe0ae | 2019-01-10 15:59:33 -0800 | [diff] [blame] | 11 | extern "C" { |
Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 12 | #endif |
| 13 | #ifdef __alpha__ |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 14 | #define SAREA_MAX 0x2000U |
| 15 | #elif defined(__mips__) |
| 16 | #define SAREA_MAX 0x4000U |
| 17 | #elif defined(__ia64__) |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 18 | #define SAREA_MAX 0x10000U |
| 19 | #else |
| 20 | #define SAREA_MAX 0x2000U |
| 21 | #endif |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 22 | #define SAREA_MAX_DRAWABLES 256 |
| 23 | #define SAREA_DRAWABLE_CLAIMED_ENTRY 0x80000000 |
| 24 | struct drm_sarea_drawable { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 25 | unsigned int stamp; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 26 | unsigned int flags; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 27 | }; |
| 28 | struct drm_sarea_frame { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 29 | unsigned int x; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 30 | unsigned int y; |
| 31 | unsigned int width; |
| 32 | unsigned int height; |
| 33 | unsigned int fullscreen; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 34 | }; |
| 35 | struct drm_sarea { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 36 | struct drm_hw_lock lock; |
| 37 | struct drm_hw_lock drawable_lock; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 38 | struct drm_sarea_drawable drawableTable[SAREA_MAX_DRAWABLES]; |
| 39 | struct drm_sarea_frame frame; |
| 40 | drm_context_t dummy_context; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 41 | }; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 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; |
Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 45 | #ifdef __cplusplus |
Christopher Ferris | 48fe0ae | 2019-01-10 15:59:33 -0800 | [diff] [blame] | 46 | } |
Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 47 | #endif |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 48 | #endif |