From fd00e682c0ccd38ced77a91af4442d38d8cb2e09 Mon Sep 17 00:00:00 2001 From: Vadim Bendebury Date: Wed, 27 Jul 2011 16:38:15 -0700 Subject: Implement shared display support. This change fills up the stubs in lib/vbexport/display.c to provide support on both ARM (where LCD driver is used) and X86 (where the CFB driver is used) platforms. BUG=chrome-os-partner:4552 TEST=manual On X86 (alex with a Dediprog programmer connected to it), run the following commands: . emerge-x86-alex vboot_reference-firmware chromeos-u-boot chromeos-coreboot dd if=/build/x86-alex/coreboot/coreboot.rom of=/tmp/coreboot seek=3584 bs=1K sudo flashrom -p dediprog -w /tmp/coreboot . Reboot the machine, observe it come up to boot> prompt, start ChromeOS (using the `boot' cli command). On ARM (tegra2_kaen) . emerge-tegra2_kaen vboot_reference-firmware chromeos-u-boot chromeos-bootimage . program the resulting image into Kaen, restart it, observe the machine come up. . install the new OS image on the machine, restart it, observe the machine come up. . request recovery reboot using crossystem, restart the machine, observe it come up in recovery request mode. This test case actually failed: the system did show the recovery request screen, but then proceeded to boot from the plugged in USB stick (it was supposed to wait for the stick to be removed/reinserted) Change-Id: I75310de3f93464645cc9e61237f65d7d19b71873 Signed-off-by: Vadim Bendebury Reviewed-on: http://gerrit.chromium.org/gerrit/4886 Reviewed-by: Stefan Reinauer --- include/video.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/video.h') diff --git a/include/video.h b/include/video.h index efcc682a29..8b3799b0b0 100644 --- a/include/video.h +++ b/include/video.h @@ -15,5 +15,11 @@ int video_init (void *videobase); void video_putc (const char c); void video_puts (const char *s); void video_printf (const char *fmt, ...); +void video_position_cursor (unsigned col, unsigned row); +int video_display_bitmap (ulong, int, int); +int video_get_screen_rows (void); +int video_get_screen_columns (void); +int video_get_pixel_width (void); +int video_get_pixel_height(void); #endif -- cgit v1.2.3