blob: 8bdf464e34ba74f2e9b8e45d3511092d0713a801 [file] [log] [blame]
Rebecca Schultz Zavin45fe7a42010-08-06 19:14:45 -07001/****************************************************************************
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 ***
Ben Cheng654325d2012-03-07 21:13:49 -080010 *** 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 ***
Rebecca Schultz Zavin45fe7a42010-08-06 19:14:45 -070017 ****************************************************************************
18 ****************************************************************************/
19#ifndef _LINUX_TEGRAFB_H_
20#define _LINUX_TEGRAFB_H_
Erik Gilling1ec041f2010-10-27 17:43:36 -070021#include <linux/fb.h>
Rebecca Schultz Zavin45fe7a42010-08-06 19:14:45 -070022#include <linux/types.h>
Ben Cheng654325d2012-03-07 21:13:49 -080023/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Rebecca Schultz Zavin45fe7a42010-08-06 19:14:45 -070024#include <asm/ioctl.h>
Erik Gilling614628b2010-09-08 15:29:08 -070025#define TEGRA_FB_WIN_FMT_P1 0
26#define TEGRA_FB_WIN_FMT_P2 1
27#define TEGRA_FB_WIN_FMT_P4 2
Ben Cheng654325d2012-03-07 21:13:49 -080028/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Erik Gilling614628b2010-09-08 15:29:08 -070029#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
Ben Cheng654325d2012-03-07 21:13:49 -080033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Erik Gilling614628b2010-09-08 15:29:08 -070034#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
Ben Cheng654325d2012-03-07 21:13:49 -080038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Erik Gilling614628b2010-09-08 15:29:08 -070039#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
Ben Cheng654325d2012-03-07 21:13:49 -080043/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Erik Gilling614628b2010-09-08 15:29:08 -070044#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
Ben Cheng654325d2012-03-07 21:13:49 -080048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Erik Gilling614628b2010-09-08 15:29:08 -070049#define TEGRA_FB_WIN_FMT_YUV422R 23
50#define TEGRA_FB_WIN_FMT_YCbCr422RA 24
51#define TEGRA_FB_WIN_FMT_YUV422RA 25
Erik Gilling614628b2010-09-08 15:29:08 -070052#define TEGRA_FB_WIN_BLEND_NONE 0
Ben Cheng654325d2012-03-07 21:13:49 -080053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Erik Gilling614628b2010-09-08 15:29:08 -070054#define TEGRA_FB_WIN_BLEND_PREMULT 1
55#define TEGRA_FB_WIN_BLEND_COVERAGE 2
Ben Cheng654325d2012-03-07 21:13:49 -080056#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)
Erik Gilling614628b2010-09-08 15:29:08 -070060struct tegra_fb_windowattr {
61 __s32 index;
Rebecca Schultz Zavin45fe7a42010-08-06 19:14:45 -070062 __u32 buff_id;
Ben Cheng654325d2012-03-07 21:13:49 -080063/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Michael I. Golda7f976c2011-05-13 15:23:26 -070064 __u32 flags;
Erik Gilling614628b2010-09-08 15:29:08 -070065 __u32 blend;
66 __u32 offset;
Erik Gilling6c57fbf2010-11-18 16:10:50 -080067 __u32 offset_u;
Ben Cheng654325d2012-03-07 21:13:49 -080068/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Erik Gilling6c57fbf2010-11-18 16:10:50 -080069 __u32 offset_v;
Erik Gilling614628b2010-09-08 15:29:08 -070070 __u32 stride;
Erik Gilling6c57fbf2010-11-18 16:10:50 -080071 __u32 stride_uv;
Erik Gilling614628b2010-09-08 15:29:08 -070072 __u32 pixformat;
Ben Cheng654325d2012-03-07 21:13:49 -080073/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Erik Gilling614628b2010-09-08 15:29:08 -070074 __u32 x;
75 __u32 y;
76 __u32 w;
77 __u32 h;
Ben Cheng654325d2012-03-07 21:13:49 -080078/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Erik Gilling614628b2010-09-08 15:29:08 -070079 __u32 out_x;
80 __u32 out_y;
81 __u32 out_w;
82 __u32 out_h;
Ben Cheng654325d2012-03-07 21:13:49 -080083/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Erik Gilling614628b2010-09-08 15:29:08 -070084 __u32 z;
Rebecca Schultz Zavin45fe7a42010-08-06 19:14:45 -070085 __u32 pre_syncpt_id;
86 __u32 pre_syncpt_val;
Erik Gilling614628b2010-09-08 15:29:08 -070087};
Ben Cheng654325d2012-03-07 21:13:49 -080088/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Erik Gilling614628b2010-09-08 15:29:08 -070089#define TEGRA_FB_FLIP_N_WINDOWS 3
Erik Gilling614628b2010-09-08 15:29:08 -070090struct tegra_fb_flip_args {
91 struct tegra_fb_windowattr win[TEGRA_FB_FLIP_N_WINDOWS];
Rebecca Schultz Zavin45fe7a42010-08-06 19:14:45 -070092 __u32 post_syncpt_id;
Ben Cheng654325d2012-03-07 21:13:49 -080093/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Rebecca Schultz Zavin45fe7a42010-08-06 19:14:45 -070094 __u32 post_syncpt_val;
95};
Erik Gilling1ec041f2010-10-27 17:43:36 -070096struct tegra_fb_modedb {
97 struct fb_var_screeninfo *modedb;
Ben Cheng654325d2012-03-07 21:13:49 -080098/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Erik Gilling1ec041f2010-10-27 17:43:36 -070099 __u32 modedb_len;
100};
Rebecca Schultz Zavin45fe7a42010-08-06 19:14:45 -0700101#define FBIO_TEGRA_SET_NVMAP_FD _IOW('F', 0x40, __u32)
102#define FBIO_TEGRA_FLIP _IOW('F', 0x41, struct tegra_fb_flip_args)
Ben Cheng654325d2012-03-07 21:13:49 -0800103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Erik Gilling1ec041f2010-10-27 17:43:36 -0700104#define FBIO_TEGRA_GET_MODEDB _IOWR('F', 0x42, struct tegra_fb_modedb)
Rebecca Schultz Zavin45fe7a42010-08-06 19:14:45 -0700105#endif