iPXE
Data Structures | Macros | Typedefs | Enumerations | Functions
UefiSpec.h File Reference

Include file that supports UEFI. More...

#include <ipxe/efi/Uefi/UefiMultiPhase.h>
#include <ipxe/efi/Protocol/DevicePath.h>
#include <ipxe/efi/Protocol/SimpleTextIn.h>
#include <ipxe/efi/Protocol/SimpleTextInEx.h>
#include <ipxe/efi/Protocol/SimpleTextOut.h>
#include <ipxe/efi/Uefi/UefiPxe.h>
#include <ipxe/efi/Uefi/UefiGpt.h>
#include <ipxe/efi/Uefi/UefiInternalFormRepresentation.h>

Go to the source code of this file.

Data Structures

struct  EFI_MEMORY_DESCRIPTOR
 Definition of an EFI memory descriptor. More...
 
struct  EFI_TIME_CAPABILITIES
 This provides the capabilities of the real time clock device as exposed through the EFI interfaces. More...
 
struct  EFI_OPEN_PROTOCOL_INFORMATION_ENTRY
 EFI Oprn Protocol Information Entry. More...
 
struct  EFI_CAPSULE_BLOCK_DESCRIPTOR
 EFI Capsule Block Descriptor. More...
 
struct  EFI_CAPSULE_HEADER
 EFI Capsule Header. More...
 
struct  EFI_CAPSULE_TABLE
 The EFI System Table entry must point to an array of capsules that contain the same CapsuleGuid value. More...
 
struct  EFI_RUNTIME_SERVICES
 EFI Runtime Services Table. More...
 
struct  EFI_BOOT_SERVICES
 EFI Boot Services Table. More...
 
struct  EFI_CONFIGURATION_TABLE
 Contains a set of GUID/pointer pairs comprised of the ConfigurationTable field in the EFI System Table. More...
 
struct  EFI_SYSTEM_TABLE
 EFI System Table. More...
 
struct  _EFI_LOAD_OPTION
 
union  EFI_BOOT_KEY_DATA
 EFI Boot Key Data. More...
 
struct  EFI_KEY_OPTION
 EFI Key Option. More...
 

Macros

#define EFI_TIME_ADJUST_DAYLIGHT   0x01
 
#define EFI_TIME_IN_DAYLIGHT   0x02
 
#define EFI_UNSPECIFIED_TIMEZONE   0x07FF
 Value definition for EFI_TIME.TimeZone. More...
 
#define EFI_MEMORY_UC   0x0000000000000001ULL
 
#define EFI_MEMORY_WC   0x0000000000000002ULL
 
#define EFI_MEMORY_WT   0x0000000000000004ULL
 
#define EFI_MEMORY_WB   0x0000000000000008ULL
 
#define EFI_MEMORY_UCE   0x0000000000000010ULL
 
#define EFI_MEMORY_WP   0x0000000000001000ULL
 
#define EFI_MEMORY_RP   0x0000000000002000ULL
 
#define EFI_MEMORY_XP   0x0000000000004000ULL
 
#define EFI_MEMORY_RO   0x0000000000020000ULL
 
#define EFI_MEMORY_NV   0x0000000000008000ULL
 
#define EFI_MEMORY_MORE_RELIABLE   0x0000000000010000ULL
 
#define EFI_MEMORY_SP   0x0000000000040000ULL
 
#define EFI_MEMORY_CPU_CRYPTO   0x0000000000080000ULL
 
#define EFI_MEMORY_RUNTIME   0x8000000000000000ULL
 
#define EFI_MEMORY_ISA_VALID   0x4000000000000000ULL
 
#define EFI_MEMORY_ISA_MASK   0x0FFFF00000000000ULL
 
#define EFI_CACHE_ATTRIBUTE_MASK   (EFI_MEMORY_UC | EFI_MEMORY_WC | EFI_MEMORY_WT | EFI_MEMORY_WB | EFI_MEMORY_UCE | EFI_MEMORY_WP)
 
#define EFI_MEMORY_ACCESS_MASK   (EFI_MEMORY_RP | EFI_MEMORY_XP | EFI_MEMORY_RO)
 
#define EFI_MEMORY_ATTRIBUTE_MASK   (EFI_MEMORY_ACCESS_MASK | EFI_MEMORY_SP | EFI_MEMORY_CPU_CRYPTO)
 
#define EFI_MEMORY_DESCRIPTOR_VERSION   1
 Memory descriptor version number. More...
 
#define EFI_OPTIONAL_PTR   0x00000001
 
#define EVT_TIMER   0x80000000
 
#define EVT_RUNTIME   0x40000000
 
#define EVT_NOTIFY_WAIT   0x00000100
 
#define EVT_NOTIFY_SIGNAL   0x00000200
 
#define EVT_SIGNAL_EXIT_BOOT_SERVICES   0x00000201
 
#define EVT_SIGNAL_VIRTUAL_ADDRESS_CHANGE   0x60000202
 
#define EVT_RUNTIME_CONTEXT   0x20000000
 
#define TPL_APPLICATION   4
 
#define TPL_CALLBACK   8
 
#define TPL_NOTIFY   16
 
#define TPL_HIGH_LEVEL   31
 
#define EFI_OPEN_PROTOCOL_BY_HANDLE_PROTOCOL   0x00000001
 
#define EFI_OPEN_PROTOCOL_GET_PROTOCOL   0x00000002
 
#define EFI_OPEN_PROTOCOL_TEST_PROTOCOL   0x00000004
 
#define EFI_OPEN_PROTOCOL_BY_CHILD_CONTROLLER   0x00000008
 
#define EFI_OPEN_PROTOCOL_BY_DRIVER   0x00000010
 
#define EFI_OPEN_PROTOCOL_EXCLUSIVE   0x00000020
 
#define CAPSULE_FLAGS_PERSIST_ACROSS_RESET   0x00010000
 
#define CAPSULE_FLAGS_POPULATE_SYSTEM_TABLE   0x00020000
 
#define CAPSULE_FLAGS_INITIATE_RESET   0x00040000
 
#define EFI_OS_INDICATIONS_BOOT_TO_FW_UI   0x0000000000000001
 
#define EFI_OS_INDICATIONS_TIMESTAMP_REVOCATION   0x0000000000000002
 
#define EFI_OS_INDICATIONS_FILE_CAPSULE_DELIVERY_SUPPORTED   0x0000000000000004
 
#define EFI_OS_INDICATIONS_FMP_CAPSULE_SUPPORTED   0x0000000000000008
 
#define EFI_OS_INDICATIONS_CAPSULE_RESULT_VAR_SUPPORTED   0x0000000000000010
 
#define EFI_OS_INDICATIONS_START_PLATFORM_RECOVERY   0x0000000000000040
 
#define EFI_OS_INDICATIONS_JSON_CONFIG_DATA_REFRESH   0x0000000000000080
 
#define EFI_SYSTEM_TABLE_SIGNATURE   SIGNATURE_64 ('I','B','I',' ','S','Y','S','T')
 
#define EFI_2_80_SYSTEM_TABLE_REVISION   ((2 << 16) | (80))
 
#define EFI_2_70_SYSTEM_TABLE_REVISION   ((2 << 16) | (70))
 
#define EFI_2_60_SYSTEM_TABLE_REVISION   ((2 << 16) | (60))
 
#define EFI_2_50_SYSTEM_TABLE_REVISION   ((2 << 16) | (50))
 
#define EFI_2_40_SYSTEM_TABLE_REVISION   ((2 << 16) | (40))
 
#define EFI_2_31_SYSTEM_TABLE_REVISION   ((2 << 16) | (31))
 
#define EFI_2_30_SYSTEM_TABLE_REVISION   ((2 << 16) | (30))
 
#define EFI_2_20_SYSTEM_TABLE_REVISION   ((2 << 16) | (20))
 
#define EFI_2_10_SYSTEM_TABLE_REVISION   ((2 << 16) | (10))
 
#define EFI_2_00_SYSTEM_TABLE_REVISION   ((2 << 16) | (00))
 
#define EFI_1_10_SYSTEM_TABLE_REVISION   ((1 << 16) | (10))
 
#define EFI_1_02_SYSTEM_TABLE_REVISION   ((1 << 16) | (02))
 
#define EFI_SYSTEM_TABLE_REVISION   EFI_2_70_SYSTEM_TABLE_REVISION
 
#define EFI_SPECIFICATION_VERSION   EFI_SYSTEM_TABLE_REVISION
 
#define EFI_RUNTIME_SERVICES_SIGNATURE   SIGNATURE_64 ('R','U','N','T','S','E','R','V')
 
#define EFI_RUNTIME_SERVICES_REVISION   EFI_SPECIFICATION_VERSION
 
#define EFI_BOOT_SERVICES_SIGNATURE   SIGNATURE_64 ('B','O','O','T','S','E','R','V')
 
#define EFI_BOOT_SERVICES_REVISION   EFI_SPECIFICATION_VERSION
 
#define LOAD_OPTION_ACTIVE   0x00000001
 
#define LOAD_OPTION_FORCE_RECONNECT   0x00000002
 
#define LOAD_OPTION_HIDDEN   0x00000008
 
#define LOAD_OPTION_CATEGORY   0x00001F00
 
#define LOAD_OPTION_CATEGORY_BOOT   0x00000000
 
#define LOAD_OPTION_CATEGORY_APP   0x00000100
 
#define EFI_BOOT_OPTION_SUPPORT_KEY   0x00000001
 
#define EFI_BOOT_OPTION_SUPPORT_APP   0x00000002
 
#define EFI_BOOT_OPTION_SUPPORT_SYSPREP   0x00000010
 
#define EFI_BOOT_OPTION_SUPPORT_COUNT   0x00000300
 
#define EFI_REMOVABLE_MEDIA_FILE_NAME_IA32   L"\\EFI\\BOOT\\BOOTIA32.EFI"
 
#define EFI_REMOVABLE_MEDIA_FILE_NAME_IA64   L"\\EFI\\BOOT\\BOOTIA64.EFI"
 
#define EFI_REMOVABLE_MEDIA_FILE_NAME_X64   L"\\EFI\\BOOT\\BOOTX64.EFI"
 
#define EFI_REMOVABLE_MEDIA_FILE_NAME_ARM   L"\\EFI\\BOOT\\BOOTARM.EFI"
 
#define EFI_REMOVABLE_MEDIA_FILE_NAME_AARCH64   L"\\EFI\\BOOT\\BOOTAA64.EFI"
 
#define EFI_REMOVABLE_MEDIA_FILE_NAME_RISCV64   L"\\EFI\\BOOT\\BOOTRISCV64.EFI"
 
#define EFI_REMOVABLE_MEDIA_FILE_NAME_LOONGARCH64   L"\\EFI\\BOOT\\BOOTLOONGARCH64.EFI"
 
#define EFI_CAPSULE_FILE_DIRECTORY   L"\\EFI\\UpdateCapsule\\"
 

Typedefs

typedef EFI_STATUS(EFIAPIEFI_ALLOCATE_PAGES) (IN EFI_ALLOCATE_TYPE Type, IN EFI_MEMORY_TYPE MemoryType, IN UINTN Pages, IN OUT EFI_PHYSICAL_ADDRESS *Memory)
 Allocates memory pages from the system. More...
 
typedef EFI_STATUS(EFIAPIEFI_FREE_PAGES) (IN EFI_PHYSICAL_ADDRESS Memory, IN UINTN Pages)
 Frees memory pages. More...
 
typedef EFI_STATUS(EFIAPIEFI_GET_MEMORY_MAP) (IN OUT UINTN *MemoryMapSize, OUT EFI_MEMORY_DESCRIPTOR *MemoryMap, OUT UINTN *MapKey, OUT UINTN *DescriptorSize, OUT UINT32 *DescriptorVersion)
 Returns the current memory map. More...
 
typedef EFI_STATUS(EFIAPIEFI_ALLOCATE_POOL) (IN EFI_MEMORY_TYPE PoolType, IN UINTN Size, OUT VOID **Buffer)
 Allocates pool memory. More...
 
typedef EFI_STATUS(EFIAPIEFI_FREE_POOL) (IN VOID *Buffer)
 Returns pool memory to the system. More...
 
typedef EFI_STATUS(EFIAPIEFI_SET_VIRTUAL_ADDRESS_MAP) (IN UINTN MemoryMapSize, IN UINTN DescriptorSize, IN UINT32 DescriptorVersion, IN EFI_MEMORY_DESCRIPTOR *VirtualMap)
 Changes the runtime addressing mode of EFI firmware from physical to virtual. More...
 
typedef EFI_STATUS(EFIAPIEFI_CONNECT_CONTROLLER) (IN EFI_HANDLE ControllerHandle, IN EFI_HANDLE *DriverImageHandle OPTIONAL, IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath OPTIONAL, IN BOOLEAN Recursive)
 Connects one or more drivers to a controller. More...
 
typedef EFI_STATUS(EFIAPIEFI_DISCONNECT_CONTROLLER) (IN EFI_HANDLE ControllerHandle, IN EFI_HANDLE DriverImageHandle OPTIONAL, IN EFI_HANDLE ChildHandle OPTIONAL)
 Disconnects one or more drivers from a controller. More...
 
typedef EFI_STATUS(EFIAPIEFI_CONVERT_POINTER) (IN UINTN DebugDisposition, IN OUT VOID **Address)
 Determines the new virtual address that is to be used on subsequent memory accesses. More...
 
typedef VOID(EFIAPIEFI_EVENT_NOTIFY) (IN EFI_EVENT Event, IN VOID *Context)
 Invoke a notification event. More...
 
typedef EFI_STATUS(EFIAPIEFI_CREATE_EVENT) (IN UINT32 Type, IN EFI_TPL NotifyTpl, IN EFI_EVENT_NOTIFY NotifyFunction OPTIONAL, IN VOID *NotifyContext OPTIONAL, OUT EFI_EVENT *Event)
 Creates an event. More...
 
