coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
mmap_boot.c File Reference
#include <boot_device.h>
#include <endian.h>
#include <spi_flash.h>
Include dependency graph for mmap_boot.c:

Go to the source code of this file.

Macros

#define rom_base   ((void *)(uintptr_t)(0x100000000ULL-CONFIG_ROM_SIZE))
 

Functions

const struct region_deviceboot_device_ro (void)
 
uint32_t spi_flash_get_mmap_windows (struct flash_mmap_window *table)
 

Variables

static const struct mem_region_device boot_dev
 

Macro Definition Documentation

◆ rom_base

#define rom_base   ((void *)(uintptr_t)(0x100000000ULL-CONFIG_ROM_SIZE))

Definition at line 8 of file mmap_boot.c.

Function Documentation

◆ boot_device_ro()

const struct region_device* boot_device_ro ( void  )

Definition at line 13 of file mmap_boot.c.

References boot_dev, and mem_region_device::rdev.

◆ spi_flash_get_mmap_windows()

uint32_t spi_flash_get_mmap_windows ( struct flash_mmap_window table)

Definition at line 18 of file mmap_boot.c.

References flash_mmap_window::flash_base, flash_mmap_window::host_base, rom_base, and flash_mmap_window::size.

Referenced by lb_spi_flash().

Here is the caller graph for this function:

Variable Documentation

◆ boot_dev

const struct mem_region_device boot_dev
static
Initial value:
=
MEM_REGION_DEV_RO_INIT(rom_base, CONFIG_ROM_SIZE)
#define rom_base
Definition: mmap_boot.c:8
#define MEM_REGION_DEV_RO_INIT(base_, size_)
Definition: region.h:208

Definition at line 1 of file mmap_boot.c.

Referenced by boot_device_ro().