summaryrefslogtreecommitdiff
path: root/util/cbfstool/common.h
diff options
context:
space:
mode:
authorAlexandru Gagniuc <mr.nuke.me@gmail.com>2014-02-02 22:13:31 -0600
committerAlexandru Gagniuc <mr.nuke.me@gmail.com>2014-02-04 19:37:41 +0100
commit2bdc0d0bd6de826588d5ceda139d021922db5e48 (patch)
tree37a1270a5346b3843957a49785fde7155bd33b6c /util/cbfstool/common.h
parentc677c7d6e43c1f88ddfbd86ff32c81425f665596 (diff)
downloadcoreboot-2bdc0d0bd6de826588d5ceda139d021922db5e48.tar.xz
cbfstool: Remove more unused functions from common.c
A lot of the early functions have been re-implemented in a context- centric mode, rather than relying on global variables. Removing these has the nice side-effect of allowing us to remove more global variables. Change-Id: Iee716ef38729705432dd10d12758c886d38701a8 Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com> Reviewed-on: http://review.coreboot.org/5104 Tested-by: build bot (Jenkins) Reviewed-by: Ronald G. Minnich <rminnich@gmail.com> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Diffstat (limited to 'util/cbfstool/common.h')
-rw-r--r--util/cbfstool/common.h20
1 files changed, 0 insertions, 20 deletions
diff --git a/util/cbfstool/common.h b/util/cbfstool/common.h
index a50419b27b..b8ff4a3c7c 100644
--- a/util/cbfstool/common.h
+++ b/util/cbfstool/common.h
@@ -62,21 +62,12 @@ int buffer_write_file(struct buffer *buffer, const char *filename);
/* Destroys a memory buffer. */
void buffer_delete(struct buffer *buffer);
-extern uint32_t romsize;
-extern int host_bigendian;
extern uint32_t arch;
-const char *arch_to_string(uint32_t a);
uint32_t string_to_arch(const char *arch_string);
#define ALIGN(val, by) (((val) + (by)-1)&~((by)-1))
-size_t getfilesize(const char *filename);
-void *loadfile(const char *filename, uint32_t * romsize_p, void *content,
- int place);
-void *loadrom(const char *filename);
-int writerom(const char *filename, void *start, uint32_t size);
-
int iself(unsigned char *input);
typedef void (*comp_func_ptr) (char *, int, char *, int *);
@@ -103,17 +94,6 @@ int parse_flat_binary_to_payload(const struct buffer *input,
int parse_elf_to_stage(const struct buffer *input, struct buffer *output,
comp_algo algo, uint32_t *location);
-void *create_cbfs_file(const char *filename, void *data, uint32_t * datasize,
- uint32_t type, uint32_t * location);
-
-int add_file_to_cbfs(void *content, uint32_t contentsize, uint32_t location);
-int remove_file_from_cbfs(const char *filename);
-void print_cbfs_directory(const char *filename);
-int extract_file_from_cbfs(const char *filename, const char *payloadname, const char *outpath);
-
-uint32_t cbfs_find_location(const char *romfile, uint32_t filesize,
- const char *filename, uint32_t align);
-
void print_supported_filetypes(void);
#define ARRAY_SIZE(a) (int)(sizeof(a) / sizeof((a)[0]))