typedef EFI_STATUS(EFIAPIEFI_CREATE_EVENT_EX) (IN UINT32 Type, IN EFI_TPL NotifyTpl, IN EFI_EVENT_NOTIFY NotifyFunction OPTIONAL, IN CONST VOID *NotifyContext OPTIONAL, IN CONST EFI_GUID *EventGroup OPTIONAL, OUT EFI_EVENT *Event)
 Creates an event in a group. More...
 
typedef EFI_STATUS(EFIAPIEFI_SET_TIMER) (IN EFI_EVENT Event, IN EFI_TIMER_DELAY Type, IN UINT64 TriggerTime)
 Sets the type of timer and the trigger time for a timer event. More...
 
typedef EFI_STATUS(EFIAPIEFI_SIGNAL_EVENT) (IN EFI_EVENT Event)
 Signals an event. More...
 
typedef EFI_STATUS(EFIAPIEFI_WAIT_FOR_EVENT) (IN UINTN NumberOfEvents, IN EFI_EVENT *Event, OUT UINTN *Index)
 Stops execution until an event is signaled. More...
 
typedef EFI_STATUS(EFIAPIEFI_CLOSE_EVENT) (IN EFI_EVENT Event)
 Closes an event. More...
 
typedef EFI_STATUS(EFIAPIEFI_CHECK_EVENT) (IN EFI_EVENT Event)
 Checks whether an event is in the signaled state. More...
 
typedef EFI_TPL(EFIAPIEFI_RAISE_TPL) (IN EFI_TPL NewTpl)
 Raises a task's priority level and returns its previous level. More...
 
typedef VOID(EFIAPIEFI_RESTORE_TPL) (IN EFI_TPL OldTpl)
 Restores a task's priority level to its previous value. More...
 
typedef EFI_STATUS(EFIAPIEFI_GET_VARIABLE) (IN CHAR16 *VariableName, IN EFI_GUID *VendorGuid, OUT UINT32 *Attributes OPTIONAL, IN OUT UINTN *DataSize, OUT VOID *Data OPTIONAL)
 Returns the value of a variable. More...
 
typedef EFI_STATUS(EFIAPIEFI_GET_NEXT_VARIABLE_NAME) (IN OUT UINTN *VariableNameSize, IN OUT CHAR16 *VariableName, IN OUT EFI_GUID *VendorGuid)
 Enumerates the current variable names. More...
 
typedef EFI_STATUS(EFIAPIEFI_SET_VARIABLE) (IN CHAR16 *VariableName, IN EFI_GUID *VendorGuid, IN UINT32 Attributes, IN UINTN DataSize, IN VOID *Data)
 Sets the value of a variable. More...
 
typedef EFI_STATUS(EFIAPIEFI_GET_TIME) (OUT EFI_TIME *Time, OUT EFI_TIME_CAPABILITIES *Capabilities OPTIONAL)
 Returns the current time and date information, and the time-keeping capabilities of the hardware platform. More...
 
typedef EFI_STATUS(EFIAPIEFI_SET_TIME) (IN EFI_TIME *Time)
 Sets the current local time and date information. More...
 
typedef EFI_STATUS(EFIAPIEFI_GET_WAKEUP_TIME) (OUT BOOLEAN *Enabled, OUT BOOLEAN *Pending, OUT EFI_TIME *Time)
 Returns the current wakeup alarm clock setting. More...
 
typedef EFI_STATUS(EFIAPIEFI_SET_WAKEUP_TIME) (IN BOOLEAN Enable, IN EFI_TIME *Time OPTIONAL)
 Sets the system wakeup alarm clock time. More...
 
typedef EFI_STATUS(EFIAPIEFI_IMAGE_LOAD) (IN BOOLEAN BootPolicy, IN EFI_HANDLE ParentImageHandle, IN EFI_DEVICE_PATH_PROTOCOL *DevicePath OPTIONAL, IN VOID *SourceBuffer OPTIONAL, IN UINTN SourceSize, OUT EFI_HANDLE *ImageHandle)
 Loads an EFI image into memory. More...
 
typedef EFI_STATUS(EFIAPIEFI_IMAGE_START) (IN EFI_HANDLE ImageHandle, OUT UINTN *ExitDataSize, OUT CHAR16 **ExitData OPTIONAL)
 Transfers control to a loaded image's entry point. More...
 
typedef EFI_STATUS(EFIAPIEFI_EXIT) (IN EFI_HANDLE ImageHandle, IN EFI_STATUS ExitStatus, IN UINTN ExitDataSize, IN CHAR16 *ExitData OPTIONAL)
 Terminates a loaded EFI image and returns control to boot services. More...
 
typedef EFI_STATUS(EFIAPIEFI_IMAGE_UNLOAD) (IN EFI_HANDLE ImageHandle)
 Unloads an image. More...
 
typedef EFI_STATUS(EFIAPIEFI_EXIT_BOOT_SERVICES) (IN EFI_HANDLE ImageHandle, IN UINTN MapKey)
 Terminates all boot services. More...
 
typedef EFI_STATUS(EFIAPIEFI_STALL) (IN UINTN Microseconds)
 Induces a fine-grained stall. More...
 
typedef EFI_STATUS(EFIAPIEFI_SET_WATCHDOG_TIMER) (IN UINTN Timeout, IN UINT64 WatchdogCode, IN UINTN DataSize, IN CHAR16 *WatchdogData OPTIONAL)
 Sets the system's watchdog timer. More...
 
typedef VOID(EFIAPIEFI_RESET_SYSTEM) (IN EFI_RESET_TYPE ResetType, IN EFI_STATUS ResetStatus, IN UINTN DataSize, IN VOID *ResetData OPTIONAL)
 Resets the entire platform. More...
 
typedef EFI_STATUS(EFIAPIEFI_GET_NEXT_MONOTONIC_COUNT) (OUT UINT64 *Count)
 Returns a monotonically increasing count for the platform. More...
 
typedef EFI_STATUS(EFIAPIEFI_GET_NEXT_HIGH_MONO_COUNT) (OUT UINT32 *HighCount)
 Returns the next high 32 bits of the platform's monotonic counter. More...
 
typedef EFI_STATUS(EFIAPIEFI_CALCULATE_CRC32) (IN VOID *Data, IN UINTN DataSize, OUT UINT32 *Crc32)
 Computes and returns a 32-bit CRC for a data buffer. More...
 
typedef VOID(EFIAPIEFI_COPY_MEM) (IN VOID *Destination, IN VOID *Source, IN UINTN Length)
 Copies the contents of one buffer to another buffer. More...
 
typedef VOID(EFIAPIEFI_SET_MEM) (IN VOID *Buffer, IN UINTN Size, IN UINT8 Value)
 The SetMem() function fills a buffer with a specified value. More...
 
typedef EFI_STATUS(EFIAPIEFI_INSTALL_PROTOCOL_INTERFACE) (IN OUT EFI_HANDLE *Handle, IN EFI_GUID *Protocol, IN EFI_INTERFACE_TYPE InterfaceType, IN VOID *Interface)
 Installs a protocol interface on a device handle. More...
 
typedef EFI_STATUS(EFIAPIEFI_INSTALL_MULTIPLE_PROTOCOL_INTERFACES) (IN OUT EFI_HANDLE *Handle,...)
 Installs one or more protocol interfaces into the boot services environment. More...
 
typedef EFI_STATUS(EFIAPIEFI_REINSTALL_PROTOCOL_INTERFACE) (IN EFI_HANDLE Handle, IN EFI_GUID *Protocol, IN VOID *OldInterface, IN VOID *NewInterface)
 Reinstalls a protocol interface on a device handle. More...
 
typedef EFI_STATUS(EFIAPIEFI_UNINSTALL_PROTOCOL_INTERFACE) (IN EFI_HANDLE Handle, IN EFI_GUID *Protocol, IN VOID *Interface)
 Removes a protocol interface from a device handle. More...
 
typedef EFI_STATUS(EFIAPIEFI_UNINSTALL_MULTIPLE_PROTOCOL_INTERFACES) (IN EFI_HANDLE Handle,...)
 Removes one or more protocol interfaces into the boot services environment. More...
 
typedef EFI_STATUS(EFIAPIEFI_HANDLE_PROTOCOL) (IN EFI_HANDLE Handle, IN EFI_GUID *Protocol, OUT VOID **Interface)
 Queries a handle to determine if it supports a specified protocol. More...
 
typedef EFI_STATUS(EFIAPIEFI_OPEN_PROTOCOL) (IN EFI_HANDLE Handle, IN EFI_GUID *Protocol, OUT VOID **Interface OPTIONAL, IN EFI_HANDLE AgentHandle, IN EFI_HANDLE ControllerHandle, IN UINT32 Attributes)
 Queries a handle to determine if it supports a specified protocol. More...
 
typedef EFI_STATUS(EFIAPIEFI_CLOSE_PROTOCOL) (IN EFI_HANDLE Handle, IN EFI_GUID *Protocol, IN EFI_HANDLE AgentHandle, IN EFI_HANDLE ControllerHandle)
 Closes a protocol on a handle that was opened using OpenProtocol(). More...
 
typedef EFI_STATUS(EFIAPIEFI_OPEN_PROTOCOL_INFORMATION) (IN EFI_HANDLE Handle, IN EFI_GUID *Protocol, OUT EFI_OPEN_PROTOCOL_INFORMATION_ENTRY **EntryBuffer, OUT UINTN *EntryCount)
 Retrieves the list of agents that currently have a protocol interface opened. More...
 
typedef EFI_STATUS(EFIAPIEFI_PROTOCOLS_PER_HANDLE) (IN EFI_HANDLE Handle, OUT EFI_GUID ***ProtocolBuffer, OUT UINTN *ProtocolBufferCount)
 Retrieves the list of protocol interface GUIDs that are installed on a handle in a buffer allocated from pool. More...
 
typedef EFI_STATUS(EFIAPIEFI_REGISTER_PROTOCOL_NOTIFY) (IN EFI_GUID *Protocol, IN EFI_EVENT Event, OUT VOID **Registration)
 Creates an event that is to be signaled whenever an interface is installed for a specified protocol. More...
 
typedef EFI_STATUS(EFIAPIEFI_LOCATE_HANDLE) (IN EFI_LOCATE_SEARCH_TYPE SearchType, IN EFI_GUID *Protocol OPTIONAL, IN VOID *SearchKey OPTIONAL, IN OUT UINTN *BufferSize, OUT EFI_HANDLE *Buffer)
 Returns an array of handles that support a specified protocol. More...
 
typedef EFI_STATUS(EFIAPIEFI_LOCATE_DEVICE_PATH) (IN EFI_GUID *Protocol, IN OUT EFI_DEVICE_PATH_PROTOCOL **DevicePath, OUT EFI_HANDLE *Device)
 Locates the handle to a device on the device path that supports the specified protocol. More...
 
typedef EFI_STATUS(EFIAPIEFI_INSTALL_CONFIGURATION_TABLE) (IN EFI_GUID *Guid, IN VOID *Table)
 Adds, updates, or removes a configuration table entry from the EFI System Table. More...
 
typedef EFI_STATUS(EFIAPIEFI_LOCATE_HANDLE_BUFFER) (IN EFI_LOCATE_SEARCH_TYPE SearchType, IN EFI_GUID *Protocol OPTIONAL, IN VOID *SearchKey OPTIONAL, OUT UINTN *NoHandles, OUT EFI_HANDLE **Buffer)
 Returns an array of handles that support the requested protocol in a buffer allocated from pool. More...
 
typedef EFI_STATUS(EFIAPIEFI_LOCATE_PROTOCOL) (IN EFI_GUID *Protocol, IN VOID *Registration OPTIONAL, OUT VOID **Interface)
 Returns the first protocol instance that matches the given protocol. More...
 
typedef EFI_STATUS(EFIAPIEFI_UPDATE_CAPSULE) (IN EFI_CAPSULE_HEADER **CapsuleHeaderArray, IN UINTN CapsuleCount, IN EFI_PHYSICAL_ADDRESS ScatterGatherList OPTIONAL)
 Passes capsules to the firmware with both virtual and physical mapping. More...
 
typedef EFI_STATUS(EFIAPIEFI_QUERY_CAPSULE_CAPABILITIES) (IN EFI_CAPSULE_HEADER **CapsuleHeaderArray, IN UINTN CapsuleCount, OUT UINT64 *MaximumCapsuleSize, OUT EFI_RESET_TYPE *ResetType)
 Returns if the capsule can be supported via UpdateCapsule(). More...
 
typedef EFI_STATUS(EFIAPIEFI_QUERY_VARIABLE_INFO) (IN UINT32 Attributes, OUT UINT64 *MaximumVariableStorageSize, OUT UINT64 *RemainingVariableStorageSize, OUT UINT64 *MaximumVariableSize)
 Returns information about the EFI variables. More...
 
