diff options
author | Michael Brown | 2024-03-20 13:47:25 +0100 |
---|---|---|
committer | Michael Brown | 2024-03-25 18:58:33 +0100 |
commit | ca483a196c091c16ea0a426ce5f915b184a34412 (patch) | |
tree | 4dd553a9d51701ebf1d567d46fb80aad54f90420 /src/include/ipxe/efi/efi_service.h | |
parent | [efi] Match chainloaded device by uppermost matching handle (diff) | |
download | ipxe-ca483a196c091c16ea0a426ce5f915b184a34412.tar.gz ipxe-ca483a196c091c16ea0a426ce5f915b184a34412.tar.xz ipxe-ca483a196c091c16ea0a426ce5f915b184a34412.zip |
[efi] Add helper functions for service binding protocols
The EFI service binding abstraction is used to add and remove child
handles for multiple different protocols. Provide a common interface
for doing so.
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/ipxe/efi/efi_service.h')
-rw-r--r-- | src/include/ipxe/efi/efi_service.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/include/ipxe/efi/efi_service.h b/src/include/ipxe/efi/efi_service.h new file mode 100644 index 00000000..ca4c7b2a --- /dev/null +++ b/src/include/ipxe/efi/efi_service.h @@ -0,0 +1,19 @@ +#ifndef _IPXE_EFI_SERVICE_H +#define _IPXE_EFI_SERVICE_H + +/** @file + * + * EFI service binding + * + */ + +FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL ); + +#include <ipxe/efi/efi.h> + +extern int efi_service_add ( EFI_HANDLE service, EFI_GUID *binding, + EFI_HANDLE *handle ); +extern int efi_service_del ( EFI_HANDLE service, EFI_GUID *binding, + EFI_HANDLE handle ); + +#endif /* _IPXE_EFI_SERVICE_H */ |