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