aboutsummaryrefslogtreecommitdiff
path: root/src/include/ipxe/efi
diff options
context:
space:
mode:
authorMichael Brown <mcb30@ipxe.org>2020-10-19 13:44:43 +0100
committerMichael Brown <mcb30@ipxe.org>2020-10-19 14:45:49 +0100
commit6154b1fb2003bafa56ce35365f681d0c2fb1a503 (patch)
treee9818caf6e70a4063b637ff09f30d55c6110cd3e /src/include/ipxe/efi
parentb50ad5f09ab11f7d5b61a9a5c21637ea139fda08 (diff)
downloadipxe-6154b1fb2003bafa56ce35365f681d0c2fb1a503.zip
ipxe-6154b1fb2003bafa56ce35365f681d0c2fb1a503.tar.gz
ipxe-6154b1fb2003bafa56ce35365f681d0c2fb1a503.tar.bz2
[efi] Split efi_netdev_path() out to a separate function
Provide efi_netdev_path() as a standalone function, to allow for reuse when constructing child device paths. Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/ipxe/efi')
-rw-r--r--src/include/ipxe/efi/efi_path.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/include/ipxe/efi/efi_path.h b/src/include/ipxe/efi/efi_path.h
index f52410e..d4d4385 100644
--- a/src/include/ipxe/efi/efi_path.h
+++ b/src/include/ipxe/efi/efi_path.h
@@ -13,12 +13,14 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
#include <ipxe/efi/efi.h>
#include <ipxe/efi/Protocol/DevicePath.h>
+struct net_device;
struct uri;
struct usb_function;
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_netdev_path ( struct net_device *netdev );
extern EFI_DEVICE_PATH_PROTOCOL * efi_uri_path ( struct uri *uri );
extern EFI_DEVICE_PATH_PROTOCOL * efi_usb_path ( struct usb_function *func );