aboutsummaryrefslogtreecommitdiff
path: root/include/video.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2020-09-22 21:16:40 -0600
committerBin Meng <bmeng.cn@gmail.com>2020-09-25 11:27:27 +0800
commit308b1a960e3173148a313dfab29a00349168eced (patch)
treef99aa32d1fff9dd39babbbf5e754cd605cc2dd7f /include/video.h
parent29d2d64ed55f2dfaff6d298b0f589ea0f8edef8d (diff)
downloadu-boot-308b1a960e3173148a313dfab29a00349168eced.zip
u-boot-308b1a960e3173148a313dfab29a00349168eced.tar.gz
u-boot-308b1a960e3173148a313dfab29a00349168eced.tar.bz2
x86: video: Show information about each video device
At present the 'bdinfo' command shows the framebuffer address, but not the address of the copy framebuffer, if present. Add support for this. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'include/video.h')
-rw-r--r--include/video.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/include/video.h b/include/video.h
index 1a0ffd8..9d09d24 100644
--- a/include/video.h
+++ b/include/video.h
@@ -13,8 +13,6 @@
#ifndef _VIDEO_H_
#define _VIDEO_H_
-#ifdef CONFIG_DM_VIDEO
-
#include <stdio_dev.h>
struct udevice;
@@ -140,6 +138,7 @@ struct video_ops {
*/
int video_reserve(ulong *addrp);
+#ifdef CONFIG_DM_VIDEO
/**
* video_clear() - Clear a device's frame buffer to background color.
*
@@ -147,6 +146,7 @@ int video_reserve(ulong *addrp);
* @return 0
*/
int video_clear(struct udevice *dev);
+#endif /* CONFIG_DM_VIDEO */
/**
* video_sync() - Sync a device's frame buffer with its hardware
@@ -243,8 +243,6 @@ static inline int video_sync_copy(struct udevice *dev, void *from, void *to)
}
#endif
-#endif /* CONFIG_DM_VIDEO */
-
#ifndef CONFIG_DM_VIDEO
/* Video functions */