17 #if ! ( defined ( CONSOLE_DIRECT_VGA ) && \ 18 CONSOLE_EXPLICIT ( CONSOLE_DIRECT_VGA ) ) 19 #undef CONSOLE_DIRECT_VGA 20 #define CONSOLE_DIRECT_VGA ( CONSOLE_USAGE_ALL & ~CONSOLE_USAGE_LOG ) 28 #define VIDBUFFER 0xB8000 30 static void memsetw(
void *s,
int c,
unsigned int n)
35 for (i = 0; i < n; i++) {
71 }
else if (
byte ==
'\r') {
74 }
else if (
byte ==
'\b') {
77 }
else if (
byte ==
'\t') {
80 }
else if (
byte ==
'\a') {
#define write_crtc(data, addr)
static __always_inline void off_t int c
#define INIT_EARLY
Early initialisation.
struct init_fn video_init_fn __init_fn(INIT_EARLY)
static void memsetw(void *s, int c, unsigned int n)
#define CONSOLE_DISABLED
Console is disabled for all uses.
static void vga_putc(int byte)
#define LINES(...)
Define inline lines.
static __always_inline void * phys_to_virt(unsigned long phys_addr)
Convert physical address to a virtual address.
An initialisation function.
void(* putchar)(int character)
Write a character to the console.
void * memmove(void *dest, const void *src, size_t len) __nonnull
static void video_init(void)
#define CONSOLE_DIRECT_VGA
struct console_driver vga_console __console_driver
static void video_scroll(void)