tidss_plane.h 582 B

12345678910111213141516171819202122232425
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * Copyright (C) 2018 Texas Instruments Incorporated - https://www.ti.com/
  4. * Author: Tomi Valkeinen <tomi.valkeinen@ti.com>
  5. */
  6. #ifndef __TIDSS_PLANE_H__
  7. #define __TIDSS_PLANE_H__
  8. #define to_tidss_plane(p) container_of((p), struct tidss_plane, plane)
  9. struct tidss_device;
  10. struct tidss_plane {
  11. struct drm_plane plane;
  12. u32 hw_plane_id;
  13. };
  14. struct tidss_plane *tidss_plane_create(struct tidss_device *tidss,
  15. u32 hw_plane_id, u32 plane_type,
  16. u32 crtc_mask, const u32 *formats,
  17. u32 num_formats);
  18. #endif