1 #ifndef BIOS_LINKER_LOADER_H
2 #define BIOS_LINKER_LOADER_H
5 typedef struct BIOSLinker
{
10 bool bios_linker_loader_can_write_pointer(void);
12 BIOSLinker
*bios_linker_loader_init(void);
14 void bios_linker_loader_alloc(BIOSLinker
*linker
,
15 const char *file_name
,
20 void bios_linker_loader_add_checksum(BIOSLinker
*linker
, const char *file
,
21 unsigned start_offset
, unsigned size
,
22 unsigned checksum_offset
);
24 void bios_linker_loader_add_pointer(BIOSLinker
*linker
,
25 const char *dest_file
,
26 uint32_t dst_patched_offset
,
27 uint8_t dst_patched_size
,
31 void bios_linker_loader_write_pointer(BIOSLinker
*linker
,
32 const char *dest_file
,
33 uint32_t dst_patched_offset
,
34 uint8_t dst_patched_size
,
38 void bios_linker_loader_cleanup(BIOSLinker
*linker
);