typedef EFI_STATUS(EFIAPIEFI_IMAGE_ENTRY_POINT) (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
 This is the declaration of an EFI image entry point. More...
 
typedef struct _EFI_LOAD_OPTION EFI_LOAD_OPTION
 

Enumerations

enum  EFI_ALLOCATE_TYPE { AllocateAnyPages, AllocateMaxAddress, AllocateAddress, MaxAllocateType }
 Enumeration of EFI memory allocation types. More...
 
enum  EFI_TIMER_DELAY { TimerCancel, TimerPeriodic, TimerRelative }
 Timer delay types. More...
 
enum  EFI_INTERFACE_TYPE { EFI_NATIVE_INTERFACE }
 Enumeration of EFI Interface Types. More...
 
enum  EFI_LOCATE_SEARCH_TYPE { AllHandles, ByRegisterNotify, ByProtocol }
 Enumeration of EFI Locate Search Types. More...
 

Functions

 FILE_LICENCE (BSD2_PATENT)
 

Detailed Description

Include file that supports UEFI.

This include file must contain things defined in the UEFI 2.7 specification. If a code construct is defined in the UEFI 2.7 specification it must be included by this include file.

Copyright (c) 2006 - 2021, Intel Corporation. All rights reserved.
Portions Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All rights reserved.
Copyright (c) 2022, Loongson Technology Corporation Limited. All rights reserved.

SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file UefiSpec.h.

Macro Definition Documentation

◆ EFI_TIME_ADJUST_DAYLIGHT

#define EFI_TIME_ADJUST_DAYLIGHT   0x01

Definition at line 54 of file UefiSpec.h.

◆ EFI_TIME_IN_DAYLIGHT

#define EFI_TIME_IN_DAYLIGHT   0x02

Definition at line 55 of file UefiSpec.h.

◆ EFI_UNSPECIFIED_TIMEZONE

#define EFI_UNSPECIFIED_TIMEZONE   0x07FF

Value definition for EFI_TIME.TimeZone.

Definition at line 60 of file UefiSpec.h.

◆ EFI_MEMORY_UC

#define EFI_MEMORY_UC   0x0000000000000001ULL

Definition at line 65 of file UefiSpec.h.

◆ EFI_MEMORY_WC

#define EFI_MEMORY_WC   0x0000000000000002ULL

Definition at line 66 of file UefiSpec.h.

◆ EFI_MEMORY_WT

#define EFI_MEMORY_WT   0x0000000000000004ULL

Definition at line 67 of file UefiSpec.h.

◆ EFI_MEMORY_WB

#define EFI_MEMORY_WB   0x0000000000000008ULL

Definition at line 68 of file UefiSpec.h.

◆ EFI_MEMORY_UCE

#define EFI_MEMORY_UCE   0x0000000000000010ULL

Definition at line 69 of file UefiSpec.h.

◆ EFI_MEMORY_WP

#define EFI_MEMORY_WP   0x0000000000001000ULL

Definition at line 76 of file UefiSpec.h.

◆ EFI_MEMORY_RP

#define EFI_MEMORY_RP   0x0000000000002000ULL

Definition at line 77 of file UefiSpec.h.

◆ EFI_MEMORY_XP

#define EFI_MEMORY_XP   0x0000000000004000ULL

Definition at line 78 of file UefiSpec.h.

◆ EFI_MEMORY_RO

#define EFI_MEMORY_RO   0x0000000000020000ULL

Definition at line 79 of file UefiSpec.h.

◆ EFI_MEMORY_NV

#define EFI_MEMORY_NV   0x0000000000008000ULL

Definition at line 84 of file UefiSpec.h.

◆ EFI_MEMORY_MORE_RELIABLE

#define EFI_MEMORY_MORE_RELIABLE   0x0000000000010000ULL

Definition at line 89 of file UefiSpec.h.

◆ EFI_MEMORY_SP

#define EFI_MEMORY_SP   0x0000000000040000ULL

Definition at line 99 of file UefiSpec.h.

◆ EFI_MEMORY_CPU_CRYPTO

#define EFI_MEMORY_CPU_CRYPTO   0x0000000000080000ULL

Definition at line 108 of file UefiSpec.h.

◆ EFI_MEMORY_RUNTIME

#define EFI_MEMORY_RUNTIME   0x8000000000000000ULL

Definition at line 113 of file UefiSpec.h.

◆ EFI_MEMORY_ISA_VALID

#define EFI_MEMORY_ISA_VALID   0x4000000000000000ULL

Definition at line 120 of file UefiSpec.h.

◆ EFI_MEMORY_ISA_MASK

#define EFI_MEMORY_ISA_MASK   0x0FFFF00000000000ULL

Definition at line 128 of file UefiSpec.h.

◆ EFI_CACHE_ATTRIBUTE_MASK

#define EFI_CACHE_ATTRIBUTE_MASK   (EFI_MEMORY_UC | EFI_MEMORY_WC | EFI_MEMORY_WT | EFI_MEMORY_WB | EFI_MEMORY_UCE | EFI_MEMORY_WP)

Definition at line 133 of file UefiSpec.h.

◆ EFI_MEMORY_ACCESS_MASK

#define EFI_MEMORY_ACCESS_MASK   (EFI_MEMORY_RP | EFI_MEMORY_XP | EFI_MEMORY_RO)

Definition at line 134 of file UefiSpec.h.

◆ EFI_MEMORY_ATTRIBUTE_MASK

#define EFI_MEMORY_ATTRIBUTE_MASK   (EFI_MEMORY_ACCESS_MASK | EFI_MEMORY_SP | EFI_MEMORY_CPU_CRYPTO)

Definition at line 135 of file UefiSpec.h.

◆ EFI_MEMORY_DESCRIPTOR_VERSION

#define EFI_MEMORY_DESCRIPTOR_VERSION   1

Memory descriptor version number.

Definition at line 140 of file UefiSpec.h.

◆ EFI_OPTIONAL_PTR

#define EFI_OPTIONAL_PTR   0x00000001

Definition at line 408 of file UefiSpec.h.

◆ EVT_TIMER

#define EVT_TIMER   0x80000000

Definition at line 440 of file UefiSpec.h.

◆ EVT_RUNTIME

#define EVT_RUNTIME   0x40000000

Definition at line 441 of file UefiSpec.h.

◆ EVT_NOTIFY_WAIT

#define EVT_NOTIFY_WAIT   0x00000100

Definition at line 442 of file UefiSpec.h.

◆ EVT_NOTIFY_SIGNAL

#define EVT_NOTIFY_SIGNAL   0x00000200

Definition at line 443 of file UefiSpec.h.

◆ EVT_SIGNAL_EXIT_BOOT_SERVICES

#define EVT_SIGNAL_EXIT_BOOT_SERVICES   0x00000201

Definition at line 445 of file UefiSpec.h.

◆ EVT_SIGNAL_VIRTUAL_ADDRESS_CHANGE

#define EVT_SIGNAL_VIRTUAL_ADDRESS_CHANGE   0x60000202

Definition at line 446 of file UefiSpec.h.

◆ EVT_RUNTIME_CONTEXT

#define EVT_RUNTIME_CONTEXT   0x20000000

Definition at line 453 of file UefiSpec.h.

◆ TPL_APPLICATION

#define TPL_APPLICATION   4

Definition at line 637 of file UefiSpec.h.

◆ TPL_CALLBACK

#define TPL_CALLBACK   8

Definition at line 638 of file UefiSpec.h.

◆ TPL_NOTIFY

#define TPL_NOTIFY   16

Definition at line 639 of file UefiSpec.h.

◆ TPL_HIGH_LEVEL

#define TPL_HIGH_LEVEL   31

Definition at line 640 of file UefiSpec.h.

◆ EFI_OPEN_PROTOCOL_BY_HANDLE_PROTOCOL

#define EFI_OPEN_PROTOCOL_BY_HANDLE_PROTOCOL   0x00000001

Definition at line 1343 of file UefiSpec.h.

◆ EFI_OPEN_PROTOCOL_GET_PROTOCOL

#define EFI_OPEN_PROTOCOL_GET_PROTOCOL   0x00000002

Definition at line 1344 of file UefiSpec.h.

◆ EFI_OPEN_PROTOCOL_TEST_PROTOCOL

#define EFI_OPEN_PROTOCOL_TEST_PROTOCOL   0x00000004

Definition at line 1345 of file UefiSpec.h.

◆ EFI_OPEN_PROTOCOL_BY_CHILD_CONTROLLER

#define EFI_OPEN_PROTOCOL_BY_CHILD_CONTROLLER   0x00000008

Definition at line 1346 of file UefiSpec.h.

◆ EFI_OPEN_PROTOCOL_BY_DRIVER

#define EFI_OPEN_PROTOCOL_BY_DRIVER   0x00000010

Definition at line 1347 of file UefiSpec.h.

◆ EFI_OPEN_PROTOCOL_EXCLUSIVE

#define EFI_OPEN_PROTOCOL_EXCLUSIVE   0x00000020

Definition at line 1348 of file UefiSpec.h.

◆ CAPSULE_FLAGS_PERSIST_ACROSS_RESET

#define CAPSULE_FLAGS_PERSIST_ACROSS_RESET   0x00010000

Definition at line 1719 of file UefiSpec.h.

◆ CAPSULE_FLAGS_POPULATE_SYSTEM_TABLE

#define CAPSULE_FLAGS_POPULATE_SYSTEM_TABLE   0x00020000

Definition at line 1720 of file UefiSpec.h.

◆ CAPSULE_FLAGS_INITIATE_RESET

#define CAPSULE_FLAGS_INITIATE_RESET   0x00040000

Definition at line 1721 of file UefiSpec.h.

◆ EFI_OS_INDICATIONS_BOOT_TO_FW_UI

#define EFI_OS_INDICATIONS_BOOT_TO_FW_UI   0x0000000000000001

Definition at line 1833 of file UefiSpec.h.

◆ EFI_OS_INDICATIONS_TIMESTAMP_REVOCATION

#define EFI_OS_INDICATIONS_TIMESTAMP_REVOCATION   0x0000000000000002

Definition at line 1834 of file UefiSpec.h.

◆ EFI_OS_INDICATIONS_FILE_CAPSULE_DELIVERY_SUPPORTED

#define EFI_OS_INDICATIONS_FILE_CAPSULE_DELIVERY_SUPPORTED   0x0000000000000004

Definition at line 1835 of file UefiSpec.h.

◆ EFI_OS_INDICATIONS_FMP_CAPSULE_SUPPORTED

#define EFI_OS_INDICATIONS_FMP_CAPSULE_SUPPORTED   0x0000000000000008

Definition at line 1836 of file UefiSpec.h.

◆ EFI_OS_INDICATIONS_CAPSULE_RESULT_VAR_SUPPORTED

#define EFI_OS_INDICATIONS_CAPSULE_RESULT_VAR_SUPPORTED   0x0000000000000010

Definition at line 1837 of file UefiSpec.h.

◆ EFI_OS_INDICATIONS_START_PLATFORM_RECOVERY

#define EFI_OS_INDICATIONS_START_PLATFORM_RECOVERY   0x0000000000000040

Definition at line 1838 of file UefiSpec.h.

◆ EFI_OS_INDICATIONS_JSON_CONFIG_DATA_REFRESH

#define EFI_OS_INDICATIONS_JSON_CONFIG_DATA_REFRESH   0x0000000000000080

Definition at line 1839 of file UefiSpec.h.

◆ EFI_SYSTEM_TABLE_SIGNATURE

#define EFI_SYSTEM_TABLE_SIGNATURE   SIGNATURE_64 ('I','B','I',' ','S','Y','S','T')

Definition at line 1844 of file UefiSpec.h.

◆ EFI_2_80_SYSTEM_TABLE_REVISION

#define EFI_2_80_SYSTEM_TABLE_REVISION   ((2 << 16) | (80))

Definition at line 1845 of file UefiSpec.h.

◆ EFI_2_70_SYSTEM_TABLE_REVISION

#define EFI_2_70_SYSTEM_TABLE_REVISION   ((2 << 16) | (70))

Definition at line 1846 of file UefiSpec.h.

◆ EFI_2_60_SYSTEM_TABLE_REVISION

#define EFI_2_60_SYSTEM_TABLE_REVISION   ((2 << 16) | (60))

Definition at line 1847 of file UefiSpec.h.

◆ EFI_2_50_SYSTEM_TABLE_REVISION

#define EFI_2_50_SYSTEM_TABLE_REVISION   ((2 << 16) | (50))

Definition at line 1848 of file UefiSpec.h.

◆ EFI_2_40_SYSTEM_TABLE_REVISION

#define EFI_2_40_SYSTEM_TABLE_REVISION   ((2 << 16) | (40))

Definition at line 1849 of file UefiSpec.h.

◆ EFI_2_31_SYSTEM_TABLE_REVISION

#define EFI_2_31_SYSTEM_TABLE_REVISION   ((2 << 16) | (31))

Definition at line 1850 of file UefiSpec.h.

◆ EFI_2_30_SYSTEM_TABLE_REVISION

#define EFI_2_30_SYSTEM_TABLE_REVISION   ((2 << 16) | (30))

Definition at line 1851 of file UefiSpec.h.

◆ EFI_2_20_SYSTEM_TABLE_REVISION

#define EFI_2_20_SYSTEM_TABLE_REVISION   ((2 << 16) | (20))

Definition at line 1852 of file UefiSpec.h.

◆ EFI_2_10_SYSTEM_TABLE_REVISION

#define EFI_2_10_SYSTEM_TABLE_REVISION   ((2 << 16) | (10))

Definition at line 1853 of file UefiSpec.h.

◆ EFI_2_00_SYSTEM_TABLE_REVISION

#define EFI_2_00_SYSTEM_TABLE_REVISION   ((2 << 16) | (00))

Definition at line 1854 of file UefiSpec.h.

◆ EFI_1_10_SYSTEM_TABLE_REVISION

#define EFI_1_10_SYSTEM_TABLE_REVISION   ((1 << 16) | (10))

Definition at line 1855 of file UefiSpec.h.

◆ EFI_1_02_SYSTEM_TABLE_REVISION

#define EFI_1_02_SYSTEM_TABLE_REVISION   ((1 << 16) | (02))

Definition at line 1856 of file UefiSpec.h.

◆ EFI_SYSTEM_TABLE_REVISION

#define EFI_SYSTEM_TABLE_REVISION   EFI_2_70_SYSTEM_TABLE_REVISION

Definition at line 1857 of file UefiSpec.h.

◆ EFI_SPECIFICATION_VERSION

#define EFI_SPECIFICATION_VERSION   EFI_SYSTEM_TABLE_REVISION

Definition at line 1858 of file UefiSpec.h.

◆ EFI_RUNTIME_SERVICES_SIGNATURE

#define EFI_RUNTIME_SERVICES_SIGNATURE   SIGNATURE_64 ('R','U','N','T','S','E','R','V')

Definition at line 1860 of file UefiSpec.h.

◆ EFI_RUNTIME_SERVICES_REVISION

#define EFI_RUNTIME_SERVICES_REVISION   EFI_SPECIFICATION_VERSION

Definition at line 1861 of file UefiSpec.h.

◆ EFI_BOOT_SERVICES_SIGNATURE

#define EFI_BOOT_SERVICES_SIGNATURE   SIGNATURE_64 ('B','O','O','T','S','E','R','V')

Definition at line 1911 of file UefiSpec.h.

◆ EFI_BOOT_SERVICES_REVISION

#define EFI_BOOT_SERVICES_REVISION   EFI_SPECIFICATION_VERSION

Definition at line 1912 of file UefiSpec.h.

◆ LOAD_OPTION_ACTIVE

#define LOAD_OPTION_ACTIVE   0x00000001

Definition at line 2163 of file UefiSpec.h.

◆ LOAD_OPTION_FORCE_RECONNECT

#define LOAD_OPTION_FORCE_RECONNECT   0x00000002

Definition at line 2164 of file UefiSpec.h.

◆ LOAD_OPTION_HIDDEN

#define LOAD_OPTION_HIDDEN   0x00000008

Definition at line 2165 of file UefiSpec.h.

◆ LOAD_OPTION_CATEGORY

#define LOAD_OPTION_CATEGORY   0x00001F00

Definition at line 2166 of file UefiSpec.h.

◆ LOAD_OPTION_CATEGORY_BOOT

#define LOAD_OPTION_CATEGORY_BOOT   0x00000000

Definition at line 2168 of file UefiSpec.h.

◆ LOAD_OPTION_CATEGORY_APP

#define LOAD_OPTION_CATEGORY_APP   0x00000100

Definition at line 2169 of file UefiSpec.h.

◆ EFI_BOOT_OPTION_SUPPORT_KEY

#define EFI_BOOT_OPTION_SUPPORT_KEY   0x00000001

Definition at line 2171 of file UefiSpec.h.

◆ EFI_BOOT_OPTION_SUPPORT_APP

#define EFI_BOOT_OPTION_SUPPORT_APP   0x00000002

Definition at line 2172 of file UefiSpec.h.

◆ EFI_BOOT_OPTION_SUPPORT_SYSPREP

#define EFI_BOOT_OPTION_SUPPORT_SYSPREP   0x00000010

Definition at line 2173 of file UefiSpec.h.

◆ EFI_BOOT_OPTION_SUPPORT_COUNT

#define EFI_BOOT_OPTION_SUPPORT_COUNT   0x00000300

Definition at line 2174 of file UefiSpec.h.

◆ EFI_REMOVABLE_MEDIA_FILE_NAME_IA32

#define EFI_REMOVABLE_MEDIA_FILE_NAME_IA32   L"\\EFI\\BOOT\\BOOTIA32.EFI"

Definition at line 2252 of file UefiSpec.h.

◆ EFI_REMOVABLE_MEDIA_FILE_NAME_IA64

#define EFI_REMOVABLE_MEDIA_FILE_NAME_IA64   L"\\EFI\\BOOT\\BOOTIA64.EFI"

Definition at line 2253 of file UefiSpec.h.

◆ EFI_REMOVABLE_MEDIA_FILE_NAME_X64

#define EFI_REMOVABLE_MEDIA_FILE_NAME_X64   L"\\EFI\\BOOT\\BOOTX64.EFI"

Definition at line 2254 of file UefiSpec.h.

◆ EFI_REMOVABLE_MEDIA_FILE_NAME_ARM

#define EFI_REMOVABLE_MEDIA_FILE_NAME_ARM   L"\\EFI\\BOOT\\BOOTARM.EFI"

Definition at line 2255 of file UefiSpec.h.

◆ EFI_REMOVABLE_MEDIA_FILE_NAME_AARCH64

#define EFI_REMOVABLE_MEDIA_FILE_NAME_AARCH64   L"\\EFI\\BOOT\\BOOTAA64.EFI"

Definition at line 2256 of file UefiSpec.h.

◆ EFI_REMOVABLE_MEDIA_FILE_NAME_RISCV64

#define EFI_REMOVABLE_MEDIA_FILE_NAME_RISCV64   L"\\EFI\\BOOT\\BOOTRISCV64.EFI"

Definition at line 2257 of file UefiSpec.h.

◆ EFI_REMOVABLE_MEDIA_FILE_NAME_LOONGARCH64

#define EFI_REMOVABLE_MEDIA_FILE_NAME_LOONGARCH64   L"\\EFI\\BOOT\\BOOTLOONGARCH64.EFI"

Definition at line 2258 of file UefiSpec.h.

◆ EFI_CAPSULE_FILE_DIRECTORY

#define EFI_CAPSULE_FILE_DIRECTORY   L"\\EFI\\UpdateCapsule\\"

Definition at line 2282 of file UefiSpec.h.

Typedef Documentation

◆ EFI_ALLOCATE_PAGES

typedef EFI_STATUS(EFIAPI * EFI_ALLOCATE_PAGES) (IN EFI_ALLOCATE_TYPE Type, IN EFI_MEMORY_TYPE MemoryType, IN UINTN Pages, IN OUT EFI_PHYSICAL_ADDRESS *Memory)

Allocates memory pages from the system.

Parameters
[in]TypeThe type of allocation to perform.
[in]MemoryTypeThe type of memory to allocate. MemoryType values in the range 0x70000000..0x7FFFFFFF are reserved for OEM use. MemoryType values in the range 0x80000000..0xFFFFFFFF are reserved for use by UEFI OS loaders that are provided by operating system vendors.
[in]PagesThe number of contiguous 4 KB pages to allocate.
[in,out]MemoryThe pointer to a physical address. On input, the way in which the address is used depends on the value of Type.
Return values
EFI_SUCCESSThe requested pages were allocated.
EFI_INVALID_PARAMETER1) Type is not AllocateAnyPages or AllocateMaxAddress or AllocateAddress. 2) MemoryType is in the range EfiMaxMemoryType..0x6FFFFFFF. 3) Memory is NULL. 4) MemoryType is EfiPersistentMemory.
EFI_OUT_OF_RESOURCESThe pages could not be allocated.
EFI_NOT_FOUNDThe requested pages could not be found.

