iPXE
efi_shim.h
Go to the documentation of this file.
1#ifndef _IPXE_EFI_SHIM_H
2#define _IPXE_EFI_SHIM_H
3
4/** @file
5 *
6 * UEFI shim special handling
7 *
8 */
9
10FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
11FILE_SECBOOT ( PERMITTED );
12
13#include <ipxe/image.h>
14#include <ipxe/efi/efi.h>
15
17extern int efi_shim_allow_pxe;
18extern int efi_shim_allow_sbat;
19extern struct image_tag efi_shim __image_tag;
20
21extern int efi_shim_install ( struct image *shim, EFI_HANDLE handle,
22 wchar_t **cmdline );
23extern void efi_shim_uninstall ( void );
24
25#endif /* _IPXE_EFI_SHIM_H */
int efi_shim_allow_pxe
Allow use of PXE base code protocol.
Definition efi_shim.c:87
int efi_shim_require_loader
Require use of a third party loader binary.
Definition efi_shim.c:69
int efi_shim_allow_sbat
Allow SBAT variable access.
Definition efi_shim.c:107
void efi_shim_uninstall(void)
Uninstall UEFI shim special handling.
Definition efi_shim.c:375
int efi_shim_install(struct image *shim, EFI_HANDLE handle, wchar_t **cmdline)
Install UEFI shim special handling.
Definition efi_shim.c:341
#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 __image_tag
An image tag.
Definition image.h:184
EFI API.
#define EFI_HANDLE
Definition efi.h:53
uint16_t handle
Handle.
Definition smbios.h:5
uint32_t cmdline
Definition multiboot.h:4
int shim(struct image *image, int require_loader, int allow_pxe, int allow_sbat)
Set shim image.
Definition shimmgmt.c:46
An image tag.
Definition image.h:173
An executable image.
Definition image.h:24