coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
memmap.c File Reference
#include <arch/romstage.h>
#include <cbmem.h>
#include <assert.h>
#include <cpu/x86/mtrr.h>
#include <cpu/x86/smm.h>
#include <device/device.h>
#include <device/pci_def.h>
#include <device/pci_ops.h>
#include <soc/pci_devs.h>
#include <soc/systemagent.h>
Include dependency graph for memmap.c:

Go to the source code of this file.

Functions

static uintptr_t system_agent_region_base (size_t reg)
 
static uintptr_t smm_region_start (void)
 
static size_t smm_region_size (void)
 
void smm_region (uintptr_t *start, size_t *size)
 
void fill_postcar_frame (struct postcar_frame *pcf)
 

Function Documentation

◆ fill_postcar_frame()

void fill_postcar_frame ( struct postcar_frame pcf)

Definition at line 42 of file memmap.c.

References cbmem_top(), MiB, MTRR_TYPE_WRBACK, postcar_enable_tseg_cache(), and postcar_frame_add_mtrr().

Here is the call graph for this function:

◆ smm_region()

void smm_region ( uintptr_t start,
size_t size 
)

Definition at line 36 of file memmap.c.

References smm_region_size(), and smm_region_start().

Here is the call graph for this function:

◆ smm_region_size()

static size_t smm_region_size ( void  )
inlinestatic

Definition at line 31 of file memmap.c.

References smm_region_start(), system_agent_region_base(), and TOLUD.

Referenced by smm_region().

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

◆ smm_region_start()

static uintptr_t smm_region_start ( void  )
inlinestatic

Definition at line 26 of file memmap.c.

References system_agent_region_base(), and TSEGMB.

Referenced by smm_region(), and smm_region_size().

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

◆ system_agent_region_base()

static uintptr_t system_agent_region_base ( size_t  reg)
inlinestatic

Definition at line 15 of file memmap.c.

References ALIGN_DOWN, MiB, pci_read_config32(), pcidev_path_on_root(), SA_DEV_ROOT, and SA_DEVFN_ROOT.

Referenced by smm_region_size(), and smm_region_start().

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