coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
mmu.c File Reference
#include <arch/cache.h>
#include <soc/soc_services.h>
#include <symbols.h>
#include "mmu.h"
Include dependency graph for mmu.c:

Go to the source code of this file.

Macros

#define RPM_START   ((uintptr_t)_rpm / KiB)
 
#define RPM_END   ((uintptr_t)_erpm / KiB)
 
#define RPM_SIZE   (RPM_END - RPM_START)
 
#define SRAM_START   ((uintptr_t)_sram / KiB)
 
#define SRAM_END   ((uintptr_t)_esram / KiB)
 
#define DRAM_START   ((uintptr_t)_dram / MiB)
 
#define DRAM_SIZE   (CONFIG_DRAM_SIZE_MB)
 
#define DRAM_END   (DRAM_START + DRAM_SIZE)
 
#define DMA_START   ((uintptr_t)_dma_coherent / MiB)
 
#define DMA_SIZE   (REGION_SIZE(dma_coherent) / MiB)
 

Functions

void setup_dram_mappings (enum dram_state dram)
 
void setup_mmu (enum dram_state dram)
 

Macro Definition Documentation

◆ DMA_SIZE

#define DMA_SIZE   (REGION_SIZE(dma_coherent) / MiB)

Definition at line 20 of file mmu.c.

◆ DMA_START

#define DMA_START   ((uintptr_t)_dma_coherent / MiB)

Definition at line 19 of file mmu.c.

◆ DRAM_END

#define DRAM_END   (DRAM_START + DRAM_SIZE)

Definition at line 16 of file mmu.c.

◆ DRAM_SIZE

#define DRAM_SIZE   (CONFIG_DRAM_SIZE_MB)

Definition at line 15 of file mmu.c.

◆ DRAM_START

#define DRAM_START   ((uintptr_t)_dram / MiB)

Definition at line 14 of file mmu.c.

◆ RPM_END

#define RPM_END   ((uintptr_t)_erpm / KiB)

Definition at line 10 of file mmu.c.

◆ RPM_SIZE

#define RPM_SIZE   (RPM_END - RPM_START)

Definition at line 11 of file mmu.c.

◆ RPM_START

#define RPM_START   ((uintptr_t)_rpm / KiB)

Definition at line 9 of file mmu.c.

◆ SRAM_END

#define SRAM_END   ((uintptr_t)_esram / KiB)

Definition at line 13 of file mmu.c.

◆ SRAM_START

#define SRAM_START   ((uintptr_t)_sram / KiB)

Definition at line 12 of file mmu.c.

Function Documentation

◆ setup_dram_mappings()

void setup_dram_mappings ( enum dram_state  dram)

Definition at line 22 of file mmu.c.

References DCACHE_OFF, DCACHE_WRITEBACK, DMA_SIZE, DMA_START, DRAM_INITIALIZED, DRAM_SIZE, DRAM_START, ENV_ROMSTAGE, ipq_cbmem_backing_store_ready(), mmu_config_range(), and mmu_disable_range().

Here is the call graph for this function:

◆ setup_mmu()