|
iPXE
|
EFI configuration tables. More...
#include <assert.h>#include <errno.h>#include <string.h>#include <ipxe/efi/efi.h>#include <ipxe/efi/efi_table.h>Go to the source code of this file.
Functions | |
| FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
| void * | efi_find_table (EFI_GUID *guid) |
| Look up EFI configuration table. More... | |
| int | efi_install_table (struct efi_table *table, const void *data, void **backup) |
| Install EFI configuration table. More... | |
| int | efi_uninstall_table (struct efi_table *table, void **backup) |
| Uninstall EFI configuration table. More... | |
EFI configuration tables.
Definition in file efi_table.c.
| FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
| void* efi_find_table | ( | EFI_GUID * | guid | ) |
Look up EFI configuration table.
| guid | Configuration table GUID |
| table | Configuration table, or NULL |
Definition at line 44 of file efi_table.c.
References EFI_SYSTEM_TABLE::ConfigurationTable, DBGC, efi_guid_ntoa(), efi_systab, guid, memcmp(), NULL, EFI_SYSTEM_TABLE::NumberOfTableEntries, EFI_CONFIGURATION_TABLE::VendorGuid, and EFI_CONFIGURATION_TABLE::VendorTable.
Referenced by efi_init(), and efi_install_table().
| int efi_install_table | ( | struct efi_table * | table, |
| const void * | data, | ||
| void ** | backup | ||
| ) |
Install EFI configuration table.
| table | Configuration table type |
| data | Configuration table data, or NULL to uninstall |
| backup | Table backup, or NULL to not back up old table |
| rc | Return status code |
Definition at line 70 of file efi_table.c.
References EFI_BOOT_SERVICES::AllocatePool, assert(), EFI_SYSTEM_TABLE::BootServices, data, DBGC, EEFI, efi_find_table(), efi_guid_ntoa(), efi_systab, EfiBootServicesData, EfiRuntimeServicesData, EFI_BOOT_SERVICES::FreePool, efi_table::guid, guid, EFI_BOOT_SERVICES::InstallConfigurationTable, efi_table::len, memcpy(), NULL, old, rc, and strerror().
Referenced by efi_fdt_install(), and efi_uninstall_table().
| int efi_uninstall_table | ( | struct efi_table * | table, |
| void ** | backup | ||
| ) |
Uninstall EFI configuration table.
| table | Configuration table type |
| backup | Table backup (or NULL to not restore old table) |
| rc | Return status code |
Definition at line 161 of file efi_table.c.
References EFI_SYSTEM_TABLE::BootServices, efi_install_table(), efi_systab, EFI_BOOT_SERVICES::FreePool, NULL, old, and rc.
Referenced by efi_fdt_install(), and efi_fdt_uninstall().
1.8.15