diff options
| author | Benoit Parrot <[email protected]> | 2021-11-17 14:19:23 +0000 |
|---|---|---|
| committer | Tomi Valkeinen <[email protected]> | 2021-12-08 08:04:40 +0000 |
| commit | c8fa1e733c597a7b11a22a3e49de5ea1362e9a7a (patch) | |
| tree | 5529c56c32e3f18a956b3f4714e4c481da4858ec /drivers/gpu/drm/omapdrm/omap_overlay.h | |
| parent | drm/omap: Add ovl checking funcs to dispc_ops (diff) | |
| download | kernel-c8fa1e733c597a7b11a22a3e49de5ea1362e9a7a.tar.gz kernel-c8fa1e733c597a7b11a22a3e49de5ea1362e9a7a.zip | |
drm/omap: introduce omap_hw_overlay
Split out the hardware overlay specifics from omap_plane.
To start, the hw overlays are statically assigned to planes.
The goal is to eventually assign hw overlays dynamically to planes
during plane->atomic_check() based on requested caps (scaling, YUV,
etc). And then perform hw overlay re-assignment if required.
Signed-off-by: Benoit Parrot <[email protected]>
Signed-off-by: Neil Armstrong <[email protected]>
Reviewed-by: Tomi Valkeinen <[email protected]>
Signed-off-by: Tomi Valkeinen <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/omapdrm/omap_overlay.h')
| -rw-r--r-- | drivers/gpu/drm/omapdrm/omap_overlay.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/drivers/gpu/drm/omapdrm/omap_overlay.h b/drivers/gpu/drm/omapdrm/omap_overlay.h new file mode 100644 index 000000000000..51d26aebf77d --- /dev/null +++ b/drivers/gpu/drm/omapdrm/omap_overlay.h @@ -0,0 +1,30 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +/* + * Copyright (C) 2018 Texas Instruments Incorporated - http://www.ti.com/ + * Author: Benoit Parrot <[email protected]> + */ + +#ifndef __OMAPDRM_OVERLAY_H__ +#define __OMAPDRM_OVERLAY_H__ + +#include <linux/types.h> + +enum drm_plane_type; + +struct drm_device; +struct drm_mode_object; +struct drm_plane; + +/* Used to associate a HW overlay/plane to a plane */ +struct omap_hw_overlay { + unsigned int idx; + + const char *name; + enum omap_plane_id id; + + enum omap_overlay_caps caps; +}; + +int omap_hwoverlays_init(struct omap_drm_private *priv); +void omap_hwoverlays_destroy(struct omap_drm_private *priv); +#endif /* __OMAPDRM_OVERLAY_H__ */ |
