]> git.proxmox.com Git - mirror_qemu.git/blame - include/hw/riscv/boot.h
Merge remote-tracking branch 'remotes/stefanha/tags/tracing-pull-request' into staging
[mirror_qemu.git] / include / hw / riscv / boot.h
CommitLineData
0ac24d56
AF
1/*
2 * QEMU RISC-V Boot Helper
3 *
4 * Copyright (c) 2017 SiFive, Inc.
5 * Copyright (c) 2019 Alistair Francis <alistair.francis@wdc.com>
6 *
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.
10 *
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
14 * more details.
15 *
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/>.
18 */
19
20#ifndef RISCV_BOOT_H
21#define RISCV_BOOT_H
22
ec150c7e
MA
23#include "exec/cpu-defs.h"
24
fdd1bda4
AF
25void riscv_find_and_load_firmware(MachineState *machine,
26 const char *default_machine_firmware,
27 hwaddr firmware_load_addr);
751f8f41 28char *riscv_find_firmware(const char *firmware_filename);
b3042223
AF
29target_ulong riscv_load_firmware(const char *firmware_filename,
30 hwaddr firmware_load_addr);
0ac24d56
AF
31target_ulong riscv_load_kernel(const char *kernel_filename);
32hwaddr riscv_load_initrd(const char *filename, uint64_t mem_size,
33 uint64_t kernel_entry, hwaddr *start);
34
35#endif /* RISCV_BOOT_H */