zx_plane.h 750 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * Copyright 2016 Linaro Ltd.
  3. * Copyright 2016 ZTE Corporation.
  4. *
  5. * This program is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License version 2 as
  7. * published by the Free Software Foundation.
  8. *
  9. */
  10. #ifndef __ZX_PLANE_H__
  11. #define __ZX_PLANE_H__
  12. struct zx_plane {
  13. struct drm_plane plane;
  14. struct device *dev;
  15. void __iomem *layer;
  16. void __iomem *csc;
  17. void __iomem *hbsc;
  18. void __iomem *rsz;
  19. const struct vou_layer_bits *bits;
  20. };
  21. #define to_zx_plane(plane) container_of(plane, struct zx_plane, plane)
  22. int zx_plane_init(struct drm_device *drm, struct zx_plane *zplane,
  23. enum drm_plane_type type);
  24. void zx_plane_set_update(struct drm_plane *plane);
  25. #endif /* __ZX_PLANE_H__ */