diff options
author | Maxime Ripard | 2018-01-22 10:25:21 +0100 |
---|---|---|
committer | Maxime Ripard | 2018-01-22 15:15:20 +0100 |
commit | 6b8562c86e249b6d46d3c1f02afe570368b01e67 (patch) | |
tree | e6ed0ad6ec1d7b90bf272953274870d993680be3 /drivers/gpu/drm/sun4i/sunxi_engine.h | |
parent | drm/sun4i: engine: Add a VBLANK quirk callback (diff) | |
download | kernel-qcow2-linux-6b8562c86e249b6d46d3c1f02afe570368b01e67.tar.gz kernel-qcow2-linux-6b8562c86e249b6d46d3c1f02afe570368b01e67.tar.xz kernel-qcow2-linux-6b8562c86e249b6d46d3c1f02afe570368b01e67.zip |
drm/sun4i: engine: Create an atomic_begin callback
We have to implement some display engine specific behaviours in
atomic_begin. Let's add a function for that.
Reviewed-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Link: https://patchwork.freedesktop.org/patch/msgid/44110951ae0cc13767fefc7fc1d9e2ec782d0a40.1516613040.git-series.maxime.ripard@free-electrons.com
Diffstat (limited to 'drivers/gpu/drm/sun4i/sunxi_engine.h')
-rw-r--r-- | drivers/gpu/drm/sun4i/sunxi_engine.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/gpu/drm/sun4i/sunxi_engine.h b/drivers/gpu/drm/sun4i/sunxi_engine.h index 54c029877531..baa7a1f95300 100644 --- a/drivers/gpu/drm/sun4i/sunxi_engine.h +++ b/drivers/gpu/drm/sun4i/sunxi_engine.h @@ -23,6 +23,19 @@ struct sunxi_engine; */ struct sunxi_engine_ops { /** + * @atomic_begin: + * + * This callback allows to prepare our engine for an atomic + * update. This is mirroring the + * &drm_crtc_helper_funcs.atomic_begin callback, so any + * documentation there applies. + * + * This function is optional. + */ + void (*atomic_begin)(struct sunxi_engine *engine, + struct drm_crtc_state *old_state); + + /** * @atomic_check: * * This callback allows to validate plane-update related CRTC |