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
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
,
34 #endif /* OPENRISC_BOOT_H */