diff options
author | Adam Cheney <acheney@nvidia.com> | 2012-03-01 16:44:43 -0800 |
---|---|---|
committer | Simone Willett <swillett@nvidia.com> | 2012-03-02 09:36:10 -0800 |
commit | 27fb4ae633b456346593c60e7dc77c4c85a625a7 (patch) | |
tree | 5ff2caf90d68cc04731a105b3998091cb9b90dbe | |
parent | bbf325e404454e3833f9b54aa2c4a02b7749ad04 (diff) |
video: tegra: add ioctl to query DC capabilities
Defines a new ioctl for querying a bitfield of DC capabilities.
The first defined caps bit is for "cursor mode" flipping support.
bug 942631
Change-Id: Iea8a0dfe4e400e0dad4bb9f23509c3ac0ca532ba
Reviewed-on: http://git-master/r/87066
Reviewed-by: Robert Morell <rmorell@nvidia.com>
Tested-by: Adam Cheney <acheney@nvidia.com>
-rw-r--r-- | include/video/tegra_dc_ext.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/video/tegra_dc_ext.h b/include/video/tegra_dc_ext.h index 7f504be1346a..8c51c70858ed 100644 --- a/include/video/tegra_dc_ext.h +++ b/include/video/tegra_dc_ext.h @@ -297,6 +297,14 @@ struct tegra_dc_ext_control_event_hotplug { __u32 handle; }; + +#define TEGRA_DC_EXT_CAPABILITIES_CURSOR_MODE (1 << 0) +struct tegra_dc_ext_control_capabilities { + __u32 caps; + /* Leave some wiggle room for future expansion */ + __u32 pad[3]; +}; + #define TEGRA_DC_EXT_CONTROL_GET_NUM_OUTPUTS \ _IOR('C', 0x00, __u32) #define TEGRA_DC_EXT_CONTROL_GET_OUTPUT_PROPERTIES \ @@ -305,5 +313,7 @@ struct tegra_dc_ext_control_event_hotplug { _IOWR('C', 0x02, struct tegra_dc_ext_control_output_edid) #define TEGRA_DC_EXT_CONTROL_SET_EVENT_MASK \ _IOW('C', 0x03, __u32) +#define TEGRA_DC_EXT_CONTROL_GET_CAPABILITIES \ + _IOR('C', 0x04, struct tegra_dc_ext_control_capabilities) #endif /* __TEGRA_DC_EXT_H */ |