| 1 | /* |
| 2 | * QEMU OpenRISC boot helpers. |
| 3 | * |
| 4 | * Copyright (c) 2022 Stafford Horne <shorne@gmail.com> |
| 5 | * |
| 6 | * This program is free software; you can redistribute it and/or modify it |
| 7 | * under the terms and conditions of the GNU General Public License, |
| 8 | * version 2 or later, as published by the Free Software Foundation. |
| 9 | * |
| 10 | * This program is distributed in the hope it will be useful, but WITHOUT |
| 11 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
| 12 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for |
| 13 | * more details. |
| 14 | * |
| 15 | * You should have received a copy of the GNU General Public License along with |
| 16 | * this program. If not, see <http://www.gnu.org/licenses/>. |
| 17 | */ |
| 18 | |
| 19 | #ifndef OR1K_BOOT_H |
| 20 | #define OR1K_BOOT_H |
| 21 | |
| 22 | #include "exec/cpu-defs.h" |
| 23 | #include "hw/core/boards.h" |
| 24 | |
| 25 | hwaddr openrisc_load_kernel(ram_addr_t ram_size, |
| 26 | const char *kernel_filename, |
| 27 | uint32_t *bootstrap_pc); |
| 28 | |
| 29 | hwaddr openrisc_load_initrd(void *fdt, const char *filename, |
| 30 | hwaddr load_start, uint64_t mem_size); |
| 31 | |
| 32 | uint32_t openrisc_load_fdt(MachineState *ms, void *fdt, hwaddr load_start, |
| 33 | uint64_t mem_size); |
| 34 | |
| 35 | #endif /* OR1K_BOOT_H */ |