From 59fb9a2bfa704422aa3ed64bd21d32bc18c64aa9 Mon Sep 17 00:00:00 2001 From: Stefan Reinauer Date: Tue, 19 Aug 2008 17:44:49 +0000 Subject: add functions to query cursor position to video layer Signed-off-by: Stefan Reinauer Acked-by: Jordan Crouse git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3520 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- payloads/libpayload/drivers/video/video.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'payloads/libpayload/drivers/video') diff --git a/payloads/libpayload/drivers/video/video.c b/payloads/libpayload/drivers/video/video.c index 8448b78e52..78f410be34 100644 --- a/payloads/libpayload/drivers/video/video.c +++ b/payloads/libpayload/drivers/video/video.c @@ -141,6 +141,26 @@ void video_console_putchar(unsigned int ch) video_console_fixup_cursor(); } +void video_console_get_cursor(unsigned int *x, unsigned int *y, unsigned int *en) +{ + *x=0; + *y=0; + *en=0; + + if (console->get_cursor) + console->get_cursor(x, y, en); + + *x = cursorx; + *y = cursory; +} + +void video_console_set_cursor(unsigned int x, unsigned int y) +{ + cursorx = x; + cursory = y; + video_console_fixup_cursor(); +} + int video_console_init(void) { int i; -- cgit v1.2.3