From 27fb4ae633b456346593c60e7dc77c4c85a625a7 Mon Sep 17 00:00:00 2001 From: Adam Cheney Date: Thu, 1 Mar 2012 16:44:43 -0800 Subject: 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 Tested-by: Adam Cheney --- include/video/tegra_dc_ext.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'include/video') 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 */ -- cgit v1.2.3