Definition at line 205 of file UefiSpec.h.

◆ EFI_FREE_PAGES

typedef EFI_STATUS(EFIAPI * EFI_FREE_PAGES) (IN EFI_PHYSICAL_ADDRESS Memory, IN UINTN Pages)

Frees memory pages.

Parameters
[in]MemoryThe base physical address of the pages to be freed.
[in]PagesThe number of contiguous 4 KB pages to free.
Return values
EFI_SUCCESSThe requested pages were freed.
EFI_INVALID_PARAMETERMemory is not a page-aligned address or Pages is invalid.
EFI_NOT_FOUNDThe requested memory pages were not allocated with AllocatePages().

Definition at line 226 of file UefiSpec.h.

◆ EFI_GET_MEMORY_MAP

typedef EFI_STATUS(EFIAPI * EFI_GET_MEMORY_MAP) (IN OUT UINTN *MemoryMapSize, OUT EFI_MEMORY_DESCRIPTOR *MemoryMap, OUT UINTN *MapKey, OUT UINTN *DescriptorSize, OUT UINT32 *DescriptorVersion)

Returns the current memory map.

Parameters
[in,out]MemoryMapSizeA pointer to the size, in bytes, of the MemoryMap buffer. On input, this is the size of the buffer allocated by the caller. On output, it is the size of the buffer returned by the firmware if the buffer was large enough, or the size of the buffer needed to contain the map if the buffer was too small.
[out]MemoryMapA pointer to the buffer in which firmware places the current memory map.
[out]MapKeyA pointer to the location in which firmware returns the key for the current memory map.
[out]DescriptorSizeA pointer to the location in which firmware returns the size, in bytes, of an individual EFI_MEMORY_DESCRIPTOR.
[out]DescriptorVersionA pointer to the location in which firmware returns the version number associated with the EFI_MEMORY_DESCRIPTOR.
Return values
EFI_SUCCESSThe memory map was returned in the MemoryMap buffer.
EFI_BUFFER_TOO_SMALLThe MemoryMap buffer was too small. The current buffer size needed to hold the memory map is returned in MemoryMapSize.
EFI_INVALID_PARAMETER1) MemoryMapSize is NULL. 2) The MemoryMap buffer is not too small and MemoryMap is NULL.

Definition at line 258 of file UefiSpec.h.

◆ EFI_ALLOCATE_POOL

typedef EFI_STATUS(EFIAPI * EFI_ALLOCATE_POOL) (IN EFI_MEMORY_TYPE PoolType, IN UINTN Size, OUT VOID **Buffer)

Allocates pool memory.

Parameters
[in]PoolTypeThe type of pool to allocate. MemoryType values in the range 0x70000000..0x7FFFFFFF are reserved for OEM use. MemoryType values in the range 0x80000000..0xFFFFFFFF are reserved for use by UEFI OS loaders that are provided by operating system vendors.
[in]SizeThe number of bytes to allocate from the pool.
[out]BufferA pointer to a pointer to the allocated buffer if the call succeeds; undefined otherwise.
Return values
EFI_SUCCESSThe requested number of bytes was allocated.
EFI_OUT_OF_RESOURCESThe pool requested could not be allocated.
EFI_INVALID_PARAMETERBuffer is NULL. PoolType is in the range EfiMaxMemoryType..0x6FFFFFFF. PoolType is EfiPersistentMemory.

Definition at line 287 of file UefiSpec.h.

◆ EFI_FREE_POOL

typedef EFI_STATUS(EFIAPI * EFI_FREE_POOL) (IN VOID *Buffer)

Returns pool memory to the system.

Parameters
[in]BufferThe pointer to the buffer to free.
Return values
EFI_SUCCESSThe memory was returned to the system.
EFI_INVALID_PARAMETERBuffer was invalid.

Definition at line 304 of file UefiSpec.h.

◆ EFI_SET_VIRTUAL_ADDRESS_MAP

typedef EFI_STATUS(EFIAPI * EFI_SET_VIRTUAL_ADDRESS_MAP) (IN UINTN MemoryMapSize, IN UINTN DescriptorSize, IN UINT32 DescriptorVersion, IN EFI_MEMORY_DESCRIPTOR *VirtualMap)

Changes the runtime addressing mode of EFI firmware from physical to virtual.

Parameters
[in]MemoryMapSizeThe size in bytes of VirtualMap.
[in]DescriptorSizeThe size in bytes of an entry in the VirtualMap.
[in]DescriptorVersionThe version of the structure entries in VirtualMap.
[in]VirtualMapAn array of memory descriptors which contain new virtual address mapping information for all runtime ranges.
Return values
EFI_SUCCESSThe virtual address map has been applied.
EFI_UNSUPPORTEDEFI firmware is not at runtime, or the EFI firmware is already in virtual address mapped mode.
EFI_INVALID_PARAMETERDescriptorSize or DescriptorVersion is invalid.
EFI_NO_MAPPINGA virtual address was not supplied for a range in the memory map that requires a mapping.
EFI_NOT_FOUNDA virtual address was supplied for an address that is not found in the memory map.
EFI_UNSUPPORTEDThis call is not supported by this platform at the time the call is made. The platform should describe this runtime service as unsupported at runtime via an EFI_RT_PROPERTIES_TABLE configuration table.

Definition at line 332 of file UefiSpec.h.

◆ EFI_CONNECT_CONTROLLER

typedef EFI_STATUS(EFIAPI * EFI_CONNECT_CONTROLLER) (IN EFI_HANDLE ControllerHandle, IN EFI_HANDLE *DriverImageHandle OPTIONAL, IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath OPTIONAL, IN BOOLEAN Recursive)

Connects one or more drivers to a controller.

Parameters
[in]ControllerHandleThe handle of the controller to which driver(s) are to be connected.
[in]DriverImageHandleA pointer to an ordered list handles that support the EFI_DRIVER_BINDING_PROTOCOL.
[in]RemainingDevicePathA pointer to the device path that specifies a child of the controller specified by ControllerHandle.
[in]RecursiveIf TRUE, then ConnectController() is called recursively until the entire tree of controllers below the controller specified by ControllerHandle have been created. If FALSE, then the tree of controllers is only expanded one level.
Return values
EFI_SUCCESS1) One or more drivers were connected to ControllerHandle. 2) No drivers were connected to ControllerHandle, but RemainingDevicePath is not NULL, and it is an End Device Path Node.
EFI_INVALID_PARAMETERControllerHandle is NULL.
EFI_NOT_FOUND1) There are no EFI_DRIVER_BINDING_PROTOCOL instances present in the system. 2) No drivers were connected to ControllerHandle.
EFI_SECURITY_VIOLATIONThe user has no permission to start UEFI device drivers on the device path associated with the ControllerHandle or specified by the RemainingDevicePath.

Definition at line 366 of file UefiSpec.h.

◆ EFI_DISCONNECT_CONTROLLER

typedef EFI_STATUS(EFIAPI * EFI_DISCONNECT_CONTROLLER) (IN EFI_HANDLE ControllerHandle, IN EFI_HANDLE DriverImageHandle OPTIONAL, IN EFI_HANDLE ChildHandle OPTIONAL)

Disconnects one or more drivers from a controller.

Parameters
[in]ControllerHandleThe handle of the controller from which driver(s) are to be disconnected.
[in]DriverImageHandleThe driver to disconnect from ControllerHandle. If DriverImageHandle is NULL, then all the drivers currently managing ControllerHandle are disconnected from ControllerHandle.
[in]ChildHandleThe handle of the child to destroy. If ChildHandle is NULL, then all the children of ControllerHandle are destroyed before the drivers are disconnected from ControllerHandle.
Return values
EFI_SUCCESS1) One or more drivers were disconnected from the controller. 2) On entry, no drivers are managing ControllerHandle. 3) DriverImageHandle is not NULL, and on entry DriverImageHandle is not managing ControllerHandle.
EFI_INVALID_PARAMETER1) ControllerHandle is NULL. 2) DriverImageHandle is not NULL, and it is not a valid EFI_HANDLE. 3) ChildHandle is not NULL, and it is not a valid EFI_HANDLE. 4) DriverImageHandle does not support the EFI_DRIVER_BINDING_PROTOCOL.
EFI_OUT_OF_RESOURCESThere are not enough resources available to disconnect any drivers from ControllerHandle.
EFI_DEVICE_ERRORThe controller could not be disconnected because of a device error.

