diff options
author | Robert Morell <rmorell@nvidia.com> | 2011-02-16 10:45:53 -0800 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2011-11-30 21:48:11 -0800 |
commit | caec6505db7d6297dbf5767c48f23a346d7ef7be (patch) | |
tree | ae4179512abbfac47f0230f03878a89bb861e587 /include/video | |
parent | ead8aaa0c6be72c6028cc1a75ba70baaf31ff2d9 (diff) |
video: tegra: Implement FLIP dc extension ioctl.
This is very similar to the tegra_fb FLIP ioctl.
bug 818525
Original-Change-Id: Iba32ab5bf730b575477c62a8ae4394f1779ef65e
Signed-off-by: Robert Morell <rmorell@nvidia.com>
Reviewed-on: http://git-master/r/40514
Reviewed-by: Jonathan Mayo <jmayo@nvidia.com>
Rebase-Id: R9a79363b09d2df38bec4b8a8666f97b1feff76ff
Diffstat (limited to 'include/video')
-rw-r--r-- | include/video/tegra_dc_ext.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/video/tegra_dc_ext.h b/include/video/tegra_dc_ext.h index 18f2262a13c1..346825aa4147 100644 --- a/include/video/tegra_dc_ext.h +++ b/include/video/tegra_dc_ext.h @@ -21,6 +21,11 @@ #include <linux/types.h> #include <linux/ioctl.h> +#if defined(__KERNEL__) +# include <linux/time.h> +#else +# include <time.h> +#endif #define TEGRA_DC_EXT_FMT_P1 0 #define TEGRA_DC_EXT_FMT_P2 1 @@ -68,14 +73,20 @@ struct tegra_dc_ext_flip_windowattr { __u32 out_w; __u32 out_h; __u32 z; + __u32 swap_interval; + struct timespec timestamp; __u32 pre_syncpt_id; __u32 pre_syncpt_val; + /* Leave some wiggle room for future expansion */ + __u32 pad[8]; }; #define TEGRA_DC_EXT_FLIP_N_WINDOWS 3 struct tegra_dc_ext_flip { struct tegra_dc_ext_flip_windowattr win[TEGRA_DC_EXT_FLIP_N_WINDOWS]; + __u32 post_syncpt_id; + __u32 post_syncpt_val; }; #define TEGRA_DC_EXT_SET_NVMAP_FD \ |