summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
Diffstat (limited to 'src/include')
-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 e8a34b34a..0aff17c07 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 */