#include <stdlib.h>
#include <unistd.h>
#include <align.h>
#include <async.h>
#include <errno.h>
#include <stdio.h>
#include <ddi.h>
#include <sysinfo.h>
#include <as.h>
#include <ipc/fb.h>
#include <ipc/ns.h>
#include <ipc/services.h>
#include <libarch/ddi.h>
#include <io/style.h>
#include <io/color.h>
#include <io/screenbuffer.h>
#include <sys/types.h>
#include "ega.h"
#include "main.h"
Go to the source code of this file.
Data Structures | |
struct | saved_screen |
Defines | |
#define | EGA_IO_BASE ((ioport8_t *) 0x3d4) |
#define | EGA_IO_SIZE 2 |
#define | MAX_SAVED_SCREENS 256 |
Functions | |
static uint8_t | attr_to_ega_style (const attrs_t *attr) |
static void | clrscr (void) |
static uint8_t | color_to_ega_style (uint8_t fg_color, uint8_t bg_color, uint8_t attr) |
static void | cursor_disable (void) |
static void | cursor_enable (void) |
static void | cursor_goto (sysarg_t col, sysarg_t row) |
static void | draw_text_data (keyfield_t *data, sysarg_t x, sysarg_t y, sysarg_t w, sysarg_t h) |
Draw text data to viewport. | |
static void | ega_client_connection (ipc_callid_t iid, ipc_call_t *icall) |
static uint8_t | ega_glyph (wchar_t ch) |
int | ega_init (void) |
static int | print_screen (sysarg_t i) |
static void | printchar (wchar_t c, sysarg_t col, sysarg_t row) |
static uint8_t | rgb_to_ega_style (uint32_t fg, uint32_t bg) |
static int | save_screen (void) |
static void | scroll (ssize_t rows) |
static uint8_t | style_to_ega_style (uint8_t style) |
Variables | |
static int | client_connected = 0 |
saved_screen | saved_screens [MAX_SAVED_SCREENS] |
static uint8_t * | scr_addr |
static sysarg_t | scr_height |
static sysarg_t | scr_width |
static uint8_t | style |
static uint8_t | style_inverted = 0x0f |
static uint8_t | style_normal = 0xf0 |
Definition in file ega.c.