aboutsummaryrefslogtreecommitdiff
path: root/include/dm
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2020-07-02 21:12:28 -0600
committerBin Meng <bmeng.cn@gmail.com>2020-07-09 12:33:24 +0800
commitef453129799379d6073e103c8ff1c2f807f73898 (patch)
tree33c8f4803c774c5556c08d12537069ec3ccbe293 /include/dm
parent2b1412c8c074a40ccd1a4cf33c01fad97183fd06 (diff)
downloadu-boot-ef453129799379d6073e103c8ff1c2f807f73898.zip
u-boot-ef453129799379d6073e103c8ff1c2f807f73898.tar.gz
u-boot-ef453129799379d6073e103c8ff1c2f807f73898.tar.bz2
video: Add comments to struct sandbox_sdl_plat
This struct is not commented but needs it. Also fix the comment in check_vidconsole_output() about the encoding for the rotation value. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Anatolij Gustschin <agust@denx.de>
Diffstat (limited to 'include/dm')
-rw-r--r--include/dm/test.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/include/dm/test.h b/include/dm/test.h
index f0f3662..d39686c 100644
--- a/include/dm/test.h
+++ b/include/dm/test.h
@@ -159,7 +159,19 @@ enum {
/* Declare a new driver model test */
#define DM_TEST(_name, _flags) UNIT_TEST(_name, _flags, dm_test)
-/* This platform data is needed in tests, so declare it here */
+/*
+ * struct sandbox_sdl_plat - Platform data for the SDL video driver
+ *
+ * This platform data is needed in tests, so declare it here
+ *
+ * @xres: Width of display in pixels
+ * @yres: Height of display in pixels
+ * @bpix: Log2 of bits per pixel (enum video_log2_bpp)
+ * @rot: Console rotation (0=normal orientation, 1=90 degrees clockwise,
+ * 2=upside down, 3=90 degree counterclockwise)
+ * @vidconsole_drv_name: Name of video console driver (set by tests)
+ * @font_size: Console font size to select (set by tests)
+ */
struct sandbox_sdl_plat {
int xres;
int yres;