summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorVinu Deokaran <vinud@codeaurora.org>2014-05-14 15:17:39 -0400
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-23 20:30:11 -0700
commitc7dfe421a1e5bb70657f052bd561784d8a4ef5e6 (patch)
tree0f58b013ccd653370296fa44ddb60d74e3de5fc5 /include
parentf0e6a39c273c61707459251248ecf3e3b07d0b55 (diff)
msm: display: Add pipe type selection in overlay request
Allow user to specify the type when requesting an overlay pipe. If field is set the pipe type indication in the flags will be ignored. Change-Id: Iee51d24b96c7a2a987dc70a439342e6548dfc8fa Signed-off-by: Vinu Deokaran <vinud@codeaurora.org>
Diffstat (limited to 'include')
-rw-r--r--include/uapi/linux/msm_mdp.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/include/uapi/linux/msm_mdp.h b/include/uapi/linux/msm_mdp.h
index 8a289a3d9a54..cf965d45883a 100644
--- a/include/uapi/linux/msm_mdp.h
+++ b/include/uapi/linux/msm_mdp.h
@@ -552,6 +552,23 @@ struct mdp_scale_data {
};
/**
+ * enum mdp_overlay_pipe_type - Different pipe type set by userspace
+ *
+ * @PIPE_TYPE_AUTO: Not specified, pipe will be selected according to flags.
+ * @PIPE_TYPE_VIG: VIG pipe.
+ * @PIPE_TYPE_RGB: RGB pipe.
+ * @PIPE_TYPE_DMA: DMA pipe.
+ * @PIPE_TYPE_MAX: Used to track maximum number of pipe type.
+ */
+enum mdp_overlay_pipe_type {
+ PIPE_TYPE_AUTO = 0,
+ PIPE_TYPE_VIG,
+ PIPE_TYPE_RGB,
+ PIPE_TYPE_DMA,
+ PIPE_TYPE_MAX,
+};
+
+/**
* struct mdp_overlay - overlay surface structure
* @src: Source image information (width, height, format).
* @src_rect: Source crop rectangle, portion of image that will be fetched.
@@ -573,6 +590,7 @@ struct mdp_scale_data {
* The color should be in same format as the source image format.
* @flags: This is used to customize operation of overlay. See MDP flags
* for more information.
+ * @pipe_type: Used to specify the type of overlay pipe.
* @user_data: DEPRECATED* Used to store user application specific information.
* @bg_color: Solid color used to fill the overlay surface when no source
* buffer is provided.
@@ -610,6 +628,7 @@ struct mdp_overlay {
uint32_t blend_op;
uint32_t transp_mask;
uint32_t flags;
+ uint32_t pipe_type;
uint32_t id;
uint8_t priority;
uint32_t user_data[6];