]> git.baikalelectronics.ru Git - kernel.git/commit
gpu: ipu-v3: Add ipu_idmac_buffer_is_ready()
authorSteve Longerbeam <slongerbeam@gmail.com>
Thu, 26 Jun 2014 01:05:40 +0000 (18:05 -0700)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Tue, 2 Sep 2014 12:55:48 +0000 (14:55 +0200)
commit465e4d75e62f7c3ad97ab329ef0aae70aa45332c
tree1aa38dc7ff5ed6250c2c69291826664c1563e5f5
parentb2c2a16abc1771cc18c585b746ef6981aa3daca9
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>
drivers/gpu/ipu-v3/ipu-common.c
drivers/gpu/ipu-v3/ipu-prv.h
include/video/imx-ipu-v3.h