summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
authorMichael Brown2005-05-09 20:01:50 +0200
committerMichael Brown2005-05-09 20:01:50 +0200
commit58ee2c4b2ecf30add8c6f3831225621613e13210 (patch)
tree7062763f417e799e6fb0f33f97e186c0f06a1cbc /src/include
parentProtocols now load data into a buffer; they don't execute it. (diff)
downloadipxe-58ee2c4b2ecf30add8c6f3831225621613e13210.tar.gz
ipxe-58ee2c4b2ecf30add8c6f3831225621613e13210.tar.xz
ipxe-58ee2c4b2ecf30add8c6f3831225621613e13210.zip
First versions
Diffstat (limited to 'src/include')
-rw-r--r--src/include/image.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/include/image.h b/src/include/image.h
new file mode 100644
index 00000000..e8a34b34
--- /dev/null
+++ b/src/include/image.h
@@ -0,0 +1,25 @@
+#ifndef IMAGE_H
+#define IMAGE_H
+
+#include "stdint.h"
+#include "io.h"
+#include "tables.h"
+
+#define IMAGE_HEADER_SIZE 512
+
+struct image_header {
+ char data[IMAGE_HEADER_SIZE];
+};
+
+struct image {
+ char *name;
+ int ( * probe ) ( struct image_header *header, off_t len );
+ int ( * boot ) ( physaddr_t start, off_t len );
+};
+
+#define __image_start __table_start(image)
+#define __image __table(image,01)
+#define __default_image __table(image,02)
+#define __image_end __table_end(image)
+
+#endif /* IMAGE_H */