Ronald G. Minnich | 9831244 | 2016-02-12 22:37:48 +0000 | [diff] [blame] | 1 | /* |
| 2 | * This file is part of the coreboot project. |
| 3 | * |
| 4 | * Copyright 2015 Google Inc. |
| 5 | * |
| 6 | * This program is free software; you can redistribute it and/or |
| 7 | * modify it under the terms of the GNU General Public License as |
| 8 | * published by the Free Software Foundation; version 2 of |
| 9 | * the License. |
| 10 | * |
| 11 | * This program is distributed in the hope that it will be useful, |
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 | * GNU General Public License for more details. |
| 15 | */ |
| 16 | #include <boot_device.h> |
| 17 | |
| 18 | /* This assumes that the CBFS resides at 0x0, which is true for the default |
| 19 | * configuration. */ |
| 20 | static const struct mem_region_device boot_dev = |
Antonello Dettori | e5f48d2 | 2016-06-22 21:09:08 +0200 | [diff] [blame] | 21 | MEM_REGION_DEV_RO_INIT(NULL, CONFIG_ROM_SIZE); |
Ronald G. Minnich | 9831244 | 2016-02-12 22:37:48 +0000 | [diff] [blame] | 22 | |
| 23 | const struct region_device *boot_device_ro(void) |
| 24 | { |
| 25 | return &boot_dev.rdev; |
| 26 | } |