Home | History | Annotate | Download | only in drm
      1 /****************************************************************************
      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_
     21 #include "drm.h"
     22 #ifdef __cplusplus
     23 extern "C" {
     24 #endif
     25 #ifdef __alpha__
     26 #define SAREA_MAX 0x2000U
     27 #elif defined(__mips__)
     28 #define SAREA_MAX 0x4000U
     29 #elif defined(__ia64__)
     30 #define SAREA_MAX 0x10000U
     31 #else
     32 #define SAREA_MAX 0x2000U
     33 #endif
     34 #define SAREA_MAX_DRAWABLES 256
     35 #define SAREA_DRAWABLE_CLAIMED_ENTRY 0x80000000
     36 struct drm_sarea_drawable {
     37   unsigned int stamp;
     38   unsigned int flags;
     39 };
     40 struct drm_sarea_frame {
     41   unsigned int x;
     42   unsigned int y;
     43   unsigned int width;
     44   unsigned int height;
     45   unsigned int fullscreen;
     46 };
     47 struct drm_sarea {
     48   struct drm_hw_lock lock;
     49   struct drm_hw_lock drawable_lock;
     50   struct drm_sarea_drawable drawableTable[SAREA_MAX_DRAWABLES];
     51   struct drm_sarea_frame frame;
     52   drm_context_t dummy_context;
     53 };
     54 typedef struct drm_sarea_drawable drm_sarea_drawable_t;
     55 typedef struct drm_sarea_frame drm_sarea_frame_t;
     56 typedef struct drm_sarea drm_sarea_t;
     57 #ifdef __cplusplus
     58 }
     59 #endif
     60 #endif
     61