Home | History | Annotate | Download | only in linux
      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 _MSM_MDP_H_
     20 #define _MSM_MDP_H_
     21 #include <linux/types.h>
     22 #define MSMFB_IOCTL_MAGIC 'm'
     23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     24 #define MSMFB_GRP_DISP _IOW(MSMFB_IOCTL_MAGIC, 1, unsigned int)
     25 #define MSMFB_BLIT _IOW(MSMFB_IOCTL_MAGIC, 2, unsigned int)
     26 enum {
     27  MDP_RGB_565,
     28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     29  MDP_XRGB_8888,
     30  MDP_Y_CBCR_H2V2,
     31  MDP_ARGB_8888,
     32  MDP_RGB_888,
     33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     34  MDP_Y_CRCB_H2V2,
     35  MDP_YCRYCB_H2V1,
     36  MDP_Y_CRCB_H2V1,
     37  MDP_Y_CBCR_H2V1,
     38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     39  MDP_RGBA_8888,
     40  MDP_BGRA_8888,
     41  MDP_RGBX_8888,
     42  MDP_IMGTYPE_LIMIT
     43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     44 };
     45 enum {
     46  PMEM_IMG,
     47  FB_IMG,
     48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     49 };
     50 #define MDP_ROT_NOP 0
     51 #define MDP_FLIP_LR 0x1
     52 #define MDP_FLIP_UD 0x2
     53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     54 #define MDP_ROT_90 0x4
     55 #define MDP_ROT_180 (MDP_FLIP_UD|MDP_FLIP_LR)
     56 #define MDP_ROT_270 (MDP_ROT_90|MDP_FLIP_UD|MDP_FLIP_LR)
     57 #define MDP_DITHER 0x8
     58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     59 #define MDP_BLUR 0x10
     60 #define MDP_BLEND_FG_PREMULT 0x20000
     61 #define MDP_TRANSP_NOP 0xffffffff
     62 #define MDP_ALPHA_NOP 0xff
     63 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     64 struct mdp_rect {
     65  uint32_t x;
     66  uint32_t y;
     67  uint32_t w;
     68 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     69  uint32_t h;
     70 };
     71 struct mdp_img {
     72  uint32_t width;
     73 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     74  uint32_t height;
     75  uint32_t format;
     76  uint32_t offset;
     77  int memory_id;
     78 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     79 };
     80 struct mdp_blit_req {
     81  struct mdp_img src;
     82  struct mdp_img dst;
     83 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     84  struct mdp_rect src_rect;
     85  struct mdp_rect dst_rect;
     86  uint32_t alpha;
     87  uint32_t transp_mask;
     88 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     89  uint32_t flags;
     90 };
     91 struct mdp_blit_req_list {
     92  uint32_t count;
     93 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     94  struct mdp_blit_req req[];
     95 };
     96 #endif
     97