blob: cb0b2757aa5937c65c6a30989609af8d8533d335 [file] [log] [blame]
Hung-Te Lin7635a602013-02-12 00:07:38 +08001/*
2 * This file is part of the coreboot project.
3 *
4 * Copyright (C) 2013 Google, Inc.
5 *
6 * This software is licensed under the terms of the GNU General Public
7 * License version 2, as published by the Free Software Foundation, and
8 * may be copied, distributed, and modified under those terms.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 */
Aaron Durbinc6588c52015-05-15 13:15:34 -050015#include <boot_device.h>
Hung-Te Lin7635a602013-02-12 00:07:38 +080016
Aaron Durbinc6588c52015-05-15 13:15:34 -050017/* Maps directly to qemu memory mapped space of 0x10000 up to rom size. */
Aaron Durbin899d13d2015-05-15 23:39:23 -050018static const struct mem_region_device boot_dev =
Aaron Durbinc6588c52015-05-15 13:15:34 -050019 MEM_REGION_DEV_INIT((void *)0x10000, CONFIG_ROM_SIZE);
20
21const struct region_device *boot_device_ro(void)
22{
Aaron Durbin899d13d2015-05-15 23:39:23 -050023 return &boot_dev.rdev;
Hung-Te Lin7635a602013-02-12 00:07:38 +080024}