Add qemu 2.4.0
[kvmfornfv.git] / qemu / roms / seabios / src / romfile.h
1 #ifndef __ROMFILE_H
2 #define __ROMFILE_H
3
4 #include "types.h" // u32
5
6 // romfile.c
7 struct romfile_s {
8     struct romfile_s *next;
9     char name[128];
10     u32 size;
11     int (*copy)(struct romfile_s *file, void *dest, u32 maxlen);
12 };
13 void romfile_add(struct romfile_s *file);
14 struct romfile_s *romfile_findprefix(const char *prefix, struct romfile_s *prev);
15 struct romfile_s *romfile_find(const char *name);
16 void *romfile_loadfile(const char *name, int *psize);
17 u64 romfile_loadint(const char *name, u64 defval);
18
19 #endif // romfile.h