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 <cpu/x86/smm.h>
#include <device/pci.h>
#include <device/pci_ops.h>
#include <soc/pci_devs.h>
#include <soc/systemagent.h>
#include <stdint.h>
Include dependency graph for memmap.c:

Go to the source code of this file.

Macros

#define __SIMPLE_DEVICE__
 

Functions

static uintptr_t dpr_region_start (void)
 
voidcbmem_top_chipset (void)
 
void smm_region (uintptr_t *start, size_t *size)
 
void fill_postcar_frame (struct postcar_frame *pcf)
 

Macro Definition Documentation

◆ __SIMPLE_DEVICE__

#define __SIMPLE_DEVICE__

Definition at line 4 of file memmap.c.

Function Documentation

◆ cbmem_top_chipset()

void* cbmem_top_chipset ( void  )

Definition at line 32 of file memmap.c.

References dpr_region_start().

Here is the call graph for this function:

◆ dpr_region_start()

static uintptr_t dpr_region_start ( void  )
static

Definition at line 15 of file memmap.c.

References ALIGN_DOWN, DPR, DPR_EPM, DPR_SIZE_MASK, HOST_BRIDGE, MiB, and pci_read_config32().

Referenced by cbmem_top_chipset().

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

◆ fill_postcar_frame()

void fill_postcar_frame ( struct postcar_frame pcf)

Definition at line 48 of file memmap.c.

References ALIGN_DOWN, cbmem_top(), MiB, MTRR_TYPE_WRBACK, 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 37 of file memmap.c.

References ALIGN_DOWN, BGSM, HOST_BRIDGE, MiB, pci_read_config32(), and TSEG.

Here is the call graph for this function: