diff options
author | Dan Willemsen <dwillemsen@nvidia.com> | 2011-11-30 21:45:19 -0800 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2011-11-30 21:45:19 -0800 |
commit | 7dec71919b42d0ceef3f1463f59fa7830032c992 (patch) | |
tree | ec09922a1cf4d2b00b7de047996ca0f4c8eee453 /include | |
parent | 2ab3d41638d5be1b13e562844451e46d755ef4a8 (diff) | |
parent | 78a66919a7b1ef2448ecb5a57446c75f7a1d820d (diff) |
Merge branch 'buckets/video' into after-buckets
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/fb.h | 9 | ||||
-rw-r--r-- | include/linux/tegra_overlay.h | 70 | ||||
-rw-r--r-- | include/linux/tegra_pwm_bl.h | 25 |
3 files changed, 104 insertions, 0 deletions
diff --git a/include/linux/fb.h b/include/linux/fb.h index f0532fca9cff..bb565a4c2e1c 100644 --- a/include/linux/fb.h +++ b/include/linux/fb.h @@ -231,6 +231,15 @@ struct fb_bitfield { #define FB_FLAG_PIXEL_REPEAT 256 /* + * Stereo modes + */ +#define FB_VMODE_STEREO_NONE 0x00000000 /* not stereo */ +#define FB_VMODE_STEREO_FRAME_PACK 0x01000000 /* frame packing */ +#define FB_VMODE_STEREO_TOP_BOTTOM 0x02000000 /* top-bottom */ +#define FB_VMODE_STEREO_LEFT_RIGHT 0x04000000 /* left-right */ +#define FB_VMODE_STEREO_MASK 0xFF000000 + +/* * Display rotation support */ #define FB_ROTATE_UR 0 diff --git a/include/linux/tegra_overlay.h b/include/linux/tegra_overlay.h new file mode 100644 index 000000000000..94d486b353b2 --- /dev/null +++ b/include/linux/tegra_overlay.h @@ -0,0 +1,70 @@ +/* + * Copyright (C) 2010 NVIDIA Corporation + * Author: Dan Willemsen <dwillemsen@nvidia.com> + * + * This software is licensed under the terms of the GNU General Public + * License version 2, as published by the Free Software Foundation, and + * may be copied, distributed, and modified under those terms. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + */ + +#ifndef __LINUX_TEGRA_OVERLAY_H +#define __LINUX_TEGRA_OVERLAY_H + +#include <linux/ioctl.h> +#include <linux/types.h> +#include <video/tegrafb.h> + +/* set index to -1 to ignore window data */ +struct tegra_overlay_windowattr { + __s32 index; + __u32 buff_id; + __u32 blend; + __u32 offset; + __u32 offset_u; + __u32 offset_v; + __u32 stride; + __u32 stride_uv; + __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; + __u32 hfilter; + __u32 vfilter; + __u32 do_not_use__tiled; /* compatibility */ + __u32 flags; +}; + +#define TEGRA_OVERLAY_FLIP_FLAG_BLEND_REORDER (1 << 0) + +struct tegra_overlay_flip_args { + struct tegra_overlay_windowattr win[TEGRA_FB_FLIP_N_WINDOWS]; + __u32 post_syncpt_id; + __u32 post_syncpt_val; + __u32 flags; +}; + +#define TEGRA_OVERLAY_IOCTL_MAGIC 'O' + +#define TEGRA_OVERLAY_IOCTL_OPEN_WINDOW _IOWR(TEGRA_OVERLAY_IOCTL_MAGIC, 0x40, __u32) +#define TEGRA_OVERLAY_IOCTL_CLOSE_WINDOW _IOW(TEGRA_OVERLAY_IOCTL_MAGIC, 0x41, __u32) +#define TEGRA_OVERLAY_IOCTL_FLIP _IOW(TEGRA_OVERLAY_IOCTL_MAGIC, 0x42, struct tegra_overlay_flip_args) +#define TEGRA_OVERLAY_IOCTL_SET_NVMAP_FD _IOW(TEGRA_OVERLAY_IOCTL_MAGIC, 0x43, __u32) + +#define TEGRA_OVERLAY_IOCTL_MIN_NR _IOC_NR(TEGRA_OVERLAY_IOCTL_OPEN_WINDOW) +#define TEGRA_OVERLAY_IOCTL_MAX_NR _IOC_NR(TEGRA_OVERLAY_IOCTL_SET_NVMAP_FD) + +#endif diff --git a/include/linux/tegra_pwm_bl.h b/include/linux/tegra_pwm_bl.h new file mode 100644 index 000000000000..4eac77b04203 --- /dev/null +++ b/include/linux/tegra_pwm_bl.h @@ -0,0 +1,25 @@ +/* Tegra PWM backlight data * + * + * Copyright (C) 2011 NVIDIA Corporation + * Author: Renuka Apte <rapte@nvidia.com> + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + * + */ + +#ifndef TEGRA_PWM_BL_H +#define TEGRA_PWM_BL_H + +struct platform_tegra_pwm_backlight_data { + int which_dc; + int which_pwm; + unsigned int dft_brightness; + unsigned int max_brightness; + unsigned int period; + unsigned int clk_div; + unsigned int clk_select; +}; + +#endif /* TERGA_PWM_BL_H */ |