ipuv3-plane.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #ifndef __IPUV3_PLANE_H__
  2. #define __IPUV3_PLANE_H__
  3. #include <drm/drm_crtc.h> /* drm_plane */
  4. struct drm_plane;
  5. struct drm_device;
  6. struct ipu_soc;
  7. struct drm_crtc;
  8. struct drm_framebuffer;
  9. struct ipuv3_channel;
  10. struct dmfc_channel;
  11. struct ipu_dp;
  12. struct ipu_plane {
  13. struct drm_plane base;
  14. struct ipu_soc *ipu;
  15. struct ipuv3_channel *ipu_ch;
  16. struct dmfc_channel *dmfc;
  17. struct ipu_dp *dp;
  18. int dma;
  19. int dp_flow;
  20. };
  21. struct ipu_plane *ipu_plane_init(struct drm_device *dev, struct ipu_soc *ipu,
  22. int dma, int dp, unsigned int possible_crtcs,
  23. enum drm_plane_type type);
  24. /* Init IDMAC, DMFC, DP */
  25. int ipu_plane_mode_set(struct ipu_plane *plane, struct drm_crtc *crtc,
  26. struct drm_display_mode *mode,
  27. struct drm_framebuffer *fb, int crtc_x, int crtc_y,
  28. unsigned int crtc_w, unsigned int crtc_h,
  29. uint32_t src_x, uint32_t src_y, uint32_t src_w,
  30. uint32_t src_h, bool interlaced);
  31. int ipu_plane_get_resources(struct ipu_plane *plane);
  32. void ipu_plane_put_resources(struct ipu_plane *plane);
  33. int ipu_plane_irq(struct ipu_plane *plane);
  34. #endif