]>
Commit | Line | Data |
---|---|---|
ca20cf32 BS |
1 | #ifndef LOADER_H |
2 | #define LOADER_H | |
3 | ||
4 | /* loader.c */ | |
5 | int get_image_size(const char *filename); | |
6 | int load_image(const char *filename, uint8_t *addr); /* deprecated */ | |
99a0949b | 7 | int load_image_targphys(const char *filename, a_target_phys_addr, int max_sz); |
ca20cf32 BS |
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); | |
99a0949b | 11 | int load_aout(const char *filename, a_target_phys_addr addr, int max_sz, |
12 | int bswap_needed, a_target_phys_addr target_page_size); | |
13 | int load_uimage(const char *filename, a_target_phys_addr *ep, | |
14 | a_target_phys_addr *loadaddr, int *is_linux); | |
ca20cf32 | 15 | |
99a0949b | 16 | int fread_targphys(a_target_phys_addr dst_addr, size_t nbytes, FILE *f); |
17 | int fread_targphys_ok(a_target_phys_addr dst_addr, size_t nbytes, FILE *f); | |
18 | int read_targphys(int fd, a_target_phys_addr dst_addr, size_t nbytes); | |
19 | void pstrcpy_targphys(a_target_phys_addr dest, int buf_size, | |
ca20cf32 BS |
20 | const char *source); |
21 | #endif |