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 _LINUX_TEGRAFB_H_
     20 #define _LINUX_TEGRAFB_H_
     21 #include <linux/fb.h>
     22 #include <linux/types.h>
     23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     24 #include <asm/ioctl.h>
     25 #define TEGRA_FB_WIN_FMT_P1 0
     26 #define TEGRA_FB_WIN_FMT_P2 1
     27 #define TEGRA_FB_WIN_FMT_P4 2
     28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     29 #define TEGRA_FB_WIN_FMT_P8 3
     30 #define TEGRA_FB_WIN_FMT_B4G4R4A4 4
     31 #define TEGRA_FB_WIN_FMT_B5G5R5A 5
     32 #define TEGRA_FB_WIN_FMT_B5G6R5 6
     33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     34 #define TEGRA_FB_WIN_FMT_AB5G5R5 7
     35 #define TEGRA_FB_WIN_FMT_B8G8R8A8 12
     36 #define TEGRA_FB_WIN_FMT_R8G8B8A8 13
     37 #define TEGRA_FB_WIN_FMT_B6x2G6x2R6x2A8 14
     38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     39 #define TEGRA_FB_WIN_FMT_R6x2G6x2B6x2A8 15
     40 #define TEGRA_FB_WIN_FMT_YCbCr422 16
     41 #define TEGRA_FB_WIN_FMT_YUV422 17
     42 #define TEGRA_FB_WIN_FMT_YCbCr420P 18
     43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     44 #define TEGRA_FB_WIN_FMT_YUV420P 19
     45 #define TEGRA_FB_WIN_FMT_YCbCr422P 20
     46 #define TEGRA_FB_WIN_FMT_YUV422P 21
     47 #define TEGRA_FB_WIN_FMT_YCbCr422R 22
     48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     49 #define TEGRA_FB_WIN_FMT_YUV422R 23
     50 #define TEGRA_FB_WIN_FMT_YCbCr422RA 24
     51 #define TEGRA_FB_WIN_FMT_YUV422RA 25
     52 #define TEGRA_FB_WIN_BLEND_NONE 0
     53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     54 #define TEGRA_FB_WIN_BLEND_PREMULT 1
     55 #define TEGRA_FB_WIN_BLEND_COVERAGE 2
     56 #define TEGRA_FB_WIN_FLAG_INVERT_H (1 << 0)
     57 #define TEGRA_FB_WIN_FLAG_INVERT_V (1 << 1)
     58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     59 #define TEGRA_FB_WIN_FLAG_TILED (1 << 2)
     60 struct tegra_fb_windowattr {
     61  __s32 index;
     62  __u32 buff_id;
     63 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     64  __u32 flags;
     65  __u32 blend;
     66  __u32 offset;
     67  __u32 offset_u;
     68 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     69  __u32 offset_v;
     70  __u32 stride;
     71  __u32 stride_uv;
     72  __u32 pixformat;
     73 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     74  __u32 x;
     75  __u32 y;
     76  __u32 w;
     77  __u32 h;
     78 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     79  __u32 out_x;
     80  __u32 out_y;
     81  __u32 out_w;
     82  __u32 out_h;
     83 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     84  __u32 z;
     85  __u32 pre_syncpt_id;
     86  __u32 pre_syncpt_val;
     87 };
     88 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     89 #define TEGRA_FB_FLIP_N_WINDOWS 3
     90 struct tegra_fb_flip_args {
     91  struct tegra_fb_windowattr win[TEGRA_FB_FLIP_N_WINDOWS];
     92  __u32 post_syncpt_id;
     93 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     94  __u32 post_syncpt_val;
     95 };
     96 struct tegra_fb_modedb {
     97  struct fb_var_screeninfo *modedb;
     98 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     99  __u32 modedb_len;
    100 };
    101 #define FBIO_TEGRA_SET_NVMAP_FD _IOW('F', 0x40, __u32)
    102 #define FBIO_TEGRA_FLIP _IOW('F', 0x41, struct tegra_fb_flip_args)
    103 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    104 #define FBIO_TEGRA_GET_MODEDB _IOWR('F', 0x42, struct tegra_fb_modedb)
    105 #endif
    106