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. |
Stefan Reinauer | e562738 | 2005-01-15 00:29:10 +0000 | [diff] [blame] | 15 | */ |
Stefan Reinauer | e562738 | 2005-01-15 00:29:10 +0000 | [diff] [blame] | 16 | |
Luc Verhaegen | 5c5beb7 | 2009-05-29 03:04:16 +0000 | [diff] [blame] | 17 | #ifndef VGA_H |
| 18 | #define VGA_H |
Stefan Reinauer | e562738 | 2005-01-15 00:29:10 +0000 | [diff] [blame] | 19 | |
Luc Verhaegen | 5c5beb7 | 2009-05-29 03:04:16 +0000 | [diff] [blame] | 20 | #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 Reinauer | e562738 | 2005-01-15 00:29:10 +0000 | [diff] [blame] | 24 | |
Myles Watson | c6aadbe | 2009-10-20 16:24:23 +0000 | [diff] [blame] | 25 | #if CONFIG_VGA |
Stefan Reinauer | e562738 | 2005-01-15 00:29:10 +0000 | [diff] [blame] | 26 | |
Luc Verhaegen | 5c5beb7 | 2009-05-29 03:04:16 +0000 | [diff] [blame] | 27 | void vga_io_init(void); |
Stefan Reinauer | e562738 | 2005-01-15 00:29:10 +0000 | [diff] [blame] | 28 | |
Luc Verhaegen | 5c5beb7 | 2009-05-29 03:04:16 +0000 | [diff] [blame] | 29 | void vga_textmode_init(void); |
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_cursor_enable(int enable); |
| 32 | void vga_cursor_reset(void); |
| 33 | void vga_cursor_set(unsigned int line, unsigned int character); |
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_frame_set(unsigned int line, unsigned int character); |
Stefan Reinauer | e562738 | 2005-01-15 00:29:10 +0000 | [diff] [blame] | 36 | |
Luc Verhaegen | 5c5beb7 | 2009-05-29 03:04:16 +0000 | [diff] [blame] | 37 | void vga_line_write(unsigned int line, const char *string); |
Stefan Reinauer | e562738 | 2005-01-15 00:29:10 +0000 | [diff] [blame] | 38 | |
Myles Watson | c6aadbe | 2009-10-20 16:24:23 +0000 | [diff] [blame] | 39 | #endif /* CONFIG_VGA */ |
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 | #endif /* VGA_H */ |