Definition at line 399 of file UefiSpec.h.

◆ EFI_CONVERT_POINTER

typedef EFI_STATUS(EFIAPI * EFI_CONVERT_POINTER) (IN UINTN DebugDisposition, IN OUT VOID **Address)

Determines the new virtual address that is to be used on subsequent memory accesses.

Parameters
[in]DebugDispositionSupplies type information for the pointer being converted.
[in,out]AddressA pointer to a pointer that is to be fixed to be the value needed for the new virtual address mappings being applied.
Return values
EFI_SUCCESSThe pointer pointed to by Address was modified.
EFI_NOT_FOUNDThe pointer pointed to by Address was not found to be part of the current memory map. This is normally fatal.
EFI_INVALID_PARAMETERAddress is NULL.
EFI_INVALID_PARAMETER*Address is NULL and DebugDisposition does not have the EFI_OPTIONAL_PTR bit set.
EFI_UNSUPPORTEDThis call is not supported by this platform at the time the call is made. The platform should describe this runtime service as unsupported at runtime via an EFI_RT_PROPERTIES_TABLE configuration table.

Definition at line 430 of file UefiSpec.h.

◆ EFI_EVENT_NOTIFY

typedef VOID(EFIAPI * EFI_EVENT_NOTIFY) (IN EFI_EVENT Event, IN VOID *Context)

Invoke a notification event.

Parameters
[in]EventEvent whose notification function is being invoked.
[in]ContextThe pointer to the notification function's context, which is implementation-dependent.

Definition at line 465 of file UefiSpec.h.

◆ EFI_CREATE_EVENT

typedef EFI_STATUS(EFIAPI * EFI_CREATE_EVENT) (IN UINT32 Type, IN EFI_TPL NotifyTpl, IN EFI_EVENT_NOTIFY NotifyFunction OPTIONAL, IN VOID *NotifyContext OPTIONAL, OUT EFI_EVENT *Event)

Creates an event.

Parameters
[in]TypeThe type of event to create and its mode and attributes.
[in]NotifyTplThe task priority level of event notifications, if needed.
[in]NotifyFunctionThe pointer to the event's notification function, if any.
[in]NotifyContextThe pointer to the notification function's context; corresponds to parameter Context in the notification function.
[out]EventThe pointer to the newly created event if the call succeeds; undefined otherwise.
Return values
EFI_SUCCESSThe event structure was created.
EFI_INVALID_PARAMETEROne or more parameters are invalid.
EFI_OUT_OF_RESOURCESThe event could not be allocated.

Definition at line 488 of file UefiSpec.h.

◆ EFI_CREATE_EVENT_EX

typedef EFI_STATUS(EFIAPI * EFI_CREATE_EVENT_EX) (IN UINT32 Type, IN EFI_TPL NotifyTpl, IN EFI_EVENT_NOTIFY NotifyFunction OPTIONAL, IN CONST VOID *NotifyContext OPTIONAL, IN CONST EFI_GUID *EventGroup OPTIONAL, OUT EFI_EVENT *Event)

Creates an event in a group.

Parameters
[in]TypeThe type of event to create and its mode and attributes.
[in]NotifyTplThe task priority level of event notifications,if needed.
[in]NotifyFunctionThe pointer to the event's notification function, if any.
[in]NotifyContextThe pointer to the notification function's context; corresponds to parameter Context in the notification function.
[in]EventGroupThe pointer to the unique identifier of the group to which this event belongs. If this is NULL, then the function behaves as if the parameters were passed to CreateEvent.
[out]EventThe pointer to the newly created event if the call succeeds; undefined otherwise.
Return values
EFI_SUCCESSThe event structure was created.
EFI_INVALID_PARAMETEROne or more parameters are invalid.
EFI_OUT_OF_RESOURCESThe event could not be allocated.

Definition at line 517 of file UefiSpec.h.

◆ EFI_SET_TIMER

typedef EFI_STATUS(EFIAPI * EFI_SET_TIMER) (IN EFI_EVENT Event, IN EFI_TIMER_DELAY Type, IN UINT64 TriggerTime)

Sets the type of timer and the trigger time for a timer event.

Parameters
[in]EventThe timer event that is to be signaled at the specified time.
[in]TypeThe type of time that is specified in TriggerTime.
[in]TriggerTimeThe number of 100ns units until the timer expires. A TriggerTime of 0 is legal. If Type is TimerRelative and TriggerTime is 0, then the timer event will be signaled on the next timer tick. If Type is TimerPeriodic and TriggerTime is 0, then the timer event will be signaled on every timer tick.
Return values
EFI_SUCCESSThe event has been set to be signaled at the requested time.
EFI_INVALID_PARAMETEREvent or Type is not valid.

Definition at line 562 of file UefiSpec.h.

◆ EFI_SIGNAL_EVENT

typedef EFI_STATUS(EFIAPI * EFI_SIGNAL_EVENT) (IN EFI_EVENT Event)

Signals an event.

Parameters
[in]EventThe event to signal.
Return values
EFI_SUCCESSThe event has been signaled.

Definition at line 578 of file UefiSpec.h.

◆ EFI_WAIT_FOR_EVENT

typedef EFI_STATUS(EFIAPI * EFI_WAIT_FOR_EVENT) (IN UINTN NumberOfEvents, IN EFI_EVENT *Event, OUT UINTN *Index)

Stops execution until an event is signaled.

Parameters
[in]NumberOfEventsThe number of events in the Event array.
[in]EventAn array of EFI_EVENT.
[out]IndexThe pointer to the index of the event which satisfied the wait condition.
Return values
EFI_SUCCESSThe event indicated by Index was signaled.
EFI_INVALID_PARAMETER1) NumberOfEvents is 0. 2) The event indicated by Index is of type EVT_NOTIFY_SIGNAL.
EFI_UNSUPPORTEDThe current TPL is not TPL_APPLICATION.

Definition at line 598 of file UefiSpec.h.

◆ EFI_CLOSE_EVENT

typedef EFI_STATUS(EFIAPI * EFI_CLOSE_EVENT) (IN EFI_EVENT Event)

Closes an event.

Parameters
[in]EventThe event to close.
Return values
EFI_SUCCESSThe event has been closed.

Definition at line 614 of file UefiSpec.h.

◆ EFI_CHECK_EVENT

typedef EFI_STATUS(EFIAPI * EFI_CHECK_EVENT) (IN EFI_EVENT Event)

Checks whether an event is in the signaled state.

Parameters
[in]EventThe event to check.
Return values
EFI_SUCCESSThe event is in the signaled state.
EFI_NOT_READYThe event is not in the signaled state.
EFI_INVALID_PARAMETEREvent is of type EVT_NOTIFY_SIGNAL.

Definition at line 630 of file UefiSpec.h.

◆ EFI_RAISE_TPL

typedef EFI_TPL(EFIAPI * EFI_RAISE_TPL) (IN EFI_TPL NewTpl)

Raises a task's priority level and returns its previous level.

Parameters
[in]NewTplThe new task priority level.
Returns
Previous task priority level

Definition at line 652 of file UefiSpec.h.

◆ EFI_RESTORE_TPL

typedef VOID(EFIAPI * EFI_RESTORE_TPL) (IN EFI_TPL OldTpl)

Restores a task's priority level to its previous value.

Parameters
[in]OldTplThe previous task priority level to restore.

Definition at line 664 of file UefiSpec.h.

◆ EFI_GET_VARIABLE

typedef EFI_STATUS(EFIAPI * EFI_GET_VARIABLE) (IN CHAR16 *VariableName, IN EFI_GUID *VendorGuid, OUT UINT32 *Attributes OPTIONAL, IN OUT UINTN *DataSize, OUT VOID *Data OPTIONAL)

Returns the value of a variable.

Parameters
[in]VariableNameA Null-terminated string that is the name of the vendor's variable.
[in]VendorGuidA unique identifier for the vendor.
[out]AttributesIf not NULL, a pointer to the memory location to return the attributes bitmask for the variable.
[in,out]DataSizeOn input, the size in bytes of the return Data buffer. On output the size of data returned in Data.
[out]DataThe buffer to return the contents of the variable. May be NULL with a zero DataSize in order to determine the size buffer needed.
Return values
EFI_SUCCESSThe function completed successfully.
EFI_NOT_FOUNDThe variable was not found.
EFI_BUFFER_TOO_SMALLThe DataSize is too small for the result.
EFI_INVALID_PARAMETERVariableName is NULL.
EFI_INVALID_PARAMETERVendorGuid is NULL.
EFI_INVALID_PARAMETERDataSize is NULL.
EFI_INVALID_PARAMETERThe DataSize is not too small and Data is NULL.
EFI_DEVICE_ERRORThe variable could not be retrieved due to a hardware error.
EFI_SECURITY_VIOLATIONThe variable could not be retrieved due to an authentication failure.
EFI_UNSUPPORTEDAfter ExitBootServices() has been called, this return code may be returned if no variable storage is supported. The platform should describe this runtime service as unsupported at runtime via an EFI_RT_PROPERTIES_TABLE configuration table.

Definition at line 698 of file UefiSpec.h.

◆ EFI_GET_NEXT_VARIABLE_NAME

typedef EFI_STATUS(EFIAPI * EFI_GET_NEXT_VARIABLE_NAME) (IN OUT UINTN *VariableNameSize, IN OUT CHAR16 *VariableName, IN OUT EFI_GUID *VendorGuid)

Enumerates the current variable names.

Parameters
[in,out]VariableNameSizeThe size of the VariableName buffer. The size must be large enough to fit input string supplied in VariableName buffer.
[in,out]VariableNameOn input, supplies the last VariableName that was returned by GetNextVariableName(). On output, returns the Nullterminated string of the current variable.
[in,out]VendorGuidOn input, supplies the last VendorGuid that was returned by GetNextVariableName(). On output, returns the VendorGuid of the current variable.
Return values
EFI_SUCCESSThe function completed successfully.
EFI_NOT_FOUNDThe next variable was not found.
EFI_BUFFER_TOO_SMALLThe VariableNameSize is too small for the result. VariableNameSize has been updated with the size needed to complete the request.
EFI_INVALID_PARAMETERVariableNameSize is NULL.
EFI_INVALID_PARAMETERVariableName is NULL.
EFI_INVALID_PARAMETERVendorGuid is NULL.
EFI_INVALID_PARAMETERThe input values of VariableName and VendorGuid are not a name and GUID of an existing variable.
EFI_INVALID_PARAMETERNull-terminator is not found in the first VariableNameSize bytes of the input VariableName buffer.
EFI_DEVICE_ERRORThe variable could not be retrieved due to a hardware error.
EFI_UNSUPPORTEDAfter ExitBootServices() has been called, this return code may be returned if no variable storage is supported. The platform should describe this runtime service as unsupported at runtime via an EFI_RT_PROPERTIES_TABLE configuration table.

Definition at line 738 of file UefiSpec.h.

◆ EFI_SET_VARIABLE

typedef EFI_STATUS(EFIAPI * EFI_SET_VARIABLE) (IN CHAR16 *VariableName, IN EFI_GUID *VendorGuid, IN UINT32 Attributes, IN UINTN DataSize, IN VOID *Data)

Sets the value of a variable.

Parameters
[in]VariableNameA Null-terminated string that is the name of the vendor's variable. Each VariableName is unique for each VendorGuid. VariableName must contain 1 or more characters. If VariableName is an empty string, then EFI_INVALID_PARAMETER is returned.
[in]VendorGuidA unique identifier for the vendor.
[in]AttributesAttributes bitmask to set for the variable.
[in]DataSizeThe size in bytes of the Data buffer. Unless the EFI_VARIABLE_APPEND_WRITE or EFI_VARIABLE_TIME_BASED_AUTHENTICATED_WRITE_ACCESS attribute is set, a size of zero causes the variable to be deleted. When the EFI_VARIABLE_APPEND_WRITE attribute is set, then a SetVariable() call with a DataSize of zero will not cause any change to the variable value (the timestamp associated with the variable may be updated however even if no new data value is provided,see the description of the EFI_VARIABLE_AUTHENTICATION_2 descriptor below. In this case the DataSize will not be zero since the EFI_VARIABLE_AUTHENTICATION_2 descriptor will be populated).
[in]DataThe contents for the variable.
Return values
EFI_SUCCESSThe firmware has successfully stored the variable and its data as defined by the Attributes.
EFI_INVALID_PARAMETERAn invalid combination of attribute bits, name, and GUID was supplied, or the DataSize exceeds the maximum allowed.
EFI_INVALID_PARAMETERVariableName is an empty string.
EFI_OUT_OF_RESOURCESNot enough storage is available to hold the variable and its data.
EFI_DEVICE_ERRORThe variable could not be retrieved due to a hardware error.
EFI_WRITE_PROTECTEDThe variable in question is read-only.
EFI_WRITE_PROTECTEDThe variable in question cannot be deleted.
EFI_SECURITY_VIOLATIONThe variable could not be written due to EFI_VARIABLE_TIME_BASED_AUTHENTICATED_WRITE_ACESS being set, but the AuthInfo does NOT pass the validation check carried out by the firmware.
EFI_NOT_FOUNDThe variable trying to be updated or deleted was not found.
EFI_UNSUPPORTEDThis call is not supported by this platform at the time the call is made. The platform should describe this runtime service as unsupported at runtime via an EFI_RT_PROPERTIES_TABLE configuration table.

Definition at line 783 of file UefiSpec.h.

◆ EFI_GET_TIME

