Stefan Reinauer | e562738 | 2005-01-15 00:29:10 +0000 | [diff] [blame] | 1 | /* |
Uwe Hermann | c70e9fc | 2010-02-15 23:10:19 +0000 | [diff] [blame^] | 2 | * This file is part of the coreboot project. |
Stefan Reinauer | e562738 | 2005-01-15 00:29:10 +0000 | [diff] [blame] | 3 | * |
Uwe Hermann | c70e9fc | 2010-02-15 23:10:19 +0000 | [diff] [blame^] | 4 | * Copyright (C) 2007-2009 Luc Verhaegen <libv@skynet.be> |
Stefan Reinauer | e562738 | 2005-01-15 00:29:10 +0000 | [diff] [blame] | 5 | * |
Uwe Hermann | c70e9fc | 2010-02-15 23:10:19 +0000 | [diff] [blame^] | 6 | * 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 Reinauer | e562738 | 2005-01-15 00:29:10 +0000 | [diff] [blame] | 10 | * |
Uwe Hermann | c70e9fc | 2010-02-15 23:10:19 +0000 | [diff] [blame^] | 11 | * 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 Reinauer | e562738 | 2005-01-15 00:29:10 +0000 | [diff] [blame] | 19 | */ |
Stefan Reinauer | e562738 | 2005-01-15 00:29:10 +0000 | [diff] [blame] | 20 | |
Luc Verhaegen | 5c5beb7 | 2009-05-29 03:04:16 +0000 | [diff] [blame] | 21 | #ifndef VGA_H |
| 22 | #define VGA_H |
Stefan Reinauer | e562738 | 2005-01-15 00:29:10 +0000 | [diff] [blame] | 23 | |
Luc Verhaegen | 5c5beb7 | 2009-05-29 03:04:16 +0000 | [diff] [blame] | 24 | #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 Reinauer | e562738 | 2005-01-15 00:29:10 +0000 | [diff] [blame] | 28 | |
Myles Watson | c6aadbe | 2009-10-20 16:24:23 +0000 | [diff] [blame] | 29 | #if CONFIG_VGA |
Stefan Reinauer | e562738 | 2005-01-15 00:29:10 +0000 | [diff] [blame] | 30 | |
Luc Verhaegen | 5c5beb7 | 2009-05-29 03:04:16 +0000 | [diff] [blame] | 31 | void vga_io_init(void); |
Stefan Reinauer | e562738 | 2005-01-15 00:29:10 +0000 | [diff] [blame] | 32 | |
Luc Verhaegen | 5c5beb7 | 2009-05-29 03:04:16 +0000 | [diff] [blame] | 33 | void vga_textmode_init(void); |
Stefan Reinauer | e562738 | 2005-01-15 00:29:10 +0000 | [diff] [blame] | 34 | |
Luc Verhaegen | 5c5beb7 | 2009-05-29 03:04:16 +0000 | [diff] [blame] | 35 | void vga_cursor_enable(int enable); |
| 36 | void vga_cursor_reset(void); |
| 37 | void vga_cursor_set(unsigned int line, unsigned int character); |
Stefan Reinauer | e562738 | 2005-01-15 00:29:10 +0000 | [diff] [blame] | 38 | |
Luc Verhaegen | 5c5beb7 | 2009-05-29 03:04:16 +0000 | [diff] [blame] | 39 | void vga_frame_set(unsigned int line, unsigned int character); |
Stefan Reinauer | e562738 | 2005-01-15 00:29:10 +0000 | [diff] [blame] | 40 | |
Luc Verhaegen | 5c5beb7 | 2009-05-29 03:04:16 +0000 | [diff] [blame] | 41 | void vga_line_write(unsigned int line, const char *string); |
Stefan Reinauer | e562738 | 2005-01-15 00:29:10 +0000 | [diff] [blame] | 42 | |
Myles Watson | c6aadbe | 2009-10-20 16:24:23 +0000 | [diff] [blame] | 43 | #endif /* CONFIG_VGA */ |
Stefan Reinauer | e562738 | 2005-01-15 00:29:10 +0000 | [diff] [blame] | 44 | |
Luc Verhaegen | 5c5beb7 | 2009-05-29 03:04:16 +0000 | [diff] [blame] | 45 | #endif /* VGA_H */ |