diff options
author | Michael Brown | 2020-10-16 16:09:52 +0200 |
---|---|---|
committer | Michael Brown | 2020-10-16 16:37:03 +0200 |
commit | 2091288eaa5b3b6144afba193f44cce985705e79 (patch) | |
tree | a46ac2cefef58f6ad6f6e1936e20167c322e105e /src/include/ipxe/efi/efi_path.h | |
parent | [efi] Split device path functions out to efi_path.c (diff) | |
download | ipxe-2091288eaa5b3b6144afba193f44cce985705e79.tar.gz ipxe-2091288eaa5b3b6144afba193f44cce985705e79.tar.xz ipxe-2091288eaa5b3b6144afba193f44cce985705e79.zip |
[efi] Define an interface operation to describe using an EFI device path
Allow arbitrary objects to support describing themselves using an EFI
device path.
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/ipxe/efi/efi_path.h')
-rw-r--r-- | src/include/ipxe/efi/efi_path.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/include/ipxe/efi/efi_path.h b/src/include/ipxe/efi/efi_path.h index f8b95fd2..0d5b902e 100644 --- a/src/include/ipxe/efi/efi_path.h +++ b/src/include/ipxe/efi/efi_path.h @@ -9,6 +9,7 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL ); +#include <ipxe/interface.h> #include <ipxe/efi/efi.h> #include <ipxe/efi/Protocol/DevicePath.h> @@ -16,4 +17,8 @@ extern EFI_DEVICE_PATH_PROTOCOL * efi_path_end ( EFI_DEVICE_PATH_PROTOCOL *path ); extern size_t efi_path_len ( EFI_DEVICE_PATH_PROTOCOL *path ); +extern EFI_DEVICE_PATH_PROTOCOL * efi_describe ( struct interface *interface ); +#define efi_describe_TYPE( object_type ) \ + typeof ( EFI_DEVICE_PATH_PROTOCOL * ( object_type ) ) + #endif /* _IPXE_EFI_PATH_H */ |