50 for ( i = 0 ; i <
efi_systab->NumberOfTableEntries ; i++ ) {
53 table =
efi_systab->ConfigurationTable[i].VendorTable;
85 old_len = (
old ? table->
len (
old ) : 0 );
88 if ( old_len && backup ) {
95 DBGC ( table,
"EFITAB %s %p+%#zx backed up\n",
105 new_len, &
new ) ) != 0 ) {
119 DBGC ( table,
"EFITAB %s could not install: %s\n",
124 DBGC ( table,
"EFITAB %s %p+%#zx uninstalled\n",
128 DBGC ( table,
"EFITAB %s %p+%#zx installed\n",
168 old = ( backup ? *backup :
NULL );
173 if ( backup && *backup ) {
#define NULL
NULL pointer (VOID *)
RETURN_STATUS EFI_STATUS
Function return status for EFI API.
GUID EFI_GUID
128-bit buffer containing a unique identifier value.
@ EfiBootServicesData
The data portions of a loaded Boot Serves Driver, and the default data allocation type used by a Boot...
@ EfiRuntimeServicesData
The data portions of a loaded Runtime Services Driver and the default data allocation type used by a ...
struct arbelprm_rc_send_wqe rc
#define assert(condition)
Assert a condition at run-time.
const char * efi_guid_ntoa(CONST EFI_GUID *guid)
Convert GUID to a printable string.
int efi_install_table(struct efi_table *table, const void *data, void **backup)
Install EFI configuration table.
void * efi_find_table(EFI_GUID *guid)
Look up EFI configuration table.
int efi_uninstall_table(struct efi_table *table, void **backup)
Uninstall EFI configuration table.
EFI configuration tables.
uint8_t data[48]
Additional event data.
#define FILE_LICENCE(_licence)
Declare a particular licence as applying to a file.
#define FILE_SECBOOT(_status)
Declare a file's UEFI Secure Boot permission status.
#define EEFI(efirc)
Convert an EFI status code to an iPXE status code.
EFI_SYSTEM_TABLE * efi_systab
void * memcpy(void *dest, const void *src, size_t len) __nonnull
char * strerror(int errno)
Retrieve string representation of error number.
int memcmp(const void *first, const void *second, size_t len)
Compare memory regions.
EFI_INSTALL_CONFIGURATION_TABLE InstallConfigurationTable
EFI_ALLOCATE_POOL AllocatePool
An installable EFI configuration table type.
size_t(* len)(const void *data)
Determine length of table.
EFI_GUID * guid
Table GUID.