Benjamin Gaignard | 9bbf86f | 2014-07-31 09:39:11 +0200 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) STMicroelectronics SA 2014 |
| 3 | * Author: Benjamin Gaignard <benjamin.gaignard@st.com> for STMicroelectronics. |
| 4 | * License terms: GNU General Public License (GPL), version 2 |
| 5 | */ |
| 6 | |
Vincent Abriou | 9e1f05b | 2015-07-31 11:32:34 +0200 | [diff] [blame] | 7 | #ifndef _STI_DRV_H_ |
| 8 | #define _STI_DRV_H_ |
Benjamin Gaignard | 9bbf86f | 2014-07-31 09:39:11 +0200 | [diff] [blame] | 9 | |
| 10 | #include <drm/drmP.h> |
| 11 | |
| 12 | struct sti_compositor; |
| 13 | struct sti_tvout; |
| 14 | |
| 15 | /** |
| 16 | * STI drm private structure |
| 17 | * This structure is stored as private in the drm_device |
| 18 | * |
| 19 | * @compo: compositor |
| 20 | * @plane_zorder_property: z-order property for CRTC planes |
| 21 | * @drm_dev: drm device |
| 22 | */ |
Vincent Abriou | 9e1f05b | 2015-07-31 11:32:34 +0200 | [diff] [blame] | 23 | struct sti_private { |
Benjamin Gaignard | 9bbf86f | 2014-07-31 09:39:11 +0200 | [diff] [blame] | 24 | struct sti_compositor *compo; |
| 25 | struct drm_property *plane_zorder_property; |
| 26 | struct drm_device *drm_dev; |
Benjamin Gaignard | 84601db | 2016-06-21 15:09:40 +0200 | [diff] [blame] | 27 | struct drm_fbdev_cma *fbdev; |
Benjamin Gaignard | 9bbf86f | 2014-07-31 09:39:11 +0200 | [diff] [blame] | 28 | }; |
| 29 | |
Thierry Reding | dcec16e | 2015-09-24 19:02:40 +0200 | [diff] [blame] | 30 | extern struct platform_driver sti_tvout_driver; |
Thierry Reding | dcec16e | 2015-09-24 19:02:40 +0200 | [diff] [blame] | 31 | extern struct platform_driver sti_hqvdp_driver; |
| 32 | extern struct platform_driver sti_hdmi_driver; |
| 33 | extern struct platform_driver sti_hda_driver; |
| 34 | extern struct platform_driver sti_dvo_driver; |
| 35 | extern struct platform_driver sti_vtg_driver; |
| 36 | extern struct platform_driver sti_compositor_driver; |
| 37 | |
Benjamin Gaignard | 9bbf86f | 2014-07-31 09:39:11 +0200 | [diff] [blame] | 38 | #endif |