summaryrefslogtreecommitdiffstats
path: root/src/include/image.h
diff options
context:
space:
mode:
authorMichael Brown2005-05-17 15:38:24 +0200
committerMichael Brown2005-05-17 15:38:24 +0200
commit0571dcdb054cd32f8658bf0a22be85ebe8a92dfb (patch)
treed46b707eb6fcf73b3a0c916e4f231d9c96cde44c /src/include/image.h
parentMoved find_segment into elf_loader.c (diff)
downloadipxe-0571dcdb054cd32f8658bf0a22be85ebe8a92dfb.tar.gz
ipxe-0571dcdb054cd32f8658bf0a22be85ebe8a92dfb.tar.xz
ipxe-0571dcdb054cd32f8658bf0a22be85ebe8a92dfb.zip
Added print_images() and autoload().
Diffstat (limited to 'src/include/image.h')
-rw-r--r--src/include/image.h17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/include/image.h b/src/include/image.h
index e8a34b34..0aff17c0 100644
--- a/src/include/image.h
+++ b/src/include/image.h
@@ -4,17 +4,13 @@
#include "stdint.h"
#include "io.h"
#include "tables.h"
-
-#define IMAGE_HEADER_SIZE 512
-
-struct image_header {
- char data[IMAGE_HEADER_SIZE];
-};
+#include "dev.h"
struct image {
char *name;
- int ( * probe ) ( struct image_header *header, off_t len );
- int ( * boot ) ( physaddr_t start, off_t len );
+ int ( * probe ) ( physaddr_t data, off_t len, void **context );
+ int ( * load ) ( physaddr_t data, off_t len, void *context );
+ int ( * boot ) ( void *context );
};
#define __image_start __table_start(image)
@@ -22,4 +18,9 @@ struct image {
#define __default_image __table(image,02)
#define __image_end __table_end(image)
+/* Functions in image.c */
+
+extern void print_images ( void );
+extern int autoload ( struct dev *dev, struct image **image, void **context );
+
#endif /* IMAGE_H */