typedef EFI_STATUS(EFIAPI * EFI_GET_TIME) (OUT EFI_TIME *Time, OUT EFI_TIME_CAPABILITIES *Capabilities OPTIONAL)

Returns the current time and date information, and the time-keeping capabilities of the hardware platform.

Parameters
[out]TimeA pointer to storage to receive a snapshot of the current time.
[out]CapabilitiesAn optional pointer to a buffer to receive the real time clock device's capabilities.
Return values
EFI_SUCCESSThe operation completed successfully.
EFI_INVALID_PARAMETERTime is NULL.
EFI_DEVICE_ERRORThe time could not be retrieved due to hardware error.
EFI_UNSUPPORTEDThis call is not supported by this platform at the time the call is made. The platform should describe this runtime service as unsupported at runtime via an EFI_RT_PROPERTIES_TABLE configuration table.

Definition at line 838 of file UefiSpec.h.

◆ EFI_SET_TIME

typedef EFI_STATUS(EFIAPI * EFI_SET_TIME) (IN EFI_TIME *Time)

Sets the current local time and date information.

Parameters
[in]TimeA pointer to the current time.
Return values
EFI_SUCCESSThe operation completed successfully.
EFI_INVALID_PARAMETERA time field is out of range.
EFI_DEVICE_ERRORThe time could not be set due due to hardware error.
EFI_UNSUPPORTEDThis call is not supported by this platform at the time the call is made. The platform should describe this runtime service as unsupported at runtime via an EFI_RT_PROPERTIES_TABLE configuration table.

Definition at line 858 of file UefiSpec.h.

◆ EFI_GET_WAKEUP_TIME

typedef EFI_STATUS(EFIAPI * EFI_GET_WAKEUP_TIME) (OUT BOOLEAN *Enabled, OUT BOOLEAN *Pending, OUT EFI_TIME *Time)

Returns the current wakeup alarm clock setting.

Parameters
[out]EnabledIndicates if the alarm is currently enabled or disabled.
[out]PendingIndicates if the alarm signal is pending and requires acknowledgement.
[out]TimeThe current alarm setting.
Return values
EFI_SUCCESSThe alarm settings were returned.
EFI_INVALID_PARAMETEREnabled is NULL.
EFI_INVALID_PARAMETERPending is NULL.
EFI_INVALID_PARAMETERTime is NULL.
EFI_DEVICE_ERRORThe wakeup time could not be retrieved due to a hardware error.
EFI_UNSUPPORTEDThis call is not supported by this platform at the time the call is made. The platform should describe this runtime service as unsupported at runtime via an EFI_RT_PROPERTIES_TABLE configuration table.

Definition at line 881 of file UefiSpec.h.

◆ EFI_SET_WAKEUP_TIME

typedef EFI_STATUS(EFIAPI * EFI_SET_WAKEUP_TIME) (IN BOOLEAN Enable, IN EFI_TIME *Time OPTIONAL)

Sets the system wakeup alarm clock time.

Parameters
[in]EnableEnable or disable the wakeup alarm.
[in]TimeIf Enable is TRUE, the time to set the wakeup alarm for. If Enable is FALSE, then this parameter is optional, and may be NULL.
Return values
EFI_SUCCESSIf Enable is TRUE, then the wakeup alarm was enabled. If Enable is FALSE, then the wakeup alarm was disabled.
EFI_INVALID_PARAMETERA time field is out of range.
EFI_DEVICE_ERRORThe wakeup time could not be set due to a hardware error.
EFI_UNSUPPORTEDThis call is not supported by this platform at the time the call is made. The platform should describe this runtime service as unsupported at runtime via an EFI_RT_PROPERTIES_TABLE configuration table.

Definition at line 905 of file UefiSpec.h.

◆ EFI_IMAGE_LOAD

typedef EFI_STATUS(EFIAPI * EFI_IMAGE_LOAD) (IN BOOLEAN BootPolicy, IN EFI_HANDLE ParentImageHandle, IN EFI_DEVICE_PATH_PROTOCOL *DevicePath OPTIONAL, IN VOID *SourceBuffer OPTIONAL, IN UINTN SourceSize, OUT EFI_HANDLE *ImageHandle)

Loads an EFI image into memory.

Parameters
[in]BootPolicyIf TRUE, indicates that the request originates from the boot manager, and that the boot manager is attempting to load FilePath as a boot selection. Ignored if SourceBuffer is not NULL.
[in]ParentImageHandleThe caller's image handle.
[in]DevicePathThe DeviceHandle specific file path from which the image is loaded.
[in]SourceBufferIf not NULL, a pointer to the memory location containing a copy of the image to be loaded.
[in]SourceSizeThe size in bytes of SourceBuffer. Ignored if SourceBuffer is NULL.
[out]ImageHandleThe pointer to the returned image handle that is created when the image is successfully loaded.
Return values
EFI_SUCCESSImage was loaded into memory correctly.
EFI_NOT_FOUNDBoth SourceBuffer and DevicePath are NULL.
EFI_INVALID_PARAMETEROne or more parametes are invalid.
EFI_UNSUPPORTEDThe image type is not supported.
EFI_OUT_OF_RESOURCESImage was not loaded due to insufficient resources.
EFI_LOAD_ERRORImage was not loaded because the image format was corrupt or not understood.
EFI_DEVICE_ERRORImage was not loaded because the device returned a read error.
EFI_ACCESS_DENIEDImage was not loaded because the platform policy prohibits the image from being loaded. NULL is returned in *ImageHandle.
EFI_SECURITY_VIOLATIONImage was loaded and an ImageHandle was created with a valid EFI_LOADED_IMAGE_PROTOCOL. However, the current platform policy specifies that the image should not be started.

Definition at line 942 of file UefiSpec.h.

◆ EFI_IMAGE_START

typedef EFI_STATUS(EFIAPI * EFI_IMAGE_START) (IN EFI_HANDLE ImageHandle, OUT UINTN *ExitDataSize, OUT CHAR16 **ExitData OPTIONAL)

Transfers control to a loaded image's entry point.

Parameters
[in]ImageHandleHandle of image to be started.
[out]ExitDataSizeThe pointer to the size, in bytes, of ExitData.
[out]ExitDataThe pointer to a pointer to a data buffer that includes a Null-terminated string, optionally followed by additional binary data.
Return values
EFI_INVALID_PARAMETERImageHandle is either an invalid image handle or the image has already been initialized with StartImage.
EFI_SECURITY_VIOLATIONThe current platform policy specifies that the image should not be started.
Returns
Exit code from image

Definition at line 967 of file UefiSpec.h.

◆ EFI_EXIT

typedef EFI_STATUS(EFIAPI * EFI_EXIT) (IN EFI_HANDLE ImageHandle, IN EFI_STATUS ExitStatus, IN UINTN ExitDataSize, IN CHAR16 *ExitData OPTIONAL)

Terminates a loaded EFI image and returns control to boot services.

Parameters
[in]ImageHandleHandle that identifies the image. This parameter is passed to the image on entry.
[in]ExitStatusThe image's exit code.
[in]ExitDataSizeThe size, in bytes, of ExitData. Ignored if ExitStatus is EFI_SUCCESS.
[in]ExitDataThe pointer to a data buffer that includes a Null-terminated string, optionally followed by additional binary data. The string is a description that the caller may use to further indicate the reason for the image's exit. ExitData is only valid if ExitStatus is something other than EFI_SUCCESS. The ExitData buffer must be allocated by calling AllocatePool().
Return values
EFI_SUCCESSThe image specified by ImageHandle was unloaded.
EFI_INVALID_PARAMETERThe image specified by ImageHandle has been loaded and started with LoadImage() and StartImage(), but the image is not the currently executing image.

Definition at line 995 of file UefiSpec.h.

◆ EFI_IMAGE_UNLOAD

typedef EFI_STATUS(EFIAPI * EFI_IMAGE_UNLOAD) (IN EFI_HANDLE ImageHandle)

Unloads an image.

Parameters
[in]ImageHandleHandle that identifies the image to be unloaded.
Return values
EFI_SUCCESSThe image has been unloaded.
EFI_INVALID_PARAMETERImageHandle is not a valid image handle.

Definition at line 1013 of file UefiSpec.h.

◆ EFI_EXIT_BOOT_SERVICES

typedef EFI_STATUS(EFIAPI * EFI_EXIT_BOOT_SERVICES) (IN EFI_HANDLE ImageHandle, IN UINTN MapKey)

Terminates all boot services.

Parameters
[in]ImageHandleHandle that identifies the exiting image.
[in]MapKeyKey to the latest memory map.
Return values
EFI_SUCCESSBoot services have been terminated.
EFI_INVALID_PARAMETERMapKey is incorrect.

Definition at line 1029 of file UefiSpec.h.

◆ EFI_STALL

typedef EFI_STATUS(EFIAPI * EFI_STALL) (IN UINTN Microseconds)

Induces a fine-grained stall.

Parameters
[in]MicrosecondsThe number of microseconds to stall execution.
Return values
EFI_SUCCESSExecution was stalled at least the requested number of Microseconds.

Definition at line 1045 of file UefiSpec.h.

◆ EFI_SET_WATCHDOG_TIMER

typedef EFI_STATUS(EFIAPI * EFI_SET_WATCHDOG_TIMER) (IN UINTN Timeout, IN UINT64 WatchdogCode, IN UINTN DataSize, IN CHAR16 *WatchdogData OPTIONAL)

Sets the system's watchdog timer.

Parameters
[in]TimeoutThe number of seconds to set the watchdog timer to.
[in]WatchdogCodeThe numeric code to log on a watchdog timer timeout event.
[in]DataSizeThe size, in bytes, of WatchdogData.
[in]WatchdogDataA data buffer that includes a Null-terminated string, optionally followed by additional binary data.
Return values
EFI_SUCCESSThe timeout has been set.
EFI_INVALID_PARAMETERThe supplied WatchdogCode is invalid.
EFI_UNSUPPORTEDThe system does not have a watchdog timer.
EFI_DEVICE_ERRORThe watchdog timer could not be programmed due to a hardware error.

Definition at line 1067 of file UefiSpec.h.

◆ EFI_RESET_SYSTEM

typedef VOID(EFIAPI * EFI_RESET_SYSTEM) (IN EFI_RESET_TYPE ResetType, IN EFI_STATUS ResetStatus, IN UINTN DataSize, IN VOID *ResetData OPTIONAL)

Resets the entire platform.

Parameters
[in]ResetTypeThe type of reset to perform.
[in]ResetStatusThe status code for the reset.
[in]DataSizeThe size, in bytes, of ResetData.
[in]ResetDataFor a ResetType of EfiResetCold, EfiResetWarm, or EfiResetShutdown the data buffer starts with a Null-terminated string, optionally followed by additional binary data. The string is a description that the caller may use to further indicate the reason for the system reset. For a ResetType of EfiResetPlatformSpecific the data buffer also starts with a Null-terminated string that is followed by an EFI_GUID that describes the specific type of reset to perform.

Definition at line 1091 of file UefiSpec.h.

◆ EFI_GET_NEXT_MONOTONIC_COUNT

typedef EFI_STATUS(EFIAPI * EFI_GET_NEXT_MONOTONIC_COUNT) (OUT UINT64 *Count)

Returns a monotonically increasing count for the platform.

Parameters
[out]CountThe pointer to returned value.
Return values
EFI_SUCCESSThe next monotonic count was returned.
EFI_INVALID_PARAMETERCount is NULL.
EFI_DEVICE_ERRORThe device is not functioning properly.

Definition at line 1110 of file UefiSpec.h.

◆ EFI_GET_NEXT_HIGH_MONO_COUNT

typedef EFI_STATUS(EFIAPI * EFI_GET_NEXT_HIGH_MONO_COUNT) (OUT UINT32 *HighCount)

Returns the next high 32 bits of the platform's monotonic counter.

Parameters
[out]HighCountThe pointer to returned value.
Return values
EFI_SUCCESSThe next high monotonic count was returned.
EFI_INVALID_PARAMETERHighCount is NULL.
EFI_DEVICE_ERRORThe device is not functioning properly.
EFI_UNSUPPORTEDThis call is not supported by this platform at the time the call is made. The platform should describe this runtime service as unsupported at runtime via an EFI_RT_PROPERTIES_TABLE configuration table.

Definition at line 1129 of file UefiSpec.h.

◆ EFI_CALCULATE_CRC32

typedef EFI_STATUS(EFIAPI * EFI_CALCULATE_CRC32) (IN VOID *Data, IN UINTN DataSize, OUT UINT32 *Crc32)

Computes and returns a 32-bit CRC for a data buffer.

Parameters
[in]DataA pointer to the buffer on which the 32-bit CRC is to be computed.
[in]DataSizeThe number of bytes in the buffer Data.
[out]Crc32The 32-bit CRC that was computed for the data buffer specified by Data and DataSize.
Return values
EFI_SUCCESSThe 32-bit CRC was computed for the data buffer and returned in Crc32.
EFI_INVALID_PARAMETERData is NULL.
EFI_INVALID_PARAMETERCrc32 is NULL.
EFI_INVALID_PARAMETERDataSize is 0.

Definition at line 1150 of file UefiSpec.h.

◆ EFI_COPY_MEM

typedef VOID(EFIAPI * EFI_COPY_MEM) (IN VOID *Destination, IN VOID *Source, IN UINTN Length)

Copies the contents of one buffer to another buffer.

Parameters
[in]DestinationThe pointer to the destination buffer of the memory copy.
[in]SourceThe pointer to the source buffer of the memory copy.
[in]LengthNumber of bytes to copy from Source to Destination.

Definition at line 1166 of file UefiSpec.h.

◆ EFI_SET_MEM

typedef VOID(EFIAPI * EFI_SET_MEM) (IN VOID *Buffer, IN UINTN Size, IN UINT8 Value)

The SetMem() function fills a buffer with a specified value.

