summaryrefslogtreecommitdiff
path: root/drivers/video/tegra/dc/ext/tegra_dc_ext_priv.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/video/tegra/dc/ext/tegra_dc_ext_priv.h')
-rw-r--r--drivers/video/tegra/dc/ext/tegra_dc_ext_priv.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/drivers/video/tegra/dc/ext/tegra_dc_ext_priv.h b/drivers/video/tegra/dc/ext/tegra_dc_ext_priv.h
index 6f0d0e4e732b..54a10b2c8682 100644
--- a/drivers/video/tegra/dc/ext/tegra_dc_ext_priv.h
+++ b/drivers/video/tegra/dc/ext/tegra_dc_ext_priv.h
@@ -36,6 +36,13 @@ struct tegra_dc_ext_user {
struct nvmap_client *nvmap;
};
+enum {
+ TEGRA_DC_Y,
+ TEGRA_DC_U,
+ TEGRA_DC_V,
+ TEGRA_DC_NUM_PLANES,
+};
+
struct tegra_dc_ext_win {
struct tegra_dc_ext *ext;
@@ -45,7 +52,8 @@ struct tegra_dc_ext_win {
struct mutex lock;
- struct nvmap_handle_ref *cur_handle;
+ /* Current nvmap handle (if any) for Y, U, V planes */
+ struct nvmap_handle_ref *cur_handle[TEGRA_DC_NUM_PLANES];
struct workqueue_struct *flip_wq;
};