diff options
author | Robert Morell <rmorell@nvidia.com> | 2011-05-24 19:27:57 -0700 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2011-08-22 16:52:00 -0700 |
commit | dbd9fb5b6293d7f4eb1dab51981434ee42033088 (patch) | |
tree | 9d1640e84667d207c28eaaf4f12dcd2d9cfd3e84 /include | |
parent | 873b21d3a5b9ffbf10b41aec42d03577d9938af4 (diff) |
video: tegra: dc_ext: Add head status ioctl
This change adds a new tegra_dc_ext ioctl to allow userspace to query
whether a head is currently enabled or not. This is necessary for the X
server to be able to restore the outputs that were enabled before it was
started.
bug 818525
Original-Change-Id: I6d209894081312621f623a722cdd3fcb53553c61
Signed-off-by: Robert Morell <rmorell@nvidia.com>
Reviewed-by: Aaron Plattner <aplattner@nvidia.com>
Reviewed-by: Olof Johansson <olofj@chromium.org>
Reviewed-on: http://git-master/r/40530
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>
Diffstat (limited to 'include')
-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 5ac7899bc6dd..118184849d1b 100644 --- a/include/video/tegra_dc_ext.h +++ b/include/video/tegra_dc_ext.h @@ -161,6 +161,14 @@ struct tegra_dc_ext_csc { __u16 kvb; /* s.2.8 */ }; + +#define TEGRA_DC_EXT_FLAGS_ENABLED 1 +struct tegra_dc_ext_status { + __u32 flags; + /* Leave some wiggle room for future expansion */ + __u32 pad[3]; +}; + #define TEGRA_DC_EXT_SET_NVMAP_FD \ _IOW('D', 0x00, __s32) @@ -184,6 +192,9 @@ struct tegra_dc_ext_csc { #define TEGRA_DC_EXT_SET_CSC \ _IOW('D', 0x08, struct tegra_dc_ext_csc) +#define TEGRA_DC_EXT_GET_STATUS \ + _IOR('D', 0x09, struct tegra_dc_ext_status) + /* * Returns the auto-incrementing vblank syncpoint for the head associated with * this device node |