Parameters
[in]BufferThe pointer to the buffer to fill.
[in]SizeNumber of bytes in Buffer to fill.
[in]ValueValue to fill Buffer with.

Definition at line 1182 of file UefiSpec.h.

◆ EFI_INSTALL_PROTOCOL_INTERFACE

typedef EFI_STATUS(EFIAPI * EFI_INSTALL_PROTOCOL_INTERFACE) (IN OUT EFI_HANDLE *Handle, IN EFI_GUID *Protocol, IN EFI_INTERFACE_TYPE InterfaceType, IN VOID *Interface)

Installs a protocol interface on a device handle.

If the handle does not exist, it is created and added to the list of handles in the system. InstallMultipleProtocolInterfaces() performs more error checking than InstallProtocolInterface(), so it is recommended that InstallMultipleProtocolInterfaces() be used in place of InstallProtocolInterface()

Parameters
[in,out]HandleA pointer to the EFI_HANDLE on which the interface is to be installed.
[in]ProtocolThe numeric ID of the protocol interface.
[in]InterfaceTypeIndicates whether Interface is supplied in native form.
[in]InterfaceA pointer to the protocol interface.
Return values
EFI_SUCCESSThe protocol interface was installed.
EFI_OUT_OF_RESOURCESSpace for a new handle could not be allocated.
EFI_INVALID_PARAMETERHandle is NULL.
EFI_INVALID_PARAMETERProtocol is NULL.
EFI_INVALID_PARAMETERInterfaceType is not EFI_NATIVE_INTERFACE.
EFI_INVALID_PARAMETERProtocol is already installed on the handle specified by Handle.

Definition at line 1220 of file UefiSpec.h.

◆ EFI_INSTALL_MULTIPLE_PROTOCOL_INTERFACES

typedef EFI_STATUS(EFIAPI * EFI_INSTALL_MULTIPLE_PROTOCOL_INTERFACES) (IN OUT EFI_HANDLE *Handle,...)

Installs one or more protocol interfaces into the boot services environment.

Parameters
[in,out]HandleThe pointer to a handle to install the new protocol interfaces on, or a pointer to NULL if a new handle is to be allocated.
...A variable argument list containing pairs of protocol GUIDs and protocol interfaces.
Return values
EFI_SUCCESSAll the protocol interface was installed.
EFI_OUT_OF_RESOURCESThere was not enough memory in pool to install all the protocols.
EFI_ALREADY_STARTEDA Device Path Protocol instance was passed in that is already present in the handle database.
EFI_INVALID_PARAMETERHandle is NULL.
EFI_INVALID_PARAMETERProtocol is already installed on the handle specified by Handle.

Definition at line 1245 of file UefiSpec.h.

◆ EFI_REINSTALL_PROTOCOL_INTERFACE

typedef EFI_STATUS(EFIAPI * EFI_REINSTALL_PROTOCOL_INTERFACE) (IN EFI_HANDLE Handle, IN EFI_GUID *Protocol, IN VOID *OldInterface, IN VOID *NewInterface)

Reinstalls a protocol interface on a device handle.

Parameters
[in]HandleHandle on which the interface is to be reinstalled.
[in]ProtocolThe numeric ID of the interface.
[in]OldInterfaceA pointer to the old interface. NULL can be used if a structure is not associated with Protocol.
[in]NewInterfaceA pointer to the new interface.
Return values
EFI_SUCCESSThe protocol interface was reinstalled.
EFI_NOT_FOUNDThe OldInterface on the handle was not found.
EFI_ACCESS_DENIEDThe protocol interface could not be reinstalled, because OldInterface is still being used by a driver that will not release it.
EFI_INVALID_PARAMETERHandle is NULL.
EFI_INVALID_PARAMETERProtocol is NULL.

Definition at line 1270 of file UefiSpec.h.

◆ EFI_UNINSTALL_PROTOCOL_INTERFACE

typedef EFI_STATUS(EFIAPI * EFI_UNINSTALL_PROTOCOL_INTERFACE) (IN EFI_HANDLE Handle, IN EFI_GUID *Protocol, IN VOID *Interface)

Removes a protocol interface from a device handle.

It is recommended that UninstallMultipleProtocolInterfaces() be used in place of UninstallProtocolInterface().

Parameters
[in]HandleThe handle on which the interface was installed.
[in]ProtocolThe numeric ID of the interface.
[in]InterfaceA pointer to the interface.
Return values
EFI_SUCCESSThe interface was removed.
EFI_NOT_FOUNDThe interface was not found.
EFI_ACCESS_DENIEDThe interface was not removed because the interface is still being used by a driver.
EFI_INVALID_PARAMETERHandle is NULL.
EFI_INVALID_PARAMETERProtocol is NULL.

Definition at line 1296 of file UefiSpec.h.

◆ EFI_UNINSTALL_MULTIPLE_PROTOCOL_INTERFACES

typedef EFI_STATUS(EFIAPI * EFI_UNINSTALL_MULTIPLE_PROTOCOL_INTERFACES) (IN EFI_HANDLE Handle,...)

Removes one or more protocol interfaces into the boot services environment.

Parameters
[in]HandleThe handle to remove the protocol interfaces from.
...A variable argument list containing pairs of protocol GUIDs and protocol interfaces.
Return values
EFI_SUCCESSAll the protocol interfaces were removed.
EFI_INVALID_PARAMETEROne of the protocol interfaces was not previously installed on Handle.

Definition at line 1315 of file UefiSpec.h.

◆ EFI_HANDLE_PROTOCOL

typedef EFI_STATUS(EFIAPI * EFI_HANDLE_PROTOCOL) (IN EFI_HANDLE Handle, IN EFI_GUID *Protocol, OUT VOID **Interface)

Queries a handle to determine if it supports a specified protocol.

Parameters
[in]HandleThe handle being queried.
[in]ProtocolThe published unique identifier of the protocol.
[out]InterfaceSupplies the address where a pointer to the corresponding Protocol Interface is returned.
Return values
EFI_SUCCESSThe interface information for the specified protocol was returned.
EFI_UNSUPPORTEDThe device does not support the specified protocol.
EFI_INVALID_PARAMETERHandle is NULL.
EFI_INVALID_PARAMETERProtocol is NULL.
EFI_INVALID_PARAMETERInterface is NULL.

Definition at line 1337 of file UefiSpec.h.

◆ EFI_OPEN_PROTOCOL

typedef EFI_STATUS(EFIAPI * EFI_OPEN_PROTOCOL) (IN EFI_HANDLE Handle, IN EFI_GUID *Protocol, OUT VOID **Interface OPTIONAL, IN EFI_HANDLE AgentHandle, IN EFI_HANDLE ControllerHandle, IN UINT32 Attributes)

Queries a handle to determine if it supports a specified protocol.

If the protocol is supported by the handle, it opens the protocol on behalf of the calling agent.

Parameters
[in]HandleThe handle for the protocol interface that is being opened.
[in]ProtocolThe published unique identifier of the protocol.
[out]InterfaceSupplies the address where a pointer to the corresponding Protocol Interface is returned.
[in]AgentHandleThe handle of the agent that is opening the protocol interface specified by Protocol and Interface.
[in]ControllerHandleIf the agent that is opening a protocol is a driver that follows the UEFI Driver Model, then this parameter is the controller handle that requires the protocol interface. If the agent does not follow the UEFI Driver Model, then this parameter is optional and may be NULL.
[in]AttributesThe open mode of the protocol interface specified by Handle and Protocol.
Return values
EFI_SUCCESSAn item was added to the open list for the protocol interface, and the protocol interface was returned in Interface.
EFI_UNSUPPORTEDHandle does not support Protocol.
EFI_INVALID_PARAMETEROne or more parameters are invalid.
EFI_ACCESS_DENIEDRequired attributes can't be supported in current environment.
EFI_ALREADY_STARTEDItem on the open list already has requierd attributes whose agent handle is the same as AgentHandle.

Definition at line 1379 of file UefiSpec.h.

◆ EFI_CLOSE_PROTOCOL

typedef EFI_STATUS(EFIAPI * EFI_CLOSE_PROTOCOL) (IN EFI_HANDLE Handle, IN EFI_GUID *Protocol, IN EFI_HANDLE AgentHandle, IN EFI_HANDLE ControllerHandle)

Closes a protocol on a handle that was opened using OpenProtocol().

Parameters
[in]HandleThe handle for the protocol interface that was previously opened with OpenProtocol(), and is now being closed.
[in]ProtocolThe published unique identifier of the protocol.
[in]AgentHandleThe handle of the agent that is closing the protocol interface.
[in]ControllerHandleIf the agent that opened a protocol is a driver that follows the UEFI Driver Model, then this parameter is the controller handle that required the protocol interface.
Return values
EFI_SUCCESSThe protocol instance was closed.
EFI_INVALID_PARAMETER1) Handle is NULL. 2) AgentHandle is NULL. 3) ControllerHandle is not NULL and ControllerHandle is not a valid EFI_HANDLE. 4) Protocol is NULL.
EFI_NOT_FOUND1) Handle does not support the protocol specified by Protocol. 2) The protocol interface specified by Handle and Protocol is not currently open by AgentHandle and ControllerHandle.

Definition at line 1411 of file UefiSpec.h.

◆ EFI_OPEN_PROTOCOL_INFORMATION

typedef EFI_STATUS(EFIAPI * EFI_OPEN_PROTOCOL_INFORMATION) (IN EFI_HANDLE Handle, IN EFI_GUID *Protocol, OUT EFI_OPEN_PROTOCOL_INFORMATION_ENTRY **EntryBuffer, OUT UINTN *EntryCount)

Retrieves the list of agents that currently have a protocol interface opened.

Parameters
[in]HandleThe handle for the protocol interface that is being queried.
[in]ProtocolThe published unique identifier of the protocol.
[out]EntryBufferA pointer to a buffer of open protocol information in the form of EFI_OPEN_PROTOCOL_INFORMATION_ENTRY structures.
[out]EntryCountA pointer to the number of entries in EntryBuffer.
Return values
EFI_SUCCESSThe open protocol information was returned in EntryBuffer, and the number of entries was returned EntryCount.
EFI_OUT_OF_RESOURCESThere are not enough resources available to allocate EntryBuffer.
EFI_NOT_FOUNDHandle does not support the protocol specified by Protocol.

Definition at line 1445 of file UefiSpec.h.

◆ EFI_PROTOCOLS_PER_HANDLE

typedef EFI_STATUS(EFIAPI * EFI_PROTOCOLS_PER_HANDLE) (IN EFI_HANDLE Handle, OUT EFI_GUID ***ProtocolBuffer, OUT UINTN *ProtocolBufferCount)

Retrieves the list of protocol interface GUIDs that are installed on a handle in a buffer allocated from pool.

Parameters
[in]HandleThe handle from which to retrieve the list of protocol interface GUIDs.
[out]ProtocolBufferA pointer to the list of protocol interface GUID pointers that are installed on Handle.
[out]ProtocolBufferCountA pointer to the number of GUID pointers present in ProtocolBuffer.
Return values
EFI_SUCCESSThe list of protocol interface GUIDs installed on Handle was returned in ProtocolBuffer. The number of protocol interface GUIDs was returned in ProtocolBufferCount.
EFI_OUT_OF_RESOURCESThere is not enough pool memory to store the results.
EFI_INVALID_PARAMETERHandle is NULL.
EFI_INVALID_PARAMETERHandle is not a valid EFI_HANDLE.
EFI_INVALID_PARAMETERProtocolBuffer is NULL.
EFI_INVALID_PARAMETERProtocolBufferCount is NULL.

Definition at line 1475 of file UefiSpec.h.

◆ EFI_REGISTER_PROTOCOL_NOTIFY

typedef EFI_STATUS(EFIAPI * EFI_REGISTER_PROTOCOL_NOTIFY) (IN EFI_GUID *Protocol, IN EFI_EVENT Event, OUT VOID **Registration)

Creates an event that is to be signaled whenever an interface is installed for a specified protocol.

Parameters
[in]ProtocolThe numeric ID of the protocol for which the event is to be registered.
[in]EventEvent that is to be signaled whenever a protocol interface is registered for Protocol.
[out]RegistrationA pointer to a memory location to receive the registration value.
Return values
EFI_SUCCESSThe notification event has been registered.
EFI_OUT_OF_RESOURCESSpace for the notification event could not be allocated.
EFI_INVALID_PARAMETERProtocol is NULL.
EFI_INVALID_PARAMETEREvent is NULL.
EFI_INVALID_PARAMETERRegistration is NULL.

Definition at line 1498 of file UefiSpec.h.

◆ EFI_LOCATE_HANDLE

Returns an array of handles that support a specified protocol.

Parameters
[in]SearchTypeSpecifies which handle(s) are to be returned.
[in]ProtocolSpecifies the protocol to search by.
[in]SearchKeySpecifies the search key.
[in,out]BufferSizeOn input, the size in bytes of Buffer. On output, the size in bytes of the array returned in Buffer (if the buffer was large enough) or the size, in bytes, of the buffer needed to obtain the array (if the buffer was not large enough).
[out]BufferThe buffer in which the array is returned.
Return values
EFI_SUCCESSThe array of handles was returned.
EFI_NOT_FOUNDNo handles match the search.
EFI_BUFFER_TOO_SMALLThe BufferSize is too small for the result.
EFI_INVALID_PARAMETERSearchType is not a member of EFI_LOCATE_SEARCH_TYPE.
EFI_INVALID_PARAMETERSearchType is ByRegisterNotify and SearchKey is NULL.
EFI_INVALID_PARAMETERSearchType is ByProtocol and Protocol is NULL.
EFI_INVALID_PARAMETEROne or more matches are found and BufferSize is NULL.
EFI_INVALID_PARAMETERBufferSize is large enough for the result and Buffer is NULL.

Definition at line 1547 of file UefiSpec.h.

◆ EFI_LOCATE_DEVICE_PATH

