|
AquilaOS documentation
How it works, and its code
|
x86: the early console in VGA text mode, written straight into the text buffer at 0xB8000 (through the kernel's mapping of low memory, VMA(), which i386 and x86_64 both have). More...
#include <core/system.h>#include <core/string.h>#include <console/earlycon.h>#include <cpu/io.h>#include <mm/mm.h>Go to the source code of this file.
Macros | |
| #define | VGA_COLS 80 |
| #define | VGA_ROWS 25 |
| #define | VGA_SIZE (2 * VGA_COLS * VGA_ROWS) |
Functions | |
| static void | earlycon_vga_scroll (int n) |
| Scrolls the screen up by n lines, clearing the lines at the bottom. | |
| static int | earlycon_vga_putc (char c) |
| Writes a character at the cursor, scrolling when it goes past the last line. | |
| static int | earlycon_vga_puts (char *s) |
| Writes a string, and returns how many characters it wrote. | |
| static void | earlycon_vga_init () |
| Hides the hardware cursor, and clears the screen. | |
Variables | |
| static char * | vga_start = (char *) VMA(0xB8000) |
| static char * | vga = (char *) VMA(0xB8000) |
| struct ioaddr | vga_ioaddr |
| struct earlycon | earlycon_vga |
x86: the early console in VGA text mode, written straight into the text buffer at 0xB8000 (through the kernel's mapping of low memory, VMA(), which i386 and x86_64 both have).
Definition in file vga.c.
| #define VGA_COLS 80 |
Definition at line 21 of file vga.c.
Referenced by earlycon_vga_scroll(), vga_cursor(), and vga_draw().
| #define VGA_ROWS 25 |
Definition at line 22 of file vga.c.
Referenced by earlycon_vga_scroll(), and vga_cursor().
Definition at line 23 of file vga.c.
Referenced by earlycon_vga_putc().
|
static |
Hides the hardware cursor, and clears the screen.
Definition at line 73 of file vga.c.
References earlycon_vga_init(), io_out8(), vga_ioaddr, and vga_start.
Referenced by earlycon_vga_init().
|
static |
Writes a character at the cursor, scrolling when it goes past the last line.
Returns 1, or 0 for a NUL.
Definition at line 41 of file vga.c.
References earlycon_vga_putc(), earlycon_vga_scroll(), vga, VGA_SIZE, and vga_start.
Referenced by earlycon_vga_putc(), and earlycon_vga_puts().
|
static |
Writes a string, and returns how many characters it wrote.
Definition at line 62 of file vga.c.
References earlycon_vga_putc(), and earlycon_vga_puts().
Referenced by earlycon_vga_puts().
|
static |
Scrolls the screen up by n lines, clearing the lines at the bottom.
Definition at line 27 of file vga.c.
References earlycon_vga_scroll(), memmove(), vga, VGA_COLS, VGA_ROWS, and vga_start.
Referenced by earlycon_vga_putc(), and earlycon_vga_scroll().
| struct earlycon earlycon_vga |
Definition at line 85 of file vga.c.
Referenced by earlycon_reinit().
|
static |
Definition at line 14 of file vga.c.
Referenced by earlycon_vga_putc(), earlycon_vga_scroll(), vga_draw(), and vt_vga_attr().
| struct ioaddr vga_ioaddr |
Definition at line 16 of file vga.c.
Referenced by earlycon_vga_init().
|
static |
Definition at line 13 of file vga.c.
Referenced by earlycon_vga_init(), earlycon_vga_putc(), and earlycon_vga_scroll().