blob: b1b9c30aac9b30940718f499d50b7cd003aaf3c0 [file] [log] [blame]
Stefan Reinauere5627382005-01-15 00:29:10 +00001/*
Uwe Hermannc70e9fc2010-02-15 23:10:19 +00002 * This file is part of the coreboot project.
Stefan Reinauere5627382005-01-15 00:29:10 +00003 *
Uwe Hermannc70e9fc2010-02-15 23:10:19 +00004 * Copyright (C) 2007-2009 Luc Verhaegen <libv@skynet.be>
Stefan Reinauere5627382005-01-15 00:29:10 +00005 *
Uwe Hermannc70e9fc2010-02-15 23:10:19 +00006 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
Stefan Reinauere5627382005-01-15 00:29:10 +000010 *
Uwe Hermannc70e9fc2010-02-15 23:10:19 +000011 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
Stefan Reinauere5627382005-01-15 00:29:10 +000015 */
Stefan Reinauere5627382005-01-15 00:29:10 +000016
Luc Verhaegen5c5beb72009-05-29 03:04:16 +000017#ifndef VGA_H
18#define VGA_H
Stefan Reinauere5627382005-01-15 00:29:10 +000019
Luc Verhaegen5c5beb72009-05-29 03:04:16 +000020#define VGA_FB 0xB8000
21#define VGA_FB_SIZE 0x4000 /* char + attr = word sized so 0x8000 / 2 */
22#define VGA_COLUMNS 80
23#define VGA_LINES 25
Stefan Reinauere5627382005-01-15 00:29:10 +000024
Myles Watsonc6aadbe2009-10-20 16:24:23 +000025#if CONFIG_VGA
Stefan Reinauere5627382005-01-15 00:29:10 +000026
Luc Verhaegen5c5beb72009-05-29 03:04:16 +000027void vga_io_init(void);
Stefan Reinauere5627382005-01-15 00:29:10 +000028
Luc Verhaegen5c5beb72009-05-29 03:04:16 +000029void vga_textmode_init(void);
Stefan Reinauere5627382005-01-15 00:29:10 +000030
Luc Verhaegen5c5beb72009-05-29 03:04:16 +000031void vga_cursor_enable(int enable);
32void vga_cursor_reset(void);
33void vga_cursor_set(unsigned int line, unsigned int character);
Stefan Reinauere5627382005-01-15 00:29:10 +000034
Luc Verhaegen5c5beb72009-05-29 03:04:16 +000035void vga_frame_set(unsigned int line, unsigned int character);
Stefan Reinauere5627382005-01-15 00:29:10 +000036
Luc Verhaegen5c5beb72009-05-29 03:04:16 +000037void vga_line_write(unsigned int line, const char *string);
Stefan Reinauere5627382005-01-15 00:29:10 +000038
Myles Watsonc6aadbe2009-10-20 16:24:23 +000039#endif /* CONFIG_VGA */
Stefan Reinauere5627382005-01-15 00:29:10 +000040
Luc Verhaegen5c5beb72009-05-29 03:04:16 +000041#endif /* VGA_H */