41 #define colour &efi_systab 50 static char buf[ 19 ];
91 snprintf ( buf,
sizeof ( buf ),
"%#lx",
92 (
unsigned long ) efirc );
105 return (
boolean ?
"TRUE" :
"FALSE" );
115 static char buf[ 19 ];
123 snprintf ( buf,
sizeof ( buf ),
"%#lx",
124 (
unsigned long ) tpl );
136 static char buf[ 11 ];
155 static char buf[ 11 ];
186 static char buf[ 11 ];
218 DBGC (
colour,
"WRAP %s could not get loaded image protocol: " 224 DBGC (
colour,
"WRAP %s at base %p has protocols:\n",
246 void *retaddr = __builtin_return_address ( 0 );
262 void *retaddr = __builtin_return_address ( 0 );
278 void *retaddr = __builtin_return_address ( 0 );
281 DBGC2 (
colour,
"AllocatePages ( %s, %s, %#llx, %#llx ) ",
283 ( (
unsigned long long ) pages ),
284 ( (
unsigned long long ) *memory ) );
287 ( (
unsigned long long ) *memory ), retaddr );
298 void *retaddr = __builtin_return_address ( 0 );
302 ( (
unsigned long long ) memory ),
303 ( (
unsigned long long ) pages ) );
316 UINTN *descriptor_size,
317 UINT32 *descriptor_version ) {
319 void *retaddr = __builtin_return_address ( 0 );
325 ( (
unsigned long long ) *memory_map_size ),
memory_map );
327 descriptor_size, descriptor_version );
328 DBGC (
colour,
"= %s ( %#llx, %#llx, %#llx, v%d",
330 ( (
unsigned long long ) *memory_map_size ),
331 ( (
unsigned long long ) *map_key ),
332 ( (
unsigned long long ) *descriptor_size ),
333 *descriptor_version );
337 remaining >= *descriptor_size ;
338 desc = ( ( (
void * )
desc ) + *descriptor_size ),
339 remaining -= *descriptor_size ) {
341 "%s\n",
desc->PhysicalStart,
361 void *retaddr = __builtin_return_address ( 0 );
366 ( (
unsigned long long )
size ) );
380 void *retaddr = __builtin_return_address ( 0 );
398 void *retaddr = __builtin_return_address ( 0 );
401 DBGC (
colour,
"CreateEvent ( %#x, %s, %p, %p ) ",
402 type,
efi_tpl ( notify_tpl ), notify_function, notify_context );
404 notify_context, event );
418 void *retaddr = __builtin_return_address ( 0 );
421 DBGC (
colour,
"SetTimer ( %p, %s, %ld.%07ld00s ) ",
423 ( (
unsigned long ) ( trigger_time / 10000000 ) ),
424 ( (
unsigned long ) ( trigger_time % 10000000 ) ) );
438 void *retaddr = __builtin_return_address ( 0 );
443 for ( i = 0 ; i < number_of_events ; i++ )
461 void *retaddr = __builtin_return_address ( 0 );
477 void *retaddr = __builtin_return_address ( 0 );
492 void *retaddr = __builtin_return_address ( 0 );
510 void *retaddr = __builtin_return_address ( 0 );
513 DBGC (
colour,
"InstallProtocolInterface ( %s, %s, %d, %p ) ",
531 VOID *new_interface ) {
533 void *retaddr = __builtin_return_address ( 0 );
536 DBGC (
colour,
"ReinstallProtocolInterface ( %s, %s, %p, %p ) ",
538 old_interface, new_interface );
540 old_interface, new_interface );
554 void *retaddr = __builtin_return_address ( 0 );
557 DBGC (
colour,
"UninstallProtocolInterface ( %s, %s, %p ) ",
573 void *retaddr = __builtin_return_address ( 0 );
590 VOID **registration ) {
592 void *retaddr = __builtin_return_address ( 0 );
595 DBGC (
colour,
"RegisterProtocolNotify ( %s, %p ) ",
599 efi_status ( efirc ), *registration, retaddr );
612 void *retaddr = __builtin_return_address ( 0 );
616 DBGC (
colour,
"LocateHandle ( %s, %s, %p, %zd ) ",
645 void *retaddr = __builtin_return_address ( 0 );
648 DBGC (
colour,
"LocateDevicePath ( %s, %s ) ",
664 void *retaddr = __builtin_return_address ( 0 );
667 DBGC (
colour,
"InstallConfigurationTable ( %s, %p ) ",
684 void *retaddr = __builtin_return_address ( 0 );
714 void *retaddr = __builtin_return_address ( 0 );
718 efirc = bs->
StartImage ( image_handle, exit_data_size, exit_data );
720 if ( ( efirc != 0 ) && exit_data && *exit_data_size )
723 if ( ( efirc != 0 ) && exit_data && *exit_data_size )
736 void *retaddr = __builtin_return_address ( 0 );
739 if ( ( exit_status != 0 ) && exit_data && exit_data_size )
743 if ( ( exit_status != 0 ) && exit_data && exit_data_size )
746 efirc = bs->
Exit ( image_handle, exit_status, exit_data_size,
759 void *retaddr = __builtin_return_address ( 0 );
776 void *retaddr = __builtin_return_address ( 0 );
779 DBGC (
colour,
"ExitBootServices ( %s, %#llx ) -> %p\n",
781 ( (
unsigned long long ) map_key ), retaddr );
784 DBGC (
colour,
"ExitBootServices ( ... ) = %s -> %p\n",
797 void *retaddr = __builtin_return_address ( 0 );
814 void *retaddr = __builtin_return_address ( 0 );
818 ( (
unsigned long ) ( microseconds / 1000000 ) ),
819 ( (
unsigned long ) ( microseconds % 1000000 ) ) );
820 efirc = bs->
Stall ( microseconds );
833 void *retaddr = __builtin_return_address ( 0 );
836 DBGC (
colour,
"SetWatchdogTimer ( %lds, %#llx, %#llx, %p ) ",
837 ( (
unsigned long )
timeout ), watchdog_code,
838 ( (
unsigned long long ) data_size ), watchdog_data );
855 void *retaddr = __builtin_return_address ( 0 );
861 if ( driver_image_handle ) {
862 for (
tmp = driver_image_handle ; *
tmp ;
tmp++ ) {
864 ( (
tmp == driver_image_handle ) ?
" " :
", " ),
871 remaining_path, recursive );
885 void *retaddr = __builtin_return_address ( 0 );
908 void *retaddr = __builtin_return_address ( 0 );
917 controller_handle, attributes );
932 void *retaddr = __builtin_return_address ( 0 );
954 UINTN *entry_count ) {
956 void *retaddr = __builtin_return_address ( 0 );
959 DBGC (
colour,
"OpenProtocolInformation ( %s, %s ) ",
965 ( (
unsigned long long ) *entry_count ), retaddr );
976 UINTN *protocol_buffer_count ) {
978 void *retaddr = __builtin_return_address ( 0 );
985 protocol_buffer_count );
989 for ( i = 0 ; i < *protocol_buffer_count ; i++ ) {
1008 void *retaddr = __builtin_return_address ( 0 );
1012 DBGC (
colour,
"LocateHandleBuffer ( %s, %s, %p ) ",
1019 DBGC (
colour,
" ( %d, {", ( (
unsigned int ) *no_handles ) );
1020 for ( i = 0 ; i < *no_handles ; i++ ) {
1038 void *retaddr = __builtin_return_address ( 0 );
1050 #define MAX_WRAP_MULTI 20 1059 void *retaddr = __builtin_return_address ( 0 );
1066 DBGC (
colour,
"InstallMultipleProtocolInterfaces ( %s",
1075 DBGC (
colour,
"<FATAL: too many arguments> ) = %s " 1109 void *retaddr = __builtin_return_address ( 0 );
1116 DBGC (
colour,
"UninstallMultipleProtocolInterfaces ( %s",
1125 DBGC (
colour,
"<FATAL: too many arguments> ) = %s " 1162 void *retaddr = __builtin_return_address ( 0 );
1165 DBGC (
colour,
"CreateEventEx ( %#x, %s, %p, %p, %s ) ",
1166 type,
efi_tpl ( notify_tpl ), notify_function, notify_context,
1169 notify_context, event_group, event );
1185 memcpy ( &efi_bs_wrapper, bs,
sizeof ( efi_bs_wrapper ) );
1240 return &efi_bs_wrapper;
1258 sizeof ( efi_systab_copy ) );
union edd_device_path device_path
Device path.
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)
static const char * efi_boolean(BOOLEAN boolean)
Convert EFI boolean to text.
EFI_BOOT_SERVICES * BootServices
A pointer to the EFI Boot Services Table.
#define EFI_UNSUPPORTED
Enumeration of EFI_STATUS.
#define EFI_VOLUME_CORRUPTED
Enumeration of EFI_STATUS.
static EFI_STATUS EFIAPI efi_set_timer_wrapper(EFI_EVENT event, EFI_TIMER_DELAY type, UINT64 trigger_time)
Wrap SetTimer()
static VOID EFIAPI efi_restore_tpl_wrapper(EFI_TPL old_tpl)
Wrap RestoreTPL()
struct arbelprm_rc_send_wqe rc
EFI_SET_WATCHDOG_TIMER SetWatchdogTimer
#define EFI_WARN_BUFFER_TOO_SMALL
Enumeration of EFI_STATUS.
#define EFI_ICMP_ERROR
Enumeration of EFI_STATUS.
EFI Oprn Protocol Information Entry.
#define EFI_NO_RESPONSE
Enumeration of EFI_STATUS.
#define EEFI(efirc)
Convert an EFI status code to an iPXE status code.
An event is to be signaled periodically at a specified interval from the current time.
#define EFI_ALREADY_STARTED
Enumeration of EFI_STATUS.
static const char * efi_status(EFI_STATUS efirc)
Convert EFI status code to text.
EFI_LOCATE_PROTOCOL LocateProtocol
An event is to be signaled once at a specified interval from the current time.
static EFI_STATUS EFIAPI efi_reinstall_protocol_interface_wrapper(EFI_HANDLE handle, EFI_GUID *protocol, VOID *old_interface, VOID *new_interface)
Wrap ReinstallProtocolInterface()
Definition of an EFI memory descriptor.
#define EFI_CRC_ERROR
Enumeration of EFI_STATUS.
128 bit buffer containing a unique identifier value.
#define EFI_BAD_BUFFER_SIZE
Enumeration of EFI_STATUS.
EFI_BOOT_SERVICES * efi_wrap_bs(void)
Build boot services table wrapper.
static EFI_STATUS EFIAPI efi_locate_handle_wrapper(EFI_LOCATE_SEARCH_TYPE search_type, EFI_GUID *protocol, VOID *search_key, UINTN *buffer_size, EFI_HANDLE *buffer)
Wrap LocateHandle()
static EFI_STATUS EFIAPI efi_register_protocol_notify_wrapper(EFI_GUID *protocol, EFI_EVENT event, VOID **registration)
Wrap RegisterProtocolNotify()
#define DBGC_EFI_PROTOCOLS(...)
EFI_REINSTALL_PROTOCOL_INTERFACE ReinstallProtocolInterface
EFI_EXIT_BOOT_SERVICES ExitBootServices
EFI_UNINSTALL_PROTOCOL_INTERFACE UninstallProtocolInterface
VOID * EFI_EVENT
Handle to an event structure.
uint32_t type
Operating system type.
static EFI_STATUS EFIAPI efi_close_protocol_wrapper(EFI_HANDLE handle, EFI_GUID *protocol, EFI_HANDLE agent_handle, EFI_HANDLE controller_handle)
Wrap CloseProtocol()
static EFI_STATUS EFIAPI efi_protocols_per_handle_wrapper(EFI_HANDLE handle, EFI_GUID ***protocol_buffer, UINTN *protocol_buffer_count)
Wrap ProtocolsPerHandle()
#define EFI_PROTOCOL_ERROR
Enumeration of EFI_STATUS.
uint64_t desc
Microcode descriptor list physical address.
EFI_GUID efi_loaded_image_protocol_guid
Loaded image protocol GUID.
A memory region that operates as EfiConventionalMemory, however it happens to also support byte-addre...
static EFI_STATUS EFIAPI efi_handle_protocol_wrapper(EFI_HANDLE handle, EFI_GUID *protocol, VOID **interface)
Wrap HandleProtocol()
EFI_INSTALL_MULTIPLE_PROTOCOL_INTERFACES InstallMultipleProtocolInterfaces
static EFI_STATUS EFIAPI efi_install_configuration_table_wrapper(EFI_GUID *guid, VOID *table)
Wrap InstallConfigurationTable()
EFI_CLOSE_EVENT CloseEvent
static void efi_dump_image(EFI_HANDLE handle)
Dump information about a loaded image.
static EFI_STATUS EFIAPI efi_signal_event_wrapper(EFI_EVENT event)
Wrap SignalEvent()
uint32_t buffer
Buffer index (or NETVSC_RNDIS_NO_BUFFER)
EFI_LOCATE_HANDLE LocateHandle
static EFI_STATUS EFIAPI efi_create_event_wrapper(UINT32 type, EFI_TPL notify_tpl, EFI_EVENT_NOTIFY notify_function, VOID *notify_context, EFI_EVENT *event)
Wrap CreateEvent()
EFI_IMAGE_UNLOAD UnloadImage
This protocol can be used on any device handle to obtain generic path/location information concerning...
#define EFI_BUFFER_TOO_SMALL
Enumeration of EFI_STATUS.
VOID(EFIAPI * EFI_EVENT_NOTIFY)(IN EFI_EVENT Event, IN VOID *Context)
Invoke a notification event.
static EFI_STATUS EFIAPI efi_get_next_monotonic_count_wrapper(UINT64 *count)
Wrap GetNextMonotonicCount()
EFI_CLOSE_PROTOCOL CloseProtocol
EFI_CREATE_EVENT_EX CreateEventEx
UINT64 EFI_PHYSICAL_ADDRESS
64-bit physical memory address.
#define EFI_NO_MEDIA
Enumeration of EFI_STATUS.
#define EFI_OUT_OF_RESOURCES
Enumeration of EFI_STATUS.
static EFI_STATUS EFIAPI efi_create_event_ex_wrapper(UINT32 type, EFI_TPL notify_tpl, EFI_EVENT_NOTIFY notify_function, CONST VOID *notify_context, CONST EFI_GUID *event_group, EFI_EVENT *event)
Wrap CreateEventEx()
#define EFI_DEVICE_ERROR
Enumeration of EFI_STATUS.
UEFI 2.0 Loaded image protocol definition.
The code portions of a loaded application.
static EFI_STATUS EFIAPI efi_get_memory_map_wrapper(UINTN *memory_map_size, EFI_MEMORY_DESCRIPTOR *memory_map, UINTN *map_key, UINTN *descriptor_size, UINT32 *descriptor_version)
Wrap GetMemoryMap()
#define EFI_LOAD_ERROR
Enumeration of EFI_STATUS.
void * memcpy(void *dest, const void *src, size_t len) __nonnull
An event's timer settings is to be cancelled and not trigger time is to be set/.
Can be used on any image handle to obtain information about the loaded image.
#define EFI_VOLUME_FULL
Enumeration of EFI_STATUS.
EFI_MEMORY_TYPE
Enumeration of memory types introduced in UEFI.
#define EFI_ACCESS_DENIED
Enumeration of EFI_STATUS.
Address space reserved by the firmware for code that is part of the processor.
Used by system firmware to request that a memory-mapped IO region be mapped by the OS to a virtual ad...
#define EFI_COMPROMISED_DATA
Enumeration of EFI_STATUS.
Allocate pages at a specified address.
EFI_INSTALL_PROTOCOL_INTERFACE InstallProtocolInterface
void efi_wrap(EFI_HANDLE handle)
Wrap the calls made by a loaded image.
EFI_CREATE_EVENT CreateEvent
uint16_t count
Number of entries.
const char * efi_locate_search_type_name(EFI_LOCATE_SEARCH_TYPE search_type)
Name locate search type.
EFI_HANDLE_PROTOCOL HandleProtocol
EFI_REGISTER_PROTOCOL_NOTIFY RegisterProtocolNotify
Memory that holds the ACPI tables.
const char * efi_devpath_text(EFI_DEVICE_PATH_PROTOCOL *path)
Get textual representation of device path.
#define EFI_OPEN_PROTOCOL_GET_PROTOCOL
static EFI_STATUS EFIAPI efi_free_pages_wrapper(EFI_PHYSICAL_ADDRESS memory, UINTN pages)
Wrap FreePages()
The code portions of a loaded Boot Services Driver.
#define EFI_NOT_STARTED
Enumeration of EFI_STATUS.
const char * efi_handle_name(EFI_HANDLE handle)
Get name of an EFI handle.
static EFI_STATUS EFIAPI efi_start_image_wrapper(EFI_HANDLE image_handle, UINTN *exit_data_size, CHAR16 **exit_data)
Wrap StartImage()
EFI_SIGNAL_EVENT SignalEvent
#define EFI_WRITE_PROTECTED
Enumeration of EFI_STATUS.
Free (unallocated) memory.
const char * efi_guid_ntoa(CONST EFI_GUID *guid)
Convert GUID to a printable string.
Allocate any available range of pages whose uppermost address is less than or equal to a specified ma...
char * strerror(int errno)
Retrieve string representation of error number.
static EFI_STATUS EFIAPI efi_set_watchdog_timer_wrapper(UINTN timeout, UINT64 watchdog_code, UINTN data_size, CHAR16 *watchdog_data)
Wrap SetWatchdogTimer()
EFI_GET_NEXT_MONOTONIC_COUNT GetNextMonotonicCount
EFI_HANDLE efi_image_handle
Image handle passed to entry point.
static EFI_STATUS EFIAPI efi_install_protocol_interface_wrapper(EFI_HANDLE *handle, EFI_GUID *protocol, EFI_INTERFACE_TYPE interface_type, VOID *interface)
Wrap InstallProtocolInterface()
static EFI_STATUS EFIAPI efi_open_protocol_information_wrapper(EFI_HANDLE handle, EFI_GUID *protocol, EFI_OPEN_PROTOCOL_INFORMATION_ENTRY **entry_buffer, UINTN *entry_count)
Wrap OpenProtocolInformation()
static EFI_STATUS EFIAPI efi_wait_for_event_wrapper(UINTN number_of_events, EFI_EVENT *event, UINTN *index)
Wrap WaitForEvent()
EFI_UNINSTALL_MULTIPLE_PROTOCOL_INTERFACES UninstallMultipleProtocolInterfaces
EFI_CONNECT_CONTROLLER ConnectController
static EFI_STATUS EFIAPI efi_connect_controller_wrapper(EFI_HANDLE controller_handle, EFI_HANDLE *driver_image_handle, EFI_DEVICE_PATH_PROTOCOL *remaining_path, BOOLEAN recursive)
Wrap ConnectController()
static EFI_STATUS EFIAPI efi_locate_protocol_wrapper(EFI_GUID *protocol, VOID *registration, VOID **interface)
Wrap LocateProtocol()
static EFI_STATUS EFIAPI efi_allocate_pages_wrapper(EFI_ALLOCATE_TYPE type, EFI_MEMORY_TYPE memory_type, UINTN pages, EFI_PHYSICAL_ADDRESS *memory)
Wrap AllocatePages()
EFI_IMAGE_START StartImage
UINT64 UINTN
Unsigned value of native width.
#define EFI_NOT_READY
Enumeration of EFI_STATUS.
static EFI_TPL EFIAPI efi_raise_tpl_wrapper(EFI_TPL new_tpl)
Wrap RaiseTPL()
static EFI_STATUS EFIAPI efi_install_multiple_protocol_interfaces_wrapper(EFI_HANDLE *handle,...)
Wrap InstallMultipleProtocolInterfaces()
#define EFI_INVALID_PARAMETER
Enumeration of EFI_STATUS.
#define EFI_END_OF_FILE
Enumeration of EFI_STATUS.
static EFI_STATUS EFIAPI efi_unload_image_wrapper(EFI_HANDLE image_handle)
Wrap UnloadImage()
#define VOID
Undeclared type.
unsigned long long UINT64
System memory-mapped IO region that is used to translate memory cycles to IO cycles by the processor.
EFI_WAIT_FOR_EVENT WaitForEvent
#define EFI_INVALID_LANGUAGE
Enumeration of EFI_STATUS.
#define EFI_WARN_STALE_DATA
Enumeration of EFI_STATUS.
EFI_OPEN_PROTOCOL_INFORMATION OpenProtocolInformation
#define EFI_WARN_DELETE_FAILURE
Enumeration of EFI_STATUS.
static EFI_STATUS EFIAPI efi_uninstall_protocol_interface_wrapper(EFI_HANDLE handle, EFI_GUID *protocol, VOID *interface)
Wrap UninstallProtocolInterface()
#define EFI_SECURITY_VIOLATION
Enumeration of EFI_STATUS.
EFI_ALLOCATE_TYPE
Enumeration of EFI memory allocation types.
struct edd_interface_type interface_type
Interface type.
#define EFI_MEDIA_CHANGED
Enumeration of EFI_STATUS.
EFI_GET_MEMORY_MAP GetMemoryMap
EFI_ALLOCATE_PAGES AllocatePages
static EFI_STATUS EFIAPI efi_allocate_pool_wrapper(EFI_MEMORY_TYPE pool_type, UINTN size, VOID **buffer)
Wrap AllocatePool()
The data portions of a loaded Runtime Services Driver and the default data allocation type used by a ...
static unsigned int source_size
#define EFI_NOT_FOUND
Enumeration of EFI_STATUS.
UINTN EFI_TPL
Task priority level.
EFI_PROTOCOLS_PER_HANDLE ProtocolsPerHandle
#define CONST
Datum is read-only.
static EFI_STATUS EFIAPI efi_locate_handle_buffer_wrapper(EFI_LOCATE_SEARCH_TYPE search_type, EFI_GUID *protocol, VOID *search_key, UINTN *no_handles, EFI_HANDLE **buffer)
Wrap LocateHandleBuffer()
__builtin_va_list va_list
#define EFI_INCOMPATIBLE_VERSION
Enumeration of EFI_STATUS.
#define EFI_SUCCESS
Enumeration of EFI_STATUS.
#define EFI_WARN_UNKNOWN_GLYPH
Enumeration of EFI_STATUS.
EFI_TIMER_DELAY
Timer delay types.
static EFI_STATUS EFIAPI efi_open_protocol_wrapper(EFI_HANDLE handle, EFI_GUID *protocol, VOID **interface, EFI_HANDLE agent_handle, EFI_HANDLE controller_handle, UINT32 attributes)
Wrap OpenProtocol()
#define EFI_NO_MAPPING
Enumeration of EFI_STATUS.
EFI_CHECK_EVENT CheckEvent
RETURN_STATUS EFI_STATUS
Function return status for EFI API.
static const char * efi_tpl(EFI_TPL tpl)
Convert EFI TPL to text.
The code portions of a loaded Runtime Services Driver.
static EFI_STATUS EFIAPI efi_close_event_wrapper(EFI_EVENT event)
Wrap CloseEvent()
Allocate any available range of pages that satisfies the request.
uint8_t size
Entry size (in 32-bit words)
static EFI_STATUS EFIAPI efi_load_image_wrapper(BOOLEAN boot_policy, EFI_HANDLE parent_image_handle, EFI_DEVICE_PATH_PROTOCOL *device_path, VOID *source_buffer, UINTN source_size, EFI_HANDLE *image_handle)
Wrap LoadImage()
static const char * efi_timer_delay(EFI_TIMER_DELAY type)
Convert EFI timer delay type to text.
const char * efi_open_attributes_name(unsigned int attributes)
Name protocol open attributes.
static EFI_STATUS EFIAPI efi_disconnect_controller_wrapper(EFI_HANDLE controller_handle, EFI_HANDLE driver_image_handle, EFI_HANDLE child_handle)
Wrap DisconnectController()
static EFI_STATUS EFIAPI efi_locate_device_path_wrapper(EFI_GUID *protocol, EFI_DEVICE_PATH_PROTOCOL **device_path, EFI_HANDLE *device)
Wrap LocateDevicePath()
static EFI_STATUS EFIAPI efi_exit_boot_services_wrapper(EFI_HANDLE image_handle, UINTN map_key)
Wrap ExitBootServices()
int snprintf(char *buf, size_t size, const char *fmt,...)
Write a formatted string to a buffer.
EFI_SYSTEM_TABLE * efi_systab
EFI_OPEN_PROTOCOL OpenProtocol
static EFI_STATUS EFIAPI efi_exit_wrapper(EFI_HANDLE image_handle, EFI_STATUS exit_status, UINTN exit_data_size, CHAR16 *exit_data)
Wrap Exit()
uint16_t protocol
Protocol ID.
EFI_LOCATE_SEARCH_TYPE
Enumeration of EFI Locate Search Types.
Address space reserved for use by the firmware.
EFI_INTERFACE_TYPE
Enumeration of EFI Interface Types.
#define va_start(ap, last)
EFI_RESTORE_TPL RestoreTPL
The data portions of a loaded Boot Serves Driver, and the default data allocation type used by a Boot...
static const char * efi_allocate_type(EFI_ALLOCATE_TYPE type)
Convert EFI allocation type to text.
static EFI_STATUS EFIAPI efi_stall_wrapper(UINTN microseconds)
Wrap Stall()
static EFI_STATUS EFIAPI efi_uninstall_multiple_protocol_interfaces_wrapper(EFI_HANDLE handle,...)
Wrap UninstallMultipleProtocolInterfaces()
#define EFI_WARN_WRITE_FAILURE
Enumeration of EFI_STATUS.
#define EFI_END_OF_MEDIA
Enumeration of EFI_STATUS.
static EFI_STATUS EFIAPI efi_check_event_wrapper(EFI_EVENT event)
Wrap CheckEvent()
#define EFI_ABORTED
Enumeration of EFI_STATUS.
#define colour
Colour for debug messages.
#define EFI_TFTP_ERROR
Enumeration of EFI_STATUS.
static const char * efi_memory_type(EFI_MEMORY_TYPE type)
Convert EFI memory type to text.
#define NULL
NULL pointer (VOID *)
UINT16_t buffer_size
UDP payload buffer size.
#define MAX_WRAP_MULTI
Maximum number of interfaces for wrapped ...MultipleProtocolInterfaces()
The data portions of a loaded application and the default data allocation type used by an application...
EFI_LOCATE_HANDLE_BUFFER LocateHandleBuffer
EFI_INSTALL_CONFIGURATION_TABLE InstallConfigurationTable
EFI_LOCATE_DEVICE_PATH LocateDevicePath
#define EFI_TIMEOUT
Enumeration of EFI_STATUS.
Memory in which errors have been detected.
static EFI_STATUS EFIAPI efi_free_pool_wrapper(VOID *buffer)
Wrap FreePool()
EFI_ALLOCATE_POOL AllocatePool
void * memset(void *dest, int character, size_t len) __nonnull
EFI_DISCONNECT_CONTROLLER DisconnectController