.. | .. |
---|
703 | 703 | bootm_headers_t *images, |
---|
704 | 704 | char **of_flat_tree, ulong *of_size); |
---|
705 | 705 | void boot_fdt_add_mem_rsv_regions(struct lmb *lmb, void *fdt_blob); |
---|
| 706 | +void boot_mem_rsv_regions(struct lmb *lmb, void *fdt_blob); |
---|
706 | 707 | #ifdef CONFIG_SYSMEM |
---|
707 | 708 | int boot_fdt_add_sysmem_rsv_regions(void *fdt_blob); |
---|
708 | 709 | #else |
---|
.. | .. |
---|
1347 | 1348 | #endif /* CONFIG_FIT */ |
---|
1348 | 1349 | |
---|
1349 | 1350 | #if defined(CONFIG_ANDROID_BOOT_IMAGE) |
---|
| 1351 | +#include <android_image.h> |
---|
| 1352 | + |
---|
1350 | 1353 | struct andr_img_hdr; |
---|
1351 | 1354 | u32 android_bcb_msg_sector_offset(void); |
---|
1352 | | -u32 android_image_major_version(void); |
---|
| 1355 | +int android_image_init_resource(struct blk_desc *desc, |
---|
| 1356 | + disk_partition_t *out_part, |
---|
| 1357 | + ulong *out_blk_offset); |
---|
1353 | 1358 | int android_image_check_header(const struct andr_img_hdr *hdr); |
---|
1354 | 1359 | int android_image_get_kernel(const struct andr_img_hdr *hdr, int verify, |
---|
1355 | 1360 | ulong *os_data, ulong *os_len); |
---|
.. | .. |
---|
1368 | 1373 | |
---|
1369 | 1374 | struct andr_img_hdr *populate_andr_img_hdr(struct blk_desc *dev_desc, |
---|
1370 | 1375 | disk_partition_t *part_boot); |
---|
| 1376 | +int populate_boot_info(const struct boot_img_hdr_v34 *boot_hdr, |
---|
| 1377 | + const struct vendor_boot_img_hdr_v34 *vendor_boot_hdr, |
---|
| 1378 | + const struct boot_img_hdr_v34 *init_boot_hdr, |
---|
| 1379 | + struct andr_img_hdr *hdr, bool save_hdr); |
---|
1371 | 1380 | |
---|
1372 | 1381 | /** android_image_load - Load an Android Image from storage. |
---|
1373 | 1382 | * |
---|
.. | .. |
---|
1392 | 1401 | int android_image_load_by_partname(struct blk_desc *dev_desc, |
---|
1393 | 1402 | const char *boot_partname, |
---|
1394 | 1403 | unsigned long *load_address); |
---|
| 1404 | + |
---|
| 1405 | +int android_image_verify_resource(const char *boot_part, ulong *resc_buf); |
---|
| 1406 | + |
---|
1395 | 1407 | #endif /* CONFIG_ANDROID_BOOT_IMAGE */ |
---|
1396 | 1408 | |
---|
1397 | 1409 | int bootm_parse_comp(const unsigned char *hdr); |
---|