pintos/src/devices/vga.c File Reference

#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 Documentation

#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

Definition at line 23 of file vga.c.

Referenced by clear_row(), and vga_putc().

#define ROW_CNT   25

Definition at line 16 of file vga.c.

Referenced by cls(), and newline().


Function Documentation

static void clear_row ( size_t  y  )  [static]

Definition at line 121 of file vga.c.

References COL_CNT, fb, GRAY_ON_BLACK, and x.

Referenced by cls(), and newline().

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 find_cursor ( size_t x,
size_t y 
) [static]

Definition at line 160 of file vga.c.

References COL_CNT, inb(), and outb().

Referenced by init().

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]

Definition at line 150 of file vga.c.

References COL_CNT, cx, cy, and outw().

Referenced by cls(), and vga_putc().

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  ) 


Variable Documentation

size_t cx [static]

Definition at line 20 of file vga.c.

Referenced by cls(), init(), move_cursor(), newline(), and vga_putc().

size_t cy [static]

Definition at line 20 of file vga.c.

Referenced by cls(), init(), move_cursor(), newline(), and vga_putc().

uint8_t(* fb)[COL_CNT][2] [static]

Definition at line 28 of file vga.c.

Referenced by clear_row(), init(), newline(), and vga_putc().


Generated on Mon Jan 10 16:43:58 2011 for Pintos by  doxygen 1.5.6