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 );
|
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
|
2019-07-19 17:42:12 +01:00
|
|
|
#define FDT_EFI
|
2024-03-13 15:16:47 +00:00
|
|
|
#define MPAPI_EFI
|
2024-09-13 14:26:34 +01:00
|
|
|
#define NAP_EFI
|
2025-06-23 16:19:07 +01:00
|
|
|
#define SERIAL_FIXED
|
2008-10-12 01:55:55 +01:00
|
|
|
|
2018-11-18 20:13:46 +01:00
|
|
|
#define NET_PROTO_IPV6 /* IPv6 protocol */
|
2023-02-05 18:53:03 +00:00
|
|
|
#define NET_PROTO_LLDP /* Link Layer Discovery protocol */
|
2018-11-18 20:13:46 +01:00
|
|
|
|
2016-03-14 15:23:42 +00:00
|
|
|
#define DOWNLOAD_PROTO_FILE /* Local filesystem access */
|
|
|
|
|
|
2008-10-12 01:55:55 +01:00
|
|
|
#define IMAGE_EFI /* EFI image support */
|
2010-06-16 14:35:24 -07:00
|
|
|
#define IMAGE_SCRIPT /* iPXE script image support */
|
2025-03-11 11:58:28 +00:00
|
|
|
#define IMAGE_EFISIG /* EFI signature list support */
|
2008-10-12 01:55:55 +01:00
|
|
|
|
2016-11-16 22:22:22 +00:00
|
|
|
#define SANBOOT_PROTO_ISCSI /* iSCSI protocol */
|
|
|
|
|
#define SANBOOT_PROTO_AOE /* AoE protocol */
|
|
|
|
|
#define SANBOOT_PROTO_IB_SRP /* Infiniband SCSI RDMA protocol */
|
|
|
|
|
#define SANBOOT_PROTO_FCP /* Fibre Channel protocol */
|
2017-03-06 15:01:39 +00:00
|
|
|
#define SANBOOT_PROTO_HTTP /* HTTP SAN protocol */
|
2016-11-16 22:22:22 +00: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
|
|
|
|
2013-03-22 13:42:16 +00:00
|
|
|
#define REBOOT_CMD /* Reboot command */
|
2015-10-19 20:01:19 +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
|
2013-03-22 13:58:54 +00:00
|
|
|
#define CPUID_CMD /* x86 CPU feature detection command */
|
2020-07-07 13:49:17 +01:00
|
|
|
#define UNSAFE_STD /* Avoid setting direction flag */
|
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
|
2025-03-27 11:36:35 +00:00
|
|
|
#define FDT_CMD
|
2015-10-19 20:01:19 +01:00
|
|
|
#endif
|
2013-03-22 13:42:16 +00:00
|
|
|
|
2022-02-10 12:47:25 +00:00
|
|
|
#if defined ( __aarch64__ )
|
|
|
|
|
#define IMAGE_GZIP /* GZIP image support */
|
2025-03-27 11:36:35 +00:00
|
|
|
#define FDT_CMD
|
2022-02-10 12:47:25 +00:00
|
|
|
#endif
|
|
|
|
|
|
2023-06-29 15:52:28 +01:00
|
|
|
#if defined ( __loongarch__ )
|
|
|
|
|
#define IOAPI_LOONG64
|
|
|
|
|
#endif
|
|
|
|
|
|
2024-09-15 10:54:04 +01:00
|
|
|
#if defined ( __riscv )
|
|
|
|
|
#define IOAPI_RISCV
|
2025-03-27 11:36:35 +00:00
|
|
|
#define FDT_CMD
|
2024-09-15 10:54:04 +01:00
|
|
|
#endif
|
|
|
|
|
|
2008-10-12 01:55:55 +01:00
|
|
|
#endif /* CONFIG_DEFAULTS_EFI_H */
|