diff options
author | Icenowy Zheng <icenowy@aosc.io> | 2017-05-17 16:47:17 +0200 |
---|---|---|
committer | Maxime Ripard <maxime.ripard@free-electrons.com> | 2017-06-01 09:47:23 +0200 |
commit | 87969338436710638076d8083dda8b0de703f4a5 (patch) | |
tree | 9157bb21d79e5a8297a3964f84d41c8b5a9bc82e /drivers/gpu/drm/sun4i/sun4i_layer.h | |
parent | drm/sun4i: return only planes for layers created (diff) | |
download | linux-87969338436710638076d8083dda8b0de703f4a5.tar.xz linux-87969338436710638076d8083dda8b0de703f4a5.zip |
drm/sun4i: abstract a engine type
As we are going to add support for the Allwinner DE2 engine in sun4i-drm
driver, we will finally have two types of display engines -- the DE1
backend and the DE2 mixer. They both do some display blending and feed
graphics data to TCON, and is part of the "Display Engine" called by
Allwinner, so I choose to call them both "engine" here.
Abstract the engine type to a new struct with an ops struct, which contains
functions that should be called outside the engine-specified code (in
TCON, CRTC or TV Encoder code).
In order to preserve bisectability, we also switch the backend and layer
code in its own module.
Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
Reviewed-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Diffstat (limited to 'drivers/gpu/drm/sun4i/sun4i_layer.h')
-rw-r--r-- | drivers/gpu/drm/sun4i/sun4i_layer.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/drm/sun4i/sun4i_layer.h b/drivers/gpu/drm/sun4i/sun4i_layer.h index 5ea5c994d6ea..4e84f438b346 100644 --- a/drivers/gpu/drm/sun4i/sun4i_layer.h +++ b/drivers/gpu/drm/sun4i/sun4i_layer.h @@ -13,6 +13,8 @@ #ifndef _SUN4I_LAYER_H_ #define _SUN4I_LAYER_H_ +struct sunxi_engine; + struct sun4i_layer { struct drm_plane plane; struct sun4i_drv *drv; @@ -27,6 +29,6 @@ plane_to_sun4i_layer(struct drm_plane *plane) } struct drm_plane **sun4i_layers_init(struct drm_device *drm, - struct sun4i_crtc *crtc); + struct sunxi_engine *engine); #endif /* _SUN4I_LAYER_H_ */ |