Stefan Reinauer | e562738 | 2005-01-15 00:29:10 +0000 | [diff] [blame] | 1 | /* |
Luc Verhaegen | 5c5beb7 | 2009-05-29 03:04:16 +0000 | [diff] [blame^] | 2 | * Copyright (C) 2007-2009 Luc Verhaegen <libv@skynet.be> |
Stefan Reinauer | e562738 | 2005-01-15 00:29:10 +0000 | [diff] [blame] | 3 | * |
Luc Verhaegen | 5c5beb7 | 2009-05-29 03:04:16 +0000 | [diff] [blame^] | 4 | * This program is free software; you can redistribute it and/or modify it |
| 5 | * under the terms of the GNU General Public License as published by the Free |
| 6 | * Software Foundation; either version 2 of the License, or (at your option) |
| 7 | * any later version. |
Stefan Reinauer | e562738 | 2005-01-15 00:29:10 +0000 | [diff] [blame] | 8 | * |
Luc Verhaegen | 5c5beb7 | 2009-05-29 03:04:16 +0000 | [diff] [blame^] | 9 | * This program is distributed in the hope that it will be useful, but WITHOUT |
| 10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
| 11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for |
| 12 | * more details. |
Stefan Reinauer | e562738 | 2005-01-15 00:29:10 +0000 | [diff] [blame] | 13 | * |
Luc Verhaegen | 5c5beb7 | 2009-05-29 03:04:16 +0000 | [diff] [blame^] | 14 | * You should have received a copy of the GNU General Public License along with |
| 15 | * this program; if not, write to the Free Software Foundation, Inc., 51 |
| 16 | * Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
Stefan Reinauer | e562738 | 2005-01-15 00:29:10 +0000 | [diff] [blame] | 17 | */ |
Stefan Reinauer | e562738 | 2005-01-15 00:29:10 +0000 | [diff] [blame] | 18 | |
Luc Verhaegen | 5c5beb7 | 2009-05-29 03:04:16 +0000 | [diff] [blame^] | 19 | #ifndef VGA_H |
| 20 | #define VGA_H |
Stefan Reinauer | e562738 | 2005-01-15 00:29:10 +0000 | [diff] [blame] | 21 | |
Luc Verhaegen | 5c5beb7 | 2009-05-29 03:04:16 +0000 | [diff] [blame^] | 22 | #define VGA_FB 0xB8000 |
| 23 | #define VGA_FB_SIZE 0x4000 /* char + attr = word sized so 0x8000 / 2 */ |
| 24 | #define VGA_COLUMNS 80 |
| 25 | #define VGA_LINES 25 |
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 | #if (CONFIG_VGA == 1) |
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_io_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_textmode_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_cursor_enable(int enable); |
| 34 | void vga_cursor_reset(void); |
| 35 | void vga_cursor_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_frame_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_line_write(unsigned int line, const char *string); |
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 /* (CONFIG_VGA == 1) */ |
Stefan Reinauer | e562738 | 2005-01-15 00:29:10 +0000 | [diff] [blame] | 42 | |
Luc Verhaegen | 5c5beb7 | 2009-05-29 03:04:16 +0000 | [diff] [blame^] | 43 | #endif /* VGA_H */ |