rcutorture: Eliminate unused ts_rem local from rcu_trace_clock_local()
[linux/fpc-iii.git] / drivers / gpu / drm / imx / ipuv3-plane.h
blob596b24ddbf657001472eae416abba3b38f064307
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 ipuv3_channel *alpha_ch;
22 struct dmfc_channel *dmfc;
23 struct ipu_dp *dp;
25 int dma;
26 int dp_flow;
28 bool disabling;
31 struct ipu_plane *ipu_plane_init(struct drm_device *dev, struct ipu_soc *ipu,
32 int dma, int dp, unsigned int possible_crtcs,
33 enum drm_plane_type type);
35 /* Init IDMAC, DMFC, DP */
36 int ipu_plane_mode_set(struct ipu_plane *plane, struct drm_crtc *crtc,
37 struct drm_display_mode *mode,
38 struct drm_framebuffer *fb, int crtc_x, int crtc_y,
39 unsigned int crtc_w, unsigned int crtc_h,
40 uint32_t src_x, uint32_t src_y, uint32_t src_w,
41 uint32_t src_h, bool interlaced);
43 int ipu_plane_get_resources(struct ipu_plane *plane);
44 void ipu_plane_put_resources(struct ipu_plane *plane);
46 int ipu_plane_irq(struct ipu_plane *plane);
48 void ipu_plane_disable(struct ipu_plane *ipu_plane, bool disable_dp_channel);
49 void ipu_plane_disable_deferred(struct drm_plane *plane);
51 #endif