summaryrefslogtreecommitdiffstats
path: root/sys/boot/efi/libefi/libefi.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/boot/efi/libefi/libefi.c')
-rw-r--r--sys/boot/efi/libefi/libefi.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/sys/boot/efi/libefi/libefi.c b/sys/boot/efi/libefi/libefi.c
index e28d8db..5ef97f4 100644
--- a/sys/boot/efi/libefi/libefi.c
+++ b/sys/boot/efi/libefi/libefi.c
@@ -59,6 +59,20 @@ arg_skipword(CHAR16 *argp)
return (argp);
}
+void *
+efi_get_table(EFI_GUID *tbl)
+{
+ EFI_GUID *id;
+ int i;
+
+ for (i = 0; i < ST->NumberOfTableEntries; i++) {
+ id = &ST->ConfigurationTable[i].VendorGuid;
+ if (!memcmp(id, tbl, sizeof(EFI_GUID)))
+ return (ST->ConfigurationTable[i].VendorTable);
+ }
+ return (NULL);
+}
+
void exit(EFI_STATUS exit_code)
{
OpenPOWER on IntegriCloud