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:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user