diff options
| author | Michael Brown | 2020-10-19 14:44:43 +0200 |
|---|---|---|
| committer | Michael Brown | 2020-10-19 15:45:49 +0200 |
| commit | 6154b1fb2003bafa56ce35365f681d0c2fb1a503 (patch) | |
| tree | e9818caf6e70a4063b637ff09f30d55c6110cd3e /src/include | |
| parent | [http] Allow HTTP connection to be described using an EFI device path (diff) | |
| download | ipxe-6154b1fb2003bafa56ce35365f681d0c2fb1a503.tar.gz ipxe-6154b1fb2003bafa56ce35365f681d0c2fb1a503.tar.xz ipxe-6154b1fb2003bafa56ce35365f681d0c2fb1a503.zip | |
[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')
| -rw-r--r-- | src/include/ipxe/efi/efi_path.h | 2 |
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 f52410e36..d4d43852f 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 ); |
