This patch implements a "flash friendly" value for initialized areas of flash.
[coreboot.git] / util / cbfstool / cbfstool.h
index 43abb6cb17177ade675a2ae31b8bdddd8afd583f..5804fdef505dea3d79202172e3ba3a2d8be2611d 100644 (file)
@@ -56,9 +56,11 @@ struct rom {
 /* Function prototypes */
 
 /* util.c */
+void flashinit(void *ptr, size_t len);
 int open_rom(struct rom *rom, const char *filename);
 int create_rom(struct rom *rom, const unsigned char *filename, int size,
-       int bootblocksize,  int align);
+              const char *bootblockname, int bootblocksize,
+              int align);
 int size_and_open(const char *filename, unsigned int *size);
 int copy_from_fd(int fd, void *ptr, int size);
 int get_size(const char *size);
@@ -66,12 +68,15 @@ int add_bootblock(struct rom *rom, const char *filename);
 
 /* fs.c */
 
-struct cbfs_file *rom_find(struct rom *rom, unsigned int offset);
+struct cbfs_file *rom_find(struct rom *rom, int offset);
 struct cbfs_file *rom_find_first(struct rom *);
 struct cbfs_file *rom_find_next(struct rom *, struct cbfs_file *);
 int rom_add(struct rom *rom, const char *name, void *, int size, int type);
+int rom_set_header(struct rom *rom, struct cbfs_file *c, 
+       const char*name, int size, int type);
+int rom_extract(struct rom *rom, const char *name, void **buf, int *size);
 int rom_remove(struct rom *rom, const char *name);
-unsigned int rom_used_space(struct rom *rom);
+int rom_used_space(struct rom *rom);
 int rom_exists(struct rom *rom);
 
 #endif