]> git.sur5r.net Git - u-boot/blobdiff - include/efi_loader.h
efi_loader: correcty determine total device path length
[u-boot] / include / efi_loader.h
index 0358bcb1d7b0885a477a35a20cf36aa0891fe704..1298b5e16032338dd66ad1d864325a73c607a91a 100644 (file)
@@ -324,7 +324,10 @@ int efi_dp_match(const struct efi_device_path *a,
                 const struct efi_device_path *b);
 struct efi_object *efi_dp_find_obj(struct efi_device_path *dp,
                                   struct efi_device_path **rem);
-unsigned efi_dp_size(const struct efi_device_path *dp);
+/* get size of the first device path instance excluding end node */
+efi_uintn_t efi_dp_instance_size(const struct efi_device_path *dp);
+/* size of multi-instance device path excluding end node */
+efi_uintn_t efi_dp_size(const struct efi_device_path *dp);
 struct efi_device_path *efi_dp_dup(const struct efi_device_path *dp);
 struct efi_device_path *efi_dp_append(const struct efi_device_path *dp1,
                                      const struct efi_device_path *dp2);