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 <commonlib/region.h>
#include <console/console.h>
#include <fmap.h>
#include <intelblocks/fast_spi.h>
#include <spi_flash.h>
Include dependency graph for mmap_boot.c:

Go to the source code of this file.

Functions

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

Variables

static size_t bios_size
 
static struct region_device shadow_dev
 
static struct xlate_region_device real_dev
 
static struct xlate_window real_dev_window
 

Function Documentation

◆ bios_mmap_init()

static void bios_mmap_init ( void  )
static

◆ boot_device_ro()

const struct region_device* boot_device_ro ( void  )

Definition at line 88 of file mmap_boot.c.

References bios_mmap_init(), xlate_region_device::rdev, and real_dev.

Here is the call graph for this function:

◆ spi_flash_get_mmap_windows()

uint32_t spi_flash_get_mmap_windows ( struct flash_mmap_window table)

Variable Documentation

◆ bios_size

size_t bios_size
static

◆ real_dev

struct xlate_region_device real_dev
static

Definition at line 43 of file mmap_boot.c.

Referenced by bios_mmap_init(), and boot_device_ro().

◆ real_dev_window

struct xlate_window real_dev_window
static

Definition at line 43 of file mmap_boot.c.

Referenced by bios_mmap_init(), and spi_flash_get_mmap_windows().

◆ shadow_dev

struct region_device shadow_dev
static

Definition at line 43 of file mmap_boot.c.

Referenced by bios_mmap_init(), and spi_flash_get_mmap_windows().