2005-05-09 18:01:50 +00:00
|
|
|
#ifndef IMAGE_H
|
|
|
|
#define IMAGE_H
|
|
|
|
|
|
|
|
#include "stdint.h"
|
|
|
|
#include "io.h"
|
|
|
|
#include "tables.h"
|
2005-05-17 13:38:24 +00:00
|
|
|
#include "dev.h"
|
2005-05-09 18:01:50 +00:00
|
|
|
|
|
|
|
struct image {
|
|
|
|
char *name;
|
2005-05-17 13:38:24 +00:00
|
|
|
int ( * probe ) ( physaddr_t data, off_t len, void **context );
|
|
|
|
int ( * load ) ( physaddr_t data, off_t len, void *context );
|
|
|
|
int ( * boot ) ( void *context );
|
2005-05-09 18:01:50 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#define __image_start __table_start(image)
|
|
|
|
#define __image __table(image,01)
|
|
|
|
#define __default_image __table(image,02)
|
|
|
|
#define __image_end __table_end(image)
|
|
|
|
|
2005-05-17 13:38:24 +00:00
|
|
|
/* Functions in image.c */
|
|
|
|
|
|
|
|
extern void print_images ( void );
|
|
|
|
extern int autoload ( struct dev *dev, struct image **image, void **context );
|
|
|
|
|
2005-05-09 18:01:50 +00:00
|
|
|
#endif /* IMAGE_H */
|