summaryrefslogtreecommitdiffstats
path: root/flash.h
diff options
context:
space:
mode:
authorNico Huber <nico.huber@secunet.com>2016-04-29 18:39:01 +0200
committerNico Huber <nico.h@gmx.de>2017-06-03 20:19:30 +0200
commit899e4ec810a1e2f3d377bc2095ba3d25b234a797 (patch)
tree270ac1d7101251d95a295effcbe5cf01ce2250f4 /flash.h
parent1878110848f36c53667c9855f0a413c43e64597f (diff)
downloadflashrom-899e4ec810a1e2f3d377bc2095ba3d25b234a797.tar.gz
flashrom-899e4ec810a1e2f3d377bc2095ba3d25b234a797.tar.bz2
flashrom-899e4ec810a1e2f3d377bc2095ba3d25b234a797.zip
Kill doit()
No words can describe this feeling. v2: Rejoice while removing more, orphaned code (layout.c). Change-Id: Id81177c50b4410e68dcf8ebab48386a94cd9b714 Signed-off-by: Nico Huber <nico.huber@secunet.com> Reviewed-on: https://review.coreboot.org/17949 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: David Hendricks <david.hendricks@gmail.com>
Diffstat (limited to 'flash.h')
-rw-r--r--flash.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/flash.h b/flash.h
index db8430c7f..7c7ecd558 100644
--- a/flash.h
+++ b/flash.h
@@ -285,9 +285,12 @@ void print_buildinfo(void);
void print_banner(void);
void list_programmers_linebreak(int startcol, int cols, int paren);
int selfcheck(void);
-int doit(struct flashctx *flash, int force, const char *filename, int read_it, int write_it, int erase_it, int verify_it);
int read_buf_from_file(unsigned char *buf, unsigned long size, const char *filename);
int write_buf_to_file(const unsigned char *buf, unsigned long size, const char *filename);
+int do_read(struct flashctx *, const char *filename);
+int do_erase(struct flashctx *);
+int do_write(struct flashctx *, const char *const filename);
+int do_verify(struct flashctx *, const char *const filename);
/* Something happened that shouldn't happen, but we can go on. */
#define ERROR_NONFATAL 0x100
@@ -354,7 +357,6 @@ int register_include_arg(char *name);
int process_include_args(void);
int read_romlayout(const char *name);
int normalize_romentries(const struct flashctx *flash);
-int build_new_image(struct flashctx *flash, bool oldcontents_valid, uint8_t *oldcontents, uint8_t *newcontents);
void layout_cleanup(void);
/* spi.c */