Display controllers in Exynos beside native planes/windows can use external
planes provided by other IPs - GSCALER, FIMD, VPP. To add support to them
we will need plane specific callbacks.
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
#define EXYNOS_DRM_PLANE_CAP_PIX_BLEND (1 << 4)
#define EXYNOS_DRM_PLANE_CAP_WIN_BLEND (1 << 5)
+struct exynos_drm_plane;
+struct exynos_drm_plane_ops {
+ void (*update_plane)(struct exynos_drm_plane *plane);
+ void (*disable_plane)(struct exynos_drm_plane *plane);
+};
+
/*
* Exynos drm common overlay structure.
*
struct exynos_drm_plane {
struct drm_plane base;
+ const struct exynos_drm_plane_ops *ops;
unsigned int index;
unsigned int capabilities;
};