diff options
| author | Heinrich Schuchardt <[email protected]> | 2018-04-16 07:59:05 +0200 |
|---|---|---|
| committer | Alexander Graf <[email protected]> | 2018-04-23 21:34:28 +0200 |
| commit | 211314c107d759c6adeb9b5dd8c81b284c4a03be (patch) | |
| tree | d6e5938589b1f080c44669d2c9b0d82211e9224d /include | |
| parent | 065a8eca69eaff1022717664ea516b1d9c7ca05d (diff) | |
efi_loader: implement CreateDeviceNode
Implement the CreateDeviceNode service of the device path utility protocol.
Signed-off-by: Heinrich Schuchardt <[email protected]>
Signed-off-by: Alexander Graf <[email protected]>
Diffstat (limited to 'include')
| -rw-r--r-- | include/efi_loader.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/efi_loader.h b/include/efi_loader.h index 17f9d3d1ef2..0358bcb1d7b 100644 --- a/include/efi_loader.h +++ b/include/efi_loader.h @@ -330,7 +330,10 @@ struct efi_device_path *efi_dp_append(const struct efi_device_path *dp1, const struct efi_device_path *dp2); struct efi_device_path *efi_dp_append_node(const struct efi_device_path *dp, const struct efi_device_path *node); - +/* Create a device path node of given type, sub-type, length */ +struct efi_device_path *efi_dp_create_device_node(const u8 type, + const u8 sub_type, + const u16 length); struct efi_device_path *efi_dp_from_dev(struct udevice *dev); struct efi_device_path *efi_dp_from_part(struct blk_desc *desc, int part); |
