coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
functions.c File Reference
#include <types.h>
#include <device/device.h>
#include "../debug.h"
#include "../biosemu.h"
#include <vbe.h>
#include "../compat/time.h"
Include dependency graph for functions.c:

Go to the source code of this file.

Macros

#define VMEM_SIZE   (1024 * 1024) /* 1 MB */
 

Functions

void run_bios (struct device *dev, unsigned long addr)
 
u64 get_time (void)
 

Variables

u8vmem = (u8 *) (16*1024*1024)
 
u8biosmem
 
unsigned long tb_freq = 0
 

Macro Definition Documentation

◆ VMEM_SIZE

#define VMEM_SIZE   (1024 * 1024) /* 1 MB */

Definition at line 45 of file functions.c.

Function Documentation

◆ get_time()

u64 get_time ( void  )

Definition at line 72 of file functions.c.

Referenced by handle_port_61h(), and update_time().

Here is the caller graph for this function:

◆ run_bios()

void run_bios ( struct device dev,
unsigned long  addr 
)

Definition at line 59 of file functions.c.

References addr, biosemu(), biosmem, vbe_set_graphics(), vmem, and VMEM_SIZE.

Here is the call graph for this function:

Variable Documentation

◆ biosmem

u8* biosmem
extern

Definition at line 74 of file vbe.c.

Referenced by biosemu(), and run_bios().

◆ tb_freq

unsigned long tb_freq = 0

Definition at line 70 of file functions.c.

Referenced by handle_port_61h(), and update_time().

◆ vmem

u8* vmem = (u8 *) (16*1024*1024)

Definition at line 51 of file functions.c.

Referenced by run_bios().