diff options
| author | Erik Gilling <konkers@android.com> | 2010-09-08 15:29:08 -0700 |
|---|---|---|
| committer | Erik Gilling <konkers@android.com> | 2010-09-08 15:29:08 -0700 |
| commit | 614628b018543809734a4475650dae4bdd9aae24 (patch) | |
| tree | a456127a94a732345eba1e7c02e10b1d6f8c6028 /libc/kernel/common/linux/tegrafb.h | |
| parent | cee39c250cba21ed7e1a6eb33cf9d32f64f2b1fb (diff) | |
| download | bionic-614628b018543809734a4475650dae4bdd9aae24.zip bionic-614628b018543809734a4475650dae4bdd9aae24.tar.gz bionic-614628b018543809734a4475650dae4bdd9aae24.tar.bz2 | |
update linux/tegrafb.h
Change-Id: I5edab909e5fe491a95729aa89b2f37c02af6bcba
Diffstat (limited to 'libc/kernel/common/linux/tegrafb.h')
| -rw-r--r-- | libc/kernel/common/linux/tegrafb.h | 49 |
1 files changed, 48 insertions, 1 deletions
diff --git a/libc/kernel/common/linux/tegrafb.h b/libc/kernel/common/linux/tegrafb.h index 2985d61..27bb286 100644 --- a/libc/kernel/common/linux/tegrafb.h +++ b/libc/kernel/common/linux/tegrafb.h @@ -15,10 +15,57 @@ #include <linux/types.h> #include <asm/ioctl.h> -struct tegra_fb_flip_args { +#define TEGRA_FB_WIN_FMT_P1 0 +#define TEGRA_FB_WIN_FMT_P2 1 +#define TEGRA_FB_WIN_FMT_P4 2 +#define TEGRA_FB_WIN_FMT_P8 3 +#define TEGRA_FB_WIN_FMT_B4G4R4A4 4 +#define TEGRA_FB_WIN_FMT_B5G5R5A 5 +#define TEGRA_FB_WIN_FMT_B5G6R5 6 +#define TEGRA_FB_WIN_FMT_AB5G5R5 7 +#define TEGRA_FB_WIN_FMT_B8G8R8A8 12 +#define TEGRA_FB_WIN_FMT_R8G8B8A8 13 +#define TEGRA_FB_WIN_FMT_B6x2G6x2R6x2A8 14 +#define TEGRA_FB_WIN_FMT_R6x2G6x2B6x2A8 15 +#define TEGRA_FB_WIN_FMT_YCbCr422 16 +#define TEGRA_FB_WIN_FMT_YUV422 17 +#define TEGRA_FB_WIN_FMT_YCbCr420P 18 +#define TEGRA_FB_WIN_FMT_YUV420P 19 +#define TEGRA_FB_WIN_FMT_YCbCr422P 20 +#define TEGRA_FB_WIN_FMT_YUV422P 21 +#define TEGRA_FB_WIN_FMT_YCbCr422R 22 +#define TEGRA_FB_WIN_FMT_YUV422R 23 +#define TEGRA_FB_WIN_FMT_YCbCr422RA 24 +#define TEGRA_FB_WIN_FMT_YUV422RA 25 + +#define TEGRA_FB_WIN_BLEND_NONE 0 +#define TEGRA_FB_WIN_BLEND_PREMULT 1 +#define TEGRA_FB_WIN_BLEND_COVERAGE 2 + +struct tegra_fb_windowattr { + __s32 index; __u32 buff_id; + __u32 blend; + __u32 offset; + __u32 stride; + __u32 pixformat; + __u32 x; + __u32 y; + __u32 w; + __u32 h; + __u32 out_x; + __u32 out_y; + __u32 out_w; + __u32 out_h; + __u32 z; __u32 pre_syncpt_id; __u32 pre_syncpt_val; +}; + +#define TEGRA_FB_FLIP_N_WINDOWS 3 + +struct tegra_fb_flip_args { + struct tegra_fb_windowattr win[TEGRA_FB_FLIP_N_WINDOWS]; __u32 post_syncpt_id; __u32 post_syncpt_val; }; |
