Merge remote-tracking branch 'qemu-project/master'
[qemu/ar7.git] / include / hw / openrisc / boot.h
blob25a313d63a1c3288d71b78e8e6c6c0ff5565f5ec
1 /*
2 * QEMU OpenRISC boot helpers.
4 * Copyright (c) 2022 Stafford Horne <shorne@gmail.com>
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.
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.
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/>.
19 #ifndef OPENRISC_BOOT_H
20 #define OPENRISC_BOOT_H
22 #include "exec/cpu-defs.h"
24 hwaddr openrisc_load_kernel(ram_addr_t ram_size,
25 const char *kernel_filename,
26 uint32_t *bootstrap_pc);
28 hwaddr openrisc_load_initrd(void *fdt, const char *filename,
29 hwaddr load_start, uint64_t mem_size);
31 uint32_t openrisc_load_fdt(void *fdt, hwaddr load_start,
32 uint64_t mem_size);
34 #endif /* OPENRISC_BOOT_H */