mirror of
https://github.com/ipxe/ipxe
synced 2025-12-24 15:23:42 +03:00
Added print_images() and autoload().
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user