[PATCH v2 2/3] drm/panic: add a private pointer to struct drm_scanout_buffer

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]<

 



It can be set to a private structure in get_scanout_buffer(), and
used later in set_pixel() or in panic_flush().

Signed-off-by: Jocelyn Falempe <jfalempe@xxxxxxxxxx>
---
 include/drm/drm_panic.h | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/include/drm/drm_panic.h b/include/drm/drm_panic.h
index 54085d5d05c3..afdbb27ead67 100644
--- a/include/drm/drm_panic.h
+++ b/include/drm/drm_panic.h
@@ -54,6 +54,13 @@ struct drm_scanout_buffer {
 	 */
 	unsigned int pitch[DRM_FORMAT_MAX_PLANES];
 
+	/**
+	 * @private: Optional pointer to some private data you want to pass to
+	 * the set_pixel() or panic_flush() function. It must stay valid between
+	 * the get_scanout_buffer() call and the panic_flush() call.
+	 */
+	void *private;
+
 	/**
 	 * @set_pixel: Optional function, to set a pixel color on the
 	 * framebuffer. It allows to handle special tiling format inside the
-- 
2.46.0




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux