1 #ifndef __IPUV3_PLANE_H__
2 #define __IPUV3_PLANE_H__
4 #include <drm/drm_crtc.h> /* drm_plane */
10 struct drm_framebuffer
;
17 struct drm_plane base
;
20 struct ipuv3_channel
*ipu_ch
;
21 struct dmfc_channel
*dmfc
;
28 struct ipu_plane
*ipu_plane_init(struct drm_device
*dev
, struct ipu_soc
*ipu
,
29 int dma
, int dp
, unsigned int possible_crtcs
,
30 enum drm_plane_type type
);
32 /* Init IDMAC, DMFC, DP */
33 int ipu_plane_mode_set(struct ipu_plane
*plane
, struct drm_crtc
*crtc
,
34 struct drm_display_mode
*mode
,
35 struct drm_framebuffer
*fb
, int crtc_x
, int crtc_y
,
36 unsigned int crtc_w
, unsigned int crtc_h
,
37 uint32_t src_x
, uint32_t src_y
, uint32_t src_w
,
38 uint32_t src_h
, bool interlaced
);
40 int ipu_plane_get_resources(struct ipu_plane
*plane
);
41 void ipu_plane_put_resources(struct ipu_plane
*plane
);
43 int ipu_plane_irq(struct ipu_plane
*plane
);