coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
vga.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define VGA_FB   0xB8000
 
#define VGA_FB_SIZE   0x4000 /* char + attr = word sized so 0x8000 / 2 */
 
#define VGA_COLUMNS   80
 
#define VGA_LINES   25
 

Functions

void vga_io_init (void)
 
void vga_textmode_init (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)
 

Macro Definition Documentation

◆ VGA_COLUMNS

#define VGA_COLUMNS   80

Definition at line 8 of file vga.h.

◆ VGA_FB

#define VGA_FB   0xB8000

Definition at line 6 of file vga.h.

◆ VGA_FB_SIZE

#define VGA_FB_SIZE   0x4000 /* char + attr = word sized so 0x8000 / 2 */

Definition at line 7 of file vga.h.

◆ VGA_LINES

#define VGA_LINES   25

Definition at line 9 of file vga.h.

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_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_textmode_init()

void vga_textmode_init ( void  )