diff options
author | 2023-10-10 14:33:42 +0000 | |
---|---|---|
committer | 2023-10-10 14:33:42 +0000 | |
commit | af1a266670d040d2f4083ff309d732d648afba2a (patch) | |
tree | 2fc46203448ddcc6f81546d379abfaeb323575e9 /roms/qboot/include/linuxboot.h | |
parent | e02cda008591317b1625707ff8e115a4841aa889 (diff) |
Change-Id: Iaf8d18082d3991dec7c0ebbea540f092188eb4ec
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 |