|
AquilaOS documentation
How it works, and its code
|
x86: the early console, where printk() writes before the kernel's terminals exist. More...
Go to the source code of this file.
Functions | |
| int | earlycon_fb_available (void) |
| Says whether the boot loader's framebuffer can be the early console. | |
| int | earlycon_puts (char *s) |
| Writes a string on the early console. | |
| int | earlycon_putc (char c) |
| Writes a character on the early console. | |
| int | earlycon_on_screen (void) |
| Says whether the early console writes on the screen, rather than on a serial port. | |
| void | earlycon_init () |
| Sets up the early console at boot, before anything else. | |
| void | earlycon_reinit () |
| Sets up the early console again, once the kernel's command line has been read, since it may choose another console (earlycon=). | |
Variables | |
| static struct earlycon * | earlycon |
| struct earlycon | earlycon_uart |
| struct earlycon | earlycon_vga |
| struct earlycon | earlycon_fb |
x86: the early console, where printk() writes before the kernel's terminals exist.
It starts on the first serial port, and once the kernel's command line is read (earlycon_reinit()), moves to the boot loader's framebuffer if there is one. earlycon=ttyS0, earlycon=vga or earlycon=fb chooses it explicitly.
Definition in file earlycon.c.
|
extern |
Says whether the boot loader's framebuffer can be the early console.
Definition at line 55 of file fb.c.
References earlycon_fb_available(), fb_depth, fb_paddr, and fb_size.
Referenced by earlycon_fb_available(), and earlycon_reinit().
| void earlycon_init | ( | void | ) |
Sets up the early console at boot, before anything else.
Definition at line 49 of file earlycon.c.
References earlycon_init(), earlycon_uart, and earlycon::init.
| int earlycon_on_screen | ( | void | ) |
Says whether the early console writes on the screen, rather than on a serial port.
Definition at line 43 of file earlycon.c.
References earlycon_on_screen(), and earlycon_uart.
| int earlycon_putc | ( | char | c | ) |
Writes a character on the early console.
| c | the character |
Definition at line 34 of file earlycon.c.
References earlycon_putc(), and earlycon::putc.
| int earlycon_puts | ( | char * | s | ) |
Writes a string on the early console.
| s | the string |
Definition at line 26 of file earlycon.c.
References earlycon_puts(), and earlycon::puts.
| void earlycon_reinit | ( | void | ) |
Sets up the early console again, once the kernel's command line has been read, since it may choose another console (earlycon=).
Definition at line 58 of file earlycon.c.
References earlycon_fb, earlycon_fb_available(), earlycon_reinit(), earlycon_uart, earlycon_vga, earlycon::init, kargs_get(), and NULL.
|
static |
Definition at line 15 of file earlycon.c.
|
extern |
Definition at line 161 of file fb.c.
Referenced by earlycon_reinit().
|
extern |
Definition at line 92 of file uart.c.
Referenced by earlycon_init(), earlycon_on_screen(), and earlycon_reinit().
|
extern |
Definition at line 85 of file vga.c.
Referenced by earlycon_reinit().