mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-27 22:53:55 +08:00
5f2f911578
Replacing drm_crtc_helper_set_config() by drm_atomic_helper_set_config() and converting the suspend/resume operations to atomic make us be able to use atomic configurations. All of these allow us to remove the crtc_funcs->mode_set callback as it is no longer used. Also, change the plane_funcs->update/disable_plane callbacks from the transitional version to the atomic version. Furthermore, switching to the pure atomic version of set_config callback means that we may implement CRTC/plane atomic checks by using the new CRTC/plane states instead of the legacy ones and we may remove the private ipu_crtc->enabled state which was left there for the transitional atomic helpers in phase 1. Page flip is also switched to the atomic version. Last, the legacy function drm_helper_disable_unused_functions() is removed from ->load in order not to confuse the atomic driver. Signed-off-by: Liu Ying <gnuiyl@gmail.com> Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
46 lines
1.1 KiB
C
46 lines
1.1 KiB
C
#ifndef __IPUV3_PLANE_H__
|
|
#define __IPUV3_PLANE_H__
|
|
|
|
#include <drm/drm_crtc.h> /* drm_plane */
|
|
|
|
struct drm_plane;
|
|
struct drm_device;
|
|
struct ipu_soc;
|
|
struct drm_crtc;
|
|
struct drm_framebuffer;
|
|
|
|
struct ipuv3_channel;
|
|
struct dmfc_channel;
|
|
struct ipu_dp;
|
|
|
|
struct ipu_plane {
|
|
struct drm_plane base;
|
|
|
|
struct ipu_soc *ipu;
|
|
struct ipuv3_channel *ipu_ch;
|
|
struct dmfc_channel *dmfc;
|
|
struct ipu_dp *dp;
|
|
|
|
int dma;
|
|
int dp_flow;
|
|
};
|
|
|
|
struct ipu_plane *ipu_plane_init(struct drm_device *dev, struct ipu_soc *ipu,
|
|
int dma, int dp, unsigned int possible_crtcs,
|
|
enum drm_plane_type type);
|
|
|
|
/* Init IDMAC, DMFC, DP */
|
|
int ipu_plane_mode_set(struct ipu_plane *plane, struct drm_crtc *crtc,
|
|
struct drm_display_mode *mode,
|
|
struct drm_framebuffer *fb, int crtc_x, int crtc_y,
|
|
unsigned int crtc_w, unsigned int crtc_h,
|
|
uint32_t src_x, uint32_t src_y, uint32_t src_w,
|
|
uint32_t src_h, bool interlaced);
|
|
|
|
int ipu_plane_get_resources(struct ipu_plane *plane);
|
|
void ipu_plane_put_resources(struct ipu_plane *plane);
|
|
|
|
int ipu_plane_irq(struct ipu_plane *plane);
|
|
|
|
#endif
|