coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
vga.c File Reference
#include <pc80/vga.h>
#include <pc80/vga_io.h>
#include <string.h>
#include "vga.h"
Include dependency graph for vga.c:

Go to the source code of this file.

Macros

#define height   16
 
#define count   256
 

Functions

void vga_io_init (void)
 
static void vga_fb_init (void)
 
static void vga_fb_clear (void)
 
static void vga_palette_init (void)
 
static void vga_mode_set (int hdisplay, int hblankstart, int hsyncstart, int hsyncend, int hblankend, int htotal, int vdisplay, int vblankstart, int vsyncstart, int vsyncend, int vblankend, int vtotal, int stride)
 
static void vga_font_8x16_load (void)
 
void vga_cursor_enable (int enable)
 
void vga_cursor_reset (void)
 
void vga_cursor_set (unsigned int line, unsigned int character)
 
void vga_frame_set (unsigned int line, unsigned int character)
 
void vga_line_write (unsigned int line, const char *string)
 
void vga_textmode_init (void)
 

Macro Definition Documentation

◆ count

#define count   256

◆ height

#define height   16

Function Documentation

◆ vga_cursor_enable()

void vga_cursor_enable ( int  enable)

Definition at line 213 of file vga.c.

References vga_cr_mask().

Here is the call graph for this function:

◆ vga_cursor_reset()

void vga_cursor_reset ( void  )

Definition at line 225 of file vga.c.

References vga_cr_write().

Referenced by vga_textmode_init().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ vga_cursor_set()

void vga_cursor_set ( unsigned int  line,
unsigned int  character 
)

Definition at line 237 of file vga.c.

References offset, and vga_cr_write().

Here is the call graph for this function:

◆ vga_fb_clear()

static void vga_fb_clear ( void  )
static

Definition at line 52 of file vga.c.

References memset(), and VGA_FB.

Referenced by vga_textmode_init().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ vga_fb_init()

static void vga_fb_init ( void  )
static

Definition at line 28 of file vga.c.

References vga_gr_write(), vga_misc_mask(), and vga_sr_write().

Referenced by vga_textmode_init().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ vga_font_8x16_load()

static void vga_font_8x16_load ( void  )
static

Definition at line 168 of file vga.c.

References count, height, vga_cr_mask(), VGA_FB, vga_font_8x16, vga_gr_mask(), vga_gr_read(), vga_gr_write(), vga_sr_mask(), vga_sr_read(), and vga_sr_write().

Referenced by vga_textmode_init().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ vga_frame_set()

void vga_frame_set ( unsigned int  line,
unsigned int  character 
)

Definition at line 251 of file vga.c.

References offset, and vga_cr_write().

Referenced by vga_textmode_init().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ vga_io_init()

void vga_io_init ( void  )

Definition at line 13 of file vga.c.

References vga_cr_mask(), vga_enable_mask(), and vga_misc_mask().

Here is the call graph for this function:

◆ vga_line_write()

void vga_line_write ( unsigned int  line,
const char *  string 
)

Definition at line 263 of file vga.c.

References strlen(), and VGA_FB.

Here is the call graph for this function:

◆ vga_mode_set()

static void vga_mode_set ( int  hdisplay,
int  hblankstart,
int  hsyncstart,
int  hsyncend,
int  hblankend,
int  htotal,
int  vdisplay,
int  vblankstart,
int  vsyncstart,
int  vsyncend,
int  vblankend,
int  vtotal,
int  stride 
)
static

Definition at line 92 of file vga.c.

References htotal, vga_cr_mask(), vga_cr_write(), vga_misc_mask(), and vtotal.

Referenced by vga_textmode_init().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ vga_palette_init()

static void vga_palette_init ( void  )
static

Definition at line 61 of file vga.c.

References default_vga_palette, vga_ar_write(), vga_dac_data_write(), vga_dac_mask_write(), vga_dac_write_address(), and vga_palette_disable().

Referenced by vga_textmode_init().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ vga_textmode_init()

void vga_textmode_init ( void  )