coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
memmap.c File Reference
#include <device/pci_ops.h>
#include <arch/romstage.h>
#include <cbmem.h>
#include "i945.h"
#include <console/console.h>
#include <cpu/x86/mtrr.h>
#include <cpu/x86/smm.h>
#include <program_loading.h>
#include <cpu/intel/smm_reloc.h>
#include <types.h>
Include dependency graph for memmap.c:

Go to the source code of this file.

Macros

#define __SIMPLE_DEVICE__
 

Functions

u32 decode_tseg_size (const u8 esmramc)
 
static uintptr_t northbridge_get_tseg_base (void)
 
static size_t northbridge_get_tseg_size (void)
 
voidcbmem_top_chipset (void)
 
u32 decode_igd_memory_size (const u32 gms)
 
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 61 of file memmap.c.

References ALIGN_DOWN, MiB, and northbridge_get_tseg_base().

Here is the call graph for this function:

◆ decode_igd_memory_size()

u32 decode_igd_memory_size ( const u32  gms)

Definition at line 68 of file memmap.c.

References ARRAY_SIZE, and die().

Here is the call graph for this function:

◆ decode_tseg_size()

u32 decode_tseg_size ( const u8  esmramc)

Definition at line 18 of file memmap.c.

References die().

Referenced by mch_domain_read_resources().

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 84 of file memmap.c.

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

References BSM, decode_tseg_size(), DEVEN, DEVEN_D2F0, DEVEN_D2F1, ESMRAMC, HOST_BRIDGE, IGD_DEV, pci_read_config32(), pci_read_config8(), and TOLUD.

Referenced by cbmem_top_chipset(), fill_postcar_frame(), and smm_region().

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

◆ northbridge_get_tseg_size()

static size_t northbridge_get_tseg_size ( void  )
static

Definition at line 50 of file memmap.c.

References decode_tseg_size(), ESMRAMC, HOST_BRIDGE, and pci_read_config8().

Referenced by fill_postcar_frame(), and 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 78 of file memmap.c.

References northbridge_get_tseg_base(), and northbridge_get_tseg_size().

Here is the call graph for this function: