1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 2 /* 3 * Definitions for LoongArch boot. 4 * 5 * Copyright (C) 2023 Loongson Technology Corporation Limited 6 */ 7 8 #ifndef HW_LOONGARCH_BOOT_H 9 #define HW_LOONGARCH_BOOT_H 10 11 struct loongarch_boot_info { 12 uint64_t ram_size; 13 const char *kernel_filename; 14 const char *kernel_cmdline; 15 const char *initrd_filename; 16 uint64_t a0, a1, a2; 17 }; 18 19 void loongarch_load_kernel(MachineState *ms, struct loongarch_boot_info *info); 20 21 #endif /* HW_LOONGARCH_BOOT_H */ 22