Staging: unisys: Remove RETINT macro
[linux/fpc-iii.git] / drivers / staging / imx-drm / ipuv3-plane.h
blobc0aae5bcb5d457e3e7f07cf5bca3de79878d719a
1 #ifndef __IPUV3_PLANE_H__
2 #define __IPUV3_PLANE_H__
4 #include <drm/drm_crtc.h> /* drm_plane */
6 struct drm_plane;
7 struct drm_device;
8 struct ipu_soc;
9 struct drm_crtc;
10 struct drm_framebuffer;
12 struct ipuv3_channel;
13 struct dmfc_channel;
14 struct ipu_dp;
16 struct ipu_plane {
17 struct drm_plane base;
19 struct ipu_soc *ipu;
20 struct ipuv3_channel *ipu_ch;
21 struct dmfc_channel *dmfc;
22 struct ipu_dp *dp;
24 int dma;
25 int dp_flow;
27 int x;
28 int y;
30 bool enabled;
33 struct ipu_plane *ipu_plane_init(struct drm_device *dev, struct ipu_soc *ipu,
34 int dma, int dp, unsigned int possible_crtcs,
35 bool priv);
37 /* Init IDMAC, DMFC, DP */
38 int ipu_plane_mode_set(struct ipu_plane *plane, struct drm_crtc *crtc,
39 struct drm_display_mode *mode,
40 struct drm_framebuffer *fb, int crtc_x, int crtc_y,
41 unsigned int crtc_w, unsigned int crtc_h,
42 uint32_t src_x, uint32_t src_y, uint32_t src_w,
43 uint32_t src_h);
45 void ipu_plane_enable(struct ipu_plane *plane);
46 void ipu_plane_disable(struct ipu_plane *plane);
47 int ipu_plane_set_base(struct ipu_plane *plane, struct drm_framebuffer *fb,
48 int x, int y);
50 int ipu_plane_get_resources(struct ipu_plane *plane);
51 void ipu_plane_put_resources(struct ipu_plane *plane);
53 int ipu_plane_irq(struct ipu_plane *plane);
55 #endif