efi_loader: device_path: add support for HTTP device path
PATCH 8/15 efi_loader: device_path: add support for HTTP device path
Add efi_dp_from_http to form a device path from HTTP. The device path is the concatenation of the device path returned by efi_dp_from_ipv4 together with an URI node and an END node.
Signed-off-by Adriano Cordova <[email protected]>
--- include/efi_loader.h | 1 + lib/efi_loader/efi_device_path.c | 51 ++++++++++++++++++++++++++++++++ 2 files changed, 52 insertions(+)
include/efi_loader.h +1 -0
@@ -872,6 +872,7 @@ struct efi_device_path *efi_dp_part_node(struct blk_desc *desc, int part);struct efi_device_path *efi_dp_from_file (const struct efi_device_path *dp,const char *path);struct efi_device_path *efi_dp_from_eth (void ); +struct efi_device_path *efi_dp_from_http (const char *server);struct efi_device_path *efi_dp_from_mem (uint32_t mem_type,uint64_t start_address,uint64_t end_address);
lib/efi_loader/efi_device_path.c +51 -0
57 lines not on this page · raw message
Signature · 1 line
2.43.0