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
10FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
11FILE_SECBOOT ( PERMITTED );
12
13#include <ipxe/image.h>
14
15extern struct image_type efi_image_type[] __image_type ( PROBE_NORMAL );
16
17/**
18 * Check if EFI image can be loaded directly
19 *
20 * @v image EFI image
21 * @ret can_load EFI image can be loaded directly
22 */
23static inline int efi_can_load ( struct image *image ) {
24
25 return ( image->type == efi_image_type );
26}
27
28#endif /* _IPXE_EFI_IMAGE_H */
static int efi_can_load(struct image *image)
Check if EFI image can be loaded directly.
Definition efi_image.h:23
#define FILE_LICENCE(_licence)
Declare a particular licence as applying to a file.
Definition compiler.h:896
#define FILE_SECBOOT(_status)
Declare a file's UEFI Secure Boot permission status.
Definition compiler.h:926
Executable images.
#define PROBE_NORMAL
Normal image probe priority.
Definition image.h:156
#define __image_type(probe_order)
An executable image type.
Definition image.h:170
An executable image type.
Definition image.h:95
An executable image.
Definition image.h:24
struct image_type * type
Image type, if known.
Definition image.h:59