bios-linker-loader.h 1005 字节
Newer Older
M
Michael S. Tsirkin 已提交
1 2 3 4 5
#ifndef BIOS_LINKER_LOADER_H
#define BIOS_LINKER_LOADER_H

#include <glib.h>

6 7
typedef struct BIOSLinker {
    GArray *cmd_blob;
8
    GArray *file_list;
9
} BIOSLinker;
M
Michael S. Tsirkin 已提交
10

11 12 13
BIOSLinker *bios_linker_loader_init(void);

void bios_linker_loader_alloc(BIOSLinker *linker,
14 15
                              const char *file_name,
                              GArray *file_blob,
M
Michael S. Tsirkin 已提交
16 17 18
                              uint32_t alloc_align,
                              bool alloc_fseg);

19
void bios_linker_loader_add_checksum(BIOSLinker *linker, const char *file,
M
Michael S. Tsirkin 已提交
20 21 22
                                     void *start, unsigned size,
                                     uint8_t *checksum);

23
void bios_linker_loader_add_pointer(BIOSLinker *linker,
M
Michael S. Tsirkin 已提交
24 25
                                    const char *dest_file,
                                    const char *src_file,
26
                                    void *pointer,
M
Michael S. Tsirkin 已提交
27 28
                                    uint8_t pointer_size);

29
void bios_linker_loader_cleanup(BIOSLinker *linker);
M
Michael S. Tsirkin 已提交
30
#endif