diff options
author | Steve Longerbeam <slongerbeam@gmail.com> | 2014-06-25 21:05:40 -0400 |
---|---|---|
committer | Philipp Zabel <p.zabel@pengutronix.de> | 2014-09-02 08:55:48 -0400 |
commit | aa52f57894b93dcfdd615b35a7579e161f1e7a38 (patch) | |
tree | 1aa38dc7ff5ed6250c2c69291826664c1563e5f5 /include/video | |
parent | a4cd8f229ff71db0c95c0d96381d4fb9239fdb19 (diff) |
gpu: ipu-v3: Add ipu_idmac_buffer_is_ready()
Add ipu_idmac_buffer_is_ready(), returns true if the given buffer in
the given channel is set ready (owned by IPU), or false if not ready
(owned by CPU core).
Support has been added for third buffer, there is no support yet for
triple-buffering in idmac channels, but this function checks
buffer-ready for third buffer in case this support is added later.
Signed-off-by: Steve Longerbeam <steve_longerbeam@mentor.com>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Diffstat (limited to 'include/video')
-rw-r--r-- | include/video/imx-ipu-v3.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/video/imx-ipu-v3.h b/include/video/imx-ipu-v3.h index 2e9bfe24fb67..10013378394e 100644 --- a/include/video/imx-ipu-v3.h +++ b/include/video/imx-ipu-v3.h | |||
@@ -165,6 +165,7 @@ int ipu_idmac_wait_busy(struct ipuv3_channel *channel, int ms); | |||
165 | void ipu_idmac_set_double_buffer(struct ipuv3_channel *channel, | 165 | void ipu_idmac_set_double_buffer(struct ipuv3_channel *channel, |
166 | bool doublebuffer); | 166 | bool doublebuffer); |
167 | int ipu_idmac_get_current_buffer(struct ipuv3_channel *channel); | 167 | int ipu_idmac_get_current_buffer(struct ipuv3_channel *channel); |
168 | bool ipu_idmac_buffer_is_ready(struct ipuv3_channel *channel, u32 buf_num); | ||
168 | void ipu_idmac_select_buffer(struct ipuv3_channel *channel, u32 buf_num); | 169 | void ipu_idmac_select_buffer(struct ipuv3_channel *channel, u32 buf_num); |
169 | 170 | ||
170 | /* | 171 | /* |