iPXE
efi_image.h
Go to the documentation of this file.
1 #ifndef _IPXE_EFI_IMAGE_H
2 #define _IPXE_EFI_IMAGE_H
3 
4 /** @file
5  *
6  * EFI images
7  *
8  */
9 
10 FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
11 
12 #include <ipxe/image.h>
13 
14 extern struct image_type efi_image_type[] __image_type ( PROBE_NORMAL );
15 
16 /**
17  * Check if EFI image can be loaded directly
18  *
19  * @v image EFI image
20  * @ret can_load EFI image can be loaded directly
21  */
22 static inline int efi_can_load ( struct image *image ) {
23 
24  return ( image->type == efi_image_type );
25 }
26 
27 #endif /* _IPXE_EFI_IMAGE_H */
struct image_type * type
Image type, if known.
Definition: image.h:46
An executable image type.
Definition: image.h:76
#define PROBE_NORMAL
Normal image probe priority.
Definition: image.h:137
An executable image.
Definition: image.h:24
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)
Executable images.
static int efi_can_load(struct image *image)
Check if EFI image can be loaded directly.
Definition: efi_image.h:22
struct image_type efi_image_type [] __image_type(PROBE_NORMAL)