video: tegra: add ioctl to query DC capabilities
Adam Cheney [Fri, 2 Mar 2012 00:44:43 +0000 (16:44 -0800)]
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>

Rebase-Id: R9cf72d8428495698fc5caebe4a0f8378a061c0c7

include/video/tegra_dc_ext.h

index 7f504be..8c51c70 100644 (file)
@@ -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 */