You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

image.h 635B

1234567891011121314151617181920212223242526
  1. #ifndef IMAGE_H
  2. #define IMAGE_H
  3. #include "stdint.h"
  4. #include "io.h"
  5. #include <gpxe/tables.h>
  6. #include "dev.h"
  7. struct image {
  8. char *name;
  9. int ( * probe ) ( physaddr_t data, off_t len, void **context );
  10. int ( * load ) ( physaddr_t data, off_t len, void *context );
  11. int ( * boot ) ( void *context );
  12. };
  13. #define __image_start __table_start(image)
  14. #define __image __table(image,01)
  15. #define __default_image __table(image,02)
  16. #define __image_end __table_end(image)
  17. /* Functions in image.c */
  18. extern void print_images ( void );
  19. extern int autoload ( struct dev *dev, struct image **image, void **context );
  20. #endif /* IMAGE_H */