xref: /openbmc/qemu/include/hw/openrisc/boot.h (revision 2df1eb27)
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 OPENRISC_BOOT_H
20 #define OPENRISC_BOOT_H
21 
22 #include "exec/cpu-defs.h"
23 
24 hwaddr openrisc_load_kernel(ram_addr_t ram_size,
25                             const char *kernel_filename,
26                             uint32_t *bootstrap_pc);
27 
28 hwaddr openrisc_load_initrd(void *fdt, const char *filename,
29                             hwaddr load_start, uint64_t mem_size);
30 
31 uint32_t openrisc_load_fdt(void *fdt, hwaddr load_start,
32                            uint64_t mem_size);
33 
34 #endif /* OPENRISC_BOOT_H */
35