iPXE
|
Defines data types and constants introduced in UEFI. More...
#include <ipxe/efi/Base.h>
Go to the source code of this file.
Data Structures | |
struct | EFI_TIME |
EFI Time Abstraction: Year: 1900 - 9999 Month: 1 - 12 Day: 1 - 31 Hour: 0 - 23 Minute: 0 - 59 Second: 0 - 59 Nanosecond: 0 - 999,999,999 TimeZone: -1440 to 1440 or 2047. More... | |
struct | EFI_MAC_ADDRESS |
32-byte buffer containing a network Media Access Control address. More... | |
union | EFI_IP_ADDRESS |
16-byte buffer aligned on a 4-byte boundary. More... | |
Macros | |
#define | EFIERR(_a) ENCODE_ERROR(_a) |
Define macro to encode the status code. More... | |
#define | EFI_ERROR(A) RETURN_ERROR(A) |
#define | EFI_PAGE_SIZE SIZE_4KB |
#define | EFI_PAGE_MASK 0xFFF |
#define | EFI_PAGE_SHIFT 12 |
#define | EFI_SIZE_TO_PAGES(Size) (((Size) >> EFI_PAGE_SHIFT) + (((Size) & EFI_PAGE_MASK) ? 1 : 0)) |
Macro that converts a size, in bytes, to a number of EFI_PAGESs. More... | |
#define | EFI_PAGES_TO_SIZE(Pages) ((Pages) << EFI_PAGE_SHIFT) |
Macro that converts a number of EFI_PAGEs to a size in bytes. More... | |
#define | EFI_IMAGE_MACHINE_IA32 0x014C |
PE32+ Machine type for IA32 UEFI images. More... | |
#define | EFI_IMAGE_MACHINE_IA64 0x0200 |
PE32+ Machine type for IA64 UEFI images. More... | |
#define | EFI_IMAGE_MACHINE_EBC 0x0EBC |
PE32+ Machine type for EBC UEFI images. More... | |
#define | EFI_IMAGE_MACHINE_X64 0x8664 |
PE32+ Machine type for X64 UEFI images. More... | |
#define | EFI_IMAGE_MACHINE_ARMTHUMB_MIXED 0x01C2 |
PE32+ Machine type for ARM mixed ARM and Thumb/Thumb2 images. More... | |
#define | EFI_IMAGE_MACHINE_AARCH64 0xAA64 |
PE32+ Machine type for AARCH64 A64 images. More... | |
#define | EFI_SUCCESS RETURN_SUCCESS |
Enumeration of EFI_STATUS. More... | |
#define | EFI_LOAD_ERROR RETURN_LOAD_ERROR |
Enumeration of EFI_STATUS. More... | |
#define | EFI_INVALID_PARAMETER RETURN_INVALID_PARAMETER |
Enumeration of EFI_STATUS. More... | |
#define | EFI_UNSUPPORTED RETURN_UNSUPPORTED |
Enumeration of EFI_STATUS. More... | |
#define | EFI_BAD_BUFFER_SIZE RETURN_BAD_BUFFER_SIZE |
Enumeration of EFI_STATUS. More... | |
#define | EFI_BUFFER_TOO_SMALL RETURN_BUFFER_TOO_SMALL |
Enumeration of EFI_STATUS. More... | |
#define | EFI_NOT_READY RETURN_NOT_READY |
Enumeration of EFI_STATUS. More... | |
#define | EFI_DEVICE_ERROR RETURN_DEVICE_ERROR |
Enumeration of EFI_STATUS. More... | |
#define | EFI_WRITE_PROTECTED RETURN_WRITE_PROTECTED |
Enumeration of EFI_STATUS. More... | |
#define | EFI_OUT_OF_RESOURCES RETURN_OUT_OF_RESOURCES |
Enumeration of EFI_STATUS. More... | |
#define | EFI_VOLUME_CORRUPTED RETURN_VOLUME_CORRUPTED |
Enumeration of EFI_STATUS. More... | |
#define | EFI_VOLUME_FULL RETURN_VOLUME_FULL |
Enumeration of EFI_STATUS. More... | |
#define | EFI_NO_MEDIA RETURN_NO_MEDIA |
Enumeration of EFI_STATUS. More... | |
#define | EFI_MEDIA_CHANGED RETURN_MEDIA_CHANGED |
Enumeration of EFI_STATUS. More... | |
#define | EFI_NOT_FOUND RETURN_NOT_FOUND |
Enumeration of EFI_STATUS. More... | |
#define | EFI_ACCESS_DENIED RETURN_ACCESS_DENIED |
Enumeration of EFI_STATUS. More... | |
#define | EFI_NO_RESPONSE RETURN_NO_RESPONSE |
Enumeration of EFI_STATUS. More... | |
#define | EFI_NO_MAPPING RETURN_NO_MAPPING |
Enumeration of EFI_STATUS. More... | |
#define | EFI_TIMEOUT RETURN_TIMEOUT |
Enumeration of EFI_STATUS. More... | |
#define | EFI_NOT_STARTED RETURN_NOT_STARTED |
Enumeration of EFI_STATUS. More... | |
#define | EFI_ALREADY_STARTED RETURN_ALREADY_STARTED |
Enumeration of EFI_STATUS. More... | |
#define | EFI_ABORTED RETURN_ABORTED |
Enumeration of EFI_STATUS. More... | |
#define | EFI_ICMP_ERROR RETURN_ICMP_ERROR |
Enumeration of EFI_STATUS. More... | |
#define | EFI_TFTP_ERROR RETURN_TFTP_ERROR |
Enumeration of EFI_STATUS. More... | |
#define | EFI_PROTOCOL_ERROR RETURN_PROTOCOL_ERROR |
Enumeration of EFI_STATUS. More... | |
#define | EFI_INCOMPATIBLE_VERSION RETURN_INCOMPATIBLE_VERSION |
Enumeration of EFI_STATUS. More... | |
#define | EFI_SECURITY_VIOLATION RETURN_SECURITY_VIOLATION |
Enumeration of EFI_STATUS. More... | |
#define | EFI_CRC_ERROR RETURN_CRC_ERROR |
Enumeration of EFI_STATUS. More... | |
#define | EFI_END_OF_MEDIA RETURN_END_OF_MEDIA |
Enumeration of EFI_STATUS. More... | |
#define | EFI_END_OF_FILE RETURN_END_OF_FILE |
Enumeration of EFI_STATUS. More... | |
#define | EFI_INVALID_LANGUAGE RETURN_INVALID_LANGUAGE |
Enumeration of EFI_STATUS. More... | |
#define | EFI_COMPROMISED_DATA RETURN_COMPROMISED_DATA |
Enumeration of EFI_STATUS. More... | |
#define | EFI_HTTP_ERROR RETURN_HTTP_ERROR |
Enumeration of EFI_STATUS. More... | |
#define | EFI_WARN_UNKNOWN_GLYPH RETURN_WARN_UNKNOWN_GLYPH |
Enumeration of EFI_STATUS. More... | |
#define | EFI_WARN_DELETE_FAILURE RETURN_WARN_DELETE_FAILURE |
Enumeration of EFI_STATUS. More... | |
#define | EFI_WARN_WRITE_FAILURE RETURN_WARN_WRITE_FAILURE |
Enumeration of EFI_STATUS. More... | |
#define | EFI_WARN_BUFFER_TOO_SMALL RETURN_WARN_BUFFER_TOO_SMALL |
Enumeration of EFI_STATUS. More... | |
#define | EFI_WARN_STALE_DATA RETURN_WARN_STALE_DATA |
Enumeration of EFI_STATUS. More... | |
#define | EFI_WARN_FILE_SYSTEM RETURN_WARN_FILE_SYSTEM |
Enumeration of EFI_STATUS. More... | |
#define | EFI_NETWORK_UNREACHABLE EFIERR(100) |
ICMP error definitions. More... | |
#define | EFI_HOST_UNREACHABLE EFIERR(101) |
ICMP error definitions. More... | |
#define | EFI_PROTOCOL_UNREACHABLE EFIERR(102) |
ICMP error definitions. More... | |
#define | EFI_PORT_UNREACHABLE EFIERR(103) |
ICMP error definitions. More... | |
#define | EFI_CONNECTION_FIN EFIERR(104) |
Tcp connection status definitions. More... | |
#define | EFI_CONNECTION_RESET EFIERR(105) |
Tcp connection status definitions. More... | |
#define | EFI_CONNECTION_REFUSED EFIERR(106) |
Tcp connection status definitions. More... | |
Typedefs | |
typedef GUID | EFI_GUID |
128-bit buffer containing a unique identifier value. More... | |
typedef RETURN_STATUS | EFI_STATUS |
Function return status for EFI API. More... | |
typedef VOID * | EFI_HANDLE |
A collection of related interfaces. More... | |
typedef VOID * | EFI_EVENT |
Handle to an event structure. More... | |
typedef UINTN | EFI_TPL |
Task priority level. More... | |
typedef UINT64 | EFI_LBA |
Logical block address. More... | |
typedef UINT64 | EFI_PHYSICAL_ADDRESS |
64-bit physical memory address. More... | |
typedef UINT64 | EFI_VIRTUAL_ADDRESS |
64-bit virtual memory address. More... | |
typedef IPv4_ADDRESS | EFI_IPv4_ADDRESS |
4-byte buffer. More... | |
typedef IPv6_ADDRESS | EFI_IPv6_ADDRESS |
16-byte buffer. More... | |
Functions | |
FILE_LICENCE (BSD3) | |
Defines data types and constants introduced in UEFI.
Copyright (c) 2006 - 2017, Intel Corporation. All rights reserved.
Portions copyright (c) 2011 - 2016, ARM Ltd. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License that accompanies this distribution. The full text of the license may be found at http://opensource.org/licenses/bsd-license.php.
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
Definition in file UefiBaseType.h.
#define EFI_SUCCESS RETURN_SUCCESS |
Enumeration of EFI_STATUS.
Definition at line 120 of file UefiBaseType.h.
#define EFI_LOAD_ERROR RETURN_LOAD_ERROR |
Enumeration of EFI_STATUS.
Definition at line 121 of file UefiBaseType.h.
#define EFI_INVALID_PARAMETER RETURN_INVALID_PARAMETER |
Enumeration of EFI_STATUS.
Definition at line 122 of file UefiBaseType.h.
#define EFI_UNSUPPORTED RETURN_UNSUPPORTED |
Enumeration of EFI_STATUS.
Definition at line 123 of file UefiBaseType.h.
#define EFI_BAD_BUFFER_SIZE RETURN_BAD_BUFFER_SIZE |
Enumeration of EFI_STATUS.
Definition at line 124 of file UefiBaseType.h.
#define EFI_BUFFER_TOO_SMALL RETURN_BUFFER_TOO_SMALL |
Enumeration of EFI_STATUS.
Definition at line 125 of file UefiBaseType.h.
#define EFI_NOT_READY RETURN_NOT_READY |
Enumeration of EFI_STATUS.
Definition at line 126 of file UefiBaseType.h.
#define EFI_DEVICE_ERROR RETURN_DEVICE_ERROR |
Enumeration of EFI_STATUS.
Definition at line 127 of file UefiBaseType.h.
#define EFI_WRITE_PROTECTED RETURN_WRITE_PROTECTED |
Enumeration of EFI_STATUS.
Definition at line 128 of file UefiBaseType.h.
#define EFI_OUT_OF_RESOURCES RETURN_OUT_OF_RESOURCES |
Enumeration of EFI_STATUS.
Definition at line 129 of file UefiBaseType.h.
#define EFI_VOLUME_CORRUPTED RETURN_VOLUME_CORRUPTED |
Enumeration of EFI_STATUS.
Definition at line 130 of file UefiBaseType.h.
#define EFI_VOLUME_FULL RETURN_VOLUME_FULL |
Enumeration of EFI_STATUS.
Definition at line 131 of file UefiBaseType.h.
#define EFI_NO_MEDIA RETURN_NO_MEDIA |
Enumeration of EFI_STATUS.
Definition at line 132 of file UefiBaseType.h.
#define EFI_MEDIA_CHANGED RETURN_MEDIA_CHANGED |
Enumeration of EFI_STATUS.
Definition at line 133 of file UefiBaseType.h.
#define EFI_NOT_FOUND RETURN_NOT_FOUND |
Enumeration of EFI_STATUS.
Definition at line 134 of file UefiBaseType.h.
#define EFI_ACCESS_DENIED RETURN_ACCESS_DENIED |
Enumeration of EFI_STATUS.
Definition at line 135 of file UefiBaseType.h.
#define EFI_NO_RESPONSE RETURN_NO_RESPONSE |
Enumeration of EFI_STATUS.
Definition at line 136 of file UefiBaseType.h.
#define EFI_NO_MAPPING RETURN_NO_MAPPING |
Enumeration of EFI_STATUS.
Definition at line 137 of file UefiBaseType.h.
#define EFI_TIMEOUT RETURN_TIMEOUT |
Enumeration of EFI_STATUS.
Definition at line 138 of file UefiBaseType.h.
#define EFI_NOT_STARTED RETURN_NOT_STARTED |
Enumeration of EFI_STATUS.
Definition at line 139 of file UefiBaseType.h.
#define EFI_ALREADY_STARTED RETURN_ALREADY_STARTED |
Enumeration of EFI_STATUS.
Definition at line 140 of file UefiBaseType.h.
#define EFI_ABORTED RETURN_ABORTED |
Enumeration of EFI_STATUS.
Definition at line 141 of file UefiBaseType.h.
#define EFI_ICMP_ERROR RETURN_ICMP_ERROR |
Enumeration of EFI_STATUS.
Definition at line 142 of file UefiBaseType.h.
#define EFI_TFTP_ERROR RETURN_TFTP_ERROR |
Enumeration of EFI_STATUS.
Definition at line 143 of file UefiBaseType.h.
#define EFI_PROTOCOL_ERROR RETURN_PROTOCOL_ERROR |
Enumeration of EFI_STATUS.
Definition at line 144 of file UefiBaseType.h.
#define EFI_INCOMPATIBLE_VERSION RETURN_INCOMPATIBLE_VERSION |
Enumeration of EFI_STATUS.
Definition at line 145 of file UefiBaseType.h.
#define EFI_SECURITY_VIOLATION RETURN_SECURITY_VIOLATION |
Enumeration of EFI_STATUS.
Definition at line 146 of file UefiBaseType.h.
#define EFI_CRC_ERROR RETURN_CRC_ERROR |
Enumeration of EFI_STATUS.
Definition at line 147 of file UefiBaseType.h.
#define EFI_END_OF_MEDIA RETURN_END_OF_MEDIA |
Enumeration of EFI_STATUS.
Definition at line 148 of file UefiBaseType.h.
#define EFI_END_OF_FILE RETURN_END_OF_FILE |
Enumeration of EFI_STATUS.
Definition at line 149 of file UefiBaseType.h.
#define EFI_INVALID_LANGUAGE RETURN_INVALID_LANGUAGE |
Enumeration of EFI_STATUS.
Definition at line 150 of file UefiBaseType.h.
#define EFI_COMPROMISED_DATA RETURN_COMPROMISED_DATA |
Enumeration of EFI_STATUS.
Definition at line 151 of file UefiBaseType.h.
#define EFI_HTTP_ERROR RETURN_HTTP_ERROR |
Enumeration of EFI_STATUS.
Definition at line 152 of file UefiBaseType.h.
#define EFI_WARN_UNKNOWN_GLYPH RETURN_WARN_UNKNOWN_GLYPH |
Enumeration of EFI_STATUS.
Definition at line 154 of file UefiBaseType.h.
#define EFI_WARN_DELETE_FAILURE RETURN_WARN_DELETE_FAILURE |
Enumeration of EFI_STATUS.
Definition at line 155 of file UefiBaseType.h.
#define EFI_WARN_WRITE_FAILURE RETURN_WARN_WRITE_FAILURE |
Enumeration of EFI_STATUS.
Definition at line 156 of file UefiBaseType.h.
#define EFI_WARN_BUFFER_TOO_SMALL RETURN_WARN_BUFFER_TOO_SMALL |
Enumeration of EFI_STATUS.
Definition at line 157 of file UefiBaseType.h.
#define EFI_WARN_STALE_DATA RETURN_WARN_STALE_DATA |
Enumeration of EFI_STATUS.
Definition at line 158 of file UefiBaseType.h.
#define EFI_WARN_FILE_SYSTEM RETURN_WARN_FILE_SYSTEM |
Enumeration of EFI_STATUS.
Definition at line 159 of file UefiBaseType.h.
#define EFIERR | ( | _a | ) | ENCODE_ERROR(_a) |
Define macro to encode the status code.
Definition at line 165 of file UefiBaseType.h.
#define EFI_ERROR | ( | A | ) | RETURN_ERROR(A) |
Definition at line 167 of file UefiBaseType.h.
#define EFI_NETWORK_UNREACHABLE EFIERR(100) |
ICMP error definitions.
Definition at line 172 of file UefiBaseType.h.
#define EFI_HOST_UNREACHABLE EFIERR(101) |
ICMP error definitions.
Definition at line 173 of file UefiBaseType.h.
#define EFI_PROTOCOL_UNREACHABLE EFIERR(102) |
ICMP error definitions.
Definition at line 174 of file UefiBaseType.h.
#define EFI_PORT_UNREACHABLE EFIERR(103) |
ICMP error definitions.
Definition at line 175 of file UefiBaseType.h.
#define EFI_CONNECTION_FIN EFIERR(104) |
Tcp connection status definitions.
Definition at line 181 of file UefiBaseType.h.
#define EFI_CONNECTION_RESET EFIERR(105) |
Tcp connection status definitions.
Definition at line 182 of file UefiBaseType.h.
#define EFI_CONNECTION_REFUSED EFIERR(106) |
Tcp connection status definitions.
Definition at line 183 of file UefiBaseType.h.
#define EFI_PAGE_SIZE SIZE_4KB |
Definition at line 191 of file UefiBaseType.h.
#define EFI_PAGE_MASK 0xFFF |
Definition at line 192 of file UefiBaseType.h.
#define EFI_PAGE_SHIFT 12 |
Definition at line 193 of file UefiBaseType.h.
#define EFI_SIZE_TO_PAGES | ( | Size | ) | (((Size) >> EFI_PAGE_SHIFT) + (((Size) & EFI_PAGE_MASK) ? 1 : 0)) |
Macro that converts a size, in bytes, to a number of EFI_PAGESs.
Size | A size in bytes. This parameter is assumed to be type UINTN. Passing in a parameter that is larger than UINTN may produce unexpected results. |
Definition at line 206 of file UefiBaseType.h.
#define EFI_PAGES_TO_SIZE | ( | Pages | ) | ((Pages) << EFI_PAGE_SHIFT) |
Macro that converts a number of EFI_PAGEs to a size in bytes.
Pages | The number of EFI_PAGES. This parameter is assumed to be type UINTN. Passing in a parameter that is larger than UINTN may produce unexpected results. |
Definition at line 219 of file UefiBaseType.h.
#define EFI_IMAGE_MACHINE_IA32 0x014C |
PE32+ Machine type for IA32 UEFI images.
Definition at line 224 of file UefiBaseType.h.
#define EFI_IMAGE_MACHINE_IA64 0x0200 |
PE32+ Machine type for IA64 UEFI images.
Definition at line 229 of file UefiBaseType.h.
#define EFI_IMAGE_MACHINE_EBC 0x0EBC |
PE32+ Machine type for EBC UEFI images.
Definition at line 234 of file UefiBaseType.h.
#define EFI_IMAGE_MACHINE_X64 0x8664 |
PE32+ Machine type for X64 UEFI images.
Definition at line 239 of file UefiBaseType.h.
#define EFI_IMAGE_MACHINE_ARMTHUMB_MIXED 0x01C2 |
PE32+ Machine type for ARM mixed ARM and Thumb/Thumb2 images.
Definition at line 244 of file UefiBaseType.h.
#define EFI_IMAGE_MACHINE_AARCH64 0xAA64 |
PE32+ Machine type for AARCH64 A64 images.
Definition at line 249 of file UefiBaseType.h.
128-bit buffer containing a unique identifier value.
Definition at line 31 of file UefiBaseType.h.
typedef EFI_STATUS |
Function return status for EFI API.
Definition at line 35 of file UefiBaseType.h.
typedef VOID* EFI_HANDLE |
A collection of related interfaces.
Definition at line 39 of file UefiBaseType.h.
Handle to an event structure.
Definition at line 43 of file UefiBaseType.h.
Task priority level.
Definition at line 47 of file UefiBaseType.h.
Logical block address.
Definition at line 51 of file UefiBaseType.h.
typedef UINT64 EFI_PHYSICAL_ADDRESS |
64-bit physical memory address.
Definition at line 56 of file UefiBaseType.h.
typedef UINT64 EFI_VIRTUAL_ADDRESS |
64-bit virtual memory address.
Definition at line 61 of file UefiBaseType.h.
typedef IPv4_ADDRESS EFI_IPv4_ADDRESS |
typedef IPv6_ADDRESS EFI_IPv6_ADDRESS |
FILE_LICENCE | ( | BSD3 | ) |