boot: Show the device path for EFI bootflows

If the bootflow relates to the EFI bootmeth, show the device path along
with the other info.

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass
2025-08-27 13:30:23 -06:00
parent ead588c067
commit e6f9a0ae58
5 changed files with 101 additions and 0 deletions

View File

@@ -23,6 +23,8 @@
#include <net.h>
#endif
struct udevice;
/* Type INTN in UEFI specification */
#define efi_intn_t ssize_t
/* Type UINTN in UEFI specification*/
@@ -848,4 +850,17 @@ efi_status_t efi_run_image(void *source_buffer, efi_uintn_t source_size,
struct efi_device_path *dp_dev,
struct efi_device_path *dp_img);
/**
* efi_dp_from_bootdev() - Get the device path from a bootdev
*
* This is only available in the app. It looks up the bootdev and returns the
* assocated device path (attached to its sibling block device)
*
* @dev: UCLASS_BOOTDEV device to check
* @dpp: Returns device path on success
* Returns: 0 if OK, -ve on error
*/
int efi_dp_from_bootdev(const struct udevice *dev,
const struct efi_device_path **dpp);
#endif /* _LINUX_EFI_H */