blob: 3d757f858db04f958bf961b0473874c3d6817054 [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.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Stefan Reinauere5627382005-01-15 00:29:10 +000019 */
Stefan Reinauere5627382005-01-15 00:29:10 +000020
Luc Verhaegen5c5beb72009-05-29 03:04:16 +000021#ifndef VGA_H
22#define VGA_H
Stefan Reinauere5627382005-01-15 00:29:10 +000023
Luc Verhaegen5c5beb72009-05-29 03:04:16 +000024#define VGA_FB 0xB8000
25#define VGA_FB_SIZE 0x4000 /* char + attr = word sized so 0x8000 / 2 */
26#define VGA_COLUMNS 80
27#define VGA_LINES 25
Stefan Reinauere5627382005-01-15 00:29:10 +000028
Myles Watsonc6aadbe2009-10-20 16:24:23 +000029#if CONFIG_VGA
Stefan Reinauere5627382005-01-15 00:29:10 +000030
Luc Verhaegen5c5beb72009-05-29 03:04:16 +000031void vga_io_init(void);
Stefan Reinauere5627382005-01-15 00:29:10 +000032
Luc Verhaegen5c5beb72009-05-29 03:04:16 +000033void vga_textmode_init(void);
Stefan Reinauere5627382005-01-15 00:29:10 +000034
Luc Verhaegen5c5beb72009-05-29 03:04:16 +000035void vga_cursor_enable(int enable);
36void vga_cursor_reset(void);
37void vga_cursor_set(unsigned int line, unsigned int character);
Stefan Reinauere5627382005-01-15 00:29:10 +000038
Luc Verhaegen5c5beb72009-05-29 03:04:16 +000039void vga_frame_set(unsigned int line, unsigned int character);
Stefan Reinauere5627382005-01-15 00:29:10 +000040
Luc Verhaegen5c5beb72009-05-29 03:04:16 +000041void vga_line_write(unsigned int line, const char *string);
Stefan Reinauere5627382005-01-15 00:29:10 +000042
Myles Watsonc6aadbe2009-10-20 16:24:23 +000043#endif /* CONFIG_VGA */
Stefan Reinauere5627382005-01-15 00:29:10 +000044
Luc Verhaegen5c5beb72009-05-29 03:04:16 +000045#endif /* VGA_H */