aboutsummaryrefslogtreecommitdiffstats
path: root/roms/qboot/include/linuxboot.h
diff options
context:
space:
mode:
authorAngelos Mouzakitis <a.mouzakitis@virtualopensystems.com>2023-10-10 14:33:42 +0000
committerAngelos Mouzakitis <a.mouzakitis@virtualopensystems.com>2023-10-10 14:33:42 +0000
commitaf1a266670d040d2f4083ff309d732d648afba2a (patch)
tree2fc46203448ddcc6f81546d379abfaeb323575e9 /roms/qboot/include/linuxboot.h
parente02cda008591317b1625707ff8e115a4841aa889 (diff)
Add submodule dependency filesHEADmaster
Change-Id: Iaf8d18082d3991dec7c0ebbea540f092188eb4ec
Diffstat (limited to 'roms/qboot/include/linuxboot.h')
-rw-r--r--roms/qboot/include/linuxboot.h19
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