svn commit: r350656 - in head/stand/efi: include libefi
Toomas Soome
tsoome at FreeBSD.org
Tue Aug 6 20:13:29 UTC 2019
Author: tsoome
Date: Tue Aug 6 20:13:28 2019
New Revision: 350656
URL: https://svnweb.freebsd.org/changeset/base/350656
Log:
loader.efi: efilib.h and libefi.c were left out of 350654
And this is second followup for 350654
Modified:
head/stand/efi/include/efilib.h
head/stand/efi/libefi/libefi.c
Modified: head/stand/efi/include/efilib.h
==============================================================================
--- head/stand/efi/include/efilib.h Tue Aug 6 20:08:01 2019 (r350655)
+++ head/stand/efi/include/efilib.h Tue Aug 6 20:13:28 2019 (r350656)
@@ -70,6 +70,7 @@ pdinfo_t *efiblk_get_pdinfo_by_handle(EFI_HANDLE h);
pdinfo_t *efiblk_get_pdinfo_by_device_path(EFI_DEVICE_PATH *path);
void *efi_get_table(EFI_GUID *tbl);
+EFI_STATUS OpenProtocolByHandle(EFI_HANDLE, EFI_GUID *, void **);
int efi_getdev(void **vdev, const char *devspec, const char **path);
char *efi_fmtdev(void *vdev);
Modified: head/stand/efi/libefi/libefi.c
==============================================================================
--- head/stand/efi/libefi/libefi.c Tue Aug 6 20:08:01 2019 (r350655)
+++ head/stand/efi/libefi/libefi.c Tue Aug 6 20:13:28 2019 (r350656)
@@ -50,3 +50,10 @@ efi_get_table(EFI_GUID *tbl)
}
return (NULL);
}
+
+EFI_STATUS
+OpenProtocolByHandle(EFI_HANDLE handle, EFI_GUID *protocol, void **interface)
+{
+ return (BS->OpenProtocol(handle, protocol, interface, IH, NULL,
+ EFI_OPEN_PROTOCOL_BY_HANDLE_PROTOCOL));
+}
More information about the svn-src-head
mailing list