typedef EFI_STATUS(EFIAPI * EFI_LOCATE_DEVICE_PATH) (IN EFI_GUID *Protocol, IN OUT EFI_DEVICE_PATH_PROTOCOL **DevicePath, OUT EFI_HANDLE *Device)

Locates the handle to a device on the device path that supports the specified protocol.

Parameters
[in]ProtocolSpecifies the protocol to search for.
[in,out]DevicePathOn input, a pointer to a pointer to the device path. On output, the device path pointer is modified to point to the remaining part of the device path.
[out]DeviceA pointer to the returned device handle.
Return values
EFI_SUCCESSThe resulting handle was returned.
EFI_NOT_FOUNDNo handles match the search.
EFI_INVALID_PARAMETERProtocol is NULL.
EFI_INVALID_PARAMETERDevicePath is NULL.
EFI_INVALID_PARAMETERA handle matched the search and Device is NULL.

Definition at line 1573 of file UefiSpec.h.

◆ EFI_INSTALL_CONFIGURATION_TABLE

typedef EFI_STATUS(EFIAPI * EFI_INSTALL_CONFIGURATION_TABLE) (IN EFI_GUID *Guid, IN VOID *Table)

Adds, updates, or removes a configuration table entry from the EFI System Table.

Parameters
[in]GuidA pointer to the GUID for the entry to add, update, or remove.
[in]TableA pointer to the configuration table for the entry to add, update, or remove. May be NULL.
Return values
EFI_SUCCESSThe (Guid, Table) pair was added, updated, or removed.
EFI_NOT_FOUNDAn attempt was made to delete a nonexistent entry.
EFI_INVALID_PARAMETERGuid is NULL.
EFI_OUT_OF_RESOURCESThere is not enough memory available to complete the operation.

Definition at line 1594 of file UefiSpec.h.

◆ EFI_LOCATE_HANDLE_BUFFER

typedef EFI_STATUS(EFIAPI * EFI_LOCATE_HANDLE_BUFFER) (IN EFI_LOCATE_SEARCH_TYPE SearchType, IN EFI_GUID *Protocol OPTIONAL, IN VOID *SearchKey OPTIONAL, OUT UINTN *NoHandles, OUT EFI_HANDLE **Buffer)

Returns an array of handles that support the requested protocol in a buffer allocated from pool.

Parameters
[in]SearchTypeSpecifies which handle(s) are to be returned.
[in]ProtocolProvides the protocol to search by. This parameter is only valid for a SearchType of ByProtocol.
[in]SearchKeySupplies the search key depending on the SearchType.
[out]NoHandlesThe number of handles returned in Buffer.
[out]BufferA pointer to the buffer to return the requested array of handles that support Protocol.
Return values
EFI_SUCCESSThe array of handles was returned in Buffer, and the number of handles in Buffer was returned in NoHandles.
EFI_NOT_FOUNDNo handles match the search.
EFI_OUT_OF_RESOURCESThere is not enough pool memory to store the matching results.
EFI_INVALID_PARAMETERNoHandles is NULL.
EFI_INVALID_PARAMETERBuffer is NULL.

Definition at line 1620 of file UefiSpec.h.

◆ EFI_LOCATE_PROTOCOL

typedef EFI_STATUS(EFIAPI * EFI_LOCATE_PROTOCOL) (IN EFI_GUID *Protocol, IN VOID *Registration OPTIONAL, OUT VOID **Interface)

Returns the first protocol instance that matches the given protocol.

Parameters
[in]ProtocolProvides the protocol to search for.
[in]RegistrationOptional registration key returned from RegisterProtocolNotify().
[out]InterfaceOn return, a pointer to the first interface that matches Protocol and Registration.
Return values
EFI_SUCCESSA protocol instance matching Protocol was found and returned in Interface.
EFI_NOT_FOUNDNo protocol instances were found that match Protocol and Registration.
EFI_INVALID_PARAMETERInterface is NULL. Protocol is NULL.

Definition at line 1647 of file UefiSpec.h.

◆ EFI_UPDATE_CAPSULE

typedef EFI_STATUS(EFIAPI * EFI_UPDATE_CAPSULE) (IN EFI_CAPSULE_HEADER **CapsuleHeaderArray, IN UINTN CapsuleCount, IN EFI_PHYSICAL_ADDRESS ScatterGatherList OPTIONAL)

Passes capsules to the firmware with both virtual and physical mapping.

Depending on the intended consumption, the firmware may process the capsule immediately. If the payload should persist across a system reset, the reset value returned from EFI_QueryCapsuleCapabilities must be passed into ResetSystem() and will cause the capsule to be processed by the firmware as part of the reset process.

Parameters
[in]CapsuleHeaderArrayVirtual pointer to an array of virtual pointers to the capsules being passed into update capsule.
[in]CapsuleCountNumber of pointers to EFI_CAPSULE_HEADER in CaspuleHeaderArray.
[in]ScatterGatherListPhysical pointer to a set of EFI_CAPSULE_BLOCK_DESCRIPTOR that describes the location in physical memory of a set of capsules.
Return values
EFI_SUCCESSValid capsule was passed. If CAPSULE_FLAGS_PERSIT_ACROSS_RESET is not set, the capsule has been successfully processed by the firmware.
EFI_INVALID_PARAMETERCapsuleSize is NULL, or an incompatible set of flags were set in the capsule header.
EFI_INVALID_PARAMETERCapsuleCount is 0.
EFI_DEVICE_ERRORThe capsule update was started, but failed due to a device error.
EFI_UNSUPPORTEDThe capsule type is not supported on this platform.
EFI_OUT_OF_RESOURCESWhen ExitBootServices() has been previously called this error indicates the capsule is compatible with this platform but is not capable of being submitted or processed in runtime. The caller may resubmit the capsule prior to ExitBootServices().
EFI_OUT_OF_RESOURCESWhen ExitBootServices() has not been previously called then this error indicates the capsule is compatible with this platform but there are insufficient resources to process.
EFI_UNSUPPORTEDThis call is not supported by this platform at the time the call is made. The platform should describe this runtime service as unsupported at runtime via an EFI_RT_PROPERTIES_TABLE configuration table.

Definition at line 1758 of file UefiSpec.h.

◆ EFI_QUERY_CAPSULE_CAPABILITIES

typedef EFI_STATUS(EFIAPI * EFI_QUERY_CAPSULE_CAPABILITIES) (IN EFI_CAPSULE_HEADER **CapsuleHeaderArray, IN UINTN CapsuleCount, OUT UINT64 *MaximumCapsuleSize, OUT EFI_RESET_TYPE *ResetType)

Returns if the capsule can be supported via UpdateCapsule().

Parameters
[in]CapsuleHeaderArrayVirtual pointer to an array of virtual pointers to the capsules being passed into update capsule.
[in]CapsuleCountNumber of pointers to EFI_CAPSULE_HEADER in CaspuleHeaderArray.
[out]MaxiumCapsuleSizeOn output the maximum size that UpdateCapsule() can support as an argument to UpdateCapsule() via CapsuleHeaderArray and ScatterGatherList.
[out]ResetTypeReturns the type of reset required for the capsule update.
Return values
EFI_SUCCESSValid answer returned.
EFI_UNSUPPORTEDThe capsule type is not supported on this platform, and MaximumCapsuleSize and ResetType are undefined.
EFI_INVALID_PARAMETERMaximumCapsuleSize is NULL.
EFI_OUT_OF_RESOURCESWhen ExitBootServices() has been previously called this error indicates the capsule is compatible with this platform but is not capable of being submitted or processed in runtime. The caller may resubmit the capsule prior to ExitBootServices().
EFI_OUT_OF_RESOURCESWhen ExitBootServices() has not been previously called then this error indicates the capsule is compatible with this platform but there are insufficient resources to process.
EFI_UNSUPPORTEDThis call is not supported by this platform at the time the call is made. The platform should describe this runtime service as unsupported at runtime via an EFI_RT_PROPERTIES_TABLE configuration table.

Definition at line 1792 of file UefiSpec.h.

◆ EFI_QUERY_VARIABLE_INFO

typedef EFI_STATUS(EFIAPI * EFI_QUERY_VARIABLE_INFO) (IN UINT32 Attributes, OUT UINT64 *MaximumVariableStorageSize, OUT UINT64 *RemainingVariableStorageSize, OUT UINT64 *MaximumVariableSize)

Returns information about the EFI variables.

Parameters
[in]AttributesAttributes bitmask to specify the type of variables on which to return information.
[out]MaximumVariableStorageSizeOn output the maximum size of the storage space available for the EFI variables associated with the attributes specified.
[out]RemainingVariableStorageSizeReturns the remaining size of the storage space available for the EFI variables associated with the attributes specified.
[out]MaximumVariableSizeReturns the maximum size of the individual EFI variables associated with the attributes specified.
Return values
EFI_SUCCESSValid answer returned.
EFI_INVALID_PARAMETERAn invalid combination of attribute bits was supplied
EFI_UNSUPPORTEDThe attribute is not supported on this platform, and the MaximumVariableStorageSize, RemainingVariableStorageSize, MaximumVariableSize are undefined.

Definition at line 1823 of file UefiSpec.h.

◆ EFI_IMAGE_ENTRY_POINT

typedef EFI_STATUS(EFIAPI * EFI_IMAGE_ENTRY_POINT) (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)

This is the declaration of an EFI image entry point.

This entry point is the same for UEFI Applications, UEFI OS Loaders, and UEFI Drivers including both device drivers and bus drivers.

Parameters
[in]ImageHandleThe firmware allocated handle for the UEFI image.
[in]SystemTableA pointer to the EFI System Table.
Return values
EFI_SUCCESSThe operation completed successfully.
OthersAn unexpected error occurred.

Definition at line 2106 of file UefiSpec.h.

◆ EFI_LOAD_OPTION

Enumeration Type Documentation

◆ EFI_ALLOCATE_TYPE

Enumeration of EFI memory allocation types.

Enumerator
AllocateAnyPages 

Allocate any available range of pages that satisfies the request.

AllocateMaxAddress 

Allocate any available range of pages whose uppermost address is less than or equal to a specified maximum address.

AllocateAddress 

Allocate pages at a specified address.

MaxAllocateType 

Maximum enumeration value that may be used for bounds checking.

Definition at line 31 of file UefiSpec.h.

31  {
32  ///
33  /// Allocate any available range of pages that satisfies the request.
34  ///
36  ///
37  /// Allocate any available range of pages whose uppermost address is less than
38  /// or equal to a specified maximum address.
39  ///
41  ///
42  /// Allocate pages at a specified address.
43  ///
45  ///
46  /// Maximum enumeration value that may be used for bounds checking.
47  ///
Allocate pages at a specified address.
Definition: UefiSpec.h:44
Maximum enumeration value that may be used for bounds checking.
Definition: UefiSpec.h:48
Allocate any available range of pages whose uppermost address is less than or equal to a specified ma...
Definition: UefiSpec.h:40
EFI_ALLOCATE_TYPE
Enumeration of EFI memory allocation types.
Definition: UefiSpec.h:31
Allocate any available range of pages that satisfies the request.
Definition: UefiSpec.h:35

◆ EFI_TIMER_DELAY

Timer delay types.

Enumerator
TimerCancel 

An event's timer settings is to be cancelled and not trigger time is to be set/.

TimerPeriodic 

An event is to be signaled periodically at a specified interval from the current time.

TimerRelative 

An event is to be signaled once at a specified interval from the current time.

Definition at line 529 of file UefiSpec.h.

529  {
530  ///
531  /// An event's timer settings is to be cancelled and not trigger time is to be set/
532  ///
533  TimerCancel,
534  ///
535  /// An event is to be signaled periodically at a specified interval from the current time.
536  ///
538  ///
539  /// An event is to be signaled once at a specified interval from the current time.
540  ///
An event is to be signaled periodically at a specified interval from the current time.
Definition: UefiSpec.h:537
An event is to be signaled once at a specified interval from the current time.
Definition: UefiSpec.h:541
An event's timer settings is to be cancelled and not trigger time is to be set/.
Definition: UefiSpec.h:533
EFI_TIMER_DELAY
Timer delay types.
Definition: UefiSpec.h:529

◆ EFI_INTERFACE_TYPE

Enumeration of EFI Interface Types.

Enumerator
EFI_NATIVE_INTERFACE 

Indicates that the supplied protocol interface is supplied in native form.

Definition at line 1191 of file UefiSpec.h.

1191  {
1192  ///
1193  /// Indicates that the supplied protocol interface is supplied in native form.
1194  ///
Indicates that the supplied protocol interface is supplied in native form.
Definition: UefiSpec.h:1195
EFI_INTERFACE_TYPE
Enumeration of EFI Interface Types.
Definition: UefiSpec.h:1191

◆ EFI_LOCATE_SEARCH_TYPE

Enumeration of EFI Locate Search Types.

Enumerator
AllHandles 

Retrieve all the handles in the handle database.

ByRegisterNotify 

Retrieve the next handle fron a RegisterProtocolNotify() event.

ByProtocol 

Retrieve the set of handles from the handle database that support a specified protocol.

Definition at line 1507 of file UefiSpec.h.

1507  {
1508  ///
1509  /// Retrieve all the handles in the handle database.
1510  ///
1511  AllHandles,
1512  ///
1513  /// Retrieve the next handle fron a RegisterProtocolNotify() event.
1514  ///
1516  ///
1517  /// Retrieve the set of handles from the handle database that support a
1518  /// specified protocol.
1519  ///
1520  ByProtocol
Retrieve all the handles in the handle database.
Definition: UefiSpec.h:1511
Retrieve the next handle fron a RegisterProtocolNotify() event.
Definition: UefiSpec.h:1515
Retrieve the set of handles from the handle database that support a specified protocol.
Definition: UefiSpec.h:1520
EFI_LOCATE_SEARCH_TYPE
Enumeration of EFI Locate Search Types.
Definition: UefiSpec.h:1507

Function Documentation

◆ FILE_LICENCE()

FILE_LICENCE ( BSD2_PATENT  )