1 #ifndef BIOS_LINKER_LOADER_H
2 #define BIOS_LINKER_LOADER_H
5 typedef struct BIOSLinker
{
10 BIOSLinker
*bios_linker_loader_init(void);
12 void bios_linker_loader_alloc(BIOSLinker
*linker
,
13 const char *file_name
,
18 void bios_linker_loader_add_checksum(BIOSLinker
*linker
, const char *file
,
19 unsigned start_offset
, unsigned size
,
20 unsigned checksum_offset
);
22 void bios_linker_loader_add_pointer(BIOSLinker
*linker
,
23 const char *dest_file
,
24 uint32_t dst_patched_offset
,
25 uint8_t dst_patched_size
,
29 void bios_linker_loader_write_pointer(BIOSLinker
*linker
,
30 const char *dest_file
,
31 uint32_t dst_patched_offset
,
32 uint8_t dst_patched_size
,
36 void bios_linker_loader_cleanup(BIOSLinker
*linker
);