[PATCH v2 2/8] drm: Add drm_device->fbdev pointer

Noralf Trønnes noralf at tronnes.org
Sun Oct 15 16:30:36 UTC 2017


drm_fb_helper is *the* way of doing fbdev emulation so add a pointer to
struct drm_device. This makes it possible to add callback helpers for
.last_close and .output_poll_changed further reducing fbdev emulation
footprint in drivers.

Signed-off-by: Noralf Trønnes <noralf at tronnes.org>
---
 include/drm/drm_device.h | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/include/drm/drm_device.h b/include/drm/drm_device.h
index e21af87a2f3c..3c104b15a0c8 100644
--- a/include/drm/drm_device.h
+++ b/include/drm/drm_device.h
@@ -17,6 +17,7 @@ struct drm_vblank_crtc;
 struct drm_sg_mem;
 struct drm_local_map;
 struct drm_vma_offset_manager;
+struct drm_fb_helper;
 
 struct inode;
 
@@ -185,6 +186,13 @@ struct drm_device {
 	struct drm_vma_offset_manager *vma_offset_manager;
 	/*@} */
 	int switch_power_state;
+
+	/**
+	 * @fbdev:
+	 *
+	 * Optional pointer to the fbdev emulation structure.
+	 */
+	struct drm_fb_helper *fbdev;
 };
 
 #endif
-- 
2.14.2



More information about the dri-devel mailing list