diff options
Diffstat (limited to 'roms/qboot/include/linuxboot.h')
-rw-r--r-- | roms/qboot/include/linuxboot.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/roms/qboot/include/linuxboot.h b/roms/qboot/include/linuxboot.h new file mode 100644 index 000000000..6e865f0f2 --- /dev/null +++ b/roms/qboot/include/linuxboot.h @@ -0,0 +1,19 @@ +#ifndef BIOS_LINUXBOOT_H +#define BIOS_LINUXBOOT_H 1 + +#include <stdbool.h> + +struct linuxboot_args { + /* Output */ + void *setup_addr, *cmdline_addr, *kernel_addr, *initrd_addr; + uint32_t setup_size, kernel_size; + + /* Input */ + uint32_t cmdline_size, vmlinuz_size, initrd_size; + uint8_t header[8192]; +}; + +bool parse_bzimage(struct linuxboot_args *args); +void boot_bzimage(struct linuxboot_args *args); + +#endif |