coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
refcode_loader.c File Reference
#include <cbfs.h>
#include <cbmem.h>
#include <rmodule.h>
#include <stage_cache.h>
#include <amdblocks/agesawrapper.h>
#include <amdblocks/image.h>
Include dependency graph for refcode_loader.c:

Go to the source code of this file.

Functions

static voidagesa_map_raw_file (const char *name, size_t *size)
 
static voidagesa_map_stage_file_early (const char *name, size_t *size)
 
static voidagesa_map_stage_file_ramstage (const char *name, size_t *size)
 
static voidagesa_map_stage_file (const char *name, size_t *size)
 
static const char * get_agesa_cbfs_name (void)
 
const voidagesawrapper_locate_module (const char name[8])
 
MODULE_ENTRY agesa_get_dispatcher (void)
 

Variables

static MODULE_ENTRY agesa_dispatcher
 

Function Documentation

◆ agesa_get_dispatcher()

MODULE_ENTRY agesa_get_dispatcher ( void  )

Definition at line 89 of file refcode_loader.c.

References agesa_dispatcher, agesawrapper_locate_module(), and NULL.

Referenced by module_dispatch().

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

◆ agesa_map_raw_file()

static void* agesa_map_raw_file ( const char *  name,
size_t size 
)
static

Definition at line 10 of file refcode_loader.c.

References cbfs_type_map(), CBFS_TYPE_RAW, name, and type.

Referenced by agesawrapper_locate_module().

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

◆ agesa_map_stage_file()

static void* agesa_map_stage_file ( const char *  name,
size_t size 
)
static

Definition at line 43 of file refcode_loader.c.

References agesa_map_stage_file_early(), agesa_map_stage_file_ramstage(), CONFIG, ENV_RAMSTAGE, and name.

Referenced by agesawrapper_locate_module().

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

◆ agesa_map_stage_file_early()

static void* agesa_map_stage_file_early ( const char *  name,
size_t size 
)
static

Definition at line 16 of file refcode_loader.c.

References cbfs_type_map(), CBFS_TYPE_STAGE, name, and type.

Referenced by agesa_map_stage_file().

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

◆ agesa_map_stage_file_ramstage()

static void* agesa_map_stage_file_ramstage ( const char *  name,
size_t size 
)
static

Definition at line 22 of file refcode_loader.c.

References rmod_stage_load::cbmem_id, CBMEM_ID_REFCODE, name, NULL, rmod_stage_load::prog, PROG_INIT, PROG_REFCODE, prog_size(), prog_start(), resume_from_stage_cache(), rmodule_stage_load(), stage_cache_add(), stage_cache_load_stage(), and STAGE_REFCODE.

Referenced by agesa_map_stage_file().

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

◆ agesawrapper_locate_module()

const void* agesawrapper_locate_module ( const char  name[8])

Definition at line 59 of file refcode_loader.c.

References agesa_map_raw_file(), agesa_map_stage_file(), amd_find_image(), assert, CONFIG, get_agesa_cbfs_name(), _AMD_IMAGE_HEADER::ModuleInfoOffset, name, and NULL.

Referenced by agesa_get_dispatcher().

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

◆ get_agesa_cbfs_name()

static const char* get_agesa_cbfs_name ( void  )
static

Definition at line 50 of file refcode_loader.c.

References CONFIG, and ENV_RAMSTAGE.

Referenced by agesawrapper_locate_module().

Here is the caller graph for this function:

Variable Documentation

◆ agesa_dispatcher

MODULE_ENTRY agesa_dispatcher
static

Definition at line 87 of file refcode_loader.c.

Referenced by agesa_get_dispatcher().