summaryrefslogtreecommitdiff
path: root/include/video
diff options
context:
space:
mode:
authorXue Dong <xdong@nvidia.com>2013-05-24 14:42:05 -0700
committerDan Willemsen <dwillemsen@nvidia.com>2013-09-14 13:26:36 -0700
commitfe28f4d353ff50f8ff9c66fd1bd766f0dd8b308f (patch)
tree3f5ae1e6bdf9a614a98a92b9d29dc38476f4306a /include/video
parentd20c1972ea6a63e542e07353f5e86a7395e79279 (diff)
driver: video: add low latency cursor support
Bug 1232181 Change-Id: I0277727f0b4d8ac63778f4c536c9b23e7dc3825d Signed-off-by: Xue Dong <xdong@nvidia.com> Change-Id: Id93f3c905e1976b979e0f931c75701a54fdcf254 Reviewed-on: http://git-master/r/236005 Reviewed-by: Kevin Huang (Eng-SW) <kevinh@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Chao Xu <cxu@nvidia.com>
Diffstat (limited to 'include/video')
-rw-r--r--include/video/tegra_dc_ext.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/include/video/tegra_dc_ext.h b/include/video/tegra_dc_ext.h
index f86b9df4e737..8f35a460da5f 100644
--- a/include/video/tegra_dc_ext.h
+++ b/include/video/tegra_dc_ext.h
@@ -157,6 +157,7 @@ struct tegra_dc_ext_flip_2 {
* - Exactly one of the SIZE flags must be specified.
*/
+
#define TEGRA_DC_EXT_CURSOR_IMAGE_FLAGS_SIZE_32x32 ((1 & 0x7) << 0)
#define TEGRA_DC_EXT_CURSOR_IMAGE_FLAGS_SIZE_64x64 ((2 & 0x7) << 0)
#define TEGRA_DC_EXT_CURSOR_IMAGE_FLAGS_SIZE_128x128 ((3 & 0x7) << 0)
@@ -164,6 +165,12 @@ struct tegra_dc_ext_flip_2 {
#define TEGRA_DC_EXT_CURSOR_IMAGE_FLAGS_SIZE(x) (((x) & 0x7) >> 0)
#define TEGRA_DC_EXT_CURSOR_FLAGS_2BIT_LEGACY (0 << 16)
#define TEGRA_DC_EXT_CURSOR_FLAGS_RGBA_NORMAL (1 << 16)
+
+enum CR_MODE {
+ legacy,
+ normal,
+};
+
struct tegra_dc_ext_cursor_image {
struct {
__u8 r;
@@ -172,6 +179,10 @@ struct tegra_dc_ext_cursor_image {
} foreground, background;
__u32 buff_id;
__u32 flags;
+ __s16 x;
+ __s16 y;
+ __u32 vis;
+ enum CR_MODE mode;
};
/* Possible flags for struct nvdc_cursor's flags field */
@@ -318,6 +329,12 @@ struct tegra_dc_ext_feature {
#define TEGRA_DC_EXT_GET_CUSTOM_CMU \
_IOR('D', 0x10, struct tegra_dc_ext_cmu)
+#define TEGRA_DC_EXT_SET_CURSOR_IMAGE_LOW_LATENCY \
+ _IOW('D', 0x11, struct tegra_dc_ext_cursor_image)
+
+#define TEGRA_DC_EXT_SET_CURSOR_LOW_LATENCY \
+ _IOW('D', 0x12, struct tegra_dc_ext_cursor_image)
+
enum tegra_dc_ext_control_output_type {
TEGRA_DC_EXT_DSI,
TEGRA_DC_EXT_LVDS,