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 <cpu/x86/mtrr.h>
#include <cpu/x86/smm.h>
#include <device/pci_ops.h>
#include <cbmem.h>
#include <security/intel/txt/txt_platform.h>
#include <security/intel/txt/txt_register.h>
#include <types.h>
#include "haswell.h"
Include dependency graph for memmap.c:

Go to the source code of this file.

Macros

#define __SIMPLE_DEVICE__
 

Functions

static uintptr_t northbridge_get_tseg_base (void)
 
static uintptr_t northbridge_get_tseg_limit (void)
 
union dpr_register txt_get_chipset_dpr (void)
 
static uintptr_t top_of_low_usable_memory (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 57 of file memmap.c.

References top_of_low_usable_memory().

Here is the call graph for this function:

◆ fill_postcar_frame()

void fill_postcar_frame ( struct postcar_frame pcf)

Definition at line 70 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:

◆ northbridge_get_tseg_base()

static uintptr_t northbridge_get_tseg_base ( void  )
static

Definition at line 17 of file memmap.c.

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

Referenced by smm_region(), and top_of_low_usable_memory().

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

◆ northbridge_get_tseg_limit()

static uintptr_t northbridge_get_tseg_limit ( void  )
static

Definition at line 22 of file memmap.c.

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

Referenced by smm_region().

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

◆ smm_region()

void smm_region ( uintptr_t start,
size_t size 
)

Definition at line 62 of file memmap.c.

References northbridge_get_tseg_base(), northbridge_get_tseg_limit(), and dpr_register::size.

Here is the call graph for this function:

◆ top_of_low_usable_memory()

static uintptr_t top_of_low_usable_memory ( void  )
static

Definition at line 37 of file memmap.c.

References dpr_register::epm, MiB, northbridge_get_tseg_base(), dpr_register::size, and txt_get_chipset_dpr().

Referenced by cbmem_top_chipset(), and fill_postcar_frame().

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

◆ txt_get_chipset_dpr()

union dpr_register txt_get_chipset_dpr ( void  )

Definition at line 22 of file memmap.c.

Referenced by configure_dpr(), lockdown_intel_txt(), mc_read_resources(), and top_of_low_usable_memory().

Here is the caller graph for this function: