#include "devices/vga.h"
#include <round.h>
#include <stdint.h>
#include <stddef.h>
#include <string.h>
#include "devices/speaker.h"
#include "threads/io.h"
#include "threads/interrupt.h"
#include "threads/vaddr.h"
Go to the source code of this file.
Defines | |
#define | COL_CNT 80 |
#define | ROW_CNT 25 |
#define | GRAY_ON_BLACK 0x07 |
Functions | |
static void | clear_row (size_t y) |
static void | cls (void) |
static void | newline (void) |
static void | move_cursor (void) |
static void | find_cursor (size_t *x, size_t *y) |
static void | init (void) |
void | vga_putc (int c) |
Variables | |
static size_t | cx |
static size_t | cy |
static uint8_t(* | fb )[COL_CNT][2] |
#define COL_CNT 80 |
Definition at line 15 of file vga.c.
Referenced by clear_row(), find_cursor(), move_cursor(), and vga_putc().
#define GRAY_ON_BLACK 0x07 |
static void clear_row | ( | size_t | y | ) | [static] |
static void cls | ( | void | ) | [static] |
Definition at line 108 of file vga.c.
References clear_row(), cx, cy, move_cursor(), and ROW_CNT.
Referenced by vga_putc().
static void init | ( | void | ) | [static] |
Definition at line 38 of file vga.c.
References cx, cy, fb, find_cursor(), inited, and ptov().
Referenced by parallel_merge(), test_main(), and vga_putc().
static void move_cursor | ( | void | ) | [static] |
static void newline | ( | void | ) | [static] |
Definition at line 136 of file vga.c.
References clear_row(), cx, cy, fb, memmove(), and ROW_CNT.
Referenced by vga_putc().
void vga_putc | ( | int | c | ) |
Definition at line 53 of file vga.c.
References cls(), COL_CNT, cx, cy, fb, GRAY_ON_BLACK, init(), intr_disable(), intr_set_level(), move_cursor(), newline(), ROUND_UP, and speaker_beep().
Referenced by putchar_have_lock().
Definition at line 20 of file vga.c.
Referenced by cls(), init(), move_cursor(), newline(), and vga_putc().
Definition at line 20 of file vga.c.
Referenced by cls(), init(), move_cursor(), newline(), and vga_putc().