boot.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  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. #ifndef OPENRISC_BOOT_H
  19. #define OPENRISC_BOOT_H
  20. #include "exec/cpu-defs.h"
  21. #include "hw/boards.h"
  22. hwaddr openrisc_load_kernel(ram_addr_t ram_size,
  23. const char *kernel_filename,
  24. uint32_t *bootstrap_pc);
  25. hwaddr openrisc_load_initrd(void *fdt, const char *filename,
  26. hwaddr load_start, uint64_t mem_size);
  27. uint32_t openrisc_load_fdt(MachineState *ms, void *fdt, hwaddr load_start,
  28. uint64_t mem_size);
  29. #endif /* OPENRISC_BOOT_H */