2 * QEMU RISC-V Boot Helper
4 * Copyright (c) 2017 SiFive, Inc.
5 * Copyright (c) 2019 Alistair Francis <alistair.francis@wdc.com>
7 * This program is free software; you can redistribute it and/or modify it
8 * under the terms and conditions of the GNU General Public License,
9 * version 2 or later, as published by the Free Software Foundation.
11 * This program is distributed in the hope it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
16 * You should have received a copy of the GNU General Public License along with
17 * this program. If not, see <http://www.gnu.org/licenses/>.
23 #include "exec/cpu-defs.h"
24 #include "hw/loader.h"
26 void riscv_find_and_load_firmware(MachineState
*machine
,
27 const char *default_machine_firmware
,
28 hwaddr firmware_load_addr
,
30 char *riscv_find_firmware(const char *firmware_filename
);
31 target_ulong
riscv_load_firmware(const char *firmware_filename
,
32 hwaddr firmware_load_addr
,
34 target_ulong
riscv_load_kernel(const char *kernel_filename
,
36 hwaddr
riscv_load_initrd(const char *filename
, uint64_t mem_size
,
37 uint64_t kernel_entry
, hwaddr
*start
);
39 #endif /* RISCV_BOOT_H */