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