blob: 27bb28686a9552e04f5056c95e81d03339e0e365 [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 ***
10 ****************************************************************************
11 ****************************************************************************/
12#ifndef _LINUX_TEGRAFB_H_
13#define _LINUX_TEGRAFB_H_
14
15#include <linux/types.h>
16#include <asm/ioctl.h>
17
Erik Gilling614628b2010-09-08 15:29:08 -070018#define TEGRA_FB_WIN_FMT_P1 0
19#define TEGRA_FB_WIN_FMT_P2 1
20#define TEGRA_FB_WIN_FMT_P4 2
21#define TEGRA_FB_WIN_FMT_P8 3
22#define TEGRA_FB_WIN_FMT_B4G4R4A4 4
23#define TEGRA_FB_WIN_FMT_B5G5R5A 5
24#define TEGRA_FB_WIN_FMT_B5G6R5 6
25#define TEGRA_FB_WIN_FMT_AB5G5R5 7
26#define TEGRA_FB_WIN_FMT_B8G8R8A8 12
27#define TEGRA_FB_WIN_FMT_R8G8B8A8 13
28#define TEGRA_FB_WIN_FMT_B6x2G6x2R6x2A8 14
29#define TEGRA_FB_WIN_FMT_R6x2G6x2B6x2A8 15
30#define TEGRA_FB_WIN_FMT_YCbCr422 16
31#define TEGRA_FB_WIN_FMT_YUV422 17
32#define TEGRA_FB_WIN_FMT_YCbCr420P 18
33#define TEGRA_FB_WIN_FMT_YUV420P 19
34#define TEGRA_FB_WIN_FMT_YCbCr422P 20
35#define TEGRA_FB_WIN_FMT_YUV422P 21
36#define TEGRA_FB_WIN_FMT_YCbCr422R 22
37#define TEGRA_FB_WIN_FMT_YUV422R 23
38#define TEGRA_FB_WIN_FMT_YCbCr422RA 24
39#define TEGRA_FB_WIN_FMT_YUV422RA 25
40
41#define TEGRA_FB_WIN_BLEND_NONE 0
42#define TEGRA_FB_WIN_BLEND_PREMULT 1
43#define TEGRA_FB_WIN_BLEND_COVERAGE 2
44
45struct tegra_fb_windowattr {
46 __s32 index;
Rebecca Schultz Zavin45fe7a42010-08-06 19:14:45 -070047 __u32 buff_id;
Erik Gilling614628b2010-09-08 15:29:08 -070048 __u32 blend;
49 __u32 offset;
50 __u32 stride;
51 __u32 pixformat;
52 __u32 x;
53 __u32 y;
54 __u32 w;
55 __u32 h;
56 __u32 out_x;
57 __u32 out_y;
58 __u32 out_w;
59 __u32 out_h;
60 __u32 z;
Rebecca Schultz Zavin45fe7a42010-08-06 19:14:45 -070061 __u32 pre_syncpt_id;
62 __u32 pre_syncpt_val;
Erik Gilling614628b2010-09-08 15:29:08 -070063};
64
65#define TEGRA_FB_FLIP_N_WINDOWS 3
66
67struct tegra_fb_flip_args {
68 struct tegra_fb_windowattr win[TEGRA_FB_FLIP_N_WINDOWS];
Rebecca Schultz Zavin45fe7a42010-08-06 19:14:45 -070069 __u32 post_syncpt_id;
70 __u32 post_syncpt_val;
71};
72
73#define FBIO_TEGRA_SET_NVMAP_FD _IOW('F', 0x40, __u32)
74#define FBIO_TEGRA_FLIP _IOW('F', 0x41, struct tegra_fb_flip_args)
75
76#endif
77