diff options
author | Steve Longerbeam | 2014-06-25 18:05:40 -0700 |
---|---|---|
committer | Philipp Zabel | 2014-09-02 14:55:48 +0200 |
commit | aa52f57894b93dcfdd615b35a7579e161f1e7a38 (patch) | |
tree | 1aa38dc7ff5ed6250c2c69291826664c1563e5f5 /include/video/imx-ipu-v3.h | |
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/imx-ipu-v3.h')
-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); void ipu_idmac_set_double_buffer(struct ipuv3_channel *channel, bool doublebuffer); int ipu_idmac_get_current_buffer(struct ipuv3_channel *channel); +bool ipu_idmac_buffer_is_ready(struct ipuv3_channel *channel, u32 buf_num); void ipu_idmac_select_buffer(struct ipuv3_channel *channel, u32 buf_num); /* |