2007-07-05 16:02:11 +00:00
|
|
|
#ifndef __BOOT_H
|
|
|
|
#define __BOOT_H
|
|
|
|
|
2007-11-28 08:03:27 +00:00
|
|
|
#include <image.h>
|
2009-11-02 13:31:18 +00:00
|
|
|
#include <linux/list.h>
|
2007-11-28 08:03:27 +00:00
|
|
|
|
2008-02-20 18:01:54 +00:00
|
|
|
struct image_data {
|
|
|
|
struct image_handle *os;
|
|
|
|
struct image_handle *initrd;
|
|
|
|
const char *oftree;
|
|
|
|
int verify;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct image_handler {
|
|
|
|
struct list_head list;
|
|
|
|
|
|
|
|
char *cmdline_options;
|
|
|
|
int (*cmdline_parse)(struct image_data *data, int opt, char *optarg);
|
|
|
|
char *help_string;
|
|
|
|
|
|
|
|
int image_type;
|
|
|
|
int (*bootm)(struct image_data *data);
|
|
|
|
};
|
|
|
|
|
|
|
|
int register_image_handler(struct image_handler *handle);
|
2007-07-05 16:02:11 +00:00
|
|
|
|
|
|
|
#endif /* __BOOT_H */
|
|
|
|
|