diff options
author | Dan Willemsen <dwillemsen@nvidia.com> | 2011-01-24 02:07:05 -0800 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2011-11-30 21:44:51 -0800 |
commit | bf4d2f172ddabeb44a12f9e3dab3564d7a9e7212 (patch) | |
tree | 68671f830b810455525f2efde440a0aee55c2d94 /drivers/video/tegra/dc/overlay.h | |
parent | 03e6e69aca66b068c5c9a5e0de1da3873e3146dc (diff) |
video: tegra: Multi client overlay management
This creates a new device node per head - /dev/tegra_dc%u. There are a
number of ioctls in linux/tegra_overlay.h to open, close, and flip
overlays.
This is a replacement for the extensions in the tegra fb interface, but
does not remove that functionality for compatibility reasons. Once
everyone has moved, we can remove the tegra fb extensions.
Original-Change-Id: Id78a94482637a7ce229ec64eb5feaf2dec2b7804
Reviewed-on: http://git-master/r/16700
Reviewed-by: Daniel Willemsen <dwillemsen@nvidia.com>
Tested-by: Daniel Willemsen <dwillemsen@nvidia.com>
Rebase-Id: R0d6e864cd50ce69c2e432bbac96b4932ec2bc476
Diffstat (limited to 'drivers/video/tegra/dc/overlay.h')
-rw-r--r-- | drivers/video/tegra/dc/overlay.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/drivers/video/tegra/dc/overlay.h b/drivers/video/tegra/dc/overlay.h new file mode 100644 index 000000000000..a3469813b1bf --- /dev/null +++ b/drivers/video/tegra/dc/overlay.h @@ -0,0 +1,38 @@ +/* + * drivers/video/tegra/dc/overlay.h + * + * Copyright (c) 2010-2011, NVIDIA Corporation. + * + * 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 __DRIVERS_VIDEO_TEGRA_OVERLAY_H +#define __DRIVERS_VIDEO_TEGRA_OVERLAY_H + +struct tegra_overlay_info; + +#ifdef CONFIG_TEGRA_OVERLAY +struct tegra_overlay_info *tegra_overlay_register(struct nvhost_device *ndev, + struct tegra_dc *dc); +void tegra_overlay_unregister(struct tegra_overlay_info *overlay_info); +#else +static inline struct tegra_overlay_info *tegra_overlay_register(struct nvhost_device *ndev, + struct tegra_dc *dc) +{ + return NULL; +} + +static inline void tegra_overlay_unregister(struct tegra_overlay_info *overlay_info) +{ +} +#endif + +#endif |