diff options
| author | Ada Christine <adachristine18@gmail.com> | 2024-03-03 08:44:42 +0000 |
|---|---|---|
| committer | Ada Christine <adachristine18@gmail.com> | 2024-03-03 08:44:42 +0000 |
| commit | f61da8be06fdfebc598cba783e78117319231140 (patch) | |
| tree | 0ef21f89e98a985ab5d985aaac1e032c868e8b81 /kjarna/efi/protocol.c | |
| parent | 9681d6a6cbde12b00beab62683b8db98f680ba2b (diff) | |
build changes
Diffstat (limited to 'kjarna/efi/protocol.c')
| -rw-r--r-- | kjarna/efi/protocol.c | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/kjarna/efi/protocol.c b/kjarna/efi/protocol.c deleted file mode 100644 index 6bf8123..0000000 --- a/kjarna/efi/protocol.c +++ /dev/null @@ -1,33 +0,0 @@ -#include <efi/error.h> - -#include "kjarna_efi.h" - -void *efi_get_protocol(EFI_HANDLE handle, EFI_GUID *guid) -{ - void *protocol; - - efi_errno = gBS->OpenProtocol( - handle, - guid, - &protocol, - efi_context->handle, - nullptr, - EFI_OPEN_PROTOCOL_GET_PROTOCOL); - - if (EFI_ERROR(efi_errno)) - { - return nullptr; - } - - return protocol; -} - -void efi_close_protocol(EFI_HANDLE handle, EFI_GUID *guid) -{ - efi_errno = gBS->CloseProtocol( - handle, - guid, - efi_context->handle, - nullptr); -} - |
