mirror of
https://github.com/smaeul/u-boot.git
synced 2025-10-18 06:38:15 +01:00
efi_loader: VenMedia device path node
The Load File2 protocol exposes a device path with a VenMedia() node. Hence our implementation of the device path to text protocol should support this node. Cc: Ilias Apalodimas <ilias.apalodimas@linaro.org> Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
This commit is contained in:
parent
6bca36cee2
commit
02fc018a35
@ -244,6 +244,21 @@ static char *dp_media(char *s, struct efi_device_path *dp)
|
|||||||
cddp->partition_start, cddp->partition_size);
|
cddp->partition_start, cddp->partition_size);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case DEVICE_PATH_SUB_TYPE_VENDOR_PATH: {
|
||||||
|
int i, n;
|
||||||
|
struct efi_device_path_vendor *vdp =
|
||||||
|
(struct efi_device_path_vendor *)dp;
|
||||||
|
|
||||||
|
s += sprintf(s, "VenMedia(%pUl", &vdp->guid);
|
||||||
|
n = (int)vdp->dp.length - sizeof(struct efi_device_path_vendor);
|
||||||
|
if (n > 0) {
|
||||||
|
s += sprintf(s, ",");
|
||||||
|
for (i = 0; i < n; ++i)
|
||||||
|
s += sprintf(s, "%02x", vdp->vendor_data[i]);
|
||||||
|
}
|
||||||
|
s += sprintf(s, ")");
|
||||||
|
break;
|
||||||
|
}
|
||||||
case DEVICE_PATH_SUB_TYPE_FILE_PATH: {
|
case DEVICE_PATH_SUB_TYPE_FILE_PATH: {
|
||||||
struct efi_device_path_file_path *fp =
|
struct efi_device_path_file_path *fp =
|
||||||
(struct efi_device_path_file_path *)dp;
|
(struct efi_device_path_file_path *)dp;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user