coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
rom_media.c
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 #include <boot_device.h>
3 #include <symbols.h>
4 
5 /* This assumes that the CBFS resides at start of dram, which is true for the
6  * default configuration. */
7 static const struct mem_region_device boot_dev =
8  MEM_REGION_DEV_RO_INIT(_sram, CONFIG_ROM_SIZE);
9 
10 const struct region_device *boot_device_ro(void)
11 {
12  return &boot_dev.rdev;
13 }
const struct region_device * boot_device_ro(void)
Definition: rom_media.c:9
static const struct mem_region_device boot_dev
Definition: rom_media.c:7
#define MEM_REGION_DEV_RO_INIT(base_, size_)
Definition: region.h:208
struct region_device rdev
Definition: region.h:184