summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSimon Glass <[email protected]>2024-08-21 10:18:55 -0600
committerTom Rini <[email protected]>2024-08-26 14:05:37 -0600
commitb5c5923e4e4d526055c559e9bf644c2669335730 (patch)
treef71e6d31e1ebfb5002f4b3b96ecb690158f57d6c /include
parent26d3faae2963ec03d4cb8581d410fb5e18172f89 (diff)
video: Add a function to obtain the framebuffer address
Add a new function which returns the framebuffer address of the first video device. This will allow the global_data field top be dropped. Signed-off-by: Simon Glass <[email protected]>
Diffstat (limited to 'include')
-rw-r--r--include/video.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/video.h b/include/video.h
index 4013a949983..606c8a37fb8 100644
--- a/include/video.h
+++ b/include/video.h
@@ -420,4 +420,15 @@ int bmp_info(ulong addr);
*/
int video_reserve_from_bloblist(struct video_handoff *ho);
+/**
+ * video_get_fb() - Get the first framebuffer address
+ *
+ * This function does not probe video devices, so can only be used after a video
+ * device has been activated.
+ *
+ * Return: address of the framebuffer of the first video device found, or 0 if
+ * there is no device
+ */
+ulong video_get_fb(void);
+
#endif