aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2015-05-21 16:19:33 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2015-05-21 16:19:33 +0200
commitcda6fd5ebdc7f3138c1211b02f08960f71d7f2a3 (patch)
tree2f051e0724c6170e7712e0ab9d8b40a88886950c /include
parentd587244546f886b8923449f3a8f946a9326bcb4f (diff)
downloadqboot-cda6fd5ebdc7f3138c1211b02f08960f71d7f2a3.zip
qboot-cda6fd5ebdc7f3138c1211b02f08960f71d7f2a3.tar.gz
qboot-cda6fd5ebdc7f3138c1211b02f08960f71d7f2a3.tar.bz2
commit missing file
reported by Kashyap Chamarty Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/linuxboot.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/include/linuxboot.h b/include/linuxboot.h
new file mode 100644
index 0000000..76a3354
--- /dev/null
+++ b/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