5 int get_image_size(const char *filename
);
6 int load_image(const char *filename
, uint8_t *addr
); /* deprecated */
7 int load_image_targphys(const char *filename
, target_phys_addr_t
, int max_sz
);
8 int load_elf(const char *filename
, int64_t address_offset
,
9 uint64_t *pentry
, uint64_t *lowaddr
, uint64_t *highaddr
,
10 int big_endian
, int elf_machine
, int clear_lsb
);
11 int load_aout(const char *filename
, target_phys_addr_t addr
, int max_sz
,
12 int bswap_needed
, target_phys_addr_t target_page_size
);
13 int load_uimage(const char *filename
, target_phys_addr_t
*ep
,
14 target_phys_addr_t
*loadaddr
, int *is_linux
);
16 int fread_targphys(target_phys_addr_t dst_addr
, size_t nbytes
, FILE *f
);
17 int fread_targphys_ok(target_phys_addr_t dst_addr
, size_t nbytes
, FILE *f
);
18 int read_targphys(int fd
, target_phys_addr_t dst_addr
, size_t nbytes
);
19 void pstrcpy_targphys(target_phys_addr_t dest
, int buf_size
,