diff options
author | Tom Rini <trini@konsulko.com> | 2022-09-09 14:10:51 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-09-09 15:07:05 -0400 |
commit | a5fc388ed966974256bc03b3d4db7ae1be0ed119 (patch) | |
tree | 5be3ecc2ce3483ea3134746aeb46017489efbcf6 /lib/efi_selftest/efi_selftest_util.c | |
parent | e9de8c8c649044080371399a1ef4923b08632611 (diff) | |
parent | 8cf8ad353345cc4a92288b5136e7d714d2bdde4a (diff) |
Merge tag 'efi-2022-10-rc5' of https://source.denx.de/u-boot/custodians/u-boot-efi
Pull request for efi-2022-10-rc5
Documentation:
* man-page for tftpput
UEFI:
* fix driver binding protocol for block IO devices
* don't delete invalid handles
* add a unit test for the EFI Conformance Profile Table
Other:
* correct short text for tftpboot
Diffstat (limited to 'lib/efi_selftest/efi_selftest_util.c')
-rw-r--r-- | lib/efi_selftest/efi_selftest_util.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/efi_selftest/efi_selftest_util.c b/lib/efi_selftest/efi_selftest_util.c index dba02d6b567..7e03e0c9392 100644 --- a/lib/efi_selftest/efi_selftest_util.c +++ b/lib/efi_selftest/efi_selftest_util.c @@ -110,3 +110,14 @@ int efi_st_strcmp_16_8(const u16 *buf1, const char *buf2) } return 0; } + +void *efi_st_get_config_table(const efi_guid_t *guid) +{ + size_t i; + + for (i = 0; i < st_systable->nr_tables; i++) { + if (!guidcmp(guid, &st_systable->tables[i].guid)) + return st_systable->tables[i].table; + } + return NULL; +} |