2008-10-12 01:55:55 +01:00
|
|
|
#ifndef CONFIG_DEFAULTS_EFI_H
|
|
|
|
|
#define CONFIG_DEFAULTS_EFI_H
|
|
|
|
|
|
|
|
|
|
/** @file
|
|
|
|
|
*
|
|
|
|
|
* Configuration defaults for EFI
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|
2015-04-14 10:56:20 +01:00
|
|
|
FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
|
2026-01-14 13:25:34 +00:00
|
|
|
FILE_SECBOOT ( PERMITTED );
|
2013-07-15 12:30:57 +02:00
|
|
|
|
2024-10-25 14:21:27 +01:00
|
|
|
#define UACCESS_FLAT
|
2016-02-26 15:33:40 +00:00
|
|
|
#define IOMAP_VIRT
|
2008-10-12 01:55:55 +01:00
|
|
|
#define PCIAPI_EFI
|
2020-11-04 15:18:49 +00:00
|
|
|
#define DMAAPI_OP
|
2008-10-12 01:55:55 +01:00
|
|
|
#define CONSOLE_EFI
|
|
|
|
|
#define TIMER_EFI
|
|
|
|
|
#define UMALLOC_EFI
|
2025-05-14 22:19:54 +01:00
|
|
|
#define MEMMAP_NULL
|
2008-12-04 23:09:48 +00:00
|
|
|
#define SMBIOS_EFI
|
2016-11-16 22:22:22 +00:00
|
|
|
#define SANBOOT_EFI
|
2011-02-17 00:31:38 +00:00
|
|
|
#define BOFM_EFI
|
2023-02-20 14:08:49 +00:00
|
|
|
#define ENTROPY_EFITICK
|
|
|
|
|
#define ENTROPY_EFIRNG
|
2015-04-14 11:55:08 +01:00
|
|
|
#define TIME_EFI
|
2013-03-22 13:42:16 +00:00
|
|
|
#define REBOOT_EFI
|
2017-05-23 18:32:31 +01:00
|
|
|
#define ACPI_EFI
|
2024-03-13 15:16:47 +00:00
|
|
|
#define MPAPI_EFI
|
2024-09-13 14:26:34 +01:00
|
|
|
#define NAP_EFI
|
2025-11-05 14:19:56 +00:00
|
|
|
#define SERIAL_SPCR
|
2008-10-12 01:55:55 +01:00
|
|
|
|
2015-09-10 17:22:03 +01:00
|
|
|
#define USB_HCD_XHCI /* xHCI USB host controller */
|
|
|
|
|
#define USB_HCD_EHCI /* EHCI USB host controller */
|
|
|
|
|
#define USB_HCD_UHCI /* UHCI USB host controller */
|
|
|
|
|
#define USB_EFI /* Provide EFI_USB_IO_PROTOCOL interface */
|
2020-10-12 15:31:49 +01:00
|
|
|
#define USB_BLOCK /* USB block devices */
|
2015-09-10 17:22:03 +01:00
|
|
|
|
[efi] Provide read-only access to EFI variables via settings mechanism
EFI variables do not map neatly to the iPXE settings mechanism, since
the EFI variable identifier includes a namespace GUID that cannot
cleanly be supplied as part of a setting name. Creating a new EFI
variable requires the variable's attributes to be specified, which
does not fit within iPXE's settings concept.
However, EFI variable names are generally unique even without the
namespace GUID, and EFI does provide a mechanism to iterate over all
existent variables. We can therefore provide read-only access to EFI
variables by comparing only the names and ignoring the namespace
GUIDs.
Provide an "efi" settings block that implements this mechanism using a
syntax such as:
echo Platform language is ${efi/PlatformLang:string}
show efi/SecureBoot:int8
Settings are returned as raw binary values by default since an EFI
variable may contain boolean flags, integer values, ASCII strings,
UCS-2 strings, EFI device paths, X.509 certificates, or any other
arbitrary blob of data.
Signed-off-by: Michael Brown <mcb30@ipxe.org>
2023-06-09 14:03:48 +01:00
|
|
|
#define EFI_SETTINGS /* EFI variable settings */
|
|
|
|
|
|
2025-03-13 14:04:26 +00:00
|
|
|
#define CERTS_EFI /* EFI certificate sources */
|
|
|
|
|
|
2015-10-19 20:01:19 +01:00
|
|
|
#if defined ( __i386__ ) || defined ( __x86_64__ )
|
|
|
|
|
#define IOAPI_X86
|
2023-02-17 16:56:11 +00:00
|
|
|
#define ENTROPY_RDRAND
|
2020-07-07 13:49:17 +01:00
|
|
|
#define UNSAFE_STD /* Avoid setting direction flag */
|
2026-01-16 12:05:38 +00:00
|
|
|
#define FDT_NULL
|
2015-10-19 20:01:19 +01:00
|
|
|
#endif
|
|
|
|
|
|
2016-05-08 00:20:20 +01:00
|
|
|
#if defined ( __arm__ ) || defined ( __aarch64__ )
|
2015-10-19 20:01:19 +01:00
|
|
|
#define IOAPI_ARM
|
2026-01-16 12:05:38 +00:00
|
|
|
#define FDT_EFI
|
2022-02-10 12:47:25 +00:00
|
|
|
#endif
|
|
|
|
|
|
2023-06-29 15:52:28 +01:00
|
|
|
#if defined ( __loongarch__ )
|
|
|
|
|
#define IOAPI_LOONG64
|
2026-01-16 12:05:38 +00:00
|
|
|
#define FDT_EFI
|
2023-06-29 15:52:28 +01:00
|
|
|
#endif
|
|
|
|
|
|
2024-09-15 10:54:04 +01:00
|
|
|
#if defined ( __riscv )
|
|
|
|
|
#define IOAPI_RISCV
|
2026-01-16 12:05:38 +00:00
|
|
|
#define FDT_EFI
|
2024-09-15 10:54:04 +01:00
|
|
|
#endif
|
|
|
|
|
|
2008-10-12 01:55:55 +01:00
|
|
|
#endif /* CONFIG_DEFAULTS_EFI_H */
|